@ones-editor/editor 2.0.4-beta.11 → 2.0.4-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ Available method signatures are:
12
12
  * @author Roy Revelt, Codsen Ltd
13
13
  * @license MIT
14
14
  * {@link https://codsen.com/os/string-character-is-astral-surrogate/}
15
- */function B9(n){if(typeof n=="string")return n.length===0?!1:n.charCodeAt(0)>=55296&&n.charCodeAt(0)<=56319;if(n===void 0)return!1;throw new TypeError(`string-character-is-astral-surrogate/isHighSurrogate(): the input is not string but ${typeof n}`)}function y9(n){if(typeof n=="string")return n.length===0?!1:n.charCodeAt(0)>=56320&&n.charCodeAt(0)<=57343;if(n===void 0)return!1;throw new TypeError(`string-character-is-astral-surrogate/isLowSurrogate(): the input is not string but ${typeof n}`)}const _f="\u200B";function T9(n){return[...n].length}function k9(n,t,e){const i=[...n];let o;return e===void 0?o=i.length:o=t+e,i.slice(t,o).join("")}function R9(n){const t="\xA0";if(!n)return"";if(n===" ")return t;let e=n;return e.startsWith(" ")&&(e=t+e.substr(1)),e.endsWith(" ")&&(e=e.substr(0,e.length-1)+t),e=e.replace(/ {2}/g,` ${t}`),e}function ym(n){if(!/["'&<>]/.exec(n))return n;const r={'"':"&quot;","'":"&#39;","&":"&amp;","<":"&lt;",">":"&gt;"};return n.split("").map(l=>r[l]||l).join("")}function uv(n){const t=document.getElementById(n);t&&t.remove()}function fv(n,t){const e=document.getElementById(t);if(e)return e.textContent=n,e;const r=document.createElement("style");return r.id=t,r.textContent=n,document.head.append(r),r}function Mf(n){const t="custom-cursor-style";if(n){const e=`body * { cursor: ${n} !important}`;fv(e,t)}else uv(t)}const dv=3,hv=_("drag-drop");class mv{constructor(t){m(this,"dragStarted",!1);m(this,"mouseDownEvent",null);m(this,"_dragOffsetX",0);m(this,"_dragOffsetY",0);m(this,"handleMouseDown",t=>{t.preventDefault(),t.stopPropagation(),this.mouseDownEvent=t;const e=this.options.elem.getBoundingClientRect();this._dragOffsetX=this.mouseDownEvent.x-e.left,this._dragOffsetY=this.mouseDownEvent.y-e.top,this.bindEvents()});m(this,"handleMouseMove",t=>{var o;t.preventDefault(),t.stopPropagation(),p(hv,this.mouseDownEvent,"no mouse down event");const e=t.x-this.mouseDownEvent.x,r=t.y-this.mouseDownEvent.y;if(this.dragStarted){this.onDragging(t,e,r);return}const i=(o=this.options.minThreshold)!=null?o:dv;(Math.abs(e)>=i||Math.abs(r)>=i)&&this.onDragStart(this.mouseDownEvent)});m(this,"handleMouseUp",t=>{if(t.button===0){p(hv,this.mouseDownEvent,"no mouse down event");const e=t.x-this.mouseDownEvent.x,r=t.y-this.mouseDownEvent.y;this.onDragEnd(t,e,r),t.preventDefault(),t.stopPropagation()}});this.options=t,this.options.mouseDownEvent?this.handleMouseDown(this.options.mouseDownEvent):this.trackEvents()}get data(){return this.options.data}get dragOffsetX(){return this._dragOffsetX}get dragOffsetY(){return this._dragOffsetY}get dragOffset(){return{x:this._dragOffsetX,y:this._dragOffsetY}}trackEvents(){this.options.elem.addEventListener("mousedown",this.handleMouseDown)}untrackEvents(){this.options.elem.removeEventListener("mousedown",this.handleMouseDown)}bindEvents(){document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}unbindEvents(){document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}onDragStart(t){this.dragStarted=!0,this.options.cursor&&Mf(this.options.cursor),this.options.onDragStart(this,t,this.options.elem)}onDragging(t,e,r){this.options.onDragging(this,t,this.options.elem,e,r)}onDragEnd(t,e,r){this.options.cursor&&Mf(null),this.dragStarted&&this.options.onDragEnd(this,t,this.options.elem,e,r),this.unbindEvents(),this.dragStarted=!1}destroy(){this.unbindEvents(),this.untrackEvents()}}function t1(n){return new mv(n)}const w9=_("character");function gv(n,t){for(let e=0;e<t.length;e++){const r=t[e][0],i=t[e].length>1?t[e][1]:null;if(i===null&&n===r||i!==null&&n>=r&&n<=i)return!0}return!1}function pv(n){const t=n.charAt(0);return t>="0"&&t<="9"}function Cv(n){const t=n.charAt(0);return t>="a"&&t<="z"||t>="A"&&t<="Z"||t.toUpperCase()!==t.toLowerCase()?!0:RegExp(/^\p{L}/,"u").test(t)}function Tm(n){const t=[[9,13],[32],[160]];return gv(n.charCodeAt(0),t)}function Ev(n){const t=[[12352,12687],[13056,13183],[13312,15661],[19968,40959],[63744,64255],[44032,55215]];return gv(n.charCodeAt(0),t)}function e1(n,t){let e=t;return p(w9,e.length===1,"invalid char length"),e==="]"&&(e="\\]"),e==="\\"&&(e="\\\\"),n.replace(new RegExp(`^[${e}]+|[${e}]+$`,"g"),"")}function n1(n){return n?n.length===1||n==="Process"||n==="Unidentified"&&ye.isAndroid:!1}function bv(n){switch(n){case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":case"End":case"Home":case"PageDown":case"PageUp":return!0;default:return!1}}function S9(n){return bv(n.key)}function L9(n){switch(n){case"ArrowUp":case"ArrowLeft":case"Home":case"PageUp":return!0;default:return!1}}function da(n){return n.ctrlKey||n.altKey||n.shiftKey||n.metaKey}function I9(n){return n.key?!!(n.ctrlKey||n.metaKey||n.altKey):!1}function xv(n){return ye.isMac?n.metaKey&&!n.ctrlKey:!n.metaKey&&n.ctrlKey}function D9(n){return xv(n)&&!n.altKey&&!n.shiftKey}function _9(n){return!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.altKey}function Av(n){return!da(n)&&n.key==="Enter"}function M9(n){return n.key==="Enter"&&n.shiftKey&&!n.altKey&&!n.ctrlKey&&!n.metaKey}function km(n){return!da(n)&&n.key==="Escape"}function O9(n){return!da(n)&&n.key==="Delete"}function vv(n){return!da(n)&&n.key==="Backspace"}function U9(n){return!da(n)&&n.key==="Tab"}function N9(n){return n.shiftKey&&n.key==="Tab"&&!n.ctrlKey&&!n.metaKey}function mn(n){if(!n)return"";if(ye.isMac){const t=n.replace("CtrlOrCmd","\u2318").replace("Shift","\u21E7").replace("Ctrl","\u2303").replace("Alt","\u2325").replace(/\+(?!$)/gm,""),e={"\u2318":4,"\u21E7":3,"\u2325":2,"\u2303":1};return t.split(/(?=[\s\S])/u).sort((i,o)=>{var c,f;const s=(c=e[i])!=null?c:5,l=(f=e[o])!=null?f:5;return s-l}).map(i=>i in e?`${i}+`:i).join("")}return n.replace("CtrlOrCmd","Ctrl")}function Bv(n){const t={ctrl:!1,alt:!1,shift:!1,cmd:!1,key:""},e=n.toLocaleUpperCase().split("+");for(let r=0;r<e.length;r++){const i=e[r];i==="CTRL"||i==="CONTROL"?t.ctrl=!0:i==="ALT"||i==="OPTION"?t.alt=!0:i==="SHIFT"?t.shift=!0:i==="CMD"||i==="COMMAND"?t.cmd=!0:i==="CMDORCTRL"||i==="CTRLORCMD"?ye.isMac?t.cmd=!0:t.ctrl=!0:i==="SPACE"?t.key=" ":t.key=i.substring(0,1)+i.substring(1).toLocaleLowerCase()}return t}function Qi(n,t){const e=Bv(t);return e.ctrl!==n.ctrlKey||e.alt!==n.altKey||e.shift!==n.shiftKey||ye.isMac&&e.cmd!==n.metaKey?!1:e.key.length===1?e.key===n.key.toUpperCase():e.key.toUpperCase()===n.key.toUpperCase()}function r1(n,t){return fI.stringifyUrl({url:n,query:t})}function Zi(n){return typeof n=="string"?wf.Base64.encode(n,!0):wf.Base64.fromUint8Array(n,!0)}function Of(n){return wf.Base64.decode(n)}function P9(n){return wf.Base64.toUint8Array(n)}function i1(n){return new Blob([wf.Base64.toUint8Array(n)])}const F9=nl.init([nl.classModule,nl.styleModule,nl.datasetModule,nl.attributesModule,nl.propsModule]);function Uf(n,t){const e=nl.toVNode(n),r=nl.toVNode(t);F9(e,r)}async function o1(n,t){const e=new FileReader,r=new Promise((o,s)=>{e.onload=o,e.onerror=s});return e.readAsDataURL(new Blob([n],{type:t})),await r,e.result}async function Vc(n){const t=new FileReader,e=new Promise((i,o)=>{t.onload=i,t.onerror=o});return t.readAsDataURL(n),await e,t.result}function K9(n,...t){const e=n.tagName.toLowerCase();for(let r=0,i=t.length;r<i;r++)if(e===t[r].toLowerCase())return!0;return!1}function tn(n,t){let e=n;for(;e;){const r=window.getComputedStyle(e);if(t!=null&&t.horizontal){if(/auto|scroll/i.test(r.overflowX))break}else if(/auto|scroll/i.test(r.overflowY))break;e=e.parentElement}return(!e||K9(e,"body"))&&(e=document.documentElement),e}function yv(n){n.preventDefault(),n.stopPropagation()}function s1(n){if(document.querySelector(`.editor-disable-scroll[data-scroll-id="${n}"]`))return;const t=B("div",["editor-disable-scroll"],null);t.setAttribute("data-scroll-id",n),t.addEventListener("wheel",yv,{passive:!1}),document.body.appendChild(t)}function l1(n){const t=document.querySelector(`.editor-disable-scroll[data-scroll-id="${n}"]`);t&&(t.removeEventListener("wheel",yv),t.remove())}function a1(n,t,e){const r=new Blob([n]),i=new File([r],e,{type:t});return URL.createObjectURL(i)}function Rm(n){const t=document.createElement("template");if("content"in t)return t.innerHTML=n,document.importNode(t.content,!0);const e=document.createDocumentFragment(),r=document.createElement("div");for(r.innerHTML=n;r.firstChild;)e.appendChild(r.firstChild);return e}function Tv(n){const t=document.createElement("div");return t.appendChild(n),t.innerHTML}function kv(n){let t=n.getPropertyValue("font");if(t)return t;const e=n.getPropertyValue("font-style"),r=n.getPropertyValue("font-variant"),i=n.getPropertyValue("font-weight"),o=n.getPropertyValue("font-size"),s=n.getPropertyValue("font-family");return t=`${e} ${r} ${i} ${o} ${s}`.replace(/ +/g," ").trim(),t}function wm(n,t){const r=(wm.canvas||(wm.canvas=document.createElement("canvas"))).getContext("2d");return r?(typeof t=="string"?t?r.font=t:r.font=kv(window.getComputedStyle(document.body)):t instanceof Element&&(r.font=kv(window.getComputedStyle(t))),r.measureText(n).width+4):200}const Rv=_("editor-clipboard");async function V9(n,t){if(t.clipboardData){const e=t.clipboardData;for(const r of n)e.setData(r.type,r.data);return!0}return!1}function $9(n){return typeof n.text=="function"?n.text():new Promise((t,e)=>{const r=new FileReader;r.onload=()=>{t(r.result)},r.onerror=e,r.readAsText(n)})}async function H9(n){var t;if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const e=document.createElement("textarea");try{let r=(t=n.find(i=>i.type==="text/plain"))==null?void 0:t.data;return r instanceof Blob&&(r=await $9(r)),e.textContent=r!=null?r:"",e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),!0}catch(r){return Rv.error(r),document.body.removeChild(e),!1}}return!1}async function Nf(n){try{const t={};n.forEach(r=>{t[r.type]=r.data});const e=new ClipboardItem(t);return await navigator.clipboard.write([e]),!0}catch(t){return Rv.error(t),await H9(n)}}function $c(n,t){return new Promise((e,r)=>{const i=document.createElement("input");i.type="file",i.style.display="none";const o=(t==null?void 0:t.container)||document.body;t!=null&&t.multiple&&(i.multiple=!0),i.accept=n,i.oncancel=()=>{e(null),i.remove()},i.onchange=()=>{const s=i.files;if(s){const l=t!=null&&t.multiple?Array.from(s):s[0];e(l)}i.remove()},i.onerror=s=>{r(s),i.remove()},o.append(i),i.click()})}function Sm(n){return Array.isArray(n)?n.every(t=>t instanceof File):!1}function Pf(n){const t=n;if(!t)return"";const e=t.lastIndexOf(".");return e===-1?"":t.slice(e+1)}function Lm(n,t){const e=document.createElement("a");e.setAttribute("download",`${t||""}`),e.setAttribute("href",`${n}`),e.click(),e.remove()}const wv=_("auto-scroll");function Sv(n,t){return!(n.scrollHeight===n.clientHeight||t==="top"&&n.scrollTop===0||t==="bottom"&&n.scrollTop+n.clientHeight===n.scrollHeight||t==="left"&&n.scrollLeft===0||t==="right"&&n.scrollLeft+n.clientWidth===n.scrollWidth)}function Lv(n,{direction:t,step:e}){let r=null;const i=t==="left"||t==="right",o=()=>Sv(n,t)?(i?t==="left"?n.scrollLeft=Math.max(n.scrollLeft-e,0):n.scrollLeft=Math.min(n.scrollLeft+e,n.scrollWidth):t==="top"?n.scrollTop=Math.max(n.scrollTop-e,0):n.scrollTop=Math.min(n.scrollTop+e,n.scrollHeight),r=requestAnimationFrame(o),r):(wv.debug("No need for scroll"),null);return r=requestAnimationFrame(o),()=>{r&&cancelAnimationFrame(r)}}class Ff{constructor(t){m(this,"cancelScroll",null);m(this,"options");m(this,"scrollDomInfo");m(this,"scrolling",!1);m(this,"getScrollingDirection",t=>{const{x:e,y:r}=t,{top:i,bottom:o,left:s,right:l}=this.scrollDomInfo,{edge:c}=this.options;return c.top&&r<=c.top+i?"top":c.bottom&&r>=o-c.bottom?"bottom":c.left&&e<=s+c.left?"left":c.right&&e>=l-c.right?"right":null});m(this,"handleMouseMove",t=>{var s;const{scrollElement:e,step:r=10,onDirectionChange:i}=this.options,o=this.getScrollingDirection(t);if(o){if(this.scrolling)return;wv.debug(`scroll direction: ${o}`),this.cancelScroll=Lv(e,{direction:o,step:r}),i==null||i(o),this.scrolling=!0}else(s=this.cancelScroll)==null||s.call(this),this.scrolling=!1});this.options=t,this.scrollDomInfo=this.getScrollDomInfo()}getScrollDomInfo(){const{scrollElement:t}=this.options,e=t.getBoundingClientRect(),r=e.top,i=e.left,o=e.bottom,s=e.right;return{left:i,top:r,right:s,bottom:o}}active(){const{trackMouseEvent:t="mousemove"}=this.options;window.addEventListener(t,this.handleMouseMove,!0)}inactive(){var e;const{trackMouseEvent:t="mousemove"}=this.options;window.removeEventListener(t,this.handleMouseMove,!0),(e=this.cancelScroll)==null||e.call(this),this.scrolling=!1}}function Iv(n,t){if(n===0)return"0 Bytes";const e=1024,r=t||2,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(n)/Math.log(e));return`${parseFloat((n/e**o).toFixed(r))} ${i[o]}`}function Kf(n,t){let e=`${n}`;const r=t-e.length;for(let i=0;i<r;i++)e=`0${e}`;return e}const{t:ha}=D;function c1(n,t){const e=new Date(n).getTime()+864e5*t;return new Date(e)}function j9(n,t){const e=n,r=Math.floor(t/12),i=t-r*12;return r&&e.setFullYear(e.getFullYear()+r),i&&e.setMonth(e.getMonth()+i),e}function z9(n,t){return c1(n,t)}function u1(n,t){const e=new Date(n),r=new Date(t);return e.getDate()===r.getDate()&&e.getMonth()===r.getMonth()&&e.getFullYear()===r.getFullYear()}function Dv(n){const t=new Date,e=new Date(n);return u1(t,e)}function _v(n){const t=c1(new Date,-1);return u1(t,n)}function W9(n,t){return Math.round((n.getTime()-t.getTime())/864e5)}function f1(n,t){const e=new Date(n);if(t){const r=e.getFullYear(),i=e.getMonth()+1,o=e.getDate(),s=e.getHours(),l=e.getMinutes();let c=t;return c=c.replace("YYYY",`${r}`),c=c.replace("MM",Kf(i,2)),c=c.replace("DD",Kf(o,2)),c=c.replace("M",`${i}`),c=c.replace("D",`${o}`),c=c.replace("hh",Kf(s,2)),c=c.replace("mm",Kf(l,2)),c=c.replace("h",`${s}`),c=c.replace("m",`${l}`),c}return n.toLocaleDateString()}function d1(n,t){const e=new Date(n),r=new Date;if(e.getTime()-r.getTime()>10*1e3)return D.t("date.dateFromFuture");if(Dv(e)){const o=(r.getTime()-n.getTime())/1e3;if(o<10*60)return ha("date.dateJustNow");if(o<60*60)return ha("date.dateMinutesAgo",{num:`${Math.floor(o/60)}`});const s=Math.floor(o/60/60);return s===1?ha("date.date1HourAgo"):ha("date.dateHoursAgo",{num:`${s}`})}if(_v(n))return ha("date.dateYesterday");const i=Math.floor((r.getTime()-n.getTime())/1e3/24/60/60)+1;return i<14?ha("date.dateDaysAgo",{num:`${i}`}):i<28?ha("date.dateWeeksAgo",{num:`${Math.round(i/7)}`}):f1(n,t)}function h1(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function G9(n,t,e){return n.replace(new RegExp(h1(t),"g"),e)}function q9(n,t,e){return n.replace(new RegExp(h1(t),"gi"),e)}function Mv(n,t,e){const i=document.createElement("canvas").getContext("2d");if(!i)return null;if(i.font=String(t),i.measureText(n).width>e){let s=0,l=0;for(;l<e;)l=i.measureText(n.slice(0,s)).width,s++;return`${n.slice(0,s-2)}...`}return n}const Ov=/[\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f\uAC00-\uD7AF]/,Uv=" -\x7F0-9!-/:-@[-`{-~\u0370-\u03FF\u0400-\u04FF",X9=new RegExp(`[${Uv}]`),Y9=new RegExp(`([^(${Uv})])`,"g"),Nv=/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/;function Pv(n){return n.length===0?0:n.split("").reduce((t,e)=>{const r=(t<<5)-t+e.charCodeAt(0);return r&r},0)}function J9(n,t=1){var r,i;return(i=((r=Array.from(n))==null?void 0:r.filter(o=>Ov.test(o))).slice(-t))==null?void 0:i.join("")}function Q9(n,t=1){var i;const e=Array.from((i=n==null?void 0:n.replace(Y9,""))==null?void 0:i.split(/\s/));return e.reduce((o,s,l)=>{var c,f;return l===e.length-1&&o.length<t?`${o}${(c=s==null?void 0:s.slice(0,t-o.length))!=null?c:""}`:`${o}${(f=s[0])!=null?f:""}`},"").slice(0,t)}function Z9(n,t=1){var r,i;return(i=((r=Array.from(n))==null?void 0:r.filter(o=>Nv.test(o))).slice(-t))==null?void 0:i.join("")}function t7(n,t=1){var e,r;return(r=(e=Array.from(n))==null?void 0:e.slice(0,t))==null?void 0:r.join("")}function Im(n,t=1){if(!n||n.length===0)return"";const e=Ov.test(n),r=X9.test(n),i=Nv.test(n);switch(!0){case e:return J9(n,t);case r:return Q9(n,t);case i:return Z9(n,t);default:return t7(n,t)}}var Fv=(n=>(n.blue="#0064FF",n.cyan="#34AFDE",n.teal="#2CB2AE",n.green="#24B47E",n.kelly="#8AAB3F",n.yellow="#F0A100",n.orange="#EB6414",n.red="#E52727",n.fuchsia="#BE507D",n.purple="#9678D3",n))(Fv||{});function Dm(n){const t=Object.values(Fv),e=Math.abs(typeof n=="string"&&n.trim()?Pv(n.trim()):0)%t.length;return t[e]}const Kv=_("container");function to(n){return n.getAttribute("data-type")==="editor-container"}function te(n){return _t(n,"root")}function xi(n){return _t(n,"child")}function ft(n){const t=n.getAttribute("data-container-id");return p(Kv,t,"no id for container"),te(n)&&p(Kv,t==="root",`invalid root container id, : ${t}`),t}function Vv(n,t){const e=ft(n);return t.getContainerBlocks(e)}function m1(n){return`ones-editor-container-${n}`}const $v=_("element");function g1(n,t,e){const r=B("div",[t],n);return r.setAttribute("data-type","editor-container"),r.setAttribute("data-container-id",e),r.id=m1(e),B("div",["container-blocks"],r),r}function qr(n,t){const e=n.rootElement.querySelector(`[data-container-id=${t}]`);return p($v,e,`no container: ${t}`),e}function Vf(n,t){return n.rootElement.querySelector(`[data-container-id=${t}]`)}function $f(n){const t=n.querySelector(":scope > .container-blocks");return p($v,t,"no container blocks element"),t}function e7(n){let t=n.querySelector(":scope > .container-tools");return t||(t=B("div",["container-tools"],n)),t}const p1=_("container-children");function be(n,t){const e=$f(n),r=Array.from(e.children);if(p(p1,r.length>0,"container have not any child block"),t){const{condition:i,editor:o}=t;return r.reduce((s,l)=>{if(i(l)){const c=l.getAttribute("data-block-type");if(!c)return s;const h=o.editorBlocks.getBlockClass(c).getChildContainers(o,l).flatMap(C=>be(C,t));return[...s,...h]}else return[...s,l]},[])}return r}function Pe(n){const t=n.querySelector(":scope > .container-blocks > div[data-type=editor-block]");return p(p1,t,"container have not any child block"),t}function en(n){const t=be(n);return t[t.length-1]}function Ai(n){return be(n).length}function ol(n,t){const e=be(n)[t];return p(p1,e,`container have not block at index ${t}`),e}function Hv(n,t){var e;return(e=be(n)[t])!=null?e:null}class n7{constructor(t){m(this,"renders",[]);this.editor=t}registerRender(t){this.renders.push(t)}renderBox(t,e){const r={classes:[],attributes:{},styles:{}};return this.renders.forEach(i=>{if(i.renderBox){const o=i.renderBox(this.editor,t,e);o.classes&&r.classes.push(...o.classes),o.attributes&&(r.attributes={...r.attributes,...o.attributes}),o.styles&&(r.styles={...r.styles,...o.styles})}}),r}renderText(t,e){const r={classes:[],attributes:{},styles:{}};return this.renders.forEach(i=>{if(i.renderText){const o=i.renderText(this.editor,t,e);o.classes&&r.classes.push(...o.classes),o.attributes&&(r.attributes={...r.attributes,...o.attributes}),o.styles&&(r.styles={...r.styles,...o.styles})}}),r}renderBlock(t,e,r){const i={classes:[],attributes:{},styles:{}};return this.renders.forEach(o=>{if(o.renderBlock){const s=o.renderBlock(this.editor,e,r);s.classes&&i.classes.push(...s.classes),s.attributes&&(i.attributes={...i.attributes,...s.attributes}),s.styles&&(i.styles={...i.styles,...s.styles})}}),i}updateBlock(t,e,r,i){this.renders.forEach(o=>{var s;(s=o.updateBlock)==null||s.call(o,t,e,r,i)})}}const jv=_("block-class");function jt(n,t){return n.editorBlocks.getBlockClass(Tt(t))}function zv(n,t){const e=n.editorBlocks.getBlockClass(Tt(t));return p(jv,e.blockKind==="text",`is not a text block, ${e.blockType}`),e}function Xr(n,t){const e=n.editorBlocks.getBlockClass(Tt(t));return p(jv,e.blockKind==="complex",`is not a text block, ${e.blockType}`),e}function sl(n,t){return n.editorBlocks.getBlockClass(t)}function at(n,t){return jt(n,t).blockKind==="text"}function Hf(n,t){return n.editorBlocks.getBlockClass(t).blockKind==="text"}function Nt(n,t){return jt(n,t).blockKind==="complex"}function r7(n,t){return!Nt(n,t)}function vi(n,t){return jt(n,t).blockKind}class We extends $e.TypedEmitter{constructor(e){super();m(this,"hoveringBlock",null);m(this,"hoveringElem",null);m(this,"hoveringTextChild",null);m(this,"filters",[]);m(this,"finders",[]);m(this,"handleDocumentMouseMove",e=>{if(this.hoveringBlock){for(const s of this.filters)if(s.isInBlock(this.hoveringBlock,e))return}const r=Ne(e.x,e.y,{noFilter:!0});if(!r){this.setHoveringBlock(null,e,null,r);return}let i=Q(r);if((!i||!Ee(this.editor.rootContainer,i))&&(i=this.findBlockByFinders(e),!i)){this.setHoveringBlock(null,e,null,r);return}const o=this.getParentTextContentChild(i,r);this.setHoveringBlock(i,e,o,r)});this.editor=e,document.addEventListener("mousemove",this.handleDocumentMouseMove)}destroy(){document.removeEventListener("mousemove",this.handleDocumentMouseMove),this.filters.forEach(e=>e.destroy()),this.filters=[],this.finders.forEach(e=>e.destroy()),this.finders=[]}addFilter(e){this.filters.push(e)}addFinder(e){this.finders.push(e)}hoveringBlockId(){return this.hoveringBlock?dt(this.hoveringBlock):""}findBlockByFinders(e){for(let r=0;r<this.finders.length;r++){const o=this.finders[r].findTargetBlock(this.editor,e);if(o)return o}return null}setHoveringBlock(e,r,i,o){if(this.hoveringBlock===e&&this.hoveringTextChild===i&&this.hoveringElem===r.target)return;if(this.hoveringBlock!==e){const l=this.hoveringBlock&&Ee(this.editor.rootContainer,this.hoveringBlock)?this.hoveringBlock:null;l&&lt(l,"hover"),e&&z(e,"hover"),this.emit("change",e,l,r)}(this.hoveringElem!==o||this.hoveringBlock!==e)&&this.emit("targetChange",e,this.hoveringBlock,o,this.hoveringElem);const s=this.hoveringTextChild;this.hoveringTextChild=i,this.hoveringElem=o,this.hoveringBlock=e,this.emit("childChange",this.hoveringBlock,i,s,r)}static get(e){return e.addCustom("standard-hovering-block",()=>new We(e))}getParentTextContentChild(e,r){if(!at(this.editor,e))return null;const i=$t(e);return r.parentElement===i?r:b1(r)}}const Wv="style-color-",Gv="style-bg-color-";class qv{renderText(t,e,r){return this.generateCSSCustomProperties(r)}renderBlock(t,e,r){var l,c;const i={};Object.entries(r).filter(f=>f[0].startsWith("style-")).forEach(([f,h])=>{i[`data-${f}`]=`${h}`});const s=[];return((c=(l=t.selection)==null?void 0:l.range)==null?void 0:c.start.blockId)===r.id&&s.push("focused"),typeof r.align=="string"&&r.align&&(i["data-style-align"]=r.align),r.heading&&(i["data-style-heading"]=String(r.heading)),r.quoted&&(i["data-style-quoted"]="true"),We.get(t).hoveringBlockId()===r.id&&s.push("hover"),{attributes:i,classes:s}}updateBlock(t,e,r,i){Array.from(r.attributes).forEach(l=>{l.name.startsWith("data-style-")&&r.removeAttribute(l.name)});const{attributes:o,classes:s}=this.renderBlock(t,e,i);o&&Object.entries(o).forEach(([l,c])=>{r.setAttribute(l,c)}),s&&s.forEach(l=>{z(r,l)})}generateCSSCustomProperties(t){const e=[],r={},i={};return Object.entries(t).forEach(([o,s])=>{s===!0?o.startsWith(Wv)?r["data-style-color"]=o.substring(Wv.length):o.startsWith(Gv)?r["data-style-bg-color"]=o.substring(Gv.length):o.startsWith("style")&&e.push(o):typeof s=="string"&&(o==="link"&&(e.push("link"),r.link=s),o==="inline-style-color"&&(i.color=s),o==="inline-style-background-color"&&(i.backgroundColor=s))}),{classes:e,attributes:r,styles:i}}}const Bi=_("block-dom");function Wo(n){return n instanceof HTMLDivElement?n.getAttribute("data-type")==="editor-block":!1}function Xv(n){return n instanceof HTMLElement&&n.getAttribute("data-type")==="block-tools"}function Yv(n){z(n,"block-hidden")}function C1(n){lt(n,"block-hidden")}function ll(n){return!_t(n,"block-hidden")}function dt(n){const{id:t}=n;return p(Bi,t,"no block id"),t}function Tt(n){const t=n.getAttribute("data-block-type");return p(Bi,t,"invalid block dom, no data-type"),t}function Q(n){const t=n instanceof Element?n:n.parentElement;if(!t)return null;const e=t.closest("div[data-type=editor-block]");return e||null}function ma(n){const t=n instanceof Element?n:n.parentElement;if(!t)return null;const e=t.closest("div[data-type=editor-block]:not(:scope)");return e||null}function ot(n){const t=n.closest("div[data-type=editor-container]");return p(Bi,t,"failed to get block container"),t}function $t(n){const t=n.querySelector(":scope >div[data-type=block-content]");return p(Bi,t,"no block content"),t}function xe(n){let t=n.querySelector(":scope >div[data-type=block-tools]");return t||(t=B("div",[],n),t.setAttribute("data-type","block-tools")),p(Bi,t,"no block tools"),t}function _m(n){const t=n.querySelector(":scope >div[data-type=block-tools]");return t||null}function E1(n){let t=n.querySelector(":scope > div[data-type=block-background]");return t||(t=B("div",[],n),t.setAttribute("data-type","block-background")),t}function Jv(n,t,e){const r=n.editorDecorators.decorateBlock(t,e),{id:i,type:o}=r;p(Bi,i,"no block id");const s=B("div",[`${o}-block`],null);s.id=i,s.setAttribute("data-type","editor-block"),s.setAttribute("data-block-type",o);const l=n.editorBlockRenders.renderBlock(n,t,e);return l.classes&&z(s,...l.classes),l.attributes&&Object.entries(l.attributes).forEach(([c,f])=>{s.setAttribute(c,f)}),l.styles&&Object.entries(l.styles).forEach(([c,f])=>{s.style.setProperty(c,f)}),s}function al(n,t){const e=B(t,[],null);return e.setAttribute("data-type","block-content"),n&&n.appendChild(e),e}function Qv(n){const t=B("span",[`${n.type}-box`],null);return t.setAttribute("data-type","editor-box"),t.setAttribute("data-box-type",n.type),t.id=n.id,t}function jf(n){const t=n.getAttribute("data-box-type");return p(Bi,t,"not a valid box element, no type"),t}function Mm(n){return n instanceof HTMLSpanElement?n.getAttribute("data-type")==="editor-box":!1}function Zv(n){const{id:t}=n;return p(Bi,t,"no box id"),t}function b1(n){const t=n instanceof Element?n:n.parentElement;if(!t)return null;const e=t.closest("span[data-type=editor-box]");return e||null}function tB(n){n.innerHTML="",B("span",["box-space-start"],n,_f);const t=B("span",[],n);return t.setAttribute("data-type","box-content"),B("span",["box-space-start"],n,_f),t}function x1(n){const t=n.querySelector("span[data-type=box-content]");return p(Bi,t,"invalid box dom, no content"),t}function eB(n,t,e){const r=B("span",[`${n}-insertion`],null);if(r.setAttribute("data-type","editor-insertion"),r.setAttribute("data-insertion-id",t),e){const i=new qv,{attributes:o}=i.generateCSSCustomProperties(e);o&&[...Object.entries(o)].forEach(s=>{const[l,c]=s;r.setAttribute(l,c)})}return r}function nB(n,t){return n.rootContainer.querySelector(`[data-insertion-id=${t}]`)}function rB(n){n.innerHTML="",B("span",["insertion-space-start"],n,_f);const t=B("span",[],n);return t.setAttribute("data-type","insertion-content"),B("span",["insertion-space-start"],n,_f),t}function A1(n){const t=n.querySelector("span[data-type=insertion-content]");return p(Bi,t,"invalid insertion-child dom, no content"),t}function He(n){let t=n.previousElementSibling;for(;t;){if(Wo(t))return t;t=t.nextElementSibling}return null}function ae(n){let t=n.nextElementSibling;for(;t;){if(Wo(t))return t;t=t.nextElementSibling}return null}function Yr(n){let t=n.previousElementSibling;for(;t;){if(Wo(t)&&ll(t))return t;t=t.previousElementSibling}return null}function Jr(n){let t=n.nextElementSibling;for(;t;){if(Wo(t)&&ll(t))return t;t=t.nextElementSibling}return null}function St(n){const t=ot(n),r=be(t).indexOf(n);return p(Bi,r!==-1,"invalid block & container dom, failed to get block index"),r}function v1(n){return!n||!(n instanceof Node)?!1:!!Q(n)}function Hc(n){if(!v1(n))return!1;const t=n,e=t instanceof Element?t:t.parentElement;return e?!!e.closest("div[data-type=block-tools]"):!1}function Go(n){return n.hasAttribute("data-document-title")}function cl(n,t,e){return jt(n,t).getCaretRect(t,e)}const B1=_("block");function bt(n,t){return jt(n,t).getBlockTextLength(t)}function iB(n){n.editorBlocks.forEach(t=>{t.clearSelection(n)})}function oB(n,t,e,r){jt(n,t).updateSelection(n,t,e,r)}function zf(n){for(;;){const t=ot(n);if(te(t))return n;const e=Q(t);p(B1,e,"no parent block exists for child container"),n=e}}function sB(n,t){let e=n;for(;e;){const r=ot(e);if(t(r))return e;e=Q(r)}}function lB(n,t){const e=jt(n,t);if(!!e.getMinWidth)return e.getMinWidth(n,t)}function aB(n,t,e){const r=jt(n,t);r.handleBlockElementUpdated&&r.handleBlockElementUpdated(n,t,e)}function Om(n,t,e,r){try{const i=sl(n,e).convertFrom;return i?i(n,t,r):null}catch{return B1.debug(`unsupported block type: ${e}`),null}}function qo(n,t,e){const r=jt(n,t);return r.getClientRects?r.getClientRects(n,t,e):[t.getBoundingClientRect()]}function i7(n,t){const e=jt(n,t);if(e.getBlockStyles)return e.getBlockStyles(n,t);const r=n.getBlockData(t),i=Object.fromEntries(Object.entries(r).filter(([o])=>o.startsWith("style-")));return Object.entries(i).forEach(([,o])=>{const s=typeof o;p(B1,s==="string"||s==="number"||s==="boolean","invalid style value")}),i}function Te(n,t){return vi(n,t)==="text"?bt(n,t)===0:!1}const cB=_("block-path");function Xo(n){const t=[];let e=n;for(;e;){const r=ot(e);if(t.unshift({containerId:ft(r),blockIndex:St(e)}),te(r))return t;const i=Q(r);p(cB,i,"no parent block"),e=i}return p(cB,!1,"no parent block"),[]}function Wf(n,t){var i,o;const e=jt(n,t);return(o=(i=e.getOptions)==null?void 0:i.call(e,n))!=null?o:{name:Tt(t)}}function Qr(n){return te(ot(n))}function uB(n,t){var i;const e=jt(n,t);return(i=e.getBlockProperties)==null?void 0:i.call(e,n,t)}function y1(n,t){var o,s;const e=jt(n,t),r=(o=e.getBlockProperties)==null?void 0:o.call(e,n,t);let i={};r!=null&&r.blockCommands&&(i={...r.blockCommands});for(const l of n.blockHooks){const c=(s=l.commands)==null?void 0:s.call(l,n,t);c&&(i[c.group]=c)}return i}function o7(n,t,e){var s,l,c,f;const r=jt(n,t),i=(s=r.getBlockProperties)==null?void 0:s.call(r,n,t);let o={};i!=null&&i.blockCommands&&(o={...i.blockCommands});for(const h of n.blockHooks){const C=(l=h.commands)==null?void 0:l.call(h,n,t);C&&(o[C.group]=C)}return(f=(c=o[e])==null?void 0:c.commands)!=null?f:[]}function fB(n,t,e){let r=t;for(;r;){const i=o7(n,r,e);if(i.length>0)return{element:$t(r),commands:i};if(Qr(r))break;r=ma(r)}return{element:null,commands:[]}}const dB=_("embed-block-common");function hB(n){return Tt(n)==="layout"}function me(n){return Tt(n)==="embed"}function Ge(n){p(dB,me(n),"not an embed block");const t=n.getAttribute("data-embed-type");return p(dB,t,"no embed data type"),t}function s7(n,t){return n.editorEmbeds.getEmbedClass(Ge(t))}function ga(n,t){return n.editorEmbeds.getEmbedClass(t)}function T1(n,t,e){var s;if(!t||!e)return;const r=n.getContainerById(t),i=Q(r);return i?(s=Wf(n,i).overrideInertEmptyBlockInsideOptions)==null?void 0:s[e]:void 0}async function k1(n,t,e,r,i){const o=ga(n,t);if(!o.getOptions)return null;const s=o.getOptions(n);if(!s.insertEmbedCommandItems||!s.insertEmbedCommandItems||s.insertEmbedCommandItems.length===0||!s.handleInsertEmptyEmbed)return null;const l=s.insertEmbedCommandItems[0];return s.handleInsertEmptyEmbed(n,{item:l,containerId:e,blockIndex:r,data:i})}function l7(n,t,e,r,i){var c,f,h;const o=(f=(c=sl(n,t)).getOptions)==null?void 0:f.call(c,n);if(!o||!o.insertBlockCommandItems||o.insertBlockCommandItems.length===0||!o.handleInsertEmptyBlock)return null;const s=o.insertBlockCommandItems[0],l=T1(n,e,t);return o.handleInsertEmptyBlock(n,{item:{...l==null?void 0:l.item,...s},containerId:e,blockIndex:r,data:(h=l==null?void 0:l.data)!=null?h:i})}const a7=_("execute-block-command");function mB(n,t,e,r){var f;p(a7,me(t),"not a embed block");const i=Ge(t),o=ga(n,i);if(!o.getOptions)return;const s=(f=o.getBlockProperties)==null?void 0:f.call(o,n,t),l=s==null?void 0:s.blockCommands;if(!l)return;const c=Object.entries(l);for(const h of c)if(h[0]===e)return h[1].executeCommand(n,t,r)}function gB(n,t,e,r){const i=y1(n,t);if(!i)return;const o=Object.entries(i);for(const s of o)if(s[0]===e)return n.emit("beforeExecCommand",n,r,{source:r.source}),s[1].executeCommand(n,t,r)}const pB=_("block-class");function an(n){return!!n.getAttribute("data-style-heading")}function Gf(n){var e;const t=Number.parseInt((e=n.getAttribute("data-style-heading"))!=null?e:"",10);return p(pB,t,"not a heading block"),t}function CB(n){return!_t(n,"heading-collapsed")}function kr(n){return _t(n,"heading-collapsed")}function pa(n,t){t||p(pB,an(n),"not a heading block");const e=[],r=t!=null?t:Gf(n);let i=ae(n);for(;i&&!(an(i)&&Gf(i)<=r);)e.push(i),i=ae(i);return e}function EB(n){let t=ae(n);const e=[];for(;t&&!ll(t);)e.push(t),t=ae(t);return e}const Yo=_("text-block-child");function qf(n){return n.tagName==="SPAN"}function Rr(n){return p(Yo,qf(n),"not a valid text child"),n.getAttribute("data-type")==="editor-box"}function Jo(n){return p(Yo,qf(n),"not a valid text child"),n.getAttribute("data-type")==="editor-insertion"}function Xf(n){return!Rr(n)&&!Jo(n)}function bB(n){return p(Yo,qf(n),"not a valid text child"),Rr(n)?"box":Jo(n)?"insertion":"text"}function Zr(n){const t=bB(n);return t==="insertion"?0:t==="box"?1:(p(Yo,n.textContent!==null,"text block content is undefined"),p(Yo,n.textContent.length>=0,"text block content length is negative"),n.textContent.length)}function eo(n){const t=$t(n),e=Array.from(t.children);return e.forEach(r=>{p(Yo,qf(r),"not a valid text child")}),e}function Yf(n,t){const e=eo(n);let r=0;for(let i=0;i<e.length;i++){const o=e[i],s=Zr(o);if(r+s<t){r+=s;continue}if(r===t)return{prev:e[i-1],next:o,offset:0};if(r+s===t)return{prev:o,next:e[i+1],offset:0};const l=t-r;return p(Yo,l>0,"invalid offset value"),p(Yo,!Rr(o),"invalid box child"),{prev:o,next:o,offset:l}}p(Yo,!1,`invalid block child at position: ${t}`)}const c7=_("child-container-path");function xB(n){if(te(n))return[];const t=Q(n);return p(c7,t,"no parent block"),Xo(t)}const AB=_("load-blocks");function R1(n,t,e){const r=ft(t),i=Vv(t,n.doc);p(AB,i.length>0,"no blocks in container");const o=document.createDocumentFragment();i.forEach((l,c)=>{const f=n.editorBlocks.createBlock([...e,{containerId:r,blockIndex:c}],t,l);o.appendChild(f)}),$f(t).appendChild(o)}function u7(n,t,e){const r=$f(n);if(t===0)return r.insertBefore(e,r.firstChild),e;const i=be(n);return p(AB,t>=0&&t<=i.length,"invalid block index"),t===i.length?r.appendChild(e):r.insertBefore(e,i[t]),e}function f7(n,t,e,r){const i=xB(t);i.push({containerId:ft(t),blockIndex:e});const o=n.editorBlocks.createBlock(i,t,r);return u7(t,e,o),o}const w1=_("root-container"),vB=3;class d7{constructor(t,e){m(this,"resizeObserver");m(this,"isMoved",!1);m(this,"mouseDownEvent",null);m(this,"handleContextMenu",t=>{if(ye.isSafari){const e=document.getSelection();e&&!e.isCollapsed&&e.collapseToStart()}});m(this,"handleResize",()=>{try{this.editor.selection.updateSelection(null),this.editor.emit("resize",this.editor)}catch(t){w1.warn(`failed to update selection while container resizing: ${t.message}`)}});m(this,"handleClick",t=>{this.editor.emit("click",this.editor,t);const e=t.target;if(!Hc(e)&&(t.detail===1&&this.editor.input.focus(),t.detail===3&&this.editor.selectionHandler.handleTripleClick(t),t.detail===1&&t.button===0)){const r=Ne(t.clientX,t.clientY);if(r&&Ee(this.rootContainer,r)){const i=Q(r);i&&Ee(i,r)&&this.handleBlockClick(t,i,r)}}});m(this,"handleBlockClick",(t,e,r)=>{var s,l;if(!at(this.editor,e))return;const i=b1(r);if(i){const c=Q(i);p(w1,c,"no parent block"),(l=(s=this.editor.editorBoxes.getBoxClass(jf(i)))==null?void 0:s.handleClickBox)==null||l.call(s,this.editor,i,t);return}const o=r.closest("span.text.link");o&&eo(e).indexOf(o)!==-1&&this.editor.emit("clickLink",this.editor,t,o)});m(this,"handleDblClick",t=>{Hc(t.target)||this.editor.selectionHandler.handleDblClick(t)});m(this,"handleMouseDown",t=>{this.mouseDownEvent=t,this.isMoved=!1;const e=t.target;if(!!e&&e instanceof Node&&!Hc(e)){if(t.button===2){t.stopPropagation();return}if(e instanceof HTMLElement&&e.draggable){this.editor.selectionHandler.handleMouseDown(t,{autoScroll:!1}),this.editor.selectionHandler.stopSelection(),this.editor.input.focus();return}t.button===0&&(document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),this.editor.selectionHandler.handleMouseDown(t,{autoScroll:!0})),ye.isMobileSafari||this.editor.input.focus()}});m(this,"handleMouseMove",t=>{p(w1,this.mouseDownEvent,"no mouse down event");const e=t.x-this.mouseDownEvent.x,r=t.y-this.mouseDownEvent.y;(Math.abs(e)>=vB||Math.abs(r)>=vB)&&(this.editor.selectionHandler.handleMouseMove(t),this.isMoved=!0)});m(this,"handleMouseUp",t=>{t.button===0&&(this.editor.selectionHandler.handleMouseUp(t),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)),this.isMoved&&(document.addEventListener("click",this.handleCaptureClick,!0),document.addEventListener("dblclick",this.handleCaptureDbClick,!0)),this.isMoved=!1});m(this,"handleCaptureClick",t=>{document.removeEventListener("click",this.handleCaptureClick,!0),t.stopPropagation()});m(this,"handleCaptureDbClick",t=>{document.removeEventListener("dblclick",this.handleCaptureDbClick,!0),t.stopPropagation()});this.editor=t,this.rootContainer=e,this.editor=t,this.resizeObserver=new sa(this.handleResize),this.bindEvents(e)}bindEvents(t){this.resizeObserver.observe(t);const e=this.editor.rootElement;e.onmousedown=this.handleMouseDown,e.ondblclick=this.handleDblClick,e.onclick=this.handleClick,e.oncontextmenu=this.handleContextMenu}unbindEvents(){this.resizeObserver.disconnect();const t=this.editor.rootElement;t.onmousedown=null,t.ondblclick=null,t.onclick=null,t.oncontextmenu=null}destroy(){this.unbindEvents()}reload(){const t=this.editor.selection.range,e=$f(this.rootContainer);e.innerHTML="",R1(this.editor,this.rootContainer,[]);const r=this.editor.findBlockById(t.start.blockId);if(r)this.editor.selection.selectBlock(r,0);else{const i=Pe(this.rootContainer);this.editor.selection.selectBlock(i,0)}}}function BB(n){const t=g1(n.contentElement,"root","root");return n.rootContainer=t,R1(n,t,[]),new d7(n,t)}function yB(n,t,e,r){const i=Vf(n,r);if(i)return e.appendChild(i),setTimeout(()=>{n.emit("containerRemount",n,r)}),i;const o=g1(e,"child",r);return R1(n,o,t),o}function TB(n,t){const e=n.getBoundingClientRect().width;return t.withPadding?e:e-Jp(n)}function S1(n,t){let e=Number.MAX_SAFE_INTEGER;const r=be(t);for(let o=0;o<r.length;o++){const s=r[o],l=lB(n,s);l&&(e=Math.min(e,l))}return e===Number.MAX_SAFE_INTEGER?void 0:e+Jp(t)}function Jf(n,t){const e=be(t);return e.length!==1?!1:Te(n,e[0])}const h7=_("complex-block-position");class yi{constructor(t,e,r){m(this,"blockId");m(this,"childContainerId");m(this,"custom");t instanceof HTMLElement?this.blockId=dt(t):(p(h7,typeof t=="string",`not a valid block id: ${t}`),this.blockId=t),this.childContainerId=e,r!==void 0&&(this.custom=r)}isSimple(){return!1}}const m7=_("simple-block-position");class gn{constructor(t,e,r){m(this,"blockId");m(this,"offset");m(this,"type");t instanceof HTMLElement?this.blockId=dt(t):(p(m7,typeof t=="string",`not a valid block id: ${t}`),this.blockId=t),this.offset=e,this.type=r}isSimple(){return!0}}const L1=_("editor-position");function mt(n,t,e){return new gn(n,t,e)}function De(n,t,e){return new yi(n,t,e)}function Ti(n){return n instanceof gn}function Ca(n){return n instanceof yi}function I1(n,t,e){if(Ti(t)&&Ti(e)){const r=t,i=e;if(r.blockId===i.blockId)return r.offset-i.offset;const o=n.getBlockById(t.blockId),s=n.getBlockById(e.blockId);return p(L1,o!==s,"comparePosition: blocks are the same"),xm(o,s)}if(Ca(t)&&Ca(e)){const r=t,i=e;if(r.childContainerId===i.childContainerId)return 0;const o=n.getContainerById(r.childContainerId),s=n.getContainerById(i.childContainerId);return p(L1,o!==s,"comparePosition: containers are the same"),xm(o,s)}return p(L1,!1,"invalid "),0}const Um=_("simple-range");class vn{constructor(t,e){m(this,"editor");m(this,"_anchor");m(this,"_focus");m(this,"reverse");this.editor=t,this._anchor=e.anchor,this._focus=e.focus,this.reverse=I1(this.editor,this._anchor,this._focus)>0}isCollapsed(){return this.start.blockId===this.end.blockId&&this.start.offset===this.end.offset}isEqual(t){if(!(t instanceof vn))return!1;const e=t,{start:r,end:i}=e;return this.start.blockId===r.blockId&&this.start.offset===r.offset&&this.start.type===r.type&&this.end.blockId===i.blockId&&this.end.offset===i.offset&&this.end.type===i.type}isSimple(){return!0}isReverse(){return this.reverse}getEditor(){return this.editor}get start(){return this.reverse?this._focus:this._anchor}get end(){return this.reverse?this._anchor:this._focus}get anchor(){return this._anchor}get focus(){return this._focus}getSelectedBlocks(){const{editor:t}=this,e=t.getBlockById(this.start.blockId),r=t.getBlockById(this.end.blockId);p(Um,e,"no start block"),p(Um,r,"no end block");const i=ot(e),o=ot(r);p(Um,i===o,"invalid range");const s=[];if(e===r)s.push({block:e,start:this.start,end:this.end});else{const l=St(e),c=St(r);p(Um,l<c,"invalid range, start > index"),s.push({block:e,start:this.start,end:mt(e,bt(this.editor,e),"end")});const f=be(i);for(let h=l+1;h<c;h+=1){const C=f[h];s.push({block:C,start:mt(C,0,"home"),end:mt(C,bt(this.editor,C),"end")})}s.push({block:r,start:mt(r,0,"home"),end:this.end})}return s}getSelectedContainers(){return[]}getAnchorPos(){return this.isReverse()?this.end:this.start}getFocusedPos(){return this.isReverse()?this.start:this.end}clone(){return new vn(this.editor,this)}toDocRange(){return{anchor:this.anchor,focus:this.focus}}static from(t,e){return new vn(t,e)}}_("unknown-block");function g7(n,t,e,r,i){z(r,"unknown-block");const o=al(r,"div");return o.innerText=`unknown block (${i.type}): ${JSON.stringify(i)}`,o}function p7(n){return 1}function C7(n,t,e,r){return null}function E7(n,t,e,r){const i=Ne(e,r);if(!i||!t.contains(i)||!n.contains(t))return null;const o=dt(t),s=mt(o,0,"home"),l=mt(o,1,"end");return new vn(n,{anchor:s,focus:l})}function b7(n,t){const r=$t(n).getBoundingClientRect();return new DOMRect(r.left+r.width/2,r.top,1,r.height)}function x7(n,t,e,r){z(t,"selected")}function A7(n){n.rootContainer.querySelectorAll("div.unknown-block[data-type=editor-block]").forEach(t=>{lt(t,"selected")})}function v7(n,t,e,r){return`[unknown block, ${t.type}]`}const B7={blockType:"unknown-block",blockKind:"embed",createBlockContent:g7,getBlockTextLength:p7,getRangeFromPoint:E7,moveCaret:C7,getCaretRect:b7,updateSelection:x7,clearSelection:A7,convertTo:v7},D1=_("editor-blocks");class kB{constructor(t){m(this,"blocks",new Map);this.editor=t}registerBlockClass(t){const e=t.blockType,r=this.blocks.get(e);p(D1,!r,`duplicated block type: ${e}`),this.blocks.set(e,t)}getBlockClass(t){const e=this.blocks.get(t);return p(D1,e,`unknown block type: ${t}`),e}hasBlock(t){return this.blocks.has(t)}createBlock(t,e,r){const i=Jv(this.editor,t,r);let o;this.hasBlock(r.type)?o=this.getBlockClass(r.type):o=this.registerUnknownBlock(r.type);const s=o.createBlockContent(this.editor,t,e,i,r);return s.parentElement!==i&&(D1.warn("content parent is not block"),i.appendChild(s)),this.editor.blockHooks.forEach(l=>{var c;(c=l.create)==null||c.call(l,this.editor,t,e,i,r)}),i}forEach(t){this.blocks.forEach(t)}registerUnknownBlock(t){const e={...B7,blockType:t};return this.editor.editorBlocks.registerBlockClass(e),e}}const RB=_("editor-embeds");class wB{constructor(t){m(this,"objects",new Map);this.editor=t}registerEmbedClass(t){const e=t.embedType,r=this.objects.get(e);p(RB,!r,`duplicated embed object type: ${e}`),this.objects.set(e,t)}getEmbedClass(t){const e=this.objects.get(t);return p(RB,e,`unknown embed type: ${t}`),e}getEmbedClassFromBlock(t){return this.getEmbedClass(Ge(t))}forEach(t){this.objects.forEach(t)}}const SB=_("embed-block");function y7(n,t,e,r,i){const o=al(r,"div");p(SB,i.type==="embed",`not an embed data: ${JSON.stringify(i)}`);const s=i;return p(SB,s.embedType&&s.embedData,`not an embed data: ${JSON.stringify(s)}`),n.editorEmbeds.getEmbedClass(s.embedType).createEmbedContent(n,o,s,t,e,r),r.setAttribute("data-embed-type",s.embedType),o}function T7(n){return 1}function k7(n,t,e,r){return null}function R7(n,t,e,r){const i=Ne(e,r);if(!i||!t.contains(i)||!n.contains(t))return null;const o=dt(t),s=mt(o,0,"home"),l=mt(o,1,"end");return new vn(n,{anchor:s,focus:l})}function w7(n,t){const r=$t(n).getBoundingClientRect();return new DOMRect(r.left+r.width/2,r.top,1,r.height)}function S7(n,t,e,r){z(t,"selected")}function L7(n){n.rootContainer.querySelectorAll("div.embed-block[data-type=editor-block][data-block-type=embed]").forEach(t=>{lt(t,"selected")})}function I7(n,t,e){let r=null;return n.editorEmbeds.forEach(i=>{var s,l;const o=(l=(s=i.convertFrom)==null?void 0:s.call(i,n,t,e))!=null?l:null;o&&(r=o)}),r}function D7(n,t,e,r){const i=ga(n,t.embedType);return i.convertTo?i.convertTo(n,t,e,r):""}function _7(n,t){const e=s7(n,t);return e.getBlockProperties?e.getBlockProperties(n,t):{}}function M7(n){const t=new Map,e=[];return n.editorEmbeds.forEach(r=>{if(r.getOptions){const i=r.getOptions(n);i.insertEmbedCommandItems&&i.insertEmbedCommandItems.forEach(o=>{e.push(o),t.set(o.id,r)})}}),{name:"EmbedBlock",insertBlockCommandItems:e,async handleInsertEmptyBlock(r,i){const o=t.get(i.item.id);if(!o||!o.getOptions)return null;const s=o.getOptions(r);return s.handleInsertEmptyEmbed?s.handleInsertEmptyEmbed(r,i):null}}}function O7(n,t,e,r){const i=Ge(t),o=ga(n,i);!o.handleDeleteBlock||o.handleDeleteBlock(n,t,e,r)}function U7(n,t,e){const r=Ge(t),i=ga(n,r);return i.handleUpdateBlock?i.handleUpdateBlock(n,t,e):!1}function N7(n,t,e,r,i){const o=Ge(t),s=ga(n,o);if(s.handleDropOver)return s.handleDropOver(n,t,e,r,i)}function P7(n,t,e,r,i){const o=Ge(t),s=ga(n,o);if(s.handleDrop&&n.isWritable())return s.handleDrop(n,t,e,r,i)}async function F7(n,t,e){const r=t.embedType,i=n.editorEmbeds.getEmbedClass(r);if(i.toStandardDoc){const o=n.getBlockById(t.id),s=Xo(o);return i.toStandardDoc(n,t,e,s)}}function K7(n,t){const e=t.embedType,r=n.editorEmbeds.getEmbedClass(e);return r.getResources?r.getResources(n,t):null}const LB={blockType:"embed",blockKind:"embed",createBlockContent:y7,getBlockTextLength:T7,getRangeFromPoint:R7,moveCaret:k7,getCaretRect:w7,updateSelection:S7,clearSelection:L7,convertFrom:I7,convertTo:D7,getBlockProperties:_7,getOptions:M7,handleDeleteBlock:O7,handleUpdateBlock:U7,handleDropOver:N7,handleDrop:P7,toStandardDoc:F7,getResources:K7},Yn=_("complex-block-helper");function In(n,t,e){return Xr(n,t).getChildContainers(n,t,e)}function jc(n,t,e,r){return e.isSimple()?(p(Yn,r.isSimple(),"invalid start and end position"),In(n,t)):(p(Yn,!e.isSimple(),"invalid start pos"),p(Yn,!r.isSimple(),"invalid end pos"),Xr(n,t).getSelectedContainers(n,t,e,r))}function V7(n,t){if(St(t)!==0)return!1;const e=Q(ot(t));if(!e)return!1;p(Yn,Nt(n,e),"not a complex block");const r=ot(t),o=In(n,e).indexOf(r);return p(Yn,o>=0,"not valid child container"),o===0}function _1(n,t,e){const r=In(n,t,e);if(r.length===0)return null;const i=r[0];if(!i)return null;const o=Pe(i);return Nt(n,o)?_1(n,o,e):o}function zc(n,t,e){const r=In(n,t,e);if(r.length===0)return null;const i=r[r.length-1];if(!i)return null;const o=en(i);return Nt(n,o)?zc(n,o,e):o}function IB(n,t){const e=o=>{const s=In(n,o,{visibleOnly:!0});return s.length===0?null:s[0]};let r=t,i=Pe(r);for(;Nt(n,i);){if(r=e(i),!r)return null;i=Pe(r)}return i}function DB(n,t,e){p(Yn,xi(t),"not a child container");const r=Q(t);p(Yn,r,"no parent block"),p(Yn,Nt(n,r),"not a complex block");const i=In(n,r,e),o=i.indexOf(t);if(p(Yn,o!==-1,"child container not found"),o===0){const c=He(r);return c?Nt(n,c)?zc(n,c):c:null}const s=i[o-1],l=en(s);return Nt(n,l)?zc(n,l):l}function _B(n,t){p(Yn,Nt(n,t),"not a complex block");const e=In(n,t);if(p(Yn,e.length>0,"no child container"),e.length===1)return e;const r=e[0],i=r.getBoundingClientRect();let o=i.left,s=i.right;const l=[r];for(let c=1;c<e.length;c++){const f=e[c],h=f.getBoundingClientRect();if(h.right<=o){l.push(f),o=h.left;continue}if(h.left>=s){s=h.right;continue}}return l}function MB(n,t){p(Yn,Nt(n,t),"not a complex block");const e=In(n,t);if(p(Yn,e.length>0,"no child container"),e.length===1)return e;const r=e[e.length-1],i=r.getBoundingClientRect();let o=i.left,s=i.right;const l=[r];for(let c=e.length-2;c>=0;c--){const f=e[c],h=f.getBoundingClientRect();if(h.right<=o){l.push(f),o=h.left;continue}if(h.left>=s){s=h.right;continue}}return l}function $7(n,t,e,r){const i=t.getBoundingClientRect(),o=r<i.top,s=o?_B(n,t):MB(n,t);let l=s[0],c=il(l.getBoundingClientRect(),e,r);for(let f=1;f<s.length;f++){const h=s[f],C=h.getBoundingClientRect(),E=il(C,e,r);E<c&&(l=h,c=E)}return o?Pe(l):en(l)}function Nm(n,t,e,r){const i=dt(t);p(Yn,i===e.blockId,"invalid start pos"),p(Yn,i===r.blockId,"invalid end pos");const o=Xr(n,t);return o.adjustSelectionPos?o.adjustSelectionPos(n,t,e,r):{anchor:e,focus:r}}class ki{constructor(t,e){m(this,"editor");m(this,"reverse");m(this,"_anchor");m(this,"_focus");this.editor=t,this._anchor=e.anchor,this._focus=e.focus,this.reverse=I1(this.editor,this._anchor,this._focus)>0}isCollapsed(){return!1}isEqual(t){if(!(t instanceof ki))return!1;const e=t,{anchor:r,focus:i}=e;return this._anchor.blockId===r.blockId&&this._anchor.childContainerId===r.childContainerId&&this._focus.blockId===i.blockId&&this._focus.childContainerId===i.childContainerId&&this._anchor.custom===r.custom&&this._focus.custom===i.custom}isReverse(){return this.reverse}isSimple(){return!1}getEditor(){return this.editor}get anchor(){return this._anchor}get focus(){return this._focus}get start(){return this.reverse?this._focus:this._anchor}get end(){return this.reverse?this._anchor:this._focus}getSelectedBlocks(){const t=this.start,e=this.end;return[{block:this.editor.getBlockById(t.blockId),start:t,end:e}]}getAnchorPos(){return this._anchor}getFocusedPos(){return this._focus}getSelectedContainers(){const t=this.editor.getBlockById(this._anchor.blockId);return jc(this.editor,t,this.start,this.end)}clone(){return new ki(this.editor,this)}toDocRange(){return{anchor:this._anchor,focus:this._focus}}}const H7=_("selection-range");function pn(n,t){const{anchor:e,focus:r}=t;return e instanceof gn&&r instanceof gn?new vn(n,{anchor:e,focus:r}):(p(H7,e instanceof yi&&r instanceof yi,"start position type does not math end type"),new ki(n,{anchor:e,focus:r}))}function Ae(n,t,e,r){const i=new gn(t,e,"normal"),o=new gn(t,r!=null?r:e,"normal");return pn(n,{anchor:i,focus:o})}function j7(n){return!!n.anchor.childContainerId}function ul(n,t){var i,o;if(j7(t)){const s=De(t.anchor.blockId,t.anchor.childContainerId,(i=t.anchor)==null?void 0:i.custom),l=De(t.focus.blockId,t.focus.childContainerId,(o=t.focus)==null?void 0:o.custom);return pn(n,{anchor:s,focus:l})}const e=mt(t.anchor.blockId,t.anchor.offset,"normal"),r=mt(t.focus.blockId,t.focus.offset,"normal");return pn(n,{anchor:e,focus:r})}const M1=_("range-from-point");function Pm(n,t,e){const r=[0,-12,12];let i=t;const o=e;let s=Ne(i,o),l=Q(s);if(!l&&s&&n.contentElement.contains(s)){const c=n.rootContainer.getBoundingClientRect(),f=c.left+c.width/2;s=Ne(f,o),l=Q(s);let h=c;l&&(h=l.getBoundingClientRect()),t<h.left?i=h.left:t>h.right&&(i=h.right-5)}for(let c=0;c<r.length;c++){const f=Ne(i,o+r[c]);if(!f)continue;const h=f.getBoundingClientRect();if(f.clientWidth&&f.clientHeight&&c===0&&(h.left+f.clientWidth<i||h.top+f.clientHeight<o))return M1.debug("click on scrollbar, out of element rect"),null;if(c===0&&!n.rootContainer.contains(f)&&(i=n.rootContainer.getBoundingClientRect().left),!n.rootContainer.contains(f))continue;const C=Q(f);if(!C||!n.contains(C))continue;const E=jt(n,C).getRangeFromPoint(n,C,i,o+r[c]);if(E)return E}return null}function OB(n,t,e,r){const i=t.getBoundingClientRect();if(r<=i.top){const c=Pe(t),f=jt(n,c).getRangeFromPoint(n,c,e,c.getBoundingClientRect().top+4);if(f!=null&&f.isSimple())return vn.from(n,f);const h=mt(c,0,"home");return new vn(n,{anchor:h,focus:h})}let o=en(t);if(!ll(o)){const c=Yr(o);p(M1,c,"container must have visible block"),o=c}const s=jt(n,o).getRangeFromPoint(n,o,e,o.getBoundingClientRect().bottom-4);if(s!=null&&s.isSimple())return vn.from(n,s);if(Nt(n,o))return null;const l=mt(o,bt(n,o),"end");return new vn(n,{anchor:l,focus:l})}function O1(n,t,e){const r=Pm(n,t,e);if(r){if(r instanceof vn)return r;p(M1,r instanceof ki,`invalid range type: ${typeof r}`);const c=r,f=n.getContainerById(c.start.childContainerId);return OB(n,f,t,e)}const i=Ne(t,e);if(!i)return null;const{children:o}=i,s=Array.from(o).filter(c=>to(c));if(s.length===0)return null;const l=s.reduce((c,f)=>{const h=c.getBoundingClientRect(),C=f.getBoundingClientRect();return il(h,t,e)>il(C,t,e)?f:c});return OB(n,l,t,e)}function U1(n,t,e){const r=[];return be(t).forEach(o=>{r.push(o),Nt(n,o)&&In(n,o,e).forEach(l=>{r.push(...U1(n,l))})}),r}function N1(n,t){let e=U1(n,n.rootContainer,t);return t!=null&&t.simpleBlockOnly&&(e=e.filter(r=>!Nt(n,r))),e}function no(n,t){const e=n.selection.range.getSelectedBlocks(),r=[];for(const i of e)r.push(i),Nt(n,i.block)&&jc(n,i.block,i.start,i.end).forEach(s=>{const c=U1(n,s).map(f=>({block:f,start:mt(f,0,"home"),end:mt(f,bt(n,f),"home")}));r.push(...c)});return t!=null&&t.simpleBlockOnly?r.filter(i=>!Nt(n,i.block)):r}const act="",Bn=_("text-range");function z7(n,t){const e=(o,s)=>{if(Jo(o))return p(Bn,s===0,`invalid offset for insertion child: ${s}`),{child:o,container:o,offset:2};if(Rr(o))return p(Bn,s===0||s===1,`invalid offset for box: ${s}`),{child:o,container:o,offset:s===0?1:2};const l=o.firstChild;return p(Bn,l,"no child node for text child"),p(Bn,l instanceof Text||l instanceof HTMLBRElement,`invalid child for text child, ${l.nodeName}`),l instanceof HTMLBRElement?(p(Bn,s>=0&&s<=0,"invalid offset for text child"),{child:o,container:l,offset:s}):(p(Bn,s>=0&&s<=l.data.length,"invalid offset for text child"),{child:o,container:l,offset:s})};let r=0;const i=eo(n);for(let o=0;o<i.length;o++){const s=i[o],l=Zr(s);if(t===r)return[e(s,0)];if(t<r+l)return[e(s,t-r)];if(t===r+l){const c=[];c.push(e(s,Zr(s)));const f=i[o+1];return f&&c.push(e(f,0)),c}r+=l}p(Bn,!1,"failed to get range info")}function W7(n,t,e){if(t===e?p(Bn,Jo(n),"only insertion child can be zero offset"):p(Bn,t<e,`invalid start & end: ${t}, ${e}`),Jo(n)){p(Bn,t===e,`invalid insertion child range offset: ${t}, ${e}`),p(Bn,t===0,`invalid insertion child range start: ${t}`);const o=n;return p(Bn,o.children.length===3,`invalid insertion dom, children.length = ${o.children.length}`),Em(o,1,o,2)}if(Rr(n)){p(Bn,t+1===e,`invalid box child range offset: ${t}, ${e}`),p(Bn,t===0,`invalid box child range start: ${t}`);const o=n;return p(Bn,o.children.length===3,`invalid box dom, children.length = ${o.children.length}`),Em(o,1,o,2)}const r=Zr(n);p(Bn,e<=r,`invalid child end: ${e}, ${r}`);const i=n.firstChild;return p(Bn,i instanceof Text,"invalid block text child"),p(Bn,i.data.length>=e,`invalid range end: ${e}, ${i.data.length}`),Em(i,t,i,e)}const Ri=_("caret-rect");function G7(n,t){if(Mm(t)){const e=t,r=x1(e);if(e.getAttribute("data-box-type")==="br"){const i=$t(n),o=Number.parseFloat(window.getComputedStyle(i).lineHeight)||r.getBoundingClientRect().height,s=Array.from(r.getClientRects());p(Ri,s.length>0,"no box client rects");const l=i.getBoundingClientRect(),c=s[0],f=new DOMRect(l.left,c.bottom,1,o);return s.push(f),s}return r.getClientRects()}return A1(t).getClientRects()}function wr(n,t){var l,c,f;const e=z7(n,t.offset);if(e[1]&&e[0].child!==((l=e[1])==null?void 0:l.child)){if(t.type==="end"){const C=aa(e[0].child);return new DOMRect(C.right,C.top,1,C.height)}p(Ri,e[1],"invalid ranges");const h=bm(e[1].child);return new DOMRect(h.left,h.top,1,h.height)}let i=e[0];if(p(Ri,e.length>=1,"failed to get block range"),e.length===1)i=e[0];else{if(p(Ri,e.length>=2,`invalid range info length: ${e.length}`),Jo(e[e.length-1].child)){i=e[e.length-1];const h=i.child,E=A1(h).getClientRects();p(Ri,E.length>=1,"no client rects for box content");const b=E[E.length-1];return new DOMRect(b.right,b.y,1,b.height)}t.type==="home"?i=e[1]:t.type==="end"||Xf(e[0].child)?i=e[0]:Xf(e[1].child)&&(i=e[1])}if(i.container instanceof HTMLBRElement){p(Ri,t.offset===0,"invalid offset for empty block text");const h=i.container.parentElement;p(Ri,h,"invalid br parent");const C=h.getBoundingClientRect();return new DOMRect(C.left,C.top,1,C.height)}const o=ov(i.container,i.offset),s=Array.from(o.getClientRects());if(s.length===0){p(Ri,!Xf(i.child),"only box or insertion child range has zero client rect"),p(Ri,i.offset===1||i.offset===2,"invalid offset for box or insertion child");const h=i.child,C=G7(n,h);if(p(Ri,C.length>=1,"no client rects for box content"),i.offset===1){const b=C[0];return new DOMRect(b.x,b.y,1,b.height)}const E=C[C.length-1];if(t.type==="end"||i.offset===2){if(Mm(h)&&h.getAttribute("data-box-type")==="br"){const b=h.lastChild.getBoundingClientRect();return new DOMRect(E.right,b.top,1,b.height)}return new DOMRect(E.right,E.y,1,E.height)}return new DOMRect(E.x,E.y,1,E.height)}if(Lf()||la()){const h=document.createRange();h.selectNodeContents(i.container);const C=h.getClientRects();if(i.container.nodeType===Node.TEXT_NODE&&i.offset<((f=(c=i.container.textContent)==null?void 0:c.length)!=null?f:0)){const E=document.createRange();E.setStart(i.container,i.offset+1);const b=E.getClientRects();Array.from(C).forEach((v,k)=>{if(Math.floor(b[0].top)!==Math.floor(s[0].top)&&Math.floor(b[0].top)===Math.floor(v.top)){const{x:w,y:O,height:M}=C[k];s.length===1&&t.type==="home"&&s.push(new DOMRect(w,O,0,M))}})}if(i.container.nodeType===Node.TEXT_NODE&&i.offset>0){const E=document.createRange();E.setStart(i.container,i.offset-1);const b=E.getClientRects();Array.from(C).forEach((v,k)=>{if(Math.floor(b[0].top)!==Math.floor(s[0].top)&&Math.floor(b[0].top)===Math.floor(v.top)){const{y:w,height:O,right:M}=C[k];s.length===1&&t.type==="end"&&s.unshift(new DOMRect(M,w,0,O))}})}}return p(Ri,s.length>0,"no client rects for range"),t.type==="home"?s[s.length-1]:s[0]}const q7=_("core");function Qo(n,t,e,r){const i=xe(t);let o=i.querySelector(`.block-anchor[data-id=${e}]`);o||(o=B("div",["block-anchor"],i),o.setAttribute("data-id",e));const s=r!=null?r:t.getBoundingClientRect(),l=t.getBoundingClientRect(),c=new DOMRect(s.left-l.left,s.top-l.top,s.width,s.height);return o.style.left=`${c.left}px`,o.style.top=`${c.top}px`,o.style.width=`${c.width}px`,o.style.height=`${c.height}px`,o}function UB(n,t,e,r){p(q7,at(n,t),"not a text kind block");const i=wr(t,mt(t,e,"normal")),o=t.getBoundingClientRect(),s=xe(t);let l=s.querySelector(`.block-anchor[data-id=${r}]`);l||(l=B("div",["block-anchor"],s),l.setAttribute("data-id",r));const c=new DOMRect(i.left-o.left,i.top-o.top,i.width,i.height);return l.style.left=`${c.left}px`,l.style.top=`${c.top}px`,l.style.width=`${c.width}px`,l.style.height=`${c.height}px`,l}function Qf(n){const t=eo(n);let e=0;return t.forEach(r=>{e+=Zr(r)}),e}var X7=typeof global=="object"&&global&&global.Object===Object&&global;const Y7=X7;var J7=typeof self=="object"&&self&&self.Object===Object&&self,Q7=Y7||J7||Function("return this")(),Z7=Q7.Symbol;const Wc=Z7;var NB=Object.prototype,tD=NB.hasOwnProperty,eD=NB.toString,Zf=Wc?Wc.toStringTag:void 0;function nD(n){var t=tD.call(n,Zf),e=n[Zf];try{n[Zf]=void 0;var r=!0}catch{}var i=eD.call(n);return r&&(t?n[Zf]=e:delete n[Zf]),i}var rD=Object.prototype,iD=rD.toString;function oD(n){return iD.call(n)}var sD="[object Null]",lD="[object Undefined]",PB=Wc?Wc.toStringTag:void 0;function aD(n){return n==null?n===void 0?lD:sD:PB&&PB in Object(n)?nD(n):oD(n)}function cD(n){return n!=null&&typeof n=="object"}var uD="[object Symbol]";function fD(n){return typeof n=="symbol"||cD(n)&&aD(n)==uD}function dD(n,t){for(var e=-1,r=n==null?0:n.length,i=Array(r);++e<r;)i[e]=t(n[e],e,n);return i}var hD=Array.isArray;const mD=hD;var gD=1/0,FB=Wc?Wc.prototype:void 0,KB=FB?FB.toString:void 0;function VB(n){if(typeof n=="string")return n;if(mD(n))return dD(n,VB)+"";if(fD(n))return KB?KB.call(n):"";var t=n+"";return t=="0"&&1/n==-gD?"-0":t}function $B(n){return n==null?"":VB(n)}function pD(n,t,e,r){var i=-1,o=n==null?0:n.length;for(r&&o&&(e=n[++i]);++i<o;)e=t(e,n[i],i,n);return e}function CD(n){return function(t){return n==null?void 0:n[t]}}var ED={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},bD=CD(ED);const xD=bD;var AD=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vD="\\u0300-\\u036f",BD="\\ufe20-\\ufe2f",yD="\\u20d0-\\u20ff",TD=vD+BD+yD,kD="["+TD+"]",RD=RegExp(kD,"g");function wD(n){return n=$B(n),n&&n.replace(AD,xD).replace(RD,"")}var SD=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function LD(n){return n.match(SD)||[]}var ID=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function DD(n){return ID.test(n)}var HB="\\ud800-\\udfff",_D="\\u0300-\\u036f",MD="\\ufe20-\\ufe2f",OD="\\u20d0-\\u20ff",UD=_D+MD+OD,jB="\\u2700-\\u27bf",zB="a-z\\xdf-\\xf6\\xf8-\\xff",ND="\\xac\\xb1\\xd7\\xf7",PD="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",FD="\\u2000-\\u206f",KD=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",WB="A-Z\\xc0-\\xd6\\xd8-\\xde",VD="\\ufe0e\\ufe0f",GB=ND+PD+FD+KD,qB="['\u2019]",XB="["+GB+"]",$D="["+UD+"]",YB="\\d+",HD="["+jB+"]",JB="["+zB+"]",QB="[^"+HB+GB+YB+jB+zB+WB+"]",jD="\\ud83c[\\udffb-\\udfff]",zD="(?:"+$D+"|"+jD+")",WD="[^"+HB+"]",ZB="(?:\\ud83c[\\udde6-\\uddff]){2}",t3="[\\ud800-\\udbff][\\udc00-\\udfff]",Gc="["+WB+"]",GD="\\u200d",e3="(?:"+JB+"|"+QB+")",qD="(?:"+Gc+"|"+QB+")",n3="(?:"+qB+"(?:d|ll|m|re|s|t|ve))?",r3="(?:"+qB+"(?:D|LL|M|RE|S|T|VE))?",i3=zD+"?",o3="["+VD+"]?",XD="(?:"+GD+"(?:"+[WD,ZB,t3].join("|")+")"+o3+i3+")*",YD="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",JD="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",QD=o3+i3+XD,ZD="(?:"+[HD,ZB,t3].join("|")+")"+QD,t8=RegExp([Gc+"?"+JB+"+"+n3+"(?="+[XB,Gc,"$"].join("|")+")",qD+"+"+r3+"(?="+[XB,Gc+e3,"$"].join("|")+")",Gc+"?"+e3+"+"+n3,Gc+"+"+r3,JD,YD,YB,ZD].join("|"),"g");function e8(n){return n.match(t8)||[]}function n8(n,t,e){return n=$B(n),t=e?void 0:t,t===void 0?DD(n)?e8(n):LD(n):n.match(t)||[]}var r8="['\u2019]",i8=RegExp(r8,"g");function o8(n){return function(t){return pD(n8(wD(t).replace(i8,"")),n,"")}}var s8=o8(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()});const l8=s8,s3=_("box");function Zo(n){return!n.attributes||!n.attributes.box?!1:(p(s3,typeof n.attributes.box=="string"&&n.attributes.box==="true"||n.attributes.box===!0,`invalid op attribute box property, ${n.attributes.box}`),p(s3,n.attributes.type,`no box type: ${JSON.stringify(n)}`),!0)}const l3=_("text-op");function Fm(n){return p(l3,typeof n.insert=="string","invalid op, no insert"),n.insert.length}function a3(n,t){const e=n;let r=0;for(let i=0;i<e.length;i++){const o=e[i];p(l3,typeof o.insert=="string","invalid text op, no insert");const s=r+Fm(o);if(s>t)return[o];if(s===t){const l=[o];return i<e.length-1&&l.push(e[i+1]),l}r=s}return[]}const c3=_("rich-text-length");function P1(n){return p(c3,typeof n.insert=="string","op.insert is not string"),n.insert.length}function $n(n){let t=0;return n.forEach(e=>{e.insert&&(p(c3,typeof e.insert=="string","op.insert is not string"),t+=P1(e))}),t}const ro=_("split-text");function sr(n,t,e){if(n=At.default(n),t===0)return{left:[],right:n};if(t===-1)return{left:n,right:[]};let r=0;for(let i=0;i<n.length;i++){const o=n[i];p(ro,typeof o=="object",`invalid op type, ${typeof o}`),p(ro,typeof o.insert=="string",`invalid op.insert type, ${typeof o.insert}`);const s=P1(o);if(r+s<t)r+=s;else{if(r+s===t)return{left:n.slice(0,i+1),right:n.slice(i+1)};{p(ro,r+s>t,`invalid offset, ${r}, ${s}, ${t}`);const l=t-r,c=At.default(o);p(ro,c.insert,"no copied.insert"),p(ro,typeof c.insert=="string","invalid copied.insert type"),c.insert=c.insert.substr(0,l),o.insert=o.insert.substr(l),c.insert===""&&p(ro,!1,"invalid copied.insert, is empty string"),o.insert===""&&p(ro,!1,"invalid op.insert, is empty string");const f=[o,...n.slice(i+1)],h=[...n.splice(0,i),c];return e&&(e.sourceOp=o),{left:h,right:f}}}}throw new Error(`invalid split offset: ${t}, ${JSON.stringify(n)}`)}function Cn(n,t,e){p(ro,t>=0,"invalid offset, < 0"),p(ro,e>0,"invalid length, <= 0"),p(ro,t+e<=$n(n),"invalid offset + length < text length");const{left:r,right:i}=sr(n,t+e),{left:o,right:s}=sr(r,t);return{left:o,middle:s,right:i}}function u3(n,t){const e=Array.from(new Set(t)).sort((o,s)=>o-s),r=[];let i=n;for(let o=e.length-1;o>=0;o--){const s=e[o],{left:l,right:c}=sr(i,s);i=l,r.unshift(c)}return i.length>0&&r.unshift(i),r}function f3(n,t,e){return Cn(n,t,e).middle}const F1="style-color-",K1="style-bg-color-";function Km(n,t,e){const r=At.default(n);return r.forEach(i=>{if(!(i.attributes&&i.attributes.box===!0&&!t.startsWith("comment-")))if(e===void 0){if(!i.attributes||i.attributes[t]===void 0)return;delete i.attributes[t],Object.keys(i.attributes).length===0&&delete i.attributes}else i.attributes||(i.attributes={}),i.attributes[t]=e}),r}function V1(n,t,e,r){const i=At.default(n);return i.forEach(o=>{o.attributes&&o.attributes.box===!0&&!(r!=null&&r.handleBox)||o.attributes&&((r==null?void 0:r.ignoreValue)||o.attributes[t]===e)&&(delete o.attributes[t],Object.keys(o.attributes).length===0&&delete o.attributes)}),i}function td(n,t,e,r,i){if(t===0)return e;const o=Cn(e,n,t);return[...o.left,...Km(o.middle,r,i),...o.right]}function qc(n,t,e,r,i,o){if(t===0)return e;const s=Cn(e,n,t);return[...s.left,...V1(s.middle,r,i,o),...s.right]}function Xc(n,t){const e=a3(n,t);if(e.length===1)return e[0].attributes;if(e.length===2)return e[1].attributes}function d3(n,t,e,r){if(t===0)return e;const i=Cn(e,n,t),o=i.middle.map(s=>r(s));return[...i.left,...o,...i.right]}function h3(n,t){t==="color"?Object.keys(n).forEach(e=>{(e.startsWith("style-color-")||e==="inline-style-color")&&delete n[e]}):t==="backgroundColor"&&Object.keys(n).forEach(e=>{e.startsWith("style-bg-color-")&&delete n[e]})}function a8(n,t){if(!n.attributes||n.attributes.box)return;const e=n.attributes;h3(e,t),Object.keys(e).length===0&&delete n.attributes}function c8(n,t,e){n.attributes||(n.attributes={}),!n.attributes.box&&(t==="color"?n.attributes[`style-color-${e}`]=!0:n.attributes[`style-bg-color-${e}`]=!0)}function m3(n,t,e,r,i){const o=At.default(e);return d3(n,t,o,l=>(a8(l,r),i!==null&&c8(l,r,i),l))}function $1(n){var i,o;if(!n||n.box)return[null,null];const t=Array.from(Object.keys(n));let e=null,r=null;for(let s=0;s<t.length;s++){const l=t[s];l.startsWith(F1)?e=(i=Number.parseInt(l.substring(F1.length),10))!=null?i:null:l.startsWith(K1)&&(r=(o=Number.parseInt(l.substring(K1.length),10))!=null?o:null)}return[e,r]}function g3(n,t,e){h3(n,t),t==="color"?n[`style-color-${e}`]=!0:n[`style-bg-color-${e}`]=!0}function p3(n){return n.attributes?n.attributes.box?[null,null]:$1(n.attributes):[null,null]}function C3(n,t,e){let r=[];if(t===0?n!==0&&(r=Cn(e,n-1,1).middle):r=Cn(e,n,t).middle,r.length===0)return[null,null];let[i,o]=p3(r[0]);if(i===null&&o===null)return[i,o];for(let s=1;s<r.length;s++){const l=r[s];if(!l.attributes)return[null,null];if(l.attributes.box)continue;const[c,f]=p3(l);c===null||i===null?i=null:i=c===i?i:null,f===null||o===null?o=null:o=f===o?o:null}return[i,o]}const Yc=_("text-block-content");function u8(n,t,e,r,i){if(p(Yc,r,"no text for block"),r.length===0&&(!i||i.size===0)){e.innerHTML="<span><br></span>";return}const o=[];i&&o.push(...i.keys());const s=C=>n.editorInsertions.createInsertion(e,C),l=(C,E)=>{const b=i==null?void 0:i.get(E);b&&(b.forEach(v=>{C.appendChild(s(v))}),i==null||i.delete(E))},c=document.createDocumentFragment();let f=0;const h=u3(r,o);for(let C=0;C<h.length;C++){l(c,f);const E=h[C];f+=$n(E);for(let b=0;b<E.length;b++){const v=E[b];if(Zo(v)){p(Yc,v.attributes,`op is not an valid box: ${JSON.stringify(v)}`);const w=n.editorBoxes.createBox(e,v.attributes);p(Yc,w instanceof HTMLSpanElement,`invalid box element: ${w.tagName}`);const O=n.editorBlockRenders.renderBox(t,v.attributes);O.classes&&z(w,...O.classes),O.attributes&&Object.entries(O.attributes).forEach(([M,F])=>{w.setAttribute(M,F)}),O.styles&&Object.entries(O.styles).forEach(([M,F])=>{w.style.setProperty(M,F)}),c.appendChild(w);continue}p(Yc,v.insert,`no insert in op: ${JSON.stringify(v)}`);const k=B("span",["text"],c,v.insert);if(v.attributes){const w=n.editorBlockRenders.renderText(t,v.attributes);w.classes&&z(k,...w.classes),w.attributes&&Object.entries(w.attributes).forEach(([O,M])=>{k.setAttribute(O,M)}),w.styles&&Object.entries(w.styles).forEach(([O,M])=>{k.style.setProperty(l8(O),M)})}c.appendChild(k)}}l(c,f),e.innerHTML="",e.appendChild(c)}function Vm(n,t,e,r,i){const{text:o,insertions:s}=n.editorDecorators.decorateText(t,i),l=n.compositingText;if(l){const c=n.selection.range.start;if(p(Yc,c.isSimple(),"not an simple position while compositing"),c.blockId===e){const f=Xc(o,0);s.set(c.offset,[{type:"inputting",id:rt(),text:l,attributes:f}])}}return u8(n,t,r,o,s)}function f8(n){const t=n.rootContainer.querySelectorAll('span[data-type="editor-insertion"].inputting-insertion');t.length&&Yc.debug(`remove ${t.length} temp composition span`),Array.from(t).forEach(e=>e.remove())}const io=_("client-rects");function d8(n){const t=eo(n);let e=0;const r=[];for(let i=0;i<t.length;i++){const o=t[i],s=Zr(o);r.push({child:o,startBlockOffset:e,endBlockOffset:e+s}),e+=s}return r}function h8(n,t,e,r){p(io,e<r,`invalid from & to: ${e}, ${r}`);const i=bt(n,t);p(io,e>=0&&r>=0&&e<=i&&r<=i,`invalid offset: ${e}, ${r}, length: ${i}`);const o=d8(t),s=o.findIndex(b=>b.startBlockOffset<=e&&e<b.endBlockOffset),l=o.findIndex(b=>b.startBlockOffset<r&&r<=b.endBlockOffset);if(p(io,s!==-1,"failed to find start child"),p(io,l!==-1,"failed to find end child"),p(io,s<=l,`invalid start index & end index: ${s}, ${l}`),s===l){const b=o[s];return[{child:b.child,startChildOffset:e-b.startBlockOffset,endChildOffset:r-b.startBlockOffset}]}const c=[],f=o[s],h={child:f.child,startChildOffset:e-f.startBlockOffset,endChildOffset:Zr(f.child)};c.push(h);for(let b=s+1;b<l;b++){const v=o[b],k={child:v.child,startChildOffset:0,endChildOffset:v.endBlockOffset-v.startBlockOffset};c.push(k)}const C=o[l],E={child:C.child,startChildOffset:0,endChildOffset:r-C.startBlockOffset};return c.push(E),c}function m8(n){const t=(r,i)=>r.left<=i.left&&r.top<=i.top&&r.right>=i.right&&r.bottom>=i.bottom&&(r.width!==i.width||r.height!==i.height);n=n.filter(r=>!n.find(o=>t(r,o)));const e=[];return n=n.filter(r=>e.find(i=>i.left===r.left&&i.top===r.top&&i.width===r.width&&i.height===r.height)?!1:(e.push(r),!0)),n}function E3(n,t,e,r){if(bt(n,t)===0){const h=$t(t).getBoundingClientRect();return[new DOMRect(h.left,h.top,4,h.height)]}const i=e.offset,o=r.offset;if(i===o)return[wr(t,e)];const l=h8(n,t,i,o).map(f=>W7(f.child,f.startChildOffset,f.endChildOffset)),c=[];return l.forEach(f=>{const h=m8(Array.from(f.getClientRects()));c.push(...h)}),c}function g8(n,t,e){p(io,e instanceof vn,"invalid range");const r=e.start,i=e.end;return p(io,r.isSimple(),"text block only allow simple position"),p(io,i.isSimple(),"text block only allow simple position"),p(io,r.blockId===i.blockId,"only allow update one text block selection"),p(io,r.blockId===dt(t),"only allow update one text block selection"),E3(n,t,r,i)}const H1=_("selection-background");function p8(n,t,e,r){p(H1,e.isSimple(),"text block only allow simple position"),p(H1,r.isSimple(),"text block only allow simple position"),p(H1,e.blockId===r.blockId,"only allow update one text block selection");const i=e.offset,o=r.offset;if(i===o&&(bt(n,t)!==0||n.selection.range.isCollapsed())){const h=E1(t);Array.from(h.children).forEach(C=>{C.remove()});return}const s=E3(n,t,e,r),l=t.getBoundingClientRect(),c=Gr(t),f=E1(t);Array.from(f.children).forEach((h,C)=>{if(C<s.length){const E=s[C],b=h;b.style.left=`${(E.left-l.left-t.clientLeft)/c}px`,b.style.top=`${(E.top-l.top-t.clientTop)/c}px`,b.style.width=`${E.width/c}px`,b.style.height=`${E.height/c}px`}else h.remove()}),s.slice(f.children.length).forEach(h=>{const C=B("div",["editor-selection-background"],f);C.style.left=`${(h.left-l.left-t.clientLeft)/c}px`,C.style.top=`${(h.top-l.top-t.clientTop)/c}px`,C.style.width=`${h.width/c}px`,C.style.height=`${h.height/c}px`})}function C8(n){const t=n.selection.range.getSelectedBlocks(),e=n.selection.range.isCollapsed();n.rootContainer.querySelectorAll("div[data-type=block-background]").forEach(r=>{const i=Q(r);i&&at(n,i)&&(!t.find(o=>o.block===i)||e)&&r.remove()})}const ed=_("line-breaker");function b3(n){const t=[];let e=null;for(let r=0;r<n.length;r++){let i=n[r];!!e&&i.top===e.top?(i=new DOMRect(e.left,e.top,e.width+i.width,i.height),t.splice(t.length-1,1,i)):t.push(i),e=i}return t}function E8(n){const t=document.createRange();return t.setStart(n,0),t.setEnd(n,n.data.length),b3(t.getClientRects())}function nd(n){const t=l=>{if(!l)return!1;const c=bm(l);return aa(l).top>c.top+c.height/2},e=(l,c)=>{const f=aa(l),h=bm(c);return Math.floor(h.left)<Math.floor(f.right)},r=(l,c)=>{const f=aa(l),h=aa(c);return h.top+h.height/2>f.bottom},i=[];let o=0;const s=eo(n);for(let l=0;l<s.length;l++){const c=s[l];if(Jo(c)){const v=c,k=s[l+1];if(!k)break;const w=s[l-1];if(w&&r(w,v)&&i.push({offset:o,type:"betweenChild",childInfo:{prevChild:w,nextChild:v,wrap:"nextWrapped",prevWrapped:t(w),nextWrapped:t(v)}}),e(v,k)){i.push({offset:o,type:"betweenChild",childInfo:{prevChild:w,nextChild:v,wrap:"nowrap",prevWrapped:t(w),nextWrapped:t(v)}});continue}continue}if(Rr(c)){const v=c,k=s[l+1];if(!k)break;const w=s[l-1];if(w&&r(w,v)&&i.push({offset:o,type:"betweenChild",childInfo:{prevChild:w,nextChild:v,wrap:"nextWrapped",prevWrapped:t(w),nextWrapped:t(v)}}),e(v,k)){o+=1,i.push({offset:o,type:"betweenChild",childInfo:{prevChild:w,nextChild:c,wrap:"nowrap",prevWrapped:t(w),nextWrapped:t(c)}});continue}o+=1;continue}const f=c,h=b3(f.getClientRects());if(p(ed,h.length>0,"invalid text child dom"),h.length===1){const v=s[l+1];if(!v)break;if(e(f,v)){o+=Zr(f),i.push({offset:o,type:"betweenChild",childInfo:{prevChild:f,nextChild:v,wrap:"nowrap",prevWrapped:t(f),nextWrapped:t(v)}});continue}o+=Zr(f);continue}const C=f.firstChild;p(ed,C,"invalid text child, no text node"),p(ed,C instanceof Text,`invalid text child, not a valid text node: ${typeof C}`);const E=Zr(f);p(ed,C.data.length===E,"text node data length not equal child text length");const b=E8(C);for(let v=0;v<b.length-1;v++){const k=b[v],w=Yp(k.right,k.top+k.height-1);w.offset>-1&&w.textNode===C&&i.push({offset:o+w.offset,type:"textBreakWord",childInfo:{prevChild:c,nextChild:c,wrap:"nowrap",prevWrapped:t(c),nextWrapped:t(c)}})}o+=E}return i}function j1(n,t){const e=nd(n);for(let r=0;r<e.length;r++){const{offset:i}=e[r];if(t.offset<i)return{lineIndex:r,lineBreaks:e};if(t.offset===i&&t.type==="end")return{lineIndex:r,lineBreaks:e}}return p(ed,t.offset<=Qf(n),"invalid position, offset > block length"),{lineIndex:e.length,lineBreaks:e}}var yn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},x3={},z1={},W1={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.EXTENDED_PICTOGRAPHIC=n.CLUSTER_BREAK=void 0,function(t){t[t.CR=0]="CR",t[t.LF=1]="LF",t[t.CONTROL=2]="CONTROL",t[t.EXTEND=3]="EXTEND",t[t.REGIONAL_INDICATOR=4]="REGIONAL_INDICATOR",t[t.SPACINGMARK=5]="SPACINGMARK",t[t.L=6]="L",t[t.V=7]="V",t[t.T=8]="T",t[t.LV=9]="LV",t[t.LVT=10]="LVT",t[t.OTHER=11]="OTHER",t[t.PREPEND=12]="PREPEND",t[t.E_BASE=13]="E_BASE",t[t.E_MODIFIER=14]="E_MODIFIER",t[t.ZWJ=15]="ZWJ",t[t.GLUE_AFTER_ZWJ=16]="GLUE_AFTER_ZWJ",t[t.E_BASE_GAZ=17]="E_BASE_GAZ"}(n.CLUSTER_BREAK||(n.CLUSTER_BREAK={})),n.EXTENDED_PICTOGRAPHIC=101})(W1);var G1={};Object.defineProperty(G1,"__esModule",{value:!0});const Qt=W1,ts=0,q1=1,b8=2,x8=3,A8=4;class v8{static isSurrogate(t,e){return 55296<=t.charCodeAt(e)&&t.charCodeAt(e)<=56319&&56320<=t.charCodeAt(e+1)&&t.charCodeAt(e+1)<=57343}static codePointAt(t,e){e===void 0&&(e=0);const r=t.charCodeAt(e);if(55296<=r&&r<=56319&&e<t.length-1){const i=r,o=t.charCodeAt(e+1);return 56320<=o&&o<=57343?(i-55296)*1024+(o-56320)+65536:i}if(56320<=r&&r<=57343&&e>=1){const i=t.charCodeAt(e-1),o=r;return 55296<=i&&i<=56319?(i-55296)*1024+(o-56320)+65536:o}return r}static shouldBreak(t,e,r,i,o,s){const l=[t].concat(e).concat([r]),c=[i].concat(o).concat([s]),f=l[l.length-2],h=r,C=s,E=l.lastIndexOf(Qt.CLUSTER_BREAK.REGIONAL_INDICATOR);if(E>0&&l.slice(1,E).every(function(v){return v===Qt.CLUSTER_BREAK.REGIONAL_INDICATOR})&&[Qt.CLUSTER_BREAK.PREPEND,Qt.CLUSTER_BREAK.REGIONAL_INDICATOR].indexOf(f)===-1)return l.filter(function(v){return v===Qt.CLUSTER_BREAK.REGIONAL_INDICATOR}).length%2===1?x8:A8;if(f===Qt.CLUSTER_BREAK.CR&&h===Qt.CLUSTER_BREAK.LF)return ts;if(f===Qt.CLUSTER_BREAK.CONTROL||f===Qt.CLUSTER_BREAK.CR||f===Qt.CLUSTER_BREAK.LF)return q1;if(h===Qt.CLUSTER_BREAK.CONTROL||h===Qt.CLUSTER_BREAK.CR||h===Qt.CLUSTER_BREAK.LF)return q1;if(f===Qt.CLUSTER_BREAK.L&&(h===Qt.CLUSTER_BREAK.L||h===Qt.CLUSTER_BREAK.V||h===Qt.CLUSTER_BREAK.LV||h===Qt.CLUSTER_BREAK.LVT))return ts;if((f===Qt.CLUSTER_BREAK.LV||f===Qt.CLUSTER_BREAK.V)&&(h===Qt.CLUSTER_BREAK.V||h===Qt.CLUSTER_BREAK.T))return ts;if((f===Qt.CLUSTER_BREAK.LVT||f===Qt.CLUSTER_BREAK.T)&&h===Qt.CLUSTER_BREAK.T)return ts;if(h===Qt.CLUSTER_BREAK.EXTEND||h===Qt.CLUSTER_BREAK.ZWJ)return ts;if(h===Qt.CLUSTER_BREAK.SPACINGMARK)return ts;if(f===Qt.CLUSTER_BREAK.PREPEND)return ts;const b=c.slice(0,-1).lastIndexOf(Qt.EXTENDED_PICTOGRAPHIC);return b!==-1&&c[b]===Qt.EXTENDED_PICTOGRAPHIC&&l.slice(b+1,-2).every(function(v){return v===Qt.CLUSTER_BREAK.EXTEND})&&f===Qt.CLUSTER_BREAK.ZWJ&&C===Qt.EXTENDED_PICTOGRAPHIC?ts:e.indexOf(Qt.CLUSTER_BREAK.REGIONAL_INDICATOR)!==-1?b8:f===Qt.CLUSTER_BREAK.REGIONAL_INDICATOR&&h===Qt.CLUSTER_BREAK.REGIONAL_INDICATOR?ts:q1}}G1.default=v8;var X1={};Object.defineProperty(X1,"__esModule",{value:!0});class B8{constructor(t,e){this._index=0,this._str=t,this._nextBreak=e}[Symbol.iterator](){return this}next(){let t;if((t=this._nextBreak(this._str,this._index))<this._str.length){const e=this._str.slice(this._index,t);return this._index=t,{value:e,done:!1}}if(this._index<this._str.length){const e=this._str.slice(this._index);return this._index=this._str.length,{value:e,done:!1}}return{value:void 0,done:!0}}}X1.default=B8;var A3=yn&&yn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(z1,"__esModule",{value:!0});const d=W1,$m=A3(G1),y8=A3(X1);class es{static nextBreak(t,e){if(e===void 0&&(e=0),e<0)return 0;if(e>=t.length-1)return t.length;const r=$m.default.codePointAt(t,e),i=es.getGraphemeBreakProperty(r),o=es.getEmojiProperty(r),s=[],l=[];for(let c=e+1;c<t.length;c++){if($m.default.isSurrogate(t,c-1))continue;const f=$m.default.codePointAt(t,c),h=es.getGraphemeBreakProperty(f),C=es.getEmojiProperty(f);if($m.default.shouldBreak(i,s,h,o,l,C))return c;s.push(h),l.push(C)}return t.length}splitGraphemes(t){const e=[];let r=0,i;for(;(i=es.nextBreak(t,r))<t.length;)e.push(t.slice(r,i)),r=i;return r<t.length&&e.push(t.slice(r)),e}iterateGraphemes(t){return new y8.default(t,es.nextBreak)}countGraphemes(t){let e=0,r=0,i;for(;(i=es.nextBreak(t,r))<t.length;)r=i,e++;return r<t.length&&e++,e}static getGraphemeBreakProperty(t){if(t<48905){if(t<44116){if(t<4141){if(t<2818){if(t<2363)if(t<1759){if(t<1471){if(t<127){if(t<11){if(t<10){if(0<=t&&t<=9)return d.CLUSTER_BREAK.CONTROL}else if(t===10)return d.CLUSTER_BREAK.LF}else if(t<13){if(11<=t&&t<=12)return d.CLUSTER_BREAK.CONTROL}else if(t<14){if(t===13)return d.CLUSTER_BREAK.CR}else if(14<=t&&t<=31)return d.CLUSTER_BREAK.CONTROL}else if(t<768){if(t<173){if(127<=t&&t<=159)return d.CLUSTER_BREAK.CONTROL}else if(t===173)return d.CLUSTER_BREAK.CONTROL}else if(t<1155){if(768<=t&&t<=879)return d.CLUSTER_BREAK.EXTEND}else if(t<1425){if(1155<=t&&t<=1161)return d.CLUSTER_BREAK.EXTEND}else if(1425<=t&&t<=1469)return d.CLUSTER_BREAK.EXTEND}else if(t<1552){if(t<1476){if(t<1473){if(t===1471)return d.CLUSTER_BREAK.EXTEND}else if(1473<=t&&t<=1474)return d.CLUSTER_BREAK.EXTEND}else if(t<1479){if(1476<=t&&t<=1477)return d.CLUSTER_BREAK.EXTEND}else if(t<1536){if(t===1479)return d.CLUSTER_BREAK.EXTEND}else if(1536<=t&&t<=1541)return d.CLUSTER_BREAK.PREPEND}else if(t<1648){if(t<1564){if(1552<=t&&t<=1562)return d.CLUSTER_BREAK.EXTEND}else if(t<1611){if(t===1564)return d.CLUSTER_BREAK.CONTROL}else if(1611<=t&&t<=1631)return d.CLUSTER_BREAK.EXTEND}else if(t<1750){if(t===1648)return d.CLUSTER_BREAK.EXTEND}else if(t<1757){if(1750<=t&&t<=1756)return d.CLUSTER_BREAK.EXTEND}else if(t===1757)return d.CLUSTER_BREAK.PREPEND}else if(t<2075){if(t<1840)if(t<1770){if(t<1767){if(1759<=t&&t<=1764)return d.CLUSTER_BREAK.EXTEND}else if(1767<=t&&t<=1768)return d.CLUSTER_BREAK.EXTEND}else if(t<1807){if(1770<=t&&t<=1773)return d.CLUSTER_BREAK.EXTEND}else{if(t===1807)return d.CLUSTER_BREAK.PREPEND;if(t===1809)return d.CLUSTER_BREAK.EXTEND}else if(t<2027){if(t<1958){if(1840<=t&&t<=1866)return d.CLUSTER_BREAK.EXTEND}else if(1958<=t&&t<=1968)return d.CLUSTER_BREAK.EXTEND}else if(t<2045){if(2027<=t&&t<=2035)return d.CLUSTER_BREAK.EXTEND}else if(t<2070){if(t===2045)return d.CLUSTER_BREAK.EXTEND}else if(2070<=t&&t<=2073)return d.CLUSTER_BREAK.EXTEND}else if(t<2200){if(t<2089){if(t<2085){if(2075<=t&&t<=2083)return d.CLUSTER_BREAK.EXTEND}else if(2085<=t&&t<=2087)return d.CLUSTER_BREAK.EXTEND}else if(t<2137){if(2089<=t&&t<=2093)return d.CLUSTER_BREAK.EXTEND}else if(t<2192){if(2137<=t&&t<=2139)return d.CLUSTER_BREAK.EXTEND}else if(2192<=t&&t<=2193)return d.CLUSTER_BREAK.PREPEND}else if(t<2275){if(t<2250){if(2200<=t&&t<=2207)return d.CLUSTER_BREAK.EXTEND}else if(t<2274){if(2250<=t&&t<=2273)return d.CLUSTER_BREAK.EXTEND}else if(t===2274)return d.CLUSTER_BREAK.PREPEND}else if(t<2307){if(2275<=t&&t<=2306)return d.CLUSTER_BREAK.EXTEND}else{if(t===2307)return d.CLUSTER_BREAK.SPACINGMARK;if(t===2362)return d.CLUSTER_BREAK.EXTEND}else if(t<2561){if(t<2434){if(t<2381){if(t<2366){if(t===2363)return d.CLUSTER_BREAK.SPACINGMARK;if(t===2364)return d.CLUSTER_BREAK.EXTEND}else if(t<2369){if(2366<=t&&t<=2368)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2377){if(2369<=t&&t<=2376)return d.CLUSTER_BREAK.EXTEND}else if(2377<=t&&t<=2380)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2385){if(t<2382){if(t===2381)return d.CLUSTER_BREAK.EXTEND}else if(2382<=t&&t<=2383)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2402){if(2385<=t&&t<=2391)return d.CLUSTER_BREAK.EXTEND}else if(t<2433){if(2402<=t&&t<=2403)return d.CLUSTER_BREAK.EXTEND}else if(t===2433)return d.CLUSTER_BREAK.EXTEND}else if(t<2503){if(t<2494){if(t<2492){if(2434<=t&&t<=2435)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===2492)return d.CLUSTER_BREAK.EXTEND}else if(t<2495){if(t===2494)return d.CLUSTER_BREAK.EXTEND}else if(t<2497){if(2495<=t&&t<=2496)return d.CLUSTER_BREAK.SPACINGMARK}else if(2497<=t&&t<=2500)return d.CLUSTER_BREAK.EXTEND}else if(t<2519){if(t<2507){if(2503<=t&&t<=2504)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2509){if(2507<=t&&t<=2508)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===2509)return d.CLUSTER_BREAK.EXTEND}else if(t<2530){if(t===2519)return d.CLUSTER_BREAK.EXTEND}else if(t<2558){if(2530<=t&&t<=2531)return d.CLUSTER_BREAK.EXTEND}else if(t===2558)return d.CLUSTER_BREAK.EXTEND}else if(t<2691){if(t<2631){if(t<2620){if(t<2563){if(2561<=t&&t<=2562)return d.CLUSTER_BREAK.EXTEND}else if(t===2563)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2622){if(t===2620)return d.CLUSTER_BREAK.EXTEND}else if(t<2625){if(2622<=t&&t<=2624)return d.CLUSTER_BREAK.SPACINGMARK}else if(2625<=t&&t<=2626)return d.CLUSTER_BREAK.EXTEND}else if(t<2672){if(t<2635){if(2631<=t&&t<=2632)return d.CLUSTER_BREAK.EXTEND}else if(t<2641){if(2635<=t&&t<=2637)return d.CLUSTER_BREAK.EXTEND}else if(t===2641)return d.CLUSTER_BREAK.EXTEND}else if(t<2677){if(2672<=t&&t<=2673)return d.CLUSTER_BREAK.EXTEND}else if(t<2689){if(t===2677)return d.CLUSTER_BREAK.EXTEND}else if(2689<=t&&t<=2690)return d.CLUSTER_BREAK.EXTEND}else if(t<2761){if(t<2750){if(t===2691)return d.CLUSTER_BREAK.SPACINGMARK;if(t===2748)return d.CLUSTER_BREAK.EXTEND}else if(t<2753){if(2750<=t&&t<=2752)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2759){if(2753<=t&&t<=2757)return d.CLUSTER_BREAK.EXTEND}else if(2759<=t&&t<=2760)return d.CLUSTER_BREAK.EXTEND}else if(t<2786){if(t<2763){if(t===2761)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2765){if(2763<=t&&t<=2764)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===2765)return d.CLUSTER_BREAK.EXTEND}else if(t<2810){if(2786<=t&&t<=2787)return d.CLUSTER_BREAK.EXTEND}else if(t<2817){if(2810<=t&&t<=2815)return d.CLUSTER_BREAK.EXTEND}else if(t===2817)return d.CLUSTER_BREAK.EXTEND}else if(t<3315){if(t<3076){if(t<2946){if(t<2887){if(t<2878){if(t<2876){if(2818<=t&&t<=2819)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===2876)return d.CLUSTER_BREAK.EXTEND}else if(t<2880){if(2878<=t&&t<=2879)return d.CLUSTER_BREAK.EXTEND}else if(t<2881){if(t===2880)return d.CLUSTER_BREAK.SPACINGMARK}else if(2881<=t&&t<=2884)return d.CLUSTER_BREAK.EXTEND}else if(t<2893){if(t<2891){if(2887<=t&&t<=2888)return d.CLUSTER_BREAK.SPACINGMARK}else if(2891<=t&&t<=2892)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2901){if(t===2893)return d.CLUSTER_BREAK.EXTEND}else if(t<2914){if(2901<=t&&t<=2903)return d.CLUSTER_BREAK.EXTEND}else if(2914<=t&&t<=2915)return d.CLUSTER_BREAK.EXTEND}else if(t<3014){if(t<3007){if(t===2946||t===3006)return d.CLUSTER_BREAK.EXTEND}else if(t<3008){if(t===3007)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3009){if(t===3008)return d.CLUSTER_BREAK.EXTEND}else if(3009<=t&&t<=3010)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3031){if(t<3018){if(3014<=t&&t<=3016)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3021){if(3018<=t&&t<=3020)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===3021)return d.CLUSTER_BREAK.EXTEND}else if(t<3072){if(t===3031)return d.CLUSTER_BREAK.EXTEND}else if(t<3073){if(t===3072)return d.CLUSTER_BREAK.EXTEND}else if(3073<=t&&t<=3075)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3262){if(t<3146){if(t<3134){if(t===3076||t===3132)return d.CLUSTER_BREAK.EXTEND}else if(t<3137){if(3134<=t&&t<=3136)return d.CLUSTER_BREAK.EXTEND}else if(t<3142){if(3137<=t&&t<=3140)return d.CLUSTER_BREAK.SPACINGMARK}else if(3142<=t&&t<=3144)return d.CLUSTER_BREAK.EXTEND}else if(t<3201){if(t<3157){if(3146<=t&&t<=3149)return d.CLUSTER_BREAK.EXTEND}else if(t<3170){if(3157<=t&&t<=3158)return d.CLUSTER_BREAK.EXTEND}else if(3170<=t&&t<=3171)return d.CLUSTER_BREAK.EXTEND}else if(t<3202){if(t===3201)return d.CLUSTER_BREAK.EXTEND}else if(t<3260){if(3202<=t&&t<=3203)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===3260)return d.CLUSTER_BREAK.EXTEND}else if(t<3270){if(t<3264){if(t===3262)return d.CLUSTER_BREAK.SPACINGMARK;if(t===3263)return d.CLUSTER_BREAK.EXTEND}else if(t<3266){if(3264<=t&&t<=3265)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3267){if(t===3266)return d.CLUSTER_BREAK.EXTEND}else if(3267<=t&&t<=3268)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3276){if(t<3271){if(t===3270)return d.CLUSTER_BREAK.EXTEND}else if(t<3274){if(3271<=t&&t<=3272)return d.CLUSTER_BREAK.SPACINGMARK}else if(3274<=t&&t<=3275)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3285){if(3276<=t&&t<=3277)return d.CLUSTER_BREAK.EXTEND}else if(t<3298){if(3285<=t&&t<=3286)return d.CLUSTER_BREAK.EXTEND}else if(3298<=t&&t<=3299)return d.CLUSTER_BREAK.EXTEND}else if(t<3551){if(t<3406){if(t<3391){if(t<3330){if(t<3328){if(t===3315)return d.CLUSTER_BREAK.SPACINGMARK}else if(3328<=t&&t<=3329)return d.CLUSTER_BREAK.EXTEND}else if(t<3387){if(3330<=t&&t<=3331)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3390){if(3387<=t&&t<=3388)return d.CLUSTER_BREAK.EXTEND}else if(t===3390)return d.CLUSTER_BREAK.EXTEND}else if(t<3398){if(t<3393){if(3391<=t&&t<=3392)return d.CLUSTER_BREAK.SPACINGMARK}else if(3393<=t&&t<=3396)return d.CLUSTER_BREAK.EXTEND}else if(t<3402){if(3398<=t&&t<=3400)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3405){if(3402<=t&&t<=3404)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===3405)return d.CLUSTER_BREAK.EXTEND}else if(t<3530){if(t<3426){if(t===3406)return d.CLUSTER_BREAK.PREPEND;if(t===3415)return d.CLUSTER_BREAK.EXTEND}else if(t<3457){if(3426<=t&&t<=3427)return d.CLUSTER_BREAK.EXTEND}else if(t<3458){if(t===3457)return d.CLUSTER_BREAK.EXTEND}else if(3458<=t&&t<=3459)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3538){if(t<3535){if(t===3530)return d.CLUSTER_BREAK.EXTEND}else if(t<3536){if(t===3535)return d.CLUSTER_BREAK.EXTEND}else if(3536<=t&&t<=3537)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3542){if(3538<=t&&t<=3540)return d.CLUSTER_BREAK.EXTEND}else if(t<3544){if(t===3542)return d.CLUSTER_BREAK.EXTEND}else if(3544<=t&&t<=3550)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3893){if(t<3655){if(t<3633){if(t<3570){if(t===3551)return d.CLUSTER_BREAK.EXTEND}else if(3570<=t&&t<=3571)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3635){if(t===3633)return d.CLUSTER_BREAK.EXTEND}else if(t<3636){if(t===3635)return d.CLUSTER_BREAK.SPACINGMARK}else if(3636<=t&&t<=3642)return d.CLUSTER_BREAK.EXTEND}else if(t<3764)if(t<3761){if(3655<=t&&t<=3662)return d.CLUSTER_BREAK.EXTEND}else{if(t===3761)return d.CLUSTER_BREAK.EXTEND;if(t===3763)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3784){if(3764<=t&&t<=3772)return d.CLUSTER_BREAK.EXTEND}else if(t<3864){if(3784<=t&&t<=3790)return d.CLUSTER_BREAK.EXTEND}else if(3864<=t&&t<=3865)return d.CLUSTER_BREAK.EXTEND}else if(t<3967){if(t<3897){if(t===3893||t===3895)return d.CLUSTER_BREAK.EXTEND}else if(t<3902){if(t===3897)return d.CLUSTER_BREAK.EXTEND}else if(t<3953){if(3902<=t&&t<=3903)return d.CLUSTER_BREAK.SPACINGMARK}else if(3953<=t&&t<=3966)return d.CLUSTER_BREAK.EXTEND}else if(t<3981){if(t<3968){if(t===3967)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3974){if(3968<=t&&t<=3972)return d.CLUSTER_BREAK.EXTEND}else if(3974<=t&&t<=3975)return d.CLUSTER_BREAK.EXTEND}else if(t<3993){if(3981<=t&&t<=3991)return d.CLUSTER_BREAK.EXTEND}else if(t<4038){if(3993<=t&&t<=4028)return d.CLUSTER_BREAK.EXTEND}else if(t===4038)return d.CLUSTER_BREAK.EXTEND}else if(t<7204){if(t<6448){if(t<5938){if(t<4226){if(t<4157){if(t<4146){if(t<4145){if(4141<=t&&t<=4144)return d.CLUSTER_BREAK.EXTEND}else if(t===4145)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<4153){if(4146<=t&&t<=4151)return d.CLUSTER_BREAK.EXTEND}else if(t<4155){if(4153<=t&&t<=4154)return d.CLUSTER_BREAK.EXTEND}else if(4155<=t&&t<=4156)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<4184){if(t<4182){if(4157<=t&&t<=4158)return d.CLUSTER_BREAK.EXTEND}else if(4182<=t&&t<=4183)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<4190){if(4184<=t&&t<=4185)return d.CLUSTER_BREAK.EXTEND}else if(t<4209){if(4190<=t&&t<=4192)return d.CLUSTER_BREAK.EXTEND}else if(4209<=t&&t<=4212)return d.CLUSTER_BREAK.EXTEND}else if(t<4352){if(t<4229){if(t===4226)return d.CLUSTER_BREAK.EXTEND;if(t===4228)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<4237){if(4229<=t&&t<=4230)return d.CLUSTER_BREAK.EXTEND}else if(t===4237||t===4253)return d.CLUSTER_BREAK.EXTEND}else if(t<4957){if(t<4448){if(4352<=t&&t<=4447)return d.CLUSTER_BREAK.L}else if(t<4520){if(4448<=t&&t<=4519)return d.CLUSTER_BREAK.V}else if(4520<=t&&t<=4607)return d.CLUSTER_BREAK.T}else if(t<5906){if(4957<=t&&t<=4959)return d.CLUSTER_BREAK.EXTEND}else if(t<5909){if(5906<=t&&t<=5908)return d.CLUSTER_BREAK.EXTEND}else if(t===5909)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6089){if(t<6070){if(t<5970){if(t<5940){if(5938<=t&&t<=5939)return d.CLUSTER_BREAK.EXTEND}else if(t===5940)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6002){if(5970<=t&&t<=5971)return d.CLUSTER_BREAK.EXTEND}else if(t<6068){if(6002<=t&&t<=6003)return d.CLUSTER_BREAK.EXTEND}else if(6068<=t&&t<=6069)return d.CLUSTER_BREAK.EXTEND}else if(t<6078){if(t<6071){if(t===6070)return d.CLUSTER_BREAK.SPACINGMARK}else if(6071<=t&&t<=6077)return d.CLUSTER_BREAK.EXTEND}else if(t<6086){if(6078<=t&&t<=6085)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6087){if(t===6086)return d.CLUSTER_BREAK.EXTEND}else if(6087<=t&&t<=6088)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6277)if(t<6155){if(t<6109){if(6089<=t&&t<=6099)return d.CLUSTER_BREAK.EXTEND}else if(t===6109)return d.CLUSTER_BREAK.EXTEND}else if(t<6158){if(6155<=t&&t<=6157)return d.CLUSTER_BREAK.EXTEND}else{if(t===6158)return d.CLUSTER_BREAK.CONTROL;if(t===6159)return d.CLUSTER_BREAK.EXTEND}else if(t<6435){if(t<6313){if(6277<=t&&t<=6278)return d.CLUSTER_BREAK.EXTEND}else if(t<6432){if(t===6313)return d.CLUSTER_BREAK.EXTEND}else if(6432<=t&&t<=6434)return d.CLUSTER_BREAK.EXTEND}else if(t<6439){if(6435<=t&&t<=6438)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6441){if(6439<=t&&t<=6440)return d.CLUSTER_BREAK.EXTEND}else if(6441<=t&&t<=6443)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6971){if(t<6744)if(t<6681){if(t<6451){if(t<6450){if(6448<=t&&t<=6449)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===6450)return d.CLUSTER_BREAK.EXTEND}else if(t<6457){if(6451<=t&&t<=6456)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6679){if(6457<=t&&t<=6459)return d.CLUSTER_BREAK.EXTEND}else if(6679<=t&&t<=6680)return d.CLUSTER_BREAK.EXTEND}else if(t<6741){if(t<6683){if(6681<=t&&t<=6682)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===6683)return d.CLUSTER_BREAK.EXTEND}else if(t<6742){if(t===6741)return d.CLUSTER_BREAK.SPACINGMARK}else{if(t===6742)return d.CLUSTER_BREAK.EXTEND;if(t===6743)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6771){if(t<6754){if(t<6752){if(6744<=t&&t<=6750)return d.CLUSTER_BREAK.EXTEND}else if(t===6752)return d.CLUSTER_BREAK.EXTEND}else if(t<6757){if(t===6754)return d.CLUSTER_BREAK.EXTEND}else if(t<6765){if(6757<=t&&t<=6764)return d.CLUSTER_BREAK.EXTEND}else if(6765<=t&&t<=6770)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6912){if(t<6783){if(6771<=t&&t<=6780)return d.CLUSTER_BREAK.EXTEND}else if(t<6832){if(t===6783)return d.CLUSTER_BREAK.EXTEND}else if(6832<=t&&t<=6862)return d.CLUSTER_BREAK.EXTEND}else if(t<6916){if(6912<=t&&t<=6915)return d.CLUSTER_BREAK.EXTEND}else if(t<6964){if(t===6916)return d.CLUSTER_BREAK.SPACINGMARK}else if(6964<=t&&t<=6970)return d.CLUSTER_BREAK.EXTEND}else if(t<7080){if(t<7019){if(t<6973){if(t===6971)return d.CLUSTER_BREAK.SPACINGMARK;if(t===6972)return d.CLUSTER_BREAK.EXTEND}else if(t<6978){if(6973<=t&&t<=6977)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6979){if(t===6978)return d.CLUSTER_BREAK.EXTEND}else if(6979<=t&&t<=6980)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7073){if(t<7040){if(7019<=t&&t<=7027)return d.CLUSTER_BREAK.EXTEND}else if(t<7042){if(7040<=t&&t<=7041)return d.CLUSTER_BREAK.EXTEND}else if(t===7042)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7074){if(t===7073)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7078){if(7074<=t&&t<=7077)return d.CLUSTER_BREAK.EXTEND}else if(7078<=t&&t<=7079)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7144)if(t<7083){if(t<7082){if(7080<=t&&t<=7081)return d.CLUSTER_BREAK.EXTEND}else if(t===7082)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7142){if(7083<=t&&t<=7085)return d.CLUSTER_BREAK.EXTEND}else{if(t===7142)return d.CLUSTER_BREAK.EXTEND;if(t===7143)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7150){if(t<7146){if(7144<=t&&t<=7145)return d.CLUSTER_BREAK.EXTEND}else if(t<7149){if(7146<=t&&t<=7148)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===7149)return d.CLUSTER_BREAK.EXTEND}else if(t<7151){if(t===7150)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7154){if(7151<=t&&t<=7153)return d.CLUSTER_BREAK.EXTEND}else if(7154<=t&&t<=7155)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43346){if(t<11647){if(t<7415){if(t<7380){if(t<7220){if(t<7212){if(7204<=t&&t<=7211)return d.CLUSTER_BREAK.SPACINGMARK}else if(7212<=t&&t<=7219)return d.CLUSTER_BREAK.EXTEND}else if(t<7222){if(7220<=t&&t<=7221)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7376){if(7222<=t&&t<=7223)return d.CLUSTER_BREAK.EXTEND}else if(7376<=t&&t<=7378)return d.CLUSTER_BREAK.EXTEND}else if(t<7394){if(t<7393){if(7380<=t&&t<=7392)return d.CLUSTER_BREAK.EXTEND}else if(t===7393)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7405){if(7394<=t&&t<=7400)return d.CLUSTER_BREAK.EXTEND}else if(t===7405||t===7412)return d.CLUSTER_BREAK.EXTEND}else if(t<8205)if(t<7616){if(t<7416){if(t===7415)return d.CLUSTER_BREAK.SPACINGMARK}else if(7416<=t&&t<=7417)return d.CLUSTER_BREAK.EXTEND}else if(t<8203){if(7616<=t&&t<=7679)return d.CLUSTER_BREAK.EXTEND}else{if(t===8203)return d.CLUSTER_BREAK.CONTROL;if(t===8204)return d.CLUSTER_BREAK.EXTEND}else if(t<8288){if(t<8206){if(t===8205)return d.CLUSTER_BREAK.ZWJ}else if(t<8232){if(8206<=t&&t<=8207)return d.CLUSTER_BREAK.CONTROL}else if(8232<=t&&t<=8238)return d.CLUSTER_BREAK.CONTROL}else if(t<8400){if(8288<=t&&t<=8303)return d.CLUSTER_BREAK.CONTROL}else if(t<11503){if(8400<=t&&t<=8432)return d.CLUSTER_BREAK.EXTEND}else if(11503<=t&&t<=11505)return d.CLUSTER_BREAK.EXTEND}else if(t<43043){if(t<42612){if(t<12330){if(t<11744){if(t===11647)return d.CLUSTER_BREAK.EXTEND}else if(11744<=t&&t<=11775)return d.CLUSTER_BREAK.EXTEND}else if(t<12441){if(12330<=t&&t<=12335)return d.CLUSTER_BREAK.EXTEND}else if(t<42607){if(12441<=t&&t<=12442)return d.CLUSTER_BREAK.EXTEND}else if(42607<=t&&t<=42610)return d.CLUSTER_BREAK.EXTEND}else if(t<43010){if(t<42654){if(42612<=t&&t<=42621)return d.CLUSTER_BREAK.EXTEND}else if(t<42736){if(42654<=t&&t<=42655)return d.CLUSTER_BREAK.EXTEND}else if(42736<=t&&t<=42737)return d.CLUSTER_BREAK.EXTEND}else if(t<43014){if(t===43010)return d.CLUSTER_BREAK.EXTEND}else if(t===43014||t===43019)return d.CLUSTER_BREAK.EXTEND}else if(t<43188){if(t<43047){if(t<43045){if(43043<=t&&t<=43044)return d.CLUSTER_BREAK.SPACINGMARK}else if(43045<=t&&t<=43046)return d.CLUSTER_BREAK.EXTEND}else if(t<43052){if(t===43047)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43136){if(t===43052)return d.CLUSTER_BREAK.EXTEND}else if(43136<=t&&t<=43137)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43263){if(t<43204){if(43188<=t&&t<=43203)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43232){if(43204<=t&&t<=43205)return d.CLUSTER_BREAK.EXTEND}else if(43232<=t&&t<=43249)return d.CLUSTER_BREAK.EXTEND}else if(t<43302){if(t===43263)return d.CLUSTER_BREAK.EXTEND}else if(t<43335){if(43302<=t&&t<=43309)return d.CLUSTER_BREAK.EXTEND}else if(43335<=t&&t<=43345)return d.CLUSTER_BREAK.EXTEND}else if(t<43698){if(t<43493){if(t<43444)if(t<43392){if(t<43360){if(43346<=t&&t<=43347)return d.CLUSTER_BREAK.SPACINGMARK}else if(43360<=t&&t<=43388)return d.CLUSTER_BREAK.L}else if(t<43395){if(43392<=t&&t<=43394)return d.CLUSTER_BREAK.EXTEND}else{if(t===43395)return d.CLUSTER_BREAK.SPACINGMARK;if(t===43443)return d.CLUSTER_BREAK.EXTEND}else if(t<43450){if(t<43446){if(43444<=t&&t<=43445)return d.CLUSTER_BREAK.SPACINGMARK}else if(43446<=t&&t<=43449)return d.CLUSTER_BREAK.EXTEND}else if(t<43452){if(43450<=t&&t<=43451)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43454){if(43452<=t&&t<=43453)return d.CLUSTER_BREAK.EXTEND}else if(43454<=t&&t<=43456)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43573){if(t<43567){if(t<43561){if(t===43493)return d.CLUSTER_BREAK.EXTEND}else if(43561<=t&&t<=43566)return d.CLUSTER_BREAK.EXTEND}else if(t<43569){if(43567<=t&&t<=43568)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43571){if(43569<=t&&t<=43570)return d.CLUSTER_BREAK.EXTEND}else if(43571<=t&&t<=43572)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43597){if(t<43587){if(43573<=t&&t<=43574)return d.CLUSTER_BREAK.EXTEND}else if(t===43587||t===43596)return d.CLUSTER_BREAK.EXTEND}else if(t<43644){if(t===43597)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===43644||t===43696)return d.CLUSTER_BREAK.EXTEND}else if(t<44006){if(t<43756)if(t<43710){if(t<43703){if(43698<=t&&t<=43700)return d.CLUSTER_BREAK.EXTEND}else if(43703<=t&&t<=43704)return d.CLUSTER_BREAK.EXTEND}else if(t<43713){if(43710<=t&&t<=43711)return d.CLUSTER_BREAK.EXTEND}else{if(t===43713)return d.CLUSTER_BREAK.EXTEND;if(t===43755)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43766){if(t<43758){if(43756<=t&&t<=43757)return d.CLUSTER_BREAK.EXTEND}else if(t<43765){if(43758<=t&&t<=43759)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===43765)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<44003){if(t===43766)return d.CLUSTER_BREAK.EXTEND}else if(t<44005){if(44003<=t&&t<=44004)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===44005)return d.CLUSTER_BREAK.EXTEND}else if(t<44032)if(t<44009){if(t<44008){if(44006<=t&&t<=44007)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===44008)return d.CLUSTER_BREAK.EXTEND}else if(t<44012){if(44009<=t&&t<=44010)return d.CLUSTER_BREAK.SPACINGMARK}else{if(t===44012)return d.CLUSTER_BREAK.SPACINGMARK;if(t===44013)return d.CLUSTER_BREAK.EXTEND}else if(t<44061){if(t<44033){if(t===44032)return d.CLUSTER_BREAK.LV}else if(t<44060){if(44033<=t&&t<=44059)return d.CLUSTER_BREAK.LVT}else if(t===44060)return d.CLUSTER_BREAK.LV}else if(t<44088){if(44061<=t&&t<=44087)return d.CLUSTER_BREAK.LVT}else if(t<44089){if(t===44088)return d.CLUSTER_BREAK.LV}else if(44089<=t&&t<=44115)return d.CLUSTER_BREAK.LVT}else if(t<46497){if(t<45293){if(t<44704){if(t<44397){if(t<44256){if(t<44173){if(t<44144){if(t<44117){if(t===44116)return d.CLUSTER_BREAK.LV}else if(44117<=t&&t<=44143)return d.CLUSTER_BREAK.LVT}else if(t<44145){if(t===44144)return d.CLUSTER_BREAK.LV}else if(t<44172){if(44145<=t&&t<=44171)return d.CLUSTER_BREAK.LVT}else if(t===44172)return d.CLUSTER_BREAK.LV}else if(t<44201){if(t<44200){if(44173<=t&&t<=44199)return d.CLUSTER_BREAK.LVT}else if(t===44200)return d.CLUSTER_BREAK.LV}else if(t<44228){if(44201<=t&&t<=44227)return d.CLUSTER_BREAK.LVT}else if(t<44229){if(t===44228)return d.CLUSTER_BREAK.LV}else if(44229<=t&&t<=44255)return d.CLUSTER_BREAK.LVT}else if(t<44313){if(t<44284){if(t<44257){if(t===44256)return d.CLUSTER_BREAK.LV}else if(44257<=t&&t<=44283)return d.CLUSTER_BREAK.LVT}else if(t<44285){if(t===44284)return d.CLUSTER_BREAK.LV}else if(t<44312){if(44285<=t&&t<=44311)return d.CLUSTER_BREAK.LVT}else if(t===44312)return d.CLUSTER_BREAK.LV}else if(t<44368){if(t<44340){if(44313<=t&&t<=44339)return d.CLUSTER_BREAK.LVT}else if(t<44341){if(t===44340)return d.CLUSTER_BREAK.LV}else if(44341<=t&&t<=44367)return d.CLUSTER_BREAK.LVT}else if(t<44369){if(t===44368)return d.CLUSTER_BREAK.LV}else if(t<44396){if(44369<=t&&t<=44395)return d.CLUSTER_BREAK.LVT}else if(t===44396)return d.CLUSTER_BREAK.LV}else if(t<44537){if(t<44480){if(t<44425){if(t<44424){if(44397<=t&&t<=44423)return d.CLUSTER_BREAK.LVT}else if(t===44424)return d.CLUSTER_BREAK.LV}else if(t<44452){if(44425<=t&&t<=44451)return d.CLUSTER_BREAK.LVT}else if(t<44453){if(t===44452)return d.CLUSTER_BREAK.LV}else if(44453<=t&&t<=44479)return d.CLUSTER_BREAK.LVT}else if(t<44508){if(t<44481){if(t===44480)return d.CLUSTER_BREAK.LV}else if(44481<=t&&t<=44507)return d.CLUSTER_BREAK.LVT}else if(t<44509){if(t===44508)return d.CLUSTER_BREAK.LV}else if(t<44536){if(44509<=t&&t<=44535)return d.CLUSTER_BREAK.LVT}else if(t===44536)return d.CLUSTER_BREAK.LV}else if(t<44620){if(t<44565){if(t<44564){if(44537<=t&&t<=44563)return d.CLUSTER_BREAK.LVT}else if(t===44564)return d.CLUSTER_BREAK.LV}else if(t<44592){if(44565<=t&&t<=44591)return d.CLUSTER_BREAK.LVT}else if(t<44593){if(t===44592)return d.CLUSTER_BREAK.LV}else if(44593<=t&&t<=44619)return d.CLUSTER_BREAK.LVT}else if(t<44649){if(t<44621){if(t===44620)return d.CLUSTER_BREAK.LV}else if(t<44648){if(44621<=t&&t<=44647)return d.CLUSTER_BREAK.LVT}else if(t===44648)return d.CLUSTER_BREAK.LV}else if(t<44676){if(44649<=t&&t<=44675)return d.CLUSTER_BREAK.LVT}else if(t<44677){if(t===44676)return d.CLUSTER_BREAK.LV}else if(44677<=t&&t<=44703)return d.CLUSTER_BREAK.LVT}else if(t<44985){if(t<44844){if(t<44761){if(t<44732){if(t<44705){if(t===44704)return d.CLUSTER_BREAK.LV}else if(44705<=t&&t<=44731)return d.CLUSTER_BREAK.LVT}else if(t<44733){if(t===44732)return d.CLUSTER_BREAK.LV}else if(t<44760){if(44733<=t&&t<=44759)return d.CLUSTER_BREAK.LVT}else if(t===44760)return d.CLUSTER_BREAK.LV}else if(t<44789){if(t<44788){if(44761<=t&&t<=44787)return d.CLUSTER_BREAK.LVT}else if(t===44788)return d.CLUSTER_BREAK.LV}else if(t<44816){if(44789<=t&&t<=44815)return d.CLUSTER_BREAK.LVT}else if(t<44817){if(t===44816)return d.CLUSTER_BREAK.LV}else if(44817<=t&&t<=44843)return d.CLUSTER_BREAK.LVT}else if(t<44901){if(t<44872){if(t<44845){if(t===44844)return d.CLUSTER_BREAK.LV}else if(44845<=t&&t<=44871)return d.CLUSTER_BREAK.LVT}else if(t<44873){if(t===44872)return d.CLUSTER_BREAK.LV}else if(t<44900){if(44873<=t&&t<=44899)return d.CLUSTER_BREAK.LVT}else if(t===44900)return d.CLUSTER_BREAK.LV}else if(t<44956){if(t<44928){if(44901<=t&&t<=44927)return d.CLUSTER_BREAK.LVT}else if(t<44929){if(t===44928)return d.CLUSTER_BREAK.LV}else if(44929<=t&&t<=44955)return d.CLUSTER_BREAK.LVT}else if(t<44957){if(t===44956)return d.CLUSTER_BREAK.LV}else if(t<44984){if(44957<=t&&t<=44983)return d.CLUSTER_BREAK.LVT}else if(t===44984)return d.CLUSTER_BREAK.LV}else if(t<45152){if(t<45068){if(t<45013){if(t<45012){if(44985<=t&&t<=45011)return d.CLUSTER_BREAK.LVT}else if(t===45012)return d.CLUSTER_BREAK.LV}else if(t<45040){if(45013<=t&&t<=45039)return d.CLUSTER_BREAK.LVT}else if(t<45041){if(t===45040)return d.CLUSTER_BREAK.LV}else if(45041<=t&&t<=45067)return d.CLUSTER_BREAK.LVT}else if(t<45097){if(t<45069){if(t===45068)return d.CLUSTER_BREAK.LV}else if(t<45096){if(45069<=t&&t<=45095)return d.CLUSTER_BREAK.LVT}else if(t===45096)return d.CLUSTER_BREAK.LV}else if(t<45124){if(45097<=t&&t<=45123)return d.CLUSTER_BREAK.LVT}else if(t<45125){if(t===45124)return d.CLUSTER_BREAK.LV}else if(45125<=t&&t<=45151)return d.CLUSTER_BREAK.LVT}else if(t<45209){if(t<45180){if(t<45153){if(t===45152)return d.CLUSTER_BREAK.LV}else if(45153<=t&&t<=45179)return d.CLUSTER_BREAK.LVT}else if(t<45181){if(t===45180)return d.CLUSTER_BREAK.LV}else if(t<45208){if(45181<=t&&t<=45207)return d.CLUSTER_BREAK.LVT}else if(t===45208)return d.CLUSTER_BREAK.LV}else if(t<45264){if(t<45236){if(45209<=t&&t<=45235)return d.CLUSTER_BREAK.LVT}else if(t<45237){if(t===45236)return d.CLUSTER_BREAK.LV}else if(45237<=t&&t<=45263)return d.CLUSTER_BREAK.LVT}else if(t<45265){if(t===45264)return d.CLUSTER_BREAK.LV}else if(t<45292){if(45265<=t&&t<=45291)return d.CLUSTER_BREAK.LVT}else if(t===45292)return d.CLUSTER_BREAK.LV}else if(t<45908){if(t<45600){if(t<45433){if(t<45376){if(t<45321){if(t<45320){if(45293<=t&&t<=45319)return d.CLUSTER_BREAK.LVT}else if(t===45320)return d.CLUSTER_BREAK.LV}else if(t<45348){if(45321<=t&&t<=45347)return d.CLUSTER_BREAK.LVT}else if(t<45349){if(t===45348)return d.CLUSTER_BREAK.LV}else if(45349<=t&&t<=45375)return d.CLUSTER_BREAK.LVT}else if(t<45404){if(t<45377){if(t===45376)return d.CLUSTER_BREAK.LV}else if(45377<=t&&t<=45403)return d.CLUSTER_BREAK.LVT}else if(t<45405){if(t===45404)return d.CLUSTER_BREAK.LV}else if(t<45432){if(45405<=t&&t<=45431)return d.CLUSTER_BREAK.LVT}else if(t===45432)return d.CLUSTER_BREAK.LV}else if(t<45516){if(t<45461){if(t<45460){if(45433<=t&&t<=45459)return d.CLUSTER_BREAK.LVT}else if(t===45460)return d.CLUSTER_BREAK.LV}else if(t<45488){if(45461<=t&&t<=45487)return d.CLUSTER_BREAK.LVT}else if(t<45489){if(t===45488)return d.CLUSTER_BREAK.LV}else if(45489<=t&&t<=45515)return d.CLUSTER_BREAK.LVT}else if(t<45545){if(t<45517){if(t===45516)return d.CLUSTER_BREAK.LV}else if(t<45544){if(45517<=t&&t<=45543)return d.CLUSTER_BREAK.LVT}else if(t===45544)return d.CLUSTER_BREAK.LV}else if(t<45572){if(45545<=t&&t<=45571)return d.CLUSTER_BREAK.LVT}else if(t<45573){if(t===45572)return d.CLUSTER_BREAK.LV}else if(45573<=t&&t<=45599)return d.CLUSTER_BREAK.LVT}else if(t<45741){if(t<45657){if(t<45628){if(t<45601){if(t===45600)return d.CLUSTER_BREAK.LV}else if(45601<=t&&t<=45627)return d.CLUSTER_BREAK.LVT}else if(t<45629){if(t===45628)return d.CLUSTER_BREAK.LV}else if(t<45656){if(45629<=t&&t<=45655)return d.CLUSTER_BREAK.LVT}else if(t===45656)return d.CLUSTER_BREAK.LV}else if(t<45712){if(t<45684){if(45657<=t&&t<=45683)return d.CLUSTER_BREAK.LVT}else if(t<45685){if(t===45684)return d.CLUSTER_BREAK.LV}else if(45685<=t&&t<=45711)return d.CLUSTER_BREAK.LVT}else if(t<45713){if(t===45712)return d.CLUSTER_BREAK.LV}else if(t<45740){if(45713<=t&&t<=45739)return d.CLUSTER_BREAK.LVT}else if(t===45740)return d.CLUSTER_BREAK.LV}else if(t<45824){if(t<45769){if(t<45768){if(45741<=t&&t<=45767)return d.CLUSTER_BREAK.LVT}else if(t===45768)return d.CLUSTER_BREAK.LV}else if(t<45796){if(45769<=t&&t<=45795)return d.CLUSTER_BREAK.LVT}else if(t<45797){if(t===45796)return d.CLUSTER_BREAK.LV}else if(45797<=t&&t<=45823)return d.CLUSTER_BREAK.LVT}else if(t<45853){if(t<45825){if(t===45824)return d.CLUSTER_BREAK.LV}else if(t<45852){if(45825<=t&&t<=45851)return d.CLUSTER_BREAK.LVT}else if(t===45852)return d.CLUSTER_BREAK.LV}else if(t<45880){if(45853<=t&&t<=45879)return d.CLUSTER_BREAK.LVT}else if(t<45881){if(t===45880)return d.CLUSTER_BREAK.LV}else if(45881<=t&&t<=45907)return d.CLUSTER_BREAK.LVT}else if(t<46189){if(t<46048){if(t<45965){if(t<45936){if(t<45909){if(t===45908)return d.CLUSTER_BREAK.LV}else if(45909<=t&&t<=45935)return d.CLUSTER_BREAK.LVT}else if(t<45937){if(t===45936)return d.CLUSTER_BREAK.LV}else if(t<45964){if(45937<=t&&t<=45963)return d.CLUSTER_BREAK.LVT}else if(t===45964)return d.CLUSTER_BREAK.LV}else if(t<45993){if(t<45992){if(45965<=t&&t<=45991)return d.CLUSTER_BREAK.LVT}else if(t===45992)return d.CLUSTER_BREAK.LV}else if(t<46020){if(45993<=t&&t<=46019)return d.CLUSTER_BREAK.LVT}else if(t<46021){if(t===46020)return d.CLUSTER_BREAK.LV}else if(46021<=t&&t<=46047)return d.CLUSTER_BREAK.LVT}else if(t<46105){if(t<46076){if(t<46049){if(t===46048)return d.CLUSTER_BREAK.LV}else if(46049<=t&&t<=46075)return d.CLUSTER_BREAK.LVT}else if(t<46077){if(t===46076)return d.CLUSTER_BREAK.LV}else if(t<46104){if(46077<=t&&t<=46103)return d.CLUSTER_BREAK.LVT}else if(t===46104)return d.CLUSTER_BREAK.LV}else if(t<46160){if(t<46132){if(46105<=t&&t<=46131)return d.CLUSTER_BREAK.LVT}else if(t<46133){if(t===46132)return d.CLUSTER_BREAK.LV}else if(46133<=t&&t<=46159)return d.CLUSTER_BREAK.LVT}else if(t<46161){if(t===46160)return d.CLUSTER_BREAK.LV}else if(t<46188){if(46161<=t&&t<=46187)return d.CLUSTER_BREAK.LVT}else if(t===46188)return d.CLUSTER_BREAK.LV}else if(t<46356){if(t<46272){if(t<46217){if(t<46216){if(46189<=t&&t<=46215)return d.CLUSTER_BREAK.LVT}else if(t===46216)return d.CLUSTER_BREAK.LV}else if(t<46244){if(46217<=t&&t<=46243)return d.CLUSTER_BREAK.LVT}else if(t<46245){if(t===46244)return d.CLUSTER_BREAK.LV}else if(46245<=t&&t<=46271)return d.CLUSTER_BREAK.LVT}else if(t<46301){if(t<46273){if(t===46272)return d.CLUSTER_BREAK.LV}else if(t<46300){if(46273<=t&&t<=46299)return d.CLUSTER_BREAK.LVT}else if(t===46300)return d.CLUSTER_BREAK.LV}else if(t<46328){if(46301<=t&&t<=46327)return d.CLUSTER_BREAK.LVT}else if(t<46329){if(t===46328)return d.CLUSTER_BREAK.LV}else if(46329<=t&&t<=46355)return d.CLUSTER_BREAK.LVT}else if(t<46413){if(t<46384){if(t<46357){if(t===46356)return d.CLUSTER_BREAK.LV}else if(46357<=t&&t<=46383)return d.CLUSTER_BREAK.LVT}else if(t<46385){if(t===46384)return d.CLUSTER_BREAK.LV}else if(t<46412){if(46385<=t&&t<=46411)return d.CLUSTER_BREAK.LVT}else if(t===46412)return d.CLUSTER_BREAK.LV}else if(t<46468){if(t<46440){if(46413<=t&&t<=46439)return d.CLUSTER_BREAK.LVT}else if(t<46441){if(t===46440)return d.CLUSTER_BREAK.LV}else if(46441<=t&&t<=46467)return d.CLUSTER_BREAK.LVT}else if(t<46469){if(t===46468)return d.CLUSTER_BREAK.LV}else if(t<46496){if(46469<=t&&t<=46495)return d.CLUSTER_BREAK.LVT}else if(t===46496)return d.CLUSTER_BREAK.LV}else if(t<47701){if(t<47112){if(t<46804){if(t<46637){if(t<46580){if(t<46525){if(t<46524){if(46497<=t&&t<=46523)return d.CLUSTER_BREAK.LVT}else if(t===46524)return d.CLUSTER_BREAK.LV}else if(t<46552){if(46525<=t&&t<=46551)return d.CLUSTER_BREAK.LVT}else if(t<46553){if(t===46552)return d.CLUSTER_BREAK.LV}else if(46553<=t&&t<=46579)return d.CLUSTER_BREAK.LVT}else if(t<46608){if(t<46581){if(t===46580)return d.CLUSTER_BREAK.LV}else if(46581<=t&&t<=46607)return d.CLUSTER_BREAK.LVT}else if(t<46609){if(t===46608)return d.CLUSTER_BREAK.LV}else if(t<46636){if(46609<=t&&t<=46635)return d.CLUSTER_BREAK.LVT}else if(t===46636)return d.CLUSTER_BREAK.LV}else if(t<46720){if(t<46665){if(t<46664){if(46637<=t&&t<=46663)return d.CLUSTER_BREAK.LVT}else if(t===46664)return d.CLUSTER_BREAK.LV}else if(t<46692){if(46665<=t&&t<=46691)return d.CLUSTER_BREAK.LVT}else if(t<46693){if(t===46692)return d.CLUSTER_BREAK.LV}else if(46693<=t&&t<=46719)return d.CLUSTER_BREAK.LVT}else if(t<46749){if(t<46721){if(t===46720)return d.CLUSTER_BREAK.LV}else if(t<46748){if(46721<=t&&t<=46747)return d.CLUSTER_BREAK.LVT}else if(t===46748)return d.CLUSTER_BREAK.LV}else if(t<46776){if(46749<=t&&t<=46775)return d.CLUSTER_BREAK.LVT}else if(t<46777){if(t===46776)return d.CLUSTER_BREAK.LV}else if(46777<=t&&t<=46803)return d.CLUSTER_BREAK.LVT}else if(t<46945){if(t<46861){if(t<46832){if(t<46805){if(t===46804)return d.CLUSTER_BREAK.LV}else if(46805<=t&&t<=46831)return d.CLUSTER_BREAK.LVT}else if(t<46833){if(t===46832)return d.CLUSTER_BREAK.LV}else if(t<46860){if(46833<=t&&t<=46859)return d.CLUSTER_BREAK.LVT}else if(t===46860)return d.CLUSTER_BREAK.LV}else if(t<46916){if(t<46888){if(46861<=t&&t<=46887)return d.CLUSTER_BREAK.LVT}else if(t<46889){if(t===46888)return d.CLUSTER_BREAK.LV}else if(46889<=t&&t<=46915)return d.CLUSTER_BREAK.LVT}else if(t<46917){if(t===46916)return d.CLUSTER_BREAK.LV}else if(t<46944){if(46917<=t&&t<=46943)return d.CLUSTER_BREAK.LVT}else if(t===46944)return d.CLUSTER_BREAK.LV}else if(t<47028){if(t<46973){if(t<46972){if(46945<=t&&t<=46971)return d.CLUSTER_BREAK.LVT}else if(t===46972)return d.CLUSTER_BREAK.LV}else if(t<47e3){if(46973<=t&&t<=46999)return d.CLUSTER_BREAK.LVT}else if(t<47001){if(t===47e3)return d.CLUSTER_BREAK.LV}else if(47001<=t&&t<=47027)return d.CLUSTER_BREAK.LVT}else if(t<47057){if(t<47029){if(t===47028)return d.CLUSTER_BREAK.LV}else if(t<47056){if(47029<=t&&t<=47055)return d.CLUSTER_BREAK.LVT}else if(t===47056)return d.CLUSTER_BREAK.LV}else if(t<47084){if(47057<=t&&t<=47083)return d.CLUSTER_BREAK.LVT}else if(t<47085){if(t===47084)return d.CLUSTER_BREAK.LV}else if(47085<=t&&t<=47111)return d.CLUSTER_BREAK.LVT}else if(t<47393){if(t<47252){if(t<47169){if(t<47140){if(t<47113){if(t===47112)return d.CLUSTER_BREAK.LV}else if(47113<=t&&t<=47139)return d.CLUSTER_BREAK.LVT}else if(t<47141){if(t===47140)return d.CLUSTER_BREAK.LV}else if(t<47168){if(47141<=t&&t<=47167)return d.CLUSTER_BREAK.LVT}else if(t===47168)return d.CLUSTER_BREAK.LV}else if(t<47197){if(t<47196){if(47169<=t&&t<=47195)return d.CLUSTER_BREAK.LVT}else if(t===47196)return d.CLUSTER_BREAK.LV}else if(t<47224){if(47197<=t&&t<=47223)return d.CLUSTER_BREAK.LVT}else if(t<47225){if(t===47224)return d.CLUSTER_BREAK.LV}else if(47225<=t&&t<=47251)return d.CLUSTER_BREAK.LVT}else if(t<47309){if(t<47280){if(t<47253){if(t===47252)return d.CLUSTER_BREAK.LV}else if(47253<=t&&t<=47279)return d.CLUSTER_BREAK.LVT}else if(t<47281){if(t===47280)return d.CLUSTER_BREAK.LV}else if(t<47308){if(47281<=t&&t<=47307)return d.CLUSTER_BREAK.LVT}else if(t===47308)return d.CLUSTER_BREAK.LV}else if(t<47364){if(t<47336){if(47309<=t&&t<=47335)return d.CLUSTER_BREAK.LVT}else if(t<47337){if(t===47336)return d.CLUSTER_BREAK.LV}else if(47337<=t&&t<=47363)return d.CLUSTER_BREAK.LVT}else if(t<47365){if(t===47364)return d.CLUSTER_BREAK.LV}else if(t<47392){if(47365<=t&&t<=47391)return d.CLUSTER_BREAK.LVT}else if(t===47392)return d.CLUSTER_BREAK.LV}else if(t<47560){if(t<47476){if(t<47421){if(t<47420){if(47393<=t&&t<=47419)return d.CLUSTER_BREAK.LVT}else if(t===47420)return d.CLUSTER_BREAK.LV}else if(t<47448){if(47421<=t&&t<=47447)return d.CLUSTER_BREAK.LVT}else if(t<47449){if(t===47448)return d.CLUSTER_BREAK.LV}else if(47449<=t&&t<=47475)return d.CLUSTER_BREAK.LVT}else if(t<47505){if(t<47477){if(t===47476)return d.CLUSTER_BREAK.LV}else if(t<47504){if(47477<=t&&t<=47503)return d.CLUSTER_BREAK.LVT}else if(t===47504)return d.CLUSTER_BREAK.LV}else if(t<47532){if(47505<=t&&t<=47531)return d.CLUSTER_BREAK.LVT}else if(t<47533){if(t===47532)return d.CLUSTER_BREAK.LV}else if(47533<=t&&t<=47559)return d.CLUSTER_BREAK.LVT}else if(t<47617){if(t<47588){if(t<47561){if(t===47560)return d.CLUSTER_BREAK.LV}else if(47561<=t&&t<=47587)return d.CLUSTER_BREAK.LVT}else if(t<47589){if(t===47588)return d.CLUSTER_BREAK.LV}else if(t<47616){if(47589<=t&&t<=47615)return d.CLUSTER_BREAK.LVT}else if(t===47616)return d.CLUSTER_BREAK.LV}else if(t<47672){if(t<47644){if(47617<=t&&t<=47643)return d.CLUSTER_BREAK.LVT}else if(t<47645){if(t===47644)return d.CLUSTER_BREAK.LV}else if(47645<=t&&t<=47671)return d.CLUSTER_BREAK.LVT}else if(t<47673){if(t===47672)return d.CLUSTER_BREAK.LV}else if(t<47700){if(47673<=t&&t<=47699)return d.CLUSTER_BREAK.LVT}else if(t===47700)return d.CLUSTER_BREAK.LV}else if(t<48316){if(t<48008){if(t<47841){if(t<47784){if(t<47729){if(t<47728){if(47701<=t&&t<=47727)return d.CLUSTER_BREAK.LVT}else if(t===47728)return d.CLUSTER_BREAK.LV}else if(t<47756){if(47729<=t&&t<=47755)return d.CLUSTER_BREAK.LVT}else if(t<47757){if(t===47756)return d.CLUSTER_BREAK.LV}else if(47757<=t&&t<=47783)return d.CLUSTER_BREAK.LVT}else if(t<47812){if(t<47785){if(t===47784)return d.CLUSTER_BREAK.LV}else if(47785<=t&&t<=47811)return d.CLUSTER_BREAK.LVT}else if(t<47813){if(t===47812)return d.CLUSTER_BREAK.LV}else if(t<47840){if(47813<=t&&t<=47839)return d.CLUSTER_BREAK.LVT}else if(t===47840)return d.CLUSTER_BREAK.LV}else if(t<47924){if(t<47869){if(t<47868){if(47841<=t&&t<=47867)return d.CLUSTER_BREAK.LVT}else if(t===47868)return d.CLUSTER_BREAK.LV}else if(t<47896){if(47869<=t&&t<=47895)return d.CLUSTER_BREAK.LVT}else if(t<47897){if(t===47896)return d.CLUSTER_BREAK.LV}else if(47897<=t&&t<=47923)return d.CLUSTER_BREAK.LVT}else if(t<47953){if(t<47925){if(t===47924)return d.CLUSTER_BREAK.LV}else if(t<47952){if(47925<=t&&t<=47951)return d.CLUSTER_BREAK.LVT}else if(t===47952)return d.CLUSTER_BREAK.LV}else if(t<47980){if(47953<=t&&t<=47979)return d.CLUSTER_BREAK.LVT}else if(t<47981){if(t===47980)return d.CLUSTER_BREAK.LV}else if(47981<=t&&t<=48007)return d.CLUSTER_BREAK.LVT}else if(t<48149){if(t<48065){if(t<48036){if(t<48009){if(t===48008)return d.CLUSTER_BREAK.LV}else if(48009<=t&&t<=48035)return d.CLUSTER_BREAK.LVT}else if(t<48037){if(t===48036)return d.CLUSTER_BREAK.LV}else if(t<48064){if(48037<=t&&t<=48063)return d.CLUSTER_BREAK.LVT}else if(t===48064)return d.CLUSTER_BREAK.LV}else if(t<48120){if(t<48092){if(48065<=t&&t<=48091)return d.CLUSTER_BREAK.LVT}else if(t<48093){if(t===48092)return d.CLUSTER_BREAK.LV}else if(48093<=t&&t<=48119)return d.CLUSTER_BREAK.LVT}else if(t<48121){if(t===48120)return d.CLUSTER_BREAK.LV}else if(t<48148){if(48121<=t&&t<=48147)return d.CLUSTER_BREAK.LVT}else if(t===48148)return d.CLUSTER_BREAK.LV}else if(t<48232){if(t<48177){if(t<48176){if(48149<=t&&t<=48175)return d.CLUSTER_BREAK.LVT}else if(t===48176)return d.CLUSTER_BREAK.LV}else if(t<48204){if(48177<=t&&t<=48203)return d.CLUSTER_BREAK.LVT}else if(t<48205){if(t===48204)return d.CLUSTER_BREAK.LV}else if(48205<=t&&t<=48231)return d.CLUSTER_BREAK.LVT}else if(t<48261){if(t<48233){if(t===48232)return d.CLUSTER_BREAK.LV}else if(t<48260){if(48233<=t&&t<=48259)return d.CLUSTER_BREAK.LVT}else if(t===48260)return d.CLUSTER_BREAK.LV}else if(t<48288){if(48261<=t&&t<=48287)return d.CLUSTER_BREAK.LVT}else if(t<48289){if(t===48288)return d.CLUSTER_BREAK.LV}else if(48289<=t&&t<=48315)return d.CLUSTER_BREAK.LVT}else if(t<48597){if(t<48456){if(t<48373){if(t<48344){if(t<48317){if(t===48316)return d.CLUSTER_BREAK.LV}else if(48317<=t&&t<=48343)return d.CLUSTER_BREAK.LVT}else if(t<48345){if(t===48344)return d.CLUSTER_BREAK.LV}else if(t<48372){if(48345<=t&&t<=48371)return d.CLUSTER_BREAK.LVT}else if(t===48372)return d.CLUSTER_BREAK.LV}else if(t<48401){if(t<48400){if(48373<=t&&t<=48399)return d.CLUSTER_BREAK.LVT}else if(t===48400)return d.CLUSTER_BREAK.LV}else if(t<48428){if(48401<=t&&t<=48427)return d.CLUSTER_BREAK.LVT}else if(t<48429){if(t===48428)return d.CLUSTER_BREAK.LV}else if(48429<=t&&t<=48455)return d.CLUSTER_BREAK.LVT}else if(t<48513){if(t<48484){if(t<48457){if(t===48456)return d.CLUSTER_BREAK.LV}else if(48457<=t&&t<=48483)return d.CLUSTER_BREAK.LVT}else if(t<48485){if(t===48484)return d.CLUSTER_BREAK.LV}else if(t<48512){if(48485<=t&&t<=48511)return d.CLUSTER_BREAK.LVT}else if(t===48512)return d.CLUSTER_BREAK.LV}else if(t<48568){if(t<48540){if(48513<=t&&t<=48539)return d.CLUSTER_BREAK.LVT}else if(t<48541){if(t===48540)return d.CLUSTER_BREAK.LV}else if(48541<=t&&t<=48567)return d.CLUSTER_BREAK.LVT}else if(t<48569){if(t===48568)return d.CLUSTER_BREAK.LV}else if(t<48596){if(48569<=t&&t<=48595)return d.CLUSTER_BREAK.LVT}else if(t===48596)return d.CLUSTER_BREAK.LV}else if(t<48764){if(t<48680){if(t<48625){if(t<48624){if(48597<=t&&t<=48623)return d.CLUSTER_BREAK.LVT}else if(t===48624)return d.CLUSTER_BREAK.LV}else if(t<48652){if(48625<=t&&t<=48651)return d.CLUSTER_BREAK.LVT}else if(t<48653){if(t===48652)return d.CLUSTER_BREAK.LV}else if(48653<=t&&t<=48679)return d.CLUSTER_BREAK.LVT}else if(t<48709){if(t<48681){if(t===48680)return d.CLUSTER_BREAK.LV}else if(t<48708){if(48681<=t&&t<=48707)return d.CLUSTER_BREAK.LVT}else if(t===48708)return d.CLUSTER_BREAK.LV}else if(t<48736){if(48709<=t&&t<=48735)return d.CLUSTER_BREAK.LVT}else if(t<48737){if(t===48736)return d.CLUSTER_BREAK.LV}else if(48737<=t&&t<=48763)return d.CLUSTER_BREAK.LVT}else if(t<48821){if(t<48792){if(t<48765){if(t===48764)return d.CLUSTER_BREAK.LV}else if(48765<=t&&t<=48791)return d.CLUSTER_BREAK.LVT}else if(t<48793){if(t===48792)return d.CLUSTER_BREAK.LV}else if(t<48820){if(48793<=t&&t<=48819)return d.CLUSTER_BREAK.LVT}else if(t===48820)return d.CLUSTER_BREAK.LV}else if(t<48876){if(t<48848){if(48821<=t&&t<=48847)return d.CLUSTER_BREAK.LVT}else if(t<48849){if(t===48848)return d.CLUSTER_BREAK.LV}else if(48849<=t&&t<=48875)return d.CLUSTER_BREAK.LVT}else if(t<48877){if(t===48876)return d.CLUSTER_BREAK.LV}else if(t<48904){if(48877<=t&&t<=48903)return d.CLUSTER_BREAK.LVT}else if(t===48904)return d.CLUSTER_BREAK.LV}else if(t<53720){if(t<51312){if(t<50108){if(t<49493){if(t<49212){if(t<49045){if(t<48988){if(t<48933){if(t<48932){if(48905<=t&&t<=48931)return d.CLUSTER_BREAK.LVT}else if(t===48932)return d.CLUSTER_BREAK.LV}else if(t<48960){if(48933<=t&&t<=48959)return d.CLUSTER_BREAK.LVT}else if(t<48961){if(t===48960)return d.CLUSTER_BREAK.LV}else if(48961<=t&&t<=48987)return d.CLUSTER_BREAK.LVT}else if(t<49016){if(t<48989){if(t===48988)return d.CLUSTER_BREAK.LV}else if(48989<=t&&t<=49015)return d.CLUSTER_BREAK.LVT}else if(t<49017){if(t===49016)return d.CLUSTER_BREAK.LV}else if(t<49044){if(49017<=t&&t<=49043)return d.CLUSTER_BREAK.LVT}else if(t===49044)return d.CLUSTER_BREAK.LV}else if(t<49128){if(t<49073){if(t<49072){if(49045<=t&&t<=49071)return d.CLUSTER_BREAK.LVT}else if(t===49072)return d.CLUSTER_BREAK.LV}else if(t<49100){if(49073<=t&&t<=49099)return d.CLUSTER_BREAK.LVT}else if(t<49101){if(t===49100)return d.CLUSTER_BREAK.LV}else if(49101<=t&&t<=49127)return d.CLUSTER_BREAK.LVT}else if(t<49157){if(t<49129){if(t===49128)return d.CLUSTER_BREAK.LV}else if(t<49156){if(49129<=t&&t<=49155)return d.CLUSTER_BREAK.LVT}else if(t===49156)return d.CLUSTER_BREAK.LV}else if(t<49184){if(49157<=t&&t<=49183)return d.CLUSTER_BREAK.LVT}else if(t<49185){if(t===49184)return d.CLUSTER_BREAK.LV}else if(49185<=t&&t<=49211)return d.CLUSTER_BREAK.LVT}else if(t<49352){if(t<49269){if(t<49240){if(t<49213){if(t===49212)return d.CLUSTER_BREAK.LV}else if(49213<=t&&t<=49239)return d.CLUSTER_BREAK.LVT}else if(t<49241){if(t===49240)return d.CLUSTER_BREAK.LV}else if(t<49268){if(49241<=t&&t<=49267)return d.CLUSTER_BREAK.LVT}else if(t===49268)return d.CLUSTER_BREAK.LV}else if(t<49297){if(t<49296){if(49269<=t&&t<=49295)return d.CLUSTER_BREAK.LVT}else if(t===49296)return d.CLUSTER_BREAK.LV}else if(t<49324){if(49297<=t&&t<=49323)return d.CLUSTER_BREAK.LVT}else if(t<49325){if(t===49324)return d.CLUSTER_BREAK.LV}else if(49325<=t&&t<=49351)return d.CLUSTER_BREAK.LVT}else if(t<49409){if(t<49380){if(t<49353){if(t===49352)return d.CLUSTER_BREAK.LV}else if(49353<=t&&t<=49379)return d.CLUSTER_BREAK.LVT}else if(t<49381){if(t===49380)return d.CLUSTER_BREAK.LV}else if(t<49408){if(49381<=t&&t<=49407)return d.CLUSTER_BREAK.LVT}else if(t===49408)return d.CLUSTER_BREAK.LV}else if(t<49464){if(t<49436){if(49409<=t&&t<=49435)return d.CLUSTER_BREAK.LVT}else if(t<49437){if(t===49436)return d.CLUSTER_BREAK.LV}else if(49437<=t&&t<=49463)return d.CLUSTER_BREAK.LVT}else if(t<49465){if(t===49464)return d.CLUSTER_BREAK.LV}else if(t<49492){if(49465<=t&&t<=49491)return d.CLUSTER_BREAK.LVT}else if(t===49492)return d.CLUSTER_BREAK.LV}else if(t<49800){if(t<49633){if(t<49576){if(t<49521){if(t<49520){if(49493<=t&&t<=49519)return d.CLUSTER_BREAK.LVT}else if(t===49520)return d.CLUSTER_BREAK.LV}else if(t<49548){if(49521<=t&&t<=49547)return d.CLUSTER_BREAK.LVT}else if(t<49549){if(t===49548)return d.CLUSTER_BREAK.LV}else if(49549<=t&&t<=49575)return d.CLUSTER_BREAK.LVT}else if(t<49604){if(t<49577){if(t===49576)return d.CLUSTER_BREAK.LV}else if(49577<=t&&t<=49603)return d.CLUSTER_BREAK.LVT}else if(t<49605){if(t===49604)return d.CLUSTER_BREAK.LV}else if(t<49632){if(49605<=t&&t<=49631)return d.CLUSTER_BREAK.LVT}else if(t===49632)return d.CLUSTER_BREAK.LV}else if(t<49716){if(t<49661){if(t<49660){if(49633<=t&&t<=49659)return d.CLUSTER_BREAK.LVT}else if(t===49660)return d.CLUSTER_BREAK.LV}else if(t<49688){if(49661<=t&&t<=49687)return d.CLUSTER_BREAK.LVT}else if(t<49689){if(t===49688)return d.CLUSTER_BREAK.LV}else if(49689<=t&&t<=49715)return d.CLUSTER_BREAK.LVT}else if(t<49745){if(t<49717){if(t===49716)return d.CLUSTER_BREAK.LV}else if(t<49744){if(49717<=t&&t<=49743)return d.CLUSTER_BREAK.LVT}else if(t===49744)return d.CLUSTER_BREAK.LV}else if(t<49772){if(49745<=t&&t<=49771)return d.CLUSTER_BREAK.LVT}else if(t<49773){if(t===49772)return d.CLUSTER_BREAK.LV}else if(49773<=t&&t<=49799)return d.CLUSTER_BREAK.LVT}else if(t<49941){if(t<49857){if(t<49828){if(t<49801){if(t===49800)return d.CLUSTER_BREAK.LV}else if(49801<=t&&t<=49827)return d.CLUSTER_BREAK.LVT}else if(t<49829){if(t===49828)return d.CLUSTER_BREAK.LV}else if(t<49856){if(49829<=t&&t<=49855)return d.CLUSTER_BREAK.LVT}else if(t===49856)return d.CLUSTER_BREAK.LV}else if(t<49912){if(t<49884){if(49857<=t&&t<=49883)return d.CLUSTER_BREAK.LVT}else if(t<49885){if(t===49884)return d.CLUSTER_BREAK.LV}else if(49885<=t&&t<=49911)return d.CLUSTER_BREAK.LVT}else if(t<49913){if(t===49912)return d.CLUSTER_BREAK.LV}else if(t<49940){if(49913<=t&&t<=49939)return d.CLUSTER_BREAK.LVT}else if(t===49940)return d.CLUSTER_BREAK.LV}else if(t<50024){if(t<49969){if(t<49968){if(49941<=t&&t<=49967)return d.CLUSTER_BREAK.LVT}else if(t===49968)return d.CLUSTER_BREAK.LV}else if(t<49996){if(49969<=t&&t<=49995)return d.CLUSTER_BREAK.LVT}else if(t<49997){if(t===49996)return d.CLUSTER_BREAK.LV}else if(49997<=t&&t<=50023)return d.CLUSTER_BREAK.LVT}else if(t<50053){if(t<50025){if(t===50024)return d.CLUSTER_BREAK.LV}else if(t<50052){if(50025<=t&&t<=50051)return d.CLUSTER_BREAK.LVT}else if(t===50052)return d.CLUSTER_BREAK.LV}else if(t<50080){if(50053<=t&&t<=50079)return d.CLUSTER_BREAK.LVT}else if(t<50081){if(t===50080)return d.CLUSTER_BREAK.LV}else if(50081<=t&&t<=50107)return d.CLUSTER_BREAK.LVT}else if(t<50697){if(t<50389){if(t<50248){if(t<50165){if(t<50136){if(t<50109){if(t===50108)return d.CLUSTER_BREAK.LV}else if(50109<=t&&t<=50135)return d.CLUSTER_BREAK.LVT}else if(t<50137){if(t===50136)return d.CLUSTER_BREAK.LV}else if(t<50164){if(50137<=t&&t<=50163)return d.CLUSTER_BREAK.LVT}else if(t===50164)return d.CLUSTER_BREAK.LV}else if(t<50193){if(t<50192){if(50165<=t&&t<=50191)return d.CLUSTER_BREAK.LVT}else if(t===50192)return d.CLUSTER_BREAK.LV}else if(t<50220){if(50193<=t&&t<=50219)return d.CLUSTER_BREAK.LVT}else if(t<50221){if(t===50220)return d.CLUSTER_BREAK.LV}else if(50221<=t&&t<=50247)return d.CLUSTER_BREAK.LVT}else if(t<50305){if(t<50276){if(t<50249){if(t===50248)return d.CLUSTER_BREAK.LV}else if(50249<=t&&t<=50275)return d.CLUSTER_BREAK.LVT}else if(t<50277){if(t===50276)return d.CLUSTER_BREAK.LV}else if(t<50304){if(50277<=t&&t<=50303)return d.CLUSTER_BREAK.LVT}else if(t===50304)return d.CLUSTER_BREAK.LV}else if(t<50360){if(t<50332){if(50305<=t&&t<=50331)return d.CLUSTER_BREAK.LVT}else if(t<50333){if(t===50332)return d.CLUSTER_BREAK.LV}else if(50333<=t&&t<=50359)return d.CLUSTER_BREAK.LVT}else if(t<50361){if(t===50360)return d.CLUSTER_BREAK.LV}else if(t<50388){if(50361<=t&&t<=50387)return d.CLUSTER_BREAK.LVT}else if(t===50388)return d.CLUSTER_BREAK.LV}else if(t<50556){if(t<50472){if(t<50417){if(t<50416){if(50389<=t&&t<=50415)return d.CLUSTER_BREAK.LVT}else if(t===50416)return d.CLUSTER_BREAK.LV}else if(t<50444){if(50417<=t&&t<=50443)return d.CLUSTER_BREAK.LVT}else if(t<50445){if(t===50444)return d.CLUSTER_BREAK.LV}else if(50445<=t&&t<=50471)return d.CLUSTER_BREAK.LVT}else if(t<50501){if(t<50473){if(t===50472)return d.CLUSTER_BREAK.LV}else if(t<50500){if(50473<=t&&t<=50499)return d.CLUSTER_BREAK.LVT}else if(t===50500)return d.CLUSTER_BREAK.LV}else if(t<50528){if(50501<=t&&t<=50527)return d.CLUSTER_BREAK.LVT}else if(t<50529){if(t===50528)return d.CLUSTER_BREAK.LV}else if(50529<=t&&t<=50555)return d.CLUSTER_BREAK.LVT}else if(t<50613){if(t<50584){if(t<50557){if(t===50556)return d.CLUSTER_BREAK.LV}else if(50557<=t&&t<=50583)return d.CLUSTER_BREAK.LVT}else if(t<50585){if(t===50584)return d.CLUSTER_BREAK.LV}else if(t<50612){if(50585<=t&&t<=50611)return d.CLUSTER_BREAK.LVT}else if(t===50612)return d.CLUSTER_BREAK.LV}else if(t<50668){if(t<50640){if(50613<=t&&t<=50639)return d.CLUSTER_BREAK.LVT}else if(t<50641){if(t===50640)return d.CLUSTER_BREAK.LV}else if(50641<=t&&t<=50667)return d.CLUSTER_BREAK.LVT}else if(t<50669){if(t===50668)return d.CLUSTER_BREAK.LV}else if(t<50696){if(50669<=t&&t<=50695)return d.CLUSTER_BREAK.LVT}else if(t===50696)return d.CLUSTER_BREAK.LV}else if(t<51004){if(t<50837){if(t<50780){if(t<50725){if(t<50724){if(50697<=t&&t<=50723)return d.CLUSTER_BREAK.LVT}else if(t===50724)return d.CLUSTER_BREAK.LV}else if(t<50752){if(50725<=t&&t<=50751)return d.CLUSTER_BREAK.LVT}else if(t<50753){if(t===50752)return d.CLUSTER_BREAK.LV}else if(50753<=t&&t<=50779)return d.CLUSTER_BREAK.LVT}else if(t<50808){if(t<50781){if(t===50780)return d.CLUSTER_BREAK.LV}else if(50781<=t&&t<=50807)return d.CLUSTER_BREAK.LVT}else if(t<50809){if(t===50808)return d.CLUSTER_BREAK.LV}else if(t<50836){if(50809<=t&&t<=50835)return d.CLUSTER_BREAK.LVT}else if(t===50836)return d.CLUSTER_BREAK.LV}else if(t<50920){if(t<50865){if(t<50864){if(50837<=t&&t<=50863)return d.CLUSTER_BREAK.LVT}else if(t===50864)return d.CLUSTER_BREAK.LV}else if(t<50892){if(50865<=t&&t<=50891)return d.CLUSTER_BREAK.LVT}else if(t<50893){if(t===50892)return d.CLUSTER_BREAK.LV}else if(50893<=t&&t<=50919)return d.CLUSTER_BREAK.LVT}else if(t<50949){if(t<50921){if(t===50920)return d.CLUSTER_BREAK.LV}else if(t<50948){if(50921<=t&&t<=50947)return d.CLUSTER_BREAK.LVT}else if(t===50948)return d.CLUSTER_BREAK.LV}else if(t<50976){if(50949<=t&&t<=50975)return d.CLUSTER_BREAK.LVT}else if(t<50977){if(t===50976)return d.CLUSTER_BREAK.LV}else if(50977<=t&&t<=51003)return d.CLUSTER_BREAK.LVT}else if(t<51145){if(t<51061){if(t<51032){if(t<51005){if(t===51004)return d.CLUSTER_BREAK.LV}else if(51005<=t&&t<=51031)return d.CLUSTER_BREAK.LVT}else if(t<51033){if(t===51032)return d.CLUSTER_BREAK.LV}else if(t<51060){if(51033<=t&&t<=51059)return d.CLUSTER_BREAK.LVT}else if(t===51060)return d.CLUSTER_BREAK.LV}else if(t<51116){if(t<51088){if(51061<=t&&t<=51087)return d.CLUSTER_BREAK.LVT}else if(t<51089){if(t===51088)return d.CLUSTER_BREAK.LV}else if(51089<=t&&t<=51115)return d.CLUSTER_BREAK.LVT}else if(t<51117){if(t===51116)return d.CLUSTER_BREAK.LV}else if(t<51144){if(51117<=t&&t<=51143)return d.CLUSTER_BREAK.LVT}else if(t===51144)return d.CLUSTER_BREAK.LV}else if(t<51228){if(t<51173){if(t<51172){if(51145<=t&&t<=51171)return d.CLUSTER_BREAK.LVT}else if(t===51172)return d.CLUSTER_BREAK.LV}else if(t<51200){if(51173<=t&&t<=51199)return d.CLUSTER_BREAK.LVT}else if(t<51201){if(t===51200)return d.CLUSTER_BREAK.LV}else if(51201<=t&&t<=51227)return d.CLUSTER_BREAK.LVT}else if(t<51257){if(t<51229){if(t===51228)return d.CLUSTER_BREAK.LV}else if(t<51256){if(51229<=t&&t<=51255)return d.CLUSTER_BREAK.LVT}else if(t===51256)return d.CLUSTER_BREAK.LV}else if(t<51284){if(51257<=t&&t<=51283)return d.CLUSTER_BREAK.LVT}else if(t<51285){if(t===51284)return d.CLUSTER_BREAK.LV}else if(51285<=t&&t<=51311)return d.CLUSTER_BREAK.LVT}else if(t<52516){if(t<51901){if(t<51593){if(t<51452){if(t<51369){if(t<51340){if(t<51313){if(t===51312)return d.CLUSTER_BREAK.LV}else if(51313<=t&&t<=51339)return d.CLUSTER_BREAK.LVT}else if(t<51341){if(t===51340)return d.CLUSTER_BREAK.LV}else if(t<51368){if(51341<=t&&t<=51367)return d.CLUSTER_BREAK.LVT}else if(t===51368)return d.CLUSTER_BREAK.LV}else if(t<51397){if(t<51396){if(51369<=t&&t<=51395)return d.CLUSTER_BREAK.LVT}else if(t===51396)return d.CLUSTER_BREAK.LV}else if(t<51424){if(51397<=t&&t<=51423)return d.CLUSTER_BREAK.LVT}else if(t<51425){if(t===51424)return d.CLUSTER_BREAK.LV}else if(51425<=t&&t<=51451)return d.CLUSTER_BREAK.LVT}else if(t<51509){if(t<51480){if(t<51453){if(t===51452)return d.CLUSTER_BREAK.LV}else if(51453<=t&&t<=51479)return d.CLUSTER_BREAK.LVT}else if(t<51481){if(t===51480)return d.CLUSTER_BREAK.LV}else if(t<51508){if(51481<=t&&t<=51507)return d.CLUSTER_BREAK.LVT}else if(t===51508)return d.CLUSTER_BREAK.LV}else if(t<51564){if(t<51536){if(51509<=t&&t<=51535)return d.CLUSTER_BREAK.LVT}else if(t<51537){if(t===51536)return d.CLUSTER_BREAK.LV}else if(51537<=t&&t<=51563)return d.CLUSTER_BREAK.LVT}else if(t<51565){if(t===51564)return d.CLUSTER_BREAK.LV}else if(t<51592){if(51565<=t&&t<=51591)return d.CLUSTER_BREAK.LVT}else if(t===51592)return d.CLUSTER_BREAK.LV}else if(t<51760){if(t<51676){if(t<51621){if(t<51620){if(51593<=t&&t<=51619)return d.CLUSTER_BREAK.LVT}else if(t===51620)return d.CLUSTER_BREAK.LV}else if(t<51648){if(51621<=t&&t<=51647)return d.CLUSTER_BREAK.LVT}else if(t<51649){if(t===51648)return d.CLUSTER_BREAK.LV}else if(51649<=t&&t<=51675)return d.CLUSTER_BREAK.LVT}else if(t<51705){if(t<51677){if(t===51676)return d.CLUSTER_BREAK.LV}else if(t<51704){if(51677<=t&&t<=51703)return d.CLUSTER_BREAK.LVT}else if(t===51704)return d.CLUSTER_BREAK.LV}else if(t<51732){if(51705<=t&&t<=51731)return d.CLUSTER_BREAK.LVT}else if(t<51733){if(t===51732)return d.CLUSTER_BREAK.LV}else if(51733<=t&&t<=51759)return d.CLUSTER_BREAK.LVT}else if(t<51817){if(t<51788){if(t<51761){if(t===51760)return d.CLUSTER_BREAK.LV}else if(51761<=t&&t<=51787)return d.CLUSTER_BREAK.LVT}else if(t<51789){if(t===51788)return d.CLUSTER_BREAK.LV}else if(t<51816){if(51789<=t&&t<=51815)return d.CLUSTER_BREAK.LVT}else if(t===51816)return d.CLUSTER_BREAK.LV}else if(t<51872){if(t<51844){if(51817<=t&&t<=51843)return d.CLUSTER_BREAK.LVT}else if(t<51845){if(t===51844)return d.CLUSTER_BREAK.LV}else if(51845<=t&&t<=51871)return d.CLUSTER_BREAK.LVT}else if(t<51873){if(t===51872)return d.CLUSTER_BREAK.LV}else if(t<51900){if(51873<=t&&t<=51899)return d.CLUSTER_BREAK.LVT}else if(t===51900)return d.CLUSTER_BREAK.LV}else if(t<52208){if(t<52041){if(t<51984){if(t<51929){if(t<51928){if(51901<=t&&t<=51927)return d.CLUSTER_BREAK.LVT}else if(t===51928)return d.CLUSTER_BREAK.LV}else if(t<51956){if(51929<=t&&t<=51955)return d.CLUSTER_BREAK.LVT}else if(t<51957){if(t===51956)return d.CLUSTER_BREAK.LV}else if(51957<=t&&t<=51983)return d.CLUSTER_BREAK.LVT}else if(t<52012){if(t<51985){if(t===51984)return d.CLUSTER_BREAK.LV}else if(51985<=t&&t<=52011)return d.CLUSTER_BREAK.LVT}else if(t<52013){if(t===52012)return d.CLUSTER_BREAK.LV}else if(t<52040){if(52013<=t&&t<=52039)return d.CLUSTER_BREAK.LVT}else if(t===52040)return d.CLUSTER_BREAK.LV}else if(t<52124){if(t<52069){if(t<52068){if(52041<=t&&t<=52067)return d.CLUSTER_BREAK.LVT}else if(t===52068)return d.CLUSTER_BREAK.LV}else if(t<52096){if(52069<=t&&t<=52095)return d.CLUSTER_BREAK.LVT}else if(t<52097){if(t===52096)return d.CLUSTER_BREAK.LV}else if(52097<=t&&t<=52123)return d.CLUSTER_BREAK.LVT}else if(t<52153){if(t<52125){if(t===52124)return d.CLUSTER_BREAK.LV}else if(t<52152){if(52125<=t&&t<=52151)return d.CLUSTER_BREAK.LVT}else if(t===52152)return d.CLUSTER_BREAK.LV}else if(t<52180){if(52153<=t&&t<=52179)return d.CLUSTER_BREAK.LVT}else if(t<52181){if(t===52180)return d.CLUSTER_BREAK.LV}else if(52181<=t&&t<=52207)return d.CLUSTER_BREAK.LVT}else if(t<52349){if(t<52265){if(t<52236){if(t<52209){if(t===52208)return d.CLUSTER_BREAK.LV}else if(52209<=t&&t<=52235)return d.CLUSTER_BREAK.LVT}else if(t<52237){if(t===52236)return d.CLUSTER_BREAK.LV}else if(t<52264){if(52237<=t&&t<=52263)return d.CLUSTER_BREAK.LVT}else if(t===52264)return d.CLUSTER_BREAK.LV}else if(t<52320){if(t<52292){if(52265<=t&&t<=52291)return d.CLUSTER_BREAK.LVT}else if(t<52293){if(t===52292)return d.CLUSTER_BREAK.LV}else if(52293<=t&&t<=52319)return d.CLUSTER_BREAK.LVT}else if(t<52321){if(t===52320)return d.CLUSTER_BREAK.LV}else if(t<52348){if(52321<=t&&t<=52347)return d.CLUSTER_BREAK.LVT}else if(t===52348)return d.CLUSTER_BREAK.LV}else if(t<52432){if(t<52377){if(t<52376){if(52349<=t&&t<=52375)return d.CLUSTER_BREAK.LVT}else if(t===52376)return d.CLUSTER_BREAK.LV}else if(t<52404){if(52377<=t&&t<=52403)return d.CLUSTER_BREAK.LVT}else if(t<52405){if(t===52404)return d.CLUSTER_BREAK.LV}else if(52405<=t&&t<=52431)return d.CLUSTER_BREAK.LVT}else if(t<52461){if(t<52433){if(t===52432)return d.CLUSTER_BREAK.LV}else if(t<52460){if(52433<=t&&t<=52459)return d.CLUSTER_BREAK.LVT}else if(t===52460)return d.CLUSTER_BREAK.LV}else if(t<52488){if(52461<=t&&t<=52487)return d.CLUSTER_BREAK.LVT}else if(t<52489){if(t===52488)return d.CLUSTER_BREAK.LV}else if(52489<=t&&t<=52515)return d.CLUSTER_BREAK.LVT}else if(t<53105){if(t<52797){if(t<52656){if(t<52573){if(t<52544){if(t<52517){if(t===52516)return d.CLUSTER_BREAK.LV}else if(52517<=t&&t<=52543)return d.CLUSTER_BREAK.LVT}else if(t<52545){if(t===52544)return d.CLUSTER_BREAK.LV}else if(t<52572){if(52545<=t&&t<=52571)return d.CLUSTER_BREAK.LVT}else if(t===52572)return d.CLUSTER_BREAK.LV}else if(t<52601){if(t<52600){if(52573<=t&&t<=52599)return d.CLUSTER_BREAK.LVT}else if(t===52600)return d.CLUSTER_BREAK.LV}else if(t<52628){if(52601<=t&&t<=52627)return d.CLUSTER_BREAK.LVT}else if(t<52629){if(t===52628)return d.CLUSTER_BREAK.LV}else if(52629<=t&&t<=52655)return d.CLUSTER_BREAK.LVT}else if(t<52713){if(t<52684){if(t<52657){if(t===52656)return d.CLUSTER_BREAK.LV}else if(52657<=t&&t<=52683)return d.CLUSTER_BREAK.LVT}else if(t<52685){if(t===52684)return d.CLUSTER_BREAK.LV}else if(t<52712){if(52685<=t&&t<=52711)return d.CLUSTER_BREAK.LVT}else if(t===52712)return d.CLUSTER_BREAK.LV}else if(t<52768){if(t<52740){if(52713<=t&&t<=52739)return d.CLUSTER_BREAK.LVT}else if(t<52741){if(t===52740)return d.CLUSTER_BREAK.LV}else if(52741<=t&&t<=52767)return d.CLUSTER_BREAK.LVT}else if(t<52769){if(t===52768)return d.CLUSTER_BREAK.LV}else if(t<52796){if(52769<=t&&t<=52795)return d.CLUSTER_BREAK.LVT}else if(t===52796)return d.CLUSTER_BREAK.LV}else if(t<52964){if(t<52880){if(t<52825){if(t<52824){if(52797<=t&&t<=52823)return d.CLUSTER_BREAK.LVT}else if(t===52824)return d.CLUSTER_BREAK.LV}else if(t<52852){if(52825<=t&&t<=52851)return d.CLUSTER_BREAK.LVT}else if(t<52853){if(t===52852)return d.CLUSTER_BREAK.LV}else if(52853<=t&&t<=52879)return d.CLUSTER_BREAK.LVT}else if(t<52909){if(t<52881){if(t===52880)return d.CLUSTER_BREAK.LV}else if(t<52908){if(52881<=t&&t<=52907)return d.CLUSTER_BREAK.LVT}else if(t===52908)return d.CLUSTER_BREAK.LV}else if(t<52936){if(52909<=t&&t<=52935)return d.CLUSTER_BREAK.LVT}else if(t<52937){if(t===52936)return d.CLUSTER_BREAK.LV}else if(52937<=t&&t<=52963)return d.CLUSTER_BREAK.LVT}else if(t<53021){if(t<52992){if(t<52965){if(t===52964)return d.CLUSTER_BREAK.LV}else if(52965<=t&&t<=52991)return d.CLUSTER_BREAK.LVT}else if(t<52993){if(t===52992)return d.CLUSTER_BREAK.LV}else if(t<53020){if(52993<=t&&t<=53019)return d.CLUSTER_BREAK.LVT}else if(t===53020)return d.CLUSTER_BREAK.LV}else if(t<53076){if(t<53048){if(53021<=t&&t<=53047)return d.CLUSTER_BREAK.LVT}else if(t<53049){if(t===53048)return d.CLUSTER_BREAK.LV}else if(53049<=t&&t<=53075)return d.CLUSTER_BREAK.LVT}else if(t<53077){if(t===53076)return d.CLUSTER_BREAK.LV}else if(t<53104){if(53077<=t&&t<=53103)return d.CLUSTER_BREAK.LVT}else if(t===53104)return d.CLUSTER_BREAK.LV}else if(t<53412){if(t<53245){if(t<53188){if(t<53133){if(t<53132){if(53105<=t&&t<=53131)return d.CLUSTER_BREAK.LVT}else if(t===53132)return d.CLUSTER_BREAK.LV}else if(t<53160){if(53133<=t&&t<=53159)return d.CLUSTER_BREAK.LVT}else if(t<53161){if(t===53160)return d.CLUSTER_BREAK.LV}else if(53161<=t&&t<=53187)return d.CLUSTER_BREAK.LVT}else if(t<53216){if(t<53189){if(t===53188)return d.CLUSTER_BREAK.LV}else if(53189<=t&&t<=53215)return d.CLUSTER_BREAK.LVT}else if(t<53217){if(t===53216)return d.CLUSTER_BREAK.LV}else if(t<53244){if(53217<=t&&t<=53243)return d.CLUSTER_BREAK.LVT}else if(t===53244)return d.CLUSTER_BREAK.LV}else if(t<53328){if(t<53273){if(t<53272){if(53245<=t&&t<=53271)return d.CLUSTER_BREAK.LVT}else if(t===53272)return d.CLUSTER_BREAK.LV}else if(t<53300){if(53273<=t&&t<=53299)return d.CLUSTER_BREAK.LVT}else if(t<53301){if(t===53300)return d.CLUSTER_BREAK.LV}else if(53301<=t&&t<=53327)return d.CLUSTER_BREAK.LVT}else if(t<53357){if(t<53329){if(t===53328)return d.CLUSTER_BREAK.LV}else if(t<53356){if(53329<=t&&t<=53355)return d.CLUSTER_BREAK.LVT}else if(t===53356)return d.CLUSTER_BREAK.LV}else if(t<53384){if(53357<=t&&t<=53383)return d.CLUSTER_BREAK.LVT}else if(t<53385){if(t===53384)return d.CLUSTER_BREAK.LV}else if(53385<=t&&t<=53411)return d.CLUSTER_BREAK.LVT}else if(t<53553){if(t<53469){if(t<53440){if(t<53413){if(t===53412)return d.CLUSTER_BREAK.LV}else if(53413<=t&&t<=53439)return d.CLUSTER_BREAK.LVT}else if(t<53441){if(t===53440)return d.CLUSTER_BREAK.LV}else if(t<53468){if(53441<=t&&t<=53467)return d.CLUSTER_BREAK.LVT}else if(t===53468)return d.CLUSTER_BREAK.LV}else if(t<53524){if(t<53496){if(53469<=t&&t<=53495)return d.CLUSTER_BREAK.LVT}else if(t<53497){if(t===53496)return d.CLUSTER_BREAK.LV}else if(53497<=t&&t<=53523)return d.CLUSTER_BREAK.LVT}else if(t<53525){if(t===53524)return d.CLUSTER_BREAK.LV}else if(t<53552){if(53525<=t&&t<=53551)return d.CLUSTER_BREAK.LVT}else if(t===53552)return d.CLUSTER_BREAK.LV}else if(t<53636){if(t<53581){if(t<53580){if(53553<=t&&t<=53579)return d.CLUSTER_BREAK.LVT}else if(t===53580)return d.CLUSTER_BREAK.LV}else if(t<53608){if(53581<=t&&t<=53607)return d.CLUSTER_BREAK.LVT}else if(t<53609){if(t===53608)return d.CLUSTER_BREAK.LV}else if(53609<=t&&t<=53635)return d.CLUSTER_BREAK.LVT}else if(t<53665){if(t<53637){if(t===53636)return d.CLUSTER_BREAK.LV}else if(t<53664){if(53637<=t&&t<=53663)return d.CLUSTER_BREAK.LVT}else if(t===53664)return d.CLUSTER_BREAK.LV}else if(t<53692){if(53665<=t&&t<=53691)return d.CLUSTER_BREAK.LVT}else if(t<53693){if(t===53692)return d.CLUSTER_BREAK.LV}else if(53693<=t&&t<=53719)return d.CLUSTER_BREAK.LVT}else if(t<70459){if(t<54897){if(t<54308){if(t<54001){if(t<53860){if(t<53777){if(t<53748){if(t<53721){if(t===53720)return d.CLUSTER_BREAK.LV}else if(53721<=t&&t<=53747)return d.CLUSTER_BREAK.LVT}else if(t<53749){if(t===53748)return d.CLUSTER_BREAK.LV}else if(t<53776){if(53749<=t&&t<=53775)return d.CLUSTER_BREAK.LVT}else if(t===53776)return d.CLUSTER_BREAK.LV}else if(t<53805){if(t<53804){if(53777<=t&&t<=53803)return d.CLUSTER_BREAK.LVT}else if(t===53804)return d.CLUSTER_BREAK.LV}else if(t<53832){if(53805<=t&&t<=53831)return d.CLUSTER_BREAK.LVT}else if(t<53833){if(t===53832)return d.CLUSTER_BREAK.LV}else if(53833<=t&&t<=53859)return d.CLUSTER_BREAK.LVT}else if(t<53917){if(t<53888){if(t<53861){if(t===53860)return d.CLUSTER_BREAK.LV}else if(53861<=t&&t<=53887)return d.CLUSTER_BREAK.LVT}else if(t<53889){if(t===53888)return d.CLUSTER_BREAK.LV}else if(t<53916){if(53889<=t&&t<=53915)return d.CLUSTER_BREAK.LVT}else if(t===53916)return d.CLUSTER_BREAK.LV}else if(t<53972){if(t<53944){if(53917<=t&&t<=53943)return d.CLUSTER_BREAK.LVT}else if(t<53945){if(t===53944)return d.CLUSTER_BREAK.LV}else if(53945<=t&&t<=53971)return d.CLUSTER_BREAK.LVT}else if(t<53973){if(t===53972)return d.CLUSTER_BREAK.LV}else if(t<54e3){if(53973<=t&&t<=53999)return d.CLUSTER_BREAK.LVT}else if(t===54e3)return d.CLUSTER_BREAK.LV}else if(t<54141){if(t<54084){if(t<54029){if(t<54028){if(54001<=t&&t<=54027)return d.CLUSTER_BREAK.LVT}else if(t===54028)return d.CLUSTER_BREAK.LV}else if(t<54056){if(54029<=t&&t<=54055)return d.CLUSTER_BREAK.LVT}else if(t<54057){if(t===54056)return d.CLUSTER_BREAK.LV}else if(54057<=t&&t<=54083)return d.CLUSTER_BREAK.LVT}else if(t<54112){if(t<54085){if(t===54084)return d.CLUSTER_BREAK.LV}else if(54085<=t&&t<=54111)return d.CLUSTER_BREAK.LVT}else if(t<54113){if(t===54112)return d.CLUSTER_BREAK.LV}else if(t<54140){if(54113<=t&&t<=54139)return d.CLUSTER_BREAK.LVT}else if(t===54140)return d.CLUSTER_BREAK.LV}else if(t<54224){if(t<54169){if(t<54168){if(54141<=t&&t<=54167)return d.CLUSTER_BREAK.LVT}else if(t===54168)return d.CLUSTER_BREAK.LV}else if(t<54196){if(54169<=t&&t<=54195)return d.CLUSTER_BREAK.LVT}else if(t<54197){if(t===54196)return d.CLUSTER_BREAK.LV}else if(54197<=t&&t<=54223)return d.CLUSTER_BREAK.LVT}else if(t<54253){if(t<54225){if(t===54224)return d.CLUSTER_BREAK.LV}else if(t<54252){if(54225<=t&&t<=54251)return d.CLUSTER_BREAK.LVT}else if(t===54252)return d.CLUSTER_BREAK.LV}else if(t<54280){if(54253<=t&&t<=54279)return d.CLUSTER_BREAK.LVT}else if(t<54281){if(t===54280)return d.CLUSTER_BREAK.LV}else if(54281<=t&&t<=54307)return d.CLUSTER_BREAK.LVT}else if(t<54589){if(t<54448){if(t<54365){if(t<54336){if(t<54309){if(t===54308)return d.CLUSTER_BREAK.LV}else if(54309<=t&&t<=54335)return d.CLUSTER_BREAK.LVT}else if(t<54337){if(t===54336)return d.CLUSTER_BREAK.LV}else if(t<54364){if(54337<=t&&t<=54363)return d.CLUSTER_BREAK.LVT}else if(t===54364)return d.CLUSTER_BREAK.LV}else if(t<54393){if(t<54392){if(54365<=t&&t<=54391)return d.CLUSTER_BREAK.LVT}else if(t===54392)return d.CLUSTER_BREAK.LV}else if(t<54420){if(54393<=t&&t<=54419)return d.CLUSTER_BREAK.LVT}else if(t<54421){if(t===54420)return d.CLUSTER_BREAK.LV}else if(54421<=t&&t<=54447)return d.CLUSTER_BREAK.LVT}else if(t<54505){if(t<54476){if(t<54449){if(t===54448)return d.CLUSTER_BREAK.LV}else if(54449<=t&&t<=54475)return d.CLUSTER_BREAK.LVT}else if(t<54477){if(t===54476)return d.CLUSTER_BREAK.LV}else if(t<54504){if(54477<=t&&t<=54503)return d.CLUSTER_BREAK.LVT}else if(t===54504)return d.CLUSTER_BREAK.LV}else if(t<54560){if(t<54532){if(54505<=t&&t<=54531)return d.CLUSTER_BREAK.LVT}else if(t<54533){if(t===54532)return d.CLUSTER_BREAK.LV}else if(54533<=t&&t<=54559)return d.CLUSTER_BREAK.LVT}else if(t<54561){if(t===54560)return d.CLUSTER_BREAK.LV}else if(t<54588){if(54561<=t&&t<=54587)return d.CLUSTER_BREAK.LVT}else if(t===54588)return d.CLUSTER_BREAK.LV}else if(t<54756){if(t<54672){if(t<54617){if(t<54616){if(54589<=t&&t<=54615)return d.CLUSTER_BREAK.LVT}else if(t===54616)return d.CLUSTER_BREAK.LV}else if(t<54644){if(54617<=t&&t<=54643)return d.CLUSTER_BREAK.LVT}else if(t<54645){if(t===54644)return d.CLUSTER_BREAK.LV}else if(54645<=t&&t<=54671)return d.CLUSTER_BREAK.LVT}else if(t<54701){if(t<54673){if(t===54672)return d.CLUSTER_BREAK.LV}else if(t<54700){if(54673<=t&&t<=54699)return d.CLUSTER_BREAK.LVT}else if(t===54700)return d.CLUSTER_BREAK.LV}else if(t<54728){if(54701<=t&&t<=54727)return d.CLUSTER_BREAK.LVT}else if(t<54729){if(t===54728)return d.CLUSTER_BREAK.LV}else if(54729<=t&&t<=54755)return d.CLUSTER_BREAK.LVT}else if(t<54813){if(t<54784){if(t<54757){if(t===54756)return d.CLUSTER_BREAK.LV}else if(54757<=t&&t<=54783)return d.CLUSTER_BREAK.LVT}else if(t<54785){if(t===54784)return d.CLUSTER_BREAK.LV}else if(t<54812){if(54785<=t&&t<=54811)return d.CLUSTER_BREAK.LVT}else if(t===54812)return d.CLUSTER_BREAK.LV}else if(t<54868){if(t<54840){if(54813<=t&&t<=54839)return d.CLUSTER_BREAK.LVT}else if(t<54841){if(t===54840)return d.CLUSTER_BREAK.LV}else if(54841<=t&&t<=54867)return d.CLUSTER_BREAK.LVT}else if(t<54869){if(t===54868)return d.CLUSTER_BREAK.LV}else if(t<54896){if(54869<=t&&t<=54895)return d.CLUSTER_BREAK.LVT}else if(t===54896)return d.CLUSTER_BREAK.LV}else if(t<69632){if(t<55216){if(t<55037){if(t<54980){if(t<54925){if(t<54924){if(54897<=t&&t<=54923)return d.CLUSTER_BREAK.LVT}else if(t===54924)return d.CLUSTER_BREAK.LV}else if(t<54952){if(54925<=t&&t<=54951)return d.CLUSTER_BREAK.LVT}else if(t<54953){if(t===54952)return d.CLUSTER_BREAK.LV}else if(54953<=t&&t<=54979)return d.CLUSTER_BREAK.LVT}else if(t<55008){if(t<54981){if(t===54980)return d.CLUSTER_BREAK.LV}else if(54981<=t&&t<=55007)return d.CLUSTER_BREAK.LVT}else if(t<55009){if(t===55008)return d.CLUSTER_BREAK.LV}else if(t<55036){if(55009<=t&&t<=55035)return d.CLUSTER_BREAK.LVT}else if(t===55036)return d.CLUSTER_BREAK.LV}else if(t<55120){if(t<55065){if(t<55064){if(55037<=t&&t<=55063)return d.CLUSTER_BREAK.LVT}else if(t===55064)return d.CLUSTER_BREAK.LV}else if(t<55092){if(55065<=t&&t<=55091)return d.CLUSTER_BREAK.LVT}else if(t<55093){if(t===55092)return d.CLUSTER_BREAK.LV}else if(55093<=t&&t<=55119)return d.CLUSTER_BREAK.LVT}else if(t<55149){if(t<55121){if(t===55120)return d.CLUSTER_BREAK.LV}else if(t<55148){if(55121<=t&&t<=55147)return d.CLUSTER_BREAK.LVT}else if(t===55148)return d.CLUSTER_BREAK.LV}else if(t<55176){if(55149<=t&&t<=55175)return d.CLUSTER_BREAK.LVT}else if(t<55177){if(t===55176)return d.CLUSTER_BREAK.LV}else if(55177<=t&&t<=55203)return d.CLUSTER_BREAK.LVT}else if(t<68097){if(t<65279){if(t<64286){if(t<55243){if(55216<=t&&t<=55238)return d.CLUSTER_BREAK.V}else if(55243<=t&&t<=55291)return d.CLUSTER_BREAK.T}else if(t<65024){if(t===64286)return d.CLUSTER_BREAK.EXTEND}else if(t<65056){if(65024<=t&&t<=65039)return d.CLUSTER_BREAK.EXTEND}else if(65056<=t&&t<=65071)return d.CLUSTER_BREAK.EXTEND}else if(t<66045){if(t<65438){if(t===65279)return d.CLUSTER_BREAK.CONTROL}else if(t<65520){if(65438<=t&&t<=65439)return d.CLUSTER_BREAK.EXTEND}else if(65520<=t&&t<=65531)return d.CLUSTER_BREAK.CONTROL}else if(t<66272){if(t===66045)return d.CLUSTER_BREAK.EXTEND}else if(t<66422){if(t===66272)return d.CLUSTER_BREAK.EXTEND}else if(66422<=t&&t<=66426)return d.CLUSTER_BREAK.EXTEND}else if(t<68325){if(t<68108){if(t<68101){if(68097<=t&&t<=68099)return d.CLUSTER_BREAK.EXTEND}else if(68101<=t&&t<=68102)return d.CLUSTER_BREAK.EXTEND}else if(t<68152){if(68108<=t&&t<=68111)return d.CLUSTER_BREAK.EXTEND}else if(t<68159){if(68152<=t&&t<=68154)return d.CLUSTER_BREAK.EXTEND}else if(t===68159)return d.CLUSTER_BREAK.EXTEND}else if(t<69373){if(t<68900){if(68325<=t&&t<=68326)return d.CLUSTER_BREAK.EXTEND}else if(t<69291){if(68900<=t&&t<=68903)return d.CLUSTER_BREAK.EXTEND}else if(69291<=t&&t<=69292)return d.CLUSTER_BREAK.EXTEND}else if(t<69446){if(69373<=t&&t<=69375)return d.CLUSTER_BREAK.EXTEND}else if(t<69506){if(69446<=t&&t<=69456)return d.CLUSTER_BREAK.EXTEND}else if(69506<=t&&t<=69509)return d.CLUSTER_BREAK.EXTEND}else if(t<70016){if(t<69815){if(t<69747){if(t<69634){if(t===69632)return d.CLUSTER_BREAK.SPACINGMARK;if(t===69633)return d.CLUSTER_BREAK.EXTEND}else if(t<69688){if(t===69634)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<69744){if(69688<=t&&t<=69702)return d.CLUSTER_BREAK.EXTEND}else if(t===69744)return d.CLUSTER_BREAK.EXTEND}else if(t<69762){if(t<69759){if(69747<=t&&t<=69748)return d.CLUSTER_BREAK.EXTEND}else if(69759<=t&&t<=69761)return d.CLUSTER_BREAK.EXTEND}else if(t<69808){if(t===69762)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<69811){if(69808<=t&&t<=69810)return d.CLUSTER_BREAK.SPACINGMARK}else if(69811<=t&&t<=69814)return d.CLUSTER_BREAK.EXTEND}else if(t<69888)if(t<69821){if(t<69817){if(69815<=t&&t<=69816)return d.CLUSTER_BREAK.SPACINGMARK}else if(69817<=t&&t<=69818)return d.CLUSTER_BREAK.EXTEND}else if(t<69826){if(t===69821)return d.CLUSTER_BREAK.PREPEND}else{if(t===69826)return d.CLUSTER_BREAK.EXTEND;if(t===69837)return d.CLUSTER_BREAK.PREPEND}else if(t<69933){if(t<69927){if(69888<=t&&t<=69890)return d.CLUSTER_BREAK.EXTEND}else if(t<69932){if(69927<=t&&t<=69931)return d.CLUSTER_BREAK.EXTEND}else if(t===69932)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<69957){if(69933<=t&&t<=69940)return d.CLUSTER_BREAK.EXTEND}else if(t<70003){if(69957<=t&&t<=69958)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===70003)return d.CLUSTER_BREAK.EXTEND}else if(t<70194){if(t<70082){if(t<70067){if(t<70018){if(70016<=t&&t<=70017)return d.CLUSTER_BREAK.EXTEND}else if(t===70018)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70070){if(70067<=t&&t<=70069)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70079){if(70070<=t&&t<=70078)return d.CLUSTER_BREAK.EXTEND}else if(70079<=t&&t<=70080)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70095){if(t<70089){if(70082<=t&&t<=70083)return d.CLUSTER_BREAK.PREPEND}else if(t<70094){if(70089<=t&&t<=70092)return d.CLUSTER_BREAK.EXTEND}else if(t===70094)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70188){if(t===70095)return d.CLUSTER_BREAK.EXTEND}else if(t<70191){if(70188<=t&&t<=70190)return d.CLUSTER_BREAK.SPACINGMARK}else if(70191<=t&&t<=70193)return d.CLUSTER_BREAK.EXTEND}else if(t<70209){if(t<70197){if(t<70196){if(70194<=t&&t<=70195)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===70196)return d.CLUSTER_BREAK.EXTEND}else if(t<70198){if(t===70197)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70206){if(70198<=t&&t<=70199)return d.CLUSTER_BREAK.EXTEND}else if(t===70206)return d.CLUSTER_BREAK.EXTEND}else if(t<70371){if(t<70367){if(t===70209)return d.CLUSTER_BREAK.EXTEND}else if(t<70368){if(t===70367)return d.CLUSTER_BREAK.EXTEND}else if(70368<=t&&t<=70370)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70400){if(70371<=t&&t<=70378)return d.CLUSTER_BREAK.EXTEND}else if(t<70402){if(70400<=t&&t<=70401)return d.CLUSTER_BREAK.EXTEND}else if(70402<=t&&t<=70403)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72343){if(t<71339){if(t<70841){if(t<70512){if(t<70471){if(t<70463){if(t<70462){if(70459<=t&&t<=70460)return d.CLUSTER_BREAK.EXTEND}else if(t===70462)return d.CLUSTER_BREAK.EXTEND}else if(t<70464){if(t===70463)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70465){if(t===70464)return d.CLUSTER_BREAK.EXTEND}else if(70465<=t&&t<=70468)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70487){if(t<70475){if(70471<=t&&t<=70472)return d.CLUSTER_BREAK.SPACINGMARK}else if(70475<=t&&t<=70477)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70498){if(t===70487)return d.CLUSTER_BREAK.EXTEND}else if(t<70502){if(70498<=t&&t<=70499)return d.CLUSTER_BREAK.SPACINGMARK}else if(70502<=t&&t<=70508)return d.CLUSTER_BREAK.EXTEND}else if(t<70725){if(t<70712){if(t<70709){if(70512<=t&&t<=70516)return d.CLUSTER_BREAK.EXTEND}else if(70709<=t&&t<=70711)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70720){if(70712<=t&&t<=70719)return d.CLUSTER_BREAK.EXTEND}else if(t<70722){if(70720<=t&&t<=70721)return d.CLUSTER_BREAK.SPACINGMARK}else if(70722<=t&&t<=70724)return d.CLUSTER_BREAK.EXTEND}else if(t<70832){if(t<70726){if(t===70725)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===70726||t===70750)return d.CLUSTER_BREAK.EXTEND}else if(t<70833){if(t===70832)return d.CLUSTER_BREAK.EXTEND}else if(t<70835){if(70833<=t&&t<=70834)return d.CLUSTER_BREAK.SPACINGMARK}else if(70835<=t&&t<=70840)return d.CLUSTER_BREAK.EXTEND}else if(t<71096){if(t<70847)if(t<70843){if(t===70841)return d.CLUSTER_BREAK.SPACINGMARK;if(t===70842)return d.CLUSTER_BREAK.EXTEND}else if(t<70845){if(70843<=t&&t<=70844)return d.CLUSTER_BREAK.SPACINGMARK}else{if(t===70845)return d.CLUSTER_BREAK.EXTEND;if(t===70846)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71087){if(t<70849){if(70847<=t&&t<=70848)return d.CLUSTER_BREAK.EXTEND}else if(t<70850){if(t===70849)return d.CLUSTER_BREAK.SPACINGMARK}else if(70850<=t&&t<=70851)return d.CLUSTER_BREAK.EXTEND}else if(t<71088){if(t===71087)return d.CLUSTER_BREAK.EXTEND}else if(t<71090){if(71088<=t&&t<=71089)return d.CLUSTER_BREAK.SPACINGMARK}else if(71090<=t&&t<=71093)return d.CLUSTER_BREAK.EXTEND}else if(t<71216){if(t<71102){if(t<71100){if(71096<=t&&t<=71099)return d.CLUSTER_BREAK.SPACINGMARK}else if(71100<=t&&t<=71101)return d.CLUSTER_BREAK.EXTEND}else if(t<71103){if(t===71102)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71132){if(71103<=t&&t<=71104)return d.CLUSTER_BREAK.EXTEND}else if(71132<=t&&t<=71133)return d.CLUSTER_BREAK.EXTEND}else if(t<71229){if(t<71219){if(71216<=t&&t<=71218)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71227){if(71219<=t&&t<=71226)return d.CLUSTER_BREAK.EXTEND}else if(71227<=t&&t<=71228)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71230){if(t===71229)return d.CLUSTER_BREAK.EXTEND}else if(t<71231){if(t===71230)return d.CLUSTER_BREAK.SPACINGMARK}else if(71231<=t&&t<=71232)return d.CLUSTER_BREAK.EXTEND}else if(t<71999)if(t<71463){if(t<71350){if(t<71341){if(t===71339)return d.CLUSTER_BREAK.EXTEND;if(t===71340)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71342){if(t===71341)return d.CLUSTER_BREAK.EXTEND}else if(t<71344){if(71342<=t&&t<=71343)return d.CLUSTER_BREAK.SPACINGMARK}else if(71344<=t&&t<=71349)return d.CLUSTER_BREAK.EXTEND}else if(t<71453){if(t===71350)return d.CLUSTER_BREAK.SPACINGMARK;if(t===71351)return d.CLUSTER_BREAK.EXTEND}else if(t<71458){if(71453<=t&&t<=71455)return d.CLUSTER_BREAK.EXTEND}else if(t<71462){if(71458<=t&&t<=71461)return d.CLUSTER_BREAK.EXTEND}else if(t===71462)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71984){if(t<71727){if(t<71724){if(71463<=t&&t<=71467)return d.CLUSTER_BREAK.EXTEND}else if(71724<=t&&t<=71726)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71736){if(71727<=t&&t<=71735)return d.CLUSTER_BREAK.EXTEND}else if(t<71737){if(t===71736)return d.CLUSTER_BREAK.SPACINGMARK}else if(71737<=t&&t<=71738)return d.CLUSTER_BREAK.EXTEND}else if(t<71995){if(t<71985){if(t===71984)return d.CLUSTER_BREAK.EXTEND}else if(t<71991){if(71985<=t&&t<=71989)return d.CLUSTER_BREAK.SPACINGMARK}else if(71991<=t&&t<=71992)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71997){if(71995<=t&&t<=71996)return d.CLUSTER_BREAK.EXTEND}else{if(t===71997)return d.CLUSTER_BREAK.SPACINGMARK;if(t===71998)return d.CLUSTER_BREAK.EXTEND}else if(t<72193)if(t<72145)if(t<72001){if(t===71999)return d.CLUSTER_BREAK.PREPEND;if(t===72e3)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72002){if(t===72001)return d.CLUSTER_BREAK.PREPEND}else{if(t===72002)return d.CLUSTER_BREAK.SPACINGMARK;if(t===72003)return d.CLUSTER_BREAK.EXTEND}else if(t<72156){if(t<72148){if(72145<=t&&t<=72147)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72154){if(72148<=t&&t<=72151)return d.CLUSTER_BREAK.EXTEND}else if(72154<=t&&t<=72155)return d.CLUSTER_BREAK.EXTEND}else if(t<72160){if(72156<=t&&t<=72159)return d.CLUSTER_BREAK.SPACINGMARK}else{if(t===72160)return d.CLUSTER_BREAK.EXTEND;if(t===72164)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72263){if(t<72249){if(t<72243){if(72193<=t&&t<=72202)return d.CLUSTER_BREAK.EXTEND}else if(72243<=t&&t<=72248)return d.CLUSTER_BREAK.EXTEND}else if(t<72250){if(t===72249)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72251){if(t===72250)return d.CLUSTER_BREAK.PREPEND}else if(72251<=t&&t<=72254)return d.CLUSTER_BREAK.EXTEND}else if(t<72281){if(t<72273){if(t===72263)return d.CLUSTER_BREAK.EXTEND}else if(t<72279){if(72273<=t&&t<=72278)return d.CLUSTER_BREAK.EXTEND}else if(72279<=t&&t<=72280)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72324){if(72281<=t&&t<=72283)return d.CLUSTER_BREAK.EXTEND}else if(t<72330){if(72324<=t&&t<=72329)return d.CLUSTER_BREAK.PREPEND}else if(72330<=t&&t<=72342)return d.CLUSTER_BREAK.EXTEND}else if(t<94033){if(t<73104){if(t<72881){if(t<72766){if(t<72751){if(t<72344){if(t===72343)return d.CLUSTER_BREAK.SPACINGMARK}else if(72344<=t&&t<=72345)return d.CLUSTER_BREAK.EXTEND}else if(t<72752){if(t===72751)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72760){if(72752<=t&&t<=72758)return d.CLUSTER_BREAK.EXTEND}else if(72760<=t&&t<=72765)return d.CLUSTER_BREAK.EXTEND}else if(t<72850){if(t===72766)return d.CLUSTER_BREAK.SPACINGMARK;if(t===72767)return d.CLUSTER_BREAK.EXTEND}else if(t<72873){if(72850<=t&&t<=72871)return d.CLUSTER_BREAK.EXTEND}else if(t<72874){if(t===72873)return d.CLUSTER_BREAK.SPACINGMARK}else if(72874<=t&&t<=72880)return d.CLUSTER_BREAK.EXTEND}else if(t<73018){if(t<72884){if(t<72882){if(t===72881)return d.CLUSTER_BREAK.SPACINGMARK}else if(72882<=t&&t<=72883)return d.CLUSTER_BREAK.EXTEND}else if(t<72885){if(t===72884)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<73009){if(72885<=t&&t<=72886)return d.CLUSTER_BREAK.EXTEND}else if(73009<=t&&t<=73014)return d.CLUSTER_BREAK.EXTEND}else if(t<73030){if(t<73020){if(t===73018)return d.CLUSTER_BREAK.EXTEND}else if(t<73023){if(73020<=t&&t<=73021)return d.CLUSTER_BREAK.EXTEND}else if(73023<=t&&t<=73029)return d.CLUSTER_BREAK.EXTEND}else if(t<73031){if(t===73030)return d.CLUSTER_BREAK.PREPEND}else if(t<73098){if(t===73031)return d.CLUSTER_BREAK.EXTEND}else if(73098<=t&&t<=73102)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<73526){if(t<73459)if(t<73109){if(t<73107){if(73104<=t&&t<=73105)return d.CLUSTER_BREAK.EXTEND}else if(73107<=t&&t<=73108)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<73110){if(t===73109)return d.CLUSTER_BREAK.EXTEND}else{if(t===73110)return d.CLUSTER_BREAK.SPACINGMARK;if(t===73111)return d.CLUSTER_BREAK.EXTEND}else if(t<73474){if(t<73461){if(73459<=t&&t<=73460)return d.CLUSTER_BREAK.EXTEND}else if(t<73472){if(73461<=t&&t<=73462)return d.CLUSTER_BREAK.SPACINGMARK}else if(73472<=t&&t<=73473)return d.CLUSTER_BREAK.EXTEND}else if(t<73475){if(t===73474)return d.CLUSTER_BREAK.PREPEND}else if(t<73524){if(t===73475)return d.CLUSTER_BREAK.SPACINGMARK}else if(73524<=t&&t<=73525)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<78896)if(t<73536){if(t<73534){if(73526<=t&&t<=73530)return d.CLUSTER_BREAK.EXTEND}else if(73534<=t&&t<=73535)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<73537){if(t===73536)return d.CLUSTER_BREAK.EXTEND}else{if(t===73537)return d.CLUSTER_BREAK.SPACINGMARK;if(t===73538)return d.CLUSTER_BREAK.EXTEND}else if(t<92912){if(t<78912){if(78896<=t&&t<=78911)return d.CLUSTER_BREAK.CONTROL}else if(t<78919){if(t===78912)return d.CLUSTER_BREAK.EXTEND}else if(78919<=t&&t<=78933)return d.CLUSTER_BREAK.EXTEND}else if(t<92976){if(92912<=t&&t<=92916)return d.CLUSTER_BREAK.EXTEND}else if(t<94031){if(92976<=t&&t<=92982)return d.CLUSTER_BREAK.EXTEND}else if(t===94031)return d.CLUSTER_BREAK.EXTEND}else if(t<121476){if(t<119143)if(t<113824){if(t<94180){if(t<94095){if(94033<=t&&t<=94087)return d.CLUSTER_BREAK.SPACINGMARK}else if(94095<=t&&t<=94098)return d.CLUSTER_BREAK.EXTEND}else if(t<94192){if(t===94180)return d.CLUSTER_BREAK.EXTEND}else if(t<113821){if(94192<=t&&t<=94193)return d.CLUSTER_BREAK.SPACINGMARK}else if(113821<=t&&t<=113822)return d.CLUSTER_BREAK.EXTEND}else if(t<118576){if(t<118528){if(113824<=t&&t<=113827)return d.CLUSTER_BREAK.CONTROL}else if(118528<=t&&t<=118573)return d.CLUSTER_BREAK.EXTEND}else if(t<119141){if(118576<=t&&t<=118598)return d.CLUSTER_BREAK.EXTEND}else{if(t===119141)return d.CLUSTER_BREAK.EXTEND;if(t===119142)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<119173){if(t<119150){if(t<119149){if(119143<=t&&t<=119145)return d.CLUSTER_BREAK.EXTEND}else if(t===119149)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<119155){if(119150<=t&&t<=119154)return d.CLUSTER_BREAK.EXTEND}else if(t<119163){if(119155<=t&&t<=119162)return d.CLUSTER_BREAK.CONTROL}else if(119163<=t&&t<=119170)return d.CLUSTER_BREAK.EXTEND}else if(t<121344){if(t<119210){if(119173<=t&&t<=119179)return d.CLUSTER_BREAK.EXTEND}else if(t<119362){if(119210<=t&&t<=119213)return d.CLUSTER_BREAK.EXTEND}else if(119362<=t&&t<=119364)return d.CLUSTER_BREAK.EXTEND}else if(t<121403){if(121344<=t&&t<=121398)return d.CLUSTER_BREAK.EXTEND}else if(t<121461){if(121403<=t&&t<=121452)return d.CLUSTER_BREAK.EXTEND}else if(t===121461)return d.CLUSTER_BREAK.EXTEND}else if(t<123628){if(t<122907){if(t<121505){if(t<121499){if(t===121476)return d.CLUSTER_BREAK.EXTEND}else if(121499<=t&&t<=121503)return d.CLUSTER_BREAK.EXTEND}else if(t<122880){if(121505<=t&&t<=121519)return d.CLUSTER_BREAK.EXTEND}else if(t<122888){if(122880<=t&&t<=122886)return d.CLUSTER_BREAK.EXTEND}else if(122888<=t&&t<=122904)return d.CLUSTER_BREAK.EXTEND}else if(t<123023){if(t<122915){if(122907<=t&&t<=122913)return d.CLUSTER_BREAK.EXTEND}else if(t<122918){if(122915<=t&&t<=122916)return d.CLUSTER_BREAK.EXTEND}else if(122918<=t&&t<=122922)return d.CLUSTER_BREAK.EXTEND}else if(t<123184){if(t===123023)return d.CLUSTER_BREAK.EXTEND}else if(t<123566){if(123184<=t&&t<=123190)return d.CLUSTER_BREAK.EXTEND}else if(t===123566)return d.CLUSTER_BREAK.EXTEND}else if(t<127995){if(t<125136){if(t<124140){if(123628<=t&&t<=123631)return d.CLUSTER_BREAK.EXTEND}else if(124140<=t&&t<=124143)return d.CLUSTER_BREAK.EXTEND}else if(t<125252){if(125136<=t&&t<=125142)return d.CLUSTER_BREAK.EXTEND}else if(t<127462){if(125252<=t&&t<=125258)return d.CLUSTER_BREAK.EXTEND}else if(127462<=t&&t<=127487)return d.CLUSTER_BREAK.REGIONAL_INDICATOR}else if(t<917632){if(t<917504){if(127995<=t&&t<=127999)return d.CLUSTER_BREAK.EXTEND}else if(t<917536){if(917504<=t&&t<=917535)return d.CLUSTER_BREAK.CONTROL}else if(917536<=t&&t<=917631)return d.CLUSTER_BREAK.EXTEND}else if(t<917760){if(917632<=t&&t<=917759)return d.CLUSTER_BREAK.CONTROL}else if(t<918e3){if(917760<=t&&t<=917999)return d.CLUSTER_BREAK.EXTEND}else if(918e3<=t&&t<=921599)return d.CLUSTER_BREAK.CONTROL;return d.CLUSTER_BREAK.OTHER}static getEmojiProperty(t){if(t<10160){if(t<9728){if(t<9e3){if(t<8482){if(t<8252){if(t===169||t===174)return d.EXTENDED_PICTOGRAPHIC}else if(t===8252||t===8265)return d.EXTENDED_PICTOGRAPHIC}else if(t<8596){if(t===8482||t===8505)return d.EXTENDED_PICTOGRAPHIC}else if(t<8617){if(8596<=t&&t<=8601)return d.EXTENDED_PICTOGRAPHIC}else if(t<8986){if(8617<=t&&t<=8618)return d.EXTENDED_PICTOGRAPHIC}else if(8986<=t&&t<=8987)return d.EXTENDED_PICTOGRAPHIC}else if(t<9410){if(t<9167){if(t===9e3||t===9096)return d.EXTENDED_PICTOGRAPHIC}else if(t<9193){if(t===9167)return d.EXTENDED_PICTOGRAPHIC}else if(t<9208){if(9193<=t&&t<=9203)return d.EXTENDED_PICTOGRAPHIC}else if(9208<=t&&t<=9210)return d.EXTENDED_PICTOGRAPHIC}else if(t<9654){if(t<9642){if(t===9410)return d.EXTENDED_PICTOGRAPHIC}else if(9642<=t&&t<=9643)return d.EXTENDED_PICTOGRAPHIC}else if(t<9664){if(t===9654)return d.EXTENDED_PICTOGRAPHIC}else if(t<9723){if(t===9664)return d.EXTENDED_PICTOGRAPHIC}else if(9723<=t&&t<=9726)return d.EXTENDED_PICTOGRAPHIC}else if(t<10035){if(t<10004){if(t<9748){if(t<9735){if(9728<=t&&t<=9733)return d.EXTENDED_PICTOGRAPHIC}else if(9735<=t&&t<=9746)return d.EXTENDED_PICTOGRAPHIC}else if(t<9872){if(9748<=t&&t<=9861)return d.EXTENDED_PICTOGRAPHIC}else if(t<9992){if(9872<=t&&t<=9989)return d.EXTENDED_PICTOGRAPHIC}else if(9992<=t&&t<=10002)return d.EXTENDED_PICTOGRAPHIC}else if(t<10013){if(t===10004||t===10006)return d.EXTENDED_PICTOGRAPHIC}else if(t<10017){if(t===10013)return d.EXTENDED_PICTOGRAPHIC}else if(t===10017||t===10024)return d.EXTENDED_PICTOGRAPHIC}else if(t<10067){if(t<10055){if(t<10052){if(10035<=t&&t<=10036)return d.EXTENDED_PICTOGRAPHIC}else if(t===10052)return d.EXTENDED_PICTOGRAPHIC}else if(t<10060){if(t===10055)return d.EXTENDED_PICTOGRAPHIC}else if(t===10060||t===10062)return d.EXTENDED_PICTOGRAPHIC}else if(t<10083){if(t<10071){if(10067<=t&&t<=10069)return d.EXTENDED_PICTOGRAPHIC}else if(t===10071)return d.EXTENDED_PICTOGRAPHIC}else if(t<10133){if(10083<=t&&t<=10087)return d.EXTENDED_PICTOGRAPHIC}else if(t<10145){if(10133<=t&&t<=10135)return d.EXTENDED_PICTOGRAPHIC}else if(t===10145)return d.EXTENDED_PICTOGRAPHIC}else if(t<127489){if(t<12951){if(t<11035){if(t<10548){if(t===10160||t===10175)return d.EXTENDED_PICTOGRAPHIC}else if(t<11013){if(10548<=t&&t<=10549)return d.EXTENDED_PICTOGRAPHIC}else if(11013<=t&&t<=11015)return d.EXTENDED_PICTOGRAPHIC}else if(t<11093){if(t<11088){if(11035<=t&&t<=11036)return d.EXTENDED_PICTOGRAPHIC}else if(t===11088)return d.EXTENDED_PICTOGRAPHIC}else if(t<12336){if(t===11093)return d.EXTENDED_PICTOGRAPHIC}else if(t===12336||t===12349)return d.EXTENDED_PICTOGRAPHIC}else if(t<127340){if(t<126976){if(t===12951||t===12953)return d.EXTENDED_PICTOGRAPHIC}else if(t<127245){if(126976<=t&&t<=127231)return d.EXTENDED_PICTOGRAPHIC}else if(t<127279){if(127245<=t&&t<=127247)return d.EXTENDED_PICTOGRAPHIC}else if(t===127279)return d.EXTENDED_PICTOGRAPHIC}else if(t<127374){if(t<127358){if(127340<=t&&t<=127345)return d.EXTENDED_PICTOGRAPHIC}else if(127358<=t&&t<=127359)return d.EXTENDED_PICTOGRAPHIC}else if(t<127377){if(t===127374)return d.EXTENDED_PICTOGRAPHIC}else if(t<127405){if(127377<=t&&t<=127386)return d.EXTENDED_PICTOGRAPHIC}else if(127405<=t&&t<=127461)return d.EXTENDED_PICTOGRAPHIC}else if(t<128981){if(t<127561){if(t<127535){if(t<127514){if(127489<=t&&t<=127503)return d.EXTENDED_PICTOGRAPHIC}else if(t===127514)return d.EXTENDED_PICTOGRAPHIC}else if(t<127538){if(t===127535)return d.EXTENDED_PICTOGRAPHIC}else if(t<127548){if(127538<=t&&t<=127546)return d.EXTENDED_PICTOGRAPHIC}else if(127548<=t&&t<=127551)return d.EXTENDED_PICTOGRAPHIC}else if(t<128326){if(t<128e3){if(127561<=t&&t<=127994)return d.EXTENDED_PICTOGRAPHIC}else if(128e3<=t&&t<=128317)return d.EXTENDED_PICTOGRAPHIC}else if(t<128640){if(128326<=t&&t<=128591)return d.EXTENDED_PICTOGRAPHIC}else if(t<128884){if(128640<=t&&t<=128767)return d.EXTENDED_PICTOGRAPHIC}else if(128884<=t&&t<=128895)return d.EXTENDED_PICTOGRAPHIC}else if(t<129198){if(t<129096){if(t<129036){if(128981<=t&&t<=129023)return d.EXTENDED_PICTOGRAPHIC}else if(129036<=t&&t<=129039)return d.EXTENDED_PICTOGRAPHIC}else if(t<129114){if(129096<=t&&t<=129103)return d.EXTENDED_PICTOGRAPHIC}else if(t<129160){if(129114<=t&&t<=129119)return d.EXTENDED_PICTOGRAPHIC}else if(129160<=t&&t<=129167)return d.EXTENDED_PICTOGRAPHIC}else if(t<129340){if(t<129292){if(129198<=t&&t<=129279)return d.EXTENDED_PICTOGRAPHIC}else if(129292<=t&&t<=129338)return d.EXTENDED_PICTOGRAPHIC}else if(t<129351){if(129340<=t&&t<=129349)return d.EXTENDED_PICTOGRAPHIC}else if(t<130048){if(129351<=t&&t<=129791)return d.EXTENDED_PICTOGRAPHIC}else if(130048<=t&&t<=131069)return d.EXTENDED_PICTOGRAPHIC;return d.CLUSTER_BREAK.OTHER}}z1.default=es;var T8=yn&&yn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(x3,"__esModule",{value:!0});const k8=T8(z1);var R8=x3.default=k8.default;const w8=new R8,Ea=_("text-offset");function fl(n,t){const e=eo(n);let r=0;for(let i=0;i<e.length;i++){const o=e[i],s=Zr(o);if(o===t){const l=r+s;return{start:r,end:l}}r+=s}p(Ea,!1,"can not find child in children")}function lr(n,t){p(Ea,t>=0,`invalid offset: ${t}`);const e=Yf(n,t),{prev:r,next:i,offset:o}=e;if(!r&&!i&&p(Ea,!1,"invalid offset, no prev & next child at offset"),r!==i)return!0;const s=r;if(p(Ea,s,"no child"),Rr(s))return p(Ea,o===0||o===1,`invalid box child offset: ${o}`),!0;const l=s.textContent;p(Ea,l,"no content for text child");const c=w8.splitGraphemes(l),f=new Set;let h=0;return c.forEach(C=>{f.add(h),h+=C.length}),f.add(h),!!f.has(o)}function dl(n,t){if(t===0)return 0;const e=t-1;if(lr(n,e))return e;let r=e-1;for(;!lr(n,r);)r-=1;return r}function ba(n,t){const e=Qf(n);if(p(Ea,t>=0&&t<=e,`invalid offset: ${t}, ${e}`),t===e)return e;const r=t+1;if(lr(n,r))return r;let i=r+1;for(;!lr(n,i);)i+=1;return i}const S8=_("line-offset");function Y1(n){const t=nd(n),e=[];let r=0;for(let i=0;i<t.length;i++){const o=t[i];e.push({start:r,end:o.offset}),r=o.offset}return e.push({start:r,end:Qf(n)}),e}function Hm(n,t){const e=Y1(n);return p(S8,t>=0&&t<e.length,`invalid line index: ${t}, ${e.length}`),e[t]}function v3(n,t){const{lineIndex:e}=j1(n,t);return Hm(n,e)}function L8(n){const t=Y1(n),e=n.getBoundingClientRect(),r=[];return t.forEach(({start:i,end:o})=>{const s=mt(n,i,"home");let l=wr(n,s);const c=mt(n,o,"end"),f=wr(n,c);l.top+l.height/2<f.top&&(l=new DOMRect(e.left-1e4,f.top,1,f.height));const h=new DOMRect(l.left,f.top,f.left-l.left,f.height),C=new DOMRect(e.left,f.top,e.width,f.height);r.push({start:i,end:o,rect:C,contentRect:h})}),r}function I8(n,t,e){const i=L8(n).find(s=>fa(s.rect,t,e));if(!i)return null;const o=i.contentRect;return t<=o.left+1?mt(n,i.start,"home"):t>=o.right-1?mt(n,i.end,"end"):null}function B3(n,t,e){const r=wr(n,t),i=wr(n,e),o=r.top+r.height/2,s=i.top+i.height/2,l=i.top<o&&o<i.bottom,c=r.top<s&&s<r.bottom;return l&&c}function y3(n){return Y1(n).length}const xa=_("find-text-position");function T3(n,t){const{start:e,end:r}=Hm(n,t),i=dt(n),o=wr(n,mt(i,e,"home"));if(!(wr(n,mt(i,r,"end")).top>o.top+o.height/2))return!1;const c=Yf(n,e);return p(xa,c.next,"no next child at offset"),p(xa,!Xf(c.next),"next child is not text child"),!0}function D8(n,t){const e=dt(n);p(xa,T3(n,t),"line is not wrapped");const{start:r,end:i}=Hm(n,t),o=mt(e,r,"home");for(let s=r+1;s<=i;s+=1){let l="normal";s===r?l="home":s===i&&(l="end");const c=mt(e,s,l);if(!B3(n,o,c))return s-1}return p(xa,!1,"failed to find wrapped offset"),0}function jm(n,t,e,r,i,o,s){p(xa,at(n,t),`not a text kind block: ${Tt(t)}`);const{start:l,end:c}=Hm(t,e);let f=l;const h=dt(t);if(t===r&&T3(t,e)){const w=D8(t,e);(o==="up"||o==="down"&&B3(t,i,mt(h,l,"home")))&&(f=w+1)}let C=Number.MAX_SAFE_INTEGER;const E=cl(n,r,i),b=s!=null?s:E.left+E.width/2,v=E.top+E.height/2;let k=mt(h,f,"home");for(let w=f;w<=c;w++){if(!lr(t,w))continue;let O="normal";w===l?O="home":w===c&&(O="end");const M=mt(h,w,O),F=wr(t,M),Z=il(F,b,v);Z<C&&(C=Z,k=M)}return k}function _8(n,t,e,r,i){return p(xa,at(n,t),"not a text block"),jm(n,t,y3(t)-1,e,r,"up",i)}function M8(n,t,e,r,i){return p(xa,at(n,t),"not a text block"),jm(n,t,0,e,r,"down",i)}function O8(n,t,e,r){const{lineIndex:i}=j1(t,e);if(i===y3(t)-1)return null;const o=jm(n,t,i+1,t,e,"down",r);return o||null}function U8(n,t){if(t.offset===0)return null;const e=nd(n),r=e.find(i=>i.offset===t.offset);if(!r){const i=dl(n,t.offset);return e.find(s=>s.offset===i)?{offset:i,type:"home"}:{offset:i,type:"normal"}}if(r.type==="betweenChild"){if(t.type==="home"&&r.childInfo.wrap==="nowrap")return{offset:t.offset,type:"end"};if(r.childInfo.prevWrapped)return{offset:dl(n,t.offset),type:"normal"}}return{offset:dl(n,t.offset),type:"normal"}}function N8(n,t){const e=Qf(n);if(t.offset===e)return null;const r=nd(n),i=r.find(o=>o.offset===t.offset);if(!i){const o=ba(n,t.offset),s=r.find(l=>l.offset===o);return s?s.type==="betweenChild"?{offset:o,type:"end"}:{offset:o,type:"home"}:{offset:o,type:"normal"}}return i.type==="betweenChild"?i.childInfo.wrap==="nowrap"&&t.type==="end"?{offset:t.offset,type:"home"}:{offset:ba(n,t.offset),type:"home"}:{offset:ba(n,t.offset),type:"normal"}}function P8(n,t,e,r){const{lineIndex:i}=j1(t,e);if(i===0)return null;const o=jm(n,t,i-1,t,e,"up",r);return o||null}const F8=_("move-caret");function K8(n,t,e,r){if(r==="ArrowLeft"){const i=U8(t,e);return i?mt(dt(t),i.offset,i.type):null}if(r==="ArrowRight"){const i=N8(t,e);return i?mt(dt(t),i.offset,i.type):null}if(r==="ArrowUp"){const i=P8(n,t,e,n.selection.getSuggestedCaretX());return i?mt(dt(t),i.offset,i.type):null}if(r==="ArrowDown"){const i=O8(n,t,e,n.selection.getSuggestedCaretX());return i?mt(dt(t),i.offset,i.type):null}p(F8,!1,`invalid navigation direction: ${r}`)}const J1=_("text-range");function k3(n){const t=[];return eo(n).forEach(r=>{const i=Array.from(r.getClientRects()).map(o=>({rect:o,child:r}));t.push(...i)}),t}function V8(n,t,e){const r=k3(n);for(let i=1;i<r.length;i++){const o=r[i-1],s=r[i];if(t>=o.rect.right&&t<=s.rect.left&&e>=o.rect.top&&e<=o.rect.bottom&&e>=s.rect.top&&e<=s.rect.bottom)return fl(n,s.child).start}return null}function $8(n,t,e,r){const i=Ne(e,r);if(!i||!t.contains(i)||!n.contains(t))return null;const o=t.getBoundingClientRect(),s=k3(t);let l=e,c=r,f=o.left+o.width/2,h=o.top+o.height/2,C=f,E=h;s.forEach(Ct=>{f=Math.min(f,Ct.rect.left),h=Math.min(h,Ct.rect.top),C=Math.max(C,Ct.rect.right),E=Math.max(E,Ct.rect.bottom)}),l>=o.left&&l<f?l=f:l<=o.right&&l>C&&(l=C),c>=o.top&&c<h?c=h:c<=o.bottom&&c>E&&(c=E);const b=i.closest("div[data-type=block-content]>span");if(!b){const Ct=t.getBoundingClientRect();if(!fa(Ct,l,c))return null;const wt=V8(t,l,c);if(wt!==null){const oe=mt(t,wt,"normal");return new vn(n,{anchor:oe,focus:oe})}const kt=I8(t,l,c);return kt?new vn(n,{anchor:kt,focus:kt}):null}const v=eo(t);p(J1,v.indexOf(b)!==-1,"failed to find child in children");const k=fl(t,b);p(J1,k,"failed to get child offset");const{start:w}=k;let O,M;Jo(b)||Rr(b)?(O=w,M=0):(p(J1,b.firstChild instanceof Text,"child is not text"),O=w+sv(b.firstChild,l,c),M=0);const F=dt(t),Y=nd(t).find(Ct=>Ct.offset===O);let X="normal";if(Y){const Ct=mt(F,O,"home"),wt=mt(F,O,"end"),kt=wr(t,Ct),oe=wr(t,wt),ve=il(kt,l,c),fe=il(oe,l,c);X=ve<fe?"home":"end"}const ut=mt(F,O,X);let Et;return M&&(Et=mt(F,O+M,X)),new vn(n,{anchor:ut,focus:Et!=null?Et:ut})}const H8=_("create-text-op");function ti(n,t){p(H8,n,"text is empty");const e={insert:n};return t&&Object.keys(t).length>0&&(e.attributes=t),e}function Q1(n,t){if(n.length===0)return[];if(n.indexOf(`
15
+ */function B9(n){if(typeof n=="string")return n.length===0?!1:n.charCodeAt(0)>=55296&&n.charCodeAt(0)<=56319;if(n===void 0)return!1;throw new TypeError(`string-character-is-astral-surrogate/isHighSurrogate(): the input is not string but ${typeof n}`)}function y9(n){if(typeof n=="string")return n.length===0?!1:n.charCodeAt(0)>=56320&&n.charCodeAt(0)<=57343;if(n===void 0)return!1;throw new TypeError(`string-character-is-astral-surrogate/isLowSurrogate(): the input is not string but ${typeof n}`)}const _f="\u200B";function T9(n){return[...n].length}function k9(n,t,e){const i=[...n];let o;return e===void 0?o=i.length:o=t+e,i.slice(t,o).join("")}function R9(n){const t="\xA0";if(!n)return"";if(n===" ")return t;let e=n;return e.startsWith(" ")&&(e=t+e.substr(1)),e.endsWith(" ")&&(e=e.substr(0,e.length-1)+t),e=e.replace(/ {2}/g,` ${t}`),e}function ym(n){if(!/["'&<>]/.exec(n))return n;const r={'"':"&quot;","'":"&#39;","&":"&amp;","<":"&lt;",">":"&gt;"};return n.split("").map(l=>r[l]||l).join("")}function uv(n){const t=document.getElementById(n);t&&t.remove()}function fv(n,t){const e=document.getElementById(t);if(e)return e.textContent=n,e;const r=document.createElement("style");return r.id=t,r.textContent=n,document.head.append(r),r}function Mf(n){const t="custom-cursor-style";if(n){const e=`body * { cursor: ${n} !important}`;fv(e,t)}else uv(t)}const dv=3,hv=_("drag-drop");class mv{constructor(t){m(this,"dragStarted",!1);m(this,"mouseDownEvent",null);m(this,"_dragOffsetX",0);m(this,"_dragOffsetY",0);m(this,"handleMouseDown",t=>{t.preventDefault(),t.stopPropagation(),this.mouseDownEvent=t;const e=this.options.elem.getBoundingClientRect();this._dragOffsetX=this.mouseDownEvent.x-e.left,this._dragOffsetY=this.mouseDownEvent.y-e.top,this.bindEvents()});m(this,"handleMouseMove",t=>{var o;t.preventDefault(),t.stopPropagation(),p(hv,this.mouseDownEvent,"no mouse down event");const e=t.x-this.mouseDownEvent.x,r=t.y-this.mouseDownEvent.y;if(this.dragStarted){this.onDragging(t,e,r);return}const i=(o=this.options.minThreshold)!=null?o:dv;(Math.abs(e)>=i||Math.abs(r)>=i)&&this.onDragStart(this.mouseDownEvent)});m(this,"handleMouseUp",t=>{if(t.button===0){p(hv,this.mouseDownEvent,"no mouse down event");const e=t.x-this.mouseDownEvent.x,r=t.y-this.mouseDownEvent.y;this.onDragEnd(t,e,r),t.preventDefault(),t.stopPropagation()}});this.options=t,this.options.mouseDownEvent?this.handleMouseDown(this.options.mouseDownEvent):this.trackEvents()}get data(){return this.options.data}get dragOffsetX(){return this._dragOffsetX}get dragOffsetY(){return this._dragOffsetY}get dragOffset(){return{x:this._dragOffsetX,y:this._dragOffsetY}}trackEvents(){this.options.elem.addEventListener("mousedown",this.handleMouseDown)}untrackEvents(){this.options.elem.removeEventListener("mousedown",this.handleMouseDown)}bindEvents(){document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}unbindEvents(){document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}onDragStart(t){this.dragStarted=!0,this.options.cursor&&Mf(this.options.cursor),this.options.onDragStart(this,t,this.options.elem)}onDragging(t,e,r){this.options.onDragging(this,t,this.options.elem,e,r)}onDragEnd(t,e,r){this.options.cursor&&Mf(null),this.dragStarted&&this.options.onDragEnd(this,t,this.options.elem,e,r),this.unbindEvents(),this.dragStarted=!1}destroy(){this.unbindEvents(),this.untrackEvents()}}function t1(n){return new mv(n)}const w9=_("character");function gv(n,t){for(let e=0;e<t.length;e++){const r=t[e][0],i=t[e].length>1?t[e][1]:null;if(i===null&&n===r||i!==null&&n>=r&&n<=i)return!0}return!1}function pv(n){const t=n.charAt(0);return t>="0"&&t<="9"}function Cv(n){const t=n.charAt(0);return t>="a"&&t<="z"||t>="A"&&t<="Z"||t.toUpperCase()!==t.toLowerCase()?!0:RegExp(/^\p{L}/,"u").test(t)}function Tm(n){const t=[[9,13],[32],[160]];return gv(n.charCodeAt(0),t)}function Ev(n){const t=[[12352,12687],[13056,13183],[13312,15661],[19968,40959],[63744,64255],[44032,55215]];return gv(n.charCodeAt(0),t)}function e1(n,t){let e=t;return p(w9,e.length===1,"invalid char length"),e==="]"&&(e="\\]"),e==="\\"&&(e="\\\\"),n.replace(new RegExp(`^[${e}]+|[${e}]+$`,"g"),"")}function n1(n){return n?n.length===1||n==="Process"||n==="Unidentified"&&ye.isAndroid:!1}function bv(n){switch(n){case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":case"End":case"Home":case"PageDown":case"PageUp":return!0;default:return!1}}function S9(n){return bv(n.key)}function L9(n){switch(n){case"ArrowUp":case"ArrowLeft":case"Home":case"PageUp":return!0;default:return!1}}function da(n){return n.ctrlKey||n.altKey||n.shiftKey||n.metaKey}function I9(n){return n.key?!!(n.ctrlKey||n.metaKey||n.altKey):!1}function xv(n){return ye.isMac?n.metaKey&&!n.ctrlKey:!n.metaKey&&n.ctrlKey}function D9(n){return xv(n)&&!n.altKey&&!n.shiftKey}function _9(n){return!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.altKey}function Av(n){return!da(n)&&n.key==="Enter"}function M9(n){return n.key==="Enter"&&n.shiftKey&&!n.altKey&&!n.ctrlKey&&!n.metaKey}function km(n){return!da(n)&&n.key==="Escape"}function O9(n){return!da(n)&&n.key==="Delete"}function vv(n){return!da(n)&&n.key==="Backspace"}function U9(n){return!da(n)&&n.key==="Tab"}function N9(n){return n.shiftKey&&n.key==="Tab"&&!n.ctrlKey&&!n.metaKey}function mn(n){if(!n)return"";if(ye.isMac){const t=n.replace("CtrlOrCmd","\u2318").replace("Shift","\u21E7").replace("Ctrl","\u2303").replace("Alt","\u2325").replace(/\+(?!$)/gm,""),e={"\u2318":4,"\u21E7":3,"\u2325":2,"\u2303":1};return t.split(/(?=[\s\S])/u).sort((i,o)=>{var c,f;const s=(c=e[i])!=null?c:5,l=(f=e[o])!=null?f:5;return s-l}).map(i=>i in e?`${i}+`:i).join("")}return n.replace("CtrlOrCmd","Ctrl")}function Bv(n){const t={ctrl:!1,alt:!1,shift:!1,cmd:!1,key:""},e=n.toLocaleUpperCase().split("+");for(let r=0;r<e.length;r++){const i=e[r];i==="CTRL"||i==="CONTROL"?t.ctrl=!0:i==="ALT"||i==="OPTION"?t.alt=!0:i==="SHIFT"?t.shift=!0:i==="CMD"||i==="COMMAND"?t.cmd=!0:i==="CMDORCTRL"||i==="CTRLORCMD"?ye.isMac?t.cmd=!0:t.ctrl=!0:i==="SPACE"?t.key=" ":t.key=i.substring(0,1)+i.substring(1).toLocaleLowerCase()}return t}function Qi(n,t){const e=Bv(t);return e.ctrl!==n.ctrlKey||e.alt!==n.altKey||e.shift!==n.shiftKey||ye.isMac&&e.cmd!==n.metaKey?!1:e.key.length===1?e.key===n.key.toUpperCase():e.key.toUpperCase()===n.key.toUpperCase()}function r1(n,t){return fI.stringifyUrl({url:n,query:t})}function Zi(n){return typeof n=="string"?wf.Base64.encode(n,!0):wf.Base64.fromUint8Array(n,!0)}function Of(n){return wf.Base64.decode(n)}function P9(n){return wf.Base64.toUint8Array(n)}function i1(n){return new Blob([wf.Base64.toUint8Array(n)])}const F9=nl.init([nl.classModule,nl.styleModule,nl.datasetModule,nl.attributesModule,nl.propsModule]);function Uf(n,t){const e=nl.toVNode(n),r=nl.toVNode(t);F9(e,r)}async function o1(n,t){const e=new FileReader,r=new Promise((o,s)=>{e.onload=o,e.onerror=s});return e.readAsDataURL(new Blob([n],{type:t})),await r,e.result}async function Vc(n){const t=new FileReader,e=new Promise((i,o)=>{t.onload=i,t.onerror=o});return t.readAsDataURL(n),await e,t.result}function K9(n,...t){const e=n.tagName.toLowerCase();for(let r=0,i=t.length;r<i;r++)if(e===t[r].toLowerCase())return!0;return!1}function tn(n,t){let e=n;for(;e;){const r=window.getComputedStyle(e);if(t!=null&&t.horizontal){if(/auto|scroll/i.test(r.overflowX))break}else if(/auto|scroll/i.test(r.overflowY))break;e=e.parentElement}return(!e||K9(e,"body"))&&(e=document.documentElement),e}function yv(n){n.preventDefault(),n.stopPropagation()}function s1(n){if(document.querySelector(`.editor-disable-scroll[data-scroll-id="${n}"]`))return;const t=B("div",["editor-disable-scroll"],null);t.setAttribute("data-scroll-id",n),t.addEventListener("wheel",yv,{passive:!1}),document.body.appendChild(t)}function l1(n){const t=document.querySelector(`.editor-disable-scroll[data-scroll-id="${n}"]`);t&&(t.removeEventListener("wheel",yv),t.remove())}function a1(n,t,e){const r=new Blob([n]),i=new File([r],e,{type:t});return URL.createObjectURL(i)}function Rm(n){const t=document.createElement("template");if("content"in t)return t.innerHTML=n,document.importNode(t.content,!0);const e=document.createDocumentFragment(),r=document.createElement("div");for(r.innerHTML=n;r.firstChild;)e.appendChild(r.firstChild);return e}function Tv(n){const t=document.createElement("div");return t.appendChild(n),t.innerHTML}function kv(n){let t=n.getPropertyValue("font");if(t)return t;const e=n.getPropertyValue("font-style"),r=n.getPropertyValue("font-variant"),i=n.getPropertyValue("font-weight"),o=n.getPropertyValue("font-size"),s=n.getPropertyValue("font-family");return t=`${e} ${r} ${i} ${o} ${s}`.replace(/ +/g," ").trim(),t}function wm(n,t){const r=(wm.canvas||(wm.canvas=document.createElement("canvas"))).getContext("2d");return r?(typeof t=="string"?t?r.font=t:r.font=kv(window.getComputedStyle(document.body)):t instanceof Element&&(r.font=kv(window.getComputedStyle(t))),r.measureText(n).width+4):200}const Rv=_("editor-clipboard");async function V9(n,t){if(t.clipboardData){const e=t.clipboardData;for(const r of n)e.setData(r.type,r.data);return!0}return!1}function $9(n){return typeof n.text=="function"?n.text():new Promise((t,e)=>{const r=new FileReader;r.onload=()=>{t(r.result)},r.onerror=e,r.readAsText(n)})}async function H9(n){var t;if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const e=document.createElement("textarea");try{let r=(t=n.find(i=>i.type==="text/plain"))==null?void 0:t.data;return r instanceof Blob&&(r=await $9(r)),e.textContent=r!=null?r:"",e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),!0}catch(r){return Rv.error(r),document.body.removeChild(e),!1}}return!1}async function Nf(n){try{const t={};n.forEach(r=>{t[r.type]=r.data});const e=new ClipboardItem(t);return await navigator.clipboard.write([e]),!0}catch(t){return Rv.error(t),await H9(n)}}function $c(n,t){return new Promise((e,r)=>{const i=document.createElement("input");i.type="file",i.style.display="none";const o=(t==null?void 0:t.container)||document.body;t!=null&&t.multiple&&(i.multiple=!0),i.accept=n,i.oncancel=()=>{e(null),i.remove()},i.onchange=()=>{const s=i.files;if(s){const l=t!=null&&t.multiple?Array.from(s):s[0];e(l)}i.remove()},i.onerror=s=>{r(s),i.remove()},o.append(i),i.click()})}function Sm(n){return Array.isArray(n)?n.every(t=>t instanceof File):!1}function Pf(n){const t=n;if(!t)return"";const e=t.lastIndexOf(".");return e===-1?"":t.slice(e+1)}function Lm(n,t){const e=document.createElement("a");e.setAttribute("download",`${t||""}`),e.setAttribute("href",`${n}`),e.click(),e.remove()}const wv=_("auto-scroll");function Sv(n,t){return!(n.scrollHeight===n.clientHeight||t==="top"&&n.scrollTop===0||t==="bottom"&&n.scrollTop+n.clientHeight===n.scrollHeight||t==="left"&&n.scrollLeft===0||t==="right"&&n.scrollLeft+n.clientWidth===n.scrollWidth)}function Lv(n,{direction:t,step:e}){let r=null;const i=t==="left"||t==="right",o=()=>Sv(n,t)?(i?t==="left"?n.scrollLeft=Math.max(n.scrollLeft-e,0):n.scrollLeft=Math.min(n.scrollLeft+e,n.scrollWidth):t==="top"?n.scrollTop=Math.max(n.scrollTop-e,0):n.scrollTop=Math.min(n.scrollTop+e,n.scrollHeight),r=requestAnimationFrame(o),r):(wv.debug("No need for scroll"),null);return r=requestAnimationFrame(o),()=>{r&&cancelAnimationFrame(r)}}class Ff{constructor(t){m(this,"cancelScroll",null);m(this,"options");m(this,"scrollDomInfo");m(this,"scrolling",!1);m(this,"getScrollingDirection",t=>{const{x:e,y:r}=t,{top:i,bottom:o,left:s,right:l}=this.scrollDomInfo,{edge:c}=this.options;return c.top&&r<=c.top+i?"top":c.bottom&&r>=o-c.bottom?"bottom":c.left&&e<=s+c.left?"left":c.right&&e>=l-c.right?"right":null});m(this,"handleMouseMove",t=>{var s;const{scrollElement:e,step:r=10,onDirectionChange:i}=this.options,o=this.getScrollingDirection(t);if(o){if(this.scrolling)return;wv.debug(`scroll direction: ${o}`),this.cancelScroll=Lv(e,{direction:o,step:r}),i==null||i(o),this.scrolling=!0}else(s=this.cancelScroll)==null||s.call(this),this.scrolling=!1});this.options=t,this.scrollDomInfo=this.getScrollDomInfo()}getScrollDomInfo(){const{scrollElement:t}=this.options,e=t.getBoundingClientRect(),r=e.top,i=e.left,o=e.bottom,s=e.right;return{left:i,top:r,right:s,bottom:o}}active(){const{trackMouseEvent:t="mousemove"}=this.options;window.addEventListener(t,this.handleMouseMove,!0)}inactive(){var e;const{trackMouseEvent:t="mousemove"}=this.options;window.removeEventListener(t,this.handleMouseMove,!0),(e=this.cancelScroll)==null||e.call(this),this.scrolling=!1}}function Iv(n,t){if(n===0)return"0 Bytes";const e=1024,r=t||2,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(n)/Math.log(e));return`${parseFloat((n/e**o).toFixed(r))} ${i[o]}`}function Kf(n,t){let e=`${n}`;const r=t-e.length;for(let i=0;i<r;i++)e=`0${e}`;return e}const{t:ha}=D;function c1(n,t){const e=new Date(n).getTime()+864e5*t;return new Date(e)}function j9(n,t){const e=n,r=Math.floor(t/12),i=t-r*12;return r&&e.setFullYear(e.getFullYear()+r),i&&e.setMonth(e.getMonth()+i),e}function z9(n,t){return c1(n,t)}function u1(n,t){const e=new Date(n),r=new Date(t);return e.getDate()===r.getDate()&&e.getMonth()===r.getMonth()&&e.getFullYear()===r.getFullYear()}function Dv(n){const t=new Date,e=new Date(n);return u1(t,e)}function _v(n){const t=c1(new Date,-1);return u1(t,n)}function W9(n,t){return Math.round((n.getTime()-t.getTime())/864e5)}function f1(n,t){const e=new Date(n);if(t){const r=e.getFullYear(),i=e.getMonth()+1,o=e.getDate(),s=e.getHours(),l=e.getMinutes();let c=t;return c=c.replace("YYYY",`${r}`),c=c.replace("MM",Kf(i,2)),c=c.replace("DD",Kf(o,2)),c=c.replace("M",`${i}`),c=c.replace("D",`${o}`),c=c.replace("hh",Kf(s,2)),c=c.replace("mm",Kf(l,2)),c=c.replace("h",`${s}`),c=c.replace("m",`${l}`),c}return n.toLocaleDateString()}function d1(n,t){const e=new Date(n),r=new Date;if(e.getTime()-r.getTime()>10*1e3)return D.t("date.dateFromFuture");if(Dv(e)){const o=(r.getTime()-n.getTime())/1e3;if(o<10*60)return ha("date.dateJustNow");if(o<60*60)return ha("date.dateMinutesAgo",{num:`${Math.floor(o/60)}`});const s=Math.floor(o/60/60);return s===1?ha("date.date1HourAgo"):ha("date.dateHoursAgo",{num:`${s}`})}if(_v(n))return ha("date.dateYesterday");const i=Math.floor((r.getTime()-n.getTime())/1e3/24/60/60)+1;return i<14?ha("date.dateDaysAgo",{num:`${i}`}):i<28?ha("date.dateWeeksAgo",{num:`${Math.round(i/7)}`}):f1(n,t)}function h1(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function G9(n,t,e){return n.replace(new RegExp(h1(t),"g"),e)}function q9(n,t,e){return n.replace(new RegExp(h1(t),"gi"),e)}function Mv(n,t,e){const i=document.createElement("canvas").getContext("2d");if(!i)return null;if(i.font=String(t),i.measureText(n).width>e){let s=0,l=0;for(;l<e;)l=i.measureText(n.slice(0,s)).width,s++;return`${n.slice(0,s-2)}...`}return n}const Ov=/[\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f\uAC00-\uD7AF]/,Uv=" -\x7F0-9!-/:-@[-`{-~\u0370-\u03FF\u0400-\u04FF",X9=new RegExp(`[${Uv}]`),Y9=new RegExp(`([^(${Uv})])`,"g"),Nv=/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/;function Pv(n){return n.length===0?0:n.split("").reduce((t,e)=>{const r=(t<<5)-t+e.charCodeAt(0);return r&r},0)}function J9(n,t=1){var r,i;return(i=((r=Array.from(n))==null?void 0:r.filter(o=>Ov.test(o))).slice(-t))==null?void 0:i.join("")}function Q9(n,t=1){var i;const e=Array.from((i=n==null?void 0:n.replace(Y9,""))==null?void 0:i.split(/\s/));return e.reduce((o,s,l)=>{var c,f;return l===e.length-1&&o.length<t?`${o}${(c=s==null?void 0:s.slice(0,t-o.length))!=null?c:""}`:`${o}${(f=s[0])!=null?f:""}`},"").slice(0,t)}function Z9(n,t=1){var r,i;return(i=((r=Array.from(n))==null?void 0:r.filter(o=>Nv.test(o))).slice(-t))==null?void 0:i.join("")}function t7(n,t=1){var e,r;return(r=(e=Array.from(n))==null?void 0:e.slice(0,t))==null?void 0:r.join("")}function Im(n,t=1){if(!n||n.length===0)return"";const e=Ov.test(n),r=X9.test(n),i=Nv.test(n);switch(!0){case e:return J9(n,t);case r:return Q9(n,t);case i:return Z9(n,t);default:return t7(n,t)}}var Fv=(n=>(n.blue="#0064FF",n.cyan="#34AFDE",n.teal="#2CB2AE",n.green="#24B47E",n.kelly="#8AAB3F",n.yellow="#F0A100",n.orange="#EB6414",n.red="#E52727",n.fuchsia="#BE507D",n.purple="#9678D3",n))(Fv||{});function Dm(n){const t=Object.values(Fv),e=Math.abs(typeof n=="string"&&n.trim()?Pv(n.trim()):0)%t.length;return t[e]}const Kv=_("container");function to(n){return n.getAttribute("data-type")==="editor-container"}function te(n){return _t(n,"root")}function xi(n){return _t(n,"child")}function ft(n){const t=n.getAttribute("data-container-id");return p(Kv,t,"no id for container"),te(n)&&p(Kv,t==="root",`invalid root container id, : ${t}`),t}function Vv(n,t){const e=ft(n);return t.getContainerBlocks(e)}function m1(n){return`ones-editor-container-${n}`}const $v=_("element");function g1(n,t,e){const r=B("div",[t],n);return r.setAttribute("data-type","editor-container"),r.setAttribute("data-container-id",e),r.id=m1(e),B("div",["container-blocks"],r),r}function qr(n,t){const e=n.rootElement.querySelector(`[data-container-id=${t}]`);return p($v,e,`no container: ${t}`),e}function Vf(n,t){return n.rootElement.querySelector(`[data-container-id=${t}]`)}function $f(n){const t=n.querySelector(":scope > .container-blocks");return p($v,t,"no container blocks element"),t}function e7(n){let t=n.querySelector(":scope > .container-tools");return t||(t=B("div",["container-tools"],n)),t}const p1=_("container-children");function be(n,t){const e=$f(n),r=Array.from(e.children);if(p(p1,r.length>0,"container have not any child block"),t){const{condition:i,editor:o}=t;return r.reduce((s,l)=>{if(i(l)){const c=l.getAttribute("data-block-type");if(!c)return s;const h=o.editorBlocks.getBlockClass(c).getChildContainers(o,l).flatMap(C=>be(C,t));return[...s,...h]}else return[...s,l]},[])}return r}function Pe(n){const t=n.querySelector(":scope > .container-blocks > div[data-type=editor-block]");return p(p1,t,"container have not any child block"),t}function en(n){const t=be(n);return t[t.length-1]}function Ai(n){return be(n).length}function ol(n,t){const e=be(n)[t];return p(p1,e,`container have not block at index ${t}`),e}function Hv(n,t){var e;return(e=be(n)[t])!=null?e:null}class n7{constructor(t){m(this,"renders",[]);this.editor=t}registerRender(t){this.renders.push(t)}renderBox(t,e){const r={classes:[],attributes:{},styles:{}};return this.renders.forEach(i=>{if(i.renderBox){const o=i.renderBox(this.editor,t,e);o.classes&&r.classes.push(...o.classes),o.attributes&&(r.attributes={...r.attributes,...o.attributes}),o.styles&&(r.styles={...r.styles,...o.styles})}}),r}renderText(t,e){const r={classes:[],attributes:{},styles:{}};return this.renders.forEach(i=>{if(i.renderText){const o=i.renderText(this.editor,t,e);o.classes&&r.classes.push(...o.classes),o.attributes&&(r.attributes={...r.attributes,...o.attributes}),o.styles&&(r.styles={...r.styles,...o.styles})}}),r}renderBlock(t,e,r){const i={classes:[],attributes:{},styles:{}};return this.renders.forEach(o=>{if(o.renderBlock){const s=o.renderBlock(this.editor,e,r);s.classes&&i.classes.push(...s.classes),s.attributes&&(i.attributes={...i.attributes,...s.attributes}),s.styles&&(i.styles={...i.styles,...s.styles})}}),i}updateBlock(t,e,r,i){this.renders.forEach(o=>{var s;(s=o.updateBlock)==null||s.call(o,t,e,r,i)})}}const jv=_("block-class");function jt(n,t){return n.editorBlocks.getBlockClass(Tt(t))}function zv(n,t){const e=n.editorBlocks.getBlockClass(Tt(t));return p(jv,e.blockKind==="text",`is not a text block, ${e.blockType}`),e}function Xr(n,t){const e=n.editorBlocks.getBlockClass(Tt(t));return p(jv,e.blockKind==="complex",`is not a text block, ${e.blockType}`),e}function sl(n,t){return n.editorBlocks.getBlockClass(t)}function at(n,t){return jt(n,t).blockKind==="text"}function Hf(n,t){return n.editorBlocks.getBlockClass(t).blockKind==="text"}function Nt(n,t){return jt(n,t).blockKind==="complex"}function r7(n,t){return!Nt(n,t)}function vi(n,t){return jt(n,t).blockKind}class We extends $e.TypedEmitter{constructor(e){super();m(this,"hoveringBlock",null);m(this,"hoveringElem",null);m(this,"hoveringTextChild",null);m(this,"filters",[]);m(this,"finders",[]);m(this,"handleDocumentMouseMove",e=>{if(this.hoveringBlock){for(const s of this.filters)if(s.isInBlock(this.hoveringBlock,e))return}const r=Ne(e.x,e.y,{noFilter:!0});if(!r){this.setHoveringBlock(null,e,null,r);return}let i=Q(r);if((!i||!Ee(this.editor.rootContainer,i))&&(i=this.findBlockByFinders(e),!i)){this.setHoveringBlock(null,e,null,r);return}const o=this.getParentTextContentChild(i,r);this.setHoveringBlock(i,e,o,r)});this.editor=e,document.addEventListener("mousemove",this.handleDocumentMouseMove)}destroy(){document.removeEventListener("mousemove",this.handleDocumentMouseMove),this.filters.forEach(e=>e.destroy()),this.filters=[],this.finders.forEach(e=>e.destroy()),this.finders=[]}addFilter(e){this.filters.push(e)}addFinder(e){this.finders.push(e)}hoveringBlockId(){return this.hoveringBlock?dt(this.hoveringBlock):""}findBlockByFinders(e){for(let r=0;r<this.finders.length;r++){const o=this.finders[r].findTargetBlock(this.editor,e);if(o)return o}return null}setHoveringBlock(e,r,i,o){if(this.hoveringBlock===e&&this.hoveringTextChild===i&&this.hoveringElem===r.target)return;if(this.hoveringBlock!==e){const l=this.hoveringBlock&&Ee(this.editor.rootContainer,this.hoveringBlock)?this.hoveringBlock:null;l&&lt(l,"hover"),e&&z(e,"hover"),this.emit("change",e,l,r)}(this.hoveringElem!==o||this.hoveringBlock!==e)&&this.emit("targetChange",e,this.hoveringBlock,o,this.hoveringElem);const s=this.hoveringTextChild;this.hoveringTextChild=i,this.hoveringElem=o,this.hoveringBlock=e,this.emit("childChange",this.hoveringBlock,i,s,r)}static get(e){return e.addCustom("standard-hovering-block",()=>new We(e))}getParentTextContentChild(e,r){if(!at(this.editor,e))return null;const i=$t(e);return r.parentElement===i?r:b1(r)}}const Wv="style-color-",Gv="style-bg-color-";class qv{renderText(t,e,r){return this.generateCSSCustomProperties(r)}renderBlock(t,e,r){var l,c;const i={};Object.entries(r).filter(f=>f[0].startsWith("style-")).forEach(([f,h])=>{i[`data-${f}`]=`${h}`});const s=[];return((c=(l=t.selection)==null?void 0:l.range)==null?void 0:c.start.blockId)===r.id&&s.push("focused"),typeof r.align=="string"&&r.align&&(i["data-style-align"]=r.align),r.heading&&(i["data-style-heading"]=String(r.heading)),r.quoted&&(i["data-style-quoted"]="true"),We.get(t).hoveringBlockId()===r.id&&s.push("hover"),{attributes:i,classes:s}}updateBlock(t,e,r,i){Array.from(r.attributes).forEach(l=>{l.name.startsWith("data-style-")&&r.removeAttribute(l.name)});const{attributes:o,classes:s}=this.renderBlock(t,e,i);o&&Object.entries(o).forEach(([l,c])=>{r.setAttribute(l,c)}),s&&s.forEach(l=>{z(r,l)})}generateCSSCustomProperties(t){const e=[],r={},i={};return Object.entries(t).forEach(([o,s])=>{s===!0?o.startsWith(Wv)?r["data-style-color"]=o.substring(Wv.length):o.startsWith(Gv)?r["data-style-bg-color"]=o.substring(Gv.length):o.startsWith("style")&&e.push(o):typeof s=="string"&&(o==="link"&&(e.push("link"),r.link=s),o==="inline-style-color"&&(i.color=s),o==="inline-style-background-color"&&(i.backgroundColor=s))}),{classes:e,attributes:r,styles:i}}}const Bi=_("block-dom");function Wo(n){return n instanceof HTMLDivElement?n.getAttribute("data-type")==="editor-block":!1}function Xv(n){return n instanceof HTMLElement&&n.getAttribute("data-type")==="block-tools"}function Yv(n){z(n,"block-hidden")}function C1(n){lt(n,"block-hidden")}function ll(n){return!_t(n,"block-hidden")}function dt(n){const{id:t}=n;return p(Bi,t,"no block id"),t}function Tt(n){const t=n.getAttribute("data-block-type");return p(Bi,t,"invalid block dom, no data-type"),t}function Q(n){const t=n instanceof Element?n:n.parentElement;if(!t)return null;const e=t.closest("div[data-type=editor-block]");return e||null}function ma(n){const t=n instanceof Element?n:n.parentElement;if(!t)return null;const e=t.closest("div[data-type=editor-block]:not(:scope)");return e||null}function ot(n){const t=n.closest("div[data-type=editor-container]");return p(Bi,t,"failed to get block container"),t}function $t(n){const t=n.querySelector(":scope >div[data-type=block-content]");return p(Bi,t,"no block content"),t}function xe(n){let t=n.querySelector(":scope >div[data-type=block-tools]");return t||(t=B("div",[],n),t.setAttribute("data-type","block-tools")),p(Bi,t,"no block tools"),t}function _m(n){const t=n.querySelector(":scope >div[data-type=block-tools]");return t||null}function E1(n){let t=n.querySelector(":scope > div[data-type=block-background]");return t||(t=B("div",[],n),t.setAttribute("data-type","block-background")),t}function Jv(n,t,e){const r=n.editorDecorators.decorateBlock(t,e),{id:i,type:o}=r;p(Bi,i,"no block id");const s=B("div",[`${o}-block`],null);s.id=i,s.setAttribute("data-type","editor-block"),s.setAttribute("data-block-type",o);const l=n.editorBlockRenders.renderBlock(n,t,e);return l.classes&&z(s,...l.classes),l.attributes&&Object.entries(l.attributes).forEach(([c,f])=>{s.setAttribute(c,f)}),l.styles&&Object.entries(l.styles).forEach(([c,f])=>{s.style.setProperty(c,f)}),s}function al(n,t){const e=B(t,[],null);return e.setAttribute("data-type","block-content"),n&&n.appendChild(e),e}function Qv(n){const t=B("span",[`${n.type}-box`],null);return t.setAttribute("data-type","editor-box"),t.setAttribute("data-box-type",n.type),t.id=n.id,t}function jf(n){const t=n.getAttribute("data-box-type");return p(Bi,t,"not a valid box element, no type"),t}function Mm(n){return n instanceof HTMLSpanElement?n.getAttribute("data-type")==="editor-box":!1}function Zv(n){const{id:t}=n;return p(Bi,t,"no box id"),t}function b1(n){const t=n instanceof Element?n:n.parentElement;if(!t)return null;const e=t.closest("span[data-type=editor-box]");return e||null}function tB(n){n.innerHTML="",B("span",["box-space-start"],n,_f);const t=B("span",[],n);return t.setAttribute("data-type","box-content"),B("span",["box-space-start"],n,_f),t}function x1(n){const t=n.querySelector("span[data-type=box-content]");return p(Bi,t,"invalid box dom, no content"),t}function eB(n,t,e){const r=B("span",[`${n}-insertion`],null);if(r.setAttribute("data-type","editor-insertion"),r.setAttribute("data-insertion-id",t),e){const i=new qv,{attributes:o}=i.generateCSSCustomProperties(e);o&&[...Object.entries(o)].forEach(s=>{const[l,c]=s;r.setAttribute(l,c)})}return r}function nB(n,t){return n.rootContainer.querySelector(`[data-insertion-id=${t}]`)}function rB(n){n.innerHTML="",B("span",["insertion-space-start"],n,_f);const t=B("span",[],n);return t.setAttribute("data-type","insertion-content"),B("span",["insertion-space-start"],n,_f),t}function A1(n){const t=n.querySelector("span[data-type=insertion-content]");return p(Bi,t,"invalid insertion-child dom, no content"),t}function He(n){let t=n.previousElementSibling;for(;t;){if(Wo(t))return t;t=t.nextElementSibling}return null}function ae(n){let t=n.nextElementSibling;for(;t;){if(Wo(t))return t;t=t.nextElementSibling}return null}function Yr(n){let t=n.previousElementSibling;for(;t;){if(Wo(t)&&ll(t))return t;t=t.previousElementSibling}return null}function Jr(n){let t=n.nextElementSibling;for(;t;){if(Wo(t)&&ll(t))return t;t=t.nextElementSibling}return null}function St(n){const t=ot(n),r=be(t).indexOf(n);return p(Bi,r!==-1,"invalid block & container dom, failed to get block index"),r}function v1(n){return!n||!(n instanceof Node)?!1:!!Q(n)}function Hc(n){if(!v1(n))return!1;const t=n,e=t instanceof Element?t:t.parentElement;return e?!!e.closest("div[data-type=block-tools]"):!1}function Go(n){return n.hasAttribute("data-document-title")}function cl(n,t,e){return jt(n,t).getCaretRect(t,e)}const B1=_("block");function bt(n,t){return jt(n,t).getBlockTextLength(t)}function iB(n){n.editorBlocks.forEach(t=>{t.clearSelection(n)})}function oB(n,t,e,r){jt(n,t).updateSelection(n,t,e,r)}function zf(n){for(;;){const t=ot(n);if(te(t))return n;const e=Q(t);p(B1,e,"no parent block exists for child container"),n=e}}function sB(n,t){let e=n;for(;e;){const r=ot(e);if(t(r))return e;e=Q(r)}}function lB(n,t){const e=jt(n,t);if(!!e.getMinWidth)return e.getMinWidth(n,t)}function aB(n,t,e){const r=jt(n,t);r.handleBlockElementUpdated&&r.handleBlockElementUpdated(n,t,e)}function Om(n,t,e,r){try{const i=sl(n,e).convertFrom;return i?i(n,t,r):null}catch{return B1.debug(`unsupported block type: ${e}`),null}}function qo(n,t,e){const r=jt(n,t);return r.getClientRects?r.getClientRects(n,t,e):[t.getBoundingClientRect()]}function i7(n,t){const e=jt(n,t);if(e.getBlockStyles)return e.getBlockStyles(n,t);const r=n.getBlockData(t),i=Object.fromEntries(Object.entries(r).filter(([o])=>o.startsWith("style-")));return Object.entries(i).forEach(([,o])=>{const s=typeof o;p(B1,s==="string"||s==="number"||s==="boolean","invalid style value")}),i}function Te(n,t){return vi(n,t)==="text"?bt(n,t)===0:!1}const cB=_("block-path");function Xo(n){const t=[];let e=n;for(;e;){const r=ot(e);if(t.unshift({containerId:ft(r),blockIndex:St(e)}),te(r))return t;const i=Q(r);p(cB,i,"no parent block"),e=i}return p(cB,!1,"no parent block"),[]}function Wf(n,t){var i,o;const e=jt(n,t);return(o=(i=e.getOptions)==null?void 0:i.call(e,n))!=null?o:{name:Tt(t)}}function Qr(n){return te(ot(n))}function uB(n,t){var i;const e=jt(n,t);return(i=e.getBlockProperties)==null?void 0:i.call(e,n,t)}function y1(n,t){var o,s;const e=jt(n,t),r=(o=e.getBlockProperties)==null?void 0:o.call(e,n,t);let i={};r!=null&&r.blockCommands&&(i={...r.blockCommands});for(const l of n.blockHooks){const c=(s=l.commands)==null?void 0:s.call(l,n,t);c&&(i[c.group]=c)}return i}function o7(n,t,e){var s,l,c,f;const r=jt(n,t),i=(s=r.getBlockProperties)==null?void 0:s.call(r,n,t);let o={};i!=null&&i.blockCommands&&(o={...i.blockCommands});for(const h of n.blockHooks){const C=(l=h.commands)==null?void 0:l.call(h,n,t);C&&(o[C.group]=C)}return(f=(c=o[e])==null?void 0:c.commands)!=null?f:[]}function fB(n,t,e){let r=t;for(;r;){const i=o7(n,r,e);if(i.length>0)return{element:$t(r),commands:i};if(Qr(r))break;r=ma(r)}return{element:null,commands:[]}}const dB=_("embed-block-common");function hB(n){return Tt(n)==="layout"}function me(n){return Tt(n)==="embed"}function Ge(n){p(dB,me(n),"not an embed block");const t=n.getAttribute("data-embed-type");return p(dB,t,"no embed data type"),t}function s7(n,t){return n.editorEmbeds.getEmbedClass(Ge(t))}function ga(n,t){return n.editorEmbeds.getEmbedClass(t)}function T1(n,t,e){var s;if(!t||!e)return;const r=n.getContainerById(t),i=Q(r);return i?(s=Wf(n,i).overrideInertEmptyBlockInsideOptions)==null?void 0:s[e]:void 0}async function k1(n,t,e,r,i){const o=ga(n,t);if(!o.getOptions)return null;const s=o.getOptions(n);if(!s.insertEmbedCommandItems||!s.insertEmbedCommandItems||s.insertEmbedCommandItems.length===0||!s.handleInsertEmptyEmbed)return null;const l=s.insertEmbedCommandItems[0];return s.handleInsertEmptyEmbed(n,{item:l,containerId:e,blockIndex:r,data:i})}function l7(n,t,e,r,i,o){var f,h,C;const s=(h=(f=sl(n,t)).getOptions)==null?void 0:h.call(f,n);if(!s||!s.insertBlockCommandItems||s.insertBlockCommandItems.length===0||!s.handleInsertEmptyBlock)return null;const l=s.insertBlockCommandItems[0],c=T1(n,e,t);return s.handleInsertEmptyBlock(n,{item:{...c==null?void 0:c.item,...o,...l},containerId:e,blockIndex:r,data:(C=c==null?void 0:c.data)!=null?C:i})}const a7=_("execute-block-command");function mB(n,t,e,r){var f;p(a7,me(t),"not a embed block");const i=Ge(t),o=ga(n,i);if(!o.getOptions)return;const s=(f=o.getBlockProperties)==null?void 0:f.call(o,n,t),l=s==null?void 0:s.blockCommands;if(!l)return;const c=Object.entries(l);for(const h of c)if(h[0]===e)return h[1].executeCommand(n,t,r)}function gB(n,t,e,r){const i=y1(n,t);if(!i)return;const o=Object.entries(i);for(const s of o)if(s[0]===e)return n.emit("beforeExecCommand",n,r,{source:r.source}),s[1].executeCommand(n,t,r)}const pB=_("block-class");function an(n){return!!n.getAttribute("data-style-heading")}function Gf(n){var e;const t=Number.parseInt((e=n.getAttribute("data-style-heading"))!=null?e:"",10);return p(pB,t,"not a heading block"),t}function CB(n){return!_t(n,"heading-collapsed")}function kr(n){return _t(n,"heading-collapsed")}function pa(n,t){t||p(pB,an(n),"not a heading block");const e=[],r=t!=null?t:Gf(n);let i=ae(n);for(;i&&!(an(i)&&Gf(i)<=r);)e.push(i),i=ae(i);return e}function EB(n){let t=ae(n);const e=[];for(;t&&!ll(t);)e.push(t),t=ae(t);return e}const Yo=_("text-block-child");function qf(n){return n.tagName==="SPAN"}function Rr(n){return p(Yo,qf(n),"not a valid text child"),n.getAttribute("data-type")==="editor-box"}function Jo(n){return p(Yo,qf(n),"not a valid text child"),n.getAttribute("data-type")==="editor-insertion"}function Xf(n){return!Rr(n)&&!Jo(n)}function bB(n){return p(Yo,qf(n),"not a valid text child"),Rr(n)?"box":Jo(n)?"insertion":"text"}function Zr(n){const t=bB(n);return t==="insertion"?0:t==="box"?1:(p(Yo,n.textContent!==null,"text block content is undefined"),p(Yo,n.textContent.length>=0,"text block content length is negative"),n.textContent.length)}function eo(n){const t=$t(n),e=Array.from(t.children);return e.forEach(r=>{p(Yo,qf(r),"not a valid text child")}),e}function Yf(n,t){const e=eo(n);let r=0;for(let i=0;i<e.length;i++){const o=e[i],s=Zr(o);if(r+s<t){r+=s;continue}if(r===t)return{prev:e[i-1],next:o,offset:0};if(r+s===t)return{prev:o,next:e[i+1],offset:0};const l=t-r;return p(Yo,l>0,"invalid offset value"),p(Yo,!Rr(o),"invalid box child"),{prev:o,next:o,offset:l}}p(Yo,!1,`invalid block child at position: ${t}`)}const c7=_("child-container-path");function xB(n){if(te(n))return[];const t=Q(n);return p(c7,t,"no parent block"),Xo(t)}const AB=_("load-blocks");function R1(n,t,e){const r=ft(t),i=Vv(t,n.doc);p(AB,i.length>0,"no blocks in container");const o=document.createDocumentFragment();i.forEach((l,c)=>{const f=n.editorBlocks.createBlock([...e,{containerId:r,blockIndex:c}],t,l);o.appendChild(f)}),$f(t).appendChild(o)}function u7(n,t,e){const r=$f(n);if(t===0)return r.insertBefore(e,r.firstChild),e;const i=be(n);return p(AB,t>=0&&t<=i.length,"invalid block index"),t===i.length?r.appendChild(e):r.insertBefore(e,i[t]),e}function f7(n,t,e,r){const i=xB(t);i.push({containerId:ft(t),blockIndex:e});const o=n.editorBlocks.createBlock(i,t,r);return u7(t,e,o),o}const w1=_("root-container"),vB=3;class d7{constructor(t,e){m(this,"resizeObserver");m(this,"isMoved",!1);m(this,"mouseDownEvent",null);m(this,"handleContextMenu",t=>{if(ye.isSafari){const e=document.getSelection();e&&!e.isCollapsed&&e.collapseToStart()}});m(this,"handleResize",()=>{try{this.editor.selection.updateSelection(null),this.editor.emit("resize",this.editor)}catch(t){w1.warn(`failed to update selection while container resizing: ${t.message}`)}});m(this,"handleClick",t=>{this.editor.emit("click",this.editor,t);const e=t.target;if(!Hc(e)&&(t.detail===1&&this.editor.input.focus(),t.detail===3&&this.editor.selectionHandler.handleTripleClick(t),t.detail===1&&t.button===0)){const r=Ne(t.clientX,t.clientY);if(r&&Ee(this.rootContainer,r)){const i=Q(r);i&&Ee(i,r)&&this.handleBlockClick(t,i,r)}}});m(this,"handleBlockClick",(t,e,r)=>{var s,l;if(!at(this.editor,e))return;const i=b1(r);if(i){const c=Q(i);p(w1,c,"no parent block"),(l=(s=this.editor.editorBoxes.getBoxClass(jf(i)))==null?void 0:s.handleClickBox)==null||l.call(s,this.editor,i,t);return}const o=r.closest("span.text.link");o&&eo(e).indexOf(o)!==-1&&this.editor.emit("clickLink",this.editor,t,o)});m(this,"handleDblClick",t=>{Hc(t.target)||this.editor.selectionHandler.handleDblClick(t)});m(this,"handleMouseDown",t=>{this.mouseDownEvent=t,this.isMoved=!1;const e=t.target;if(!!e&&e instanceof Node&&!Hc(e)){if(t.button===2){t.stopPropagation();return}if(e instanceof HTMLElement&&e.draggable){this.editor.selectionHandler.handleMouseDown(t,{autoScroll:!1}),this.editor.selectionHandler.stopSelection(),this.editor.input.focus();return}t.button===0&&(document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),this.editor.selectionHandler.handleMouseDown(t,{autoScroll:!0})),ye.isMobileSafari||this.editor.input.focus()}});m(this,"handleMouseMove",t=>{p(w1,this.mouseDownEvent,"no mouse down event");const e=t.x-this.mouseDownEvent.x,r=t.y-this.mouseDownEvent.y;(Math.abs(e)>=vB||Math.abs(r)>=vB)&&(this.editor.selectionHandler.handleMouseMove(t),this.isMoved=!0)});m(this,"handleMouseUp",t=>{t.button===0&&(this.editor.selectionHandler.handleMouseUp(t),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)),this.isMoved&&(document.addEventListener("click",this.handleCaptureClick,!0),document.addEventListener("dblclick",this.handleCaptureDbClick,!0)),this.isMoved=!1});m(this,"handleCaptureClick",t=>{document.removeEventListener("click",this.handleCaptureClick,!0),t.stopPropagation()});m(this,"handleCaptureDbClick",t=>{document.removeEventListener("dblclick",this.handleCaptureDbClick,!0),t.stopPropagation()});this.editor=t,this.rootContainer=e,this.editor=t,this.resizeObserver=new sa(this.handleResize),this.bindEvents(e)}bindEvents(t){this.resizeObserver.observe(t);const e=this.editor.rootElement;e.onmousedown=this.handleMouseDown,e.ondblclick=this.handleDblClick,e.onclick=this.handleClick,e.oncontextmenu=this.handleContextMenu}unbindEvents(){this.resizeObserver.disconnect();const t=this.editor.rootElement;t.onmousedown=null,t.ondblclick=null,t.onclick=null,t.oncontextmenu=null}destroy(){this.unbindEvents()}reload(){const t=this.editor.selection.range,e=$f(this.rootContainer);e.innerHTML="",R1(this.editor,this.rootContainer,[]);const r=this.editor.findBlockById(t.start.blockId);if(r)this.editor.selection.selectBlock(r,0);else{const i=Pe(this.rootContainer);this.editor.selection.selectBlock(i,0)}}}function BB(n){const t=g1(n.contentElement,"root","root");return n.rootContainer=t,R1(n,t,[]),new d7(n,t)}function yB(n,t,e,r){const i=Vf(n,r);if(i)return e.appendChild(i),setTimeout(()=>{n.emit("containerRemount",n,r)}),i;const o=g1(e,"child",r);return R1(n,o,t),o}function TB(n,t){const e=n.getBoundingClientRect().width;return t.withPadding?e:e-Jp(n)}function S1(n,t){let e=Number.MAX_SAFE_INTEGER;const r=be(t);for(let o=0;o<r.length;o++){const s=r[o],l=lB(n,s);l&&(e=Math.min(e,l))}return e===Number.MAX_SAFE_INTEGER?void 0:e+Jp(t)}function Jf(n,t){const e=be(t);return e.length!==1?!1:Te(n,e[0])}const h7=_("complex-block-position");class yi{constructor(t,e,r){m(this,"blockId");m(this,"childContainerId");m(this,"custom");t instanceof HTMLElement?this.blockId=dt(t):(p(h7,typeof t=="string",`not a valid block id: ${t}`),this.blockId=t),this.childContainerId=e,r!==void 0&&(this.custom=r)}isSimple(){return!1}}const m7=_("simple-block-position");class gn{constructor(t,e,r){m(this,"blockId");m(this,"offset");m(this,"type");t instanceof HTMLElement?this.blockId=dt(t):(p(m7,typeof t=="string",`not a valid block id: ${t}`),this.blockId=t),this.offset=e,this.type=r}isSimple(){return!0}}const L1=_("editor-position");function mt(n,t,e){return new gn(n,t,e)}function De(n,t,e){return new yi(n,t,e)}function Ti(n){return n instanceof gn}function Ca(n){return n instanceof yi}function I1(n,t,e){if(Ti(t)&&Ti(e)){const r=t,i=e;if(r.blockId===i.blockId)return r.offset-i.offset;const o=n.getBlockById(t.blockId),s=n.getBlockById(e.blockId);return p(L1,o!==s,"comparePosition: blocks are the same"),xm(o,s)}if(Ca(t)&&Ca(e)){const r=t,i=e;if(r.childContainerId===i.childContainerId)return 0;const o=n.getContainerById(r.childContainerId),s=n.getContainerById(i.childContainerId);return p(L1,o!==s,"comparePosition: containers are the same"),xm(o,s)}return p(L1,!1,"invalid "),0}const Um=_("simple-range");class vn{constructor(t,e){m(this,"editor");m(this,"_anchor");m(this,"_focus");m(this,"reverse");this.editor=t,this._anchor=e.anchor,this._focus=e.focus,this.reverse=I1(this.editor,this._anchor,this._focus)>0}isCollapsed(){return this.start.blockId===this.end.blockId&&this.start.offset===this.end.offset}isEqual(t){if(!(t instanceof vn))return!1;const e=t,{start:r,end:i}=e;return this.start.blockId===r.blockId&&this.start.offset===r.offset&&this.start.type===r.type&&this.end.blockId===i.blockId&&this.end.offset===i.offset&&this.end.type===i.type}isSimple(){return!0}isReverse(){return this.reverse}getEditor(){return this.editor}get start(){return this.reverse?this._focus:this._anchor}get end(){return this.reverse?this._anchor:this._focus}get anchor(){return this._anchor}get focus(){return this._focus}getSelectedBlocks(){const{editor:t}=this,e=t.getBlockById(this.start.blockId),r=t.getBlockById(this.end.blockId);p(Um,e,"no start block"),p(Um,r,"no end block");const i=ot(e),o=ot(r);p(Um,i===o,"invalid range");const s=[];if(e===r)s.push({block:e,start:this.start,end:this.end});else{const l=St(e),c=St(r);p(Um,l<c,"invalid range, start > index"),s.push({block:e,start:this.start,end:mt(e,bt(this.editor,e),"end")});const f=be(i);for(let h=l+1;h<c;h+=1){const C=f[h];s.push({block:C,start:mt(C,0,"home"),end:mt(C,bt(this.editor,C),"end")})}s.push({block:r,start:mt(r,0,"home"),end:this.end})}return s}getSelectedContainers(){return[]}getAnchorPos(){return this.isReverse()?this.end:this.start}getFocusedPos(){return this.isReverse()?this.start:this.end}clone(){return new vn(this.editor,this)}toDocRange(){return{anchor:this.anchor,focus:this.focus}}static from(t,e){return new vn(t,e)}}_("unknown-block");function g7(n,t,e,r,i){z(r,"unknown-block");const o=al(r,"div");return o.innerText=`unknown block (${i.type}): ${JSON.stringify(i)}`,o}function p7(n){return 1}function C7(n,t,e,r){return null}function E7(n,t,e,r){const i=Ne(e,r);if(!i||!t.contains(i)||!n.contains(t))return null;const o=dt(t),s=mt(o,0,"home"),l=mt(o,1,"end");return new vn(n,{anchor:s,focus:l})}function b7(n,t){const r=$t(n).getBoundingClientRect();return new DOMRect(r.left+r.width/2,r.top,1,r.height)}function x7(n,t,e,r){z(t,"selected")}function A7(n){n.rootContainer.querySelectorAll("div.unknown-block[data-type=editor-block]").forEach(t=>{lt(t,"selected")})}function v7(n,t,e,r){return`[unknown block, ${t.type}]`}const B7={blockType:"unknown-block",blockKind:"embed",createBlockContent:g7,getBlockTextLength:p7,getRangeFromPoint:E7,moveCaret:C7,getCaretRect:b7,updateSelection:x7,clearSelection:A7,convertTo:v7},D1=_("editor-blocks");class kB{constructor(t){m(this,"blocks",new Map);this.editor=t}registerBlockClass(t){const e=t.blockType,r=this.blocks.get(e);p(D1,!r,`duplicated block type: ${e}`),this.blocks.set(e,t)}getBlockClass(t){const e=this.blocks.get(t);return p(D1,e,`unknown block type: ${t}`),e}hasBlock(t){return this.blocks.has(t)}createBlock(t,e,r){const i=Jv(this.editor,t,r);let o;this.hasBlock(r.type)?o=this.getBlockClass(r.type):o=this.registerUnknownBlock(r.type);const s=o.createBlockContent(this.editor,t,e,i,r);return s.parentElement!==i&&(D1.warn("content parent is not block"),i.appendChild(s)),this.editor.blockHooks.forEach(l=>{var c;(c=l.create)==null||c.call(l,this.editor,t,e,i,r)}),i}forEach(t){this.blocks.forEach(t)}registerUnknownBlock(t){const e={...B7,blockType:t};return this.editor.editorBlocks.registerBlockClass(e),e}}const RB=_("editor-embeds");class wB{constructor(t){m(this,"objects",new Map);this.editor=t}registerEmbedClass(t){const e=t.embedType,r=this.objects.get(e);p(RB,!r,`duplicated embed object type: ${e}`),this.objects.set(e,t)}getEmbedClass(t){const e=this.objects.get(t);return p(RB,e,`unknown embed type: ${t}`),e}getEmbedClassFromBlock(t){return this.getEmbedClass(Ge(t))}forEach(t){this.objects.forEach(t)}}const SB=_("embed-block");function y7(n,t,e,r,i){const o=al(r,"div");p(SB,i.type==="embed",`not an embed data: ${JSON.stringify(i)}`);const s=i;return p(SB,s.embedType&&s.embedData,`not an embed data: ${JSON.stringify(s)}`),n.editorEmbeds.getEmbedClass(s.embedType).createEmbedContent(n,o,s,t,e,r),r.setAttribute("data-embed-type",s.embedType),o}function T7(n){return 1}function k7(n,t,e,r){return null}function R7(n,t,e,r){const i=Ne(e,r);if(!i||!t.contains(i)||!n.contains(t))return null;const o=dt(t),s=mt(o,0,"home"),l=mt(o,1,"end");return new vn(n,{anchor:s,focus:l})}function w7(n,t){const r=$t(n).getBoundingClientRect();return new DOMRect(r.left+r.width/2,r.top,1,r.height)}function S7(n,t,e,r){z(t,"selected")}function L7(n){n.rootContainer.querySelectorAll("div.embed-block[data-type=editor-block][data-block-type=embed]").forEach(t=>{lt(t,"selected")})}function I7(n,t,e){let r=null;return n.editorEmbeds.forEach(i=>{var s,l;const o=(l=(s=i.convertFrom)==null?void 0:s.call(i,n,t,e))!=null?l:null;o&&(r=o)}),r}function D7(n,t,e,r){const i=ga(n,t.embedType);return i.convertTo?i.convertTo(n,t,e,r):""}function _7(n,t){const e=s7(n,t);return e.getBlockProperties?e.getBlockProperties(n,t):{}}function M7(n){const t=new Map,e=[];return n.editorEmbeds.forEach(r=>{if(r.getOptions){const i=r.getOptions(n);i.insertEmbedCommandItems&&i.insertEmbedCommandItems.forEach(o=>{e.push(o),t.set(o.id,r)})}}),{name:"EmbedBlock",insertBlockCommandItems:e,async handleInsertEmptyBlock(r,i){const o=t.get(i.item.id);if(!o||!o.getOptions)return null;const s=o.getOptions(r);return s.handleInsertEmptyEmbed?s.handleInsertEmptyEmbed(r,i):null}}}function O7(n,t,e,r){const i=Ge(t),o=ga(n,i);!o.handleDeleteBlock||o.handleDeleteBlock(n,t,e,r)}function U7(n,t,e){const r=Ge(t),i=ga(n,r);return i.handleUpdateBlock?i.handleUpdateBlock(n,t,e):!1}function N7(n,t,e,r,i){const o=Ge(t),s=ga(n,o);if(s.handleDropOver)return s.handleDropOver(n,t,e,r,i)}function P7(n,t,e,r,i){const o=Ge(t),s=ga(n,o);if(s.handleDrop&&n.isWritable())return s.handleDrop(n,t,e,r,i)}async function F7(n,t,e){const r=t.embedType,i=n.editorEmbeds.getEmbedClass(r);if(i.toStandardDoc){const o=n.getBlockById(t.id),s=Xo(o);return i.toStandardDoc(n,t,e,s)}}function K7(n,t){const e=t.embedType,r=n.editorEmbeds.getEmbedClass(e);return r.getResources?r.getResources(n,t):null}const LB={blockType:"embed",blockKind:"embed",createBlockContent:y7,getBlockTextLength:T7,getRangeFromPoint:R7,moveCaret:k7,getCaretRect:w7,updateSelection:S7,clearSelection:L7,convertFrom:I7,convertTo:D7,getBlockProperties:_7,getOptions:M7,handleDeleteBlock:O7,handleUpdateBlock:U7,handleDropOver:N7,handleDrop:P7,toStandardDoc:F7,getResources:K7},Yn=_("complex-block-helper");function In(n,t,e){return Xr(n,t).getChildContainers(n,t,e)}function jc(n,t,e,r){return e.isSimple()?(p(Yn,r.isSimple(),"invalid start and end position"),In(n,t)):(p(Yn,!e.isSimple(),"invalid start pos"),p(Yn,!r.isSimple(),"invalid end pos"),Xr(n,t).getSelectedContainers(n,t,e,r))}function V7(n,t){if(St(t)!==0)return!1;const e=Q(ot(t));if(!e)return!1;p(Yn,Nt(n,e),"not a complex block");const r=ot(t),o=In(n,e).indexOf(r);return p(Yn,o>=0,"not valid child container"),o===0}function _1(n,t,e){const r=In(n,t,e);if(r.length===0)return null;const i=r[0];if(!i)return null;const o=Pe(i);return Nt(n,o)?_1(n,o,e):o}function zc(n,t,e){const r=In(n,t,e);if(r.length===0)return null;const i=r[r.length-1];if(!i)return null;const o=en(i);return Nt(n,o)?zc(n,o,e):o}function IB(n,t){const e=o=>{const s=In(n,o,{visibleOnly:!0});return s.length===0?null:s[0]};let r=t,i=Pe(r);for(;Nt(n,i);){if(r=e(i),!r)return null;i=Pe(r)}return i}function DB(n,t,e){p(Yn,xi(t),"not a child container");const r=Q(t);p(Yn,r,"no parent block"),p(Yn,Nt(n,r),"not a complex block");const i=In(n,r,e),o=i.indexOf(t);if(p(Yn,o!==-1,"child container not found"),o===0){const c=He(r);return c?Nt(n,c)?zc(n,c):c:null}const s=i[o-1],l=en(s);return Nt(n,l)?zc(n,l):l}function _B(n,t){p(Yn,Nt(n,t),"not a complex block");const e=In(n,t);if(p(Yn,e.length>0,"no child container"),e.length===1)return e;const r=e[0],i=r.getBoundingClientRect();let o=i.left,s=i.right;const l=[r];for(let c=1;c<e.length;c++){const f=e[c],h=f.getBoundingClientRect();if(h.right<=o){l.push(f),o=h.left;continue}if(h.left>=s){s=h.right;continue}}return l}function MB(n,t){p(Yn,Nt(n,t),"not a complex block");const e=In(n,t);if(p(Yn,e.length>0,"no child container"),e.length===1)return e;const r=e[e.length-1],i=r.getBoundingClientRect();let o=i.left,s=i.right;const l=[r];for(let c=e.length-2;c>=0;c--){const f=e[c],h=f.getBoundingClientRect();if(h.right<=o){l.push(f),o=h.left;continue}if(h.left>=s){s=h.right;continue}}return l}function $7(n,t,e,r){const i=t.getBoundingClientRect(),o=r<i.top,s=o?_B(n,t):MB(n,t);let l=s[0],c=il(l.getBoundingClientRect(),e,r);for(let f=1;f<s.length;f++){const h=s[f],C=h.getBoundingClientRect(),E=il(C,e,r);E<c&&(l=h,c=E)}return o?Pe(l):en(l)}function Nm(n,t,e,r){const i=dt(t);p(Yn,i===e.blockId,"invalid start pos"),p(Yn,i===r.blockId,"invalid end pos");const o=Xr(n,t);return o.adjustSelectionPos?o.adjustSelectionPos(n,t,e,r):{anchor:e,focus:r}}class ki{constructor(t,e){m(this,"editor");m(this,"reverse");m(this,"_anchor");m(this,"_focus");this.editor=t,this._anchor=e.anchor,this._focus=e.focus,this.reverse=I1(this.editor,this._anchor,this._focus)>0}isCollapsed(){return!1}isEqual(t){if(!(t instanceof ki))return!1;const e=t,{anchor:r,focus:i}=e;return this._anchor.blockId===r.blockId&&this._anchor.childContainerId===r.childContainerId&&this._focus.blockId===i.blockId&&this._focus.childContainerId===i.childContainerId&&this._anchor.custom===r.custom&&this._focus.custom===i.custom}isReverse(){return this.reverse}isSimple(){return!1}getEditor(){return this.editor}get anchor(){return this._anchor}get focus(){return this._focus}get start(){return this.reverse?this._focus:this._anchor}get end(){return this.reverse?this._anchor:this._focus}getSelectedBlocks(){const t=this.start,e=this.end;return[{block:this.editor.getBlockById(t.blockId),start:t,end:e}]}getAnchorPos(){return this._anchor}getFocusedPos(){return this._focus}getSelectedContainers(){const t=this.editor.getBlockById(this._anchor.blockId);return jc(this.editor,t,this.start,this.end)}clone(){return new ki(this.editor,this)}toDocRange(){return{anchor:this._anchor,focus:this._focus}}}const H7=_("selection-range");function pn(n,t){const{anchor:e,focus:r}=t;return e instanceof gn&&r instanceof gn?new vn(n,{anchor:e,focus:r}):(p(H7,e instanceof yi&&r instanceof yi,"start position type does not math end type"),new ki(n,{anchor:e,focus:r}))}function Ae(n,t,e,r){const i=new gn(t,e,"normal"),o=new gn(t,r!=null?r:e,"normal");return pn(n,{anchor:i,focus:o})}function j7(n){return!!n.anchor.childContainerId}function ul(n,t){var i,o;if(j7(t)){const s=De(t.anchor.blockId,t.anchor.childContainerId,(i=t.anchor)==null?void 0:i.custom),l=De(t.focus.blockId,t.focus.childContainerId,(o=t.focus)==null?void 0:o.custom);return pn(n,{anchor:s,focus:l})}const e=mt(t.anchor.blockId,t.anchor.offset,"normal"),r=mt(t.focus.blockId,t.focus.offset,"normal");return pn(n,{anchor:e,focus:r})}const M1=_("range-from-point");function Pm(n,t,e){const r=[0,-12,12];let i=t;const o=e;let s=Ne(i,o),l=Q(s);if(!l&&s&&n.contentElement.contains(s)){const c=n.rootContainer.getBoundingClientRect(),f=c.left+c.width/2;s=Ne(f,o),l=Q(s);let h=c;l&&(h=l.getBoundingClientRect()),t<h.left?i=h.left:t>h.right&&(i=h.right-5)}for(let c=0;c<r.length;c++){const f=Ne(i,o+r[c]);if(!f)continue;const h=f.getBoundingClientRect();if(f.clientWidth&&f.clientHeight&&c===0&&(h.left+f.clientWidth<i||h.top+f.clientHeight<o))return M1.debug("click on scrollbar, out of element rect"),null;if(c===0&&!n.rootContainer.contains(f)&&(i=n.rootContainer.getBoundingClientRect().left),!n.rootContainer.contains(f))continue;const C=Q(f);if(!C||!n.contains(C))continue;const E=jt(n,C).getRangeFromPoint(n,C,i,o+r[c]);if(E)return E}return null}function OB(n,t,e,r){const i=t.getBoundingClientRect();if(r<=i.top){const c=Pe(t),f=jt(n,c).getRangeFromPoint(n,c,e,c.getBoundingClientRect().top+4);if(f!=null&&f.isSimple())return vn.from(n,f);const h=mt(c,0,"home");return new vn(n,{anchor:h,focus:h})}let o=en(t);if(!ll(o)){const c=Yr(o);p(M1,c,"container must have visible block"),o=c}const s=jt(n,o).getRangeFromPoint(n,o,e,o.getBoundingClientRect().bottom-4);if(s!=null&&s.isSimple())return vn.from(n,s);if(Nt(n,o))return null;const l=mt(o,bt(n,o),"end");return new vn(n,{anchor:l,focus:l})}function O1(n,t,e){const r=Pm(n,t,e);if(r){if(r instanceof vn)return r;p(M1,r instanceof ki,`invalid range type: ${typeof r}`);const c=r,f=n.getContainerById(c.start.childContainerId);return OB(n,f,t,e)}const i=Ne(t,e);if(!i)return null;const{children:o}=i,s=Array.from(o).filter(c=>to(c));if(s.length===0)return null;const l=s.reduce((c,f)=>{const h=c.getBoundingClientRect(),C=f.getBoundingClientRect();return il(h,t,e)>il(C,t,e)?f:c});return OB(n,l,t,e)}function U1(n,t,e){const r=[];return be(t).forEach(o=>{r.push(o),Nt(n,o)&&In(n,o,e).forEach(l=>{r.push(...U1(n,l))})}),r}function N1(n,t){let e=U1(n,n.rootContainer,t);return t!=null&&t.simpleBlockOnly&&(e=e.filter(r=>!Nt(n,r))),e}function no(n,t){const e=n.selection.range.getSelectedBlocks(),r=[];for(const i of e)r.push(i),Nt(n,i.block)&&jc(n,i.block,i.start,i.end).forEach(s=>{const c=U1(n,s).map(f=>({block:f,start:mt(f,0,"home"),end:mt(f,bt(n,f),"home")}));r.push(...c)});return t!=null&&t.simpleBlockOnly?r.filter(i=>!Nt(n,i.block)):r}const act="",Bn=_("text-range");function z7(n,t){const e=(o,s)=>{if(Jo(o))return p(Bn,s===0,`invalid offset for insertion child: ${s}`),{child:o,container:o,offset:2};if(Rr(o))return p(Bn,s===0||s===1,`invalid offset for box: ${s}`),{child:o,container:o,offset:s===0?1:2};const l=o.firstChild;return p(Bn,l,"no child node for text child"),p(Bn,l instanceof Text||l instanceof HTMLBRElement,`invalid child for text child, ${l.nodeName}`),l instanceof HTMLBRElement?(p(Bn,s>=0&&s<=0,"invalid offset for text child"),{child:o,container:l,offset:s}):(p(Bn,s>=0&&s<=l.data.length,"invalid offset for text child"),{child:o,container:l,offset:s})};let r=0;const i=eo(n);for(let o=0;o<i.length;o++){const s=i[o],l=Zr(s);if(t===r)return[e(s,0)];if(t<r+l)return[e(s,t-r)];if(t===r+l){const c=[];c.push(e(s,Zr(s)));const f=i[o+1];return f&&c.push(e(f,0)),c}r+=l}p(Bn,!1,"failed to get range info")}function W7(n,t,e){if(t===e?p(Bn,Jo(n),"only insertion child can be zero offset"):p(Bn,t<e,`invalid start & end: ${t}, ${e}`),Jo(n)){p(Bn,t===e,`invalid insertion child range offset: ${t}, ${e}`),p(Bn,t===0,`invalid insertion child range start: ${t}`);const o=n;return p(Bn,o.children.length===3,`invalid insertion dom, children.length = ${o.children.length}`),Em(o,1,o,2)}if(Rr(n)){p(Bn,t+1===e,`invalid box child range offset: ${t}, ${e}`),p(Bn,t===0,`invalid box child range start: ${t}`);const o=n;return p(Bn,o.children.length===3,`invalid box dom, children.length = ${o.children.length}`),Em(o,1,o,2)}const r=Zr(n);p(Bn,e<=r,`invalid child end: ${e}, ${r}`);const i=n.firstChild;return p(Bn,i instanceof Text,"invalid block text child"),p(Bn,i.data.length>=e,`invalid range end: ${e}, ${i.data.length}`),Em(i,t,i,e)}const Ri=_("caret-rect");function G7(n,t){if(Mm(t)){const e=t,r=x1(e);if(e.getAttribute("data-box-type")==="br"){const i=$t(n),o=Number.parseFloat(window.getComputedStyle(i).lineHeight)||r.getBoundingClientRect().height,s=Array.from(r.getClientRects());p(Ri,s.length>0,"no box client rects");const l=i.getBoundingClientRect(),c=s[0],f=new DOMRect(l.left,c.bottom,1,o);return s.push(f),s}return r.getClientRects()}return A1(t).getClientRects()}function wr(n,t){var l,c,f;const e=z7(n,t.offset);if(e[1]&&e[0].child!==((l=e[1])==null?void 0:l.child)){if(t.type==="end"){const C=aa(e[0].child);return new DOMRect(C.right,C.top,1,C.height)}p(Ri,e[1],"invalid ranges");const h=bm(e[1].child);return new DOMRect(h.left,h.top,1,h.height)}let i=e[0];if(p(Ri,e.length>=1,"failed to get block range"),e.length===1)i=e[0];else{if(p(Ri,e.length>=2,`invalid range info length: ${e.length}`),Jo(e[e.length-1].child)){i=e[e.length-1];const h=i.child,E=A1(h).getClientRects();p(Ri,E.length>=1,"no client rects for box content");const b=E[E.length-1];return new DOMRect(b.right,b.y,1,b.height)}t.type==="home"?i=e[1]:t.type==="end"||Xf(e[0].child)?i=e[0]:Xf(e[1].child)&&(i=e[1])}if(i.container instanceof HTMLBRElement){p(Ri,t.offset===0,"invalid offset for empty block text");const h=i.container.parentElement;p(Ri,h,"invalid br parent");const C=h.getBoundingClientRect();return new DOMRect(C.left,C.top,1,C.height)}const o=ov(i.container,i.offset),s=Array.from(o.getClientRects());if(s.length===0){p(Ri,!Xf(i.child),"only box or insertion child range has zero client rect"),p(Ri,i.offset===1||i.offset===2,"invalid offset for box or insertion child");const h=i.child,C=G7(n,h);if(p(Ri,C.length>=1,"no client rects for box content"),i.offset===1){const b=C[0];return new DOMRect(b.x,b.y,1,b.height)}const E=C[C.length-1];if(t.type==="end"||i.offset===2){if(Mm(h)&&h.getAttribute("data-box-type")==="br"){const b=h.lastChild.getBoundingClientRect();return new DOMRect(E.right,b.top,1,b.height)}return new DOMRect(E.right,E.y,1,E.height)}return new DOMRect(E.x,E.y,1,E.height)}if(Lf()||la()){const h=document.createRange();h.selectNodeContents(i.container);const C=h.getClientRects();if(i.container.nodeType===Node.TEXT_NODE&&i.offset<((f=(c=i.container.textContent)==null?void 0:c.length)!=null?f:0)){const E=document.createRange();E.setStart(i.container,i.offset+1);const b=E.getClientRects();Array.from(C).forEach((v,k)=>{if(Math.floor(b[0].top)!==Math.floor(s[0].top)&&Math.floor(b[0].top)===Math.floor(v.top)){const{x:w,y:O,height:M}=C[k];s.length===1&&t.type==="home"&&s.push(new DOMRect(w,O,0,M))}})}if(i.container.nodeType===Node.TEXT_NODE&&i.offset>0){const E=document.createRange();E.setStart(i.container,i.offset-1);const b=E.getClientRects();Array.from(C).forEach((v,k)=>{if(Math.floor(b[0].top)!==Math.floor(s[0].top)&&Math.floor(b[0].top)===Math.floor(v.top)){const{y:w,height:O,right:M}=C[k];s.length===1&&t.type==="end"&&s.unshift(new DOMRect(M,w,0,O))}})}}return p(Ri,s.length>0,"no client rects for range"),t.type==="home"?s[s.length-1]:s[0]}const q7=_("core");function Qo(n,t,e,r){const i=xe(t);let o=i.querySelector(`.block-anchor[data-id=${e}]`);o||(o=B("div",["block-anchor"],i),o.setAttribute("data-id",e));const s=r!=null?r:t.getBoundingClientRect(),l=t.getBoundingClientRect(),c=new DOMRect(s.left-l.left,s.top-l.top,s.width,s.height);return o.style.left=`${c.left}px`,o.style.top=`${c.top}px`,o.style.width=`${c.width}px`,o.style.height=`${c.height}px`,o}function UB(n,t,e,r){p(q7,at(n,t),"not a text kind block");const i=wr(t,mt(t,e,"normal")),o=t.getBoundingClientRect(),s=xe(t);let l=s.querySelector(`.block-anchor[data-id=${r}]`);l||(l=B("div",["block-anchor"],s),l.setAttribute("data-id",r));const c=new DOMRect(i.left-o.left,i.top-o.top,i.width,i.height);return l.style.left=`${c.left}px`,l.style.top=`${c.top}px`,l.style.width=`${c.width}px`,l.style.height=`${c.height}px`,l}function Qf(n){const t=eo(n);let e=0;return t.forEach(r=>{e+=Zr(r)}),e}var X7=typeof global=="object"&&global&&global.Object===Object&&global;const Y7=X7;var J7=typeof self=="object"&&self&&self.Object===Object&&self,Q7=Y7||J7||Function("return this")(),Z7=Q7.Symbol;const Wc=Z7;var NB=Object.prototype,tD=NB.hasOwnProperty,eD=NB.toString,Zf=Wc?Wc.toStringTag:void 0;function nD(n){var t=tD.call(n,Zf),e=n[Zf];try{n[Zf]=void 0;var r=!0}catch{}var i=eD.call(n);return r&&(t?n[Zf]=e:delete n[Zf]),i}var rD=Object.prototype,iD=rD.toString;function oD(n){return iD.call(n)}var sD="[object Null]",lD="[object Undefined]",PB=Wc?Wc.toStringTag:void 0;function aD(n){return n==null?n===void 0?lD:sD:PB&&PB in Object(n)?nD(n):oD(n)}function cD(n){return n!=null&&typeof n=="object"}var uD="[object Symbol]";function fD(n){return typeof n=="symbol"||cD(n)&&aD(n)==uD}function dD(n,t){for(var e=-1,r=n==null?0:n.length,i=Array(r);++e<r;)i[e]=t(n[e],e,n);return i}var hD=Array.isArray;const mD=hD;var gD=1/0,FB=Wc?Wc.prototype:void 0,KB=FB?FB.toString:void 0;function VB(n){if(typeof n=="string")return n;if(mD(n))return dD(n,VB)+"";if(fD(n))return KB?KB.call(n):"";var t=n+"";return t=="0"&&1/n==-gD?"-0":t}function $B(n){return n==null?"":VB(n)}function pD(n,t,e,r){var i=-1,o=n==null?0:n.length;for(r&&o&&(e=n[++i]);++i<o;)e=t(e,n[i],i,n);return e}function CD(n){return function(t){return n==null?void 0:n[t]}}var ED={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},bD=CD(ED);const xD=bD;var AD=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vD="\\u0300-\\u036f",BD="\\ufe20-\\ufe2f",yD="\\u20d0-\\u20ff",TD=vD+BD+yD,kD="["+TD+"]",RD=RegExp(kD,"g");function wD(n){return n=$B(n),n&&n.replace(AD,xD).replace(RD,"")}var SD=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function LD(n){return n.match(SD)||[]}var ID=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function DD(n){return ID.test(n)}var HB="\\ud800-\\udfff",_D="\\u0300-\\u036f",MD="\\ufe20-\\ufe2f",OD="\\u20d0-\\u20ff",UD=_D+MD+OD,jB="\\u2700-\\u27bf",zB="a-z\\xdf-\\xf6\\xf8-\\xff",ND="\\xac\\xb1\\xd7\\xf7",PD="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",FD="\\u2000-\\u206f",KD=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",WB="A-Z\\xc0-\\xd6\\xd8-\\xde",VD="\\ufe0e\\ufe0f",GB=ND+PD+FD+KD,qB="['\u2019]",XB="["+GB+"]",$D="["+UD+"]",YB="\\d+",HD="["+jB+"]",JB="["+zB+"]",QB="[^"+HB+GB+YB+jB+zB+WB+"]",jD="\\ud83c[\\udffb-\\udfff]",zD="(?:"+$D+"|"+jD+")",WD="[^"+HB+"]",ZB="(?:\\ud83c[\\udde6-\\uddff]){2}",t3="[\\ud800-\\udbff][\\udc00-\\udfff]",Gc="["+WB+"]",GD="\\u200d",e3="(?:"+JB+"|"+QB+")",qD="(?:"+Gc+"|"+QB+")",n3="(?:"+qB+"(?:d|ll|m|re|s|t|ve))?",r3="(?:"+qB+"(?:D|LL|M|RE|S|T|VE))?",i3=zD+"?",o3="["+VD+"]?",XD="(?:"+GD+"(?:"+[WD,ZB,t3].join("|")+")"+o3+i3+")*",YD="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",JD="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",QD=o3+i3+XD,ZD="(?:"+[HD,ZB,t3].join("|")+")"+QD,t8=RegExp([Gc+"?"+JB+"+"+n3+"(?="+[XB,Gc,"$"].join("|")+")",qD+"+"+r3+"(?="+[XB,Gc+e3,"$"].join("|")+")",Gc+"?"+e3+"+"+n3,Gc+"+"+r3,JD,YD,YB,ZD].join("|"),"g");function e8(n){return n.match(t8)||[]}function n8(n,t,e){return n=$B(n),t=e?void 0:t,t===void 0?DD(n)?e8(n):LD(n):n.match(t)||[]}var r8="['\u2019]",i8=RegExp(r8,"g");function o8(n){return function(t){return pD(n8(wD(t).replace(i8,"")),n,"")}}var s8=o8(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()});const l8=s8,s3=_("box");function Zo(n){return!n.attributes||!n.attributes.box?!1:(p(s3,typeof n.attributes.box=="string"&&n.attributes.box==="true"||n.attributes.box===!0,`invalid op attribute box property, ${n.attributes.box}`),p(s3,n.attributes.type,`no box type: ${JSON.stringify(n)}`),!0)}const l3=_("text-op");function Fm(n){return p(l3,typeof n.insert=="string","invalid op, no insert"),n.insert.length}function a3(n,t){const e=n;let r=0;for(let i=0;i<e.length;i++){const o=e[i];p(l3,typeof o.insert=="string","invalid text op, no insert");const s=r+Fm(o);if(s>t)return[o];if(s===t){const l=[o];return i<e.length-1&&l.push(e[i+1]),l}r=s}return[]}const c3=_("rich-text-length");function P1(n){return p(c3,typeof n.insert=="string","op.insert is not string"),n.insert.length}function $n(n){let t=0;return n.forEach(e=>{e.insert&&(p(c3,typeof e.insert=="string","op.insert is not string"),t+=P1(e))}),t}const ro=_("split-text");function sr(n,t,e){if(n=At.default(n),t===0)return{left:[],right:n};if(t===-1)return{left:n,right:[]};let r=0;for(let i=0;i<n.length;i++){const o=n[i];p(ro,typeof o=="object",`invalid op type, ${typeof o}`),p(ro,typeof o.insert=="string",`invalid op.insert type, ${typeof o.insert}`);const s=P1(o);if(r+s<t)r+=s;else{if(r+s===t)return{left:n.slice(0,i+1),right:n.slice(i+1)};{p(ro,r+s>t,`invalid offset, ${r}, ${s}, ${t}`);const l=t-r,c=At.default(o);p(ro,c.insert,"no copied.insert"),p(ro,typeof c.insert=="string","invalid copied.insert type"),c.insert=c.insert.substr(0,l),o.insert=o.insert.substr(l),c.insert===""&&p(ro,!1,"invalid copied.insert, is empty string"),o.insert===""&&p(ro,!1,"invalid op.insert, is empty string");const f=[o,...n.slice(i+1)],h=[...n.splice(0,i),c];return e&&(e.sourceOp=o),{left:h,right:f}}}}throw new Error(`invalid split offset: ${t}, ${JSON.stringify(n)}`)}function Cn(n,t,e){p(ro,t>=0,"invalid offset, < 0"),p(ro,e>0,"invalid length, <= 0"),p(ro,t+e<=$n(n),"invalid offset + length < text length");const{left:r,right:i}=sr(n,t+e),{left:o,right:s}=sr(r,t);return{left:o,middle:s,right:i}}function u3(n,t){const e=Array.from(new Set(t)).sort((o,s)=>o-s),r=[];let i=n;for(let o=e.length-1;o>=0;o--){const s=e[o],{left:l,right:c}=sr(i,s);i=l,r.unshift(c)}return i.length>0&&r.unshift(i),r}function f3(n,t,e){return Cn(n,t,e).middle}const F1="style-color-",K1="style-bg-color-";function Km(n,t,e){const r=At.default(n);return r.forEach(i=>{if(!(i.attributes&&i.attributes.box===!0&&!t.startsWith("comment-")))if(e===void 0){if(!i.attributes||i.attributes[t]===void 0)return;delete i.attributes[t],Object.keys(i.attributes).length===0&&delete i.attributes}else i.attributes||(i.attributes={}),i.attributes[t]=e}),r}function V1(n,t,e,r){const i=At.default(n);return i.forEach(o=>{o.attributes&&o.attributes.box===!0&&!(r!=null&&r.handleBox)||o.attributes&&((r==null?void 0:r.ignoreValue)||o.attributes[t]===e)&&(delete o.attributes[t],Object.keys(o.attributes).length===0&&delete o.attributes)}),i}function td(n,t,e,r,i){if(t===0)return e;const o=Cn(e,n,t);return[...o.left,...Km(o.middle,r,i),...o.right]}function qc(n,t,e,r,i,o){if(t===0)return e;const s=Cn(e,n,t);return[...s.left,...V1(s.middle,r,i,o),...s.right]}function Xc(n,t){const e=a3(n,t);if(e.length===1)return e[0].attributes;if(e.length===2)return e[1].attributes}function d3(n,t,e,r){if(t===0)return e;const i=Cn(e,n,t),o=i.middle.map(s=>r(s));return[...i.left,...o,...i.right]}function h3(n,t){t==="color"?Object.keys(n).forEach(e=>{(e.startsWith("style-color-")||e==="inline-style-color")&&delete n[e]}):t==="backgroundColor"&&Object.keys(n).forEach(e=>{e.startsWith("style-bg-color-")&&delete n[e]})}function a8(n,t){if(!n.attributes||n.attributes.box)return;const e=n.attributes;h3(e,t),Object.keys(e).length===0&&delete n.attributes}function c8(n,t,e){n.attributes||(n.attributes={}),!n.attributes.box&&(t==="color"?n.attributes[`style-color-${e}`]=!0:n.attributes[`style-bg-color-${e}`]=!0)}function m3(n,t,e,r,i){const o=At.default(e);return d3(n,t,o,l=>(a8(l,r),i!==null&&c8(l,r,i),l))}function $1(n){var i,o;if(!n||n.box)return[null,null];const t=Array.from(Object.keys(n));let e=null,r=null;for(let s=0;s<t.length;s++){const l=t[s];l.startsWith(F1)?e=(i=Number.parseInt(l.substring(F1.length),10))!=null?i:null:l.startsWith(K1)&&(r=(o=Number.parseInt(l.substring(K1.length),10))!=null?o:null)}return[e,r]}function g3(n,t,e){h3(n,t),t==="color"?n[`style-color-${e}`]=!0:n[`style-bg-color-${e}`]=!0}function p3(n){return n.attributes?n.attributes.box?[null,null]:$1(n.attributes):[null,null]}function C3(n,t,e){let r=[];if(t===0?n!==0&&(r=Cn(e,n-1,1).middle):r=Cn(e,n,t).middle,r.length===0)return[null,null];let[i,o]=p3(r[0]);if(i===null&&o===null)return[i,o];for(let s=1;s<r.length;s++){const l=r[s];if(!l.attributes)return[null,null];if(l.attributes.box)continue;const[c,f]=p3(l);c===null||i===null?i=null:i=c===i?i:null,f===null||o===null?o=null:o=f===o?o:null}return[i,o]}const Yc=_("text-block-content");function u8(n,t,e,r,i){if(p(Yc,r,"no text for block"),r.length===0&&(!i||i.size===0)){e.innerHTML="<span><br></span>";return}const o=[];i&&o.push(...i.keys());const s=C=>n.editorInsertions.createInsertion(e,C),l=(C,E)=>{const b=i==null?void 0:i.get(E);b&&(b.forEach(v=>{C.appendChild(s(v))}),i==null||i.delete(E))},c=document.createDocumentFragment();let f=0;const h=u3(r,o);for(let C=0;C<h.length;C++){l(c,f);const E=h[C];f+=$n(E);for(let b=0;b<E.length;b++){const v=E[b];if(Zo(v)){p(Yc,v.attributes,`op is not an valid box: ${JSON.stringify(v)}`);const w=n.editorBoxes.createBox(e,v.attributes);p(Yc,w instanceof HTMLSpanElement,`invalid box element: ${w.tagName}`);const O=n.editorBlockRenders.renderBox(t,v.attributes);O.classes&&z(w,...O.classes),O.attributes&&Object.entries(O.attributes).forEach(([M,F])=>{w.setAttribute(M,F)}),O.styles&&Object.entries(O.styles).forEach(([M,F])=>{w.style.setProperty(M,F)}),c.appendChild(w);continue}p(Yc,v.insert,`no insert in op: ${JSON.stringify(v)}`);const k=B("span",["text"],c,v.insert);if(v.attributes){const w=n.editorBlockRenders.renderText(t,v.attributes);w.classes&&z(k,...w.classes),w.attributes&&Object.entries(w.attributes).forEach(([O,M])=>{k.setAttribute(O,M)}),w.styles&&Object.entries(w.styles).forEach(([O,M])=>{k.style.setProperty(l8(O),M)})}c.appendChild(k)}}l(c,f),e.innerHTML="",e.appendChild(c)}function Vm(n,t,e,r,i){const{text:o,insertions:s}=n.editorDecorators.decorateText(t,i),l=n.compositingText;if(l){const c=n.selection.range.start;if(p(Yc,c.isSimple(),"not an simple position while compositing"),c.blockId===e){const f=Xc(o,0);s.set(c.offset,[{type:"inputting",id:rt(),text:l,attributes:f}])}}return u8(n,t,r,o,s)}function f8(n){const t=n.rootContainer.querySelectorAll('span[data-type="editor-insertion"].inputting-insertion');t.length&&Yc.debug(`remove ${t.length} temp composition span`),Array.from(t).forEach(e=>e.remove())}const io=_("client-rects");function d8(n){const t=eo(n);let e=0;const r=[];for(let i=0;i<t.length;i++){const o=t[i],s=Zr(o);r.push({child:o,startBlockOffset:e,endBlockOffset:e+s}),e+=s}return r}function h8(n,t,e,r){p(io,e<r,`invalid from & to: ${e}, ${r}`);const i=bt(n,t);p(io,e>=0&&r>=0&&e<=i&&r<=i,`invalid offset: ${e}, ${r}, length: ${i}`);const o=d8(t),s=o.findIndex(b=>b.startBlockOffset<=e&&e<b.endBlockOffset),l=o.findIndex(b=>b.startBlockOffset<r&&r<=b.endBlockOffset);if(p(io,s!==-1,"failed to find start child"),p(io,l!==-1,"failed to find end child"),p(io,s<=l,`invalid start index & end index: ${s}, ${l}`),s===l){const b=o[s];return[{child:b.child,startChildOffset:e-b.startBlockOffset,endChildOffset:r-b.startBlockOffset}]}const c=[],f=o[s],h={child:f.child,startChildOffset:e-f.startBlockOffset,endChildOffset:Zr(f.child)};c.push(h);for(let b=s+1;b<l;b++){const v=o[b],k={child:v.child,startChildOffset:0,endChildOffset:v.endBlockOffset-v.startBlockOffset};c.push(k)}const C=o[l],E={child:C.child,startChildOffset:0,endChildOffset:r-C.startBlockOffset};return c.push(E),c}function m8(n){const t=(r,i)=>r.left<=i.left&&r.top<=i.top&&r.right>=i.right&&r.bottom>=i.bottom&&(r.width!==i.width||r.height!==i.height);n=n.filter(r=>!n.find(o=>t(r,o)));const e=[];return n=n.filter(r=>e.find(i=>i.left===r.left&&i.top===r.top&&i.width===r.width&&i.height===r.height)?!1:(e.push(r),!0)),n}function E3(n,t,e,r){if(bt(n,t)===0){const h=$t(t).getBoundingClientRect();return[new DOMRect(h.left,h.top,4,h.height)]}const i=e.offset,o=r.offset;if(i===o)return[wr(t,e)];const l=h8(n,t,i,o).map(f=>W7(f.child,f.startChildOffset,f.endChildOffset)),c=[];return l.forEach(f=>{const h=m8(Array.from(f.getClientRects()));c.push(...h)}),c}function g8(n,t,e){p(io,e instanceof vn,"invalid range");const r=e.start,i=e.end;return p(io,r.isSimple(),"text block only allow simple position"),p(io,i.isSimple(),"text block only allow simple position"),p(io,r.blockId===i.blockId,"only allow update one text block selection"),p(io,r.blockId===dt(t),"only allow update one text block selection"),E3(n,t,r,i)}const H1=_("selection-background");function p8(n,t,e,r){p(H1,e.isSimple(),"text block only allow simple position"),p(H1,r.isSimple(),"text block only allow simple position"),p(H1,e.blockId===r.blockId,"only allow update one text block selection");const i=e.offset,o=r.offset;if(i===o&&(bt(n,t)!==0||n.selection.range.isCollapsed())){const h=E1(t);Array.from(h.children).forEach(C=>{C.remove()});return}const s=E3(n,t,e,r),l=t.getBoundingClientRect(),c=Gr(t),f=E1(t);Array.from(f.children).forEach((h,C)=>{if(C<s.length){const E=s[C],b=h;b.style.left=`${(E.left-l.left-t.clientLeft)/c}px`,b.style.top=`${(E.top-l.top-t.clientTop)/c}px`,b.style.width=`${E.width/c}px`,b.style.height=`${E.height/c}px`}else h.remove()}),s.slice(f.children.length).forEach(h=>{const C=B("div",["editor-selection-background"],f);C.style.left=`${(h.left-l.left-t.clientLeft)/c}px`,C.style.top=`${(h.top-l.top-t.clientTop)/c}px`,C.style.width=`${h.width/c}px`,C.style.height=`${h.height/c}px`})}function C8(n){const t=n.selection.range.getSelectedBlocks(),e=n.selection.range.isCollapsed();n.rootContainer.querySelectorAll("div[data-type=block-background]").forEach(r=>{const i=Q(r);i&&at(n,i)&&(!t.find(o=>o.block===i)||e)&&r.remove()})}const ed=_("line-breaker");function b3(n){const t=[];let e=null;for(let r=0;r<n.length;r++){let i=n[r];!!e&&i.top===e.top?(i=new DOMRect(e.left,e.top,e.width+i.width,i.height),t.splice(t.length-1,1,i)):t.push(i),e=i}return t}function E8(n){const t=document.createRange();return t.setStart(n,0),t.setEnd(n,n.data.length),b3(t.getClientRects())}function nd(n){const t=l=>{if(!l)return!1;const c=bm(l);return aa(l).top>c.top+c.height/2},e=(l,c)=>{const f=aa(l),h=bm(c);return Math.floor(h.left)<Math.floor(f.right)},r=(l,c)=>{const f=aa(l),h=aa(c);return h.top+h.height/2>f.bottom},i=[];let o=0;const s=eo(n);for(let l=0;l<s.length;l++){const c=s[l];if(Jo(c)){const v=c,k=s[l+1];if(!k)break;const w=s[l-1];if(w&&r(w,v)&&i.push({offset:o,type:"betweenChild",childInfo:{prevChild:w,nextChild:v,wrap:"nextWrapped",prevWrapped:t(w),nextWrapped:t(v)}}),e(v,k)){i.push({offset:o,type:"betweenChild",childInfo:{prevChild:w,nextChild:v,wrap:"nowrap",prevWrapped:t(w),nextWrapped:t(v)}});continue}continue}if(Rr(c)){const v=c,k=s[l+1];if(!k)break;const w=s[l-1];if(w&&r(w,v)&&i.push({offset:o,type:"betweenChild",childInfo:{prevChild:w,nextChild:v,wrap:"nextWrapped",prevWrapped:t(w),nextWrapped:t(v)}}),e(v,k)){o+=1,i.push({offset:o,type:"betweenChild",childInfo:{prevChild:w,nextChild:c,wrap:"nowrap",prevWrapped:t(w),nextWrapped:t(c)}});continue}o+=1;continue}const f=c,h=b3(f.getClientRects());if(p(ed,h.length>0,"invalid text child dom"),h.length===1){const v=s[l+1];if(!v)break;if(e(f,v)){o+=Zr(f),i.push({offset:o,type:"betweenChild",childInfo:{prevChild:f,nextChild:v,wrap:"nowrap",prevWrapped:t(f),nextWrapped:t(v)}});continue}o+=Zr(f);continue}const C=f.firstChild;p(ed,C,"invalid text child, no text node"),p(ed,C instanceof Text,`invalid text child, not a valid text node: ${typeof C}`);const E=Zr(f);p(ed,C.data.length===E,"text node data length not equal child text length");const b=E8(C);for(let v=0;v<b.length-1;v++){const k=b[v],w=Yp(k.right,k.top+k.height-1);w.offset>-1&&w.textNode===C&&i.push({offset:o+w.offset,type:"textBreakWord",childInfo:{prevChild:c,nextChild:c,wrap:"nowrap",prevWrapped:t(c),nextWrapped:t(c)}})}o+=E}return i}function j1(n,t){const e=nd(n);for(let r=0;r<e.length;r++){const{offset:i}=e[r];if(t.offset<i)return{lineIndex:r,lineBreaks:e};if(t.offset===i&&t.type==="end")return{lineIndex:r,lineBreaks:e}}return p(ed,t.offset<=Qf(n),"invalid position, offset > block length"),{lineIndex:e.length,lineBreaks:e}}var yn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},x3={},z1={},W1={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.EXTENDED_PICTOGRAPHIC=n.CLUSTER_BREAK=void 0,function(t){t[t.CR=0]="CR",t[t.LF=1]="LF",t[t.CONTROL=2]="CONTROL",t[t.EXTEND=3]="EXTEND",t[t.REGIONAL_INDICATOR=4]="REGIONAL_INDICATOR",t[t.SPACINGMARK=5]="SPACINGMARK",t[t.L=6]="L",t[t.V=7]="V",t[t.T=8]="T",t[t.LV=9]="LV",t[t.LVT=10]="LVT",t[t.OTHER=11]="OTHER",t[t.PREPEND=12]="PREPEND",t[t.E_BASE=13]="E_BASE",t[t.E_MODIFIER=14]="E_MODIFIER",t[t.ZWJ=15]="ZWJ",t[t.GLUE_AFTER_ZWJ=16]="GLUE_AFTER_ZWJ",t[t.E_BASE_GAZ=17]="E_BASE_GAZ"}(n.CLUSTER_BREAK||(n.CLUSTER_BREAK={})),n.EXTENDED_PICTOGRAPHIC=101})(W1);var G1={};Object.defineProperty(G1,"__esModule",{value:!0});const Qt=W1,ts=0,q1=1,b8=2,x8=3,A8=4;class v8{static isSurrogate(t,e){return 55296<=t.charCodeAt(e)&&t.charCodeAt(e)<=56319&&56320<=t.charCodeAt(e+1)&&t.charCodeAt(e+1)<=57343}static codePointAt(t,e){e===void 0&&(e=0);const r=t.charCodeAt(e);if(55296<=r&&r<=56319&&e<t.length-1){const i=r,o=t.charCodeAt(e+1);return 56320<=o&&o<=57343?(i-55296)*1024+(o-56320)+65536:i}if(56320<=r&&r<=57343&&e>=1){const i=t.charCodeAt(e-1),o=r;return 55296<=i&&i<=56319?(i-55296)*1024+(o-56320)+65536:o}return r}static shouldBreak(t,e,r,i,o,s){const l=[t].concat(e).concat([r]),c=[i].concat(o).concat([s]),f=l[l.length-2],h=r,C=s,E=l.lastIndexOf(Qt.CLUSTER_BREAK.REGIONAL_INDICATOR);if(E>0&&l.slice(1,E).every(function(v){return v===Qt.CLUSTER_BREAK.REGIONAL_INDICATOR})&&[Qt.CLUSTER_BREAK.PREPEND,Qt.CLUSTER_BREAK.REGIONAL_INDICATOR].indexOf(f)===-1)return l.filter(function(v){return v===Qt.CLUSTER_BREAK.REGIONAL_INDICATOR}).length%2===1?x8:A8;if(f===Qt.CLUSTER_BREAK.CR&&h===Qt.CLUSTER_BREAK.LF)return ts;if(f===Qt.CLUSTER_BREAK.CONTROL||f===Qt.CLUSTER_BREAK.CR||f===Qt.CLUSTER_BREAK.LF)return q1;if(h===Qt.CLUSTER_BREAK.CONTROL||h===Qt.CLUSTER_BREAK.CR||h===Qt.CLUSTER_BREAK.LF)return q1;if(f===Qt.CLUSTER_BREAK.L&&(h===Qt.CLUSTER_BREAK.L||h===Qt.CLUSTER_BREAK.V||h===Qt.CLUSTER_BREAK.LV||h===Qt.CLUSTER_BREAK.LVT))return ts;if((f===Qt.CLUSTER_BREAK.LV||f===Qt.CLUSTER_BREAK.V)&&(h===Qt.CLUSTER_BREAK.V||h===Qt.CLUSTER_BREAK.T))return ts;if((f===Qt.CLUSTER_BREAK.LVT||f===Qt.CLUSTER_BREAK.T)&&h===Qt.CLUSTER_BREAK.T)return ts;if(h===Qt.CLUSTER_BREAK.EXTEND||h===Qt.CLUSTER_BREAK.ZWJ)return ts;if(h===Qt.CLUSTER_BREAK.SPACINGMARK)return ts;if(f===Qt.CLUSTER_BREAK.PREPEND)return ts;const b=c.slice(0,-1).lastIndexOf(Qt.EXTENDED_PICTOGRAPHIC);return b!==-1&&c[b]===Qt.EXTENDED_PICTOGRAPHIC&&l.slice(b+1,-2).every(function(v){return v===Qt.CLUSTER_BREAK.EXTEND})&&f===Qt.CLUSTER_BREAK.ZWJ&&C===Qt.EXTENDED_PICTOGRAPHIC?ts:e.indexOf(Qt.CLUSTER_BREAK.REGIONAL_INDICATOR)!==-1?b8:f===Qt.CLUSTER_BREAK.REGIONAL_INDICATOR&&h===Qt.CLUSTER_BREAK.REGIONAL_INDICATOR?ts:q1}}G1.default=v8;var X1={};Object.defineProperty(X1,"__esModule",{value:!0});class B8{constructor(t,e){this._index=0,this._str=t,this._nextBreak=e}[Symbol.iterator](){return this}next(){let t;if((t=this._nextBreak(this._str,this._index))<this._str.length){const e=this._str.slice(this._index,t);return this._index=t,{value:e,done:!1}}if(this._index<this._str.length){const e=this._str.slice(this._index);return this._index=this._str.length,{value:e,done:!1}}return{value:void 0,done:!0}}}X1.default=B8;var A3=yn&&yn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(z1,"__esModule",{value:!0});const d=W1,$m=A3(G1),y8=A3(X1);class es{static nextBreak(t,e){if(e===void 0&&(e=0),e<0)return 0;if(e>=t.length-1)return t.length;const r=$m.default.codePointAt(t,e),i=es.getGraphemeBreakProperty(r),o=es.getEmojiProperty(r),s=[],l=[];for(let c=e+1;c<t.length;c++){if($m.default.isSurrogate(t,c-1))continue;const f=$m.default.codePointAt(t,c),h=es.getGraphemeBreakProperty(f),C=es.getEmojiProperty(f);if($m.default.shouldBreak(i,s,h,o,l,C))return c;s.push(h),l.push(C)}return t.length}splitGraphemes(t){const e=[];let r=0,i;for(;(i=es.nextBreak(t,r))<t.length;)e.push(t.slice(r,i)),r=i;return r<t.length&&e.push(t.slice(r)),e}iterateGraphemes(t){return new y8.default(t,es.nextBreak)}countGraphemes(t){let e=0,r=0,i;for(;(i=es.nextBreak(t,r))<t.length;)r=i,e++;return r<t.length&&e++,e}static getGraphemeBreakProperty(t){if(t<48905){if(t<44116){if(t<4141){if(t<2818){if(t<2363)if(t<1759){if(t<1471){if(t<127){if(t<11){if(t<10){if(0<=t&&t<=9)return d.CLUSTER_BREAK.CONTROL}else if(t===10)return d.CLUSTER_BREAK.LF}else if(t<13){if(11<=t&&t<=12)return d.CLUSTER_BREAK.CONTROL}else if(t<14){if(t===13)return d.CLUSTER_BREAK.CR}else if(14<=t&&t<=31)return d.CLUSTER_BREAK.CONTROL}else if(t<768){if(t<173){if(127<=t&&t<=159)return d.CLUSTER_BREAK.CONTROL}else if(t===173)return d.CLUSTER_BREAK.CONTROL}else if(t<1155){if(768<=t&&t<=879)return d.CLUSTER_BREAK.EXTEND}else if(t<1425){if(1155<=t&&t<=1161)return d.CLUSTER_BREAK.EXTEND}else if(1425<=t&&t<=1469)return d.CLUSTER_BREAK.EXTEND}else if(t<1552){if(t<1476){if(t<1473){if(t===1471)return d.CLUSTER_BREAK.EXTEND}else if(1473<=t&&t<=1474)return d.CLUSTER_BREAK.EXTEND}else if(t<1479){if(1476<=t&&t<=1477)return d.CLUSTER_BREAK.EXTEND}else if(t<1536){if(t===1479)return d.CLUSTER_BREAK.EXTEND}else if(1536<=t&&t<=1541)return d.CLUSTER_BREAK.PREPEND}else if(t<1648){if(t<1564){if(1552<=t&&t<=1562)return d.CLUSTER_BREAK.EXTEND}else if(t<1611){if(t===1564)return d.CLUSTER_BREAK.CONTROL}else if(1611<=t&&t<=1631)return d.CLUSTER_BREAK.EXTEND}else if(t<1750){if(t===1648)return d.CLUSTER_BREAK.EXTEND}else if(t<1757){if(1750<=t&&t<=1756)return d.CLUSTER_BREAK.EXTEND}else if(t===1757)return d.CLUSTER_BREAK.PREPEND}else if(t<2075){if(t<1840)if(t<1770){if(t<1767){if(1759<=t&&t<=1764)return d.CLUSTER_BREAK.EXTEND}else if(1767<=t&&t<=1768)return d.CLUSTER_BREAK.EXTEND}else if(t<1807){if(1770<=t&&t<=1773)return d.CLUSTER_BREAK.EXTEND}else{if(t===1807)return d.CLUSTER_BREAK.PREPEND;if(t===1809)return d.CLUSTER_BREAK.EXTEND}else if(t<2027){if(t<1958){if(1840<=t&&t<=1866)return d.CLUSTER_BREAK.EXTEND}else if(1958<=t&&t<=1968)return d.CLUSTER_BREAK.EXTEND}else if(t<2045){if(2027<=t&&t<=2035)return d.CLUSTER_BREAK.EXTEND}else if(t<2070){if(t===2045)return d.CLUSTER_BREAK.EXTEND}else if(2070<=t&&t<=2073)return d.CLUSTER_BREAK.EXTEND}else if(t<2200){if(t<2089){if(t<2085){if(2075<=t&&t<=2083)return d.CLUSTER_BREAK.EXTEND}else if(2085<=t&&t<=2087)return d.CLUSTER_BREAK.EXTEND}else if(t<2137){if(2089<=t&&t<=2093)return d.CLUSTER_BREAK.EXTEND}else if(t<2192){if(2137<=t&&t<=2139)return d.CLUSTER_BREAK.EXTEND}else if(2192<=t&&t<=2193)return d.CLUSTER_BREAK.PREPEND}else if(t<2275){if(t<2250){if(2200<=t&&t<=2207)return d.CLUSTER_BREAK.EXTEND}else if(t<2274){if(2250<=t&&t<=2273)return d.CLUSTER_BREAK.EXTEND}else if(t===2274)return d.CLUSTER_BREAK.PREPEND}else if(t<2307){if(2275<=t&&t<=2306)return d.CLUSTER_BREAK.EXTEND}else{if(t===2307)return d.CLUSTER_BREAK.SPACINGMARK;if(t===2362)return d.CLUSTER_BREAK.EXTEND}else if(t<2561){if(t<2434){if(t<2381){if(t<2366){if(t===2363)return d.CLUSTER_BREAK.SPACINGMARK;if(t===2364)return d.CLUSTER_BREAK.EXTEND}else if(t<2369){if(2366<=t&&t<=2368)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2377){if(2369<=t&&t<=2376)return d.CLUSTER_BREAK.EXTEND}else if(2377<=t&&t<=2380)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2385){if(t<2382){if(t===2381)return d.CLUSTER_BREAK.EXTEND}else if(2382<=t&&t<=2383)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2402){if(2385<=t&&t<=2391)return d.CLUSTER_BREAK.EXTEND}else if(t<2433){if(2402<=t&&t<=2403)return d.CLUSTER_BREAK.EXTEND}else if(t===2433)return d.CLUSTER_BREAK.EXTEND}else if(t<2503){if(t<2494){if(t<2492){if(2434<=t&&t<=2435)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===2492)return d.CLUSTER_BREAK.EXTEND}else if(t<2495){if(t===2494)return d.CLUSTER_BREAK.EXTEND}else if(t<2497){if(2495<=t&&t<=2496)return d.CLUSTER_BREAK.SPACINGMARK}else if(2497<=t&&t<=2500)return d.CLUSTER_BREAK.EXTEND}else if(t<2519){if(t<2507){if(2503<=t&&t<=2504)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2509){if(2507<=t&&t<=2508)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===2509)return d.CLUSTER_BREAK.EXTEND}else if(t<2530){if(t===2519)return d.CLUSTER_BREAK.EXTEND}else if(t<2558){if(2530<=t&&t<=2531)return d.CLUSTER_BREAK.EXTEND}else if(t===2558)return d.CLUSTER_BREAK.EXTEND}else if(t<2691){if(t<2631){if(t<2620){if(t<2563){if(2561<=t&&t<=2562)return d.CLUSTER_BREAK.EXTEND}else if(t===2563)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2622){if(t===2620)return d.CLUSTER_BREAK.EXTEND}else if(t<2625){if(2622<=t&&t<=2624)return d.CLUSTER_BREAK.SPACINGMARK}else if(2625<=t&&t<=2626)return d.CLUSTER_BREAK.EXTEND}else if(t<2672){if(t<2635){if(2631<=t&&t<=2632)return d.CLUSTER_BREAK.EXTEND}else if(t<2641){if(2635<=t&&t<=2637)return d.CLUSTER_BREAK.EXTEND}else if(t===2641)return d.CLUSTER_BREAK.EXTEND}else if(t<2677){if(2672<=t&&t<=2673)return d.CLUSTER_BREAK.EXTEND}else if(t<2689){if(t===2677)return d.CLUSTER_BREAK.EXTEND}else if(2689<=t&&t<=2690)return d.CLUSTER_BREAK.EXTEND}else if(t<2761){if(t<2750){if(t===2691)return d.CLUSTER_BREAK.SPACINGMARK;if(t===2748)return d.CLUSTER_BREAK.EXTEND}else if(t<2753){if(2750<=t&&t<=2752)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2759){if(2753<=t&&t<=2757)return d.CLUSTER_BREAK.EXTEND}else if(2759<=t&&t<=2760)return d.CLUSTER_BREAK.EXTEND}else if(t<2786){if(t<2763){if(t===2761)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2765){if(2763<=t&&t<=2764)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===2765)return d.CLUSTER_BREAK.EXTEND}else if(t<2810){if(2786<=t&&t<=2787)return d.CLUSTER_BREAK.EXTEND}else if(t<2817){if(2810<=t&&t<=2815)return d.CLUSTER_BREAK.EXTEND}else if(t===2817)return d.CLUSTER_BREAK.EXTEND}else if(t<3315){if(t<3076){if(t<2946){if(t<2887){if(t<2878){if(t<2876){if(2818<=t&&t<=2819)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===2876)return d.CLUSTER_BREAK.EXTEND}else if(t<2880){if(2878<=t&&t<=2879)return d.CLUSTER_BREAK.EXTEND}else if(t<2881){if(t===2880)return d.CLUSTER_BREAK.SPACINGMARK}else if(2881<=t&&t<=2884)return d.CLUSTER_BREAK.EXTEND}else if(t<2893){if(t<2891){if(2887<=t&&t<=2888)return d.CLUSTER_BREAK.SPACINGMARK}else if(2891<=t&&t<=2892)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<2901){if(t===2893)return d.CLUSTER_BREAK.EXTEND}else if(t<2914){if(2901<=t&&t<=2903)return d.CLUSTER_BREAK.EXTEND}else if(2914<=t&&t<=2915)return d.CLUSTER_BREAK.EXTEND}else if(t<3014){if(t<3007){if(t===2946||t===3006)return d.CLUSTER_BREAK.EXTEND}else if(t<3008){if(t===3007)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3009){if(t===3008)return d.CLUSTER_BREAK.EXTEND}else if(3009<=t&&t<=3010)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3031){if(t<3018){if(3014<=t&&t<=3016)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3021){if(3018<=t&&t<=3020)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===3021)return d.CLUSTER_BREAK.EXTEND}else if(t<3072){if(t===3031)return d.CLUSTER_BREAK.EXTEND}else if(t<3073){if(t===3072)return d.CLUSTER_BREAK.EXTEND}else if(3073<=t&&t<=3075)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3262){if(t<3146){if(t<3134){if(t===3076||t===3132)return d.CLUSTER_BREAK.EXTEND}else if(t<3137){if(3134<=t&&t<=3136)return d.CLUSTER_BREAK.EXTEND}else if(t<3142){if(3137<=t&&t<=3140)return d.CLUSTER_BREAK.SPACINGMARK}else if(3142<=t&&t<=3144)return d.CLUSTER_BREAK.EXTEND}else if(t<3201){if(t<3157){if(3146<=t&&t<=3149)return d.CLUSTER_BREAK.EXTEND}else if(t<3170){if(3157<=t&&t<=3158)return d.CLUSTER_BREAK.EXTEND}else if(3170<=t&&t<=3171)return d.CLUSTER_BREAK.EXTEND}else if(t<3202){if(t===3201)return d.CLUSTER_BREAK.EXTEND}else if(t<3260){if(3202<=t&&t<=3203)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===3260)return d.CLUSTER_BREAK.EXTEND}else if(t<3270){if(t<3264){if(t===3262)return d.CLUSTER_BREAK.SPACINGMARK;if(t===3263)return d.CLUSTER_BREAK.EXTEND}else if(t<3266){if(3264<=t&&t<=3265)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3267){if(t===3266)return d.CLUSTER_BREAK.EXTEND}else if(3267<=t&&t<=3268)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3276){if(t<3271){if(t===3270)return d.CLUSTER_BREAK.EXTEND}else if(t<3274){if(3271<=t&&t<=3272)return d.CLUSTER_BREAK.SPACINGMARK}else if(3274<=t&&t<=3275)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3285){if(3276<=t&&t<=3277)return d.CLUSTER_BREAK.EXTEND}else if(t<3298){if(3285<=t&&t<=3286)return d.CLUSTER_BREAK.EXTEND}else if(3298<=t&&t<=3299)return d.CLUSTER_BREAK.EXTEND}else if(t<3551){if(t<3406){if(t<3391){if(t<3330){if(t<3328){if(t===3315)return d.CLUSTER_BREAK.SPACINGMARK}else if(3328<=t&&t<=3329)return d.CLUSTER_BREAK.EXTEND}else if(t<3387){if(3330<=t&&t<=3331)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3390){if(3387<=t&&t<=3388)return d.CLUSTER_BREAK.EXTEND}else if(t===3390)return d.CLUSTER_BREAK.EXTEND}else if(t<3398){if(t<3393){if(3391<=t&&t<=3392)return d.CLUSTER_BREAK.SPACINGMARK}else if(3393<=t&&t<=3396)return d.CLUSTER_BREAK.EXTEND}else if(t<3402){if(3398<=t&&t<=3400)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3405){if(3402<=t&&t<=3404)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===3405)return d.CLUSTER_BREAK.EXTEND}else if(t<3530){if(t<3426){if(t===3406)return d.CLUSTER_BREAK.PREPEND;if(t===3415)return d.CLUSTER_BREAK.EXTEND}else if(t<3457){if(3426<=t&&t<=3427)return d.CLUSTER_BREAK.EXTEND}else if(t<3458){if(t===3457)return d.CLUSTER_BREAK.EXTEND}else if(3458<=t&&t<=3459)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3538){if(t<3535){if(t===3530)return d.CLUSTER_BREAK.EXTEND}else if(t<3536){if(t===3535)return d.CLUSTER_BREAK.EXTEND}else if(3536<=t&&t<=3537)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3542){if(3538<=t&&t<=3540)return d.CLUSTER_BREAK.EXTEND}else if(t<3544){if(t===3542)return d.CLUSTER_BREAK.EXTEND}else if(3544<=t&&t<=3550)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3893){if(t<3655){if(t<3633){if(t<3570){if(t===3551)return d.CLUSTER_BREAK.EXTEND}else if(3570<=t&&t<=3571)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3635){if(t===3633)return d.CLUSTER_BREAK.EXTEND}else if(t<3636){if(t===3635)return d.CLUSTER_BREAK.SPACINGMARK}else if(3636<=t&&t<=3642)return d.CLUSTER_BREAK.EXTEND}else if(t<3764)if(t<3761){if(3655<=t&&t<=3662)return d.CLUSTER_BREAK.EXTEND}else{if(t===3761)return d.CLUSTER_BREAK.EXTEND;if(t===3763)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3784){if(3764<=t&&t<=3772)return d.CLUSTER_BREAK.EXTEND}else if(t<3864){if(3784<=t&&t<=3790)return d.CLUSTER_BREAK.EXTEND}else if(3864<=t&&t<=3865)return d.CLUSTER_BREAK.EXTEND}else if(t<3967){if(t<3897){if(t===3893||t===3895)return d.CLUSTER_BREAK.EXTEND}else if(t<3902){if(t===3897)return d.CLUSTER_BREAK.EXTEND}else if(t<3953){if(3902<=t&&t<=3903)return d.CLUSTER_BREAK.SPACINGMARK}else if(3953<=t&&t<=3966)return d.CLUSTER_BREAK.EXTEND}else if(t<3981){if(t<3968){if(t===3967)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<3974){if(3968<=t&&t<=3972)return d.CLUSTER_BREAK.EXTEND}else if(3974<=t&&t<=3975)return d.CLUSTER_BREAK.EXTEND}else if(t<3993){if(3981<=t&&t<=3991)return d.CLUSTER_BREAK.EXTEND}else if(t<4038){if(3993<=t&&t<=4028)return d.CLUSTER_BREAK.EXTEND}else if(t===4038)return d.CLUSTER_BREAK.EXTEND}else if(t<7204){if(t<6448){if(t<5938){if(t<4226){if(t<4157){if(t<4146){if(t<4145){if(4141<=t&&t<=4144)return d.CLUSTER_BREAK.EXTEND}else if(t===4145)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<4153){if(4146<=t&&t<=4151)return d.CLUSTER_BREAK.EXTEND}else if(t<4155){if(4153<=t&&t<=4154)return d.CLUSTER_BREAK.EXTEND}else if(4155<=t&&t<=4156)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<4184){if(t<4182){if(4157<=t&&t<=4158)return d.CLUSTER_BREAK.EXTEND}else if(4182<=t&&t<=4183)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<4190){if(4184<=t&&t<=4185)return d.CLUSTER_BREAK.EXTEND}else if(t<4209){if(4190<=t&&t<=4192)return d.CLUSTER_BREAK.EXTEND}else if(4209<=t&&t<=4212)return d.CLUSTER_BREAK.EXTEND}else if(t<4352){if(t<4229){if(t===4226)return d.CLUSTER_BREAK.EXTEND;if(t===4228)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<4237){if(4229<=t&&t<=4230)return d.CLUSTER_BREAK.EXTEND}else if(t===4237||t===4253)return d.CLUSTER_BREAK.EXTEND}else if(t<4957){if(t<4448){if(4352<=t&&t<=4447)return d.CLUSTER_BREAK.L}else if(t<4520){if(4448<=t&&t<=4519)return d.CLUSTER_BREAK.V}else if(4520<=t&&t<=4607)return d.CLUSTER_BREAK.T}else if(t<5906){if(4957<=t&&t<=4959)return d.CLUSTER_BREAK.EXTEND}else if(t<5909){if(5906<=t&&t<=5908)return d.CLUSTER_BREAK.EXTEND}else if(t===5909)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6089){if(t<6070){if(t<5970){if(t<5940){if(5938<=t&&t<=5939)return d.CLUSTER_BREAK.EXTEND}else if(t===5940)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6002){if(5970<=t&&t<=5971)return d.CLUSTER_BREAK.EXTEND}else if(t<6068){if(6002<=t&&t<=6003)return d.CLUSTER_BREAK.EXTEND}else if(6068<=t&&t<=6069)return d.CLUSTER_BREAK.EXTEND}else if(t<6078){if(t<6071){if(t===6070)return d.CLUSTER_BREAK.SPACINGMARK}else if(6071<=t&&t<=6077)return d.CLUSTER_BREAK.EXTEND}else if(t<6086){if(6078<=t&&t<=6085)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6087){if(t===6086)return d.CLUSTER_BREAK.EXTEND}else if(6087<=t&&t<=6088)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6277)if(t<6155){if(t<6109){if(6089<=t&&t<=6099)return d.CLUSTER_BREAK.EXTEND}else if(t===6109)return d.CLUSTER_BREAK.EXTEND}else if(t<6158){if(6155<=t&&t<=6157)return d.CLUSTER_BREAK.EXTEND}else{if(t===6158)return d.CLUSTER_BREAK.CONTROL;if(t===6159)return d.CLUSTER_BREAK.EXTEND}else if(t<6435){if(t<6313){if(6277<=t&&t<=6278)return d.CLUSTER_BREAK.EXTEND}else if(t<6432){if(t===6313)return d.CLUSTER_BREAK.EXTEND}else if(6432<=t&&t<=6434)return d.CLUSTER_BREAK.EXTEND}else if(t<6439){if(6435<=t&&t<=6438)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6441){if(6439<=t&&t<=6440)return d.CLUSTER_BREAK.EXTEND}else if(6441<=t&&t<=6443)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6971){if(t<6744)if(t<6681){if(t<6451){if(t<6450){if(6448<=t&&t<=6449)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===6450)return d.CLUSTER_BREAK.EXTEND}else if(t<6457){if(6451<=t&&t<=6456)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6679){if(6457<=t&&t<=6459)return d.CLUSTER_BREAK.EXTEND}else if(6679<=t&&t<=6680)return d.CLUSTER_BREAK.EXTEND}else if(t<6741){if(t<6683){if(6681<=t&&t<=6682)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===6683)return d.CLUSTER_BREAK.EXTEND}else if(t<6742){if(t===6741)return d.CLUSTER_BREAK.SPACINGMARK}else{if(t===6742)return d.CLUSTER_BREAK.EXTEND;if(t===6743)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6771){if(t<6754){if(t<6752){if(6744<=t&&t<=6750)return d.CLUSTER_BREAK.EXTEND}else if(t===6752)return d.CLUSTER_BREAK.EXTEND}else if(t<6757){if(t===6754)return d.CLUSTER_BREAK.EXTEND}else if(t<6765){if(6757<=t&&t<=6764)return d.CLUSTER_BREAK.EXTEND}else if(6765<=t&&t<=6770)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6912){if(t<6783){if(6771<=t&&t<=6780)return d.CLUSTER_BREAK.EXTEND}else if(t<6832){if(t===6783)return d.CLUSTER_BREAK.EXTEND}else if(6832<=t&&t<=6862)return d.CLUSTER_BREAK.EXTEND}else if(t<6916){if(6912<=t&&t<=6915)return d.CLUSTER_BREAK.EXTEND}else if(t<6964){if(t===6916)return d.CLUSTER_BREAK.SPACINGMARK}else if(6964<=t&&t<=6970)return d.CLUSTER_BREAK.EXTEND}else if(t<7080){if(t<7019){if(t<6973){if(t===6971)return d.CLUSTER_BREAK.SPACINGMARK;if(t===6972)return d.CLUSTER_BREAK.EXTEND}else if(t<6978){if(6973<=t&&t<=6977)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<6979){if(t===6978)return d.CLUSTER_BREAK.EXTEND}else if(6979<=t&&t<=6980)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7073){if(t<7040){if(7019<=t&&t<=7027)return d.CLUSTER_BREAK.EXTEND}else if(t<7042){if(7040<=t&&t<=7041)return d.CLUSTER_BREAK.EXTEND}else if(t===7042)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7074){if(t===7073)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7078){if(7074<=t&&t<=7077)return d.CLUSTER_BREAK.EXTEND}else if(7078<=t&&t<=7079)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7144)if(t<7083){if(t<7082){if(7080<=t&&t<=7081)return d.CLUSTER_BREAK.EXTEND}else if(t===7082)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7142){if(7083<=t&&t<=7085)return d.CLUSTER_BREAK.EXTEND}else{if(t===7142)return d.CLUSTER_BREAK.EXTEND;if(t===7143)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7150){if(t<7146){if(7144<=t&&t<=7145)return d.CLUSTER_BREAK.EXTEND}else if(t<7149){if(7146<=t&&t<=7148)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===7149)return d.CLUSTER_BREAK.EXTEND}else if(t<7151){if(t===7150)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7154){if(7151<=t&&t<=7153)return d.CLUSTER_BREAK.EXTEND}else if(7154<=t&&t<=7155)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43346){if(t<11647){if(t<7415){if(t<7380){if(t<7220){if(t<7212){if(7204<=t&&t<=7211)return d.CLUSTER_BREAK.SPACINGMARK}else if(7212<=t&&t<=7219)return d.CLUSTER_BREAK.EXTEND}else if(t<7222){if(7220<=t&&t<=7221)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7376){if(7222<=t&&t<=7223)return d.CLUSTER_BREAK.EXTEND}else if(7376<=t&&t<=7378)return d.CLUSTER_BREAK.EXTEND}else if(t<7394){if(t<7393){if(7380<=t&&t<=7392)return d.CLUSTER_BREAK.EXTEND}else if(t===7393)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<7405){if(7394<=t&&t<=7400)return d.CLUSTER_BREAK.EXTEND}else if(t===7405||t===7412)return d.CLUSTER_BREAK.EXTEND}else if(t<8205)if(t<7616){if(t<7416){if(t===7415)return d.CLUSTER_BREAK.SPACINGMARK}else if(7416<=t&&t<=7417)return d.CLUSTER_BREAK.EXTEND}else if(t<8203){if(7616<=t&&t<=7679)return d.CLUSTER_BREAK.EXTEND}else{if(t===8203)return d.CLUSTER_BREAK.CONTROL;if(t===8204)return d.CLUSTER_BREAK.EXTEND}else if(t<8288){if(t<8206){if(t===8205)return d.CLUSTER_BREAK.ZWJ}else if(t<8232){if(8206<=t&&t<=8207)return d.CLUSTER_BREAK.CONTROL}else if(8232<=t&&t<=8238)return d.CLUSTER_BREAK.CONTROL}else if(t<8400){if(8288<=t&&t<=8303)return d.CLUSTER_BREAK.CONTROL}else if(t<11503){if(8400<=t&&t<=8432)return d.CLUSTER_BREAK.EXTEND}else if(11503<=t&&t<=11505)return d.CLUSTER_BREAK.EXTEND}else if(t<43043){if(t<42612){if(t<12330){if(t<11744){if(t===11647)return d.CLUSTER_BREAK.EXTEND}else if(11744<=t&&t<=11775)return d.CLUSTER_BREAK.EXTEND}else if(t<12441){if(12330<=t&&t<=12335)return d.CLUSTER_BREAK.EXTEND}else if(t<42607){if(12441<=t&&t<=12442)return d.CLUSTER_BREAK.EXTEND}else if(42607<=t&&t<=42610)return d.CLUSTER_BREAK.EXTEND}else if(t<43010){if(t<42654){if(42612<=t&&t<=42621)return d.CLUSTER_BREAK.EXTEND}else if(t<42736){if(42654<=t&&t<=42655)return d.CLUSTER_BREAK.EXTEND}else if(42736<=t&&t<=42737)return d.CLUSTER_BREAK.EXTEND}else if(t<43014){if(t===43010)return d.CLUSTER_BREAK.EXTEND}else if(t===43014||t===43019)return d.CLUSTER_BREAK.EXTEND}else if(t<43188){if(t<43047){if(t<43045){if(43043<=t&&t<=43044)return d.CLUSTER_BREAK.SPACINGMARK}else if(43045<=t&&t<=43046)return d.CLUSTER_BREAK.EXTEND}else if(t<43052){if(t===43047)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43136){if(t===43052)return d.CLUSTER_BREAK.EXTEND}else if(43136<=t&&t<=43137)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43263){if(t<43204){if(43188<=t&&t<=43203)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43232){if(43204<=t&&t<=43205)return d.CLUSTER_BREAK.EXTEND}else if(43232<=t&&t<=43249)return d.CLUSTER_BREAK.EXTEND}else if(t<43302){if(t===43263)return d.CLUSTER_BREAK.EXTEND}else if(t<43335){if(43302<=t&&t<=43309)return d.CLUSTER_BREAK.EXTEND}else if(43335<=t&&t<=43345)return d.CLUSTER_BREAK.EXTEND}else if(t<43698){if(t<43493){if(t<43444)if(t<43392){if(t<43360){if(43346<=t&&t<=43347)return d.CLUSTER_BREAK.SPACINGMARK}else if(43360<=t&&t<=43388)return d.CLUSTER_BREAK.L}else if(t<43395){if(43392<=t&&t<=43394)return d.CLUSTER_BREAK.EXTEND}else{if(t===43395)return d.CLUSTER_BREAK.SPACINGMARK;if(t===43443)return d.CLUSTER_BREAK.EXTEND}else if(t<43450){if(t<43446){if(43444<=t&&t<=43445)return d.CLUSTER_BREAK.SPACINGMARK}else if(43446<=t&&t<=43449)return d.CLUSTER_BREAK.EXTEND}else if(t<43452){if(43450<=t&&t<=43451)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43454){if(43452<=t&&t<=43453)return d.CLUSTER_BREAK.EXTEND}else if(43454<=t&&t<=43456)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43573){if(t<43567){if(t<43561){if(t===43493)return d.CLUSTER_BREAK.EXTEND}else if(43561<=t&&t<=43566)return d.CLUSTER_BREAK.EXTEND}else if(t<43569){if(43567<=t&&t<=43568)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43571){if(43569<=t&&t<=43570)return d.CLUSTER_BREAK.EXTEND}else if(43571<=t&&t<=43572)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43597){if(t<43587){if(43573<=t&&t<=43574)return d.CLUSTER_BREAK.EXTEND}else if(t===43587||t===43596)return d.CLUSTER_BREAK.EXTEND}else if(t<43644){if(t===43597)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===43644||t===43696)return d.CLUSTER_BREAK.EXTEND}else if(t<44006){if(t<43756)if(t<43710){if(t<43703){if(43698<=t&&t<=43700)return d.CLUSTER_BREAK.EXTEND}else if(43703<=t&&t<=43704)return d.CLUSTER_BREAK.EXTEND}else if(t<43713){if(43710<=t&&t<=43711)return d.CLUSTER_BREAK.EXTEND}else{if(t===43713)return d.CLUSTER_BREAK.EXTEND;if(t===43755)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<43766){if(t<43758){if(43756<=t&&t<=43757)return d.CLUSTER_BREAK.EXTEND}else if(t<43765){if(43758<=t&&t<=43759)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===43765)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<44003){if(t===43766)return d.CLUSTER_BREAK.EXTEND}else if(t<44005){if(44003<=t&&t<=44004)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===44005)return d.CLUSTER_BREAK.EXTEND}else if(t<44032)if(t<44009){if(t<44008){if(44006<=t&&t<=44007)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===44008)return d.CLUSTER_BREAK.EXTEND}else if(t<44012){if(44009<=t&&t<=44010)return d.CLUSTER_BREAK.SPACINGMARK}else{if(t===44012)return d.CLUSTER_BREAK.SPACINGMARK;if(t===44013)return d.CLUSTER_BREAK.EXTEND}else if(t<44061){if(t<44033){if(t===44032)return d.CLUSTER_BREAK.LV}else if(t<44060){if(44033<=t&&t<=44059)return d.CLUSTER_BREAK.LVT}else if(t===44060)return d.CLUSTER_BREAK.LV}else if(t<44088){if(44061<=t&&t<=44087)return d.CLUSTER_BREAK.LVT}else if(t<44089){if(t===44088)return d.CLUSTER_BREAK.LV}else if(44089<=t&&t<=44115)return d.CLUSTER_BREAK.LVT}else if(t<46497){if(t<45293){if(t<44704){if(t<44397){if(t<44256){if(t<44173){if(t<44144){if(t<44117){if(t===44116)return d.CLUSTER_BREAK.LV}else if(44117<=t&&t<=44143)return d.CLUSTER_BREAK.LVT}else if(t<44145){if(t===44144)return d.CLUSTER_BREAK.LV}else if(t<44172){if(44145<=t&&t<=44171)return d.CLUSTER_BREAK.LVT}else if(t===44172)return d.CLUSTER_BREAK.LV}else if(t<44201){if(t<44200){if(44173<=t&&t<=44199)return d.CLUSTER_BREAK.LVT}else if(t===44200)return d.CLUSTER_BREAK.LV}else if(t<44228){if(44201<=t&&t<=44227)return d.CLUSTER_BREAK.LVT}else if(t<44229){if(t===44228)return d.CLUSTER_BREAK.LV}else if(44229<=t&&t<=44255)return d.CLUSTER_BREAK.LVT}else if(t<44313){if(t<44284){if(t<44257){if(t===44256)return d.CLUSTER_BREAK.LV}else if(44257<=t&&t<=44283)return d.CLUSTER_BREAK.LVT}else if(t<44285){if(t===44284)return d.CLUSTER_BREAK.LV}else if(t<44312){if(44285<=t&&t<=44311)return d.CLUSTER_BREAK.LVT}else if(t===44312)return d.CLUSTER_BREAK.LV}else if(t<44368){if(t<44340){if(44313<=t&&t<=44339)return d.CLUSTER_BREAK.LVT}else if(t<44341){if(t===44340)return d.CLUSTER_BREAK.LV}else if(44341<=t&&t<=44367)return d.CLUSTER_BREAK.LVT}else if(t<44369){if(t===44368)return d.CLUSTER_BREAK.LV}else if(t<44396){if(44369<=t&&t<=44395)return d.CLUSTER_BREAK.LVT}else if(t===44396)return d.CLUSTER_BREAK.LV}else if(t<44537){if(t<44480){if(t<44425){if(t<44424){if(44397<=t&&t<=44423)return d.CLUSTER_BREAK.LVT}else if(t===44424)return d.CLUSTER_BREAK.LV}else if(t<44452){if(44425<=t&&t<=44451)return d.CLUSTER_BREAK.LVT}else if(t<44453){if(t===44452)return d.CLUSTER_BREAK.LV}else if(44453<=t&&t<=44479)return d.CLUSTER_BREAK.LVT}else if(t<44508){if(t<44481){if(t===44480)return d.CLUSTER_BREAK.LV}else if(44481<=t&&t<=44507)return d.CLUSTER_BREAK.LVT}else if(t<44509){if(t===44508)return d.CLUSTER_BREAK.LV}else if(t<44536){if(44509<=t&&t<=44535)return d.CLUSTER_BREAK.LVT}else if(t===44536)return d.CLUSTER_BREAK.LV}else if(t<44620){if(t<44565){if(t<44564){if(44537<=t&&t<=44563)return d.CLUSTER_BREAK.LVT}else if(t===44564)return d.CLUSTER_BREAK.LV}else if(t<44592){if(44565<=t&&t<=44591)return d.CLUSTER_BREAK.LVT}else if(t<44593){if(t===44592)return d.CLUSTER_BREAK.LV}else if(44593<=t&&t<=44619)return d.CLUSTER_BREAK.LVT}else if(t<44649){if(t<44621){if(t===44620)return d.CLUSTER_BREAK.LV}else if(t<44648){if(44621<=t&&t<=44647)return d.CLUSTER_BREAK.LVT}else if(t===44648)return d.CLUSTER_BREAK.LV}else if(t<44676){if(44649<=t&&t<=44675)return d.CLUSTER_BREAK.LVT}else if(t<44677){if(t===44676)return d.CLUSTER_BREAK.LV}else if(44677<=t&&t<=44703)return d.CLUSTER_BREAK.LVT}else if(t<44985){if(t<44844){if(t<44761){if(t<44732){if(t<44705){if(t===44704)return d.CLUSTER_BREAK.LV}else if(44705<=t&&t<=44731)return d.CLUSTER_BREAK.LVT}else if(t<44733){if(t===44732)return d.CLUSTER_BREAK.LV}else if(t<44760){if(44733<=t&&t<=44759)return d.CLUSTER_BREAK.LVT}else if(t===44760)return d.CLUSTER_BREAK.LV}else if(t<44789){if(t<44788){if(44761<=t&&t<=44787)return d.CLUSTER_BREAK.LVT}else if(t===44788)return d.CLUSTER_BREAK.LV}else if(t<44816){if(44789<=t&&t<=44815)return d.CLUSTER_BREAK.LVT}else if(t<44817){if(t===44816)return d.CLUSTER_BREAK.LV}else if(44817<=t&&t<=44843)return d.CLUSTER_BREAK.LVT}else if(t<44901){if(t<44872){if(t<44845){if(t===44844)return d.CLUSTER_BREAK.LV}else if(44845<=t&&t<=44871)return d.CLUSTER_BREAK.LVT}else if(t<44873){if(t===44872)return d.CLUSTER_BREAK.LV}else if(t<44900){if(44873<=t&&t<=44899)return d.CLUSTER_BREAK.LVT}else if(t===44900)return d.CLUSTER_BREAK.LV}else if(t<44956){if(t<44928){if(44901<=t&&t<=44927)return d.CLUSTER_BREAK.LVT}else if(t<44929){if(t===44928)return d.CLUSTER_BREAK.LV}else if(44929<=t&&t<=44955)return d.CLUSTER_BREAK.LVT}else if(t<44957){if(t===44956)return d.CLUSTER_BREAK.LV}else if(t<44984){if(44957<=t&&t<=44983)return d.CLUSTER_BREAK.LVT}else if(t===44984)return d.CLUSTER_BREAK.LV}else if(t<45152){if(t<45068){if(t<45013){if(t<45012){if(44985<=t&&t<=45011)return d.CLUSTER_BREAK.LVT}else if(t===45012)return d.CLUSTER_BREAK.LV}else if(t<45040){if(45013<=t&&t<=45039)return d.CLUSTER_BREAK.LVT}else if(t<45041){if(t===45040)return d.CLUSTER_BREAK.LV}else if(45041<=t&&t<=45067)return d.CLUSTER_BREAK.LVT}else if(t<45097){if(t<45069){if(t===45068)return d.CLUSTER_BREAK.LV}else if(t<45096){if(45069<=t&&t<=45095)return d.CLUSTER_BREAK.LVT}else if(t===45096)return d.CLUSTER_BREAK.LV}else if(t<45124){if(45097<=t&&t<=45123)return d.CLUSTER_BREAK.LVT}else if(t<45125){if(t===45124)return d.CLUSTER_BREAK.LV}else if(45125<=t&&t<=45151)return d.CLUSTER_BREAK.LVT}else if(t<45209){if(t<45180){if(t<45153){if(t===45152)return d.CLUSTER_BREAK.LV}else if(45153<=t&&t<=45179)return d.CLUSTER_BREAK.LVT}else if(t<45181){if(t===45180)return d.CLUSTER_BREAK.LV}else if(t<45208){if(45181<=t&&t<=45207)return d.CLUSTER_BREAK.LVT}else if(t===45208)return d.CLUSTER_BREAK.LV}else if(t<45264){if(t<45236){if(45209<=t&&t<=45235)return d.CLUSTER_BREAK.LVT}else if(t<45237){if(t===45236)return d.CLUSTER_BREAK.LV}else if(45237<=t&&t<=45263)return d.CLUSTER_BREAK.LVT}else if(t<45265){if(t===45264)return d.CLUSTER_BREAK.LV}else if(t<45292){if(45265<=t&&t<=45291)return d.CLUSTER_BREAK.LVT}else if(t===45292)return d.CLUSTER_BREAK.LV}else if(t<45908){if(t<45600){if(t<45433){if(t<45376){if(t<45321){if(t<45320){if(45293<=t&&t<=45319)return d.CLUSTER_BREAK.LVT}else if(t===45320)return d.CLUSTER_BREAK.LV}else if(t<45348){if(45321<=t&&t<=45347)return d.CLUSTER_BREAK.LVT}else if(t<45349){if(t===45348)return d.CLUSTER_BREAK.LV}else if(45349<=t&&t<=45375)return d.CLUSTER_BREAK.LVT}else if(t<45404){if(t<45377){if(t===45376)return d.CLUSTER_BREAK.LV}else if(45377<=t&&t<=45403)return d.CLUSTER_BREAK.LVT}else if(t<45405){if(t===45404)return d.CLUSTER_BREAK.LV}else if(t<45432){if(45405<=t&&t<=45431)return d.CLUSTER_BREAK.LVT}else if(t===45432)return d.CLUSTER_BREAK.LV}else if(t<45516){if(t<45461){if(t<45460){if(45433<=t&&t<=45459)return d.CLUSTER_BREAK.LVT}else if(t===45460)return d.CLUSTER_BREAK.LV}else if(t<45488){if(45461<=t&&t<=45487)return d.CLUSTER_BREAK.LVT}else if(t<45489){if(t===45488)return d.CLUSTER_BREAK.LV}else if(45489<=t&&t<=45515)return d.CLUSTER_BREAK.LVT}else if(t<45545){if(t<45517){if(t===45516)return d.CLUSTER_BREAK.LV}else if(t<45544){if(45517<=t&&t<=45543)return d.CLUSTER_BREAK.LVT}else if(t===45544)return d.CLUSTER_BREAK.LV}else if(t<45572){if(45545<=t&&t<=45571)return d.CLUSTER_BREAK.LVT}else if(t<45573){if(t===45572)return d.CLUSTER_BREAK.LV}else if(45573<=t&&t<=45599)return d.CLUSTER_BREAK.LVT}else if(t<45741){if(t<45657){if(t<45628){if(t<45601){if(t===45600)return d.CLUSTER_BREAK.LV}else if(45601<=t&&t<=45627)return d.CLUSTER_BREAK.LVT}else if(t<45629){if(t===45628)return d.CLUSTER_BREAK.LV}else if(t<45656){if(45629<=t&&t<=45655)return d.CLUSTER_BREAK.LVT}else if(t===45656)return d.CLUSTER_BREAK.LV}else if(t<45712){if(t<45684){if(45657<=t&&t<=45683)return d.CLUSTER_BREAK.LVT}else if(t<45685){if(t===45684)return d.CLUSTER_BREAK.LV}else if(45685<=t&&t<=45711)return d.CLUSTER_BREAK.LVT}else if(t<45713){if(t===45712)return d.CLUSTER_BREAK.LV}else if(t<45740){if(45713<=t&&t<=45739)return d.CLUSTER_BREAK.LVT}else if(t===45740)return d.CLUSTER_BREAK.LV}else if(t<45824){if(t<45769){if(t<45768){if(45741<=t&&t<=45767)return d.CLUSTER_BREAK.LVT}else if(t===45768)return d.CLUSTER_BREAK.LV}else if(t<45796){if(45769<=t&&t<=45795)return d.CLUSTER_BREAK.LVT}else if(t<45797){if(t===45796)return d.CLUSTER_BREAK.LV}else if(45797<=t&&t<=45823)return d.CLUSTER_BREAK.LVT}else if(t<45853){if(t<45825){if(t===45824)return d.CLUSTER_BREAK.LV}else if(t<45852){if(45825<=t&&t<=45851)return d.CLUSTER_BREAK.LVT}else if(t===45852)return d.CLUSTER_BREAK.LV}else if(t<45880){if(45853<=t&&t<=45879)return d.CLUSTER_BREAK.LVT}else if(t<45881){if(t===45880)return d.CLUSTER_BREAK.LV}else if(45881<=t&&t<=45907)return d.CLUSTER_BREAK.LVT}else if(t<46189){if(t<46048){if(t<45965){if(t<45936){if(t<45909){if(t===45908)return d.CLUSTER_BREAK.LV}else if(45909<=t&&t<=45935)return d.CLUSTER_BREAK.LVT}else if(t<45937){if(t===45936)return d.CLUSTER_BREAK.LV}else if(t<45964){if(45937<=t&&t<=45963)return d.CLUSTER_BREAK.LVT}else if(t===45964)return d.CLUSTER_BREAK.LV}else if(t<45993){if(t<45992){if(45965<=t&&t<=45991)return d.CLUSTER_BREAK.LVT}else if(t===45992)return d.CLUSTER_BREAK.LV}else if(t<46020){if(45993<=t&&t<=46019)return d.CLUSTER_BREAK.LVT}else if(t<46021){if(t===46020)return d.CLUSTER_BREAK.LV}else if(46021<=t&&t<=46047)return d.CLUSTER_BREAK.LVT}else if(t<46105){if(t<46076){if(t<46049){if(t===46048)return d.CLUSTER_BREAK.LV}else if(46049<=t&&t<=46075)return d.CLUSTER_BREAK.LVT}else if(t<46077){if(t===46076)return d.CLUSTER_BREAK.LV}else if(t<46104){if(46077<=t&&t<=46103)return d.CLUSTER_BREAK.LVT}else if(t===46104)return d.CLUSTER_BREAK.LV}else if(t<46160){if(t<46132){if(46105<=t&&t<=46131)return d.CLUSTER_BREAK.LVT}else if(t<46133){if(t===46132)return d.CLUSTER_BREAK.LV}else if(46133<=t&&t<=46159)return d.CLUSTER_BREAK.LVT}else if(t<46161){if(t===46160)return d.CLUSTER_BREAK.LV}else if(t<46188){if(46161<=t&&t<=46187)return d.CLUSTER_BREAK.LVT}else if(t===46188)return d.CLUSTER_BREAK.LV}else if(t<46356){if(t<46272){if(t<46217){if(t<46216){if(46189<=t&&t<=46215)return d.CLUSTER_BREAK.LVT}else if(t===46216)return d.CLUSTER_BREAK.LV}else if(t<46244){if(46217<=t&&t<=46243)return d.CLUSTER_BREAK.LVT}else if(t<46245){if(t===46244)return d.CLUSTER_BREAK.LV}else if(46245<=t&&t<=46271)return d.CLUSTER_BREAK.LVT}else if(t<46301){if(t<46273){if(t===46272)return d.CLUSTER_BREAK.LV}else if(t<46300){if(46273<=t&&t<=46299)return d.CLUSTER_BREAK.LVT}else if(t===46300)return d.CLUSTER_BREAK.LV}else if(t<46328){if(46301<=t&&t<=46327)return d.CLUSTER_BREAK.LVT}else if(t<46329){if(t===46328)return d.CLUSTER_BREAK.LV}else if(46329<=t&&t<=46355)return d.CLUSTER_BREAK.LVT}else if(t<46413){if(t<46384){if(t<46357){if(t===46356)return d.CLUSTER_BREAK.LV}else if(46357<=t&&t<=46383)return d.CLUSTER_BREAK.LVT}else if(t<46385){if(t===46384)return d.CLUSTER_BREAK.LV}else if(t<46412){if(46385<=t&&t<=46411)return d.CLUSTER_BREAK.LVT}else if(t===46412)return d.CLUSTER_BREAK.LV}else if(t<46468){if(t<46440){if(46413<=t&&t<=46439)return d.CLUSTER_BREAK.LVT}else if(t<46441){if(t===46440)return d.CLUSTER_BREAK.LV}else if(46441<=t&&t<=46467)return d.CLUSTER_BREAK.LVT}else if(t<46469){if(t===46468)return d.CLUSTER_BREAK.LV}else if(t<46496){if(46469<=t&&t<=46495)return d.CLUSTER_BREAK.LVT}else if(t===46496)return d.CLUSTER_BREAK.LV}else if(t<47701){if(t<47112){if(t<46804){if(t<46637){if(t<46580){if(t<46525){if(t<46524){if(46497<=t&&t<=46523)return d.CLUSTER_BREAK.LVT}else if(t===46524)return d.CLUSTER_BREAK.LV}else if(t<46552){if(46525<=t&&t<=46551)return d.CLUSTER_BREAK.LVT}else if(t<46553){if(t===46552)return d.CLUSTER_BREAK.LV}else if(46553<=t&&t<=46579)return d.CLUSTER_BREAK.LVT}else if(t<46608){if(t<46581){if(t===46580)return d.CLUSTER_BREAK.LV}else if(46581<=t&&t<=46607)return d.CLUSTER_BREAK.LVT}else if(t<46609){if(t===46608)return d.CLUSTER_BREAK.LV}else if(t<46636){if(46609<=t&&t<=46635)return d.CLUSTER_BREAK.LVT}else if(t===46636)return d.CLUSTER_BREAK.LV}else if(t<46720){if(t<46665){if(t<46664){if(46637<=t&&t<=46663)return d.CLUSTER_BREAK.LVT}else if(t===46664)return d.CLUSTER_BREAK.LV}else if(t<46692){if(46665<=t&&t<=46691)return d.CLUSTER_BREAK.LVT}else if(t<46693){if(t===46692)return d.CLUSTER_BREAK.LV}else if(46693<=t&&t<=46719)return d.CLUSTER_BREAK.LVT}else if(t<46749){if(t<46721){if(t===46720)return d.CLUSTER_BREAK.LV}else if(t<46748){if(46721<=t&&t<=46747)return d.CLUSTER_BREAK.LVT}else if(t===46748)return d.CLUSTER_BREAK.LV}else if(t<46776){if(46749<=t&&t<=46775)return d.CLUSTER_BREAK.LVT}else if(t<46777){if(t===46776)return d.CLUSTER_BREAK.LV}else if(46777<=t&&t<=46803)return d.CLUSTER_BREAK.LVT}else if(t<46945){if(t<46861){if(t<46832){if(t<46805){if(t===46804)return d.CLUSTER_BREAK.LV}else if(46805<=t&&t<=46831)return d.CLUSTER_BREAK.LVT}else if(t<46833){if(t===46832)return d.CLUSTER_BREAK.LV}else if(t<46860){if(46833<=t&&t<=46859)return d.CLUSTER_BREAK.LVT}else if(t===46860)return d.CLUSTER_BREAK.LV}else if(t<46916){if(t<46888){if(46861<=t&&t<=46887)return d.CLUSTER_BREAK.LVT}else if(t<46889){if(t===46888)return d.CLUSTER_BREAK.LV}else if(46889<=t&&t<=46915)return d.CLUSTER_BREAK.LVT}else if(t<46917){if(t===46916)return d.CLUSTER_BREAK.LV}else if(t<46944){if(46917<=t&&t<=46943)return d.CLUSTER_BREAK.LVT}else if(t===46944)return d.CLUSTER_BREAK.LV}else if(t<47028){if(t<46973){if(t<46972){if(46945<=t&&t<=46971)return d.CLUSTER_BREAK.LVT}else if(t===46972)return d.CLUSTER_BREAK.LV}else if(t<47e3){if(46973<=t&&t<=46999)return d.CLUSTER_BREAK.LVT}else if(t<47001){if(t===47e3)return d.CLUSTER_BREAK.LV}else if(47001<=t&&t<=47027)return d.CLUSTER_BREAK.LVT}else if(t<47057){if(t<47029){if(t===47028)return d.CLUSTER_BREAK.LV}else if(t<47056){if(47029<=t&&t<=47055)return d.CLUSTER_BREAK.LVT}else if(t===47056)return d.CLUSTER_BREAK.LV}else if(t<47084){if(47057<=t&&t<=47083)return d.CLUSTER_BREAK.LVT}else if(t<47085){if(t===47084)return d.CLUSTER_BREAK.LV}else if(47085<=t&&t<=47111)return d.CLUSTER_BREAK.LVT}else if(t<47393){if(t<47252){if(t<47169){if(t<47140){if(t<47113){if(t===47112)return d.CLUSTER_BREAK.LV}else if(47113<=t&&t<=47139)return d.CLUSTER_BREAK.LVT}else if(t<47141){if(t===47140)return d.CLUSTER_BREAK.LV}else if(t<47168){if(47141<=t&&t<=47167)return d.CLUSTER_BREAK.LVT}else if(t===47168)return d.CLUSTER_BREAK.LV}else if(t<47197){if(t<47196){if(47169<=t&&t<=47195)return d.CLUSTER_BREAK.LVT}else if(t===47196)return d.CLUSTER_BREAK.LV}else if(t<47224){if(47197<=t&&t<=47223)return d.CLUSTER_BREAK.LVT}else if(t<47225){if(t===47224)return d.CLUSTER_BREAK.LV}else if(47225<=t&&t<=47251)return d.CLUSTER_BREAK.LVT}else if(t<47309){if(t<47280){if(t<47253){if(t===47252)return d.CLUSTER_BREAK.LV}else if(47253<=t&&t<=47279)return d.CLUSTER_BREAK.LVT}else if(t<47281){if(t===47280)return d.CLUSTER_BREAK.LV}else if(t<47308){if(47281<=t&&t<=47307)return d.CLUSTER_BREAK.LVT}else if(t===47308)return d.CLUSTER_BREAK.LV}else if(t<47364){if(t<47336){if(47309<=t&&t<=47335)return d.CLUSTER_BREAK.LVT}else if(t<47337){if(t===47336)return d.CLUSTER_BREAK.LV}else if(47337<=t&&t<=47363)return d.CLUSTER_BREAK.LVT}else if(t<47365){if(t===47364)return d.CLUSTER_BREAK.LV}else if(t<47392){if(47365<=t&&t<=47391)return d.CLUSTER_BREAK.LVT}else if(t===47392)return d.CLUSTER_BREAK.LV}else if(t<47560){if(t<47476){if(t<47421){if(t<47420){if(47393<=t&&t<=47419)return d.CLUSTER_BREAK.LVT}else if(t===47420)return d.CLUSTER_BREAK.LV}else if(t<47448){if(47421<=t&&t<=47447)return d.CLUSTER_BREAK.LVT}else if(t<47449){if(t===47448)return d.CLUSTER_BREAK.LV}else if(47449<=t&&t<=47475)return d.CLUSTER_BREAK.LVT}else if(t<47505){if(t<47477){if(t===47476)return d.CLUSTER_BREAK.LV}else if(t<47504){if(47477<=t&&t<=47503)return d.CLUSTER_BREAK.LVT}else if(t===47504)return d.CLUSTER_BREAK.LV}else if(t<47532){if(47505<=t&&t<=47531)return d.CLUSTER_BREAK.LVT}else if(t<47533){if(t===47532)return d.CLUSTER_BREAK.LV}else if(47533<=t&&t<=47559)return d.CLUSTER_BREAK.LVT}else if(t<47617){if(t<47588){if(t<47561){if(t===47560)return d.CLUSTER_BREAK.LV}else if(47561<=t&&t<=47587)return d.CLUSTER_BREAK.LVT}else if(t<47589){if(t===47588)return d.CLUSTER_BREAK.LV}else if(t<47616){if(47589<=t&&t<=47615)return d.CLUSTER_BREAK.LVT}else if(t===47616)return d.CLUSTER_BREAK.LV}else if(t<47672){if(t<47644){if(47617<=t&&t<=47643)return d.CLUSTER_BREAK.LVT}else if(t<47645){if(t===47644)return d.CLUSTER_BREAK.LV}else if(47645<=t&&t<=47671)return d.CLUSTER_BREAK.LVT}else if(t<47673){if(t===47672)return d.CLUSTER_BREAK.LV}else if(t<47700){if(47673<=t&&t<=47699)return d.CLUSTER_BREAK.LVT}else if(t===47700)return d.CLUSTER_BREAK.LV}else if(t<48316){if(t<48008){if(t<47841){if(t<47784){if(t<47729){if(t<47728){if(47701<=t&&t<=47727)return d.CLUSTER_BREAK.LVT}else if(t===47728)return d.CLUSTER_BREAK.LV}else if(t<47756){if(47729<=t&&t<=47755)return d.CLUSTER_BREAK.LVT}else if(t<47757){if(t===47756)return d.CLUSTER_BREAK.LV}else if(47757<=t&&t<=47783)return d.CLUSTER_BREAK.LVT}else if(t<47812){if(t<47785){if(t===47784)return d.CLUSTER_BREAK.LV}else if(47785<=t&&t<=47811)return d.CLUSTER_BREAK.LVT}else if(t<47813){if(t===47812)return d.CLUSTER_BREAK.LV}else if(t<47840){if(47813<=t&&t<=47839)return d.CLUSTER_BREAK.LVT}else if(t===47840)return d.CLUSTER_BREAK.LV}else if(t<47924){if(t<47869){if(t<47868){if(47841<=t&&t<=47867)return d.CLUSTER_BREAK.LVT}else if(t===47868)return d.CLUSTER_BREAK.LV}else if(t<47896){if(47869<=t&&t<=47895)return d.CLUSTER_BREAK.LVT}else if(t<47897){if(t===47896)return d.CLUSTER_BREAK.LV}else if(47897<=t&&t<=47923)return d.CLUSTER_BREAK.LVT}else if(t<47953){if(t<47925){if(t===47924)return d.CLUSTER_BREAK.LV}else if(t<47952){if(47925<=t&&t<=47951)return d.CLUSTER_BREAK.LVT}else if(t===47952)return d.CLUSTER_BREAK.LV}else if(t<47980){if(47953<=t&&t<=47979)return d.CLUSTER_BREAK.LVT}else if(t<47981){if(t===47980)return d.CLUSTER_BREAK.LV}else if(47981<=t&&t<=48007)return d.CLUSTER_BREAK.LVT}else if(t<48149){if(t<48065){if(t<48036){if(t<48009){if(t===48008)return d.CLUSTER_BREAK.LV}else if(48009<=t&&t<=48035)return d.CLUSTER_BREAK.LVT}else if(t<48037){if(t===48036)return d.CLUSTER_BREAK.LV}else if(t<48064){if(48037<=t&&t<=48063)return d.CLUSTER_BREAK.LVT}else if(t===48064)return d.CLUSTER_BREAK.LV}else if(t<48120){if(t<48092){if(48065<=t&&t<=48091)return d.CLUSTER_BREAK.LVT}else if(t<48093){if(t===48092)return d.CLUSTER_BREAK.LV}else if(48093<=t&&t<=48119)return d.CLUSTER_BREAK.LVT}else if(t<48121){if(t===48120)return d.CLUSTER_BREAK.LV}else if(t<48148){if(48121<=t&&t<=48147)return d.CLUSTER_BREAK.LVT}else if(t===48148)return d.CLUSTER_BREAK.LV}else if(t<48232){if(t<48177){if(t<48176){if(48149<=t&&t<=48175)return d.CLUSTER_BREAK.LVT}else if(t===48176)return d.CLUSTER_BREAK.LV}else if(t<48204){if(48177<=t&&t<=48203)return d.CLUSTER_BREAK.LVT}else if(t<48205){if(t===48204)return d.CLUSTER_BREAK.LV}else if(48205<=t&&t<=48231)return d.CLUSTER_BREAK.LVT}else if(t<48261){if(t<48233){if(t===48232)return d.CLUSTER_BREAK.LV}else if(t<48260){if(48233<=t&&t<=48259)return d.CLUSTER_BREAK.LVT}else if(t===48260)return d.CLUSTER_BREAK.LV}else if(t<48288){if(48261<=t&&t<=48287)return d.CLUSTER_BREAK.LVT}else if(t<48289){if(t===48288)return d.CLUSTER_BREAK.LV}else if(48289<=t&&t<=48315)return d.CLUSTER_BREAK.LVT}else if(t<48597){if(t<48456){if(t<48373){if(t<48344){if(t<48317){if(t===48316)return d.CLUSTER_BREAK.LV}else if(48317<=t&&t<=48343)return d.CLUSTER_BREAK.LVT}else if(t<48345){if(t===48344)return d.CLUSTER_BREAK.LV}else if(t<48372){if(48345<=t&&t<=48371)return d.CLUSTER_BREAK.LVT}else if(t===48372)return d.CLUSTER_BREAK.LV}else if(t<48401){if(t<48400){if(48373<=t&&t<=48399)return d.CLUSTER_BREAK.LVT}else if(t===48400)return d.CLUSTER_BREAK.LV}else if(t<48428){if(48401<=t&&t<=48427)return d.CLUSTER_BREAK.LVT}else if(t<48429){if(t===48428)return d.CLUSTER_BREAK.LV}else if(48429<=t&&t<=48455)return d.CLUSTER_BREAK.LVT}else if(t<48513){if(t<48484){if(t<48457){if(t===48456)return d.CLUSTER_BREAK.LV}else if(48457<=t&&t<=48483)return d.CLUSTER_BREAK.LVT}else if(t<48485){if(t===48484)return d.CLUSTER_BREAK.LV}else if(t<48512){if(48485<=t&&t<=48511)return d.CLUSTER_BREAK.LVT}else if(t===48512)return d.CLUSTER_BREAK.LV}else if(t<48568){if(t<48540){if(48513<=t&&t<=48539)return d.CLUSTER_BREAK.LVT}else if(t<48541){if(t===48540)return d.CLUSTER_BREAK.LV}else if(48541<=t&&t<=48567)return d.CLUSTER_BREAK.LVT}else if(t<48569){if(t===48568)return d.CLUSTER_BREAK.LV}else if(t<48596){if(48569<=t&&t<=48595)return d.CLUSTER_BREAK.LVT}else if(t===48596)return d.CLUSTER_BREAK.LV}else if(t<48764){if(t<48680){if(t<48625){if(t<48624){if(48597<=t&&t<=48623)return d.CLUSTER_BREAK.LVT}else if(t===48624)return d.CLUSTER_BREAK.LV}else if(t<48652){if(48625<=t&&t<=48651)return d.CLUSTER_BREAK.LVT}else if(t<48653){if(t===48652)return d.CLUSTER_BREAK.LV}else if(48653<=t&&t<=48679)return d.CLUSTER_BREAK.LVT}else if(t<48709){if(t<48681){if(t===48680)return d.CLUSTER_BREAK.LV}else if(t<48708){if(48681<=t&&t<=48707)return d.CLUSTER_BREAK.LVT}else if(t===48708)return d.CLUSTER_BREAK.LV}else if(t<48736){if(48709<=t&&t<=48735)return d.CLUSTER_BREAK.LVT}else if(t<48737){if(t===48736)return d.CLUSTER_BREAK.LV}else if(48737<=t&&t<=48763)return d.CLUSTER_BREAK.LVT}else if(t<48821){if(t<48792){if(t<48765){if(t===48764)return d.CLUSTER_BREAK.LV}else if(48765<=t&&t<=48791)return d.CLUSTER_BREAK.LVT}else if(t<48793){if(t===48792)return d.CLUSTER_BREAK.LV}else if(t<48820){if(48793<=t&&t<=48819)return d.CLUSTER_BREAK.LVT}else if(t===48820)return d.CLUSTER_BREAK.LV}else if(t<48876){if(t<48848){if(48821<=t&&t<=48847)return d.CLUSTER_BREAK.LVT}else if(t<48849){if(t===48848)return d.CLUSTER_BREAK.LV}else if(48849<=t&&t<=48875)return d.CLUSTER_BREAK.LVT}else if(t<48877){if(t===48876)return d.CLUSTER_BREAK.LV}else if(t<48904){if(48877<=t&&t<=48903)return d.CLUSTER_BREAK.LVT}else if(t===48904)return d.CLUSTER_BREAK.LV}else if(t<53720){if(t<51312){if(t<50108){if(t<49493){if(t<49212){if(t<49045){if(t<48988){if(t<48933){if(t<48932){if(48905<=t&&t<=48931)return d.CLUSTER_BREAK.LVT}else if(t===48932)return d.CLUSTER_BREAK.LV}else if(t<48960){if(48933<=t&&t<=48959)return d.CLUSTER_BREAK.LVT}else if(t<48961){if(t===48960)return d.CLUSTER_BREAK.LV}else if(48961<=t&&t<=48987)return d.CLUSTER_BREAK.LVT}else if(t<49016){if(t<48989){if(t===48988)return d.CLUSTER_BREAK.LV}else if(48989<=t&&t<=49015)return d.CLUSTER_BREAK.LVT}else if(t<49017){if(t===49016)return d.CLUSTER_BREAK.LV}else if(t<49044){if(49017<=t&&t<=49043)return d.CLUSTER_BREAK.LVT}else if(t===49044)return d.CLUSTER_BREAK.LV}else if(t<49128){if(t<49073){if(t<49072){if(49045<=t&&t<=49071)return d.CLUSTER_BREAK.LVT}else if(t===49072)return d.CLUSTER_BREAK.LV}else if(t<49100){if(49073<=t&&t<=49099)return d.CLUSTER_BREAK.LVT}else if(t<49101){if(t===49100)return d.CLUSTER_BREAK.LV}else if(49101<=t&&t<=49127)return d.CLUSTER_BREAK.LVT}else if(t<49157){if(t<49129){if(t===49128)return d.CLUSTER_BREAK.LV}else if(t<49156){if(49129<=t&&t<=49155)return d.CLUSTER_BREAK.LVT}else if(t===49156)return d.CLUSTER_BREAK.LV}else if(t<49184){if(49157<=t&&t<=49183)return d.CLUSTER_BREAK.LVT}else if(t<49185){if(t===49184)return d.CLUSTER_BREAK.LV}else if(49185<=t&&t<=49211)return d.CLUSTER_BREAK.LVT}else if(t<49352){if(t<49269){if(t<49240){if(t<49213){if(t===49212)return d.CLUSTER_BREAK.LV}else if(49213<=t&&t<=49239)return d.CLUSTER_BREAK.LVT}else if(t<49241){if(t===49240)return d.CLUSTER_BREAK.LV}else if(t<49268){if(49241<=t&&t<=49267)return d.CLUSTER_BREAK.LVT}else if(t===49268)return d.CLUSTER_BREAK.LV}else if(t<49297){if(t<49296){if(49269<=t&&t<=49295)return d.CLUSTER_BREAK.LVT}else if(t===49296)return d.CLUSTER_BREAK.LV}else if(t<49324){if(49297<=t&&t<=49323)return d.CLUSTER_BREAK.LVT}else if(t<49325){if(t===49324)return d.CLUSTER_BREAK.LV}else if(49325<=t&&t<=49351)return d.CLUSTER_BREAK.LVT}else if(t<49409){if(t<49380){if(t<49353){if(t===49352)return d.CLUSTER_BREAK.LV}else if(49353<=t&&t<=49379)return d.CLUSTER_BREAK.LVT}else if(t<49381){if(t===49380)return d.CLUSTER_BREAK.LV}else if(t<49408){if(49381<=t&&t<=49407)return d.CLUSTER_BREAK.LVT}else if(t===49408)return d.CLUSTER_BREAK.LV}else if(t<49464){if(t<49436){if(49409<=t&&t<=49435)return d.CLUSTER_BREAK.LVT}else if(t<49437){if(t===49436)return d.CLUSTER_BREAK.LV}else if(49437<=t&&t<=49463)return d.CLUSTER_BREAK.LVT}else if(t<49465){if(t===49464)return d.CLUSTER_BREAK.LV}else if(t<49492){if(49465<=t&&t<=49491)return d.CLUSTER_BREAK.LVT}else if(t===49492)return d.CLUSTER_BREAK.LV}else if(t<49800){if(t<49633){if(t<49576){if(t<49521){if(t<49520){if(49493<=t&&t<=49519)return d.CLUSTER_BREAK.LVT}else if(t===49520)return d.CLUSTER_BREAK.LV}else if(t<49548){if(49521<=t&&t<=49547)return d.CLUSTER_BREAK.LVT}else if(t<49549){if(t===49548)return d.CLUSTER_BREAK.LV}else if(49549<=t&&t<=49575)return d.CLUSTER_BREAK.LVT}else if(t<49604){if(t<49577){if(t===49576)return d.CLUSTER_BREAK.LV}else if(49577<=t&&t<=49603)return d.CLUSTER_BREAK.LVT}else if(t<49605){if(t===49604)return d.CLUSTER_BREAK.LV}else if(t<49632){if(49605<=t&&t<=49631)return d.CLUSTER_BREAK.LVT}else if(t===49632)return d.CLUSTER_BREAK.LV}else if(t<49716){if(t<49661){if(t<49660){if(49633<=t&&t<=49659)return d.CLUSTER_BREAK.LVT}else if(t===49660)return d.CLUSTER_BREAK.LV}else if(t<49688){if(49661<=t&&t<=49687)return d.CLUSTER_BREAK.LVT}else if(t<49689){if(t===49688)return d.CLUSTER_BREAK.LV}else if(49689<=t&&t<=49715)return d.CLUSTER_BREAK.LVT}else if(t<49745){if(t<49717){if(t===49716)return d.CLUSTER_BREAK.LV}else if(t<49744){if(49717<=t&&t<=49743)return d.CLUSTER_BREAK.LVT}else if(t===49744)return d.CLUSTER_BREAK.LV}else if(t<49772){if(49745<=t&&t<=49771)return d.CLUSTER_BREAK.LVT}else if(t<49773){if(t===49772)return d.CLUSTER_BREAK.LV}else if(49773<=t&&t<=49799)return d.CLUSTER_BREAK.LVT}else if(t<49941){if(t<49857){if(t<49828){if(t<49801){if(t===49800)return d.CLUSTER_BREAK.LV}else if(49801<=t&&t<=49827)return d.CLUSTER_BREAK.LVT}else if(t<49829){if(t===49828)return d.CLUSTER_BREAK.LV}else if(t<49856){if(49829<=t&&t<=49855)return d.CLUSTER_BREAK.LVT}else if(t===49856)return d.CLUSTER_BREAK.LV}else if(t<49912){if(t<49884){if(49857<=t&&t<=49883)return d.CLUSTER_BREAK.LVT}else if(t<49885){if(t===49884)return d.CLUSTER_BREAK.LV}else if(49885<=t&&t<=49911)return d.CLUSTER_BREAK.LVT}else if(t<49913){if(t===49912)return d.CLUSTER_BREAK.LV}else if(t<49940){if(49913<=t&&t<=49939)return d.CLUSTER_BREAK.LVT}else if(t===49940)return d.CLUSTER_BREAK.LV}else if(t<50024){if(t<49969){if(t<49968){if(49941<=t&&t<=49967)return d.CLUSTER_BREAK.LVT}else if(t===49968)return d.CLUSTER_BREAK.LV}else if(t<49996){if(49969<=t&&t<=49995)return d.CLUSTER_BREAK.LVT}else if(t<49997){if(t===49996)return d.CLUSTER_BREAK.LV}else if(49997<=t&&t<=50023)return d.CLUSTER_BREAK.LVT}else if(t<50053){if(t<50025){if(t===50024)return d.CLUSTER_BREAK.LV}else if(t<50052){if(50025<=t&&t<=50051)return d.CLUSTER_BREAK.LVT}else if(t===50052)return d.CLUSTER_BREAK.LV}else if(t<50080){if(50053<=t&&t<=50079)return d.CLUSTER_BREAK.LVT}else if(t<50081){if(t===50080)return d.CLUSTER_BREAK.LV}else if(50081<=t&&t<=50107)return d.CLUSTER_BREAK.LVT}else if(t<50697){if(t<50389){if(t<50248){if(t<50165){if(t<50136){if(t<50109){if(t===50108)return d.CLUSTER_BREAK.LV}else if(50109<=t&&t<=50135)return d.CLUSTER_BREAK.LVT}else if(t<50137){if(t===50136)return d.CLUSTER_BREAK.LV}else if(t<50164){if(50137<=t&&t<=50163)return d.CLUSTER_BREAK.LVT}else if(t===50164)return d.CLUSTER_BREAK.LV}else if(t<50193){if(t<50192){if(50165<=t&&t<=50191)return d.CLUSTER_BREAK.LVT}else if(t===50192)return d.CLUSTER_BREAK.LV}else if(t<50220){if(50193<=t&&t<=50219)return d.CLUSTER_BREAK.LVT}else if(t<50221){if(t===50220)return d.CLUSTER_BREAK.LV}else if(50221<=t&&t<=50247)return d.CLUSTER_BREAK.LVT}else if(t<50305){if(t<50276){if(t<50249){if(t===50248)return d.CLUSTER_BREAK.LV}else if(50249<=t&&t<=50275)return d.CLUSTER_BREAK.LVT}else if(t<50277){if(t===50276)return d.CLUSTER_BREAK.LV}else if(t<50304){if(50277<=t&&t<=50303)return d.CLUSTER_BREAK.LVT}else if(t===50304)return d.CLUSTER_BREAK.LV}else if(t<50360){if(t<50332){if(50305<=t&&t<=50331)return d.CLUSTER_BREAK.LVT}else if(t<50333){if(t===50332)return d.CLUSTER_BREAK.LV}else if(50333<=t&&t<=50359)return d.CLUSTER_BREAK.LVT}else if(t<50361){if(t===50360)return d.CLUSTER_BREAK.LV}else if(t<50388){if(50361<=t&&t<=50387)return d.CLUSTER_BREAK.LVT}else if(t===50388)return d.CLUSTER_BREAK.LV}else if(t<50556){if(t<50472){if(t<50417){if(t<50416){if(50389<=t&&t<=50415)return d.CLUSTER_BREAK.LVT}else if(t===50416)return d.CLUSTER_BREAK.LV}else if(t<50444){if(50417<=t&&t<=50443)return d.CLUSTER_BREAK.LVT}else if(t<50445){if(t===50444)return d.CLUSTER_BREAK.LV}else if(50445<=t&&t<=50471)return d.CLUSTER_BREAK.LVT}else if(t<50501){if(t<50473){if(t===50472)return d.CLUSTER_BREAK.LV}else if(t<50500){if(50473<=t&&t<=50499)return d.CLUSTER_BREAK.LVT}else if(t===50500)return d.CLUSTER_BREAK.LV}else if(t<50528){if(50501<=t&&t<=50527)return d.CLUSTER_BREAK.LVT}else if(t<50529){if(t===50528)return d.CLUSTER_BREAK.LV}else if(50529<=t&&t<=50555)return d.CLUSTER_BREAK.LVT}else if(t<50613){if(t<50584){if(t<50557){if(t===50556)return d.CLUSTER_BREAK.LV}else if(50557<=t&&t<=50583)return d.CLUSTER_BREAK.LVT}else if(t<50585){if(t===50584)return d.CLUSTER_BREAK.LV}else if(t<50612){if(50585<=t&&t<=50611)return d.CLUSTER_BREAK.LVT}else if(t===50612)return d.CLUSTER_BREAK.LV}else if(t<50668){if(t<50640){if(50613<=t&&t<=50639)return d.CLUSTER_BREAK.LVT}else if(t<50641){if(t===50640)return d.CLUSTER_BREAK.LV}else if(50641<=t&&t<=50667)return d.CLUSTER_BREAK.LVT}else if(t<50669){if(t===50668)return d.CLUSTER_BREAK.LV}else if(t<50696){if(50669<=t&&t<=50695)return d.CLUSTER_BREAK.LVT}else if(t===50696)return d.CLUSTER_BREAK.LV}else if(t<51004){if(t<50837){if(t<50780){if(t<50725){if(t<50724){if(50697<=t&&t<=50723)return d.CLUSTER_BREAK.LVT}else if(t===50724)return d.CLUSTER_BREAK.LV}else if(t<50752){if(50725<=t&&t<=50751)return d.CLUSTER_BREAK.LVT}else if(t<50753){if(t===50752)return d.CLUSTER_BREAK.LV}else if(50753<=t&&t<=50779)return d.CLUSTER_BREAK.LVT}else if(t<50808){if(t<50781){if(t===50780)return d.CLUSTER_BREAK.LV}else if(50781<=t&&t<=50807)return d.CLUSTER_BREAK.LVT}else if(t<50809){if(t===50808)return d.CLUSTER_BREAK.LV}else if(t<50836){if(50809<=t&&t<=50835)return d.CLUSTER_BREAK.LVT}else if(t===50836)return d.CLUSTER_BREAK.LV}else if(t<50920){if(t<50865){if(t<50864){if(50837<=t&&t<=50863)return d.CLUSTER_BREAK.LVT}else if(t===50864)return d.CLUSTER_BREAK.LV}else if(t<50892){if(50865<=t&&t<=50891)return d.CLUSTER_BREAK.LVT}else if(t<50893){if(t===50892)return d.CLUSTER_BREAK.LV}else if(50893<=t&&t<=50919)return d.CLUSTER_BREAK.LVT}else if(t<50949){if(t<50921){if(t===50920)return d.CLUSTER_BREAK.LV}else if(t<50948){if(50921<=t&&t<=50947)return d.CLUSTER_BREAK.LVT}else if(t===50948)return d.CLUSTER_BREAK.LV}else if(t<50976){if(50949<=t&&t<=50975)return d.CLUSTER_BREAK.LVT}else if(t<50977){if(t===50976)return d.CLUSTER_BREAK.LV}else if(50977<=t&&t<=51003)return d.CLUSTER_BREAK.LVT}else if(t<51145){if(t<51061){if(t<51032){if(t<51005){if(t===51004)return d.CLUSTER_BREAK.LV}else if(51005<=t&&t<=51031)return d.CLUSTER_BREAK.LVT}else if(t<51033){if(t===51032)return d.CLUSTER_BREAK.LV}else if(t<51060){if(51033<=t&&t<=51059)return d.CLUSTER_BREAK.LVT}else if(t===51060)return d.CLUSTER_BREAK.LV}else if(t<51116){if(t<51088){if(51061<=t&&t<=51087)return d.CLUSTER_BREAK.LVT}else if(t<51089){if(t===51088)return d.CLUSTER_BREAK.LV}else if(51089<=t&&t<=51115)return d.CLUSTER_BREAK.LVT}else if(t<51117){if(t===51116)return d.CLUSTER_BREAK.LV}else if(t<51144){if(51117<=t&&t<=51143)return d.CLUSTER_BREAK.LVT}else if(t===51144)return d.CLUSTER_BREAK.LV}else if(t<51228){if(t<51173){if(t<51172){if(51145<=t&&t<=51171)return d.CLUSTER_BREAK.LVT}else if(t===51172)return d.CLUSTER_BREAK.LV}else if(t<51200){if(51173<=t&&t<=51199)return d.CLUSTER_BREAK.LVT}else if(t<51201){if(t===51200)return d.CLUSTER_BREAK.LV}else if(51201<=t&&t<=51227)return d.CLUSTER_BREAK.LVT}else if(t<51257){if(t<51229){if(t===51228)return d.CLUSTER_BREAK.LV}else if(t<51256){if(51229<=t&&t<=51255)return d.CLUSTER_BREAK.LVT}else if(t===51256)return d.CLUSTER_BREAK.LV}else if(t<51284){if(51257<=t&&t<=51283)return d.CLUSTER_BREAK.LVT}else if(t<51285){if(t===51284)return d.CLUSTER_BREAK.LV}else if(51285<=t&&t<=51311)return d.CLUSTER_BREAK.LVT}else if(t<52516){if(t<51901){if(t<51593){if(t<51452){if(t<51369){if(t<51340){if(t<51313){if(t===51312)return d.CLUSTER_BREAK.LV}else if(51313<=t&&t<=51339)return d.CLUSTER_BREAK.LVT}else if(t<51341){if(t===51340)return d.CLUSTER_BREAK.LV}else if(t<51368){if(51341<=t&&t<=51367)return d.CLUSTER_BREAK.LVT}else if(t===51368)return d.CLUSTER_BREAK.LV}else if(t<51397){if(t<51396){if(51369<=t&&t<=51395)return d.CLUSTER_BREAK.LVT}else if(t===51396)return d.CLUSTER_BREAK.LV}else if(t<51424){if(51397<=t&&t<=51423)return d.CLUSTER_BREAK.LVT}else if(t<51425){if(t===51424)return d.CLUSTER_BREAK.LV}else if(51425<=t&&t<=51451)return d.CLUSTER_BREAK.LVT}else if(t<51509){if(t<51480){if(t<51453){if(t===51452)return d.CLUSTER_BREAK.LV}else if(51453<=t&&t<=51479)return d.CLUSTER_BREAK.LVT}else if(t<51481){if(t===51480)return d.CLUSTER_BREAK.LV}else if(t<51508){if(51481<=t&&t<=51507)return d.CLUSTER_BREAK.LVT}else if(t===51508)return d.CLUSTER_BREAK.LV}else if(t<51564){if(t<51536){if(51509<=t&&t<=51535)return d.CLUSTER_BREAK.LVT}else if(t<51537){if(t===51536)return d.CLUSTER_BREAK.LV}else if(51537<=t&&t<=51563)return d.CLUSTER_BREAK.LVT}else if(t<51565){if(t===51564)return d.CLUSTER_BREAK.LV}else if(t<51592){if(51565<=t&&t<=51591)return d.CLUSTER_BREAK.LVT}else if(t===51592)return d.CLUSTER_BREAK.LV}else if(t<51760){if(t<51676){if(t<51621){if(t<51620){if(51593<=t&&t<=51619)return d.CLUSTER_BREAK.LVT}else if(t===51620)return d.CLUSTER_BREAK.LV}else if(t<51648){if(51621<=t&&t<=51647)return d.CLUSTER_BREAK.LVT}else if(t<51649){if(t===51648)return d.CLUSTER_BREAK.LV}else if(51649<=t&&t<=51675)return d.CLUSTER_BREAK.LVT}else if(t<51705){if(t<51677){if(t===51676)return d.CLUSTER_BREAK.LV}else if(t<51704){if(51677<=t&&t<=51703)return d.CLUSTER_BREAK.LVT}else if(t===51704)return d.CLUSTER_BREAK.LV}else if(t<51732){if(51705<=t&&t<=51731)return d.CLUSTER_BREAK.LVT}else if(t<51733){if(t===51732)return d.CLUSTER_BREAK.LV}else if(51733<=t&&t<=51759)return d.CLUSTER_BREAK.LVT}else if(t<51817){if(t<51788){if(t<51761){if(t===51760)return d.CLUSTER_BREAK.LV}else if(51761<=t&&t<=51787)return d.CLUSTER_BREAK.LVT}else if(t<51789){if(t===51788)return d.CLUSTER_BREAK.LV}else if(t<51816){if(51789<=t&&t<=51815)return d.CLUSTER_BREAK.LVT}else if(t===51816)return d.CLUSTER_BREAK.LV}else if(t<51872){if(t<51844){if(51817<=t&&t<=51843)return d.CLUSTER_BREAK.LVT}else if(t<51845){if(t===51844)return d.CLUSTER_BREAK.LV}else if(51845<=t&&t<=51871)return d.CLUSTER_BREAK.LVT}else if(t<51873){if(t===51872)return d.CLUSTER_BREAK.LV}else if(t<51900){if(51873<=t&&t<=51899)return d.CLUSTER_BREAK.LVT}else if(t===51900)return d.CLUSTER_BREAK.LV}else if(t<52208){if(t<52041){if(t<51984){if(t<51929){if(t<51928){if(51901<=t&&t<=51927)return d.CLUSTER_BREAK.LVT}else if(t===51928)return d.CLUSTER_BREAK.LV}else if(t<51956){if(51929<=t&&t<=51955)return d.CLUSTER_BREAK.LVT}else if(t<51957){if(t===51956)return d.CLUSTER_BREAK.LV}else if(51957<=t&&t<=51983)return d.CLUSTER_BREAK.LVT}else if(t<52012){if(t<51985){if(t===51984)return d.CLUSTER_BREAK.LV}else if(51985<=t&&t<=52011)return d.CLUSTER_BREAK.LVT}else if(t<52013){if(t===52012)return d.CLUSTER_BREAK.LV}else if(t<52040){if(52013<=t&&t<=52039)return d.CLUSTER_BREAK.LVT}else if(t===52040)return d.CLUSTER_BREAK.LV}else if(t<52124){if(t<52069){if(t<52068){if(52041<=t&&t<=52067)return d.CLUSTER_BREAK.LVT}else if(t===52068)return d.CLUSTER_BREAK.LV}else if(t<52096){if(52069<=t&&t<=52095)return d.CLUSTER_BREAK.LVT}else if(t<52097){if(t===52096)return d.CLUSTER_BREAK.LV}else if(52097<=t&&t<=52123)return d.CLUSTER_BREAK.LVT}else if(t<52153){if(t<52125){if(t===52124)return d.CLUSTER_BREAK.LV}else if(t<52152){if(52125<=t&&t<=52151)return d.CLUSTER_BREAK.LVT}else if(t===52152)return d.CLUSTER_BREAK.LV}else if(t<52180){if(52153<=t&&t<=52179)return d.CLUSTER_BREAK.LVT}else if(t<52181){if(t===52180)return d.CLUSTER_BREAK.LV}else if(52181<=t&&t<=52207)return d.CLUSTER_BREAK.LVT}else if(t<52349){if(t<52265){if(t<52236){if(t<52209){if(t===52208)return d.CLUSTER_BREAK.LV}else if(52209<=t&&t<=52235)return d.CLUSTER_BREAK.LVT}else if(t<52237){if(t===52236)return d.CLUSTER_BREAK.LV}else if(t<52264){if(52237<=t&&t<=52263)return d.CLUSTER_BREAK.LVT}else if(t===52264)return d.CLUSTER_BREAK.LV}else if(t<52320){if(t<52292){if(52265<=t&&t<=52291)return d.CLUSTER_BREAK.LVT}else if(t<52293){if(t===52292)return d.CLUSTER_BREAK.LV}else if(52293<=t&&t<=52319)return d.CLUSTER_BREAK.LVT}else if(t<52321){if(t===52320)return d.CLUSTER_BREAK.LV}else if(t<52348){if(52321<=t&&t<=52347)return d.CLUSTER_BREAK.LVT}else if(t===52348)return d.CLUSTER_BREAK.LV}else if(t<52432){if(t<52377){if(t<52376){if(52349<=t&&t<=52375)return d.CLUSTER_BREAK.LVT}else if(t===52376)return d.CLUSTER_BREAK.LV}else if(t<52404){if(52377<=t&&t<=52403)return d.CLUSTER_BREAK.LVT}else if(t<52405){if(t===52404)return d.CLUSTER_BREAK.LV}else if(52405<=t&&t<=52431)return d.CLUSTER_BREAK.LVT}else if(t<52461){if(t<52433){if(t===52432)return d.CLUSTER_BREAK.LV}else if(t<52460){if(52433<=t&&t<=52459)return d.CLUSTER_BREAK.LVT}else if(t===52460)return d.CLUSTER_BREAK.LV}else if(t<52488){if(52461<=t&&t<=52487)return d.CLUSTER_BREAK.LVT}else if(t<52489){if(t===52488)return d.CLUSTER_BREAK.LV}else if(52489<=t&&t<=52515)return d.CLUSTER_BREAK.LVT}else if(t<53105){if(t<52797){if(t<52656){if(t<52573){if(t<52544){if(t<52517){if(t===52516)return d.CLUSTER_BREAK.LV}else if(52517<=t&&t<=52543)return d.CLUSTER_BREAK.LVT}else if(t<52545){if(t===52544)return d.CLUSTER_BREAK.LV}else if(t<52572){if(52545<=t&&t<=52571)return d.CLUSTER_BREAK.LVT}else if(t===52572)return d.CLUSTER_BREAK.LV}else if(t<52601){if(t<52600){if(52573<=t&&t<=52599)return d.CLUSTER_BREAK.LVT}else if(t===52600)return d.CLUSTER_BREAK.LV}else if(t<52628){if(52601<=t&&t<=52627)return d.CLUSTER_BREAK.LVT}else if(t<52629){if(t===52628)return d.CLUSTER_BREAK.LV}else if(52629<=t&&t<=52655)return d.CLUSTER_BREAK.LVT}else if(t<52713){if(t<52684){if(t<52657){if(t===52656)return d.CLUSTER_BREAK.LV}else if(52657<=t&&t<=52683)return d.CLUSTER_BREAK.LVT}else if(t<52685){if(t===52684)return d.CLUSTER_BREAK.LV}else if(t<52712){if(52685<=t&&t<=52711)return d.CLUSTER_BREAK.LVT}else if(t===52712)return d.CLUSTER_BREAK.LV}else if(t<52768){if(t<52740){if(52713<=t&&t<=52739)return d.CLUSTER_BREAK.LVT}else if(t<52741){if(t===52740)return d.CLUSTER_BREAK.LV}else if(52741<=t&&t<=52767)return d.CLUSTER_BREAK.LVT}else if(t<52769){if(t===52768)return d.CLUSTER_BREAK.LV}else if(t<52796){if(52769<=t&&t<=52795)return d.CLUSTER_BREAK.LVT}else if(t===52796)return d.CLUSTER_BREAK.LV}else if(t<52964){if(t<52880){if(t<52825){if(t<52824){if(52797<=t&&t<=52823)return d.CLUSTER_BREAK.LVT}else if(t===52824)return d.CLUSTER_BREAK.LV}else if(t<52852){if(52825<=t&&t<=52851)return d.CLUSTER_BREAK.LVT}else if(t<52853){if(t===52852)return d.CLUSTER_BREAK.LV}else if(52853<=t&&t<=52879)return d.CLUSTER_BREAK.LVT}else if(t<52909){if(t<52881){if(t===52880)return d.CLUSTER_BREAK.LV}else if(t<52908){if(52881<=t&&t<=52907)return d.CLUSTER_BREAK.LVT}else if(t===52908)return d.CLUSTER_BREAK.LV}else if(t<52936){if(52909<=t&&t<=52935)return d.CLUSTER_BREAK.LVT}else if(t<52937){if(t===52936)return d.CLUSTER_BREAK.LV}else if(52937<=t&&t<=52963)return d.CLUSTER_BREAK.LVT}else if(t<53021){if(t<52992){if(t<52965){if(t===52964)return d.CLUSTER_BREAK.LV}else if(52965<=t&&t<=52991)return d.CLUSTER_BREAK.LVT}else if(t<52993){if(t===52992)return d.CLUSTER_BREAK.LV}else if(t<53020){if(52993<=t&&t<=53019)return d.CLUSTER_BREAK.LVT}else if(t===53020)return d.CLUSTER_BREAK.LV}else if(t<53076){if(t<53048){if(53021<=t&&t<=53047)return d.CLUSTER_BREAK.LVT}else if(t<53049){if(t===53048)return d.CLUSTER_BREAK.LV}else if(53049<=t&&t<=53075)return d.CLUSTER_BREAK.LVT}else if(t<53077){if(t===53076)return d.CLUSTER_BREAK.LV}else if(t<53104){if(53077<=t&&t<=53103)return d.CLUSTER_BREAK.LVT}else if(t===53104)return d.CLUSTER_BREAK.LV}else if(t<53412){if(t<53245){if(t<53188){if(t<53133){if(t<53132){if(53105<=t&&t<=53131)return d.CLUSTER_BREAK.LVT}else if(t===53132)return d.CLUSTER_BREAK.LV}else if(t<53160){if(53133<=t&&t<=53159)return d.CLUSTER_BREAK.LVT}else if(t<53161){if(t===53160)return d.CLUSTER_BREAK.LV}else if(53161<=t&&t<=53187)return d.CLUSTER_BREAK.LVT}else if(t<53216){if(t<53189){if(t===53188)return d.CLUSTER_BREAK.LV}else if(53189<=t&&t<=53215)return d.CLUSTER_BREAK.LVT}else if(t<53217){if(t===53216)return d.CLUSTER_BREAK.LV}else if(t<53244){if(53217<=t&&t<=53243)return d.CLUSTER_BREAK.LVT}else if(t===53244)return d.CLUSTER_BREAK.LV}else if(t<53328){if(t<53273){if(t<53272){if(53245<=t&&t<=53271)return d.CLUSTER_BREAK.LVT}else if(t===53272)return d.CLUSTER_BREAK.LV}else if(t<53300){if(53273<=t&&t<=53299)return d.CLUSTER_BREAK.LVT}else if(t<53301){if(t===53300)return d.CLUSTER_BREAK.LV}else if(53301<=t&&t<=53327)return d.CLUSTER_BREAK.LVT}else if(t<53357){if(t<53329){if(t===53328)return d.CLUSTER_BREAK.LV}else if(t<53356){if(53329<=t&&t<=53355)return d.CLUSTER_BREAK.LVT}else if(t===53356)return d.CLUSTER_BREAK.LV}else if(t<53384){if(53357<=t&&t<=53383)return d.CLUSTER_BREAK.LVT}else if(t<53385){if(t===53384)return d.CLUSTER_BREAK.LV}else if(53385<=t&&t<=53411)return d.CLUSTER_BREAK.LVT}else if(t<53553){if(t<53469){if(t<53440){if(t<53413){if(t===53412)return d.CLUSTER_BREAK.LV}else if(53413<=t&&t<=53439)return d.CLUSTER_BREAK.LVT}else if(t<53441){if(t===53440)return d.CLUSTER_BREAK.LV}else if(t<53468){if(53441<=t&&t<=53467)return d.CLUSTER_BREAK.LVT}else if(t===53468)return d.CLUSTER_BREAK.LV}else if(t<53524){if(t<53496){if(53469<=t&&t<=53495)return d.CLUSTER_BREAK.LVT}else if(t<53497){if(t===53496)return d.CLUSTER_BREAK.LV}else if(53497<=t&&t<=53523)return d.CLUSTER_BREAK.LVT}else if(t<53525){if(t===53524)return d.CLUSTER_BREAK.LV}else if(t<53552){if(53525<=t&&t<=53551)return d.CLUSTER_BREAK.LVT}else if(t===53552)return d.CLUSTER_BREAK.LV}else if(t<53636){if(t<53581){if(t<53580){if(53553<=t&&t<=53579)return d.CLUSTER_BREAK.LVT}else if(t===53580)return d.CLUSTER_BREAK.LV}else if(t<53608){if(53581<=t&&t<=53607)return d.CLUSTER_BREAK.LVT}else if(t<53609){if(t===53608)return d.CLUSTER_BREAK.LV}else if(53609<=t&&t<=53635)return d.CLUSTER_BREAK.LVT}else if(t<53665){if(t<53637){if(t===53636)return d.CLUSTER_BREAK.LV}else if(t<53664){if(53637<=t&&t<=53663)return d.CLUSTER_BREAK.LVT}else if(t===53664)return d.CLUSTER_BREAK.LV}else if(t<53692){if(53665<=t&&t<=53691)return d.CLUSTER_BREAK.LVT}else if(t<53693){if(t===53692)return d.CLUSTER_BREAK.LV}else if(53693<=t&&t<=53719)return d.CLUSTER_BREAK.LVT}else if(t<70459){if(t<54897){if(t<54308){if(t<54001){if(t<53860){if(t<53777){if(t<53748){if(t<53721){if(t===53720)return d.CLUSTER_BREAK.LV}else if(53721<=t&&t<=53747)return d.CLUSTER_BREAK.LVT}else if(t<53749){if(t===53748)return d.CLUSTER_BREAK.LV}else if(t<53776){if(53749<=t&&t<=53775)return d.CLUSTER_BREAK.LVT}else if(t===53776)return d.CLUSTER_BREAK.LV}else if(t<53805){if(t<53804){if(53777<=t&&t<=53803)return d.CLUSTER_BREAK.LVT}else if(t===53804)return d.CLUSTER_BREAK.LV}else if(t<53832){if(53805<=t&&t<=53831)return d.CLUSTER_BREAK.LVT}else if(t<53833){if(t===53832)return d.CLUSTER_BREAK.LV}else if(53833<=t&&t<=53859)return d.CLUSTER_BREAK.LVT}else if(t<53917){if(t<53888){if(t<53861){if(t===53860)return d.CLUSTER_BREAK.LV}else if(53861<=t&&t<=53887)return d.CLUSTER_BREAK.LVT}else if(t<53889){if(t===53888)return d.CLUSTER_BREAK.LV}else if(t<53916){if(53889<=t&&t<=53915)return d.CLUSTER_BREAK.LVT}else if(t===53916)return d.CLUSTER_BREAK.LV}else if(t<53972){if(t<53944){if(53917<=t&&t<=53943)return d.CLUSTER_BREAK.LVT}else if(t<53945){if(t===53944)return d.CLUSTER_BREAK.LV}else if(53945<=t&&t<=53971)return d.CLUSTER_BREAK.LVT}else if(t<53973){if(t===53972)return d.CLUSTER_BREAK.LV}else if(t<54e3){if(53973<=t&&t<=53999)return d.CLUSTER_BREAK.LVT}else if(t===54e3)return d.CLUSTER_BREAK.LV}else if(t<54141){if(t<54084){if(t<54029){if(t<54028){if(54001<=t&&t<=54027)return d.CLUSTER_BREAK.LVT}else if(t===54028)return d.CLUSTER_BREAK.LV}else if(t<54056){if(54029<=t&&t<=54055)return d.CLUSTER_BREAK.LVT}else if(t<54057){if(t===54056)return d.CLUSTER_BREAK.LV}else if(54057<=t&&t<=54083)return d.CLUSTER_BREAK.LVT}else if(t<54112){if(t<54085){if(t===54084)return d.CLUSTER_BREAK.LV}else if(54085<=t&&t<=54111)return d.CLUSTER_BREAK.LVT}else if(t<54113){if(t===54112)return d.CLUSTER_BREAK.LV}else if(t<54140){if(54113<=t&&t<=54139)return d.CLUSTER_BREAK.LVT}else if(t===54140)return d.CLUSTER_BREAK.LV}else if(t<54224){if(t<54169){if(t<54168){if(54141<=t&&t<=54167)return d.CLUSTER_BREAK.LVT}else if(t===54168)return d.CLUSTER_BREAK.LV}else if(t<54196){if(54169<=t&&t<=54195)return d.CLUSTER_BREAK.LVT}else if(t<54197){if(t===54196)return d.CLUSTER_BREAK.LV}else if(54197<=t&&t<=54223)return d.CLUSTER_BREAK.LVT}else if(t<54253){if(t<54225){if(t===54224)return d.CLUSTER_BREAK.LV}else if(t<54252){if(54225<=t&&t<=54251)return d.CLUSTER_BREAK.LVT}else if(t===54252)return d.CLUSTER_BREAK.LV}else if(t<54280){if(54253<=t&&t<=54279)return d.CLUSTER_BREAK.LVT}else if(t<54281){if(t===54280)return d.CLUSTER_BREAK.LV}else if(54281<=t&&t<=54307)return d.CLUSTER_BREAK.LVT}else if(t<54589){if(t<54448){if(t<54365){if(t<54336){if(t<54309){if(t===54308)return d.CLUSTER_BREAK.LV}else if(54309<=t&&t<=54335)return d.CLUSTER_BREAK.LVT}else if(t<54337){if(t===54336)return d.CLUSTER_BREAK.LV}else if(t<54364){if(54337<=t&&t<=54363)return d.CLUSTER_BREAK.LVT}else if(t===54364)return d.CLUSTER_BREAK.LV}else if(t<54393){if(t<54392){if(54365<=t&&t<=54391)return d.CLUSTER_BREAK.LVT}else if(t===54392)return d.CLUSTER_BREAK.LV}else if(t<54420){if(54393<=t&&t<=54419)return d.CLUSTER_BREAK.LVT}else if(t<54421){if(t===54420)return d.CLUSTER_BREAK.LV}else if(54421<=t&&t<=54447)return d.CLUSTER_BREAK.LVT}else if(t<54505){if(t<54476){if(t<54449){if(t===54448)return d.CLUSTER_BREAK.LV}else if(54449<=t&&t<=54475)return d.CLUSTER_BREAK.LVT}else if(t<54477){if(t===54476)return d.CLUSTER_BREAK.LV}else if(t<54504){if(54477<=t&&t<=54503)return d.CLUSTER_BREAK.LVT}else if(t===54504)return d.CLUSTER_BREAK.LV}else if(t<54560){if(t<54532){if(54505<=t&&t<=54531)return d.CLUSTER_BREAK.LVT}else if(t<54533){if(t===54532)return d.CLUSTER_BREAK.LV}else if(54533<=t&&t<=54559)return d.CLUSTER_BREAK.LVT}else if(t<54561){if(t===54560)return d.CLUSTER_BREAK.LV}else if(t<54588){if(54561<=t&&t<=54587)return d.CLUSTER_BREAK.LVT}else if(t===54588)return d.CLUSTER_BREAK.LV}else if(t<54756){if(t<54672){if(t<54617){if(t<54616){if(54589<=t&&t<=54615)return d.CLUSTER_BREAK.LVT}else if(t===54616)return d.CLUSTER_BREAK.LV}else if(t<54644){if(54617<=t&&t<=54643)return d.CLUSTER_BREAK.LVT}else if(t<54645){if(t===54644)return d.CLUSTER_BREAK.LV}else if(54645<=t&&t<=54671)return d.CLUSTER_BREAK.LVT}else if(t<54701){if(t<54673){if(t===54672)return d.CLUSTER_BREAK.LV}else if(t<54700){if(54673<=t&&t<=54699)return d.CLUSTER_BREAK.LVT}else if(t===54700)return d.CLUSTER_BREAK.LV}else if(t<54728){if(54701<=t&&t<=54727)return d.CLUSTER_BREAK.LVT}else if(t<54729){if(t===54728)return d.CLUSTER_BREAK.LV}else if(54729<=t&&t<=54755)return d.CLUSTER_BREAK.LVT}else if(t<54813){if(t<54784){if(t<54757){if(t===54756)return d.CLUSTER_BREAK.LV}else if(54757<=t&&t<=54783)return d.CLUSTER_BREAK.LVT}else if(t<54785){if(t===54784)return d.CLUSTER_BREAK.LV}else if(t<54812){if(54785<=t&&t<=54811)return d.CLUSTER_BREAK.LVT}else if(t===54812)return d.CLUSTER_BREAK.LV}else if(t<54868){if(t<54840){if(54813<=t&&t<=54839)return d.CLUSTER_BREAK.LVT}else if(t<54841){if(t===54840)return d.CLUSTER_BREAK.LV}else if(54841<=t&&t<=54867)return d.CLUSTER_BREAK.LVT}else if(t<54869){if(t===54868)return d.CLUSTER_BREAK.LV}else if(t<54896){if(54869<=t&&t<=54895)return d.CLUSTER_BREAK.LVT}else if(t===54896)return d.CLUSTER_BREAK.LV}else if(t<69632){if(t<55216){if(t<55037){if(t<54980){if(t<54925){if(t<54924){if(54897<=t&&t<=54923)return d.CLUSTER_BREAK.LVT}else if(t===54924)return d.CLUSTER_BREAK.LV}else if(t<54952){if(54925<=t&&t<=54951)return d.CLUSTER_BREAK.LVT}else if(t<54953){if(t===54952)return d.CLUSTER_BREAK.LV}else if(54953<=t&&t<=54979)return d.CLUSTER_BREAK.LVT}else if(t<55008){if(t<54981){if(t===54980)return d.CLUSTER_BREAK.LV}else if(54981<=t&&t<=55007)return d.CLUSTER_BREAK.LVT}else if(t<55009){if(t===55008)return d.CLUSTER_BREAK.LV}else if(t<55036){if(55009<=t&&t<=55035)return d.CLUSTER_BREAK.LVT}else if(t===55036)return d.CLUSTER_BREAK.LV}else if(t<55120){if(t<55065){if(t<55064){if(55037<=t&&t<=55063)return d.CLUSTER_BREAK.LVT}else if(t===55064)return d.CLUSTER_BREAK.LV}else if(t<55092){if(55065<=t&&t<=55091)return d.CLUSTER_BREAK.LVT}else if(t<55093){if(t===55092)return d.CLUSTER_BREAK.LV}else if(55093<=t&&t<=55119)return d.CLUSTER_BREAK.LVT}else if(t<55149){if(t<55121){if(t===55120)return d.CLUSTER_BREAK.LV}else if(t<55148){if(55121<=t&&t<=55147)return d.CLUSTER_BREAK.LVT}else if(t===55148)return d.CLUSTER_BREAK.LV}else if(t<55176){if(55149<=t&&t<=55175)return d.CLUSTER_BREAK.LVT}else if(t<55177){if(t===55176)return d.CLUSTER_BREAK.LV}else if(55177<=t&&t<=55203)return d.CLUSTER_BREAK.LVT}else if(t<68097){if(t<65279){if(t<64286){if(t<55243){if(55216<=t&&t<=55238)return d.CLUSTER_BREAK.V}else if(55243<=t&&t<=55291)return d.CLUSTER_BREAK.T}else if(t<65024){if(t===64286)return d.CLUSTER_BREAK.EXTEND}else if(t<65056){if(65024<=t&&t<=65039)return d.CLUSTER_BREAK.EXTEND}else if(65056<=t&&t<=65071)return d.CLUSTER_BREAK.EXTEND}else if(t<66045){if(t<65438){if(t===65279)return d.CLUSTER_BREAK.CONTROL}else if(t<65520){if(65438<=t&&t<=65439)return d.CLUSTER_BREAK.EXTEND}else if(65520<=t&&t<=65531)return d.CLUSTER_BREAK.CONTROL}else if(t<66272){if(t===66045)return d.CLUSTER_BREAK.EXTEND}else if(t<66422){if(t===66272)return d.CLUSTER_BREAK.EXTEND}else if(66422<=t&&t<=66426)return d.CLUSTER_BREAK.EXTEND}else if(t<68325){if(t<68108){if(t<68101){if(68097<=t&&t<=68099)return d.CLUSTER_BREAK.EXTEND}else if(68101<=t&&t<=68102)return d.CLUSTER_BREAK.EXTEND}else if(t<68152){if(68108<=t&&t<=68111)return d.CLUSTER_BREAK.EXTEND}else if(t<68159){if(68152<=t&&t<=68154)return d.CLUSTER_BREAK.EXTEND}else if(t===68159)return d.CLUSTER_BREAK.EXTEND}else if(t<69373){if(t<68900){if(68325<=t&&t<=68326)return d.CLUSTER_BREAK.EXTEND}else if(t<69291){if(68900<=t&&t<=68903)return d.CLUSTER_BREAK.EXTEND}else if(69291<=t&&t<=69292)return d.CLUSTER_BREAK.EXTEND}else if(t<69446){if(69373<=t&&t<=69375)return d.CLUSTER_BREAK.EXTEND}else if(t<69506){if(69446<=t&&t<=69456)return d.CLUSTER_BREAK.EXTEND}else if(69506<=t&&t<=69509)return d.CLUSTER_BREAK.EXTEND}else if(t<70016){if(t<69815){if(t<69747){if(t<69634){if(t===69632)return d.CLUSTER_BREAK.SPACINGMARK;if(t===69633)return d.CLUSTER_BREAK.EXTEND}else if(t<69688){if(t===69634)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<69744){if(69688<=t&&t<=69702)return d.CLUSTER_BREAK.EXTEND}else if(t===69744)return d.CLUSTER_BREAK.EXTEND}else if(t<69762){if(t<69759){if(69747<=t&&t<=69748)return d.CLUSTER_BREAK.EXTEND}else if(69759<=t&&t<=69761)return d.CLUSTER_BREAK.EXTEND}else if(t<69808){if(t===69762)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<69811){if(69808<=t&&t<=69810)return d.CLUSTER_BREAK.SPACINGMARK}else if(69811<=t&&t<=69814)return d.CLUSTER_BREAK.EXTEND}else if(t<69888)if(t<69821){if(t<69817){if(69815<=t&&t<=69816)return d.CLUSTER_BREAK.SPACINGMARK}else if(69817<=t&&t<=69818)return d.CLUSTER_BREAK.EXTEND}else if(t<69826){if(t===69821)return d.CLUSTER_BREAK.PREPEND}else{if(t===69826)return d.CLUSTER_BREAK.EXTEND;if(t===69837)return d.CLUSTER_BREAK.PREPEND}else if(t<69933){if(t<69927){if(69888<=t&&t<=69890)return d.CLUSTER_BREAK.EXTEND}else if(t<69932){if(69927<=t&&t<=69931)return d.CLUSTER_BREAK.EXTEND}else if(t===69932)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<69957){if(69933<=t&&t<=69940)return d.CLUSTER_BREAK.EXTEND}else if(t<70003){if(69957<=t&&t<=69958)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===70003)return d.CLUSTER_BREAK.EXTEND}else if(t<70194){if(t<70082){if(t<70067){if(t<70018){if(70016<=t&&t<=70017)return d.CLUSTER_BREAK.EXTEND}else if(t===70018)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70070){if(70067<=t&&t<=70069)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70079){if(70070<=t&&t<=70078)return d.CLUSTER_BREAK.EXTEND}else if(70079<=t&&t<=70080)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70095){if(t<70089){if(70082<=t&&t<=70083)return d.CLUSTER_BREAK.PREPEND}else if(t<70094){if(70089<=t&&t<=70092)return d.CLUSTER_BREAK.EXTEND}else if(t===70094)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70188){if(t===70095)return d.CLUSTER_BREAK.EXTEND}else if(t<70191){if(70188<=t&&t<=70190)return d.CLUSTER_BREAK.SPACINGMARK}else if(70191<=t&&t<=70193)return d.CLUSTER_BREAK.EXTEND}else if(t<70209){if(t<70197){if(t<70196){if(70194<=t&&t<=70195)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===70196)return d.CLUSTER_BREAK.EXTEND}else if(t<70198){if(t===70197)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70206){if(70198<=t&&t<=70199)return d.CLUSTER_BREAK.EXTEND}else if(t===70206)return d.CLUSTER_BREAK.EXTEND}else if(t<70371){if(t<70367){if(t===70209)return d.CLUSTER_BREAK.EXTEND}else if(t<70368){if(t===70367)return d.CLUSTER_BREAK.EXTEND}else if(70368<=t&&t<=70370)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70400){if(70371<=t&&t<=70378)return d.CLUSTER_BREAK.EXTEND}else if(t<70402){if(70400<=t&&t<=70401)return d.CLUSTER_BREAK.EXTEND}else if(70402<=t&&t<=70403)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72343){if(t<71339){if(t<70841){if(t<70512){if(t<70471){if(t<70463){if(t<70462){if(70459<=t&&t<=70460)return d.CLUSTER_BREAK.EXTEND}else if(t===70462)return d.CLUSTER_BREAK.EXTEND}else if(t<70464){if(t===70463)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70465){if(t===70464)return d.CLUSTER_BREAK.EXTEND}else if(70465<=t&&t<=70468)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70487){if(t<70475){if(70471<=t&&t<=70472)return d.CLUSTER_BREAK.SPACINGMARK}else if(70475<=t&&t<=70477)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70498){if(t===70487)return d.CLUSTER_BREAK.EXTEND}else if(t<70502){if(70498<=t&&t<=70499)return d.CLUSTER_BREAK.SPACINGMARK}else if(70502<=t&&t<=70508)return d.CLUSTER_BREAK.EXTEND}else if(t<70725){if(t<70712){if(t<70709){if(70512<=t&&t<=70516)return d.CLUSTER_BREAK.EXTEND}else if(70709<=t&&t<=70711)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<70720){if(70712<=t&&t<=70719)return d.CLUSTER_BREAK.EXTEND}else if(t<70722){if(70720<=t&&t<=70721)return d.CLUSTER_BREAK.SPACINGMARK}else if(70722<=t&&t<=70724)return d.CLUSTER_BREAK.EXTEND}else if(t<70832){if(t<70726){if(t===70725)return d.CLUSTER_BREAK.SPACINGMARK}else if(t===70726||t===70750)return d.CLUSTER_BREAK.EXTEND}else if(t<70833){if(t===70832)return d.CLUSTER_BREAK.EXTEND}else if(t<70835){if(70833<=t&&t<=70834)return d.CLUSTER_BREAK.SPACINGMARK}else if(70835<=t&&t<=70840)return d.CLUSTER_BREAK.EXTEND}else if(t<71096){if(t<70847)if(t<70843){if(t===70841)return d.CLUSTER_BREAK.SPACINGMARK;if(t===70842)return d.CLUSTER_BREAK.EXTEND}else if(t<70845){if(70843<=t&&t<=70844)return d.CLUSTER_BREAK.SPACINGMARK}else{if(t===70845)return d.CLUSTER_BREAK.EXTEND;if(t===70846)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71087){if(t<70849){if(70847<=t&&t<=70848)return d.CLUSTER_BREAK.EXTEND}else if(t<70850){if(t===70849)return d.CLUSTER_BREAK.SPACINGMARK}else if(70850<=t&&t<=70851)return d.CLUSTER_BREAK.EXTEND}else if(t<71088){if(t===71087)return d.CLUSTER_BREAK.EXTEND}else if(t<71090){if(71088<=t&&t<=71089)return d.CLUSTER_BREAK.SPACINGMARK}else if(71090<=t&&t<=71093)return d.CLUSTER_BREAK.EXTEND}else if(t<71216){if(t<71102){if(t<71100){if(71096<=t&&t<=71099)return d.CLUSTER_BREAK.SPACINGMARK}else if(71100<=t&&t<=71101)return d.CLUSTER_BREAK.EXTEND}else if(t<71103){if(t===71102)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71132){if(71103<=t&&t<=71104)return d.CLUSTER_BREAK.EXTEND}else if(71132<=t&&t<=71133)return d.CLUSTER_BREAK.EXTEND}else if(t<71229){if(t<71219){if(71216<=t&&t<=71218)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71227){if(71219<=t&&t<=71226)return d.CLUSTER_BREAK.EXTEND}else if(71227<=t&&t<=71228)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71230){if(t===71229)return d.CLUSTER_BREAK.EXTEND}else if(t<71231){if(t===71230)return d.CLUSTER_BREAK.SPACINGMARK}else if(71231<=t&&t<=71232)return d.CLUSTER_BREAK.EXTEND}else if(t<71999)if(t<71463){if(t<71350){if(t<71341){if(t===71339)return d.CLUSTER_BREAK.EXTEND;if(t===71340)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71342){if(t===71341)return d.CLUSTER_BREAK.EXTEND}else if(t<71344){if(71342<=t&&t<=71343)return d.CLUSTER_BREAK.SPACINGMARK}else if(71344<=t&&t<=71349)return d.CLUSTER_BREAK.EXTEND}else if(t<71453){if(t===71350)return d.CLUSTER_BREAK.SPACINGMARK;if(t===71351)return d.CLUSTER_BREAK.EXTEND}else if(t<71458){if(71453<=t&&t<=71455)return d.CLUSTER_BREAK.EXTEND}else if(t<71462){if(71458<=t&&t<=71461)return d.CLUSTER_BREAK.EXTEND}else if(t===71462)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71984){if(t<71727){if(t<71724){if(71463<=t&&t<=71467)return d.CLUSTER_BREAK.EXTEND}else if(71724<=t&&t<=71726)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71736){if(71727<=t&&t<=71735)return d.CLUSTER_BREAK.EXTEND}else if(t<71737){if(t===71736)return d.CLUSTER_BREAK.SPACINGMARK}else if(71737<=t&&t<=71738)return d.CLUSTER_BREAK.EXTEND}else if(t<71995){if(t<71985){if(t===71984)return d.CLUSTER_BREAK.EXTEND}else if(t<71991){if(71985<=t&&t<=71989)return d.CLUSTER_BREAK.SPACINGMARK}else if(71991<=t&&t<=71992)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<71997){if(71995<=t&&t<=71996)return d.CLUSTER_BREAK.EXTEND}else{if(t===71997)return d.CLUSTER_BREAK.SPACINGMARK;if(t===71998)return d.CLUSTER_BREAK.EXTEND}else if(t<72193)if(t<72145)if(t<72001){if(t===71999)return d.CLUSTER_BREAK.PREPEND;if(t===72e3)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72002){if(t===72001)return d.CLUSTER_BREAK.PREPEND}else{if(t===72002)return d.CLUSTER_BREAK.SPACINGMARK;if(t===72003)return d.CLUSTER_BREAK.EXTEND}else if(t<72156){if(t<72148){if(72145<=t&&t<=72147)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72154){if(72148<=t&&t<=72151)return d.CLUSTER_BREAK.EXTEND}else if(72154<=t&&t<=72155)return d.CLUSTER_BREAK.EXTEND}else if(t<72160){if(72156<=t&&t<=72159)return d.CLUSTER_BREAK.SPACINGMARK}else{if(t===72160)return d.CLUSTER_BREAK.EXTEND;if(t===72164)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72263){if(t<72249){if(t<72243){if(72193<=t&&t<=72202)return d.CLUSTER_BREAK.EXTEND}else if(72243<=t&&t<=72248)return d.CLUSTER_BREAK.EXTEND}else if(t<72250){if(t===72249)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72251){if(t===72250)return d.CLUSTER_BREAK.PREPEND}else if(72251<=t&&t<=72254)return d.CLUSTER_BREAK.EXTEND}else if(t<72281){if(t<72273){if(t===72263)return d.CLUSTER_BREAK.EXTEND}else if(t<72279){if(72273<=t&&t<=72278)return d.CLUSTER_BREAK.EXTEND}else if(72279<=t&&t<=72280)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72324){if(72281<=t&&t<=72283)return d.CLUSTER_BREAK.EXTEND}else if(t<72330){if(72324<=t&&t<=72329)return d.CLUSTER_BREAK.PREPEND}else if(72330<=t&&t<=72342)return d.CLUSTER_BREAK.EXTEND}else if(t<94033){if(t<73104){if(t<72881){if(t<72766){if(t<72751){if(t<72344){if(t===72343)return d.CLUSTER_BREAK.SPACINGMARK}else if(72344<=t&&t<=72345)return d.CLUSTER_BREAK.EXTEND}else if(t<72752){if(t===72751)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<72760){if(72752<=t&&t<=72758)return d.CLUSTER_BREAK.EXTEND}else if(72760<=t&&t<=72765)return d.CLUSTER_BREAK.EXTEND}else if(t<72850){if(t===72766)return d.CLUSTER_BREAK.SPACINGMARK;if(t===72767)return d.CLUSTER_BREAK.EXTEND}else if(t<72873){if(72850<=t&&t<=72871)return d.CLUSTER_BREAK.EXTEND}else if(t<72874){if(t===72873)return d.CLUSTER_BREAK.SPACINGMARK}else if(72874<=t&&t<=72880)return d.CLUSTER_BREAK.EXTEND}else if(t<73018){if(t<72884){if(t<72882){if(t===72881)return d.CLUSTER_BREAK.SPACINGMARK}else if(72882<=t&&t<=72883)return d.CLUSTER_BREAK.EXTEND}else if(t<72885){if(t===72884)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<73009){if(72885<=t&&t<=72886)return d.CLUSTER_BREAK.EXTEND}else if(73009<=t&&t<=73014)return d.CLUSTER_BREAK.EXTEND}else if(t<73030){if(t<73020){if(t===73018)return d.CLUSTER_BREAK.EXTEND}else if(t<73023){if(73020<=t&&t<=73021)return d.CLUSTER_BREAK.EXTEND}else if(73023<=t&&t<=73029)return d.CLUSTER_BREAK.EXTEND}else if(t<73031){if(t===73030)return d.CLUSTER_BREAK.PREPEND}else if(t<73098){if(t===73031)return d.CLUSTER_BREAK.EXTEND}else if(73098<=t&&t<=73102)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<73526){if(t<73459)if(t<73109){if(t<73107){if(73104<=t&&t<=73105)return d.CLUSTER_BREAK.EXTEND}else if(73107<=t&&t<=73108)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<73110){if(t===73109)return d.CLUSTER_BREAK.EXTEND}else{if(t===73110)return d.CLUSTER_BREAK.SPACINGMARK;if(t===73111)return d.CLUSTER_BREAK.EXTEND}else if(t<73474){if(t<73461){if(73459<=t&&t<=73460)return d.CLUSTER_BREAK.EXTEND}else if(t<73472){if(73461<=t&&t<=73462)return d.CLUSTER_BREAK.SPACINGMARK}else if(73472<=t&&t<=73473)return d.CLUSTER_BREAK.EXTEND}else if(t<73475){if(t===73474)return d.CLUSTER_BREAK.PREPEND}else if(t<73524){if(t===73475)return d.CLUSTER_BREAK.SPACINGMARK}else if(73524<=t&&t<=73525)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<78896)if(t<73536){if(t<73534){if(73526<=t&&t<=73530)return d.CLUSTER_BREAK.EXTEND}else if(73534<=t&&t<=73535)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<73537){if(t===73536)return d.CLUSTER_BREAK.EXTEND}else{if(t===73537)return d.CLUSTER_BREAK.SPACINGMARK;if(t===73538)return d.CLUSTER_BREAK.EXTEND}else if(t<92912){if(t<78912){if(78896<=t&&t<=78911)return d.CLUSTER_BREAK.CONTROL}else if(t<78919){if(t===78912)return d.CLUSTER_BREAK.EXTEND}else if(78919<=t&&t<=78933)return d.CLUSTER_BREAK.EXTEND}else if(t<92976){if(92912<=t&&t<=92916)return d.CLUSTER_BREAK.EXTEND}else if(t<94031){if(92976<=t&&t<=92982)return d.CLUSTER_BREAK.EXTEND}else if(t===94031)return d.CLUSTER_BREAK.EXTEND}else if(t<121476){if(t<119143)if(t<113824){if(t<94180){if(t<94095){if(94033<=t&&t<=94087)return d.CLUSTER_BREAK.SPACINGMARK}else if(94095<=t&&t<=94098)return d.CLUSTER_BREAK.EXTEND}else if(t<94192){if(t===94180)return d.CLUSTER_BREAK.EXTEND}else if(t<113821){if(94192<=t&&t<=94193)return d.CLUSTER_BREAK.SPACINGMARK}else if(113821<=t&&t<=113822)return d.CLUSTER_BREAK.EXTEND}else if(t<118576){if(t<118528){if(113824<=t&&t<=113827)return d.CLUSTER_BREAK.CONTROL}else if(118528<=t&&t<=118573)return d.CLUSTER_BREAK.EXTEND}else if(t<119141){if(118576<=t&&t<=118598)return d.CLUSTER_BREAK.EXTEND}else{if(t===119141)return d.CLUSTER_BREAK.EXTEND;if(t===119142)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<119173){if(t<119150){if(t<119149){if(119143<=t&&t<=119145)return d.CLUSTER_BREAK.EXTEND}else if(t===119149)return d.CLUSTER_BREAK.SPACINGMARK}else if(t<119155){if(119150<=t&&t<=119154)return d.CLUSTER_BREAK.EXTEND}else if(t<119163){if(119155<=t&&t<=119162)return d.CLUSTER_BREAK.CONTROL}else if(119163<=t&&t<=119170)return d.CLUSTER_BREAK.EXTEND}else if(t<121344){if(t<119210){if(119173<=t&&t<=119179)return d.CLUSTER_BREAK.EXTEND}else if(t<119362){if(119210<=t&&t<=119213)return d.CLUSTER_BREAK.EXTEND}else if(119362<=t&&t<=119364)return d.CLUSTER_BREAK.EXTEND}else if(t<121403){if(121344<=t&&t<=121398)return d.CLUSTER_BREAK.EXTEND}else if(t<121461){if(121403<=t&&t<=121452)return d.CLUSTER_BREAK.EXTEND}else if(t===121461)return d.CLUSTER_BREAK.EXTEND}else if(t<123628){if(t<122907){if(t<121505){if(t<121499){if(t===121476)return d.CLUSTER_BREAK.EXTEND}else if(121499<=t&&t<=121503)return d.CLUSTER_BREAK.EXTEND}else if(t<122880){if(121505<=t&&t<=121519)return d.CLUSTER_BREAK.EXTEND}else if(t<122888){if(122880<=t&&t<=122886)return d.CLUSTER_BREAK.EXTEND}else if(122888<=t&&t<=122904)return d.CLUSTER_BREAK.EXTEND}else if(t<123023){if(t<122915){if(122907<=t&&t<=122913)return d.CLUSTER_BREAK.EXTEND}else if(t<122918){if(122915<=t&&t<=122916)return d.CLUSTER_BREAK.EXTEND}else if(122918<=t&&t<=122922)return d.CLUSTER_BREAK.EXTEND}else if(t<123184){if(t===123023)return d.CLUSTER_BREAK.EXTEND}else if(t<123566){if(123184<=t&&t<=123190)return d.CLUSTER_BREAK.EXTEND}else if(t===123566)return d.CLUSTER_BREAK.EXTEND}else if(t<127995){if(t<125136){if(t<124140){if(123628<=t&&t<=123631)return d.CLUSTER_BREAK.EXTEND}else if(124140<=t&&t<=124143)return d.CLUSTER_BREAK.EXTEND}else if(t<125252){if(125136<=t&&t<=125142)return d.CLUSTER_BREAK.EXTEND}else if(t<127462){if(125252<=t&&t<=125258)return d.CLUSTER_BREAK.EXTEND}else if(127462<=t&&t<=127487)return d.CLUSTER_BREAK.REGIONAL_INDICATOR}else if(t<917632){if(t<917504){if(127995<=t&&t<=127999)return d.CLUSTER_BREAK.EXTEND}else if(t<917536){if(917504<=t&&t<=917535)return d.CLUSTER_BREAK.CONTROL}else if(917536<=t&&t<=917631)return d.CLUSTER_BREAK.EXTEND}else if(t<917760){if(917632<=t&&t<=917759)return d.CLUSTER_BREAK.CONTROL}else if(t<918e3){if(917760<=t&&t<=917999)return d.CLUSTER_BREAK.EXTEND}else if(918e3<=t&&t<=921599)return d.CLUSTER_BREAK.CONTROL;return d.CLUSTER_BREAK.OTHER}static getEmojiProperty(t){if(t<10160){if(t<9728){if(t<9e3){if(t<8482){if(t<8252){if(t===169||t===174)return d.EXTENDED_PICTOGRAPHIC}else if(t===8252||t===8265)return d.EXTENDED_PICTOGRAPHIC}else if(t<8596){if(t===8482||t===8505)return d.EXTENDED_PICTOGRAPHIC}else if(t<8617){if(8596<=t&&t<=8601)return d.EXTENDED_PICTOGRAPHIC}else if(t<8986){if(8617<=t&&t<=8618)return d.EXTENDED_PICTOGRAPHIC}else if(8986<=t&&t<=8987)return d.EXTENDED_PICTOGRAPHIC}else if(t<9410){if(t<9167){if(t===9e3||t===9096)return d.EXTENDED_PICTOGRAPHIC}else if(t<9193){if(t===9167)return d.EXTENDED_PICTOGRAPHIC}else if(t<9208){if(9193<=t&&t<=9203)return d.EXTENDED_PICTOGRAPHIC}else if(9208<=t&&t<=9210)return d.EXTENDED_PICTOGRAPHIC}else if(t<9654){if(t<9642){if(t===9410)return d.EXTENDED_PICTOGRAPHIC}else if(9642<=t&&t<=9643)return d.EXTENDED_PICTOGRAPHIC}else if(t<9664){if(t===9654)return d.EXTENDED_PICTOGRAPHIC}else if(t<9723){if(t===9664)return d.EXTENDED_PICTOGRAPHIC}else if(9723<=t&&t<=9726)return d.EXTENDED_PICTOGRAPHIC}else if(t<10035){if(t<10004){if(t<9748){if(t<9735){if(9728<=t&&t<=9733)return d.EXTENDED_PICTOGRAPHIC}else if(9735<=t&&t<=9746)return d.EXTENDED_PICTOGRAPHIC}else if(t<9872){if(9748<=t&&t<=9861)return d.EXTENDED_PICTOGRAPHIC}else if(t<9992){if(9872<=t&&t<=9989)return d.EXTENDED_PICTOGRAPHIC}else if(9992<=t&&t<=10002)return d.EXTENDED_PICTOGRAPHIC}else if(t<10013){if(t===10004||t===10006)return d.EXTENDED_PICTOGRAPHIC}else if(t<10017){if(t===10013)return d.EXTENDED_PICTOGRAPHIC}else if(t===10017||t===10024)return d.EXTENDED_PICTOGRAPHIC}else if(t<10067){if(t<10055){if(t<10052){if(10035<=t&&t<=10036)return d.EXTENDED_PICTOGRAPHIC}else if(t===10052)return d.EXTENDED_PICTOGRAPHIC}else if(t<10060){if(t===10055)return d.EXTENDED_PICTOGRAPHIC}else if(t===10060||t===10062)return d.EXTENDED_PICTOGRAPHIC}else if(t<10083){if(t<10071){if(10067<=t&&t<=10069)return d.EXTENDED_PICTOGRAPHIC}else if(t===10071)return d.EXTENDED_PICTOGRAPHIC}else if(t<10133){if(10083<=t&&t<=10087)return d.EXTENDED_PICTOGRAPHIC}else if(t<10145){if(10133<=t&&t<=10135)return d.EXTENDED_PICTOGRAPHIC}else if(t===10145)return d.EXTENDED_PICTOGRAPHIC}else if(t<127489){if(t<12951){if(t<11035){if(t<10548){if(t===10160||t===10175)return d.EXTENDED_PICTOGRAPHIC}else if(t<11013){if(10548<=t&&t<=10549)return d.EXTENDED_PICTOGRAPHIC}else if(11013<=t&&t<=11015)return d.EXTENDED_PICTOGRAPHIC}else if(t<11093){if(t<11088){if(11035<=t&&t<=11036)return d.EXTENDED_PICTOGRAPHIC}else if(t===11088)return d.EXTENDED_PICTOGRAPHIC}else if(t<12336){if(t===11093)return d.EXTENDED_PICTOGRAPHIC}else if(t===12336||t===12349)return d.EXTENDED_PICTOGRAPHIC}else if(t<127340){if(t<126976){if(t===12951||t===12953)return d.EXTENDED_PICTOGRAPHIC}else if(t<127245){if(126976<=t&&t<=127231)return d.EXTENDED_PICTOGRAPHIC}else if(t<127279){if(127245<=t&&t<=127247)return d.EXTENDED_PICTOGRAPHIC}else if(t===127279)return d.EXTENDED_PICTOGRAPHIC}else if(t<127374){if(t<127358){if(127340<=t&&t<=127345)return d.EXTENDED_PICTOGRAPHIC}else if(127358<=t&&t<=127359)return d.EXTENDED_PICTOGRAPHIC}else if(t<127377){if(t===127374)return d.EXTENDED_PICTOGRAPHIC}else if(t<127405){if(127377<=t&&t<=127386)return d.EXTENDED_PICTOGRAPHIC}else if(127405<=t&&t<=127461)return d.EXTENDED_PICTOGRAPHIC}else if(t<128981){if(t<127561){if(t<127535){if(t<127514){if(127489<=t&&t<=127503)return d.EXTENDED_PICTOGRAPHIC}else if(t===127514)return d.EXTENDED_PICTOGRAPHIC}else if(t<127538){if(t===127535)return d.EXTENDED_PICTOGRAPHIC}else if(t<127548){if(127538<=t&&t<=127546)return d.EXTENDED_PICTOGRAPHIC}else if(127548<=t&&t<=127551)return d.EXTENDED_PICTOGRAPHIC}else if(t<128326){if(t<128e3){if(127561<=t&&t<=127994)return d.EXTENDED_PICTOGRAPHIC}else if(128e3<=t&&t<=128317)return d.EXTENDED_PICTOGRAPHIC}else if(t<128640){if(128326<=t&&t<=128591)return d.EXTENDED_PICTOGRAPHIC}else if(t<128884){if(128640<=t&&t<=128767)return d.EXTENDED_PICTOGRAPHIC}else if(128884<=t&&t<=128895)return d.EXTENDED_PICTOGRAPHIC}else if(t<129198){if(t<129096){if(t<129036){if(128981<=t&&t<=129023)return d.EXTENDED_PICTOGRAPHIC}else if(129036<=t&&t<=129039)return d.EXTENDED_PICTOGRAPHIC}else if(t<129114){if(129096<=t&&t<=129103)return d.EXTENDED_PICTOGRAPHIC}else if(t<129160){if(129114<=t&&t<=129119)return d.EXTENDED_PICTOGRAPHIC}else if(129160<=t&&t<=129167)return d.EXTENDED_PICTOGRAPHIC}else if(t<129340){if(t<129292){if(129198<=t&&t<=129279)return d.EXTENDED_PICTOGRAPHIC}else if(129292<=t&&t<=129338)return d.EXTENDED_PICTOGRAPHIC}else if(t<129351){if(129340<=t&&t<=129349)return d.EXTENDED_PICTOGRAPHIC}else if(t<130048){if(129351<=t&&t<=129791)return d.EXTENDED_PICTOGRAPHIC}else if(130048<=t&&t<=131069)return d.EXTENDED_PICTOGRAPHIC;return d.CLUSTER_BREAK.OTHER}}z1.default=es;var T8=yn&&yn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(x3,"__esModule",{value:!0});const k8=T8(z1);var R8=x3.default=k8.default;const w8=new R8,Ea=_("text-offset");function fl(n,t){const e=eo(n);let r=0;for(let i=0;i<e.length;i++){const o=e[i],s=Zr(o);if(o===t){const l=r+s;return{start:r,end:l}}r+=s}p(Ea,!1,"can not find child in children")}function lr(n,t){p(Ea,t>=0,`invalid offset: ${t}`);const e=Yf(n,t),{prev:r,next:i,offset:o}=e;if(!r&&!i&&p(Ea,!1,"invalid offset, no prev & next child at offset"),r!==i)return!0;const s=r;if(p(Ea,s,"no child"),Rr(s))return p(Ea,o===0||o===1,`invalid box child offset: ${o}`),!0;const l=s.textContent;p(Ea,l,"no content for text child");const c=w8.splitGraphemes(l),f=new Set;let h=0;return c.forEach(C=>{f.add(h),h+=C.length}),f.add(h),!!f.has(o)}function dl(n,t){if(t===0)return 0;const e=t-1;if(lr(n,e))return e;let r=e-1;for(;!lr(n,r);)r-=1;return r}function ba(n,t){const e=Qf(n);if(p(Ea,t>=0&&t<=e,`invalid offset: ${t}, ${e}`),t===e)return e;const r=t+1;if(lr(n,r))return r;let i=r+1;for(;!lr(n,i);)i+=1;return i}const S8=_("line-offset");function Y1(n){const t=nd(n),e=[];let r=0;for(let i=0;i<t.length;i++){const o=t[i];e.push({start:r,end:o.offset}),r=o.offset}return e.push({start:r,end:Qf(n)}),e}function Hm(n,t){const e=Y1(n);return p(S8,t>=0&&t<e.length,`invalid line index: ${t}, ${e.length}`),e[t]}function v3(n,t){const{lineIndex:e}=j1(n,t);return Hm(n,e)}function L8(n){const t=Y1(n),e=n.getBoundingClientRect(),r=[];return t.forEach(({start:i,end:o})=>{const s=mt(n,i,"home");let l=wr(n,s);const c=mt(n,o,"end"),f=wr(n,c);l.top+l.height/2<f.top&&(l=new DOMRect(e.left-1e4,f.top,1,f.height));const h=new DOMRect(l.left,f.top,f.left-l.left,f.height),C=new DOMRect(e.left,f.top,e.width,f.height);r.push({start:i,end:o,rect:C,contentRect:h})}),r}function I8(n,t,e){const i=L8(n).find(s=>fa(s.rect,t,e));if(!i)return null;const o=i.contentRect;return t<=o.left+1?mt(n,i.start,"home"):t>=o.right-1?mt(n,i.end,"end"):null}function B3(n,t,e){const r=wr(n,t),i=wr(n,e),o=r.top+r.height/2,s=i.top+i.height/2,l=i.top<o&&o<i.bottom,c=r.top<s&&s<r.bottom;return l&&c}function y3(n){return Y1(n).length}const xa=_("find-text-position");function T3(n,t){const{start:e,end:r}=Hm(n,t),i=dt(n),o=wr(n,mt(i,e,"home"));if(!(wr(n,mt(i,r,"end")).top>o.top+o.height/2))return!1;const c=Yf(n,e);return p(xa,c.next,"no next child at offset"),p(xa,!Xf(c.next),"next child is not text child"),!0}function D8(n,t){const e=dt(n);p(xa,T3(n,t),"line is not wrapped");const{start:r,end:i}=Hm(n,t),o=mt(e,r,"home");for(let s=r+1;s<=i;s+=1){let l="normal";s===r?l="home":s===i&&(l="end");const c=mt(e,s,l);if(!B3(n,o,c))return s-1}return p(xa,!1,"failed to find wrapped offset"),0}function jm(n,t,e,r,i,o,s){p(xa,at(n,t),`not a text kind block: ${Tt(t)}`);const{start:l,end:c}=Hm(t,e);let f=l;const h=dt(t);if(t===r&&T3(t,e)){const w=D8(t,e);(o==="up"||o==="down"&&B3(t,i,mt(h,l,"home")))&&(f=w+1)}let C=Number.MAX_SAFE_INTEGER;const E=cl(n,r,i),b=s!=null?s:E.left+E.width/2,v=E.top+E.height/2;let k=mt(h,f,"home");for(let w=f;w<=c;w++){if(!lr(t,w))continue;let O="normal";w===l?O="home":w===c&&(O="end");const M=mt(h,w,O),F=wr(t,M),Z=il(F,b,v);Z<C&&(C=Z,k=M)}return k}function _8(n,t,e,r,i){return p(xa,at(n,t),"not a text block"),jm(n,t,y3(t)-1,e,r,"up",i)}function M8(n,t,e,r,i){return p(xa,at(n,t),"not a text block"),jm(n,t,0,e,r,"down",i)}function O8(n,t,e,r){const{lineIndex:i}=j1(t,e);if(i===y3(t)-1)return null;const o=jm(n,t,i+1,t,e,"down",r);return o||null}function U8(n,t){if(t.offset===0)return null;const e=nd(n),r=e.find(i=>i.offset===t.offset);if(!r){const i=dl(n,t.offset);return e.find(s=>s.offset===i)?{offset:i,type:"home"}:{offset:i,type:"normal"}}if(r.type==="betweenChild"){if(t.type==="home"&&r.childInfo.wrap==="nowrap")return{offset:t.offset,type:"end"};if(r.childInfo.prevWrapped)return{offset:dl(n,t.offset),type:"normal"}}return{offset:dl(n,t.offset),type:"normal"}}function N8(n,t){const e=Qf(n);if(t.offset===e)return null;const r=nd(n),i=r.find(o=>o.offset===t.offset);if(!i){const o=ba(n,t.offset),s=r.find(l=>l.offset===o);return s?s.type==="betweenChild"?{offset:o,type:"end"}:{offset:o,type:"home"}:{offset:o,type:"normal"}}return i.type==="betweenChild"?i.childInfo.wrap==="nowrap"&&t.type==="end"?{offset:t.offset,type:"home"}:{offset:ba(n,t.offset),type:"home"}:{offset:ba(n,t.offset),type:"normal"}}function P8(n,t,e,r){const{lineIndex:i}=j1(t,e);if(i===0)return null;const o=jm(n,t,i-1,t,e,"up",r);return o||null}const F8=_("move-caret");function K8(n,t,e,r){if(r==="ArrowLeft"){const i=U8(t,e);return i?mt(dt(t),i.offset,i.type):null}if(r==="ArrowRight"){const i=N8(t,e);return i?mt(dt(t),i.offset,i.type):null}if(r==="ArrowUp"){const i=P8(n,t,e,n.selection.getSuggestedCaretX());return i?mt(dt(t),i.offset,i.type):null}if(r==="ArrowDown"){const i=O8(n,t,e,n.selection.getSuggestedCaretX());return i?mt(dt(t),i.offset,i.type):null}p(F8,!1,`invalid navigation direction: ${r}`)}const J1=_("text-range");function k3(n){const t=[];return eo(n).forEach(r=>{const i=Array.from(r.getClientRects()).map(o=>({rect:o,child:r}));t.push(...i)}),t}function V8(n,t,e){const r=k3(n);for(let i=1;i<r.length;i++){const o=r[i-1],s=r[i];if(t>=o.rect.right&&t<=s.rect.left&&e>=o.rect.top&&e<=o.rect.bottom&&e>=s.rect.top&&e<=s.rect.bottom)return fl(n,s.child).start}return null}function $8(n,t,e,r){const i=Ne(e,r);if(!i||!t.contains(i)||!n.contains(t))return null;const o=t.getBoundingClientRect(),s=k3(t);let l=e,c=r,f=o.left+o.width/2,h=o.top+o.height/2,C=f,E=h;s.forEach(Ct=>{f=Math.min(f,Ct.rect.left),h=Math.min(h,Ct.rect.top),C=Math.max(C,Ct.rect.right),E=Math.max(E,Ct.rect.bottom)}),l>=o.left&&l<f?l=f:l<=o.right&&l>C&&(l=C),c>=o.top&&c<h?c=h:c<=o.bottom&&c>E&&(c=E);const b=i.closest("div[data-type=block-content]>span");if(!b){const Ct=t.getBoundingClientRect();if(!fa(Ct,l,c))return null;const wt=V8(t,l,c);if(wt!==null){const oe=mt(t,wt,"normal");return new vn(n,{anchor:oe,focus:oe})}const kt=I8(t,l,c);return kt?new vn(n,{anchor:kt,focus:kt}):null}const v=eo(t);p(J1,v.indexOf(b)!==-1,"failed to find child in children");const k=fl(t,b);p(J1,k,"failed to get child offset");const{start:w}=k;let O,M;Jo(b)||Rr(b)?(O=w,M=0):(p(J1,b.firstChild instanceof Text,"child is not text"),O=w+sv(b.firstChild,l,c),M=0);const F=dt(t),Y=nd(t).find(Ct=>Ct.offset===O);let X="normal";if(Y){const Ct=mt(F,O,"home"),wt=mt(F,O,"end"),kt=wr(t,Ct),oe=wr(t,wt),ve=il(kt,l,c),fe=il(oe,l,c);X=ve<fe?"home":"end"}const ut=mt(F,O,X);let Et;return M&&(Et=mt(F,O+M,X)),new vn(n,{anchor:ut,focus:Et!=null?Et:ut})}const H8=_("create-text-op");function ti(n,t){p(H8,n,"text is empty");const e={insert:n};return t&&Object.keys(t).length>0&&(e.attributes=t),e}function Q1(n,t){if(n.length===0)return[];if(n.indexOf(`
16
16
  `)===-1)return[ti(n,t)];const e=n.replace(/\r\n/g,`
17
17
  `).replace(/\r/g,`
18
18
  `).replace(/\n/g," "),r=[];return e&&r.push(ti(e,t)),r}const zm=_("merge-ops");function Z1(n){if(n.length<=1)return n;const t=(i,o)=>i.insert===void 0||o.insert===void 0||i.delete!==void 0||o.delete!==void 0||i.retain!==void 0||o.retain!==void 0||i.attributes!==void 0&&o.attributes===void 0||i.attributes===void 0&&o.attributes!==void 0?!1:i.attributes===void 0?(p(zm,o.attributes===void 0,"op2.attributes is not undefined"),!0):(p(zm,i.attributes&&o.attributes,"op1.attributes && op2.attributes is undefined"),Sf.default(i.attributes,o.attributes)),e=[];let r=n[0];e.push(r);for(let i=1;i<n.length;i+=1){const o=n[i];t(r,o)?(p(zm,typeof r.insert=="string","before.insert is not string"),p(zm,typeof o.insert=="string","op.insert is not string"),r.insert+=o.insert):(e.push(o),r=o)}return e}function j8(n){let t;for(t=n.length-1;t>=0;t--){const e=n[t];if(!e.attributes||!e.attributes.box||e.attributes.type!=="br")break}return t===n.length-1?n:n.slice(0,t+1)}const R3=_("delete-text");function tC(n,t,e){const{left:r,right:i}=Cn(n,t,e),o=[...r,...i];return Z1(o)}function w3(n,t){p(R3,n>=0,`invalid offset: ${n}`),p(R3,t>=1,`invalid delete count: ${t}`);const e=[];return n!==0&&e.push({retain:n}),e.push({delete:t}),e}const S3=_("delta");function L3(n,t){const e=new Vn.default(n),r=new Vn.default(t);return e.diff(r).ops}function z8(n,t,e){return new Vn.default(t).transformPosition(n,!e)}function W8(n){p(S3,n,"ops is null or undefined");for(let t=0;t<n.length;t++){const e=n[t];if(e.insert===null||e.insert===void 0||e.retain!==void 0||e.delete!==void 0)return!1}return!0}function G8(n,t){const e=new Vn.default(n),r=new Vn.default(t);return e.compose(r).ops}class Hn{static ensureValidText(t){p(S3,W8(t),`text is not a valid text, ${JSON.stringify(t)}`)}static diff(t,e){return this.ensureValidText(t),this.ensureValidText(e),L3(t,e)}static transformCursor(t,e,r){return z8(t,e,r)}static transformOffset(t,e,r){const i=L3(t,e),o=new Vn.default(i);return r.map(s=>o.transformPosition(s))}static apply(t,e){this.ensureValidText(t);const r=G8(t,e);return this.ensureValidText(r),r}}const I3=_("insert-text");function ns(n,t,e,r){p(I3,e,`invalid text to insert: ${e}`);const{left:i,right:o}=sr(n,t),s=typeof e=="string"?[ti(e,r)]:e,l=[...i,...s,...o];return Z1(l)}function D3(n){return{insert:" ",attributes:n}}function Wm(n,t,e){if(p(I3,n>=0,`invalid offset: ${n}`),t.length===0)return[];const r=[];if(n>0&&r.push({retain:n}),typeof t!="string")return r.push(...t),r;const o={insert:t.replaceAll(`\r
@@ -971,4 +971,4 @@ ${o.mermaidText}
971
971
  ${o.flowchartText}
972
972
  \`\`\`\`\`\``}return""}const itt={embedType:"flowchart",convertFrom:ett,handleUpdateBlock:ttt,createEmbedContent:ZZ,getBlockProperties:ntt,convertTo:rtt},ott=_("plantuml-helper");function cL(n,t){var l;let r=((l=(n.getComponentOptions("plantuml")||{}).cdn)==null?void 0:l.plantuml)||UZ;r.endsWith("/")||(r+="/");const i=KI.default.encode(t);p(ott,i,i),r+=i;const s=new URLSearchParams(document.location.search).get("doc");return r1(r,{id:`${s}-${rt()}`})}async function stt(n,t){try{const e=await Fx(n,t);return(await n.doc.uploadResource(e)).resourceId}catch{return Promise.resolve(t)}}class qu extends Hx{constructor(t){super(t,"plantuml","plantumlText")}static get(t,e){return t.addCustom(`plantuml-${e.id}`,()=>new qu(t))}code2ObjectUrl(t){return Promise.resolve(cL(this.editor,t))}code2ResourceId(t){const e=cL(this.editor,t);return stt(this.editor,e)}destroy(){}}function ltt(n,t,e){qu.get(n,e).createEmbedContent(t,e)}function att(n,t,e){const r=qu.get(n,e),i=$t(t);return r.updateEmbedContent(i,e),!0}function ctt(n,t,e){const{data:r}=e,i=n.getBlockString(t).trim();if(!r||r.embedType!=="plantuml"||i!=="```plantuml"||!at(n,t))return null;const o={src:"",plantumlText:""};return{blockData:{id:rt(),type:"embed",embedType:"plantuml",embedData:o},onConverted:(c,f)=>{qu.get(c,c.getBlockData(f)).editGraph($t(f))}}}function utt(n,t){return qu.get(n,n.getBlockData(t)).getBlockProperties(t)}function ftt(n,t,e,r){const{embedData:i}=t,o=i;if(r==="html")return o.src?`<img src="${n.doc.buildResourceUrl(o.src,{withToken:!0})}" />`:o.flowchartText?`<div>${o.flowchartText}</div>`:"<p>[plantuml]</p>";if(r==="markdown"){if(o.src)return`![plantuml](${n.doc.buildResourceUrl(o.src,{withToken:!0})})`;if(o.flowchartText)return`\`\`\`plantuml\`\`\`
973
973
  ${o.flowchartText}
974
- \`\`\`\`\`\``}return""}const dtt={embedType:"plantuml",convertFrom:ctt,handleUpdateBlock:att,createEmbedContent:ltt,getBlockProperties:utt,convertTo:ftt},Lut="",htt="hr",mtt={dividingLine:{type:"\u5206\u5272\u7EBF",abstract:"\u5206\u5272\u7EBF"}},gtt={dividingLine:{type:"Dividing-Line",abstract:"Dividing-Line"}},ptt={dividingLine:{type:"\u533A\u5207\u308A\u7DDA",abstract:"\u533A\u5207\u308A\u7DDA"}};D.mergeLang({"zh-CN":mtt,"en-US":gtt,"ja-JP":ptt});function Ctt(n,t){const e=B("div",["editor-embed-container"],t);B("hr",["editor-embed-hr"],e)}function Ett(n,t,e,r){return r==="html"?"<hr />":r==="markdown"?"---":"------------"}function btt(){return{name:"hr",insertEmbedCommandItems:[{id:"insert-hr",name:D.t("dividingLine.type"),icon:a2,order:500,group:"common",subText:Qn("insert-hr")}],handleInsertEmptyEmbed:async(n,t)=>{const{containerId:e,blockIndex:r}=t;return n.insertEmbed(e,r,htt,{})}}}function xtt(n,t,e){const{data:r}=e;if(!r||r.embedType!=="dividing-line"||!at(n,t))return null;const i={};return{blockData:{id:rt(),type:"embed",embedType:"hr",embedData:i}}}function Att(){return{abstract:D.t("dividingLine.abstract")}}const vtt={embedType:"hr",createEmbedContent:Ctt,convertTo:Ett,getOptions:btt,convertFrom:xtt,getBlockProperties:Att},Iut="",Dut="",Btt={media:{upload:{failed:'<div class="line-1">{name}\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8BD5</span></div>',maxSizeFailed:'<div class="line-1">{name}\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7\u9650\u5236\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6</div>'},load:{failed:'<div class="line-1">{name}\u52A0\u8F7D\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8BD5</span></div>'},audio:{menuItem:"\u97F3\u9891",abstract:"\u97F3\u9891"},video:{menuItem:"\u89C6\u9891",abstract:"\u89C6\u9891"}}},ytt={media:{upload:{failed:'<div class="line-1">{name} upload failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>',maxSizeFailed:'<div class="line-1">{name} upload failed</div><div class="line-2">The file size exceeds limit. Please choose another file.</div>'},load:{failed:'<div class="line-1">{name} loading failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>'},audio:{menuItem:"Audio",abstract:"Audio"},video:{menuItem:"Video",abstract:"Video"}}},Ttt={media:{upload:{failed:'<div class="line-1">{name}\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <span class="retry-upload">\u518D\u8A66\u884C</span></div>',maxSizeFailed:'<div class="line-1">{name}\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F</div><div class="line-2">\u30D5\u30A1\u30A4\u30EB\u306E\u30B5\u30A4\u30BA\u304C\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u308B\u305F\u3081\u3001\u4ED6\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044</div>'},load:{failed:'<div class="line-1">{name}\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <span class="retry-upload">\u518D\u8A66\u884C</span></div>'},audio:{menuItem:"\u97F3\u58F0",abstract:"\u97F3\u58F0"},video:{menuItem:"\u52D5\u753B",abstract:"\u52D5\u753B"}}};D.mergeLang({"zh-CN":Btt,"en-US":ytt,"ja-JP":Ttt});var Vi=(n=>(n.AUDIO="audio",n.VIDEO="video",n))(Vi||{}),Eh=(n=>(n.Empty="empty",n.Progress="progress",n.Error="error",n))(Eh||{});const uL=10*1024*1024,ktt=["wav","mp3","aac","ogg","webm","flac"],Rtt=["ogg","mp4","webm"],wtt=()=>{};function fL(n){var h,C,E,b,v,k;const t=(h=n.getComponentOptions("media"))!=null?h:{},{allowedMedias:e,maxSize:r,callbacks:i}=t,o=(C=e==null?void 0:e.audio)!=null?C:ktt,s=(E=e==null?void 0:e.video)!=null?E:Rtt,l=(b=r==null?void 0:r.audio)!=null?b:uL,c=(v=r==null?void 0:r.video)!=null?v:uL,f=(k=i==null?void 0:i.onError)!=null?k:wtt;return{allowedMedias:{audio:o,video:s},maxSize:{audio:l,video:c},callbacks:{onError:f}}}function Stt(n,t){const e=o=>o.map(s=>`.${s}`).join(","),{allowedMedias:r}=fL(n),i=r[t];return i?e(i):"*"}function Ltt(n,t,e){const{maxSize:r,callbacks:i,allowedMedias:o}=fL(t),{[e]:s}=r,{[e]:l}=o;if(s&&n.size>s){const f=new Error("media is too large");throw f.code=`MaxMediaSize-${e}`,i!=null&&i.onError&&(i==null||i.onError(t,f)),f}const c=Pf(n.name);if(l&&!l.includes(c.toLowerCase())){const f=new Error(`media file is not allowed: ${c}`);throw f.code="NotAllowedFile",i!=null&&i.onError&&(i==null||i.onError(t,f)),f}}function Itt(n){return n===Eh.Empty||n===Eh.Error}const bn=_("media");class Dtt extends $e.TypedEmitter{constructor(e){super();m(this,"mediaContainer",null);m(this,"media",null);m(this,"abstract",null);m(this,"handleMediaLoadError",(e,r)=>{if(!r.target||!(r.target instanceof Node)||!(r.target instanceof Element?r.target:r.target.parentElement))return;const o=Q(r.target);if(!o||!o.contains(this.mediaContainer))return;const s=this.renderError();this.updateMediaContent(s),this.emit("mediaError",e,"load_error",dt(o))});m(this,"handleUploadFile",async e=>{p(bn,this.abstract,"no abstract"),p(bn,this.mediaContainer,"The media element not exist");const{editor:r}=this.options,i=Q(this.mediaContainer);p(bn,i,"The block element not exist");const o=r.getBlockData(i);try{const{resourceId:s}=await r.doc.uploadResource(e,{onProgress:C=>{this.renderProgress(C,e)}}),{name:l,type:c,size:f}=e,h={...o,embedData:{...o.embedData,src:s,fileName:l,fileSize:f,fileType:c}};r.updateBlockData(i,h)}catch(s){bn.error(s),this.emit("mediaError",r,"upload_error",o.id),this.renderRetry(e,s)}lt(i,"media-block-uploading")});m(this,"destroy",()=>{this.mediaContainer=null});this.options=e}bindMediaEvent(){const{editor:e}=this.options;this.media&&e.domEvents.addEventListener(this.media,"error",this.handleMediaLoadError)}unbindMediaEvent(){const{editor:e}=this.options;this.media&&e.domEvents.removeEventListener(this.media,"error",this.handleMediaLoadError)}updateMediaContent(e){p(bn,this.mediaContainer,"The media element not exist"),this.mediaContainer.innerHTML="",this.mediaContainer.append(e)}renderError(){p(bn,this.abstract,"no abstract");const{editor:e,createMediaElement:r}=this.options,{mediaIcon:i,mediaName:o}=this.abstract;p(bn,this.mediaContainer,"The media element not exist");const s=Q(this.mediaContainer);p(bn,s,"The block element not exist");const l=e.getBlockData(s),c=B("div",["media-error","embed-selected-content","embed-hover-content"],null),f=B("span",["media-error-icon"],c);f.innerHTML=i;const h=B("div",[],c);h.innerHTML=D.t("media.load.failed",{name:o}),c.appendChild(h);const C=h.querySelector(".retry-upload");return p(bn,C,"The element not exist"),e.domEvents.addEventListener(C,"click",(E,b)=>{const v=B("div",["media-element"],null),k=this.getResourceUrl(l),w=r(E,v,l,k);this.unbindMediaEvent(),this.media=w,this.bindMediaEvent(),this.updateMediaContent(v)}),this.setFullScreen(),c}renderRetry(e,r){var E,b;p(bn,this.abstract,"no abstract");const{editor:i}=this.options,{mediaIcon:o,mediaName:s}=this.abstract,l=B("div",["media-error","embed-selected-content","embed-hover-content"],null),c=B("span",["media-error-icon"],l);c.innerHTML=o;const f=B("div",[],l);let h=D.t("media.upload.failed",{name:s});(((E=r.response)==null?void 0:E.status)===420||((b=r.response)==null?void 0:b.status)===413)&&(h=D.t("media.upload.maxSizeFailed",{name:s})),f.innerHTML=h,l.appendChild(f);const C=f.querySelector(".retry-upload");C&&i.domEvents.addEventListener(C,"click",()=>{i.readonly||(p(bn,this.abstract,"no abstract"),this.handleUploadFile(e))}),this.updateMediaContent(l),this.setFullScreen()}renderProgress(e,r){p(bn,this.mediaContainer,"The media element not exist");const i=this.mediaContainer.querySelector(":scope .media-progress"),o=e===-1||e===100?100:e;if(i){const{updateProgressElement:s}=this.options;s(i,o)}else{const{createProgressElement:s}=this.options,l=Q(this.mediaContainer);p(bn,l,"The element not exist"),z(l,"media-block-uploading");const c=B("div",["media-progress"],null);s(c,o,r),this.updateMediaContent(c)}this.setFullScreen()}renderMediaElement(e,r){p(bn,this.mediaContainer,"The media element not exist");const i=this.mediaContainer.querySelector(":scope > .media-element"),{createMediaElement:o,updateMediaElement:s,editor:l}=this.options,c=this.getResourceUrl(e,r);if(i){const f=s(l,i,e,c);this.unbindMediaEvent(),this.media=f,this.bindMediaEvent()}else{const f=B("div",["media-element"],null),h=o(l,f,e,c);this.unbindMediaEvent(),this.media=h,this.bindMediaEvent(),this.updateMediaContent(f)}}renderEmpty(e){p(bn,this.abstract,"no abstract"),p(bn,this.mediaContainer,"The media element not exist");const r=B("div",["media-empty","embed-selected-content","embed-hover-content"],this.mediaContainer);r.innerHTML=this.abstract.mediaIcon,this.updateMediaContent(r);const{editor:i}=this.options;i.findBlockById(e.id)&&this.emit("mediaError",i,"empty",e.id),this.setFullScreen()}getResourceUrl(e,r){const{src:i}=e.embedData,{editor:o}=this.options;return o.doc.buildResourceUrl(i,{syncNewResources:async(s,l)=>{var f,h;if(!r)return;await o.doc.addResources([s]);const c=(h=(f=o.doc).getServerMeta)==null?void 0:h.call(f).appId;if(l!==e.embedData.src&&c&&e.embedData.src.includes(c)){const C=Q(r);if(C&&!o.readonly&&o.isBlockWritable(C)){const E=At.default(e);E.embedData.src=s,o.updateBlockData(C,E)}}}})}setFullScreen(){p(bn,this.mediaContainer,"The media element not exist"),z(this.mediaContainer,"full-screen")}removeFullScreen(){p(bn,this.mediaContainer,"The media element not exist"),lt(this.mediaContainer,"full-screen")}updateBlockAlign(e,r){const i=Q(r);p(bn,i,"The block element not exist");const{align:o}=e;e.embedType==="video"&&(i.hasAttribute("data-style-align")&&i.removeAttribute("data-style-align"),i.setAttribute("data-style-align",o))}render(e,r){const{src:i}=e.embedData;(!this.mediaContainer||!r.contains(this.mediaContainer))&&(this.mediaContainer=B("div",["media"],r)),this.updateBlockAlign(e,r),Itt(i)?i===Eh.Empty&&this.renderEmpty(e):this.renderMediaElement(e,r)}setAbstract(e){this.abstract=e}}_("media-embed");const _tt="left";class dL{constructor(){m(this,"handleInsertEmptyEmbed",async(t,e)=>{var C;const{containerId:r,blockIndex:i}=e;let o;(C=e.data)!=null&&C.file&&(o=e.data.file);const s=Stt(t,this.embedType);if(o=o!=null?o:await $c(s,{}),!o)return null;const{mediaType:l}=this.getAbstract();try{Ltt(o,t,l)}catch{return null}const c={id:rt(),type:"embed",embedType:this.embedType,embedData:{src:Eh.Empty}};l==="video"&&(c.align=_tt);const f=t.insertBlock(r,i,c);return await this.getMedia(t,c.id).handleUploadFile(o),f})}getMedia(t,e){const r=t.addCustom(`media-${e}`,()=>new Dtt({editor:t,createMediaElement:this.createMediaElement,updateMediaElement:this.updateMediaElement,createProgressElement:this.createProgressElement,updateProgressElement:this.updateProgressElement}));return r.setAbstract({...this.getAbstract()}),r}getOptions(){const{menuItem:t,mediaIcon:e,mediaName:r,order:i,group:o}=this.getAbstract();return{name:r,insertEmbedCommandItems:[{id:`insert-${this.embedType}`,name:t,icon:e,order:i,group:o,subText:Qn(`insert-${this.embedType}`)}],handleInsertEmptyEmbed:this.handleInsertEmptyEmbed}}createEmbedContent(t,e,r){const{id:i}=r;this.getMedia(t,i).render(r,e)}handleUpdateBlock(t,e,r){const{id:i}=r,o=this.getMedia(t,i),s=$t(e);return o.render(r,s),!0}handleDeleteBlock(t,e){const r=e.id,i=this.getMedia(t,r);i.removeAllListeners(),i.destroy()}convertTo(t,e,r,i){const o=e.embedData,s=t.doc.buildResourceUrl(o.src,{withToken:!0});return i==="html"?`<${o.type} src="${s}" />`:i==="markdown"?`![${o.src}](${s})`:s}}function hL(n,t){const e=B("div",["uploading-progress-mask"],n),r=B("div",["uploading-progress-bar"],e),i=B("div",["uploading-progress-bar-value"],r);i.style.width=`${t}%`}function mL(n,t){const e=n.querySelector(".uploading-progress-bar-value");e&&(e.style.width=`${t}%`)}const Mtt=_("media-audio");class Ott extends dL{constructor(){super(...arguments);m(this,"embedType",Vi.AUDIO);m(this,"updateProgressElement",mL);m(this,"createMediaElement",(e,r,i,o)=>{const s=B("div",["audio-container","embed-hover-content","embed-selected-content"],r),l=B("audio",[],s);return l.innerHTML="Your browser does not support the <code>audio</code> element.",l.controls=!0,l.src=o,setTimeout(()=>{this.getMedia(e,i.id).setFullScreen()}),l})}getAbstract(){return{mediaIcon:o2,mediaName:D.t(`media.${Vi.AUDIO}.menuItem`),menuItem:D.t(`media.${Vi.AUDIO}.menuItem`),order:800,mediaType:Vi.AUDIO,group:"common"}}getBlockProperties(){return{abstract:`${D.t(`media.${Vi.AUDIO}.abstract`)}`}}updateMediaElement(e,r,i,o){const s=r.querySelector(":scope .audio-container > audio");return p(Mtt,s,"The media element not exist"),s.src!==o&&(s.src=o),s}createProgressElement(e,r){const i=B("audio",[],e);i.innerHTML="Your browser does not support the <code>audio</code> element.",i.controls=!0,i.src="about:blank",hL(e,r)}}const Utt=new Ott;_("video-resizer");function gL(n){return n&&me(n)&&Ge(n)==="video"}const Ntt=50;class jx{constructor(t){m(this,"currentResizableElement",null);m(this,"resizing",!1);m(this,"handleHoveringBlockChange",(t,e)=>{if(!this.resizing&&!window.isDragging&&(e&&gL(e)&&this.disableBlockResize(e),t&&gL(t)&&this.editor.isBlockWritable(t))){const r=this.getVideoElement(t);if(!r)return;this.enableBlockResize(t,r)}});m(this,"handleResizing",(t,e)=>{if(this.resizing=!0,!this.currentResizableElement)return;const r=t.getBlock();if(!r)return;const i=r.getBoundingClientRect().width,o=Math.min(Math.max(e.width,Ntt),i);this.currentResizableElement.style.width=`${o}px`,this.currentResizableElement.style.pointerEvents="none"});m(this,"handleResized",t=>{this.resizing=!1;const e=t.getBlock();if(!this.currentResizableElement||!e)return;const r=this.editor.getBlockData(e),{width:i}=this.currentResizableElement.getBoundingClientRect();this.currentResizableElement.style.pointerEvents="auto",this.editor.updateBlockData(e,{...r,width:i})});this.editor=t,We.get(t).addListener("change",this.handleHoveringBlockChange)}destroy(){this.currentResizableElement=null,We.get(this.editor).removeListener("change",this.handleHoveringBlockChange)}getVideoElement(t){return $t(t).querySelector(":scope .video-container > video")}updateResizer(t){const e=this.editor.findCustom(`${dt(t)}-resizer`);e&&e.updateResizer()}disableBlockResize(t){const e=this.editor.findCustom(`${dt(t)}-resizer`);e&&e.disableResize()}enableBlockResize(t,e){const r=this.editor.addCustom(`${dt(t)}-resizer`,()=>new Zd(this.editor,{resize:["top-left","top-right","bottom-left","bottom-right"]}));r.enableResize(t,e),r.removeListener("resizing",this.handleResizing),r.removeListener("resized",this.handleResized),r.addListener("resizing",this.handleResizing),r.addListener("resized",this.handleResized),this.currentResizableElement=e}}class Ptt{constructor(t,e){m(this,"group","hovering-toolbar");m(this,"_commands",[{id:"addComment",name:D.t("comment.quickMenuCommand"),icon:cs},{id:"sep",name:"",type:"separator"},{id:"left",name:D.t("commands.alignLeft"),icon:xl},{id:"center",name:D.t("commands.alignCenter"),icon:fu},{id:"right",name:D.t("commands.alignRight"),icon:uu}]);this.editor=t,this.block=e,this.editor=t,this.block=e}createIconItem(t,e,r){if(!t)return null;const i=["style-icon","text-style-item"];return e&&i.push("active"),jo(t,i,r)}get commands(){if(this.editor.readonly)return[];const t=this.block.getAttribute("data-style-align");return this._commands.map(r=>r.id===t?{...r,element:()=>{const i=B("div",["video-tooltip-align-style-section"],null);return this.createIconItem(r.icon,!0,i),i}}:r)}executeCommand(t,e,r){switch(r.id){case"addComment":Na(t,e);break;case"left":case"center":case"right":hg(t,e,r.id);break}}}const Ftt=_("video");class Ktt extends dL{constructor(){super(...arguments);m(this,"embedType",Vi.VIDEO);m(this,"updateProgressElement",mL);m(this,"createMediaElement",(e,r,i,o)=>{const s=B("div",["video-container","embed-selected-content","drag-preview-element"],r),l=B("video",[],s);return l.innerHTML="Your browser does not support the <code>video</code> element.",l.controls=!0,l.src=o,l.addEventListener("canplay",()=>{e.addCustom("video-resizer",()=>new jx(e)),this.getMedia(e,i.id).removeListener("mediaError",this.handleMediaError),this.getMedia(e,i.id).addListener("mediaError",this.handleMediaError),this.getMedia(e,i.id).removeFullScreen()}),i.width&&(l.style.width=`${i.width}px`),l});m(this,"createProgressElement",(e,r,i)=>{const o=B("video",["progress-video"],e);o.innerHTML="Your browser does not support the <code>audio</code> element.",o.controls=!0,hL(e,r),Vc(i).then(s=>{const l=e.querySelector(".progress-video");l&&v1(e)&&(l.src=s)})})}getAbstract(){return{mediaName:D.t(`media.${Vi.VIDEO}.menuItem`),mediaIcon:s2,menuItem:D.t(`media.${Vi.VIDEO}.menuItem`),order:700,mediaType:Vi.VIDEO,group:"common"}}getBlockProperties(e,r){return{abstract:`${D.t(`media.${Vi.VIDEO}.abstract`)}`,blockCommands:{"hovering-toolbar":new Ptt(e,r)}}}handleMediaError(e,r,i){const o=e.addCustom("video-resizer",()=>new jx(e)),s=e.getBlockById(i);o.disableBlockResize(s)}updateMediaElement(e,r,i,o){const s=r.querySelector(":scope .video-container > video");p(Ftt,s,"The media element not exist"),s.src!==o&&(s.src=o),i.width?s.style.width=`${i.width}px`:s.style.width="";const l=e.getBlockById(i.id);return setTimeout(()=>{e.addCustom("video-resizer",()=>new jx(e)).updateResizer(l)}),s}}const Vtt=new Ktt,zx=[UR,XR,YR,wK,G4],Wx=[oL,VQ,XZ,itt,dtt,lV,vtt,Vtt,Utt,hW,k4,zX],pL=[sR,S4,QS,dR];function $tt(n,t,e){var i,o,s,l;Ei.level=(i=e.logLevel)!=null?i:rl.DEBUG;const r=pd(n,t,{components:{blocks:[...zx,...((o=e==null?void 0:e.components)==null?void 0:o.blocks)||[]],embeds:[...Wx,...((s=e.components)==null?void 0:s.embeds)||[]],boxes:[...pL,...((l=e.components)==null?void 0:l.boxes)||[]],textRenders:[new sb],options:{...e.componentsOptions}}});return r.readonly=!0,r.addCustom("heading-collapse",()=>new kx(r)),r.addCustom("editor-tooltip",()=>new zd(r)),r.addListener("clickLink",(c,f,h)=>{var E;if((E=e==null?void 0:e.events)!=null&&E.onClickLink){e.events.onClickLink(c,f,h);return}const C=h.getAttribute("link");C&&(c.readonly||f.ctrlKey||f.metaKey)&&window.open(C,"_blank")}),r}class CL{constructor(t){this.createOptions=t,t.lang&&D.setLang(t.lang)}createHistoryEditor(t,e){return $tt(t,e,this.createOptions)}}function EL(n,{root:t,childDoc:e,doc:r}){var h,C;e.uploadResource=r.uploadResource.bind(r),e.buildResourceUrl=r.buildResourceUrl.bind(r);const i=n.getComponentOptions("comment"),o={image:{defaultAlign:"left"},table:{locatingContainer:t,hideCellMenu:!0,hideToolbar:!0},...i==null?void 0:i.componentsOptions},s=[];n.editorBlocks.forEach(E=>{E.blockType==="text"||E.blockType==="embed"||s.push(E)});const l=[];n.editorEmbeds.forEach(E=>{l.push(E)});const c=[];n.editorBoxes.forEach(E=>{E.boxType==="text"||E.boxType==="br"||E.boxType==="image"||E.boxType==="anchor"||c.push(E)});const f=pd(t,e,{shortcuts:[g0],components:{blocks:s,commandProviders:[new q0],decorators:[new vg],embeds:l,boxes:c,options:o}});if(f.input.addHandler(new yg),f.input.addHandler(new Zb(f)),f.input.addHandler(new ox(f)),f.input.addHandler(new iX(f)),f.input.addHandler(new wg),f.addCustom("image-paste-handler",()=>new Yb(f)),f.addCustom("layout-paste-handler",()=>new Ux(f,!1)),ye.isMobile||f.addCustom("editor-tooltip",()=>new zd(f)),n.options.enableContextMenu!==!1&&f.addCustom("editor-context-menu",E=>new ax(E)),(h=n.options.componentsOptions)!=null&&h.mention){const E=n.options.componentsOptions.mention;f.addCustom("mention",()=>new w4(f,{...E}))}if((C=n.options.componentsOptions)!=null&&C.comment){const E=n.options.componentsOptions.comment;E.onCommentEditorClick&&f.addListener("click",E.onCommentEditorClick)}return f}function Htt(n,t){const e=Array.from(n.rootContainer.querySelectorAll(`[comment-${t.toLocaleLowerCase()}="${t}"]`)),r=new Set;e.forEach(i=>{const o=Q(i);o&&r.add(o)}),r.forEach(i=>{oX(n,i,t)})}class jtt{constructor(t){m(this,"listeners",new Set);m(this,"doc");this.editor=t,this.doc=this.editor.doc.externalDoc,this.doc.registerCallback(this)}getComments(){return this.doc.getComments()}getComment(t){return this.doc.getComment(t)}getCommentDoc(t){return this.doc.getCommentDoc(t)}localCreateComment(t,e){this.doc.localCreateComment(t,e)}localDeleteComment(t){const e=this.getComment(t);this.doc.localDeleteComment(t);const r=e.groupId;this.getComments().filter(o=>o.groupId===r).length===0&&Htt(this.editor,r)}localUpdateComment(t,e){this.doc.localUpdateComment(t,e)}onCreateComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onCreateComment(t,e))}onDeleteComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onDeleteComment(t,e))}onUpdateComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onUpdateComment(t,e))}addListener(t){this.listeners.add(t)}removeListener(t){this.listeners.delete(t)}createCommentEditor(t,e){return EL(this.editor,{root:t,childDoc:e,doc:this.doc})}allowEdit(t){return t.userId===this.doc.getUser().userId}}class ztt{constructor(t,e){m(this,"listeners",new Set);this.editor=t,this.localDoc=e}get doc(){return this.localDoc.toJSON()}getComments(){return Object.values(this.doc.comments)}getComment(t){return this.doc.comments[t]}getCommentDoc(t){const e=this.doc.comments[t];return iE(e)}addListener(t){this.listeners.add(t)}removeListener(t){this.listeners.delete(t)}localCreateComment(t,e){}localDeleteComment(t){}localUpdateComment(t,e){}createCommentEditor(t,e){return EL(this.editor,{root:t,childDoc:e,doc:this.localDoc})}allowEdit(t){return t.userId===this.localDoc.getUser().userId}}const Wtt={placeholder:{common:{title:"\u8BF7\u8F93\u5165\u6807\u9898",readonlyTitle:"\u8BF7\u8F93\u5165\u6807\u9898",content:"\u70B9\u51FB + \uFF0C\u6216\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6",contentInTable:"\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6"},local:{readonlyTitle:"\u672A\u547D\u540D"}},copyCutProperty:{copy:"\u590D\u5236",cut:"\u526A\u5207",unsafeEnvTips:"\u7531\u4E8E\u5F53\u524D http \u8BBF\u95EE\u73AF\u5883\u4E0B\u7684\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528\u5FEB\u6377\u952E({shortCut}) {operation}",limitedEnvTips:"\u7531\u4E8E\u6D4F\u89C8\u5668\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528 {shortCut} \u7C98\u8D34"}},Gtt={placeholder:{common:{title:"Enter a title",readonlyTitle:"Enter a title",content:'Click "+", or enter "/" to insert components quickly',contentInTable:'Enter "/" to insert components quickly'},local:{readonlyTitle:"Untitled"}},copyCutProperty:{copy:"Copy",cut:"Cut",unsafeEnvTips:"Due to the limitations of the current http access environment, please use the shortcut ({shortCut}) {operation}",limitedEnvTips:"Press {shortCut} to paste due to browser restrictions"}},qtt={placeholder:{common:{title:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",readonlyTitle:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",content:"\u300C+\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u304B\u3001\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059",contentInTable:"\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059"},local:{readonlyTitle:"\u7121\u984C"}},copyCutProperty:{copy:"\u8907\u88FD",cut:"\u5207\u308B",unsafeEnvTips:"HTTP\u74B0\u5883\u306E\u5236\u7D04\u306B\u3088\u308A\u3001{operation}\u3059\u308B\u306B\u306F\u3001\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8({shortCut}) \u3092\u3054\u4F7F\u7528\u304F\u3060\u3055\u3044",limitedEnvTips:"\u30D6\u30E9\u30A6\u30B6\u30FC\u306E\u5236\u9650\u306B\u3088\u308A\u3001\u300C{shortCut}\u300D\u3092\u4F7F\u7528\u3057\u3066\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044"}};D.mergeLang({"zh-CN":Wtt,"en-US":Gtt,"ja-JP":qtt});const Xtt="UEsDBBQABgAIAAAAIQBk9WPugQEAACkGAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAMsaAAB3b3JkL3dlYlNldHRpbmdzLnhtbFBLAQItABQABgAIAAAAIQA520VMuQUAACdaAAASAAAAAAAAAAAAAAAAADYcAAB3b3JkL251bWJlcmluZy54bWxQSwECLQAUAAYACAAAACEA+JXI7/wOAADzmQAADwAAAAAAAAAAAAAAAAAfIgAAd29yZC9zdHlsZXMueG1sUEsBAi0AFAAGAAgAAAAhAMySUFR9AQAA8QIAABEAAAAAAAAAAAAAAAAASDEAAGRvY1Byb3BzL2NvcmUueG1sUEsBAi0AFAAGAAgAAAAhACJREfHVAQAA3gMAABAAAAAAAAAAAAAAAAAA/DMAAGRvY1Byb3BzL2FwcC54bWxQSwECLQAUAAYACAAAACEAiD+lv+EAAABVAQAAGAAAAAAAAAAAAAAAAAAHNwAAY3VzdG9tWG1sL2l0ZW1Qcm9wczEueG1sUEsBAi0AFAAGAAgAAAAhAMEnywi2AAAAIQEAABMAAAAAAAAAAAAAAAAARjgAAGN1c3RvbVhtbC9pdGVtMS54bWxQSwECLQAUAAYACAAAACEAdD85esIAAAAoAQAAHgAAAAAAAAAAAAAAAABVOQAAY3VzdG9tWG1sL19yZWxzL2l0ZW0xLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAOuAYExTAwAAjw4AABIAAAAAAAAAAAAAAAAAWzsAAHdvcmQvZm9udFRhYmxlLnhtbFBLBQYAAAAADwAPANQDAADePgAAAAA=",Ytt=()=>i1(Xtt),Jtt=_("image-to-docx");async function Qtt(n){return new Promise((t,e)=>{const r=new Image;r.onload=()=>{t({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=e,r.src=n})}async function bL(n,t){if(n.width&&n.height)return{width:n.width,height:n.height,buffer:t};try{const e=await Vc(new File([t],"",{})),r=await Qtt(e);return r.width===void 0||r.height===void 0?{width:345,height:230,buffer:t}:n.width||n.height?{width:n.width||r.width*n.height/r.height,height:n.height||r.height*n.width/r.width,buffer:t}:{width:r.width,height:r.height,buffer:t}}catch(e){Jtt.error(e);return}}function Ztt(n,t){let e=n.filter(s=>s!=null);const r=t-(e.length-1)*20,i=.87,o=e.reduce((s,l)=>s+l.width,0);return o>r&&(e=e.map(s=>({width:s.width*r/o,height:s.height*r/o,buffer:s.buffer}))),e.map(s=>({width:s.width*i,height:s.height*i,buffer:s.buffer}))}function tet(n,t,e){if(!e||typeof e!="object")return;const r=e,i=n.filter(s=>s!=null),o=t-(i.length-1)*20;i.forEach((s,l)=>{if(i.length===1&&r.widthPercent){const f=r.widthPercent,h=s.width;s.width=o*(f/100),s.height*=s.width/h;return}const c=`${l}_flex`;if(r[c]){const f=r[c],h=s.width;s.width=o*f,s.height*=s.width/h}})}function xL(n=[0,1,2,3,4,5,6,7],t=1){return n.map(e=>{let r;switch(e%3){case 0:r=Bt.LevelFormat.DECIMAL;break;case 1:r=Bt.LevelFormat.LOWER_LETTER;break;default:r=Bt.LevelFormat.LOWER_ROMAN;break}return{level:e,format:r,text:`%${e+1}. `,alignment:Bt.AlignmentType.START,start:t,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(e+1)),hanging:Bt.convertInchesToTwip(.2)}}}}})}function eet(){return[0,1,2,3,4,5,6,7].map(n=>{let t;switch(n%3){case 0:t="\u2022";break;case 1:t="\u25E6";break;default:t="\u25AA";break}return{level:n,format:Bt.LevelFormat.BULLET,text:t,alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}})}function net(){return[0,1,2,3,4,5,6,7].map(n=>({level:n,format:Bt.LevelFormat.BULLET,text:"\u2611",alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}))}function ret(){return[0,1,2,3,4,5,6,7].map(n=>({level:n,format:Bt.LevelFormat.BULLET,text:"\u2610",alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}))}var bh=(n=>(n.NUMBERING="number-numbering-reference",n.BULLET="number-bullet-reference",n.CHECKED="checked-bullet-reference",n.UNCHECKED="unchecked-bullet-reference",n))(bh||{});const iet=[{levels:xL(),reference:"number-numbering-reference"},{levels:eet(),reference:"number-bullet-reference"},{levels:net(),reference:"checked-bullet-reference"},{levels:ret(),reference:"unchecked-bullet-reference"}];function oet(n){switch(n){case"style-color-0":return"d83931";case"style-color-1":return"de7802";case"style-color-2":return"dc9b04";case"style-color-3":return"2ea121";case"style-color-4":return"245bdb";case"style-color-5":return"6425d0";case"style-color-6":return"8f959e";default:return}}function set(n){switch(n){case"style-bg-color-1":case"style-bg-color-2":case"style-bg-color-8":case"style-bg-color-9":return"yellow";case"style-bg-color-0":case"style-bg-color-5":return"magenta";case"style-bg-color-3":return"green";case"style-bg-color-4":case"style-bg-color-11":return"blue";case"style-bg-color-6":return"lightGray";case"style-bg-color-7":return"red";case"style-bg-color-10":return"darkGreen";case"style-bg-color-12":return"darkMagenta";case"style-bg-color-13":return"darkGray";default:return}}function aet(n){switch(n){case"style-bg-color-0":return"fbbab6";case"style-bg-color-1":return"ffdcb0";case"style-bg-color-2":return"fff7a0";case"style-bg-color-3":return"ceefc5";case"style-bg-color-4":return"d1ddfb";case"style-bg-color-5":return"d9cbf8";case"style-bg-color-6":return"eaeaea";case"style-bg-color-7":return"fe837c";case"style-bg-color-8":return"ffbd6a";case"style-bg-color-9":return"ffe662";case"style-bg-color-10":return"a8f393";case"style-bg-color-11":return"98b5ff";case"style-bg-color-12":return"b394f8";case"style-bg-color-13":return"b1b1b1";default:return}}const cet=/rgb\((\d+),\s*(\d+),\s*(\d+)\)/;function AL(n){if(typeof n=="string"&&n.length>0){if(n[0]==="#")return n.substring(1);const t=n.match(cet);if(t){const e=s=>{let l=Number(s).toString(16);return l.length<2&&(l=`0${l}`),l},r=e(t[1]),i=e(t[2]),o=e(t[3]);return`${r}${i}${o}`}if(n==="red")return"FF0000";if(n==="green")return"00FF00";if(n==="blue")return"0000FF"}}function On(n,t){if(n&&n.attributes&&n.attributes[t])return n.attributes[t];if(n&&n.attributes&&n.attributes.box&&n.attributes.inputType&&t==="style-underline")return!0}function vL(n,t,e){for(let r=0;r<=e;++r){const i=`${t}${r}`;if(On(n,i))return i}}function tp(n,t,e){n.attributes=n.attributes||{},n.attributes[t]=e}function Gx(n){return n==="image"||n==="drawio"||n==="plantuml"||n==="mermaid"||n==="flowchart"}function BL(n){return n&&n.startsWith("//")?`https:${n}`:n&&!n.startsWith("http://")&&!n.startsWith("https://")?`https://${n}`:n}function uet(n){const t=On(n,"inlineStyle");if(t==null)return;const e=t.split(";");for(const r of e){const i=r.split(":");if(i.length!==2)continue;const o=i[0].trim().toLowerCase(),s=i[1].trim().toLowerCase();o==="font-size"&&tp(n,"inline-style-font-size",s),o==="color"&&tp(n,"inline-style-color",s),o==="background-color"&&tp(n,"inline-style-background-color",s),o==="font-family"&&tp(n,"inline-style-font-family",s)}}function fet(n,t){if(t==null)return n==null?void 0:n.normal;if(n)return n[`heading${t}`]}function det(n){const t=`${On(n,"inline-style-font-size")}`;if(t&&t.indexOf("px")>0)return+t.replace(/px/g,"")}function het(n){if(n.attributes&&n.attributes.box&&n.attributes.text)return` ${n.attributes.text} `;if(n.attributes&&n.attributes.box&&n.attributes.inputType)return n.attributes.value?`${n.attributes.value}`:" "}function met(n){if(n.attributes&&n.attributes.box&&n.attributes.text)return` @${n.attributes.text} `}function get(n){return On(n,"inline-style-font-family")}function pet(n){const t=On(n,"inline-style-background-color");return AL(t)}function Cet(n){const t=On(n,"inline-style-color");return AL(t)}function Eet(n){uet(n);const t=On(n,"type")==="mention";return{box:n.attributes&&n.attributes.box?n.attributes:void 0,inlineCode:!!On(n,"style-code"),link:BL(On(n,"link")),size:det(n),text:t?met(n):het(n)||n.insert,bold:!!On(n,"style-bold"),underline:!!On(n,"style-underline"),italics:!!On(n,"style-italic"),strike:!!On(n,"style-strikethrough"),superScript:!!On(n,"style-super"),subScript:!!On(n,"style-sub"),math:On(n,"type")==="math"?On(n,"src"):void 0,mention:t,fontFamily:get(n),background:pet(n),color:t?"338fe5":oet(vL(n,"style-color-",6))||Cet(n),highlight:vL(n,"style-bg-color-",13)}}function bet(){return[new Bt.Paragraph({border:{top:{color:"auto",style:Bt.BorderStyle.DASHED,size:4,space:1}},spacing:{before:300}}),new Bt.Paragraph({spacing:{line:0}})]}function xet(){return new Bt.Paragraph({children:[new Bt.TextRun({text:"[\u89C6\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}})]})}function Aet(){return new Bt.Paragraph({children:[new Bt.TextRun({text:"[\u97F3\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}})]})}function vet(n,t){return new Bt.Paragraph({children:[new Bt.ExternalHyperlink({children:[new Bt.TextRun({style:"Hyperlink",text:t||n})],link:n})]})}function yL(n){if(n.heading!=null)return`Heading${n.heading}`}function TL(n){if(n.alignment!=null){if(n.alignment==="center")return Bt.AlignmentType.CENTER;if(n.alignment==="right")return Bt.AlignmentType.RIGHT;if(n.alignment==="left")return Bt.AlignmentType.LEFT}}function Bet(n){if(n.indent)return{left:Bt.convertInchesToTwip(.3*n.indent-.2)};if(n.padding)return{left:Bt.convertInchesToTwip(.3*n.padding)}}function yet(n){return{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:n}}function Tet(n){const t=n.split(",");if(t.length!==0)return t[0].trim()}function kL(n,t){let e;e=n.inlineCode?"InlineCode":void 0,e=n.link?"Hyperlink":e;const r=n.size||t,i=r!=null?Math.floor(r*1.5+.5):void 0;return new Bt.TextRun({text:n.text,bold:n.bold||void 0,underline:n.underline?{type:Bt.UnderlineType.SINGLE}:void 0,italics:n.italics||void 0,strike:n.strike||void 0,superScript:n.superScript||void 0,subScript:n.subScript||void 0,size:i,style:e,font:n.fontFamily?Tet(n.fontFamily):void 0,shading:n.background?yet(n.background):void 0,color:n.color,highlight:set(n.highlight)})}function ket(n,t){if(n.link)return new Bt.ExternalHyperlink({children:[kL(n,t)],link:n.link})}async function RL(n,t,e,r,i){const[o]=await i(n,t,e);if(o==null)return;const s=await bL({width:r||0,height:0,src:e},o);return new Bt.ImageRun({data:o,transformation:{width:(s==null?void 0:s.width)||100,height:(s==null?void 0:s.height)||20}})}function Ret(n){if(n.heading||n.heading)return n.heading}function wet(n){if(n.align&&(n.align==="center"||n.align==="right"||n.align==="left"))return n.align}function Let(n){if(n.textOnly===!0&&n.level!=null)return n.level}async function Iet(n,t){var r;const e=[];if(n.text&&Array.isArray(n.text)){for(let i=0;i<n.text.length;i++){const o=n.text[i];if(((r=o.attributes)==null?void 0:r.box)===!0&&t){const s=await t(o);if(s){n.text.splice(i+1,0,...s);continue}}e.push(Eet(o))}return e}}function Det(n){if(n.type==="list"&&n.textOnly!==!0)return{checkbox:n.checkbox,groupId:n.groupId,ordered:!!n.ordered,level:n.level||1,start:n.start||0}}function _et(n,t){if(n.type==="embed"&&n.embedType&&Gx(n.embedType)&&n.embedData&&n.embedData.src)return n.embedData.src.split("|").map(r=>{const i=t(r),o=n.embedData[`${i}_width`],s=n.embedData[`${i}_height`];return{src:r,width:o,height:s}})}function Met(n){if(n.padding)return n.padding}function Oet(n){return!!(n.type==="embed"&&n.embedType&&Gx(n.embedType)&&n.embedData&&n.embedData.src)}async function ep(n,t,e){return{quoted:!!n.quoted,heading:Ret(n),alignment:wet(n),indent:Let(n),padding:Met(n),texts:await Iet(n,e),list:Det(n),images:_et(n,t),border:Oet(n)}}async function Uet(n,t,e,r){const i=[];if(!n.children)return[];for(const o of n.children){const s=[];for(const l of t.blocks[o])s.push(await ep(l,e,r));i.push(s)}return i}const Net=_("to-docx");function Pet(n,t){return Array(n).fill(0).map(()=>Array(t).fill(0).map(()=>({cellId:void 0,color:void 0,from:void 0,rowSpan:1,colSpan:1,width:0,originalWidth:void 0,align:void 0})))}function Fet(n,t,e,r){const i=!!n.hasColTitle,o=!!n.hasRowTitle,s=!!n.isStripeStyle,l="F5F8FB";for(let c=0;c<t;c++)for(let f=0;f<e;f++)(i&&f===0||o&&c===0||s&&c%2===1)&&(r[c][f].color=l)}function Ket(n){p(Net,n.children,"no table children");const t=n.rows,e=n.cols,r=n.colsWidth;if(r)for(let s=0;s<r.length;s++)r[s]===0&&(r[s]=100);const i=Pet(t,e);let o=0;for(let s=0;s<t;++s)for(let l=0;l<e;++l){if(i[s][l].originalWidth=r?r[l]:void 0,i[s][l].from!==void 0)continue;const c=n.children[o];o+=1,i[s][l].cellId=c,i[s][l].color=aet(n[`${c}_background`]),i[s][l].width=r?r[l]:100,i[s][l].align=n[`${c}_align`];const f=n[`${c}_rowSpan`]||1,h=n[`${c}_colSpan`]||1;if(i[s][l].rowSpan=f,i[s][l].colSpan=h,f>1||h>1){let C=0;for(let E=0;E<f;E++)for(let b=0;b<h;b++)E===0&&(C+=r?r[l+b]:80),!(E===0&&b===0)&&(i[s+E][l+b].from=[s,l]);i[s][l].width=C}}return Fet(n,t,e,i),i}const Vet=_("to-docx");function $et(n){return Array.from({length:n},()=>({cellId:void 0,originalWidth:0,width:0}))}function Het(n,t){p(Vet,n.children,"no layout children");const e=n.children.length,r=n.colsWidth;if(r)for(let o=0;o<r.length;o++)r[o]===0&&(r[o]=1/r.length);const i=$et(e);for(let o=0;o<e;++o)i[o].cellId=n.children[o],i[o].originalWidth=r[o]*t,i[o].width=r[o]*t;return i}async function jet(n,t,e,r,i,o,s,l,c,f){async function h(E){if(l&&E.type!=="_exportVirtualBlock"){const b=await l(i,o,E);if(b){await r.addDoc(n,b,f);return}}if(E.type==="text"||E.textOnly===!0){const b=await ep(E,s,c);await r.addTextBlock(b);return}if(E.type==="code"){const b=await Uet(E,e,s,c);await r.addCodeBlockObject(b);return}if(E.type==="list"&&E.textOnly!==!0){const b=await ep(E,s,c);await r.addListBlockObject(n,b);return}if(E.type==="embed"&&E.embedType){const b=E,v=b.embedData,k=b.embedType;if(Gx(k)){const w=await ep(E,s,c);await r.addImagesBlockObject(E,w,f)}else E.embedType==="hr"?r.addSeparatorBlock():E.embedType==="video"?r.addVideoPlaceholder():E.embedType==="audio"?r.addAudioPlaceholder():E.embedType==="webpage"?r.addHyperlinkParagraph(BL(v.src),v.title):r.addOtherEmbedBlock(k,E.embedData);return}if(E.type==="table"){let b=[];if(E.colsWidth)b=E.colsWidth;else{const k=E.cols;b=new Array(k);for(let w=0;w<b.length;w++)b[w]=100;E.colsWidth=b}const v=Ket(E);await r.addTableMatrix(b,v,e),r.addEmptyParagraph()}if(E.type==="_exportVirtualBlock"&&await r.addVirtualBlock(E.id,e,f),E.type==="layout"){const v=E.colsWidth.map(w=>w*f),k=Het(E,f);await r.addLayoutMatrix(v,k,e)}}function C(E){var k;const b=((k=E==null?void 0:E.embedData)==null?void 0:k.exportSpec)||(E==null?void 0:E.exportSpec);if(!b)return[E];const v=[];for(const{type:w,data:O}of b){if(w==="text"){const M={id:rt(),text:[{insert:O}],type:"text"};v.push(M);continue}if(w==="image"){const M={id:rt(),type:"embed",embedType:"image",align:"left",embedData:{src:O}};v.push(M);continue}if(w==="link"){const M={id:rt(),type:"embed",embedType:"webpage",embedData:{src:O.url,title:O.title}};v.push(M);continue}if(w==="block")for(const M of O){if(!e.blocks[M])continue;const Z={id:M,type:"_exportVirtualBlock"};v.push(Z)}}return v}for(const E of t)for(const b of C(E))!b||await h(b)}function zet(){return{listMaxInst:1,listInstMap:{},listRefMap:{},levelConfigs:[]}}const Wet=_("to-docx");class Get{constructor(t,e,r,i,o,s){m(this,"paragraphs");this.appId=t,this.docId=e,this.state=r,this.readImageFunc=i,this.convertBlocksFunc=o,this.defaultFontSize=s,this.paragraphs=[]}async addTextBlock(t){this.paragraphs.push(new Bt.Paragraph({heading:yL(t),alignment:TL(t),children:await this.paragraphsFromBlockTexts(t),indent:Bet(t)}))}async addEmptyImagePlaceHolder(){this.paragraphs.push(new Bt.Paragraph({text:`[${D.t("docx.imageExportFailed")}]`,shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}}))}async paragraphsFromBlockTexts(t){if(t.texts==null)return;const e=fet(this.defaultFontSize,t.heading),r=[];for(const i of t.texts){if(i.link){const o=ket(i,e);o&&r.push(o);continue}if(i.box&&i.box.type&&i.box.type==="br"){r.push(new Bt.TextRun({text:"",break:1}));continue}if(i.box&&i.box.type&&i.box.type==="image"){const o=await RL(this.appId,this.docId,i.box.src,i.box.width,this.readImageFunc);o&&r.push(o);continue}if(i.math){const o=await RL(this.appId,this.docId,i.math,0,this.readImageFunc);o&&r.push(o);continue}r.push(kL(i,e))}return r}async addCodeBlockObject(t){for(const e of t)for(const r of e){const i={style:Bt.BorderStyle.SINGLE,color:"#DEDEDE"};this.paragraphs.push(new Bt.Paragraph({style:"Code",border:{left:{...i},right:{...i},top:{...i},bottom:{...i}},children:await this.paragraphsFromBlockTexts(r)}))}}async addListBlockObject(t,e){if(e.list==null)return;let r;const i=e.list.checkbox?`${t}-${e.list.groupId}-${e.list.checkbox}`:`${t}-${e.list.groupId}`;if(this.state.listInstMap[i])r=this.state.listInstMap[i];else if(r=this.state.listMaxInst,this.state.listMaxInst+=1,this.state.listInstMap[i]=r,e.list.start>0&&e.list.ordered){const s=`number-numbering-reference-${r}`,l=xL([e.list.level-1],e.list.start);this.state.levelConfigs.push({levels:l,reference:s,inst:r}),this.state.listRefMap[i]=s}else e.list.ordered?this.state.listRefMap[i]=bh.NUMBERING:e.list.checkbox&&e.list.checkbox==="checked"?this.state.listRefMap[i]=bh.CHECKED:e.list.checkbox&&e.list.checkbox==="unchecked"?this.state.listRefMap[i]=bh.UNCHECKED:this.state.listRefMap[i]=bh.BULLET;const o=yL(e);e.texts&&this.paragraphs.push(new Bt.Paragraph({heading:o,children:await this.paragraphsFromBlockTexts(e),numbering:{reference:this.state.listRefMap[i],level:e.list.level-1,instance:r}}))}imageDimWithBufferToImageRun(t){return new Bt.ImageRun({data:t.buffer,transformation:{width:t.width,height:t.height}})}async addImagesBlockObject(t,e,r){if(e.images==null){if(t.type==="embed"&&t.embedType==="image"){const{src:c}=t.embedData;c||this.addEmptyImagePlaceHolder()}return}const i=[],o=await Promise.all(e.images.map(async c=>{const[f,h]=await this.readImageFunc(this.appId,this.docId,c.src);if(f){const C=await bL(c,f);if(C)return C}i.push(h)}));tet(o,r,t.embedData);const s=Ztt(o,r),l={style:Bt.BorderStyle.SINGLE,color:"#DEDEDE"};s.length&&this.paragraphs.push(new Bt.Paragraph({border:e.border?{left:{...l},right:{...l},top:{...l},bottom:{...l}}:void 0,alignment:TL(e)||Bt.AlignmentType.CENTER,children:s.map(c=>this.imageDimWithBufferToImageRun(c)).flatMap((c,f,h)=>c==null?[]:h.length-1!==f?[c,new Bt.TextRun({text:" "})]:c)})),i.forEach(c=>{this.addHyperlinkParagraph(c)})}addSeparatorBlock(){bet().forEach(t=>this.paragraphs.push(t))}addEmptyParagraph(){this.paragraphs.push(new Bt.Paragraph(""))}addVideoPlaceholder(){this.paragraphs.push(xet())}addAudioPlaceholder(){this.paragraphs.push(Aet())}addHyperlinkParagraph(t,e){t!=null&&this.paragraphs.push(vet(t,e))}async addTableMatrix(t,e,r){const i=t.map(o=>o!==0?o*15:1500);this.paragraphs.push(new Bt.Table({rows:await this.generateTableRows(e,r),columnWidths:i}))}async generateRowCells(t,e){const r=[];for(const i of t){const o=i.cellId;if(o===void 0)continue;const s=i.width*.9;r.push(new Bt.TableCell({children:await this.convertBlocksFunc(o,e.blocks[o],e,this.appId,this.docId,this.state,s),columnSpan:i.colSpan,rowSpan:i.rowSpan,width:{type:Bt.WidthType.DXA,size:i.width*15},shading:i.color?{fill:i.color,type:Bt.ShadingType.CLEAR,color:"auto"}:void 0}))}return r}async generateTableRows(t,e){const r=[];for(const i of t)r.push(new Bt.TableRow({children:await this.generateRowCells(i,e)}));return r}async addLayoutMatrix(t,e,r){const i=t.reduce((o,s)=>o+s,0);for(const o of e){const s=o.cellId,l=await this.convertBlocksFunc(s,r.blocks[s],r,this.appId,this.docId,this.state,i);this.paragraphs.push(...l,new Bt.Paragraph(""))}}async addDoc(t,e,r){const i=await this.convertBlocksFunc(t,e.blocks.root,e,this.appId,this.docId,this.state,r);i&&(this.paragraphs=this.paragraphs.concat(i))}async addVirtualBlock(t,e,r){const i=await this.convertBlocksFunc(t,e.blocks[t],e,this.appId,this.docId,this.state,r);this.paragraphs.push(...i)}async addOtherEmbedBlock(){}}class qet{constructor(t,e,r,i,o,s,l,c){m(this,"convertBlocks",async(t,e,r,i,o,s,l=720)=>{const c=new Get(i,o,s,this.readImage,this.convertBlocks,this.defaultFontSize);return await jet(t,e,r,c,i,o,this.md5HexFunc,this.getDocByBlock,this.getTextsByBox,l||720),c.paragraphs});this.templateData=t,this.docData=e,this.md5HexFunc=r,this.readImage=i,this.defaultFontSize=o,this.getDocByBlock=s,this.getTextsByBox=l,this.backgroundImageOptions=c}async convert(t,e){return this.snapshot2docx(this.docData,t,e)}async snapshot2docx(t,e,r){const i=new Bt.ImportDotx,o=this.templateData?await i.extract(this.templateData):void 0,s=t.blocks.root;p(Wet,s,"data must have blocks");const l=zet(),c=await this.convertBlocks("blocks",s,t,e,r,l),f=this.backgroundImageOptions?{default:new Bt.Header({children:[new Bt.Paragraph({children:[new Bt.ImageRun(this.backgroundImageOptions)]})]})}:{},h=new Bt.Document({numbering:{config:[...iet,...l.levelConfigs]},sections:[{headers:f,children:c,properties:{page:{size:{width:12240,height:15840},margin:{top:1440,bottom:1440,left:1440,right:1440}}}}]},{template:o});return Bt.Packer.toBlob(h)}}const Xet=_("editor-to-docx");async function Yet(n,t,e,r){const i=n.doc.buildResourceUrl(r,{withToken:!0});let o=await U4(i);if(!o)return[void 0,i];if(o.type.indexOf("/svg")!==-1){const l=await _4(o);l&&(o=new File([l],o.name))}return[await o.arrayBuffer(),i]}async function Jet(n,t,e){const r=n.editorBlocks.getBlockClass(e.type);if(r.toStandardDoc)try{return await r.toStandardDoc(n,e,t)}catch(i){Xet.error(`toStandardDoc error: ${JSON.stringify(i)}`);return}}async function Qet(n,t){const e=t.attributes,r=n.editorBoxes.getBoxClass(e.type);if(r.toStandardText)return r.toStandardText(n,e)}async function Zet(n,t){let{template:e,download:r,backgroundImageOptions:i}=t!=null?t:{};e||(e=Ytt());const o=n.doc.toJSON(),s=(C,E,b)=>Yet(n,C,E,b),l=async(C,E,b)=>Jet(n,o,b),c=async C=>Qet(n,C),h=await new qet(e,o,hm.default,s,void 0,l,c,i).convert("_appId","_docId");if(r){const C=URL.createObjectURL(h),E=document.createElement("a");E.setAttribute("download",`${O4(n)}.docx`),E.setAttribute("href",`${C}`),E.click(),E.remove()}return h}const qx=_("create-editor");async function tnt(n,t){var s,l,c,f,h,C,E,b,v,k,w,O,M,F,Z,Y;p(qx,n,"app does not exists"),t.lang&&D.setLang(t.lang),Ei.level=(s=t.logLevel)!=null?s:rl.DEBUG;const e=t.onReauth?async()=>{var Ct;const X=t.user.userId,ut=t.docId,Et=await((Ct=t.onReauth)==null?void 0:Ct.call(t,X,ut,t.permission));return{userId:X,docId:ut,permission:t.permission,appId:t.appId,token:Et,displayName:t.user.displayName,avatarUrl:t.user.avatarUrl}}:void 0,r={auth:{appId:t.appId,docId:t.docId,userId:t.user.userId,permission:t.permission,token:t.token,displayName:t.user.displayName,avatarUrl:t.user.avatarUrl},serverUrl:t.serverUrl,reauthFunc:e,disableLogout:t.disableLogout,onMaxUsersError:t.onMaxUsersError},i=await Ld.load(r),o=pd(n,i,{id:t.id,scrollContainer:t==null?void 0:t.scrollContainer,enableComments:t==null?void 0:t.enableComments,enableContextMenu:t==null?void 0:t.enableContextMenu,components:{blocks:[...zx,...((l=t==null?void 0:t.components)==null?void 0:l.blocks)||[]],embeds:[...Wx,...((c=t.components)==null?void 0:c.embeds)||[]],boxes:[...pL,...((f=t.components)==null?void 0:f.boxes)||[]],commandProviders:[new q0,...((h=t.components)==null?void 0:h.commandProviders)||[]],decorators:[new vg,new sE],insertions:[lC],blockHooks:[new zb,new kw,...((C=t.components)==null?void 0:C.blockHooks)||[]],textRenders:[new zS,new sb,...((E=t.components)==null?void 0:E.textRenders)||[]],options:{...t.componentsOptions}},shortcuts:[pX,VH,Xz,Tb,CS,zF,xb,JX,g0,PF,...t.shortcuts||[]],colors:["#0064FF","#EB3723","#F59300","#00A865","#F25A0A","#70A310","#009CAD","#0990D9","#8851ED","#D62069"]});if(o.editorCommandProviders.registerCommandProvider(new Ao(o)),o.input.addHandler(new KY),o.input.addHandler(new yg),o.input.addHandler(new dV),o.input.addHandler(new Vz),o.input.addHandler(new Db(o,{hideTitle:t.hideTitle,headingLevel:1,titlePlaceholder:D.t("placeholder.common.title"),contentPlaceholder:D.t("placeholder.common.content"),readonlyTitlePlaceholder:D.t("placeholder.common.readonlyTitle"),addPlaceholderToAllCurrentEmptyBlock:!0,applyContentPlaceholder:(b=t.placeholder)==null?void 0:b.applyContentPlaceholder})),o.input.addHandler(new pg(o,(v=t.componentsOptions)==null?void 0:v.quickMenu)),o.input.addHandler(new Zb(o)),o.input.addHandler(new ox(o)),o.input.addHandler(new wg),o.input.addHandler(new Xk),o.doc.registerCallback(new VY(o)),o.addCustom("remote-cursor",()=>new RT(o)),o.addCustom("block-menu",X=>new Sw(X)),ye.isMobile||o.addCustom("editor-tooltip",()=>new zd(o)),t!=null&&t.enableComments&&o.addCustom("editor-comments",X=>new jS(X,new jtt(X))),t.enableContextMenu!==!1&&o.addCustom("editor-context-menu",X=>new ax(X)),o.addCustom("create-options",()=>new YA(o,t)),o.addCustom("drop-target",()=>new sh(o)),o.addCustom("list-to-mindmap",()=>new cg(o)),o.addCustom("list-to-mention",()=>new lJ(o)),o.addCustom("mobile-helper",()=>new SJ(o)),o.addCustom("code-caret",()=>new NH(o)),o.addCustom("image-paste-handler",()=>new Yb(o)),o.addCustom("layout-paste-handler",()=>new Ux(o,!0)),(k=t.componentsOptions)!=null&&k.mention){const X=t.componentsOptions.mention;o.addCustom("mention",()=>new w4(o,X))}if(o.addCustom("heading-collapse",()=>new kx(o)),o.addCustom(Xg,X=>new _x(X)),Su.register(o),sh.register(o),Pl.register(o),Dl.register(o),o.addListener("clickLink",(X,ut,Et)=>{var wt;if((wt=t==null?void 0:t.events)!=null&&wt.onClickLink){t.events.onClickLink(X,ut,Et);return}const Ct=Et.getAttribute("link");Ct&&(X.readonly||ut.ctrlKey||ut.metaKey)&&window.open(Ct,"_blank")}),(O=(w=t.componentsOptions)==null?void 0:w.remoteCarets)!=null&&O.onUserChanged){const X=(F=(M=t.componentsOptions)==null?void 0:M.remoteCarets)==null?void 0:F.onUserChanged;o.doc.getRemoteUsers().on("change",ut=>{X(o,ut)})}return(Y=(Z=t.componentsOptions)==null?void 0:Z.templates)!=null&&Y.templates.length&&(o.addListener("docChanged",()=>{qg(o)}),o.addListener("resize",()=>{qg(o,{reset:!0})}),setTimeout(()=>{qg(o)},100)),o.doc.registerCallback({onError:async X=>{if(X.code==="ResetDoc"){qx.error(`reset doc: ${X.message}`);const ut=await Ld.load(r);o.doc.reset(ut)}}}),o.version="2.0.4-beta.11",Ei.level===rl.DEBUG&&(window.setReauthFail=X=>{window.isReauthError=X},window.reConnect=X=>o.doc.externalDoc.client.connection.reConnect(X)),o}function ent(n){return n.toJSON!==void 0}async function nnt(n,t,e){var o,s,l,c,f,h,C,E;p(qx,n,"app does not exists");const r=ent(t)?t:new FC(t,{serverUrl:e.serverUrl||""});e.lang&&D.setLang(e.lang),Ei.level=(o=e.logLevel)!=null?o:rl.DEBUG;const i=pd(n,r,{id:e.id,scrollContainer:e==null?void 0:e.scrollContainer,components:{blocks:[...zx,...(l=(s=e.components)==null?void 0:s.blocks)!=null?l:[]],commandProviders:[new q0],decorators:[new vg,new sE],embeds:[...Wx,...((c=e.components)==null?void 0:c.embeds)||[]],boxes:[sR,S4,QS,dR,...((f=e.components)==null?void 0:f.boxes)||[]],insertions:[lC],blockHooks:[new zb,...((h=e.components)==null?void 0:h.blockHooks)||[]],textRenders:[new zS,new sb,...((C=e.components)==null?void 0:C.textRenders)||[]],options:{...e.componentsOptions}},shortcuts:[Tb,CS,xb,g0]});return i.editorCommandProviders.registerCommandProvider(new Ao(i)),i.input.addHandler(new yg),i.input.addHandler(new Db(i,{hideTitle:e.hideTitle,headingLevel:1,titlePlaceholder:D.t("placeholder.common.title"),contentPlaceholder:D.t("placeholder.common.content"),readonlyTitlePlaceholder:D.t("placeholder.local.readonlyTitle"),addPlaceholderToAllCurrentEmptyBlock:!0})),i.input.addHandler(new pg(i,(E=e.componentsOptions)==null?void 0:E.quickMenu)),i.input.addHandler(new Zb(i)),i.input.addHandler(new ox(i)),i.input.addHandler(new wg),i.input.addHandler(new Xk),i.addCustom("block-menu",b=>new Sw(b)),ye.isMobile||i.addCustom("editor-tooltip",()=>new zd(i)),i.addCustom("image-paste-handler",()=>new Yb(i)),e!=null&&e.enableComments&&i.addCustom("editor-comments",b=>new jS(b,new ztt(b,r))),e.enableContextMenu!==!1&&i.addCustom("editor-context-menu",b=>new ax(b)),i.addCustom("heading-collapse",()=>new kx(i)),i.addListener("clickLink",(b,v,k)=>{var O;if((O=e==null?void 0:e.events)!=null&&O.onClickLink){e.events.onClickLink(b,v,k);return}const w=k.getAttribute("link");w&&(b.readonly||v.ctrlKey||v.metaKey)&&window.open(w,"_blank")}),i.addCustom(Xg,b=>new _x(b)),Su.register(i),i.version="2.0.4-beta.11",i}async function rnt(n,t,e){var h;const r=n.doc.externalDoc.client.auth,i=await w0.load({auth:r,serverUrl:e});if(!((h=i.getVersionHelper)==null?void 0:h.call(i)))throw new Error("the editor does not support to show versions");const s=n.getCustom("create-options");if(!s)throw new Error("the editor does not support to show versions");const l=s.getData(),c=new CL(l),f=n.addCustom("version-dialog",()=>new m4(i,c));return f.show(t),f}A.tippy=UI,A.AnchorBox=W3,A.AuthError=wd,A.AuthHeader=Ta,A.AutoScroll=Ff,A.BaseURLHeader=cu,A.BasicCommands=MK,A.BlockExclusiveHook=kw,A.BlockLockerHook=zb,A.BlockLockerPasteHandler=wg,A.BlockResizer=Zd,A.BrBox=$3,A.CodeBlock=XR,A.CodeLineBlock=YR,A.CodeTextDecorator=vg,A.DOC_RE_AUTH_KEYS=Xg,A.DefaultShortcuts=g0,A.DocIdError=kU,A.DocReAuthCallbacks=_x,A.DragDrop=mv,A.DrawioEmbed=oL,A.EditorBlocks=kB,A.EditorBoxes=j3,A.EditorCommandProviders=V5,A.EditorComplexBlockPosition=yi,A.EditorComplexSelectionRange=ki,A.EditorDecorators=Y3,A.EditorEmbeds=wB,A.EditorInsertions=X3,A.EditorSimpleBlockPosition=gn,A.EditorSimpleSelectionRange=vn,A.EmbedBlock=LB,A.EmbedBlockResizer=lh,A.EnforceWithDocumentTitleHandler=Db,A.EventCallbacks=Pc,A.FILL_CHAR=Y8,A.FileExtError=RU,A.GroupOrder=Qk,A.HeadingBlockScrollListener=tJ,A.ImageBox=z3,A.InlineBoxCommandProvider=hR,A.InputtingInsertion=G3,A.LayoutBlock=G4,A.LayoutBlockCaptionInputHandler=Ux,A.LocalDoc=FC,A.LogLevel=rl,A.Logger=Ei,A.MIN_DISTANCE_THRESHOLD=dv,A.ManualCloseDialog=Id,A.ManualMenu=Al,A.ManualToolbar=gu,A.MarkdownInputHandler=yg,A.MaxUserError=JC,A.Mindmap=ag,A.OnesEditorAutoSuggest=RE,A.OnesEditorCustomDataWrapper=YA,A.OnesEditorExclusiveBlock=Dl,A.OnesEditorHoveringBlock=We,A.OnesEditorIcons=dN,A.OnesEditorQuickMenu=pg,A.OnesEditorToc=gs,A.OnesEditorTocProvider=Pl,A.OnesEditorToolbar=Su,A.OnesEditorTooltip=zd,A.OnesEditorVersionsDialog=m4,A.PermissionError=R0,A.Popup=mu,A.ReAuthToolbar=N4,A.RemoteCarets=RT,A.RemoteCaretsDecorator=sE,A.RemoteCaretsInsertion=lC,A.RemoteUsers=Cd,A.RequestReloadError=Sd,A.RichText=Hn,A.ShareDBDoc=Ld,A.ShareDBDocVersionsProvider=CL,A.ShareDBServer=w0,A.SimpleCache=iv,A.StandardEmbedBlockCommands=Jb,A.TEXT_STYLE_BACKGROUND_COLOR_PREFIX=K1,A.TEXT_STYLE_COLOR_PREFIX=F1,A.TableBlock=UR,A.TableBlockCommandProvider=q0,A.TableShortcuts=Tb,A.TextBlock=ar,A.TextBox=V3,A.TextColorItem=W2,A.TextStyleShortcuts=xb,A.TocEmbed=k4,A.ZERO_WIDTH_SPACE_CHAR=_f,A.abbreviation=Im,A.addAttribute=Km,A.addClass=z,A.addCommentToBlock=Na,A.addDays=z9,A.addMetaToDoc=md,A.addMonths=j9,A.animateScrollTo=ua,A.applyPlaceholderToBlock=Jd,A.assert=p,A.autoShowHideTemplates=qg,A.bindKeyDownEvent=Bm,A.blockToDoc=_C,A.blockToHtml=uC,A.blockToMarkdown=e0,A.blockToText=sd,A.blocksToDoc=u5,A.clearAllSelection=iB,A.clientType=ye,A.cloneBlock=ao,A.cloneChildContainer=c0,A.cloneDoc=xC,A.cloneText=_3,A.commentToShareDbComment=oE,A.compareElement=xm,A.comparePosition=I1,A.complexBlockAdjustSelectionPos=Nm,A.complexBlockFindNearestChildBlock=$7,A.complexBlockGetAllChildContainers=In,A.complexBlockGetBottomChildContainers=MB,A.complexBlockGetDeepFirstChild=IB,A.complexBlockGetFirstSimpleChild=_1,A.complexBlockGetLastSimpleChild=zc,A.complexBlockGetSelectedContainers=jc,A.complexBlockGetTopChildContainers=_B,A.containerToDoc=f5,A.continuousScroll=Lv,A.convertBlockFrom=Om,A.convertImageFileToPng=_4,A.convertImageSrcToPng=BJ,A.converterIntercept=Bg,A.copyBlockAttributes=ay,A.copyResourcesFromDoc=PC,A.createBlockAnchor=Qo,A.createBlockCaretAnchor=UB,A.createBlockContentElement=al,A.createBlockElement=Jv,A.createBlockSimpleDocRange=Ym,A.createBlockSimpleRange=Ae,A.createBoxContentElement=tB,A.createBoxElement=Qv,A.createBoxOp=D3,A.createChildContainer=yB,A.createComplexBlockPosition=De,A.createComplexDocPos=N3,A.createComplexDocRange=Z8,A.createContainer=Jc,A.createContainerElement=g1,A.createDeleteOps=w3,A.createEditor=pd,A.createEditorSelectionRange=pn,A.createElement=B,A.createEmptyContainer=Sr,A.createEmptyDoc=rs,A.createEmptyTextBlockData=qm,A.createExpandedRange=Em,A.createIconButton=jo,A.createImage=Xp,A.createInsertOps=Wm,A.createInsertionContentElement=rB,A.createInsertionElement=eB,A.createLocalEditor=nnt,A.createOnesEditor=tnt,A.createRange=ov,A.createRichText=Aa,A.createRootContainer=BB,A.createSimpleBlockPosition=mt,A.createSimpleDocPos=U3,A.createTextBlockData=oo,A.createTextButton=_a,A.createTextOp=ti,A.createTextWithReplaceSoftReturn=Q1,A.daysAfter=c1,A.deleteText=tC,A.diffDays=W9,A.disablePageScroll=s1,A.docToHtml=ry,A.docToHtmlFragment=ld,A.docToMarkdown=iy,A.docToText=hl,A.downloadImageToFile=U4,A.downloadObjectToFile=Fx,A.downloadSvgToString=Y4,A.editLink=$d,A.editorAddComment=lX,A.editorAddTextAttribute=by,A.editorAutoInsertBlock=cy,A.editorBreakTextBlock=nu,A.editorClearCompositionText=mC,A.editorClearSelectedContents=s0,A.editorCopyBlock=UC,A.editorCopyDoc=m0,A.editorDeleteBlock=CC,A.editorDeleteBlockText=gC,A.editorDeleteBlockWithoutChildren=i0,A.editorDeleteChildContainer=J_,A.editorDeleteChildContainers=uy,A.editorFocusToBlock=bC,A.editorFocusToEnd=pM,A.editorGetBlockData=so,A.editorGetBlockText=Jn,A.editorGetBlockTextEx=Qm,A.editorGetBoxData=F3,A.editorHandleKeyboardEvent=B5,A.editorInsertBlock=eu,A.editorInsertBoxToBlock=sy,A.editorInsertDoc=Cy,A.editorInsertDocAt=AC,A.editorInsertText=hC,A.editorInsertTextToBlock=oy,A.editorInsertTextToBlockEx=dC,A.editorMergeTextBlock=fy,A.editorMoveDown=Dy,A.editorMoveEnd=wC,A.editorMoveHome=$y,A.editorMoveLeft=Sy,A.editorMoveLineEnd=Yy,A.editorMoveLineHome=Xy,A.editorMovePageDown=n5,A.editorMovePageUp=e5,A.editorMoveRight=Ly,A.editorMoveUp=Iy,A.editorMoveWordEnd=Fy,A.editorMoveWordLeft=Py,A.editorRangeClearColor=Ay,A.editorRangeGetColor=vy,A.editorRangeSetColor=xy,A.editorRemoveTextAttribute=eM,A.editorReplaceBlockText=l0,A.editorReplaceContainer=Ey,A.editorRunOnce=x0,A.editorSelectAll=LC,A.editorSelectContainer=f0,A.editorSelectDown=_y,A.editorSelectEnd=SC,A.editorSelectHome=Hy,A.editorSelectLeft=My,A.editorSelectLineEnd=qy,A.editorSelectLineHome=Gy,A.editorSelectPageDown=o5,A.editorSelectPageUp=i5,A.editorSelectRight=Oy,A.editorSelectUp=Uy,A.editorSelectWordEnd=Vy,A.editorSelectWordLeft=Ky,A.editorSetTextColor=ru,A.editorShowFindDialog=ZG,A.editorToDocx=Zet,A.editorUpdateBlockData=a0,A.editorUpdateCompositionText=ly,A.editorUpdateEmbedData=gy,A.enablePageScroll=l1,A.escapeHtmlText=ym,A.escapeRegExp=h1,A.escapeSpace=R9,A.exclusiveBlock=$b,A.executeBlockCommand=gB,A.executeEmbedBlockCommand=mB,A.executeRangeCommand=K5,A.fileToDataUrl=Vc,A.findAfterOffsetNotType=iC,A.findAllText=IC,A.findBlockByIndex=Hv,A.findEventTargetBlock=av,A.findInsertionById=nB,A.findNextOffset=b_,A.findNextVisibleSimpleBlock=z5,A.findPrevOffset=E_,A.findPrevOffsetNotType=rC,A.findPrevSimpleBlockBeforeChildContainer=DB,A.findPrevVisibleSimpleBlock=j5,A.findTarget=Kc,A.findWordEnd=sC,A.findWordLeft=oC,A.format=Kf,A.formatBytes=Iv,A.formatDate=f1,A.fragmentToHtml=Tv,A.fromBase64=Of,A.fromBase64ToBlob=i1,A.fromBase64ToUint8Array=P9,A.fromDocRange=ul,A.fromNowString=d1,A.genId=rt,A.generateEditorContainerId=m1,A.getAllChildBlocks=N1,A.getAllQuickMenuItems=bb,A.getAllSelectedBlocks=no,A.getAttributesAt=Xc,A.getBlockBackground=E1,A.getBlockByIndex=ol,A.getBlockCaretRect=cl,A.getBlockClass=jt,A.getBlockClassByType=sl,A.getBlockClientRects=qo,A.getBlockCommandsWithHook=y1,A.getBlockContent=$t,A.getBlockHeading=Gf,A.getBlockId=dt,A.getBlockIndex=St,A.getBlockInfo=ih,A.getBlockKind=vi,A.getBlockMinWidth=lB,A.getBlockNearestRangeFromPoint=O1,A.getBlockOptions=Wf,A.getBlockPath=Xo,A.getBlockProperties=uB,A.getBlockRangeFromPoint=Pm,A.getBlockStyles=i7,A.getBlockTextLength=bt,A.getBlockTools=xe,A.getBlockType=Tt,A.getBoxContent=x1,A.getBoxId=Zv,A.getBoxTypeFromElement=jf,A.getChildBlockCount=Ai,A.getChildBlocks=be,A.getChildOffset=fl,A.getClosestContainerByCondition=sB,A.getColorFromAttributes=$1,A.getColorFromContent=Dm,A.getComplexBlockClass=Xr,A.getContainerBlockOverrideOptions=T1,A.getContainerBlockPath=xB,A.getContainerBlocks=Vv,A.getContainerBlocksElement=$f,A.getContainerById=qr,A.getContainerId=ft,A.getContainerMinWidth=S1,A.getContainerToolsElement=e7,A.getContainerWidth=TB,A.getDistanceSquare=il,A.getElementFromPoint=Ne,A.getElementOffset=Df,A.getElementScale=Gr,A.getEmbedType=Ge,A.getExistsBlockTools=_m,A.getExistsContainerById=Vf,A.getFileExt=Pf,A.getFirstChildBlock=Pe,A.getFirstClientRect=bm,A.getHeadingBlockChildren=pa,A.getHeadingMenuOptions=hb,A.getHorizontalPadding=Jp,A.getInsertionContent=A1,A.getLastChildBlock=en,A.getLastClientRect=aa,A.getListAllNextBrothers=yu,A.getLogger=_,A.getNextBlock=ae,A.getNextHiddenBlocks=EB,A.getNextValidOffset=ba,A.getNextVisibleBlock=Jr,A.getOffsetFromPoint=Yp,A.getOffsetInfoAfter=rd,A.getOffsetInfoBefore=Zm,A.getOpAt=a3,A.getOpLength=Fm,A.getParentBlock=Q,A.getParentBlockExcludeSelf=ma,A.getParentBox=b1,A.getParentContainer=ot,A.getPrevBlock=He,A.getPrevValidOffset=dl,A.getPrevVisibleBlock=Yr,A.getRangeCommands=P5,A.getReferenceClientRect=Tk,A.getRootBlock=zf,A.getScrollContainer=tn,A.getSpecialBlockCommands=fB,A.getStandardEmbedBlockProperties=Qb,A.getTextAfterOffset=p_,A.getTextAttributes=fC,A.getTextBeforeOffset=C_,A.getTextBlockChild=Yf,A.getTextBlockClass=zv,A.getTextBlockContentChildTextLength=Zr,A.getTextBlockContentChildType=bB,A.getTextBlockContentChildren=eo,A.getTextLength=$n,A.getTextOpLength=P1,A.getTextWidth=wm,A.getToolbar=eg,A.handleBlockElementUpdated=aB,A.hasAltOnly=_9,A.hasClass=_t,A.hasCtrlOrCmd=xv,A.hasCtrlOrCmdOnly=D9,A.hashCode=Pv,A.hideBlock=Yv,A.hideTemplates=D4,A.htmlToFragment=Rm,A.i18n=D,A.includeBigTable=$N,A.injectDocToHtmlFragment=hd,A.injectStyle=fv,A.inputActions=UM,A.insertEmptyBlock=l7,A.insertEmptyEmbedBlock=k1,A.insertText=ns,A.intersectionCommands=gO,A.isBackspace=vv,A.isBlock=Wo,A.isBlockLocked=Rg,A.isBlockLockedByOthers=jb,A.isBlockLockedBySelf=oh,A.isBlockTools=Xv,A.isBox=Mm,A.isBoxOp=Zo,A.isCJK=Ev,A.isChildContainer=xi,A.isChildNode=Ee,A.isCodeBlock=Pi,A.isCollapsedHeadingBlock=kr,A.isCollapsedRange=Q8,A.isColumnsBlock=hB,A.isComplexBlockPosition=Ca,A.isComplexKindBlock=Nt,A.isContainer=to,A.isContainerSelectedAllChildBlocks=s5,A.isControlEvent=da,A.isDelete=O9,A.isDraggingFiles=Sm,A.isElementVisible=vm,A.isEmbedBlock=me,A.isEmptyContainer=Jf,A.isEmptyDoc=eC,A.isEmptyTextBlock=Te,A.isEmptyTextBlockWithoutCompositionText=Yd,A.isEnterOnly=Av,A.isEscape=km,A.isExclusiveBlock=rh,A.isExpandedHeadingBlock=CB,A.isFirefox=Lf,A.isFirstChildBlockInComplexBlock=V7,A.isHeadingBlock=an,A.isHighSurrogate=B9,A.isInBlock=v1,A.isInBlockTools=Hc,A.isLayoutBlock=K4,A.isLetter=Cv,A.isLowSurrogate=y9,A.isMatchShortcut=Qi,A.isMoveForward=L9,A.isNavigationEvent=S9,A.isNavigationKey=bv,A.isNodeRemoved=If,A.isNumber=pv,A.isPrintableKey=n1,A.isRootBlock=Qr,A.isRootContainer=te,A.isSafari=la,A.isSameDay=u1,A.isSelectBoxOnly=Ni,A.isShiftEnter=M9,A.isShiftTab=N9,A.isShortcutEvent=I9,A.isSimpleBlock=r7,A.isSimpleBlockPosition=Ti,A.isSimplePos=O3,A.isSimpleRange=Xm,A.isSpace=Tm,A.isTab=U9,A.isTextBlockContentBoxChild=Rr,A.isTextBlockContentChild=qf,A.isTextBlockContentInsertionChild=Jo,A.isTextBlockContentTextChild=Xf,A.isTextKindBlock=at,A.isTextKindBlockType=Hf,A.isTitleBlock=Go,A.isToday=Dv,A.isValidOffset=lr,A.isVisibleBlock=ll,A.isYesterday=_v,A.loadJs=lv,A.loadJsPromise=ca,A.lockers=bi,A.mergeCommands=tg,A.mergeDocs=va,A.mergeOps=Z1,A.mergeText=q8,A.multiSplitText=u3,A.overflowText=Mv,A.parseShortcut=Bv,A.patchNode=Uf,A.pointInRect=fa,A.rangeAddAttribute=td,A.rangeGetTextColor=C3,A.rangeRemoveAttribute=qc,A.rangeSetTextColor=m3,A.rangeTransformText=d3,A.registerDragDrop=t1,A.removeAttribute=V1,A.removeClass=lt,A.removeLastBr=j8,A.removePlaceholderFromBlock=QR,A.removeStyle=uv,A.replaceAll=G9,A.replaceAllCaseInsensitive=q9,A.replaceAllText=a5,A.replaceText=Gm,A.requestDownload=Lm,A.resetListStart=ku,A.scrollIntoView=od,A.scrollable=Sv,A.selectFile=$c,A.selectedBlockToDoc=d0,A.selectionToDoc=iu,A.setAttributes=Am,A.setClipboardData=Nf,A.setClipboardDataByEvent=V9,A.setColorToAttributes=g3,A.setDataset=Qp,A.setDefaultCursor=Mf,A.setStyles=Zp,A.shareDBCommentToDocObject=iE,A.shareDBDocCommentToComment=TT,A.shortcutToDisplayText=mn,A.showBlock=C1,A.showDocVersions=rnt,A.showTemplates=Ix,A.splitText=sr,A.splitToThree=Cn,A.stringToDataUrl=o1,A.stringToObjectUrl=a1,A.subText=f3,A.textNodeOffsetFromPoint=sv,A.titleFromEditor=O4,A.toBase64URL=Zi,A.toMindmap=lg,A.toPlainText=Se,A.toPlainTextKeepLength=nC,A.trimChar=e1,A.unexclusiveBlock=Hb,A.unicodeLength=T9,A.unicodeSubstr=k9,A.updateBlockSelection=oB,A.updateOpAttributes=M3,A.updateTextBlockContent=g_,A.updateUrl=r1;for(const n in $e)n!=="default"&&!A.hasOwnProperty(n)&&Object.defineProperty(A,n,{enumerable:!0,get:()=>$e[n]});Object.defineProperties(A,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
974
+ \`\`\`\`\`\``}return""}const dtt={embedType:"plantuml",convertFrom:ctt,handleUpdateBlock:att,createEmbedContent:ltt,getBlockProperties:utt,convertTo:ftt},Lut="",htt="hr",mtt={dividingLine:{type:"\u5206\u5272\u7EBF",abstract:"\u5206\u5272\u7EBF"}},gtt={dividingLine:{type:"Dividing-Line",abstract:"Dividing-Line"}},ptt={dividingLine:{type:"\u533A\u5207\u308A\u7DDA",abstract:"\u533A\u5207\u308A\u7DDA"}};D.mergeLang({"zh-CN":mtt,"en-US":gtt,"ja-JP":ptt});function Ctt(n,t){const e=B("div",["editor-embed-container"],t);B("hr",["editor-embed-hr"],e)}function Ett(n,t,e,r){return r==="html"?"<hr />":r==="markdown"?"---":"------------"}function btt(){return{name:"hr",insertEmbedCommandItems:[{id:"insert-hr",name:D.t("dividingLine.type"),icon:a2,order:500,group:"common",subText:Qn("insert-hr")}],handleInsertEmptyEmbed:async(n,t)=>{const{containerId:e,blockIndex:r}=t;return n.insertEmbed(e,r,htt,{})}}}function xtt(n,t,e){const{data:r}=e;if(!r||r.embedType!=="dividing-line"||!at(n,t))return null;const i={};return{blockData:{id:rt(),type:"embed",embedType:"hr",embedData:i}}}function Att(){return{abstract:D.t("dividingLine.abstract")}}const vtt={embedType:"hr",createEmbedContent:Ctt,convertTo:Ett,getOptions:btt,convertFrom:xtt,getBlockProperties:Att},Iut="",Dut="",Btt={media:{upload:{failed:'<div class="line-1">{name}\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8BD5</span></div>',maxSizeFailed:'<div class="line-1">{name}\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7\u9650\u5236\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6</div>'},load:{failed:'<div class="line-1">{name}\u52A0\u8F7D\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8BD5</span></div>'},audio:{menuItem:"\u97F3\u9891",abstract:"\u97F3\u9891"},video:{menuItem:"\u89C6\u9891",abstract:"\u89C6\u9891"}}},ytt={media:{upload:{failed:'<div class="line-1">{name} upload failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>',maxSizeFailed:'<div class="line-1">{name} upload failed</div><div class="line-2">The file size exceeds limit. Please choose another file.</div>'},load:{failed:'<div class="line-1">{name} loading failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>'},audio:{menuItem:"Audio",abstract:"Audio"},video:{menuItem:"Video",abstract:"Video"}}},Ttt={media:{upload:{failed:'<div class="line-1">{name}\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <span class="retry-upload">\u518D\u8A66\u884C</span></div>',maxSizeFailed:'<div class="line-1">{name}\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F</div><div class="line-2">\u30D5\u30A1\u30A4\u30EB\u306E\u30B5\u30A4\u30BA\u304C\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u308B\u305F\u3081\u3001\u4ED6\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044</div>'},load:{failed:'<div class="line-1">{name}\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <span class="retry-upload">\u518D\u8A66\u884C</span></div>'},audio:{menuItem:"\u97F3\u58F0",abstract:"\u97F3\u58F0"},video:{menuItem:"\u52D5\u753B",abstract:"\u52D5\u753B"}}};D.mergeLang({"zh-CN":Btt,"en-US":ytt,"ja-JP":Ttt});var Vi=(n=>(n.AUDIO="audio",n.VIDEO="video",n))(Vi||{}),Eh=(n=>(n.Empty="empty",n.Progress="progress",n.Error="error",n))(Eh||{});const uL=10*1024*1024,ktt=["wav","mp3","aac","ogg","webm","flac"],Rtt=["ogg","mp4","webm"],wtt=()=>{};function fL(n){var h,C,E,b,v,k;const t=(h=n.getComponentOptions("media"))!=null?h:{},{allowedMedias:e,maxSize:r,callbacks:i}=t,o=(C=e==null?void 0:e.audio)!=null?C:ktt,s=(E=e==null?void 0:e.video)!=null?E:Rtt,l=(b=r==null?void 0:r.audio)!=null?b:uL,c=(v=r==null?void 0:r.video)!=null?v:uL,f=(k=i==null?void 0:i.onError)!=null?k:wtt;return{allowedMedias:{audio:o,video:s},maxSize:{audio:l,video:c},callbacks:{onError:f}}}function Stt(n,t){const e=o=>o.map(s=>`.${s}`).join(","),{allowedMedias:r}=fL(n),i=r[t];return i?e(i):"*"}function Ltt(n,t,e){const{maxSize:r,callbacks:i,allowedMedias:o}=fL(t),{[e]:s}=r,{[e]:l}=o;if(s&&n.size>s){const f=new Error("media is too large");throw f.code=`MaxMediaSize-${e}`,i!=null&&i.onError&&(i==null||i.onError(t,f)),f}const c=Pf(n.name);if(l&&!l.includes(c.toLowerCase())){const f=new Error(`media file is not allowed: ${c}`);throw f.code="NotAllowedFile",i!=null&&i.onError&&(i==null||i.onError(t,f)),f}}function Itt(n){return n===Eh.Empty||n===Eh.Error}const bn=_("media");class Dtt extends $e.TypedEmitter{constructor(e){super();m(this,"mediaContainer",null);m(this,"media",null);m(this,"abstract",null);m(this,"handleMediaLoadError",(e,r)=>{if(!r.target||!(r.target instanceof Node)||!(r.target instanceof Element?r.target:r.target.parentElement))return;const o=Q(r.target);if(!o||!o.contains(this.mediaContainer))return;const s=this.renderError();this.updateMediaContent(s),this.emit("mediaError",e,"load_error",dt(o))});m(this,"handleUploadFile",async e=>{p(bn,this.abstract,"no abstract"),p(bn,this.mediaContainer,"The media element not exist");const{editor:r}=this.options,i=Q(this.mediaContainer);p(bn,i,"The block element not exist");const o=r.getBlockData(i);try{const{resourceId:s}=await r.doc.uploadResource(e,{onProgress:C=>{this.renderProgress(C,e)}}),{name:l,type:c,size:f}=e,h={...o,embedData:{...o.embedData,src:s,fileName:l,fileSize:f,fileType:c}};r.updateBlockData(i,h)}catch(s){bn.error(s),this.emit("mediaError",r,"upload_error",o.id),this.renderRetry(e,s)}lt(i,"media-block-uploading")});m(this,"destroy",()=>{this.mediaContainer=null});this.options=e}bindMediaEvent(){const{editor:e}=this.options;this.media&&e.domEvents.addEventListener(this.media,"error",this.handleMediaLoadError)}unbindMediaEvent(){const{editor:e}=this.options;this.media&&e.domEvents.removeEventListener(this.media,"error",this.handleMediaLoadError)}updateMediaContent(e){p(bn,this.mediaContainer,"The media element not exist"),this.mediaContainer.innerHTML="",this.mediaContainer.append(e)}renderError(){p(bn,this.abstract,"no abstract");const{editor:e,createMediaElement:r}=this.options,{mediaIcon:i,mediaName:o}=this.abstract;p(bn,this.mediaContainer,"The media element not exist");const s=Q(this.mediaContainer);p(bn,s,"The block element not exist");const l=e.getBlockData(s),c=B("div",["media-error","embed-selected-content","embed-hover-content"],null),f=B("span",["media-error-icon"],c);f.innerHTML=i;const h=B("div",[],c);h.innerHTML=D.t("media.load.failed",{name:o}),c.appendChild(h);const C=h.querySelector(".retry-upload");return p(bn,C,"The element not exist"),e.domEvents.addEventListener(C,"click",(E,b)=>{const v=B("div",["media-element"],null),k=this.getResourceUrl(l),w=r(E,v,l,k);this.unbindMediaEvent(),this.media=w,this.bindMediaEvent(),this.updateMediaContent(v)}),this.setFullScreen(),c}renderRetry(e,r){var E,b;p(bn,this.abstract,"no abstract");const{editor:i}=this.options,{mediaIcon:o,mediaName:s}=this.abstract,l=B("div",["media-error","embed-selected-content","embed-hover-content"],null),c=B("span",["media-error-icon"],l);c.innerHTML=o;const f=B("div",[],l);let h=D.t("media.upload.failed",{name:s});(((E=r.response)==null?void 0:E.status)===420||((b=r.response)==null?void 0:b.status)===413)&&(h=D.t("media.upload.maxSizeFailed",{name:s})),f.innerHTML=h,l.appendChild(f);const C=f.querySelector(".retry-upload");C&&i.domEvents.addEventListener(C,"click",()=>{i.readonly||(p(bn,this.abstract,"no abstract"),this.handleUploadFile(e))}),this.updateMediaContent(l),this.setFullScreen()}renderProgress(e,r){p(bn,this.mediaContainer,"The media element not exist");const i=this.mediaContainer.querySelector(":scope .media-progress"),o=e===-1||e===100?100:e;if(i){const{updateProgressElement:s}=this.options;s(i,o)}else{const{createProgressElement:s}=this.options,l=Q(this.mediaContainer);p(bn,l,"The element not exist"),z(l,"media-block-uploading");const c=B("div",["media-progress"],null);s(c,o,r),this.updateMediaContent(c)}this.setFullScreen()}renderMediaElement(e,r){p(bn,this.mediaContainer,"The media element not exist");const i=this.mediaContainer.querySelector(":scope > .media-element"),{createMediaElement:o,updateMediaElement:s,editor:l}=this.options,c=this.getResourceUrl(e,r);if(i){const f=s(l,i,e,c);this.unbindMediaEvent(),this.media=f,this.bindMediaEvent()}else{const f=B("div",["media-element"],null),h=o(l,f,e,c);this.unbindMediaEvent(),this.media=h,this.bindMediaEvent(),this.updateMediaContent(f)}}renderEmpty(e){p(bn,this.abstract,"no abstract"),p(bn,this.mediaContainer,"The media element not exist");const r=B("div",["media-empty","embed-selected-content","embed-hover-content"],this.mediaContainer);r.innerHTML=this.abstract.mediaIcon,this.updateMediaContent(r);const{editor:i}=this.options;i.findBlockById(e.id)&&this.emit("mediaError",i,"empty",e.id),this.setFullScreen()}getResourceUrl(e,r){const{src:i}=e.embedData,{editor:o}=this.options;return o.doc.buildResourceUrl(i,{syncNewResources:async(s,l)=>{var f,h;if(!r)return;await o.doc.addResources([s]);const c=(h=(f=o.doc).getServerMeta)==null?void 0:h.call(f).appId;if(l!==e.embedData.src&&c&&e.embedData.src.includes(c)){const C=Q(r);if(C&&!o.readonly&&o.isBlockWritable(C)){const E=At.default(e);E.embedData.src=s,o.updateBlockData(C,E)}}}})}setFullScreen(){p(bn,this.mediaContainer,"The media element not exist"),z(this.mediaContainer,"full-screen")}removeFullScreen(){p(bn,this.mediaContainer,"The media element not exist"),lt(this.mediaContainer,"full-screen")}updateBlockAlign(e,r){const i=Q(r);p(bn,i,"The block element not exist");const{align:o}=e;e.embedType==="video"&&(i.hasAttribute("data-style-align")&&i.removeAttribute("data-style-align"),i.setAttribute("data-style-align",o))}render(e,r){const{src:i}=e.embedData;(!this.mediaContainer||!r.contains(this.mediaContainer))&&(this.mediaContainer=B("div",["media"],r)),this.updateBlockAlign(e,r),Itt(i)?i===Eh.Empty&&this.renderEmpty(e):this.renderMediaElement(e,r)}setAbstract(e){this.abstract=e}}_("media-embed");const _tt="left";class dL{constructor(){m(this,"handleInsertEmptyEmbed",async(t,e)=>{var C;const{containerId:r,blockIndex:i}=e;let o;(C=e.data)!=null&&C.file&&(o=e.data.file);const s=Stt(t,this.embedType);if(o=o!=null?o:await $c(s,{}),!o)return null;const{mediaType:l}=this.getAbstract();try{Ltt(o,t,l)}catch{return null}const c={id:rt(),type:"embed",embedType:this.embedType,embedData:{src:Eh.Empty}};l==="video"&&(c.align=_tt);const f=t.insertBlock(r,i,c);return await this.getMedia(t,c.id).handleUploadFile(o),f})}getMedia(t,e){const r=t.addCustom(`media-${e}`,()=>new Dtt({editor:t,createMediaElement:this.createMediaElement,updateMediaElement:this.updateMediaElement,createProgressElement:this.createProgressElement,updateProgressElement:this.updateProgressElement}));return r.setAbstract({...this.getAbstract()}),r}getOptions(){const{menuItem:t,mediaIcon:e,mediaName:r,order:i,group:o}=this.getAbstract();return{name:r,insertEmbedCommandItems:[{id:`insert-${this.embedType}`,name:t,icon:e,order:i,group:o,subText:Qn(`insert-${this.embedType}`)}],handleInsertEmptyEmbed:this.handleInsertEmptyEmbed}}createEmbedContent(t,e,r){const{id:i}=r;this.getMedia(t,i).render(r,e)}handleUpdateBlock(t,e,r){const{id:i}=r,o=this.getMedia(t,i),s=$t(e);return o.render(r,s),!0}handleDeleteBlock(t,e){const r=e.id,i=this.getMedia(t,r);i.removeAllListeners(),i.destroy()}convertTo(t,e,r,i){const o=e.embedData,s=t.doc.buildResourceUrl(o.src,{withToken:!0});return i==="html"?`<${o.type} src="${s}" />`:i==="markdown"?`![${o.src}](${s})`:s}}function hL(n,t){const e=B("div",["uploading-progress-mask"],n),r=B("div",["uploading-progress-bar"],e),i=B("div",["uploading-progress-bar-value"],r);i.style.width=`${t}%`}function mL(n,t){const e=n.querySelector(".uploading-progress-bar-value");e&&(e.style.width=`${t}%`)}const Mtt=_("media-audio");class Ott extends dL{constructor(){super(...arguments);m(this,"embedType",Vi.AUDIO);m(this,"updateProgressElement",mL);m(this,"createMediaElement",(e,r,i,o)=>{const s=B("div",["audio-container","embed-hover-content","embed-selected-content"],r),l=B("audio",[],s);return l.innerHTML="Your browser does not support the <code>audio</code> element.",l.controls=!0,l.src=o,setTimeout(()=>{this.getMedia(e,i.id).setFullScreen()}),l})}getAbstract(){return{mediaIcon:o2,mediaName:D.t(`media.${Vi.AUDIO}.menuItem`),menuItem:D.t(`media.${Vi.AUDIO}.menuItem`),order:800,mediaType:Vi.AUDIO,group:"common"}}getBlockProperties(){return{abstract:`${D.t(`media.${Vi.AUDIO}.abstract`)}`}}updateMediaElement(e,r,i,o){const s=r.querySelector(":scope .audio-container > audio");return p(Mtt,s,"The media element not exist"),s.src!==o&&(s.src=o),s}createProgressElement(e,r){const i=B("audio",[],e);i.innerHTML="Your browser does not support the <code>audio</code> element.",i.controls=!0,i.src="about:blank",hL(e,r)}}const Utt=new Ott;_("video-resizer");function gL(n){return n&&me(n)&&Ge(n)==="video"}const Ntt=50;class jx{constructor(t){m(this,"currentResizableElement",null);m(this,"resizing",!1);m(this,"handleHoveringBlockChange",(t,e)=>{if(!this.resizing&&!window.isDragging&&(e&&gL(e)&&this.disableBlockResize(e),t&&gL(t)&&this.editor.isBlockWritable(t))){const r=this.getVideoElement(t);if(!r)return;this.enableBlockResize(t,r)}});m(this,"handleResizing",(t,e)=>{if(this.resizing=!0,!this.currentResizableElement)return;const r=t.getBlock();if(!r)return;const i=r.getBoundingClientRect().width,o=Math.min(Math.max(e.width,Ntt),i);this.currentResizableElement.style.width=`${o}px`,this.currentResizableElement.style.pointerEvents="none"});m(this,"handleResized",t=>{this.resizing=!1;const e=t.getBlock();if(!this.currentResizableElement||!e)return;const r=this.editor.getBlockData(e),{width:i}=this.currentResizableElement.getBoundingClientRect();this.currentResizableElement.style.pointerEvents="auto",this.editor.updateBlockData(e,{...r,width:i})});this.editor=t,We.get(t).addListener("change",this.handleHoveringBlockChange)}destroy(){this.currentResizableElement=null,We.get(this.editor).removeListener("change",this.handleHoveringBlockChange)}getVideoElement(t){return $t(t).querySelector(":scope .video-container > video")}updateResizer(t){const e=this.editor.findCustom(`${dt(t)}-resizer`);e&&e.updateResizer()}disableBlockResize(t){const e=this.editor.findCustom(`${dt(t)}-resizer`);e&&e.disableResize()}enableBlockResize(t,e){const r=this.editor.addCustom(`${dt(t)}-resizer`,()=>new Zd(this.editor,{resize:["top-left","top-right","bottom-left","bottom-right"]}));r.enableResize(t,e),r.removeListener("resizing",this.handleResizing),r.removeListener("resized",this.handleResized),r.addListener("resizing",this.handleResizing),r.addListener("resized",this.handleResized),this.currentResizableElement=e}}class Ptt{constructor(t,e){m(this,"group","hovering-toolbar");m(this,"_commands",[{id:"addComment",name:D.t("comment.quickMenuCommand"),icon:cs},{id:"sep",name:"",type:"separator"},{id:"left",name:D.t("commands.alignLeft"),icon:xl},{id:"center",name:D.t("commands.alignCenter"),icon:fu},{id:"right",name:D.t("commands.alignRight"),icon:uu}]);this.editor=t,this.block=e,this.editor=t,this.block=e}createIconItem(t,e,r){if(!t)return null;const i=["style-icon","text-style-item"];return e&&i.push("active"),jo(t,i,r)}get commands(){if(this.editor.readonly)return[];const t=this.block.getAttribute("data-style-align");return this._commands.map(r=>r.id===t?{...r,element:()=>{const i=B("div",["video-tooltip-align-style-section"],null);return this.createIconItem(r.icon,!0,i),i}}:r)}executeCommand(t,e,r){switch(r.id){case"addComment":Na(t,e);break;case"left":case"center":case"right":hg(t,e,r.id);break}}}const Ftt=_("video");class Ktt extends dL{constructor(){super(...arguments);m(this,"embedType",Vi.VIDEO);m(this,"updateProgressElement",mL);m(this,"createMediaElement",(e,r,i,o)=>{const s=B("div",["video-container","embed-selected-content","drag-preview-element"],r),l=B("video",[],s);return l.innerHTML="Your browser does not support the <code>video</code> element.",l.controls=!0,l.src=o,l.addEventListener("canplay",()=>{e.addCustom("video-resizer",()=>new jx(e)),this.getMedia(e,i.id).removeListener("mediaError",this.handleMediaError),this.getMedia(e,i.id).addListener("mediaError",this.handleMediaError),this.getMedia(e,i.id).removeFullScreen()}),i.width&&(l.style.width=`${i.width}px`),l});m(this,"createProgressElement",(e,r,i)=>{const o=B("video",["progress-video"],e);o.innerHTML="Your browser does not support the <code>audio</code> element.",o.controls=!0,hL(e,r),Vc(i).then(s=>{const l=e.querySelector(".progress-video");l&&v1(e)&&(l.src=s)})})}getAbstract(){return{mediaName:D.t(`media.${Vi.VIDEO}.menuItem`),mediaIcon:s2,menuItem:D.t(`media.${Vi.VIDEO}.menuItem`),order:700,mediaType:Vi.VIDEO,group:"common"}}getBlockProperties(e,r){return{abstract:`${D.t(`media.${Vi.VIDEO}.abstract`)}`,blockCommands:{"hovering-toolbar":new Ptt(e,r)}}}handleMediaError(e,r,i){const o=e.addCustom("video-resizer",()=>new jx(e)),s=e.getBlockById(i);o.disableBlockResize(s)}updateMediaElement(e,r,i,o){const s=r.querySelector(":scope .video-container > video");p(Ftt,s,"The media element not exist"),s.src!==o&&(s.src=o),i.width?s.style.width=`${i.width}px`:s.style.width="";const l=e.getBlockById(i.id);return setTimeout(()=>{e.addCustom("video-resizer",()=>new jx(e)).updateResizer(l)}),s}}const Vtt=new Ktt,zx=[UR,XR,YR,wK,G4],Wx=[oL,VQ,XZ,itt,dtt,lV,vtt,Vtt,Utt,hW,k4,zX],pL=[sR,S4,QS,dR];function $tt(n,t,e){var i,o,s,l;Ei.level=(i=e.logLevel)!=null?i:rl.DEBUG;const r=pd(n,t,{components:{blocks:[...zx,...((o=e==null?void 0:e.components)==null?void 0:o.blocks)||[]],embeds:[...Wx,...((s=e.components)==null?void 0:s.embeds)||[]],boxes:[...pL,...((l=e.components)==null?void 0:l.boxes)||[]],textRenders:[new sb],options:{...e.componentsOptions}}});return r.readonly=!0,r.addCustom("heading-collapse",()=>new kx(r)),r.addCustom("editor-tooltip",()=>new zd(r)),r.addListener("clickLink",(c,f,h)=>{var E;if((E=e==null?void 0:e.events)!=null&&E.onClickLink){e.events.onClickLink(c,f,h);return}const C=h.getAttribute("link");C&&(c.readonly||f.ctrlKey||f.metaKey)&&window.open(C,"_blank")}),r}class CL{constructor(t){this.createOptions=t,t.lang&&D.setLang(t.lang)}createHistoryEditor(t,e){return $tt(t,e,this.createOptions)}}function EL(n,{root:t,childDoc:e,doc:r}){var h,C;e.uploadResource=r.uploadResource.bind(r),e.buildResourceUrl=r.buildResourceUrl.bind(r);const i=n.getComponentOptions("comment"),o={image:{defaultAlign:"left"},table:{locatingContainer:t,hideCellMenu:!0,hideToolbar:!0},...i==null?void 0:i.componentsOptions},s=[];n.editorBlocks.forEach(E=>{E.blockType==="text"||E.blockType==="embed"||s.push(E)});const l=[];n.editorEmbeds.forEach(E=>{l.push(E)});const c=[];n.editorBoxes.forEach(E=>{E.boxType==="text"||E.boxType==="br"||E.boxType==="image"||E.boxType==="anchor"||c.push(E)});const f=pd(t,e,{shortcuts:[g0],components:{blocks:s,commandProviders:[new q0],decorators:[new vg],embeds:l,boxes:c,options:o}});if(f.input.addHandler(new yg),f.input.addHandler(new Zb(f)),f.input.addHandler(new ox(f)),f.input.addHandler(new iX(f)),f.input.addHandler(new wg),f.addCustom("image-paste-handler",()=>new Yb(f)),f.addCustom("layout-paste-handler",()=>new Ux(f,!1)),ye.isMobile||f.addCustom("editor-tooltip",()=>new zd(f)),n.options.enableContextMenu!==!1&&f.addCustom("editor-context-menu",E=>new ax(E)),(h=n.options.componentsOptions)!=null&&h.mention){const E=n.options.componentsOptions.mention;f.addCustom("mention",()=>new w4(f,{...E}))}if((C=n.options.componentsOptions)!=null&&C.comment){const E=n.options.componentsOptions.comment;E.onCommentEditorClick&&f.addListener("click",E.onCommentEditorClick)}return f}function Htt(n,t){const e=Array.from(n.rootContainer.querySelectorAll(`[comment-${t.toLocaleLowerCase()}="${t}"]`)),r=new Set;e.forEach(i=>{const o=Q(i);o&&r.add(o)}),r.forEach(i=>{oX(n,i,t)})}class jtt{constructor(t){m(this,"listeners",new Set);m(this,"doc");this.editor=t,this.doc=this.editor.doc.externalDoc,this.doc.registerCallback(this)}getComments(){return this.doc.getComments()}getComment(t){return this.doc.getComment(t)}getCommentDoc(t){return this.doc.getCommentDoc(t)}localCreateComment(t,e){this.doc.localCreateComment(t,e)}localDeleteComment(t){const e=this.getComment(t);this.doc.localDeleteComment(t);const r=e.groupId;this.getComments().filter(o=>o.groupId===r).length===0&&Htt(this.editor,r)}localUpdateComment(t,e){this.doc.localUpdateComment(t,e)}onCreateComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onCreateComment(t,e))}onDeleteComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onDeleteComment(t,e))}onUpdateComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onUpdateComment(t,e))}addListener(t){this.listeners.add(t)}removeListener(t){this.listeners.delete(t)}createCommentEditor(t,e){return EL(this.editor,{root:t,childDoc:e,doc:this.doc})}allowEdit(t){return t.userId===this.doc.getUser().userId}}class ztt{constructor(t,e){m(this,"listeners",new Set);this.editor=t,this.localDoc=e}get doc(){return this.localDoc.toJSON()}getComments(){return Object.values(this.doc.comments)}getComment(t){return this.doc.comments[t]}getCommentDoc(t){const e=this.doc.comments[t];return iE(e)}addListener(t){this.listeners.add(t)}removeListener(t){this.listeners.delete(t)}localCreateComment(t,e){}localDeleteComment(t){}localUpdateComment(t,e){}createCommentEditor(t,e){return EL(this.editor,{root:t,childDoc:e,doc:this.localDoc})}allowEdit(t){return t.userId===this.localDoc.getUser().userId}}const Wtt={placeholder:{common:{title:"\u8BF7\u8F93\u5165\u6807\u9898",readonlyTitle:"\u8BF7\u8F93\u5165\u6807\u9898",content:"\u70B9\u51FB + \uFF0C\u6216\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6",contentInTable:"\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6"},local:{readonlyTitle:"\u672A\u547D\u540D"}},copyCutProperty:{copy:"\u590D\u5236",cut:"\u526A\u5207",unsafeEnvTips:"\u7531\u4E8E\u5F53\u524D http \u8BBF\u95EE\u73AF\u5883\u4E0B\u7684\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528\u5FEB\u6377\u952E({shortCut}) {operation}",limitedEnvTips:"\u7531\u4E8E\u6D4F\u89C8\u5668\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528 {shortCut} \u7C98\u8D34"}},Gtt={placeholder:{common:{title:"Enter a title",readonlyTitle:"Enter a title",content:'Click "+", or enter "/" to insert components quickly',contentInTable:'Enter "/" to insert components quickly'},local:{readonlyTitle:"Untitled"}},copyCutProperty:{copy:"Copy",cut:"Cut",unsafeEnvTips:"Due to the limitations of the current http access environment, please use the shortcut ({shortCut}) {operation}",limitedEnvTips:"Press {shortCut} to paste due to browser restrictions"}},qtt={placeholder:{common:{title:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",readonlyTitle:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",content:"\u300C+\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u304B\u3001\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059",contentInTable:"\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059"},local:{readonlyTitle:"\u7121\u984C"}},copyCutProperty:{copy:"\u8907\u88FD",cut:"\u5207\u308B",unsafeEnvTips:"HTTP\u74B0\u5883\u306E\u5236\u7D04\u306B\u3088\u308A\u3001{operation}\u3059\u308B\u306B\u306F\u3001\u30B7\u30E7\u30FC\u30C8\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AAAAA/DMAAGRvY1Byb3BzL2FwcC54bWxQSwECLQAUAAYACAAAACEAiD+lv+EAAABVAQAAGAAAAAAAAAAAAAAAAAAHNwAAY3VzdG9tWG1sL2l0ZW1Qcm9wczEueG1sUEsBAi0AFAAGAAgAAAAhAMEnywi2AAAAIQEAABMAAAAAAAAAAAAAAAAARjgAAGN1c3RvbVhtbC9pdGVtMS54bWxQSwECLQAUAAYACAAAACEAdD85esIAAAAoAQAAHgAAAAAAAAAAAAAAAABVOQAAY3VzdG9tWG1sL19yZWxzL2l0ZW0xLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAOuAYExTAwAAjw4AABIAAAAAAAAAAAAAAAAAWzsAAHdvcmQvZm9udFRhYmxlLnhtbFBLBQYAAAAADwAPANQDAADePgAAAAA=",Ytt=()=>i1(Xtt),Jtt=_("image-to-docx");async function Qtt(n){return new Promise((t,e)=>{const r=new Image;r.onload=()=>{t({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=e,r.src=n})}async function bL(n,t){if(n.width&&n.height)return{width:n.width,height:n.height,buffer:t};try{const e=await Vc(new File([t],"",{})),r=await Qtt(e);return r.width===void 0||r.height===void 0?{width:345,height:230,buffer:t}:n.width||n.height?{width:n.width||r.width*n.height/r.height,height:n.height||r.height*n.width/r.width,buffer:t}:{width:r.width,height:r.height,buffer:t}}catch(e){Jtt.error(e);return}}function Ztt(n,t){let e=n.filter(s=>s!=null);const r=t-(e.length-1)*20,i=.87,o=e.reduce((s,l)=>s+l.width,0);return o>r&&(e=e.map(s=>({width:s.width*r/o,height:s.height*r/o,buffer:s.buffer}))),e.map(s=>({width:s.width*i,height:s.height*i,buffer:s.buffer}))}function tet(n,t,e){if(!e||typeof e!="object")return;const r=e,i=n.filter(s=>s!=null),o=t-(i.length-1)*20;i.forEach((s,l)=>{if(i.length===1&&r.widthPercent){const f=r.widthPercent,h=s.width;s.width=o*(f/100),s.height*=s.width/h;return}const c=`${l}_flex`;if(r[c]){const f=r[c],h=s.width;s.width=o*f,s.height*=s.width/h}})}function xL(n=[0,1,2,3,4,5,6,7],t=1){return n.map(e=>{let r;switch(e%3){case 0:r=Bt.LevelFormat.DECIMAL;break;case 1:r=Bt.LevelFormat.LOWER_LETTER;break;default:r=Bt.LevelFormat.LOWER_ROMAN;break}return{level:e,format:r,text:`%${e+1}. `,alignment:Bt.AlignmentType.START,start:t,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(e+1)),hanging:Bt.convertInchesToTwip(.2)}}}}})}function eet(){return[0,1,2,3,4,5,6,7].map(n=>{let t;switch(n%3){case 0:t="\u2022";break;case 1:t="\u25E6";break;default:t="\u25AA";break}return{level:n,format:Bt.LevelFormat.BULLET,text:t,alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}})}function net(){return[0,1,2,3,4,5,6,7].map(n=>({level:n,format:Bt.LevelFormat.BULLET,text:"\u2611",alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}))}function ret(){return[0,1,2,3,4,5,6,7].map(n=>({level:n,format:Bt.LevelFormat.BULLET,text:"\u2610",alignment:Bt.AlignmentType.START,style:{paragraph:{indent:{left:Bt.convertInchesToTwip(.3*(n+1)),hanging:Bt.convertInchesToTwip(.2)}}}}))}var bh=(n=>(n.NUMBERING="number-numbering-reference",n.BULLET="number-bullet-reference",n.CHECKED="checked-bullet-reference",n.UNCHECKED="unchecked-bullet-reference",n))(bh||{});const iet=[{levels:xL(),reference:"number-numbering-reference"},{levels:eet(),reference:"number-bullet-reference"},{levels:net(),reference:"checked-bullet-reference"},{levels:ret(),reference:"unchecked-bullet-reference"}];function oet(n){switch(n){case"style-color-0":return"d83931";case"style-color-1":return"de7802";case"style-color-2":return"dc9b04";case"style-color-3":return"2ea121";case"style-color-4":return"245bdb";case"style-color-5":return"6425d0";case"style-color-6":return"8f959e";default:return}}function set(n){switch(n){case"style-bg-color-1":case"style-bg-color-2":case"style-bg-color-8":case"style-bg-color-9":return"yellow";case"style-bg-color-0":case"style-bg-color-5":return"magenta";case"style-bg-color-3":return"green";case"style-bg-color-4":case"style-bg-color-11":return"blue";case"style-bg-color-6":return"lightGray";case"style-bg-color-7":return"red";case"style-bg-color-10":return"darkGreen";case"style-bg-color-12":return"darkMagenta";case"style-bg-color-13":return"darkGray";default:return}}function aet(n){switch(n){case"style-bg-color-0":return"fbbab6";case"style-bg-color-1":return"ffdcb0";case"style-bg-color-2":return"fff7a0";case"style-bg-color-3":return"ceefc5";case"style-bg-color-4":return"d1ddfb";case"style-bg-color-5":return"d9cbf8";case"style-bg-color-6":return"eaeaea";case"style-bg-color-7":return"fe837c";case"style-bg-color-8":return"ffbd6a";case"style-bg-color-9":return"ffe662";case"style-bg-color-10":return"a8f393";case"style-bg-color-11":return"98b5ff";case"style-bg-color-12":return"b394f8";case"style-bg-color-13":return"b1b1b1";default:return}}const cet=/rgb\((\d+),\s*(\d+),\s*(\d+)\)/;function AL(n){if(typeof n=="string"&&n.length>0){if(n[0]==="#")return n.substring(1);const t=n.match(cet);if(t){const e=s=>{let l=Number(s).toString(16);return l.length<2&&(l=`0${l}`),l},r=e(t[1]),i=e(t[2]),o=e(t[3]);return`${r}${i}${o}`}if(n==="red")return"FF0000";if(n==="green")return"00FF00";if(n==="blue")return"0000FF"}}function On(n,t){if(n&&n.attributes&&n.attributes[t])return n.attributes[t];if(n&&n.attributes&&n.attributes.box&&n.attributes.inputType&&t==="style-underline")return!0}function vL(n,t,e){for(let r=0;r<=e;++r){const i=`${t}${r}`;if(On(n,i))return i}}function tp(n,t,e){n.attributes=n.attributes||{},n.attributes[t]=e}function Gx(n){return n==="image"||n==="drawio"||n==="plantuml"||n==="mermaid"||n==="flowchart"}function BL(n){return n&&n.startsWith("//")?`https:${n}`:n&&!n.startsWith("http://")&&!n.startsWith("https://")?`https://${n}`:n}function uet(n){const t=On(n,"inlineStyle");if(t==null)return;const e=t.split(";");for(const r of e){const i=r.split(":");if(i.length!==2)continue;const o=i[0].trim().toLowerCase(),s=i[1].trim().toLowerCase();o==="font-size"&&tp(n,"inline-style-font-size",s),o==="color"&&tp(n,"inline-style-color",s),o==="background-color"&&tp(n,"inline-style-background-color",s),o==="font-family"&&tp(n,"inline-style-font-family",s)}}function fet(n,t){if(t==null)return n==null?void 0:n.normal;if(n)return n[`heading${t}`]}function det(n){const t=`${On(n,"inline-style-font-size")}`;if(t&&t.indexOf("px")>0)return+t.replace(/px/g,"")}function het(n){if(n.attributes&&n.attributes.box&&n.attributes.text)return` ${n.attributes.text} `;if(n.attributes&&n.attributes.box&&n.attributes.inputType)return n.attributes.value?`${n.attributes.value}`:" "}function met(n){if(n.attributes&&n.attributes.box&&n.attributes.text)return` @${n.attributes.text} `}function get(n){return On(n,"inline-style-font-family")}function pet(n){const t=On(n,"inline-style-background-color");return AL(t)}function Cet(n){const t=On(n,"inline-style-color");return AL(t)}function Eet(n){uet(n);const t=On(n,"type")==="mention";return{box:n.attributes&&n.attributes.box?n.attributes:void 0,inlineCode:!!On(n,"style-code"),link:BL(On(n,"link")),size:det(n),text:t?met(n):het(n)||n.insert,bold:!!On(n,"style-bold"),underline:!!On(n,"style-underline"),italics:!!On(n,"style-italic"),strike:!!On(n,"style-strikethrough"),superScript:!!On(n,"style-super"),subScript:!!On(n,"style-sub"),math:On(n,"type")==="math"?On(n,"src"):void 0,mention:t,fontFamily:get(n),background:pet(n),color:t?"338fe5":oet(vL(n,"style-color-",6))||Cet(n),highlight:vL(n,"style-bg-color-",13)}}function bet(){return[new Bt.Paragraph({border:{top:{color:"auto",style:Bt.BorderStyle.DASHED,size:4,space:1}},spacing:{before:300}}),new Bt.Paragraph({spacing:{line:0}})]}function xet(){return new Bt.Paragraph({children:[new Bt.TextRun({text:"[\u89C6\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}})]})}function Aet(){return new Bt.Paragraph({children:[new Bt.TextRun({text:"[\u97F3\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}})]})}function vet(n,t){return new Bt.Paragraph({children:[new Bt.ExternalHyperlink({children:[new Bt.TextRun({style:"Hyperlink",text:t||n})],link:n})]})}function yL(n){if(n.heading!=null)return`Heading${n.heading}`}function TL(n){if(n.alignment!=null){if(n.alignment==="center")return Bt.AlignmentType.CENTER;if(n.alignment==="right")return Bt.AlignmentType.RIGHT;if(n.alignment==="left")return Bt.AlignmentType.LEFT}}function Bet(n){if(n.indent)return{left:Bt.convertInchesToTwip(.3*n.indent-.2)};if(n.padding)return{left:Bt.convertInchesToTwip(.3*n.padding)}}function yet(n){return{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:n}}function Tet(n){const t=n.split(",");if(t.length!==0)return t[0].trim()}function kL(n,t){let e;e=n.inlineCode?"InlineCode":void 0,e=n.link?"Hyperlink":e;const r=n.size||t,i=r!=null?Math.floor(r*1.5+.5):void 0;return new Bt.TextRun({text:n.text,bold:n.bold||void 0,underline:n.underline?{type:Bt.UnderlineType.SINGLE}:void 0,italics:n.italics||void 0,strike:n.strike||void 0,superScript:n.superScript||void 0,subScript:n.subScript||void 0,size:i,style:e,font:n.fontFamily?Tet(n.fontFamily):void 0,shading:n.background?yet(n.background):void 0,color:n.color,highlight:set(n.highlight)})}function ket(n,t){if(n.link)return new Bt.ExternalHyperlink({children:[kL(n,t)],link:n.link})}async function RL(n,t,e,r,i){const[o]=await i(n,t,e);if(o==null)return;const s=await bL({width:r||0,height:0,src:e},o);return new Bt.ImageRun({data:o,transformation:{width:(s==null?void 0:s.width)||100,height:(s==null?void 0:s.height)||20}})}function Ret(n){if(n.heading||n.heading)return n.heading}function wet(n){if(n.align&&(n.align==="center"||n.align==="right"||n.align==="left"))return n.align}function Let(n){if(n.textOnly===!0&&n.level!=null)return n.level}async function Iet(n,t){var r;const e=[];if(n.text&&Array.isArray(n.text)){for(let i=0;i<n.text.length;i++){const o=n.text[i];if(((r=o.attributes)==null?void 0:r.box)===!0&&t){const s=await t(o);if(s){n.text.splice(i+1,0,...s);continue}}e.push(Eet(o))}return e}}function Det(n){if(n.type==="list"&&n.textOnly!==!0)return{checkbox:n.checkbox,groupId:n.groupId,ordered:!!n.ordered,level:n.level||1,start:n.start||0}}function _et(n,t){if(n.type==="embed"&&n.embedType&&Gx(n.embedType)&&n.embedData&&n.embedData.src)return n.embedData.src.split("|").map(r=>{const i=t(r),o=n.embedData[`${i}_width`],s=n.embedData[`${i}_height`];return{src:r,width:o,height:s}})}function Met(n){if(n.padding)return n.padding}function Oet(n){return!!(n.type==="embed"&&n.embedType&&Gx(n.embedType)&&n.embedData&&n.embedData.src)}async function ep(n,t,e){return{quoted:!!n.quoted,heading:Ret(n),alignment:wet(n),indent:Let(n),padding:Met(n),texts:await Iet(n,e),list:Det(n),images:_et(n,t),border:Oet(n)}}async function Uet(n,t,e,r){const i=[];if(!n.children)return[];for(const o of n.children){const s=[];for(const l of t.blocks[o])s.push(await ep(l,e,r));i.push(s)}return i}const Net=_("to-docx");function Pet(n,t){return Array(n).fill(0).map(()=>Array(t).fill(0).map(()=>({cellId:void 0,color:void 0,from:void 0,rowSpan:1,colSpan:1,width:0,originalWidth:void 0,align:void 0})))}function Fet(n,t,e,r){const i=!!n.hasColTitle,o=!!n.hasRowTitle,s=!!n.isStripeStyle,l="F5F8FB";for(let c=0;c<t;c++)for(let f=0;f<e;f++)(i&&f===0||o&&c===0||s&&c%2===1)&&(r[c][f].color=l)}function Ket(n){p(Net,n.children,"no table children");const t=n.rows,e=n.cols,r=n.colsWidth;if(r)for(let s=0;s<r.length;s++)r[s]===0&&(r[s]=100);const i=Pet(t,e);let o=0;for(let s=0;s<t;++s)for(let l=0;l<e;++l){if(i[s][l].originalWidth=r?r[l]:void 0,i[s][l].from!==void 0)continue;const c=n.children[o];o+=1,i[s][l].cellId=c,i[s][l].color=aet(n[`${c}_background`]),i[s][l].width=r?r[l]:100,i[s][l].align=n[`${c}_align`];const f=n[`${c}_rowSpan`]||1,h=n[`${c}_colSpan`]||1;if(i[s][l].rowSpan=f,i[s][l].colSpan=h,f>1||h>1){let C=0;for(let E=0;E<f;E++)for(let b=0;b<h;b++)E===0&&(C+=r?r[l+b]:80),!(E===0&&b===0)&&(i[s+E][l+b].from=[s,l]);i[s][l].width=C}}return Fet(n,t,e,i),i}const Vet=_("to-docx");function $et(n){return Array.from({length:n},()=>({cellId:void 0,originalWidth:0,width:0}))}function Het(n,t){p(Vet,n.children,"no layout children");const e=n.children.length,r=n.colsWidth;if(r)for(let o=0;o<r.length;o++)r[o]===0&&(r[o]=1/r.length);const i=$et(e);for(let o=0;o<e;++o)i[o].cellId=n.children[o],i[o].originalWidth=r[o]*t,i[o].width=r[o]*t;return i}async function jet(n,t,e,r,i,o,s,l,c,f){async function h(E){if(l&&E.type!=="_exportVirtualBlock"){const b=await l(i,o,E);if(b){await r.addDoc(n,b,f);return}}if(E.type==="text"||E.textOnly===!0){const b=await ep(E,s,c);await r.addTextBlock(b);return}if(E.type==="code"){const b=await Uet(E,e,s,c);await r.addCodeBlockObject(b);return}if(E.type==="list"&&E.textOnly!==!0){const b=await ep(E,s,c);await r.addListBlockObject(n,b);return}if(E.type==="embed"&&E.embedType){const b=E,v=b.embedData,k=b.embedType;if(Gx(k)){const w=await ep(E,s,c);await r.addImagesBlockObject(E,w,f)}else E.embedType==="hr"?r.addSeparatorBlock():E.embedType==="video"?r.addVideoPlaceholder():E.embedType==="audio"?r.addAudioPlaceholder():E.embedType==="webpage"?r.addHyperlinkParagraph(BL(v.src),v.title):r.addOtherEmbedBlock(k,E.embedData);return}if(E.type==="table"){let b=[];if(E.colsWidth)b=E.colsWidth;else{const k=E.cols;b=new Array(k);for(let w=0;w<b.length;w++)b[w]=100;E.colsWidth=b}const v=Ket(E);await r.addTableMatrix(b,v,e),r.addEmptyParagraph()}if(E.type==="_exportVirtualBlock"&&await r.addVirtualBlock(E.id,e,f),E.type==="layout"){const v=E.colsWidth.map(w=>w*f),k=Het(E,f);await r.addLayoutMatrix(v,k,e)}}function C(E){var k;const b=((k=E==null?void 0:E.embedData)==null?void 0:k.exportSpec)||(E==null?void 0:E.exportSpec);if(!b)return[E];const v=[];for(const{type:w,data:O}of b){if(w==="text"){const M={id:rt(),text:[{insert:O}],type:"text"};v.push(M);continue}if(w==="image"){const M={id:rt(),type:"embed",embedType:"image",align:"left",embedData:{src:O}};v.push(M);continue}if(w==="link"){const M={id:rt(),type:"embed",embedType:"webpage",embedData:{src:O.url,title:O.title}};v.push(M);continue}if(w==="block")for(const M of O){if(!e.blocks[M])continue;const Z={id:M,type:"_exportVirtualBlock"};v.push(Z)}}return v}for(const E of t)for(const b of C(E))!b||await h(b)}function zet(){return{listMaxInst:1,listInstMap:{},listRefMap:{},levelConfigs:[]}}const Wet=_("to-docx");class Get{constructor(t,e,r,i,o,s){m(this,"paragraphs");this.appId=t,this.docId=e,this.state=r,this.readImageFunc=i,this.convertBlocksFunc=o,this.defaultFontSize=s,this.paragraphs=[]}async addTextBlock(t){this.paragraphs.push(new Bt.Paragraph({heading:yL(t),alignment:TL(t),children:await this.paragraphsFromBlockTexts(t),indent:Bet(t)}))}async addEmptyImagePlaceHolder(){this.paragraphs.push(new Bt.Paragraph({text:`[${D.t("docx.imageExportFailed")}]`,shading:{type:Bt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}}))}async paragraphsFromBlockTexts(t){if(t.texts==null)return;const e=fet(this.defaultFontSize,t.heading),r=[];for(const i of t.texts){if(i.link){const o=ket(i,e);o&&r.push(o);continue}if(i.box&&i.box.type&&i.box.type==="br"){r.push(new Bt.TextRun({text:"",break:1}));continue}if(i.box&&i.box.type&&i.box.type==="image"){const o=await RL(this.appId,this.docId,i.box.src,i.box.width,this.readImageFunc);o&&r.push(o);continue}if(i.math){const o=await RL(this.appId,this.docId,i.math,0,this.readImageFunc);o&&r.push(o);continue}r.push(kL(i,e))}return r}async addCodeBlockObject(t){for(const e of t)for(const r of e){const i={style:Bt.BorderStyle.SINGLE,color:"#DEDEDE"};this.paragraphs.push(new Bt.Paragraph({style:"Code",border:{left:{...i},right:{...i},top:{...i},bottom:{...i}},children:await this.paragraphsFromBlockTexts(r)}))}}async addListBlockObject(t,e){if(e.list==null)return;let r;const i=e.list.checkbox?`${t}-${e.list.groupId}-${e.list.checkbox}`:`${t}-${e.list.groupId}`;if(this.state.listInstMap[i])r=this.state.listInstMap[i];else if(r=this.state.listMaxInst,this.state.listMaxInst+=1,this.state.listInstMap[i]=r,e.list.start>0&&e.list.ordered){const s=`number-numbering-reference-${r}`,l=xL([e.list.level-1],e.list.start);this.state.levelConfigs.push({levels:l,reference:s,inst:r}),this.state.listRefMap[i]=s}else e.list.ordered?this.state.listRefMap[i]=bh.NUMBERING:e.list.checkbox&&e.list.checkbox==="checked"?this.state.listRefMap[i]=bh.CHECKED:e.list.checkbox&&e.list.checkbox==="unchecked"?this.state.listRefMap[i]=bh.UNCHECKED:this.state.listRefMap[i]=bh.BULLET;const o=yL(e);e.texts&&this.paragraphs.push(new Bt.Paragraph({heading:o,children:await this.paragraphsFromBlockTexts(e),numbering:{reference:this.state.listRefMap[i],level:e.list.level-1,instance:r}}))}imageDimWithBufferToImageRun(t){return new Bt.ImageRun({data:t.buffer,transformation:{width:t.width,height:t.height}})}async addImagesBlockObject(t,e,r){if(e.images==null){if(t.type==="embed"&&t.embedType==="image"){const{src:c}=t.embedData;c||this.addEmptyImagePlaceHolder()}return}const i=[],o=await Promise.all(e.images.map(async c=>{const[f,h]=await this.readImageFunc(this.appId,this.docId,c.src);if(f){const C=await bL(c,f);if(C)return C}i.push(h)}));tet(o,r,t.embedData);const s=Ztt(o,r),l={style:Bt.BorderStyle.SINGLE,color:"#DEDEDE"};s.length&&this.paragraphs.push(new Bt.Paragraph({border:e.border?{left:{...l},right:{...l},top:{...l},bottom:{...l}}:void 0,alignment:TL(e)||Bt.AlignmentType.CENTER,children:s.map(c=>this.imageDimWithBufferToImageRun(c)).flatMap((c,f,h)=>c==null?[]:h.length-1!==f?[c,new Bt.TextRun({text:" "})]:c)})),i.forEach(c=>{this.addHyperlinkParagraph(c)})}addSeparatorBlock(){bet().forEach(t=>this.paragraphs.push(t))}addEmptyParagraph(){this.paragraphs.push(new Bt.Paragraph(""))}addVideoPlaceholder(){this.paragraphs.push(xet())}addAudioPlaceholder(){this.paragraphs.push(Aet())}addHyperlinkParagraph(t,e){t!=null&&this.paragraphs.push(vet(t,e))}async addTableMatrix(t,e,r){const i=t.map(o=>o!==0?o*15:1500);this.paragraphs.push(new Bt.Table({rows:await this.generateTableRows(e,r),columnWidths:i}))}async generateRowCells(t,e){const r=[];for(const i of t){const o=i.cellId;if(o===void 0)continue;const s=i.width*.9;r.push(new Bt.TableCell({children:await this.convertBlocksFunc(o,e.blocks[o],e,this.appId,this.docId,this.state,s),columnSpan:i.colSpan,rowSpan:i.rowSpan,width:{type:Bt.WidthType.DXA,size:i.width*15},shading:i.color?{fill:i.color,type:Bt.ShadingType.CLEAR,color:"auto"}:void 0}))}return r}async generateTableRows(t,e){const r=[];for(const i of t)r.push(new Bt.TableRow({children:await this.generateRowCells(i,e)}));return r}async addLayoutMatrix(t,e,r){const i=t.reduce((o,s)=>o+s,0);for(const o of e){const s=o.cellId,l=await this.convertBlocksFunc(s,r.blocks[s],r,this.appId,this.docId,this.state,i);this.paragraphs.push(...l,new Bt.Paragraph(""))}}async addDoc(t,e,r){const i=await this.convertBlocksFunc(t,e.blocks.root,e,this.appId,this.docId,this.state,r);i&&(this.paragraphs=this.paragraphs.concat(i))}async addVirtualBlock(t,e,r){const i=await this.convertBlocksFunc(t,e.blocks[t],e,this.appId,this.docId,this.state,r);this.paragraphs.push(...i)}async addOtherEmbedBlock(){}}class qet{constructor(t,e,r,i,o,s,l,c){m(this,"convertBlocks",async(t,e,r,i,o,s,l=720)=>{const c=new Get(i,o,s,this.readImage,this.convertBlocks,this.defaultFontSize);return await jet(t,e,r,c,i,o,this.md5HexFunc,this.getDocByBlock,this.getTextsByBox,l||720),c.paragraphs});this.templateData=t,this.docData=e,this.md5HexFunc=r,this.readImage=i,this.defaultFontSize=o,this.getDocByBlock=s,this.getTextsByBox=l,this.backgroundImageOptions=c}async convert(t,e){return this.snapshot2docx(this.docData,t,e)}async snapshot2docx(t,e,r){const i=new Bt.ImportDotx,o=this.templateData?await i.extract(this.templateData):void 0,s=t.blocks.root;p(Wet,s,"data must have blocks");const l=zet(),c=await this.convertBlocks("blocks",s,t,e,r,l),f=this.backgroundImageOptions?{default:new Bt.Header({children:[new Bt.Paragraph({children:[new Bt.ImageRun(this.backgroundImageOptions)]})]})}:{},h=new Bt.Document({numbering:{config:[...iet,...l.levelConfigs]},sections:[{headers:f,children:c,properties:{page:{size:{width:12240,height:15840},margin:{top:1440,bottom:1440,left:1440,right:1440}}}}]},{template:o});return Bt.Packer.toBlob(h)}}const Xet=_("editor-to-docx");async function Yet(n,t,e,r){const i=n.doc.buildResourceUrl(r,{withToken:!0});let o=await U4(i);if(!o)return[void 0,i];if(o.type.indexOf("/svg")!==-1){const l=await _4(o);l&&(o=new File([l],o.name))}return[await o.arrayBuffer(),i]}async function Jet(n,t,e){const r=n.editorBlocks.getBlockClass(e.type);if(r.toStandardDoc)try{return await r.toStandardDoc(n,e,t)}catch(i){Xet.error(`toStandardDoc error: ${JSON.stringify(i)}`);return}}async function Qet(n,t){const e=t.attributes,r=n.editorBoxes.getBoxClass(e.type);if(r.toStandardText)return r.toStandardText(n,e)}async function Zet(n,t){let{template:e,download:r,backgroundImageOptions:i}=t!=null?t:{};e||(e=Ytt());const o=n.doc.toJSON(),s=(C,E,b)=>Yet(n,C,E,b),l=async(C,E,b)=>Jet(n,o,b),c=async C=>Qet(n,C),h=await new qet(e,o,hm.default,s,void 0,l,c,i).convert("_appId","_docId");if(r){const C=URL.createObjectURL(h),E=document.createElement("a");E.setAttribute("download",`${O4(n)}.docx`),E.setAttribute("href",`${C}`),E.click(),E.remove()}return h}const qx=_("create-editor");async function tnt(n,t){var s,l,c,f,h,C,E,b,v,k,w,O,M,F,Z,Y;p(qx,n,"app does not exists"),t.lang&&D.setLang(t.lang),Ei.level=(s=t.logLevel)!=null?s:rl.DEBUG;const e=t.onReauth?async()=>{var Ct;const X=t.user.userId,ut=t.docId,Et=await((Ct=t.onReauth)==null?void 0:Ct.call(t,X,ut,t.permission));return{userId:X,docId:ut,permission:t.permission,appId:t.appId,token:Et,displayName:t.user.displayName,avatarUrl:t.user.avatarUrl}}:void 0,r={auth:{appId:t.appId,docId:t.docId,userId:t.user.userId,permission:t.permission,token:t.token,displayName:t.user.displayName,avatarUrl:t.user.avatarUrl},serverUrl:t.serverUrl,reauthFunc:e,disableLogout:t.disableLogout,onMaxUsersError:t.onMaxUsersError},i=await Ld.load(r),o=pd(n,i,{id:t.id,scrollContainer:t==null?void 0:t.scrollContainer,enableComments:t==null?void 0:t.enableComments,enableContextMenu:t==null?void 0:t.enableContextMenu,components:{blocks:[...zx,...((l=t==null?void 0:t.components)==null?void 0:l.blocks)||[]],embeds:[...Wx,...((c=t.components)==null?void 0:c.embeds)||[]],boxes:[...pL,...((f=t.components)==null?void 0:f.boxes)||[]],commandProviders:[new q0,...((h=t.components)==null?void 0:h.commandProviders)||[]],decorators:[new vg,new sE],insertions:[lC],blockHooks:[new zb,new kw,...((C=t.components)==null?void 0:C.blockHooks)||[]],textRenders:[new zS,new sb,...((E=t.components)==null?void 0:E.textRenders)||[]],options:{...t.componentsOptions}},shortcuts:[pX,VH,Xz,Tb,CS,zF,xb,JX,g0,PF,...t.shortcuts||[]],colors:["#0064FF","#EB3723","#F59300","#00A865","#F25A0A","#70A310","#009CAD","#0990D9","#8851ED","#D62069"]});if(o.editorCommandProviders.registerCommandProvider(new Ao(o)),o.input.addHandler(new KY),o.input.addHandler(new yg),o.input.addHandler(new dV),o.input.addHandler(new Vz),o.input.addHandler(new Db(o,{hideTitle:t.hideTitle,headingLevel:1,titlePlaceholder:D.t("placeholder.common.title"),contentPlaceholder:D.t("placeholder.common.content"),readonlyTitlePlaceholder:D.t("placeholder.common.readonlyTitle"),addPlaceholderToAllCurrentEmptyBlock:!0,applyContentPlaceholder:(b=t.placeholder)==null?void 0:b.applyContentPlaceholder})),o.input.addHandler(new pg(o,(v=t.componentsOptions)==null?void 0:v.quickMenu)),o.input.addHandler(new Zb(o)),o.input.addHandler(new ox(o)),o.input.addHandler(new wg),o.input.addHandler(new Xk),o.doc.registerCallback(new VY(o)),o.addCustom("remote-cursor",()=>new RT(o)),o.addCustom("block-menu",X=>new Sw(X)),ye.isMobile||o.addCustom("editor-tooltip",()=>new zd(o)),t!=null&&t.enableComments&&o.addCustom("editor-comments",X=>new jS(X,new jtt(X))),t.enableContextMenu!==!1&&o.addCustom("editor-context-menu",X=>new ax(X)),o.addCustom("create-options",()=>new YA(o,t)),o.addCustom("drop-target",()=>new sh(o)),o.addCustom("list-to-mindmap",()=>new cg(o)),o.addCustom("list-to-mention",()=>new lJ(o)),o.addCustom("mobile-helper",()=>new SJ(o)),o.addCustom("code-caret",()=>new NH(o)),o.addCustom("image-paste-handler",()=>new Yb(o)),o.addCustom("layout-paste-handler",()=>new Ux(o,!0)),(k=t.componentsOptions)!=null&&k.mention){const X=t.componentsOptions.mention;o.addCustom("mention",()=>new w4(o,X))}if(o.addCustom("heading-collapse",()=>new kx(o)),o.addCustom(Xg,X=>new _x(X)),Su.register(o),sh.register(o),Pl.register(o),Dl.register(o),o.addListener("clickLink",(X,ut,Et)=>{var wt;if((wt=t==null?void 0:t.events)!=null&&wt.onClickLink){t.events.onClickLink(X,ut,Et);return}const Ct=Et.getAttribute("link");Ct&&(X.readonly||ut.ctrlKey||ut.metaKey)&&window.open(Ct,"_blank")}),(O=(w=t.componentsOptions)==null?void 0:w.remoteCarets)!=null&&O.onUserChanged){const X=(F=(M=t.componentsOptions)==null?void 0:M.remoteCarets)==null?void 0:F.onUserChanged;o.doc.getRemoteUsers().on("change",ut=>{X(o,ut)})}return(Y=(Z=t.componentsOptions)==null?void 0:Z.templates)!=null&&Y.templates.length&&(o.addListener("docChanged",()=>{qg(o)}),o.addListener("resize",()=>{qg(o,{reset:!0})}),setTimeout(()=>{qg(o)},100)),o.doc.registerCallback({onError:async X=>{if(X.code==="ResetDoc"){qx.error(`reset doc: ${X.message}`);const ut=await Ld.load(r);o.doc.reset(ut)}}}),o.version="2.0.4-beta.12",Ei.level===rl.DEBUG&&(window.setReauthFail=X=>{window.isReauthError=X},window.reConnect=X=>o.doc.externalDoc.client.connection.reConnect(X)),o}function ent(n){return n.toJSON!==void 0}async function nnt(n,t,e){var o,s,l,c,f,h,C,E;p(qx,n,"app does not exists");const r=ent(t)?t:new FC(t,{serverUrl:e.serverUrl||""});e.lang&&D.setLang(e.lang),Ei.level=(o=e.logLevel)!=null?o:rl.DEBUG;const i=pd(n,r,{id:e.id,scrollContainer:e==null?void 0:e.scrollContainer,components:{blocks:[...zx,...(l=(s=e.components)==null?void 0:s.blocks)!=null?l:[]],commandProviders:[new q0],decorators:[new vg,new sE],embeds:[...Wx,...((c=e.components)==null?void 0:c.embeds)||[]],boxes:[sR,S4,QS,dR,...((f=e.components)==null?void 0:f.boxes)||[]],insertions:[lC],blockHooks:[new zb,...((h=e.components)==null?void 0:h.blockHooks)||[]],textRenders:[new zS,new sb,...((C=e.components)==null?void 0:C.textRenders)||[]],options:{...e.componentsOptions}},shortcuts:[Tb,CS,xb,g0]});return i.editorCommandProviders.registerCommandProvider(new Ao(i)),i.input.addHandler(new yg),i.input.addHandler(new Db(i,{hideTitle:e.hideTitle,headingLevel:1,titlePlaceholder:D.t("placeholder.common.title"),contentPlaceholder:D.t("placeholder.common.content"),readonlyTitlePlaceholder:D.t("placeholder.local.readonlyTitle"),addPlaceholderToAllCurrentEmptyBlock:!0})),i.input.addHandler(new pg(i,(E=e.componentsOptions)==null?void 0:E.quickMenu)),i.input.addHandler(new Zb(i)),i.input.addHandler(new ox(i)),i.input.addHandler(new wg),i.input.addHandler(new Xk),i.addCustom("block-menu",b=>new Sw(b)),ye.isMobile||i.addCustom("editor-tooltip",()=>new zd(i)),i.addCustom("image-paste-handler",()=>new Yb(i)),e!=null&&e.enableComments&&i.addCustom("editor-comments",b=>new jS(b,new ztt(b,r))),e.enableContextMenu!==!1&&i.addCustom("editor-context-menu",b=>new ax(b)),i.addCustom("heading-collapse",()=>new kx(i)),i.addListener("clickLink",(b,v,k)=>{var O;if((O=e==null?void 0:e.events)!=null&&O.onClickLink){e.events.onClickLink(b,v,k);return}const w=k.getAttribute("link");w&&(b.readonly||v.ctrlKey||v.metaKey)&&window.open(w,"_blank")}),i.addCustom(Xg,b=>new _x(b)),Su.register(i),i.version="2.0.4-beta.12",i}async function rnt(n,t,e){var h;const r=n.doc.externalDoc.client.auth,i=await w0.load({auth:r,serverUrl:e});if(!((h=i.getVersionHelper)==null?void 0:h.call(i)))throw new Error("the editor does not support to show versions");const s=n.getCustom("create-options");if(!s)throw new Error("the editor does not support to show versions");const l=s.getData(),c=new CL(l),f=n.addCustom("version-dialog",()=>new m4(i,c));return f.show(t),f}A.tippy=UI,A.AnchorBox=W3,A.AuthError=wd,A.AuthHeader=Ta,A.AutoScroll=Ff,A.BaseURLHeader=cu,A.BasicCommands=MK,A.BlockExclusiveHook=kw,A.BlockLockerHook=zb,A.BlockLockerPasteHandler=wg,A.BlockResizer=Zd,A.BrBox=$3,A.CodeBlock=XR,A.CodeLineBlock=YR,A.CodeTextDecorator=vg,A.DOC_RE_AUTH_KEYS=Xg,A.DefaultShortcuts=g0,A.DocIdError=kU,A.DocReAuthCallbacks=_x,A.DragDrop=mv,A.DrawioEmbed=oL,A.EditorBlocks=kB,A.EditorBoxes=j3,A.EditorCommandProviders=V5,A.EditorComplexBlockPosition=yi,A.EditorComplexSelectionRange=ki,A.EditorDecorators=Y3,A.EditorEmbeds=wB,A.EditorInsertions=X3,A.EditorSimpleBlockPosition=gn,A.EditorSimpleSelectionRange=vn,A.EmbedBlock=LB,A.EmbedBlockResizer=lh,A.EnforceWithDocumentTitleHandler=Db,A.EventCallbacks=Pc,A.FILL_CHAR=Y8,A.FileExtError=RU,A.GroupOrder=Qk,A.HeadingBlockScrollListener=tJ,A.ImageBox=z3,A.InlineBoxCommandProvider=hR,A.InputtingInsertion=G3,A.LayoutBlock=G4,A.LayoutBlockCaptionInputHandler=Ux,A.LocalDoc=FC,A.LogLevel=rl,A.Logger=Ei,A.MIN_DISTANCE_THRESHOLD=dv,A.ManualCloseDialog=Id,A.ManualMenu=Al,A.ManualToolbar=gu,A.MarkdownInputHandler=yg,A.MaxUserError=JC,A.Mindmap=ag,A.OnesEditorAutoSuggest=RE,A.OnesEditorCustomDataWrapper=YA,A.OnesEditorExclusiveBlock=Dl,A.OnesEditorHoveringBlock=We,A.OnesEditorIcons=dN,A.OnesEditorQuickMenu=pg,A.OnesEditorToc=gs,A.OnesEditorTocProvider=Pl,A.OnesEditorToolbar=Su,A.OnesEditorTooltip=zd,A.OnesEditorVersionsDialog=m4,A.PermissionError=R0,A.Popup=mu,A.ReAuthToolbar=N4,A.RemoteCarets=RT,A.RemoteCaretsDecorator=sE,A.RemoteCaretsInsertion=lC,A.RemoteUsers=Cd,A.RequestReloadError=Sd,A.RichText=Hn,A.ShareDBDoc=Ld,A.ShareDBDocVersionsProvider=CL,A.ShareDBServer=w0,A.SimpleCache=iv,A.StandardEmbedBlockCommands=Jb,A.TEXT_STYLE_BACKGROUND_COLOR_PREFIX=K1,A.TEXT_STYLE_COLOR_PREFIX=F1,A.TableBlock=UR,A.TableBlockCommandProvider=q0,A.TableShortcuts=Tb,A.TextBlock=ar,A.TextBox=V3,A.TextColorItem=W2,A.TextStyleShortcuts=xb,A.TocEmbed=k4,A.ZERO_WIDTH_SPACE_CHAR=_f,A.abbreviation=Im,A.addAttribute=Km,A.addClass=z,A.addCommentToBlock=Na,A.addDays=z9,A.addMetaToDoc=md,A.addMonths=j9,A.animateScrollTo=ua,A.applyPlaceholderToBlock=Jd,A.assert=p,A.autoShowHideTemplates=qg,A.bindKeyDownEvent=Bm,A.blockToDoc=_C,A.blockToHtml=uC,A.blockToMarkdown=e0,A.blockToText=sd,A.blocksToDoc=u5,A.clearAllSelection=iB,A.clientType=ye,A.cloneBlock=ao,A.cloneChildContainer=c0,A.cloneDoc=xC,A.cloneText=_3,A.commentToShareDbComment=oE,A.compareElement=xm,A.comparePosition=I1,A.complexBlockAdjustSelectionPos=Nm,A.complexBlockFindNearestChildBlock=$7,A.complexBlockGetAllChildContainers=In,A.complexBlockGetBottomChildContainers=MB,A.complexBlockGetDeepFirstChild=IB,A.complexBlockGetFirstSimpleChild=_1,A.complexBlockGetLastSimpleChild=zc,A.complexBlockGetSelectedContainers=jc,A.complexBlockGetTopChildContainers=_B,A.containerToDoc=f5,A.continuousScroll=Lv,A.convertBlockFrom=Om,A.convertImageFileToPng=_4,A.convertImageSrcToPng=BJ,A.converterIntercept=Bg,A.copyBlockAttributes=ay,A.copyResourcesFromDoc=PC,A.createBlockAnchor=Qo,A.createBlockCaretAnchor=UB,A.createBlockContentElement=al,A.createBlockElement=Jv,A.createBlockSimpleDocRange=Ym,A.createBlockSimpleRange=Ae,A.createBoxContentElement=tB,A.createBoxElement=Qv,A.createBoxOp=D3,A.createChildContainer=yB,A.createComplexBlockPosition=De,A.createComplexDocPos=N3,A.createComplexDocRange=Z8,A.createContainer=Jc,A.createContainerElement=g1,A.createDeleteOps=w3,A.createEditor=pd,A.createEditorSelectionRange=pn,A.createElement=B,A.createEmptyContainer=Sr,A.createEmptyDoc=rs,A.createEmptyTextBlockData=qm,A.createExpandedRange=Em,A.createIconButton=jo,A.createImage=Xp,A.createInsertOps=Wm,A.createInsertionContentElement=rB,A.createInsertionElement=eB,A.createLocalEditor=nnt,A.createOnesEditor=tnt,A.createRange=ov,A.createRichText=Aa,A.createRootContainer=BB,A.createSimpleBlockPosition=mt,A.createSimpleDocPos=U3,A.createTextBlockData=oo,A.createTextButton=_a,A.createTextOp=ti,A.createTextWithReplaceSoftReturn=Q1,A.daysAfter=c1,A.deleteText=tC,A.diffDays=W9,A.disablePageScroll=s1,A.docToHtml=ry,A.docToHtmlFragment=ld,A.docToMarkdown=iy,A.docToText=hl,A.downloadImageToFile=U4,A.downloadObjectToFile=Fx,A.downloadSvgToString=Y4,A.editLink=$d,A.editorAddComment=lX,A.editorAddTextAttribute=by,A.editorAutoInsertBlock=cy,A.editorBreakTextBlock=nu,A.editorClearCompositionText=mC,A.editorClearSelectedContents=s0,A.editorCopyBlock=UC,A.editorCopyDoc=m0,A.editorDeleteBlock=CC,A.editorDeleteBlockText=gC,A.editorDeleteBlockWithoutChildren=i0,A.editorDeleteChildContainer=J_,A.editorDeleteChildContainers=uy,A.editorFocusToBlock=bC,A.editorFocusToEnd=pM,A.editorGetBlockData=so,A.editorGetBlockText=Jn,A.editorGetBlockTextEx=Qm,A.editorGetBoxData=F3,A.editorHandleKeyboardEvent=B5,A.editorInsertBlock=eu,A.editorInsertBoxToBlock=sy,A.editorInsertDoc=Cy,A.editorInsertDocAt=AC,A.editorInsertText=hC,A.editorInsertTextToBlock=oy,A.editorInsertTextToBlockEx=dC,A.editorMergeTextBlock=fy,A.editorMoveDown=Dy,A.editorMoveEnd=wC,A.editorMoveHome=$y,A.editorMoveLeft=Sy,A.editorMoveLineEnd=Yy,A.editorMoveLineHome=Xy,A.editorMovePageDown=n5,A.editorMovePageUp=e5,A.editorMoveRight=Ly,A.editorMoveUp=Iy,A.editorMoveWordEnd=Fy,A.editorMoveWordLeft=Py,A.editorRangeClearColor=Ay,A.editorRangeGetColor=vy,A.editorRangeSetColor=xy,A.editorRemoveTextAttribute=eM,A.editorReplaceBlockText=l0,A.editorReplaceContainer=Ey,A.editorRunOnce=x0,A.editorSelectAll=LC,A.editorSelectContainer=f0,A.editorSelectDown=_y,A.editorSelectEnd=SC,A.editorSelectHome=Hy,A.editorSelectLeft=My,A.editorSelectLineEnd=qy,A.editorSelectLineHome=Gy,A.editorSelectPageDown=o5,A.editorSelectPageUp=i5,A.editorSelectRight=Oy,A.editorSelectUp=Uy,A.editorSelectWordEnd=Vy,A.editorSelectWordLeft=Ky,A.editorSetTextColor=ru,A.editorShowFindDialog=ZG,A.editorToDocx=Zet,A.editorUpdateBlockData=a0,A.editorUpdateCompositionText=ly,A.editorUpdateEmbedData=gy,A.enablePageScroll=l1,A.escapeHtmlText=ym,A.escapeRegExp=h1,A.escapeSpace=R9,A.exclusiveBlock=$b,A.executeBlockCommand=gB,A.executeEmbedBlockCommand=mB,A.executeRangeCommand=K5,A.fileToDataUrl=Vc,A.findAfterOffsetNotType=iC,A.findAllText=IC,A.findBlockByIndex=Hv,A.findEventTargetBlock=av,A.findInsertionById=nB,A.findNextOffset=b_,A.findNextVisibleSimpleBlock=z5,A.findPrevOffset=E_,A.findPrevOffsetNotType=rC,A.findPrevSimpleBlockBeforeChildContainer=DB,A.findPrevVisibleSimpleBlock=j5,A.findTarget=Kc,A.findWordEnd=sC,A.findWordLeft=oC,A.format=Kf,A.formatBytes=Iv,A.formatDate=f1,A.fragmentToHtml=Tv,A.fromBase64=Of,A.fromBase64ToBlob=i1,A.fromBase64ToUint8Array=P9,A.fromDocRange=ul,A.fromNowString=d1,A.genId=rt,A.generateEditorContainerId=m1,A.getAllChildBlocks=N1,A.getAllQuickMenuItems=bb,A.getAllSelectedBlocks=no,A.getAttributesAt=Xc,A.getBlockBackground=E1,A.getBlockByIndex=ol,A.getBlockCaretRect=cl,A.getBlockClass=jt,A.getBlockClassByType=sl,A.getBlockClientRects=qo,A.getBlockCommandsWithHook=y1,A.getBlockContent=$t,A.getBlockHeading=Gf,A.getBlockId=dt,A.getBlockIndex=St,A.getBlockInfo=ih,A.getBlockKind=vi,A.getBlockMinWidth=lB,A.getBlockNearestRangeFromPoint=O1,A.getBlockOptions=Wf,A.getBlockPath=Xo,A.getBlockProperties=uB,A.getBlockRangeFromPoint=Pm,A.getBlockStyles=i7,A.getBlockTextLength=bt,A.getBlockTools=xe,A.getBlockType=Tt,A.getBoxContent=x1,A.getBoxId=Zv,A.getBoxTypeFromElement=jf,A.getChildBlockCount=Ai,A.getChildBlocks=be,A.getChildOffset=fl,A.getClosestContainerByCondition=sB,A.getColorFromAttributes=$1,A.getColorFromContent=Dm,A.getComplexBlockClass=Xr,A.getContainerBlockOverrideOptions=T1,A.getContainerBlockPath=xB,A.getContainerBlocks=Vv,A.getContainerBlocksElement=$f,A.getContainerById=qr,A.getContainerId=ft,A.getContainerMinWidth=S1,A.getContainerToolsElement=e7,A.getContainerWidth=TB,A.getDistanceSquare=il,A.getElementFromPoint=Ne,A.getElementOffset=Df,A.getElementScale=Gr,A.getEmbedType=Ge,A.getExistsBlockTools=_m,A.getExistsContainerById=Vf,A.getFileExt=Pf,A.getFirstChildBlock=Pe,A.getFirstClientRect=bm,A.getHeadingBlockChildren=pa,A.getHeadingMenuOptions=hb,A.getHorizontalPadding=Jp,A.getInsertionContent=A1,A.getLastChildBlock=en,A.getLastClientRect=aa,A.getListAllNextBrothers=yu,A.getLogger=_,A.getNextBlock=ae,A.getNextHiddenBlocks=EB,A.getNextValidOffset=ba,A.getNextVisibleBlock=Jr,A.getOffsetFromPoint=Yp,A.getOffsetInfoAfter=rd,A.getOffsetInfoBefore=Zm,A.getOpAt=a3,A.getOpLength=Fm,A.getParentBlock=Q,A.getParentBlockExcludeSelf=ma,A.getParentBox=b1,A.getParentContainer=ot,A.getPrevBlock=He,A.getPrevValidOffset=dl,A.getPrevVisibleBlock=Yr,A.getRangeCommands=P5,A.getReferenceClientRect=Tk,A.getRootBlock=zf,A.getScrollContainer=tn,A.getSpecialBlockCommands=fB,A.getStandardEmbedBlockProperties=Qb,A.getTextAfterOffset=p_,A.getTextAttributes=fC,A.getTextBeforeOffset=C_,A.getTextBlockChild=Yf,A.getTextBlockClass=zv,A.getTextBlockContentChildTextLength=Zr,A.getTextBlockContentChildType=bB,A.getTextBlockContentChildren=eo,A.getTextLength=$n,A.getTextOpLength=P1,A.getTextWidth=wm,A.getToolbar=eg,A.handleBlockElementUpdated=aB,A.hasAltOnly=_9,A.hasClass=_t,A.hasCtrlOrCmd=xv,A.hasCtrlOrCmdOnly=D9,A.hashCode=Pv,A.hideBlock=Yv,A.hideTemplates=D4,A.htmlToFragment=Rm,A.i18n=D,A.includeBigTable=$N,A.injectDocToHtmlFragment=hd,A.injectStyle=fv,A.inputActions=UM,A.insertEmptyBlock=l7,A.insertEmptyEmbedBlock=k1,A.insertText=ns,A.intersectionCommands=gO,A.isBackspace=vv,A.isBlock=Wo,A.isBlockLocked=Rg,A.isBlockLockedByOthers=jb,A.isBlockLockedBySelf=oh,A.isBlockTools=Xv,A.isBox=Mm,A.isBoxOp=Zo,A.isCJK=Ev,A.isChildContainer=xi,A.isChildNode=Ee,A.isCodeBlock=Pi,A.isCollapsedHeadingBlock=kr,A.isCollapsedRange=Q8,A.isColumnsBlock=hB,A.isComplexBlockPosition=Ca,A.isComplexKindBlock=Nt,A.isContainer=to,A.isContainerSelectedAllChildBlocks=s5,A.isControlEvent=da,A.isDelete=O9,A.isDraggingFiles=Sm,A.isElementVisible=vm,A.isEmbedBlock=me,A.isEmptyContainer=Jf,A.isEmptyDoc=eC,A.isEmptyTextBlock=Te,A.isEmptyTextBlockWithoutCompositionText=Yd,A.isEnterOnly=Av,A.isEscape=km,A.isExclusiveBlock=rh,A.isExpandedHeadingBlock=CB,A.isFirefox=Lf,A.isFirstChildBlockInComplexBlock=V7,A.isHeadingBlock=an,A.isHighSurrogate=B9,A.isInBlock=v1,A.isInBlockTools=Hc,A.isLayoutBlock=K4,A.isLetter=Cv,A.isLowSurrogate=y9,A.isMatchShortcut=Qi,A.isMoveForward=L9,A.isNavigationEvent=S9,A.isNavigationKey=bv,A.isNodeRemoved=If,A.isNumber=pv,A.isPrintableKey=n1,A.isRootBlock=Qr,A.isRootContainer=te,A.isSafari=la,A.isSameDay=u1,A.isSelectBoxOnly=Ni,A.isShiftEnter=M9,A.isShiftTab=N9,A.isShortcutEvent=I9,A.isSimpleBlock=r7,A.isSimpleBlockPosition=Ti,A.isSimplePos=O3,A.isSimpleRange=Xm,A.isSpace=Tm,A.isTab=U9,A.isTextBlockContentBoxChild=Rr,A.isTextBlockContentChild=qf,A.isTextBlockContentInsertionChild=Jo,A.isTextBlockContentTextChild=Xf,A.isTextKindBlock=at,A.isTextKindBlockType=Hf,A.isTitleBlock=Go,A.isToday=Dv,A.isValidOffset=lr,A.isVisibleBlock=ll,A.isYesterday=_v,A.loadJs=lv,A.loadJsPromise=ca,A.lockers=bi,A.mergeCommands=tg,A.mergeDocs=va,A.mergeOps=Z1,A.mergeText=q8,A.multiSplitText=u3,A.overflowText=Mv,A.parseShortcut=Bv,A.patchNode=Uf,A.pointInRect=fa,A.rangeAddAttribute=td,A.rangeGetTextColor=C3,A.rangeRemoveAttribute=qc,A.rangeSetTextColor=m3,A.rangeTransformText=d3,A.registerDragDrop=t1,A.removeAttribute=V1,A.removeClass=lt,A.removeLastBr=j8,A.removePlaceholderFromBlock=QR,A.removeStyle=uv,A.replaceAll=G9,A.replaceAllCaseInsensitive=q9,A.replaceAllText=a5,A.replaceText=Gm,A.requestDownload=Lm,A.resetListStart=ku,A.scrollIntoView=od,A.scrollable=Sv,A.selectFile=$c,A.selectedBlockToDoc=d0,A.selectionToDoc=iu,A.setAttributes=Am,A.setClipboardData=Nf,A.setClipboardDataByEvent=V9,A.setColorToAttributes=g3,A.setDataset=Qp,A.setDefaultCursor=Mf,A.setStyles=Zp,A.shareDBCommentToDocObject=iE,A.shareDBDocCommentToComment=TT,A.shortcutToDisplayText=mn,A.showBlock=C1,A.showDocVersions=rnt,A.showTemplates=Ix,A.splitText=sr,A.splitToThree=Cn,A.stringToDataUrl=o1,A.stringToObjectUrl=a1,A.subText=f3,A.textNodeOffsetFromPoint=sv,A.titleFromEditor=O4,A.toBase64URL=Zi,A.toMindmap=lg,A.toPlainText=Se,A.toPlainTextKeepLength=nC,A.trimChar=e1,A.unexclusiveBlock=Hb,A.unicodeLength=T9,A.unicodeSubstr=k9,A.updateBlockSelection=oB,A.updateOpAttributes=M3,A.updateTextBlockContent=g_,A.updateUrl=r1;for(const n in $e)n!=="default"&&!A.hasOwnProperty(n)&&Object.defineProperty(A,n,{enumerable:!0,get:()=>$e[n]});Object.defineProperties(A,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});