vdc-editor 0.1.192 → 0.1.193

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.
@@ -86,7 +86,7 @@ img.ProseMirror-separator {
86
86
  opacity: 0
87
87
  }`;function HO(t,e,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute("data-tiptap-style",""),o.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(o),o}let UO=class extends p9{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:r,moved:o})=>this.options.onDrop(n,r,o)),this.on("paste",({event:n,slice:r})=>this.options.onPaste(n,r)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=HO(zO,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,n){const r=X3(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],o=this.state.reconfigure({plugins:r});return this.view.updateState(o),o}unregisterPlugin(e){if(this.isDestroyed)return;const n=this.state.plugins;let r=n;if([].concat(e).forEach(s=>{const a=typeof s=="string"?`${s}$`:s.key;r=n.filter(l=>!l.key.startsWith(a))}),n.length===r.length)return;const o=this.state.reconfigure({plugins:r});return this.view.updateState(o),o}createExtensionManager(){var e,n;const o=[...this.options.enableCoreExtensions?[PO,A9.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),RO,DO,VO,$O,LO,FO].filter(s=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[s.name]!==!1:!0):[],...this.options.extensions].filter(s=>["extension","node","mark"].includes(s==null?void 0:s.type));this.extensionManager=new $a(o,this)}createCommandManager(){this.commandManager=new ld({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let n;try{n=Zm(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(a){if(!(a instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(a.message))throw a;this.emit("contentError",{editor:this,error:a,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(l=>l.name!=="collaboration"),this.createExtensionManager()}}),n=Zm(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const r=tw(n,this.options.autofocus);this.view=new DA(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(e=this.options.editorProps)===null||e===void 0?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:Ba.create({doc:n,selection:r||void 0})});const o=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(o),this.createNodeViews(),this.prependClass();const s=this.view.dom;s.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(a=>{var l;return(l=this.capturedTransaction)===null||l===void 0?void 0:l.step(a)});return}const n=this.state.apply(e),r=!this.state.selection.eq(n.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:n}),this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const o=e.getMeta("focus"),s=e.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:e}),s&&this.emit("blur",{editor:this,event:s.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return cw(this.state,e)}isActive(e,n){const r=typeof e=="string"?e:null,o=typeof e=="string"?n:e;return n0(this.state,r,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Gm(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
88
88
 
89
- `,textSerializers:r={}}=e||{};return uw(this.state.doc,{blockSeparator:n,textSerializers:{...Ym(this.schema),...r}})}get isEmpty(){return Cd(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(e,n))||null}$nodes(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new Rs(n,this)}get $doc(){return this.$pos(0)}};function Ls(t){return new cd({find:t.find,handler:({state:e,range:n,match:r})=>{const o=ct(t.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:s}=e,a=r[r.length-1],l=r[0];if(a){const u=l.search(/\S/),c=n.from+l.indexOf(a),f=c+a.length;if(e0(n.from,n.to,e.doc).filter(g=>g.mark.type.excluded.find(y=>y===t.type&&y!==g.mark.type)).filter(g=>g.to>c).length)return null;f<n.to&&s.delete(f,n.to),c>n.from&&s.delete(n.from+u,c);const m=n.from+u+a.length;s.addMark(n.from+u,m,t.type.create(o||{})),s.removeStoredMark(t.type)}}})}function hw(t){return new cd({find:t.find,handler:({state:e,range:n,match:r})=>{const o=ct(t.getAttributes,void 0,r)||{},{tr:s}=e,a=n.from;let l=n.to;const u=t.type.create(o);if(r[1]){const c=r[0].lastIndexOf(r[1]);let f=a+c;f>l?f=l:l=f+r[1].length;const p=r[0][r[0].length-1];s.insertText(p,a+r[0].length-1),s.replaceWith(f,l,u)}else if(r[0]){const c=t.type.isInline?a:a-1;s.insert(c,t.type.create(o)).delete(s.mapping.map(a),s.mapping.map(l))}s.scrollIntoView()}})}function s0(t){return new cd({find:t.find,handler:({state:e,range:n,match:r})=>{const o=e.doc.resolve(n.from),s=ct(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,s)}})}function za(t){return new cd({find:t.find,handler:({state:e,range:n,match:r,chain:o})=>{const s=ct(t.getAttributes,void 0,r)||{},a=e.tr.delete(n.from,n.to),u=a.doc.resolve(n.from).blockRange(),c=u&&sm(u,t.type,s);if(!c)return null;if(a.wrap(u,c),t.keepMarks&&t.editor){const{selection:p,storedMarks:m}=e,{splittableMarks:g}=t.editor.extensionManager,b=m||p.$to.parentOffset&&p.$from.marks();if(b){const y=b.filter(w=>g.includes(w.type.name));a.ensureMarks(y)}}if(t.keepAttributes){const p=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(p,s).run()}const f=a.doc.resolve(n.from-1).nodeBefore;f&&f.type===t.type&&Mi(a.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,f))&&a.join(n.from-1)}})}let Bt=class f2{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ct(Re(this,"addOptions",{name:this.name}))),this.storage=ct(Re(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new f2(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>pd(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new f2(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=ct(Re(n,"addOptions",{name:n.name})),n.storage=ct(Re(n,"addStorage",{name:n.name,options:n.options})),n}};class WO{constructor(e,n,r){this.isDragging=!1,this.component=e,this.editor=n.editor,this.options={stopEvent:null,ignoreMutation:null,...r},this.extension=n.extension,this.node=n.node,this.decorations=n.decorations,this.innerDecorations=n.innerDecorations,this.view=n.view,this.HTMLAttributes=n.HTMLAttributes,this.getPos=n.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var n,r,o,s,a,l,u;const{view:c}=this.editor,f=e.target,p=f.nodeType===3?(n=f.parentElement)===null||n===void 0?void 0:n.closest("[data-drag-handle]"):f.closest("[data-drag-handle]");if(!this.dom||!((r=this.contentDOM)===null||r===void 0)&&r.contains(f)||!p)return;let m=0,g=0;if(this.dom!==p){const x=this.dom.getBoundingClientRect(),S=p.getBoundingClientRect(),C=(o=e.offsetX)!==null&&o!==void 0?o:(s=e.nativeEvent)===null||s===void 0?void 0:s.offsetX,E=(a=e.offsetY)!==null&&a!==void 0?a:(l=e.nativeEvent)===null||l===void 0?void 0:l.offsetY;m=S.x-x.x+C,g=S.y-x.y+E}(u=e.dataTransfer)===null||u===void 0||u.setDragImage(this.dom,m,g);const b=this.getPos();if(typeof b!="number")return;const y=Fe.create(c.state.doc,b),w=c.state.tr.setSelection(y);c.dispatch(w)}stopEvent(e){var n;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:e});const r=e.target;if(!(this.dom.contains(r)&&!(!((n=this.contentDOM)===null||n===void 0)&&n.contains(r))))return!1;const s=e.type.startsWith("drag"),a=e.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(r.tagName)||r.isContentEditable)&&!a&&!s)return!0;const{isEditable:u}=this.editor,{isDragging:c}=this,f=!!this.node.type.spec.draggable,p=Fe.isSelectable(this.node),m=e.type==="copy",g=e.type==="paste",b=e.type==="cut",y=e.type==="mousedown";if(!f&&p&&s&&e.target===this.dom&&e.preventDefault(),f&&s&&!c&&e.target===this.dom)return e.preventDefault(),!1;if(f&&u&&!c&&y){const w=r.closest("[data-drag-handle]");w&&(this.dom===w||this.dom.contains(w))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(c||a||m||g||b||y&&p)}ignoreMutation(e){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:e}):this.node.isLeaf||this.node.isAtom?!0:e.type==="selection"||this.dom.contains(e.target)&&e.type==="childList"&&(bd()||nw())&&this.editor.isFocused&&[...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(r=>r.isContentEditable)?!1:this.contentDOM===e.target&&e.type==="attributes"?!0:!this.contentDOM.contains(e.target)}updateAttributes(e){this.editor.commands.command(({tr:n})=>{const r=this.getPos();return typeof r!="number"?!1:(n.setNodeMarkup(r,void 0,{...this.node.attrs,...e}),!0)})}deleteNode(){const e=this.getPos();if(typeof e!="number")return;const n=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:n})}}function Hi(t){return new C9({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:o})=>{const s=ct(t.getAttributes,void 0,r,o);if(s===!1||s===null)return null;const{tr:a}=e,l=r[r.length-1],u=r[0];let c=n.to;if(l){const f=u.search(/\S/),p=n.from+u.indexOf(l),m=p+l.length;if(e0(n.from,n.to,e.doc).filter(b=>b.mark.type.excluded.find(w=>w===t.type&&w!==b.mark.type)).filter(b=>b.to>p).length)return null;m<n.to&&a.delete(m,n.to),p>n.from&&a.delete(n.from+f,p),c=n.from+f+l.length,a.addMark(n.from+f,c,t.type.create(s||{})),a.removeStoredMark(t.type)}}})}function jO(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var er="top",Mr="bottom",Br="right",tr="left",a0="auto",pu=[er,Mr,Br,tr],Ha="start",hu="end",qO="clippingParents",mw="viewport",mu="popper",KO="reference",gw=pu.reduce(function(t,e){return t.concat([e+"-"+Ha,e+"-"+hu])},[]),bw=[].concat(pu,[a0]).reduce(function(t,e){return t.concat([e,e+"-"+Ha,e+"-"+hu])},[]),GO="beforeRead",XO="read",YO="afterRead",JO="beforeMain",ZO="main",QO="afterMain",NO="beforeWrite",eM="write",tM="afterWrite",nM=[GO,XO,YO,JO,ZO,QO,NO,eM,tM];function wo(t){return t?(t.nodeName||"").toLowerCase():null}function hr(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ps(t){var e=hr(t).Element;return t instanceof e||t instanceof Element}function Ir(t){var e=hr(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function l0(t){if(typeof ShadowRoot>"u")return!1;var e=hr(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function rM(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},s=e.elements[n];!Ir(s)||!wo(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function oM(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],s=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),l=a.reduce(function(u,c){return u[c]="",u},{});!Ir(o)||!wo(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(u){o.removeAttribute(u)}))})}}const vw={name:"applyStyles",enabled:!0,phase:"write",fn:rM,effect:oM,requires:["computeStyles"]};function xo(t){return t.split("-")[0]}var Ds=Math.max,Ed=Math.min,Ua=Math.round;function u0(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function yw(){return!/^((?!chrome|android).)*safari/i.test(u0())}function Wa(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,s=1;e&&Ir(t)&&(o=t.offsetWidth>0&&Ua(r.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Ua(r.height)/t.offsetHeight||1);var a=Ps(t)?hr(t):window,l=a.visualViewport,u=!yw()&&n,c=(r.left+(u&&l?l.offsetLeft:0))/o,f=(r.top+(u&&l?l.offsetTop:0))/s,p=r.width/o,m=r.height/s;return{width:p,height:m,top:f,right:c+p,bottom:f+m,left:c,x:c,y:f}}function c0(t){var e=Wa(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function ww(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&l0(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Zo(t){return hr(t).getComputedStyle(t)}function iM(t){return["table","td","th"].indexOf(wo(t))>=0}function Ui(t){return((Ps(t)?t.ownerDocument:t.document)||window.document).documentElement}function Sd(t){return wo(t)==="html"?t:t.assignedSlot||t.parentNode||(l0(t)?t.host:null)||Ui(t)}function xw(t){return!Ir(t)||Zo(t).position==="fixed"?null:t.offsetParent}function sM(t){var e=/firefox/i.test(u0()),n=/Trident/i.test(u0());if(n&&Ir(t)){var r=Zo(t);if(r.position==="fixed")return null}var o=Sd(t);for(l0(o)&&(o=o.host);Ir(o)&&["html","body"].indexOf(wo(o))<0;){var s=Zo(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function gu(t){for(var e=hr(t),n=xw(t);n&&iM(n)&&Zo(n).position==="static";)n=xw(n);return n&&(wo(n)==="html"||wo(n)==="body"&&Zo(n).position==="static")?e:n||sM(t)||e}function d0(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function bu(t,e,n){return Ds(t,Ed(e,n))}function aM(t,e,n){var r=bu(t,e,n);return r>n?n:r}function Cw(){return{top:0,right:0,bottom:0,left:0}}function Ew(t){return Object.assign({},Cw(),t)}function Sw(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var lM=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Ew(typeof e!="number"?e:Sw(e,pu))};function uM(t){var e,n=t.state,r=t.name,o=t.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=xo(n.placement),u=d0(l),c=[tr,Br].indexOf(l)>=0,f=c?"height":"width";if(!(!s||!a)){var p=lM(o.padding,n),m=c0(s),g=u==="y"?er:tr,b=u==="y"?Mr:Br,y=n.rects.reference[f]+n.rects.reference[u]-a[u]-n.rects.popper[f],w=a[u]-n.rects.reference[u],x=gu(s),S=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,C=y/2-w/2,E=p[g],_=S-m[f]-p[b],T=S/2-m[f]/2+C,A=bu(E,T,_),L=u;n.modifiersData[r]=(e={},e[L]=A,e.centerOffset=A-T,e)}}function cM(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||ww(e.elements.popper,o)&&(e.elements.arrow=o))}const dM={name:"arrow",enabled:!0,phase:"main",fn:uM,effect:cM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ja(t){return t.split("-")[1]}var fM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pM(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:Ua(n*o)/o||0,y:Ua(r*o)/o||0}}function kw(t){var e,n=t.popper,r=t.popperRect,o=t.placement,s=t.variation,a=t.offsets,l=t.position,u=t.gpuAcceleration,c=t.adaptive,f=t.roundOffsets,p=t.isFixed,m=a.x,g=m===void 0?0:m,b=a.y,y=b===void 0?0:b,w=typeof f=="function"?f({x:g,y}):{x:g,y};g=w.x,y=w.y;var x=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),C=tr,E=er,_=window;if(c){var T=gu(n),A="clientHeight",L="clientWidth";if(T===hr(n)&&(T=Ui(n),Zo(T).position!=="static"&&l==="absolute"&&(A="scrollHeight",L="scrollWidth")),T=T,o===er||(o===tr||o===Br)&&s===hu){E=Mr;var D=p&&T===_&&_.visualViewport?_.visualViewport.height:T[A];y-=D-r.height,y*=u?1:-1}if(o===tr||(o===er||o===Mr)&&s===hu){C=Br;var M=p&&T===_&&_.visualViewport?_.visualViewport.width:T[L];g-=M-r.width,g*=u?1:-1}}var $=Object.assign({position:l},c&&fM),j=f===!0?pM({x:g,y},hr(n)):{x:g,y};if(g=j.x,y=j.y,u){var X;return Object.assign({},$,(X={},X[E]=S?"0":"",X[C]=x?"0":"",X.transform=(_.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",X))}return Object.assign({},$,(e={},e[E]=S?y+"px":"",e[C]=x?g+"px":"",e.transform="",e))}function hM(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:xo(e.placement),variation:ja(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,kw(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,kw(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const mM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hM,data:{}};var kd={passive:!0};function gM(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,s=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,u=hr(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(f){f.addEventListener("scroll",n.update,kd)}),l&&u.addEventListener("resize",n.update,kd),function(){s&&c.forEach(function(f){f.removeEventListener("scroll",n.update,kd)}),l&&u.removeEventListener("resize",n.update,kd)}}const bM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gM,data:{}};var vM={left:"right",right:"left",bottom:"top",top:"bottom"};function _d(t){return t.replace(/left|right|bottom|top/g,function(e){return vM[e]})}var yM={start:"end",end:"start"};function _w(t){return t.replace(/start|end/g,function(e){return yM[e]})}function f0(t){var e=hr(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function p0(t){return Wa(Ui(t)).left+f0(t).scrollLeft}function wM(t,e){var n=hr(t),r=Ui(t),o=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){s=o.width,a=o.height;var c=yw();(c||!c&&e==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:s,height:a,x:l+p0(t),y:u}}function xM(t){var e,n=Ui(t),r=f0(t),o=(e=t.ownerDocument)==null?void 0:e.body,s=Ds(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ds(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+p0(t),u=-r.scrollTop;return Zo(o||n).direction==="rtl"&&(l+=Ds(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:l,y:u}}function h0(t){var e=Zo(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Tw(t){return["html","body","#document"].indexOf(wo(t))>=0?t.ownerDocument.body:Ir(t)&&h0(t)?t:Tw(Sd(t))}function vu(t,e){var n;e===void 0&&(e=[]);var r=Tw(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),s=hr(r),a=o?[s].concat(s.visualViewport||[],h0(r)?r:[]):r,l=e.concat(a);return o?l:l.concat(vu(Sd(a)))}function m0(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function CM(t,e){var n=Wa(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Aw(t,e,n){return e===mw?m0(wM(t,n)):Ps(e)?CM(e,n):m0(xM(Ui(t)))}function EM(t){var e=vu(Sd(t)),n=["absolute","fixed"].indexOf(Zo(t).position)>=0,r=n&&Ir(t)?gu(t):t;return Ps(r)?e.filter(function(o){return Ps(o)&&ww(o,r)&&wo(o)!=="body"}):[]}function SM(t,e,n,r){var o=e==="clippingParents"?EM(t):[].concat(e),s=[].concat(o,[n]),a=s[0],l=s.reduce(function(u,c){var f=Aw(t,c,r);return u.top=Ds(f.top,u.top),u.right=Ed(f.right,u.right),u.bottom=Ed(f.bottom,u.bottom),u.left=Ds(f.left,u.left),u},Aw(t,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ow(t){var e=t.reference,n=t.element,r=t.placement,o=r?xo(r):null,s=r?ja(r):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,u;switch(o){case er:u={x:a,y:e.y-n.height};break;case Mr:u={x:a,y:e.y+e.height};break;case Br:u={x:e.x+e.width,y:l};break;case tr:u={x:e.x-n.width,y:l};break;default:u={x:e.x,y:e.y}}var c=o?d0(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(s){case Ha:u[c]=u[c]-(e[f]/2-n[f]/2);break;case hu:u[c]=u[c]+(e[f]/2-n[f]/2);break}}return u}function yu(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,s=n.strategy,a=s===void 0?t.strategy:s,l=n.boundary,u=l===void 0?qO:l,c=n.rootBoundary,f=c===void 0?mw:c,p=n.elementContext,m=p===void 0?mu:p,g=n.altBoundary,b=g===void 0?!1:g,y=n.padding,w=y===void 0?0:y,x=Ew(typeof w!="number"?w:Sw(w,pu)),S=m===mu?KO:mu,C=t.rects.popper,E=t.elements[b?S:m],_=SM(Ps(E)?E:E.contextElement||Ui(t.elements.popper),u,f,a),T=Wa(t.elements.reference),A=Ow({reference:T,element:C,placement:o}),L=m0(Object.assign({},C,A)),D=m===mu?L:T,M={top:_.top-D.top+x.top,bottom:D.bottom-_.bottom+x.bottom,left:_.left-D.left+x.left,right:D.right-_.right+x.right},$=t.modifiersData.offset;if(m===mu&&$){var j=$[o];Object.keys(M).forEach(function(X){var se=[Br,Mr].indexOf(X)>=0?1:-1,W=[er,Mr].indexOf(X)>=0?"y":"x";M[X]+=j[W]*se})}return M}function kM(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?bw:u,f=ja(r),p=f?l?gw:gw.filter(function(b){return ja(b)===f}):pu,m=p.filter(function(b){return c.indexOf(b)>=0});m.length===0&&(m=p);var g=m.reduce(function(b,y){return b[y]=yu(t,{placement:y,boundary:o,rootBoundary:s,padding:a})[xo(y)],b},{});return Object.keys(g).sort(function(b,y){return g[b]-g[y]})}function _M(t){if(xo(t)===a0)return[];var e=_d(t);return[_w(t),e,_w(e)]}function TM(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,u=n.fallbackPlacements,c=n.padding,f=n.boundary,p=n.rootBoundary,m=n.altBoundary,g=n.flipVariations,b=g===void 0?!0:g,y=n.allowedAutoPlacements,w=e.options.placement,x=xo(w),S=x===w,C=u||(S||!b?[_d(w)]:_M(w)),E=[w].concat(C).reduce(function(He,Se){return He.concat(xo(Se)===a0?kM(e,{placement:Se,boundary:f,rootBoundary:p,padding:c,flipVariations:b,allowedAutoPlacements:y}):Se)},[]),_=e.rects.reference,T=e.rects.popper,A=new Map,L=!0,D=E[0],M=0;M<E.length;M++){var $=E[M],j=xo($),X=ja($)===Ha,se=[er,Mr].indexOf(j)>=0,W=se?"width":"height",z=yu(e,{placement:$,boundary:f,rootBoundary:p,altBoundary:m,padding:c}),R=se?X?Br:tr:X?Mr:er;_[W]>T[W]&&(R=_d(R));var q=_d(R),Z=[];if(s&&Z.push(z[j]<=0),l&&Z.push(z[R]<=0,z[q]<=0),Z.every(function(He){return He})){D=$,L=!1;break}A.set($,Z)}if(L)for(var te=b?3:1,ne=function(Se){var je=E.find(function(H){var Y=A.get(H);if(Y)return Y.slice(0,Se).every(function(ae){return ae})});if(je)return D=je,"break"},ye=te;ye>0;ye--){var Ce=ne(ye);if(Ce==="break")break}e.placement!==D&&(e.modifiersData[r]._skip=!0,e.placement=D,e.reset=!0)}}const AM={name:"flip",enabled:!0,phase:"main",fn:TM,requiresIfExists:["offset"],data:{_skip:!1}};function Mw(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Bw(t){return[er,Br,Mr,tr].some(function(e){return t[e]>=0})}function OM(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,a=yu(e,{elementContext:"reference"}),l=yu(e,{altBoundary:!0}),u=Mw(a,r),c=Mw(l,o,s),f=Bw(u),p=Bw(c);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const MM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:OM};function BM(t,e,n){var r=xo(t),o=[tr,er].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=s[0],l=s[1];return a=a||0,l=(l||0)*o,[tr,Br].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function IM(t){var e=t.state,n=t.options,r=t.name,o=n.offset,s=o===void 0?[0,0]:o,a=bw.reduce(function(f,p){return f[p]=BM(p,e.rects,s),f},{}),l=a[e.placement],u=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=a}const RM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:IM};function LM(t){var e=t.state,n=t.name;e.modifiersData[n]=Ow({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const PM={name:"popperOffsets",enabled:!0,phase:"read",fn:LM,data:{}};function DM(t){return t==="x"?"y":"x"}function VM(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,p=n.padding,m=n.tether,g=m===void 0?!0:m,b=n.tetherOffset,y=b===void 0?0:b,w=yu(e,{boundary:u,rootBoundary:c,padding:p,altBoundary:f}),x=xo(e.placement),S=ja(e.placement),C=!S,E=d0(x),_=DM(E),T=e.modifiersData.popperOffsets,A=e.rects.reference,L=e.rects.popper,D=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,M=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(T){if(s){var X,se=E==="y"?er:tr,W=E==="y"?Mr:Br,z=E==="y"?"height":"width",R=T[E],q=R+w[se],Z=R-w[W],te=g?-L[z]/2:0,ne=S===Ha?A[z]:L[z],ye=S===Ha?-L[z]:-A[z],Ce=e.elements.arrow,He=g&&Ce?c0(Ce):{width:0,height:0},Se=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Cw(),je=Se[se],H=Se[W],Y=bu(0,A[z],He[z]),ae=C?A[z]/2-te-Y-je-M.mainAxis:ne-Y-je-M.mainAxis,ue=C?-A[z]/2+te+Y+H+M.mainAxis:ye+Y+H+M.mainAxis,he=e.elements.arrow&&gu(e.elements.arrow),J=he?E==="y"?he.clientTop||0:he.clientLeft||0:0,ve=(X=$==null?void 0:$[E])!=null?X:0,Me=R+ae-ve-J,Ue=R+ue-ve,N=bu(g?Ed(q,Me):q,R,g?Ds(Z,Ue):Z);T[E]=N,j[E]=N-R}if(l){var ke,V=E==="x"?er:tr,P=E==="x"?Mr:Br,ie=T[_],me=_==="y"?"height":"width",Le=ie+w[V],nt=ie-w[P],We=[er,tr].indexOf(x)!==-1,ee=(ke=$==null?void 0:$[_])!=null?ke:0,ge=We?Le:ie-A[me]-L[me]-ee+M.altAxis,ce=We?ie+A[me]+L[me]-ee-M.altAxis:nt,we=g&&We?aM(ge,ie,ce):bu(g?ge:Le,ie,g?ce:nt);T[_]=we,j[_]=we-ie}e.modifiersData[r]=j}}const FM={name:"preventOverflow",enabled:!0,phase:"main",fn:VM,requiresIfExists:["offset"]};function $M(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function zM(t){return t===hr(t)||!Ir(t)?f0(t):$M(t)}function HM(t){var e=t.getBoundingClientRect(),n=Ua(e.width)/t.offsetWidth||1,r=Ua(e.height)/t.offsetHeight||1;return n!==1||r!==1}function UM(t,e,n){n===void 0&&(n=!1);var r=Ir(e),o=Ir(e)&&HM(e),s=Ui(e),a=Wa(t,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((wo(e)!=="body"||h0(s))&&(l=zM(e)),Ir(e)?(u=Wa(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=p0(s))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function WM(t){var e=new Map,n=new Set,r=[];t.forEach(function(s){e.set(s.name,s)});function o(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var u=e.get(l);u&&o(u)}}),r.push(s)}return t.forEach(function(s){n.has(s.name)||o(s)}),r}function jM(t){var e=WM(t);return nM.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function qM(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function KM(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Iw={placement:"bottom",modifiers:[],strategy:"absolute"};function Rw(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function GM(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,s=o===void 0?Iw:o;return function(l,u,c){c===void 0&&(c=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Iw,s),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},p=[],m=!1,g={state:f,setOptions:function(x){var S=typeof x=="function"?x(f.options):x;y(),f.options=Object.assign({},s,f.options,S),f.scrollParents={reference:Ps(l)?vu(l):l.contextElement?vu(l.contextElement):[],popper:vu(u)};var C=jM(KM([].concat(r,f.options.modifiers)));return f.orderedModifiers=C.filter(function(E){return E.enabled}),b(),g.update()},forceUpdate:function(){if(!m){var x=f.elements,S=x.reference,C=x.popper;if(Rw(S,C)){f.rects={reference:UM(S,gu(C),f.options.strategy==="fixed"),popper:c0(C)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(M){return f.modifiersData[M.name]=Object.assign({},M.data)});for(var E=0;E<f.orderedModifiers.length;E++){if(f.reset===!0){f.reset=!1,E=-1;continue}var _=f.orderedModifiers[E],T=_.fn,A=_.options,L=A===void 0?{}:A,D=_.name;typeof T=="function"&&(f=T({state:f,options:L,name:D,instance:g})||f)}}}},update:qM(function(){return new Promise(function(w){g.forceUpdate(),w(f)})}),destroy:function(){y(),m=!0}};if(!Rw(l,u))return g;g.setOptions(c).then(function(w){!m&&c.onFirstUpdate&&c.onFirstUpdate(w)});function b(){f.orderedModifiers.forEach(function(w){var x=w.name,S=w.options,C=S===void 0?{}:S,E=w.effect;if(typeof E=="function"){var _=E({state:f,name:x,instance:g,options:C}),T=function(){};p.push(_||T)}})}function y(){p.forEach(function(w){return w()}),p=[]}return g}}var XM=[bM,PM,mM,vw,RM,AM,FM,dM,MM],YM=GM({defaultModifiers:XM}),JM="tippy-box",Lw="tippy-content",ZM="tippy-backdrop",Pw="tippy-arrow",Dw="tippy-svg-arrow",Vs={passive:!0,capture:!0},Vw=function(){return document.body};function QM(t,e){return{}.hasOwnProperty.call(t,e)}function g0(t,e,n){if(Array.isArray(t)){var r=t[e];return r??(Array.isArray(n)?n[e]:n)}return t}function b0(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function Fw(t,e){return typeof t=="function"?t.apply(void 0,e):t}function $w(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function NM(t,e){var n=Object.assign({},t);return e.forEach(function(r){delete n[r]}),n}function eB(t){return t.split(/\s+/).filter(Boolean)}function qa(t){return[].concat(t)}function zw(t,e){t.indexOf(e)===-1&&t.push(e)}function tB(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function nB(t){return t.split("-")[0]}function Td(t){return[].slice.call(t)}function Hw(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function wu(){return document.createElement("div")}function xu(t){return["Element","Fragment"].some(function(e){return b0(t,e)})}function rB(t){return b0(t,"NodeList")}function oB(t){return b0(t,"MouseEvent")}function iB(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function sB(t){return xu(t)?[t]:rB(t)?Td(t):Array.isArray(t)?t:Td(document.querySelectorAll(t))}function v0(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function Uw(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function aB(t){var e,n=qa(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function lB(t,e){var n=e.clientX,r=e.clientY;return t.every(function(o){var s=o.popperRect,a=o.popperState,l=o.props,u=l.interactiveBorder,c=nB(a.placement),f=a.modifiersData.offset;if(!f)return!0;var p=c==="bottom"?f.top.y:0,m=c==="top"?f.bottom.y:0,g=c==="right"?f.left.x:0,b=c==="left"?f.right.x:0,y=s.top-r+p>u,w=r-s.bottom-m>u,x=s.left-n+g>u,S=n-s.right-b>u;return y||w||x||S})}function y0(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){t[r](o,n)})}function Ww(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Co={isTouch:!1},jw=0;function uB(){Co.isTouch||(Co.isTouch=!0,window.performance&&document.addEventListener("mousemove",qw))}function qw(){var t=performance.now();t-jw<20&&(Co.isTouch=!1,document.removeEventListener("mousemove",qw)),jw=t}function cB(){var t=document.activeElement;if(iB(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function dB(){document.addEventListener("touchstart",uB,Vs),window.addEventListener("blur",cB)}var fB=typeof window<"u"&&typeof document<"u",pB=fB?!!window.msCrypto:!1;function Ka(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Kw(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function hB(t){return Kw(`
89
+ `,textSerializers:r={}}=e||{};return uw(this.state.doc,{blockSeparator:n,textSerializers:{...Ym(this.schema),...r}})}get isEmpty(){return Cd(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(e,n))||null}$nodes(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new Rs(n,this)}get $doc(){return this.$pos(0)}};function Ls(t){return new cd({find:t.find,handler:({state:e,range:n,match:r})=>{const o=ct(t.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:s}=e,a=r[r.length-1],l=r[0];if(a){const u=l.search(/\S/),c=n.from+l.indexOf(a),f=c+a.length;if(e0(n.from,n.to,e.doc).filter(g=>g.mark.type.excluded.find(y=>y===t.type&&y!==g.mark.type)).filter(g=>g.to>c).length)return null;f<n.to&&s.delete(f,n.to),c>n.from&&s.delete(n.from+u,c);const m=n.from+u+a.length;s.addMark(n.from+u,m,t.type.create(o||{})),s.removeStoredMark(t.type)}}})}function hw(t){return new cd({find:t.find,handler:({state:e,range:n,match:r})=>{const o=ct(t.getAttributes,void 0,r)||{},{tr:s}=e,a=n.from;let l=n.to;const u=t.type.create(o);if(r[1]){const c=r[0].lastIndexOf(r[1]);let f=a+c;f>l?f=l:l=f+r[1].length;const p=r[0][r[0].length-1];s.insertText(p,a+r[0].length-1),s.replaceWith(f,l,u)}else if(r[0]){const c=t.type.isInline?a:a-1;s.insert(c,t.type.create(o)).delete(s.mapping.map(a),s.mapping.map(l))}s.scrollIntoView()}})}function s0(t){return new cd({find:t.find,handler:({state:e,range:n,match:r})=>{const o=e.doc.resolve(n.from),s=ct(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,s)}})}function za(t){return new cd({find:t.find,handler:({state:e,range:n,match:r,chain:o})=>{const s=ct(t.getAttributes,void 0,r)||{},a=e.tr.delete(n.from,n.to),u=a.doc.resolve(n.from).blockRange(),c=u&&sm(u,t.type,s);if(!c)return null;if(a.wrap(u,c),t.keepMarks&&t.editor){const{selection:p,storedMarks:m}=e,{splittableMarks:g}=t.editor.extensionManager,b=m||p.$to.parentOffset&&p.$from.marks();if(b){const y=b.filter(w=>g.includes(w.type.name));a.ensureMarks(y)}}if(t.keepAttributes){const p=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(p,s).run()}const f=a.doc.resolve(n.from-1).nodeBefore;f&&f.type===t.type&&Mi(a.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,f))&&a.join(n.from-1)}})}let Bt=class f2{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ct(Re(this,"addOptions",{name:this.name}))),this.storage=ct(Re(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new f2(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>pd(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new f2(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=ct(Re(n,"addOptions",{name:n.name})),n.storage=ct(Re(n,"addStorage",{name:n.name,options:n.options})),n}};class WO{constructor(e,n,r){this.isDragging=!1,this.component=e,this.editor=n.editor,this.options={stopEvent:null,ignoreMutation:null,...r},this.extension=n.extension,this.node=n.node,this.decorations=n.decorations,this.innerDecorations=n.innerDecorations,this.view=n.view,this.HTMLAttributes=n.HTMLAttributes,this.getPos=n.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var n,r,o,s,a,l,u;const{view:c}=this.editor,f=e.target,p=f.nodeType===3?(n=f.parentElement)===null||n===void 0?void 0:n.closest("[data-drag-handle]"):f.closest("[data-drag-handle]");if(!this.dom||!((r=this.contentDOM)===null||r===void 0)&&r.contains(f)||!p)return;let m=0,g=0;if(this.dom!==p){const x=this.dom.getBoundingClientRect(),S=p.getBoundingClientRect(),C=(o=e.offsetX)!==null&&o!==void 0?o:(s=e.nativeEvent)===null||s===void 0?void 0:s.offsetX,E=(a=e.offsetY)!==null&&a!==void 0?a:(l=e.nativeEvent)===null||l===void 0?void 0:l.offsetY;m=S.x-x.x+C,g=S.y-x.y+E}(u=e.dataTransfer)===null||u===void 0||u.setDragImage(this.dom,m,g);const b=this.getPos();if(typeof b!="number")return;const y=Fe.create(c.state.doc,b),w=c.state.tr.setSelection(y);c.dispatch(w)}stopEvent(e){var n;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:e});const r=e.target;if(!(this.dom.contains(r)&&!(!((n=this.contentDOM)===null||n===void 0)&&n.contains(r))))return!1;const s=e.type.startsWith("drag"),a=e.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(r.tagName)||r.isContentEditable)&&!a&&!s)return!0;const{isEditable:u}=this.editor,{isDragging:c}=this,f=!!this.node.type.spec.draggable,p=Fe.isSelectable(this.node),m=e.type==="copy",g=e.type==="paste",b=e.type==="cut",y=e.type==="mousedown";if(!f&&p&&s&&e.target===this.dom&&e.preventDefault(),f&&s&&!c&&e.target===this.dom)return e.preventDefault(),!1;if(f&&u&&!c&&y){const w=r.closest("[data-drag-handle]");w&&(this.dom===w||this.dom.contains(w))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(c||a||m||g||b||y&&p)}ignoreMutation(e){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:e}):this.node.isLeaf||this.node.isAtom?!0:e.type==="selection"||this.dom.contains(e.target)&&e.type==="childList"&&(bd()||nw())&&this.editor.isFocused&&[...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(r=>r.isContentEditable)?!1:this.contentDOM===e.target&&e.type==="attributes"?!0:!this.contentDOM.contains(e.target)}updateAttributes(e){this.editor.commands.command(({tr:n})=>{const r=this.getPos();return typeof r!="number"?!1:(n.setNodeMarkup(r,void 0,{...this.node.attrs,...e}),!0)})}deleteNode(){const e=this.getPos();if(typeof e!="number")return;const n=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:n})}}function Hi(t){return new C9({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:o})=>{const s=ct(t.getAttributes,void 0,r,o);if(s===!1||s===null)return null;const{tr:a}=e,l=r[r.length-1],u=r[0];let c=n.to;if(l){const f=u.search(/\S/),p=n.from+u.indexOf(l),m=p+l.length;if(e0(n.from,n.to,e.doc).filter(b=>b.mark.type.excluded.find(w=>w===t.type&&w!==b.mark.type)).filter(b=>b.to>p).length)return null;m<n.to&&a.delete(m,n.to),p>n.from&&a.delete(n.from+f,p),c=n.from+f+l.length,a.addMark(n.from+f,c,t.type.create(s||{})),a.removeStoredMark(t.type)}}})}function jO(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var er="top",Mr="bottom",Br="right",tr="left",a0="auto",pu=[er,Mr,Br,tr],Ha="start",hu="end",qO="clippingParents",mw="viewport",mu="popper",KO="reference",gw=pu.reduce(function(t,e){return t.concat([e+"-"+Ha,e+"-"+hu])},[]),bw=[].concat(pu,[a0]).reduce(function(t,e){return t.concat([e,e+"-"+Ha,e+"-"+hu])},[]),GO="beforeRead",XO="read",YO="afterRead",JO="beforeMain",ZO="main",QO="afterMain",NO="beforeWrite",eM="write",tM="afterWrite",nM=[GO,XO,YO,JO,ZO,QO,NO,eM,tM];function wo(t){return t?(t.nodeName||"").toLowerCase():null}function hr(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ps(t){var e=hr(t).Element;return t instanceof e||t instanceof Element}function Ir(t){var e=hr(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function l0(t){if(typeof ShadowRoot>"u")return!1;var e=hr(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function rM(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},s=e.elements[n];!Ir(s)||!wo(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function oM(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],s=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),l=a.reduce(function(u,c){return u[c]="",u},{});!Ir(o)||!wo(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(u){o.removeAttribute(u)}))})}}const vw={name:"applyStyles",enabled:!0,phase:"write",fn:rM,effect:oM,requires:["computeStyles"]};function xo(t){return t.split("-")[0]}var Ds=Math.max,Ed=Math.min,Ua=Math.round;function u0(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function yw(){return!/^((?!chrome|android).)*safari/i.test(u0())}function Wa(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,s=1;e&&Ir(t)&&(o=t.offsetWidth>0&&Ua(r.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Ua(r.height)/t.offsetHeight||1);var a=Ps(t)?hr(t):window,l=a.visualViewport,u=!yw()&&n,c=(r.left+(u&&l?l.offsetLeft:0))/o,f=(r.top+(u&&l?l.offsetTop:0))/s,p=r.width/o,m=r.height/s;return{width:p,height:m,top:f,right:c+p,bottom:f+m,left:c,x:c,y:f}}function c0(t){var e=Wa(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function ww(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&l0(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Zo(t){return hr(t).getComputedStyle(t)}function iM(t){return["table","td","th"].indexOf(wo(t))>=0}function Ui(t){return((Ps(t)?t.ownerDocument:t.document)||window.document).documentElement}function Sd(t){return wo(t)==="html"?t:t.assignedSlot||t.parentNode||(l0(t)?t.host:null)||Ui(t)}function xw(t){return!Ir(t)||Zo(t).position==="fixed"?null:t.offsetParent}function sM(t){var e=/firefox/i.test(u0()),n=/Trident/i.test(u0());if(n&&Ir(t)){var r=Zo(t);if(r.position==="fixed")return null}var o=Sd(t);for(l0(o)&&(o=o.host);Ir(o)&&["html","body"].indexOf(wo(o))<0;){var s=Zo(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function gu(t){for(var e=hr(t),n=xw(t);n&&iM(n)&&Zo(n).position==="static";)n=xw(n);return n&&(wo(n)==="html"||wo(n)==="body"&&Zo(n).position==="static")?e:n||sM(t)||e}function d0(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function bu(t,e,n){return Ds(t,Ed(e,n))}function aM(t,e,n){var r=bu(t,e,n);return r>n?n:r}function Cw(){return{top:0,right:0,bottom:0,left:0}}function Ew(t){return Object.assign({},Cw(),t)}function Sw(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var lM=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Ew(typeof e!="number"?e:Sw(e,pu))};function uM(t){var e,n=t.state,r=t.name,o=t.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=xo(n.placement),u=d0(l),c=[tr,Br].indexOf(l)>=0,f=c?"height":"width";if(!(!s||!a)){var p=lM(o.padding,n),m=c0(s),g=u==="y"?er:tr,b=u==="y"?Mr:Br,y=n.rects.reference[f]+n.rects.reference[u]-a[u]-n.rects.popper[f],w=a[u]-n.rects.reference[u],x=gu(s),S=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,C=y/2-w/2,E=p[g],_=S-m[f]-p[b],T=S/2-m[f]/2+C,A=bu(E,T,_),L=u;n.modifiersData[r]=(e={},e[L]=A,e.centerOffset=A-T,e)}}function cM(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||ww(e.elements.popper,o)&&(e.elements.arrow=o))}const dM={name:"arrow",enabled:!0,phase:"main",fn:uM,effect:cM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ja(t){return t.split("-")[1]}var fM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pM(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:Ua(n*o)/o||0,y:Ua(r*o)/o||0}}function kw(t){var e,n=t.popper,r=t.popperRect,o=t.placement,s=t.variation,a=t.offsets,l=t.position,u=t.gpuAcceleration,c=t.adaptive,f=t.roundOffsets,p=t.isFixed,m=a.x,g=m===void 0?0:m,b=a.y,y=b===void 0?0:b,w=typeof f=="function"?f({x:g,y}):{x:g,y};g=w.x,y=w.y;var x=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),C=tr,E=er,_=window;if(c){var T=gu(n),A="clientHeight",L="clientWidth";if(T===hr(n)&&(T=Ui(n),Zo(T).position!=="static"&&l==="absolute"&&(A="scrollHeight",L="scrollWidth")),T=T,o===er||(o===tr||o===Br)&&s===hu){E=Mr;var D=p&&T===_&&_.visualViewport?_.visualViewport.height:T[A];y-=D-r.height,y*=u?1:-1}if(o===tr||(o===er||o===Mr)&&s===hu){C=Br;var M=p&&T===_&&_.visualViewport?_.visualViewport.width:T[L];g-=M-r.width,g*=u?1:-1}}var $=Object.assign({position:l},c&&fM),j=f===!0?pM({x:g,y},hr(n)):{x:g,y};if(g=j.x,y=j.y,u){var X;return Object.assign({},$,(X={},X[E]=S?"0":"",X[C]=x?"0":"",X.transform=(_.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",X))}return Object.assign({},$,(e={},e[E]=S?y+"px":"",e[C]=x?g+"px":"",e.transform="",e))}function hM(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:xo(e.placement),variation:ja(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,kw(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,kw(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const mM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hM,data:{}};var kd={passive:!0};function gM(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,s=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,u=hr(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(f){f.addEventListener("scroll",n.update,kd)}),l&&u.addEventListener("resize",n.update,kd),function(){s&&c.forEach(function(f){f.removeEventListener("scroll",n.update,kd)}),l&&u.removeEventListener("resize",n.update,kd)}}const bM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gM,data:{}};var vM={left:"right",right:"left",bottom:"top",top:"bottom"};function _d(t){return t.replace(/left|right|bottom|top/g,function(e){return vM[e]})}var yM={start:"end",end:"start"};function _w(t){return t.replace(/start|end/g,function(e){return yM[e]})}function f0(t){var e=hr(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function p0(t){return Wa(Ui(t)).left+f0(t).scrollLeft}function wM(t,e){var n=hr(t),r=Ui(t),o=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){s=o.width,a=o.height;var c=yw();(c||!c&&e==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:s,height:a,x:l+p0(t),y:u}}function xM(t){var e,n=Ui(t),r=f0(t),o=(e=t.ownerDocument)==null?void 0:e.body,s=Ds(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ds(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+p0(t),u=-r.scrollTop;return Zo(o||n).direction==="rtl"&&(l+=Ds(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:l,y:u}}function h0(t){var e=Zo(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Tw(t){return["html","body","#document"].indexOf(wo(t))>=0?t.ownerDocument.body:Ir(t)&&h0(t)?t:Tw(Sd(t))}function vu(t,e){var n;e===void 0&&(e=[]);var r=Tw(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),s=hr(r),a=o?[s].concat(s.visualViewport||[],h0(r)?r:[]):r,l=e.concat(a);return o?l:l.concat(vu(Sd(a)))}function m0(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function CM(t,e){var n=Wa(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Aw(t,e,n){return e===mw?m0(wM(t,n)):Ps(e)?CM(e,n):m0(xM(Ui(t)))}function EM(t){var e=vu(Sd(t)),n=["absolute","fixed"].indexOf(Zo(t).position)>=0,r=n&&Ir(t)?gu(t):t;return Ps(r)?e.filter(function(o){return Ps(o)&&ww(o,r)&&wo(o)!=="body"}):[]}function SM(t,e,n,r){var o=e==="clippingParents"?EM(t):[].concat(e),s=[].concat(o,[n]),a=s[0],l=s.reduce(function(u,c){var f=Aw(t,c,r);return u.top=Ds(f.top,u.top),u.right=Ed(f.right,u.right),u.bottom=Ed(f.bottom,u.bottom),u.left=Ds(f.left,u.left),u},Aw(t,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ow(t){var e=t.reference,n=t.element,r=t.placement,o=r?xo(r):null,s=r?ja(r):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,u;switch(o){case er:u={x:a,y:e.y-n.height};break;case Mr:u={x:a,y:e.y+e.height};break;case Br:u={x:e.x+e.width,y:l};break;case tr:u={x:e.x-n.width,y:l};break;default:u={x:e.x,y:e.y}}var c=o?d0(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(s){case Ha:u[c]=u[c]-(e[f]/2-n[f]/2);break;case hu:u[c]=u[c]+(e[f]/2-n[f]/2);break}}return u}function yu(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,s=n.strategy,a=s===void 0?t.strategy:s,l=n.boundary,u=l===void 0?qO:l,c=n.rootBoundary,f=c===void 0?mw:c,p=n.elementContext,m=p===void 0?mu:p,g=n.altBoundary,b=g===void 0?!1:g,y=n.padding,w=y===void 0?0:y,x=Ew(typeof w!="number"?w:Sw(w,pu)),S=m===mu?KO:mu,C=t.rects.popper,E=t.elements[b?S:m],_=SM(Ps(E)?E:E.contextElement||Ui(t.elements.popper),u,f,a),T=Wa(t.elements.reference),A=Ow({reference:T,element:C,placement:o}),L=m0(Object.assign({},C,A)),D=m===mu?L:T,M={top:_.top-D.top+x.top,bottom:D.bottom-_.bottom+x.bottom,left:_.left-D.left+x.left,right:D.right-_.right+x.right},$=t.modifiersData.offset;if(m===mu&&$){var j=$[o];Object.keys(M).forEach(function(X){var se=[Br,Mr].indexOf(X)>=0?1:-1,W=[er,Mr].indexOf(X)>=0?"y":"x";M[X]+=j[W]*se})}return M}function kM(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?bw:u,f=ja(r),p=f?l?gw:gw.filter(function(b){return ja(b)===f}):pu,m=p.filter(function(b){return c.indexOf(b)>=0});m.length===0&&(m=p);var g=m.reduce(function(b,y){return b[y]=yu(t,{placement:y,boundary:o,rootBoundary:s,padding:a})[xo(y)],b},{});return Object.keys(g).sort(function(b,y){return g[b]-g[y]})}function _M(t){if(xo(t)===a0)return[];var e=_d(t);return[_w(t),e,_w(e)]}function TM(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,u=n.fallbackPlacements,c=n.padding,f=n.boundary,p=n.rootBoundary,m=n.altBoundary,g=n.flipVariations,b=g===void 0?!0:g,y=n.allowedAutoPlacements,w=e.options.placement,x=xo(w),S=x===w,C=u||(S||!b?[_d(w)]:_M(w)),E=[w].concat(C).reduce(function(He,Se){return He.concat(xo(Se)===a0?kM(e,{placement:Se,boundary:f,rootBoundary:p,padding:c,flipVariations:b,allowedAutoPlacements:y}):Se)},[]),_=e.rects.reference,T=e.rects.popper,A=new Map,L=!0,D=E[0],M=0;M<E.length;M++){var $=E[M],j=xo($),X=ja($)===Ha,se=[er,Mr].indexOf(j)>=0,W=se?"width":"height",z=yu(e,{placement:$,boundary:f,rootBoundary:p,altBoundary:m,padding:c}),R=se?X?Br:tr:X?Mr:er;_[W]>T[W]&&(R=_d(R));var q=_d(R),Z=[];if(s&&Z.push(z[j]<=0),l&&Z.push(z[R]<=0,z[q]<=0),Z.every(function(He){return He})){D=$,L=!1;break}A.set($,Z)}if(L)for(var te=b?3:1,ne=function(Se){var je=E.find(function(H){var Y=A.get(H);if(Y)return Y.slice(0,Se).every(function(ae){return ae})});if(je)return D=je,"break"},ye=te;ye>0;ye--){var Ce=ne(ye);if(Ce==="break")break}e.placement!==D&&(e.modifiersData[r]._skip=!0,e.placement=D,e.reset=!0)}}const AM={name:"flip",enabled:!0,phase:"main",fn:TM,requiresIfExists:["offset"],data:{_skip:!1}};function Mw(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Bw(t){return[er,Br,Mr,tr].some(function(e){return t[e]>=0})}function OM(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,a=yu(e,{elementContext:"reference"}),l=yu(e,{altBoundary:!0}),u=Mw(a,r),c=Mw(l,o,s),f=Bw(u),p=Bw(c);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const MM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:OM};function BM(t,e,n){var r=xo(t),o=[tr,er].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=s[0],l=s[1];return a=a||0,l=(l||0)*o,[tr,Br].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function IM(t){var e=t.state,n=t.options,r=t.name,o=n.offset,s=o===void 0?[0,0]:o,a=bw.reduce(function(f,p){return f[p]=BM(p,e.rects,s),f},{}),l=a[e.placement],u=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=a}const RM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:IM};function LM(t){var e=t.state,n=t.name;e.modifiersData[n]=Ow({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const PM={name:"popperOffsets",enabled:!0,phase:"read",fn:LM,data:{}};function DM(t){return t==="x"?"y":"x"}function VM(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,p=n.padding,m=n.tether,g=m===void 0?!0:m,b=n.tetherOffset,y=b===void 0?0:b,w=yu(e,{boundary:u,rootBoundary:c,padding:p,altBoundary:f}),x=xo(e.placement),S=ja(e.placement),C=!S,E=d0(x),_=DM(E),T=e.modifiersData.popperOffsets,A=e.rects.reference,L=e.rects.popper,D=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,M=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(T){if(s){var X,se=E==="y"?er:tr,W=E==="y"?Mr:Br,z=E==="y"?"height":"width",R=T[E],q=R+w[se],Z=R-w[W],te=g?-L[z]/2:0,ne=S===Ha?A[z]:L[z],ye=S===Ha?-L[z]:-A[z],Ce=e.elements.arrow,He=g&&Ce?c0(Ce):{width:0,height:0},Se=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Cw(),je=Se[se],H=Se[W],Y=bu(0,A[z],He[z]),ae=C?A[z]/2-te-Y-je-M.mainAxis:ne-Y-je-M.mainAxis,ue=C?-A[z]/2+te+Y+H+M.mainAxis:ye+Y+H+M.mainAxis,he=e.elements.arrow&&gu(e.elements.arrow),J=he?E==="y"?he.clientTop||0:he.clientLeft||0:0,ve=(X=$==null?void 0:$[E])!=null?X:0,Me=R+ae-ve-J,Ue=R+ue-ve,Q=bu(g?Ed(q,Me):q,R,g?Ds(Z,Ue):Z);T[E]=Q,j[E]=Q-R}if(l){var ke,V=E==="x"?er:tr,P=E==="x"?Mr:Br,ie=T[_],me=_==="y"?"height":"width",Le=ie+w[V],nt=ie-w[P],We=[er,tr].indexOf(x)!==-1,ee=(ke=$==null?void 0:$[_])!=null?ke:0,ge=We?Le:ie-A[me]-L[me]-ee+M.altAxis,ce=We?ie+A[me]+L[me]-ee-M.altAxis:nt,we=g&&We?aM(ge,ie,ce):bu(g?ge:Le,ie,g?ce:nt);T[_]=we,j[_]=we-ie}e.modifiersData[r]=j}}const FM={name:"preventOverflow",enabled:!0,phase:"main",fn:VM,requiresIfExists:["offset"]};function $M(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function zM(t){return t===hr(t)||!Ir(t)?f0(t):$M(t)}function HM(t){var e=t.getBoundingClientRect(),n=Ua(e.width)/t.offsetWidth||1,r=Ua(e.height)/t.offsetHeight||1;return n!==1||r!==1}function UM(t,e,n){n===void 0&&(n=!1);var r=Ir(e),o=Ir(e)&&HM(e),s=Ui(e),a=Wa(t,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((wo(e)!=="body"||h0(s))&&(l=zM(e)),Ir(e)?(u=Wa(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=p0(s))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function WM(t){var e=new Map,n=new Set,r=[];t.forEach(function(s){e.set(s.name,s)});function o(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var u=e.get(l);u&&o(u)}}),r.push(s)}return t.forEach(function(s){n.has(s.name)||o(s)}),r}function jM(t){var e=WM(t);return nM.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function qM(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function KM(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Iw={placement:"bottom",modifiers:[],strategy:"absolute"};function Rw(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function GM(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,s=o===void 0?Iw:o;return function(l,u,c){c===void 0&&(c=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Iw,s),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},p=[],m=!1,g={state:f,setOptions:function(x){var S=typeof x=="function"?x(f.options):x;y(),f.options=Object.assign({},s,f.options,S),f.scrollParents={reference:Ps(l)?vu(l):l.contextElement?vu(l.contextElement):[],popper:vu(u)};var C=jM(KM([].concat(r,f.options.modifiers)));return f.orderedModifiers=C.filter(function(E){return E.enabled}),b(),g.update()},forceUpdate:function(){if(!m){var x=f.elements,S=x.reference,C=x.popper;if(Rw(S,C)){f.rects={reference:UM(S,gu(C),f.options.strategy==="fixed"),popper:c0(C)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(M){return f.modifiersData[M.name]=Object.assign({},M.data)});for(var E=0;E<f.orderedModifiers.length;E++){if(f.reset===!0){f.reset=!1,E=-1;continue}var _=f.orderedModifiers[E],T=_.fn,A=_.options,L=A===void 0?{}:A,D=_.name;typeof T=="function"&&(f=T({state:f,options:L,name:D,instance:g})||f)}}}},update:qM(function(){return new Promise(function(w){g.forceUpdate(),w(f)})}),destroy:function(){y(),m=!0}};if(!Rw(l,u))return g;g.setOptions(c).then(function(w){!m&&c.onFirstUpdate&&c.onFirstUpdate(w)});function b(){f.orderedModifiers.forEach(function(w){var x=w.name,S=w.options,C=S===void 0?{}:S,E=w.effect;if(typeof E=="function"){var _=E({state:f,name:x,instance:g,options:C}),T=function(){};p.push(_||T)}})}function y(){p.forEach(function(w){return w()}),p=[]}return g}}var XM=[bM,PM,mM,vw,RM,AM,FM,dM,MM],YM=GM({defaultModifiers:XM}),JM="tippy-box",Lw="tippy-content",ZM="tippy-backdrop",Pw="tippy-arrow",Dw="tippy-svg-arrow",Vs={passive:!0,capture:!0},Vw=function(){return document.body};function QM(t,e){return{}.hasOwnProperty.call(t,e)}function g0(t,e,n){if(Array.isArray(t)){var r=t[e];return r??(Array.isArray(n)?n[e]:n)}return t}function b0(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function Fw(t,e){return typeof t=="function"?t.apply(void 0,e):t}function $w(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function NM(t,e){var n=Object.assign({},t);return e.forEach(function(r){delete n[r]}),n}function eB(t){return t.split(/\s+/).filter(Boolean)}function qa(t){return[].concat(t)}function zw(t,e){t.indexOf(e)===-1&&t.push(e)}function tB(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function nB(t){return t.split("-")[0]}function Td(t){return[].slice.call(t)}function Hw(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function wu(){return document.createElement("div")}function xu(t){return["Element","Fragment"].some(function(e){return b0(t,e)})}function rB(t){return b0(t,"NodeList")}function oB(t){return b0(t,"MouseEvent")}function iB(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function sB(t){return xu(t)?[t]:rB(t)?Td(t):Array.isArray(t)?t:Td(document.querySelectorAll(t))}function v0(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function Uw(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function aB(t){var e,n=qa(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function lB(t,e){var n=e.clientX,r=e.clientY;return t.every(function(o){var s=o.popperRect,a=o.popperState,l=o.props,u=l.interactiveBorder,c=nB(a.placement),f=a.modifiersData.offset;if(!f)return!0;var p=c==="bottom"?f.top.y:0,m=c==="top"?f.bottom.y:0,g=c==="right"?f.left.x:0,b=c==="left"?f.right.x:0,y=s.top-r+p>u,w=r-s.bottom-m>u,x=s.left-n+g>u,S=n-s.right-b>u;return y||w||x||S})}function y0(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){t[r](o,n)})}function Ww(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Co={isTouch:!1},jw=0;function uB(){Co.isTouch||(Co.isTouch=!0,window.performance&&document.addEventListener("mousemove",qw))}function qw(){var t=performance.now();t-jw<20&&(Co.isTouch=!1,document.removeEventListener("mousemove",qw)),jw=t}function cB(){var t=document.activeElement;if(iB(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function dB(){document.addEventListener("touchstart",uB,Vs),window.addEventListener("blur",cB)}var fB=typeof window<"u"&&typeof document<"u",pB=fB?!!window.msCrypto:!1;function Ka(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Kw(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function hB(t){return Kw(`
90
90
  %ctippy.js
91
91
 
92
92
  %c`+Kw(t)+`
@@ -95,7 +95,7 @@ img.ProseMirror-separator {
95
95
  `)}function Gw(t){return[hB(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Cu;process.env.NODE_ENV!=="production"&&mB();function mB(){Cu=new Set}function Qo(t,e){if(t&&!Cu.has(e)){var n;Cu.add(e),(n=console).warn.apply(n,Gw(e))}}function w0(t,e){if(t&&!Cu.has(e)){var n;Cu.add(e),(n=console).error.apply(n,Gw(e))}}function gB(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;w0(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),w0(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Xw={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},bB={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},mr=Object.assign({appendTo:Vw,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Xw,bB),vB=Object.keys(mr),yB=function(e){process.env.NODE_ENV!=="production"&&Zw(e,[]);var n=Object.keys(e);n.forEach(function(r){mr[r]=e[r]})};function Yw(t){var e=t.plugins||[],n=e.reduce(function(r,o){var s=o.name,a=o.defaultValue;if(s){var l;r[s]=t[s]!==void 0?t[s]:(l=mr[s])!=null?l:a}return r},{});return Object.assign({},t,n)}function wB(t,e){var n=e?Object.keys(Yw(Object.assign({},mr,{plugins:e}))):vB,r=n.reduce(function(o,s){var a=(t.getAttribute("data-tippy-"+s)||"").trim();if(!a)return o;if(s==="content")o[s]=a;else try{o[s]=JSON.parse(a)}catch{o[s]=a}return o},{});return r}function Jw(t,e){var n=Object.assign({},e,{content:Fw(e.content,[t])},e.ignoreAttributes?{}:wB(t,e.plugins));return n.aria=Object.assign({},mr.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}function Zw(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var n=Object.keys(t);n.forEach(function(r){var o=NM(mr,Object.keys(Xw)),s=!QM(o,r);s&&(s=e.filter(function(a){return a.name===r}).length===0),Qo(s,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
96
96
 
97
97
  `,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
98
- `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var xB=function(){return"innerHTML"};function x0(t,e){t[xB()]=e}function Qw(t){var e=wu();return t===!0?e.className=Pw:(e.className=Dw,xu(t)?e.appendChild(t):x0(e,t)),e}function Nw(t,e){xu(e.content)?(x0(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?x0(t,e.content):t.textContent=e.content)}function C0(t){var e=t.firstElementChild,n=Td(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(Lw)}),arrow:n.find(function(r){return r.classList.contains(Pw)||r.classList.contains(Dw)}),backdrop:n.find(function(r){return r.classList.contains(ZM)})}}function e4(t){var e=wu(),n=wu();n.className=JM,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=wu();r.className=Lw,r.setAttribute("data-state","hidden"),Nw(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(s,a){var l=C0(e),u=l.box,c=l.content,f=l.arrow;a.theme?u.setAttribute("data-theme",a.theme):u.removeAttribute("data-theme"),typeof a.animation=="string"?u.setAttribute("data-animation",a.animation):u.removeAttribute("data-animation"),a.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?u.setAttribute("role",a.role):u.removeAttribute("role"),(s.content!==a.content||s.allowHTML!==a.allowHTML)&&Nw(c,t.props),a.arrow?f?s.arrow!==a.arrow&&(u.removeChild(f),u.appendChild(Qw(a.arrow))):u.appendChild(Qw(a.arrow)):f&&u.removeChild(f)}return{popper:e,onUpdate:o}}e4.$$tippy=!0;var CB=1,Ad=[],E0=[];function EB(t,e){var n=Jw(t,Object.assign({},mr,Yw(Hw(e)))),r,o,s,a=!1,l=!1,u=!1,c=!1,f,p,m,g=[],b=$w(Me,n.interactiveDebounce),y,w=CB++,x=null,S=tB(n.plugins),C={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},E={id:w,reference:t,popper:wu(),popperInstance:x,props:n,state:C,plugins:S,clearDelayTimeouts:ge,setProps:ce,setContent:we,show:Ve,hide:Qe,hideWithInteractivity:Ot,enable:We,disable:ee,unmount:Nt,destroy:hi};if(!n.render)return process.env.NODE_ENV!=="production"&&w0(!0,"render() function has not been supplied."),E;var _=n.render(E),T=_.popper,A=_.onUpdate;T.setAttribute("data-tippy-root",""),T.id="tippy-"+E.id,E.popper=T,t._tippy=E,T._tippy=E;var L=S.map(function(oe){return oe.fn(E)}),D=t.hasAttribute("aria-expanded");return he(),te(),R(),q("onCreate",[E]),n.showOnCreate&&Le(),T.addEventListener("mouseenter",function(){E.props.interactive&&E.state.isVisible&&E.clearDelayTimeouts()}),T.addEventListener("mouseleave",function(){E.props.interactive&&E.props.trigger.indexOf("mouseenter")>=0&&se().addEventListener("mousemove",b)}),E;function M(){var oe=E.props.touch;return Array.isArray(oe)?oe:[oe,0]}function $(){return M()[0]==="hold"}function j(){var oe;return!!((oe=E.props.render)!=null&&oe.$$tippy)}function X(){return y||t}function se(){var oe=X().parentNode;return oe?aB(oe):document}function W(){return C0(T)}function z(oe){return E.state.isMounted&&!E.state.isVisible||Co.isTouch||f&&f.type==="focus"?0:g0(E.props.delay,oe?0:1,mr.delay)}function R(oe){oe===void 0&&(oe=!1),T.style.pointerEvents=E.props.interactive&&!oe?"":"none",T.style.zIndex=""+E.props.zIndex}function q(oe,Pe,qe){if(qe===void 0&&(qe=!0),L.forEach(function(yt){yt[oe]&&yt[oe].apply(yt,Pe)}),qe){var Et;(Et=E.props)[oe].apply(Et,Pe)}}function Z(){var oe=E.props.aria;if(oe.content){var Pe="aria-"+oe.content,qe=T.id,Et=qa(E.props.triggerTarget||t);Et.forEach(function(yt){var An=yt.getAttribute(Pe);if(E.state.isVisible)yt.setAttribute(Pe,An?An+" "+qe:qe);else{var ar=An&&An.replace(qe,"").trim();ar?yt.setAttribute(Pe,ar):yt.removeAttribute(Pe)}})}}function te(){if(!(D||!E.props.aria.expanded)){var oe=qa(E.props.triggerTarget||t);oe.forEach(function(Pe){E.props.interactive?Pe.setAttribute("aria-expanded",E.state.isVisible&&Pe===X()?"true":"false"):Pe.removeAttribute("aria-expanded")})}}function ne(){se().removeEventListener("mousemove",b),Ad=Ad.filter(function(oe){return oe!==b})}function ye(oe){if(!(Co.isTouch&&(u||oe.type==="mousedown"))){var Pe=oe.composedPath&&oe.composedPath()[0]||oe.target;if(!(E.props.interactive&&Ww(T,Pe))){if(qa(E.props.triggerTarget||t).some(function(qe){return Ww(qe,Pe)})){if(Co.isTouch||E.state.isVisible&&E.props.trigger.indexOf("click")>=0)return}else q("onClickOutside",[E,oe]);E.props.hideOnClick===!0&&(E.clearDelayTimeouts(),E.hide(),l=!0,setTimeout(function(){l=!1}),E.state.isMounted||je())}}}function Ce(){u=!0}function He(){u=!1}function Se(){var oe=se();oe.addEventListener("mousedown",ye,!0),oe.addEventListener("touchend",ye,Vs),oe.addEventListener("touchstart",He,Vs),oe.addEventListener("touchmove",Ce,Vs)}function je(){var oe=se();oe.removeEventListener("mousedown",ye,!0),oe.removeEventListener("touchend",ye,Vs),oe.removeEventListener("touchstart",He,Vs),oe.removeEventListener("touchmove",Ce,Vs)}function H(oe,Pe){ae(oe,function(){!E.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&Pe()})}function Y(oe,Pe){ae(oe,Pe)}function ae(oe,Pe){var qe=W().box;function Et(yt){yt.target===qe&&(y0(qe,"remove",Et),Pe())}if(oe===0)return Pe();y0(qe,"remove",p),y0(qe,"add",Et),p=Et}function ue(oe,Pe,qe){qe===void 0&&(qe=!1);var Et=qa(E.props.triggerTarget||t);Et.forEach(function(yt){yt.addEventListener(oe,Pe,qe),g.push({node:yt,eventType:oe,handler:Pe,options:qe})})}function he(){$()&&(ue("touchstart",ve,{passive:!0}),ue("touchend",Ue,{passive:!0})),eB(E.props.trigger).forEach(function(oe){if(oe!=="manual")switch(ue(oe,ve),oe){case"mouseenter":ue("mouseleave",Ue);break;case"focus":ue(pB?"focusout":"blur",N);break;case"focusin":ue("focusout",N);break}})}function J(){g.forEach(function(oe){var Pe=oe.node,qe=oe.eventType,Et=oe.handler,yt=oe.options;Pe.removeEventListener(qe,Et,yt)}),g=[]}function ve(oe){var Pe,qe=!1;if(!(!E.state.isEnabled||ke(oe)||l)){var Et=((Pe=f)==null?void 0:Pe.type)==="focus";f=oe,y=oe.currentTarget,te(),!E.state.isVisible&&oB(oe)&&Ad.forEach(function(yt){return yt(oe)}),oe.type==="click"&&(E.props.trigger.indexOf("mouseenter")<0||a)&&E.props.hideOnClick!==!1&&E.state.isVisible?qe=!0:Le(oe),oe.type==="click"&&(a=!qe),qe&&!Et&&nt(oe)}}function Me(oe){var Pe=oe.target,qe=X().contains(Pe)||T.contains(Pe);if(!(oe.type==="mousemove"&&qe)){var Et=me().concat(T).map(function(yt){var An,ar=yt._tippy,mi=(An=ar.popperInstance)==null?void 0:An.state;return mi?{popperRect:yt.getBoundingClientRect(),popperState:mi,props:n}:null}).filter(Boolean);lB(Et,oe)&&(ne(),nt(oe))}}function Ue(oe){var Pe=ke(oe)||E.props.trigger.indexOf("click")>=0&&a;if(!Pe){if(E.props.interactive){E.hideWithInteractivity(oe);return}nt(oe)}}function N(oe){E.props.trigger.indexOf("focusin")<0&&oe.target!==X()||E.props.interactive&&oe.relatedTarget&&T.contains(oe.relatedTarget)||nt(oe)}function ke(oe){return Co.isTouch?$()!==oe.type.indexOf("touch")>=0:!1}function V(){P();var oe=E.props,Pe=oe.popperOptions,qe=oe.placement,Et=oe.offset,yt=oe.getReferenceClientRect,An=oe.moveTransition,ar=j()?C0(T).arrow:null,mi=yt?{getBoundingClientRect:yt,contextElement:yt.contextElement||X()}:t,yc={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ol){var ps=Ol.state;if(j()){var rh=W(),xc=rh.box;["placement","reference-hidden","escaped"].forEach(function(Ml){Ml==="placement"?xc.setAttribute("data-placement",ps.placement):ps.attributes.popper["data-popper-"+Ml]?xc.setAttribute("data-"+Ml,""):xc.removeAttribute("data-"+Ml)}),ps.attributes.popper={}}}},gi=[{name:"offset",options:{offset:Et}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!An}},yc];j()&&ar&&gi.push({name:"arrow",options:{element:ar,padding:3}}),gi.push.apply(gi,(Pe==null?void 0:Pe.modifiers)||[]),E.popperInstance=YM(mi,T,Object.assign({},Pe,{placement:qe,onFirstUpdate:m,modifiers:gi}))}function P(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function ie(){var oe=E.props.appendTo,Pe,qe=X();E.props.interactive&&oe===Vw||oe==="parent"?Pe=qe.parentNode:Pe=Fw(oe,[qe]),Pe.contains(T)||Pe.appendChild(T),E.state.isMounted=!0,V(),process.env.NODE_ENV!=="production"&&Qo(E.props.interactive&&oe===mr.appendTo&&qe.nextElementSibling!==T,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
98
+ `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var xB=function(){return"innerHTML"};function x0(t,e){t[xB()]=e}function Qw(t){var e=wu();return t===!0?e.className=Pw:(e.className=Dw,xu(t)?e.appendChild(t):x0(e,t)),e}function Nw(t,e){xu(e.content)?(x0(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?x0(t,e.content):t.textContent=e.content)}function C0(t){var e=t.firstElementChild,n=Td(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(Lw)}),arrow:n.find(function(r){return r.classList.contains(Pw)||r.classList.contains(Dw)}),backdrop:n.find(function(r){return r.classList.contains(ZM)})}}function e4(t){var e=wu(),n=wu();n.className=JM,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=wu();r.className=Lw,r.setAttribute("data-state","hidden"),Nw(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(s,a){var l=C0(e),u=l.box,c=l.content,f=l.arrow;a.theme?u.setAttribute("data-theme",a.theme):u.removeAttribute("data-theme"),typeof a.animation=="string"?u.setAttribute("data-animation",a.animation):u.removeAttribute("data-animation"),a.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?u.setAttribute("role",a.role):u.removeAttribute("role"),(s.content!==a.content||s.allowHTML!==a.allowHTML)&&Nw(c,t.props),a.arrow?f?s.arrow!==a.arrow&&(u.removeChild(f),u.appendChild(Qw(a.arrow))):u.appendChild(Qw(a.arrow)):f&&u.removeChild(f)}return{popper:e,onUpdate:o}}e4.$$tippy=!0;var CB=1,Ad=[],E0=[];function EB(t,e){var n=Jw(t,Object.assign({},mr,Yw(Hw(e)))),r,o,s,a=!1,l=!1,u=!1,c=!1,f,p,m,g=[],b=$w(Me,n.interactiveDebounce),y,w=CB++,x=null,S=tB(n.plugins),C={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},E={id:w,reference:t,popper:wu(),popperInstance:x,props:n,state:C,plugins:S,clearDelayTimeouts:ge,setProps:ce,setContent:we,show:Ve,hide:Qe,hideWithInteractivity:Ot,enable:We,disable:ee,unmount:Nt,destroy:hi};if(!n.render)return process.env.NODE_ENV!=="production"&&w0(!0,"render() function has not been supplied."),E;var _=n.render(E),T=_.popper,A=_.onUpdate;T.setAttribute("data-tippy-root",""),T.id="tippy-"+E.id,E.popper=T,t._tippy=E,T._tippy=E;var L=S.map(function(oe){return oe.fn(E)}),D=t.hasAttribute("aria-expanded");return he(),te(),R(),q("onCreate",[E]),n.showOnCreate&&Le(),T.addEventListener("mouseenter",function(){E.props.interactive&&E.state.isVisible&&E.clearDelayTimeouts()}),T.addEventListener("mouseleave",function(){E.props.interactive&&E.props.trigger.indexOf("mouseenter")>=0&&se().addEventListener("mousemove",b)}),E;function M(){var oe=E.props.touch;return Array.isArray(oe)?oe:[oe,0]}function $(){return M()[0]==="hold"}function j(){var oe;return!!((oe=E.props.render)!=null&&oe.$$tippy)}function X(){return y||t}function se(){var oe=X().parentNode;return oe?aB(oe):document}function W(){return C0(T)}function z(oe){return E.state.isMounted&&!E.state.isVisible||Co.isTouch||f&&f.type==="focus"?0:g0(E.props.delay,oe?0:1,mr.delay)}function R(oe){oe===void 0&&(oe=!1),T.style.pointerEvents=E.props.interactive&&!oe?"":"none",T.style.zIndex=""+E.props.zIndex}function q(oe,Pe,qe){if(qe===void 0&&(qe=!0),L.forEach(function(yt){yt[oe]&&yt[oe].apply(yt,Pe)}),qe){var Et;(Et=E.props)[oe].apply(Et,Pe)}}function Z(){var oe=E.props.aria;if(oe.content){var Pe="aria-"+oe.content,qe=T.id,Et=qa(E.props.triggerTarget||t);Et.forEach(function(yt){var An=yt.getAttribute(Pe);if(E.state.isVisible)yt.setAttribute(Pe,An?An+" "+qe:qe);else{var ar=An&&An.replace(qe,"").trim();ar?yt.setAttribute(Pe,ar):yt.removeAttribute(Pe)}})}}function te(){if(!(D||!E.props.aria.expanded)){var oe=qa(E.props.triggerTarget||t);oe.forEach(function(Pe){E.props.interactive?Pe.setAttribute("aria-expanded",E.state.isVisible&&Pe===X()?"true":"false"):Pe.removeAttribute("aria-expanded")})}}function ne(){se().removeEventListener("mousemove",b),Ad=Ad.filter(function(oe){return oe!==b})}function ye(oe){if(!(Co.isTouch&&(u||oe.type==="mousedown"))){var Pe=oe.composedPath&&oe.composedPath()[0]||oe.target;if(!(E.props.interactive&&Ww(T,Pe))){if(qa(E.props.triggerTarget||t).some(function(qe){return Ww(qe,Pe)})){if(Co.isTouch||E.state.isVisible&&E.props.trigger.indexOf("click")>=0)return}else q("onClickOutside",[E,oe]);E.props.hideOnClick===!0&&(E.clearDelayTimeouts(),E.hide(),l=!0,setTimeout(function(){l=!1}),E.state.isMounted||je())}}}function Ce(){u=!0}function He(){u=!1}function Se(){var oe=se();oe.addEventListener("mousedown",ye,!0),oe.addEventListener("touchend",ye,Vs),oe.addEventListener("touchstart",He,Vs),oe.addEventListener("touchmove",Ce,Vs)}function je(){var oe=se();oe.removeEventListener("mousedown",ye,!0),oe.removeEventListener("touchend",ye,Vs),oe.removeEventListener("touchstart",He,Vs),oe.removeEventListener("touchmove",Ce,Vs)}function H(oe,Pe){ae(oe,function(){!E.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&Pe()})}function Y(oe,Pe){ae(oe,Pe)}function ae(oe,Pe){var qe=W().box;function Et(yt){yt.target===qe&&(y0(qe,"remove",Et),Pe())}if(oe===0)return Pe();y0(qe,"remove",p),y0(qe,"add",Et),p=Et}function ue(oe,Pe,qe){qe===void 0&&(qe=!1);var Et=qa(E.props.triggerTarget||t);Et.forEach(function(yt){yt.addEventListener(oe,Pe,qe),g.push({node:yt,eventType:oe,handler:Pe,options:qe})})}function he(){$()&&(ue("touchstart",ve,{passive:!0}),ue("touchend",Ue,{passive:!0})),eB(E.props.trigger).forEach(function(oe){if(oe!=="manual")switch(ue(oe,ve),oe){case"mouseenter":ue("mouseleave",Ue);break;case"focus":ue(pB?"focusout":"blur",Q);break;case"focusin":ue("focusout",Q);break}})}function J(){g.forEach(function(oe){var Pe=oe.node,qe=oe.eventType,Et=oe.handler,yt=oe.options;Pe.removeEventListener(qe,Et,yt)}),g=[]}function ve(oe){var Pe,qe=!1;if(!(!E.state.isEnabled||ke(oe)||l)){var Et=((Pe=f)==null?void 0:Pe.type)==="focus";f=oe,y=oe.currentTarget,te(),!E.state.isVisible&&oB(oe)&&Ad.forEach(function(yt){return yt(oe)}),oe.type==="click"&&(E.props.trigger.indexOf("mouseenter")<0||a)&&E.props.hideOnClick!==!1&&E.state.isVisible?qe=!0:Le(oe),oe.type==="click"&&(a=!qe),qe&&!Et&&nt(oe)}}function Me(oe){var Pe=oe.target,qe=X().contains(Pe)||T.contains(Pe);if(!(oe.type==="mousemove"&&qe)){var Et=me().concat(T).map(function(yt){var An,ar=yt._tippy,mi=(An=ar.popperInstance)==null?void 0:An.state;return mi?{popperRect:yt.getBoundingClientRect(),popperState:mi,props:n}:null}).filter(Boolean);lB(Et,oe)&&(ne(),nt(oe))}}function Ue(oe){var Pe=ke(oe)||E.props.trigger.indexOf("click")>=0&&a;if(!Pe){if(E.props.interactive){E.hideWithInteractivity(oe);return}nt(oe)}}function Q(oe){E.props.trigger.indexOf("focusin")<0&&oe.target!==X()||E.props.interactive&&oe.relatedTarget&&T.contains(oe.relatedTarget)||nt(oe)}function ke(oe){return Co.isTouch?$()!==oe.type.indexOf("touch")>=0:!1}function V(){P();var oe=E.props,Pe=oe.popperOptions,qe=oe.placement,Et=oe.offset,yt=oe.getReferenceClientRect,An=oe.moveTransition,ar=j()?C0(T).arrow:null,mi=yt?{getBoundingClientRect:yt,contextElement:yt.contextElement||X()}:t,yc={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ol){var ps=Ol.state;if(j()){var rh=W(),xc=rh.box;["placement","reference-hidden","escaped"].forEach(function(Ml){Ml==="placement"?xc.setAttribute("data-placement",ps.placement):ps.attributes.popper["data-popper-"+Ml]?xc.setAttribute("data-"+Ml,""):xc.removeAttribute("data-"+Ml)}),ps.attributes.popper={}}}},gi=[{name:"offset",options:{offset:Et}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!An}},yc];j()&&ar&&gi.push({name:"arrow",options:{element:ar,padding:3}}),gi.push.apply(gi,(Pe==null?void 0:Pe.modifiers)||[]),E.popperInstance=YM(mi,T,Object.assign({},Pe,{placement:qe,onFirstUpdate:m,modifiers:gi}))}function P(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function ie(){var oe=E.props.appendTo,Pe,qe=X();E.props.interactive&&oe===Vw||oe==="parent"?Pe=qe.parentNode:Pe=Fw(oe,[qe]),Pe.contains(T)||Pe.appendChild(T),E.state.isMounted=!0,V(),process.env.NODE_ENV!=="production"&&Qo(E.props.interactive&&oe===mr.appendTo&&qe.nextElementSibling!==T,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
99
99
 
100
100
  `,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
101
101
 
@@ -113,9 +113,9 @@ img.ProseMirror-separator {
113
113
  * Released under MIT license <https://lodash.com/license>
114
114
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
115
115
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
116
- */Pd.exports,function(t,e){(function(){var n,r="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,f="__lodash_placeholder__",p=1,m=2,g=4,b=1,y=2,w=1,x=2,S=4,C=8,E=16,_=32,T=64,A=128,L=256,D=512,M=30,$="...",j=800,X=16,se=1,W=2,z=3,R=1/0,q=9007199254740991,Z=17976931348623157e292,te=NaN,ne=4294967295,ye=ne-1,Ce=ne>>>1,He=[["ary",A],["bind",w],["bindKey",x],["curry",C],["curryRight",E],["flip",D],["partial",_],["partialRight",T],["rearg",L]],Se="[object Arguments]",je="[object Array]",H="[object AsyncFunction]",Y="[object Boolean]",ae="[object Date]",ue="[object DOMException]",he="[object Error]",J="[object Function]",ve="[object GeneratorFunction]",Me="[object Map]",Ue="[object Number]",N="[object Null]",ke="[object Object]",V="[object Promise]",P="[object Proxy]",ie="[object RegExp]",me="[object Set]",Le="[object String]",nt="[object Symbol]",We="[object Undefined]",ee="[object WeakMap]",ge="[object WeakSet]",ce="[object ArrayBuffer]",we="[object DataView]",Ve="[object Float32Array]",Qe="[object Float64Array]",Ot="[object Int8Array]",Nt="[object Int16Array]",hi="[object Int32Array]",oe="[object Uint8Array]",Pe="[object Uint8ClampedArray]",qe="[object Uint16Array]",Et="[object Uint32Array]",yt=/\b__p \+= '';/g,An=/\b(__p \+=) '' \+/g,ar=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mi=/&(?:amp|lt|gt|quot|#39);/g,yc=/[&<>"']/g,gi=RegExp(mi.source),wc=RegExp(yc.source),Ol=/<%-([\s\S]+?)%>/g,ps=/<%([\s\S]+?)%>/g,rh=/<%=([\s\S]+?)%>/g,xc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ml=/^\w*$/,FQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zb=/[\\^$.*+?()[\]{}|]/g,$Q=RegExp(Zb.source),Qb=/^\s+/,zQ=/\s/,HQ=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,UQ=/\{\n\/\* \[wrapped with (.+)\] \*/,WQ=/,? & /,jQ=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qQ=/[()=,{}\[\]\/\s]/,KQ=/\\(\\)?/g,GQ=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tk=/\w*$/,XQ=/^[-+]0x[0-9a-f]+$/i,YQ=/^0b[01]+$/i,JQ=/^\[object .+?Constructor\]$/,ZQ=/^0o[0-7]+$/i,QQ=/^(?:0|[1-9]\d*)$/,NQ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,oh=/($^)/,eN=/['\n\r\u2028\u2029\\]/g,ih="\\ud800-\\udfff",tN="\\u0300-\\u036f",nN="\\ufe20-\\ufe2f",rN="\\u20d0-\\u20ff",nk=tN+nN+rN,rk="\\u2700-\\u27bf",ok="a-z\\xdf-\\xf6\\xf8-\\xff",oN="\\xac\\xb1\\xd7\\xf7",iN="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sN="\\u2000-\\u206f",aN=" \\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",ik="A-Z\\xc0-\\xd6\\xd8-\\xde",sk="\\ufe0e\\ufe0f",ak=oN+iN+sN+aN,Nb="['’]",lN="["+ih+"]",lk="["+ak+"]",sh="["+nk+"]",uk="\\d+",uN="["+rk+"]",ck="["+ok+"]",dk="[^"+ih+ak+uk+rk+ok+ik+"]",ev="\\ud83c[\\udffb-\\udfff]",cN="(?:"+sh+"|"+ev+")",fk="[^"+ih+"]",tv="(?:\\ud83c[\\udde6-\\uddff]){2}",nv="[\\ud800-\\udbff][\\udc00-\\udfff]",Bl="["+ik+"]",pk="\\u200d",hk="(?:"+ck+"|"+dk+")",dN="(?:"+Bl+"|"+dk+")",mk="(?:"+Nb+"(?:d|ll|m|re|s|t|ve))?",gk="(?:"+Nb+"(?:D|LL|M|RE|S|T|VE))?",bk=cN+"?",vk="["+sk+"]?",fN="(?:"+pk+"(?:"+[fk,tv,nv].join("|")+")"+vk+bk+")*",pN="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hN="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yk=vk+bk+fN,mN="(?:"+[uN,tv,nv].join("|")+")"+yk,gN="(?:"+[fk+sh+"?",sh,tv,nv,lN].join("|")+")",bN=RegExp(Nb,"g"),vN=RegExp(sh,"g"),rv=RegExp(ev+"(?="+ev+")|"+gN+yk,"g"),yN=RegExp([Bl+"?"+ck+"+"+mk+"(?="+[lk,Bl,"$"].join("|")+")",dN+"+"+gk+"(?="+[lk,Bl+hk,"$"].join("|")+")",Bl+"?"+hk+"+"+mk,Bl+"+"+gk,hN,pN,uk,mN].join("|"),"g"),wN=RegExp("["+pk+ih+nk+sk+"]"),xN=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,CN=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],EN=-1,Kt={};Kt[Ve]=Kt[Qe]=Kt[Ot]=Kt[Nt]=Kt[hi]=Kt[oe]=Kt[Pe]=Kt[qe]=Kt[Et]=!0,Kt[Se]=Kt[je]=Kt[ce]=Kt[Y]=Kt[we]=Kt[ae]=Kt[he]=Kt[J]=Kt[Me]=Kt[Ue]=Kt[ke]=Kt[ie]=Kt[me]=Kt[Le]=Kt[ee]=!1;var Ht={};Ht[Se]=Ht[je]=Ht[ce]=Ht[we]=Ht[Y]=Ht[ae]=Ht[Ve]=Ht[Qe]=Ht[Ot]=Ht[Nt]=Ht[hi]=Ht[Me]=Ht[Ue]=Ht[ke]=Ht[ie]=Ht[me]=Ht[Le]=Ht[nt]=Ht[oe]=Ht[Pe]=Ht[qe]=Ht[Et]=!0,Ht[he]=Ht[J]=Ht[ee]=!1;var SN={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},kN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_N={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},TN={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},AN=parseFloat,ON=parseInt,wk=typeof Xa=="object"&&Xa&&Xa.Object===Object&&Xa,MN=typeof self=="object"&&self&&self.Object===Object&&self,On=wk||MN||Function("return this")(),ov=e&&!e.nodeType&&e,ma=ov&&!0&&t&&!t.nodeType&&t,xk=ma&&ma.exports===ov,iv=xk&&wk.process,Ur=function(){try{var K=ma&&ma.require&&ma.require("util").types;return K||iv&&iv.binding&&iv.binding("util")}catch{}}(),Ck=Ur&&Ur.isArrayBuffer,Ek=Ur&&Ur.isDate,Sk=Ur&&Ur.isMap,kk=Ur&&Ur.isRegExp,_k=Ur&&Ur.isSet,Tk=Ur&&Ur.isTypedArray;function xr(K,le,Q){switch(Q.length){case 0:return K.call(le);case 1:return K.call(le,Q[0]);case 2:return K.call(le,Q[0],Q[1]);case 3:return K.call(le,Q[0],Q[1],Q[2])}return K.apply(le,Q)}function BN(K,le,Q,Be){for(var et=-1,kt=K==null?0:K.length;++et<kt;){var mn=K[et];le(Be,mn,Q(mn),K)}return Be}function Wr(K,le){for(var Q=-1,Be=K==null?0:K.length;++Q<Be&&le(K[Q],Q,K)!==!1;);return K}function IN(K,le){for(var Q=K==null?0:K.length;Q--&&le(K[Q],Q,K)!==!1;);return K}function Ak(K,le){for(var Q=-1,Be=K==null?0:K.length;++Q<Be;)if(!le(K[Q],Q,K))return!1;return!0}function hs(K,le){for(var Q=-1,Be=K==null?0:K.length,et=0,kt=[];++Q<Be;){var mn=K[Q];le(mn,Q,K)&&(kt[et++]=mn)}return kt}function ah(K,le){var Q=K==null?0:K.length;return!!Q&&Il(K,le,0)>-1}function sv(K,le,Q){for(var Be=-1,et=K==null?0:K.length;++Be<et;)if(Q(le,K[Be]))return!0;return!1}function Yt(K,le){for(var Q=-1,Be=K==null?0:K.length,et=Array(Be);++Q<Be;)et[Q]=le(K[Q],Q,K);return et}function ms(K,le){for(var Q=-1,Be=le.length,et=K.length;++Q<Be;)K[et+Q]=le[Q];return K}function av(K,le,Q,Be){var et=-1,kt=K==null?0:K.length;for(Be&&kt&&(Q=K[++et]);++et<kt;)Q=le(Q,K[et],et,K);return Q}function RN(K,le,Q,Be){var et=K==null?0:K.length;for(Be&&et&&(Q=K[--et]);et--;)Q=le(Q,K[et],et,K);return Q}function lv(K,le){for(var Q=-1,Be=K==null?0:K.length;++Q<Be;)if(le(K[Q],Q,K))return!0;return!1}var LN=uv("length");function PN(K){return K.split("")}function DN(K){return K.match(jQ)||[]}function Ok(K,le,Q){var Be;return Q(K,function(et,kt,mn){if(le(et,kt,mn))return Be=kt,!1}),Be}function lh(K,le,Q,Be){for(var et=K.length,kt=Q+(Be?1:-1);Be?kt--:++kt<et;)if(le(K[kt],kt,K))return kt;return-1}function Il(K,le,Q){return le===le?XN(K,le,Q):lh(K,Mk,Q)}function VN(K,le,Q,Be){for(var et=Q-1,kt=K.length;++et<kt;)if(Be(K[et],le))return et;return-1}function Mk(K){return K!==K}function Bk(K,le){var Q=K==null?0:K.length;return Q?dv(K,le)/Q:te}function uv(K){return function(le){return le==null?n:le[K]}}function cv(K){return function(le){return K==null?n:K[le]}}function Ik(K,le,Q,Be,et){return et(K,function(kt,mn,$t){Q=Be?(Be=!1,kt):le(Q,kt,mn,$t)}),Q}function FN(K,le){var Q=K.length;for(K.sort(le);Q--;)K[Q]=K[Q].value;return K}function dv(K,le){for(var Q,Be=-1,et=K.length;++Be<et;){var kt=le(K[Be]);kt!==n&&(Q=Q===n?kt:Q+kt)}return Q}function fv(K,le){for(var Q=-1,Be=Array(K);++Q<K;)Be[Q]=le(Q);return Be}function $N(K,le){return Yt(le,function(Q){return[Q,K[Q]]})}function Rk(K){return K&&K.slice(0,Vk(K)+1).replace(Qb,"")}function Cr(K){return function(le){return K(le)}}function pv(K,le){return Yt(le,function(Q){return K[Q]})}function Cc(K,le){return K.has(le)}function Lk(K,le){for(var Q=-1,Be=K.length;++Q<Be&&Il(le,K[Q],0)>-1;);return Q}function Pk(K,le){for(var Q=K.length;Q--&&Il(le,K[Q],0)>-1;);return Q}function zN(K,le){for(var Q=K.length,Be=0;Q--;)K[Q]===le&&++Be;return Be}var HN=cv(SN),UN=cv(kN);function WN(K){return"\\"+TN[K]}function jN(K,le){return K==null?n:K[le]}function Rl(K){return wN.test(K)}function qN(K){return xN.test(K)}function KN(K){for(var le,Q=[];!(le=K.next()).done;)Q.push(le.value);return Q}function hv(K){var le=-1,Q=Array(K.size);return K.forEach(function(Be,et){Q[++le]=[et,Be]}),Q}function Dk(K,le){return function(Q){return K(le(Q))}}function gs(K,le){for(var Q=-1,Be=K.length,et=0,kt=[];++Q<Be;){var mn=K[Q];(mn===le||mn===f)&&(K[Q]=f,kt[et++]=Q)}return kt}function uh(K){var le=-1,Q=Array(K.size);return K.forEach(function(Be){Q[++le]=Be}),Q}function GN(K){var le=-1,Q=Array(K.size);return K.forEach(function(Be){Q[++le]=[Be,Be]}),Q}function XN(K,le,Q){for(var Be=Q-1,et=K.length;++Be<et;)if(K[Be]===le)return Be;return-1}function YN(K,le,Q){for(var Be=Q+1;Be--;)if(K[Be]===le)return Be;return Be}function Ll(K){return Rl(K)?ZN(K):LN(K)}function po(K){return Rl(K)?QN(K):PN(K)}function Vk(K){for(var le=K.length;le--&&zQ.test(K.charAt(le)););return le}var JN=cv(_N);function ZN(K){for(var le=rv.lastIndex=0;rv.test(K);)++le;return le}function QN(K){return K.match(rv)||[]}function NN(K){return K.match(yN)||[]}var eee=function K(le){le=le==null?On:Pl.defaults(On.Object(),le,Pl.pick(On,CN));var Q=le.Array,Be=le.Date,et=le.Error,kt=le.Function,mn=le.Math,$t=le.Object,mv=le.RegExp,tee=le.String,jr=le.TypeError,ch=Q.prototype,nee=kt.prototype,Dl=$t.prototype,dh=le["__core-js_shared__"],fh=nee.toString,Mt=Dl.hasOwnProperty,ree=0,Fk=function(){var d=/[^.]+$/.exec(dh&&dh.keys&&dh.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),ph=Dl.toString,oee=fh.call($t),iee=On._,see=mv("^"+fh.call(Mt).replace(Zb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hh=xk?le.Buffer:n,bs=le.Symbol,mh=le.Uint8Array,$k=hh?hh.allocUnsafe:n,gh=Dk($t.getPrototypeOf,$t),zk=$t.create,Hk=Dl.propertyIsEnumerable,bh=ch.splice,Uk=bs?bs.isConcatSpreadable:n,Ec=bs?bs.iterator:n,ga=bs?bs.toStringTag:n,vh=function(){try{var d=xa($t,"defineProperty");return d({},"",{}),d}catch{}}(),aee=le.clearTimeout!==On.clearTimeout&&le.clearTimeout,lee=Be&&Be.now!==On.Date.now&&Be.now,uee=le.setTimeout!==On.setTimeout&&le.setTimeout,yh=mn.ceil,wh=mn.floor,gv=$t.getOwnPropertySymbols,cee=hh?hh.isBuffer:n,Wk=le.isFinite,dee=ch.join,fee=Dk($t.keys,$t),gn=mn.max,Hn=mn.min,pee=Be.now,hee=le.parseInt,jk=mn.random,mee=ch.reverse,bv=xa(le,"DataView"),Sc=xa(le,"Map"),vv=xa(le,"Promise"),Vl=xa(le,"Set"),kc=xa(le,"WeakMap"),_c=xa($t,"create"),xh=kc&&new kc,Fl={},gee=Ca(bv),bee=Ca(Sc),vee=Ca(vv),yee=Ca(Vl),wee=Ca(kc),Ch=bs?bs.prototype:n,Tc=Ch?Ch.valueOf:n,qk=Ch?Ch.toString:n;function B(d){if(sn(d)&&!rt(d)&&!(d instanceof vt)){if(d instanceof qr)return d;if(Mt.call(d,"__wrapped__"))return K5(d)}return new qr(d)}var $l=function(){function d(){}return function(h){if(!en(h))return{};if(zk)return zk(h);d.prototype=h;var v=new d;return d.prototype=n,v}}();function Eh(){}function qr(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=n}B.templateSettings={escape:Ol,evaluate:ps,interpolate:rh,variable:"",imports:{_:B}},B.prototype=Eh.prototype,B.prototype.constructor=B,qr.prototype=$l(Eh.prototype),qr.prototype.constructor=qr;function vt(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ne,this.__views__=[]}function xee(){var d=new vt(this.__wrapped__);return d.__actions__=lr(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=lr(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=lr(this.__views__),d}function Cee(){if(this.__filtered__){var d=new vt(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function Eee(){var d=this.__wrapped__.value(),h=this.__dir__,v=rt(d),k=h<0,O=v?d.length:0,I=Pte(0,O,this.__views__),F=I.start,U=I.end,G=U-F,fe=k?U:F-1,pe=this.__iteratees__,be=pe.length,Te=0,$e=Hn(G,this.__takeCount__);if(!v||!k&&O==G&&$e==G)return m5(d,this.__actions__);var Xe=[];e:for(;G--&&Te<$e;){fe+=h;for(var pt=-1,Ye=d[fe];++pt<be;){var gt=pe[pt],wt=gt.iteratee,kr=gt.type,Qn=wt(Ye);if(kr==W)Ye=Qn;else if(!Qn){if(kr==se)continue e;break e}}Xe[Te++]=Ye}return Xe}vt.prototype=$l(Eh.prototype),vt.prototype.constructor=vt;function ba(d){var h=-1,v=d==null?0:d.length;for(this.clear();++h<v;){var k=d[h];this.set(k[0],k[1])}}function See(){this.__data__=_c?_c(null):{},this.size=0}function kee(d){var h=this.has(d)&&delete this.__data__[d];return this.size-=h?1:0,h}function _ee(d){var h=this.__data__;if(_c){var v=h[d];return v===u?n:v}return Mt.call(h,d)?h[d]:n}function Tee(d){var h=this.__data__;return _c?h[d]!==n:Mt.call(h,d)}function Aee(d,h){var v=this.__data__;return this.size+=this.has(d)?0:1,v[d]=_c&&h===n?u:h,this}ba.prototype.clear=See,ba.prototype.delete=kee,ba.prototype.get=_ee,ba.prototype.has=Tee,ba.prototype.set=Aee;function bi(d){var h=-1,v=d==null?0:d.length;for(this.clear();++h<v;){var k=d[h];this.set(k[0],k[1])}}function Oee(){this.__data__=[],this.size=0}function Mee(d){var h=this.__data__,v=Sh(h,d);if(v<0)return!1;var k=h.length-1;return v==k?h.pop():bh.call(h,v,1),--this.size,!0}function Bee(d){var h=this.__data__,v=Sh(h,d);return v<0?n:h[v][1]}function Iee(d){return Sh(this.__data__,d)>-1}function Ree(d,h){var v=this.__data__,k=Sh(v,d);return k<0?(++this.size,v.push([d,h])):v[k][1]=h,this}bi.prototype.clear=Oee,bi.prototype.delete=Mee,bi.prototype.get=Bee,bi.prototype.has=Iee,bi.prototype.set=Ree;function vi(d){var h=-1,v=d==null?0:d.length;for(this.clear();++h<v;){var k=d[h];this.set(k[0],k[1])}}function Lee(){this.size=0,this.__data__={hash:new ba,map:new(Sc||bi),string:new ba}}function Pee(d){var h=Dh(this,d).delete(d);return this.size-=h?1:0,h}function Dee(d){return Dh(this,d).get(d)}function Vee(d){return Dh(this,d).has(d)}function Fee(d,h){var v=Dh(this,d),k=v.size;return v.set(d,h),this.size+=v.size==k?0:1,this}vi.prototype.clear=Lee,vi.prototype.delete=Pee,vi.prototype.get=Dee,vi.prototype.has=Vee,vi.prototype.set=Fee;function va(d){var h=-1,v=d==null?0:d.length;for(this.__data__=new vi;++h<v;)this.add(d[h])}function $ee(d){return this.__data__.set(d,u),this}function zee(d){return this.__data__.has(d)}va.prototype.add=va.prototype.push=$ee,va.prototype.has=zee;function ho(d){var h=this.__data__=new bi(d);this.size=h.size}function Hee(){this.__data__=new bi,this.size=0}function Uee(d){var h=this.__data__,v=h.delete(d);return this.size=h.size,v}function Wee(d){return this.__data__.get(d)}function jee(d){return this.__data__.has(d)}function qee(d,h){var v=this.__data__;if(v instanceof bi){var k=v.__data__;if(!Sc||k.length<o-1)return k.push([d,h]),this.size=++v.size,this;v=this.__data__=new vi(k)}return v.set(d,h),this.size=v.size,this}ho.prototype.clear=Hee,ho.prototype.delete=Uee,ho.prototype.get=Wee,ho.prototype.has=jee,ho.prototype.set=qee;function Kk(d,h){var v=rt(d),k=!v&&Ea(d),O=!v&&!k&&Cs(d),I=!v&&!k&&!O&&Wl(d),F=v||k||O||I,U=F?fv(d.length,tee):[],G=U.length;for(var fe in d)(h||Mt.call(d,fe))&&!(F&&(fe=="length"||O&&(fe=="offset"||fe=="parent")||I&&(fe=="buffer"||fe=="byteLength"||fe=="byteOffset")||Ci(fe,G)))&&U.push(fe);return U}function Gk(d){var h=d.length;return h?d[Ov(0,h-1)]:n}function Kee(d,h){return Vh(lr(d),ya(h,0,d.length))}function Gee(d){return Vh(lr(d))}function yv(d,h,v){(v!==n&&!mo(d[h],v)||v===n&&!(h in d))&&yi(d,h,v)}function Ac(d,h,v){var k=d[h];(!(Mt.call(d,h)&&mo(k,v))||v===n&&!(h in d))&&yi(d,h,v)}function Sh(d,h){for(var v=d.length;v--;)if(mo(d[v][0],h))return v;return-1}function Xee(d,h,v,k){return vs(d,function(O,I,F){h(k,O,v(O),F)}),k}function Xk(d,h){return d&&Ho(h,Cn(h),d)}function Yee(d,h){return d&&Ho(h,cr(h),d)}function yi(d,h,v){h=="__proto__"&&vh?vh(d,h,{configurable:!0,enumerable:!0,value:v,writable:!0}):d[h]=v}function wv(d,h){for(var v=-1,k=h.length,O=Q(k),I=d==null;++v<k;)O[v]=I?n:e2(d,h[v]);return O}function ya(d,h,v){return d===d&&(v!==n&&(d=d<=v?d:v),h!==n&&(d=d>=h?d:h)),d}function Kr(d,h,v,k,O,I){var F,U=h&p,G=h&m,fe=h&g;if(v&&(F=O?v(d,k,O,I):v(d)),F!==n)return F;if(!en(d))return d;var pe=rt(d);if(pe){if(F=Vte(d),!U)return lr(d,F)}else{var be=Un(d),Te=be==J||be==ve;if(Cs(d))return v5(d,U);if(be==ke||be==Se||Te&&!O){if(F=G||Te?{}:V5(d),!U)return G?_te(d,Yee(F,d)):kte(d,Xk(F,d))}else{if(!Ht[be])return O?d:{};F=Fte(d,be,U)}}I||(I=new ho);var $e=I.get(d);if($e)return $e;I.set(d,F),f_(d)?d.forEach(function(Ye){F.add(Kr(Ye,h,v,Ye,d,I))}):c_(d)&&d.forEach(function(Ye,gt){F.set(gt,Kr(Ye,h,v,gt,d,I))});var Xe=fe?G?zv:$v:G?cr:Cn,pt=pe?n:Xe(d);return Wr(pt||d,function(Ye,gt){pt&&(gt=Ye,Ye=d[gt]),Ac(F,gt,Kr(Ye,h,v,gt,d,I))}),F}function Jee(d){var h=Cn(d);return function(v){return Yk(v,d,h)}}function Yk(d,h,v){var k=v.length;if(d==null)return!k;for(d=$t(d);k--;){var O=v[k],I=h[O],F=d[O];if(F===n&&!(O in d)||!I(F))return!1}return!0}function Jk(d,h,v){if(typeof d!="function")throw new jr(a);return Pc(function(){d.apply(n,v)},h)}function Oc(d,h,v,k){var O=-1,I=ah,F=!0,U=d.length,G=[],fe=h.length;if(!U)return G;v&&(h=Yt(h,Cr(v))),k?(I=sv,F=!1):h.length>=o&&(I=Cc,F=!1,h=new va(h));e:for(;++O<U;){var pe=d[O],be=v==null?pe:v(pe);if(pe=k||pe!==0?pe:0,F&&be===be){for(var Te=fe;Te--;)if(h[Te]===be)continue e;G.push(pe)}else I(h,be,k)||G.push(pe)}return G}var vs=E5(zo),Zk=E5(Cv,!0);function Zee(d,h){var v=!0;return vs(d,function(k,O,I){return v=!!h(k,O,I),v}),v}function kh(d,h,v){for(var k=-1,O=d.length;++k<O;){var I=d[k],F=h(I);if(F!=null&&(U===n?F===F&&!Sr(F):v(F,U)))var U=F,G=I}return G}function Qee(d,h,v,k){var O=d.length;for(v=ut(v),v<0&&(v=-v>O?0:O+v),k=k===n||k>O?O:ut(k),k<0&&(k+=O),k=v>k?0:h_(k);v<k;)d[v++]=h;return d}function Qk(d,h){var v=[];return vs(d,function(k,O,I){h(k,O,I)&&v.push(k)}),v}function Mn(d,h,v,k,O){var I=-1,F=d.length;for(v||(v=zte),O||(O=[]);++I<F;){var U=d[I];h>0&&v(U)?h>1?Mn(U,h-1,v,k,O):ms(O,U):k||(O[O.length]=U)}return O}var xv=S5(),Nk=S5(!0);function zo(d,h){return d&&xv(d,h,Cn)}function Cv(d,h){return d&&Nk(d,h,Cn)}function _h(d,h){return hs(h,function(v){return Ei(d[v])})}function wa(d,h){h=ws(h,d);for(var v=0,k=h.length;d!=null&&v<k;)d=d[Uo(h[v++])];return v&&v==k?d:n}function e5(d,h,v){var k=h(d);return rt(d)?k:ms(k,v(d))}function Jn(d){return d==null?d===n?We:N:ga&&ga in $t(d)?Lte(d):Gte(d)}function Ev(d,h){return d>h}function Nee(d,h){return d!=null&&Mt.call(d,h)}function ete(d,h){return d!=null&&h in $t(d)}function tte(d,h,v){return d>=Hn(h,v)&&d<gn(h,v)}function Sv(d,h,v){for(var k=v?sv:ah,O=d[0].length,I=d.length,F=I,U=Q(I),G=1/0,fe=[];F--;){var pe=d[F];F&&h&&(pe=Yt(pe,Cr(h))),G=Hn(pe.length,G),U[F]=!v&&(h||O>=120&&pe.length>=120)?new va(F&&pe):n}pe=d[0];var be=-1,Te=U[0];e:for(;++be<O&&fe.length<G;){var $e=pe[be],Xe=h?h($e):$e;if($e=v||$e!==0?$e:0,!(Te?Cc(Te,Xe):k(fe,Xe,v))){for(F=I;--F;){var pt=U[F];if(!(pt?Cc(pt,Xe):k(d[F],Xe,v)))continue e}Te&&Te.push(Xe),fe.push($e)}}return fe}function nte(d,h,v,k){return zo(d,function(O,I,F){h(k,v(O),I,F)}),k}function Mc(d,h,v){h=ws(h,d),d=H5(d,h);var k=d==null?d:d[Uo(Xr(h))];return k==null?n:xr(k,d,v)}function t5(d){return sn(d)&&Jn(d)==Se}function rte(d){return sn(d)&&Jn(d)==ce}function ote(d){return sn(d)&&Jn(d)==ae}function Bc(d,h,v,k,O){return d===h?!0:d==null||h==null||!sn(d)&&!sn(h)?d!==d&&h!==h:ite(d,h,v,k,Bc,O)}function ite(d,h,v,k,O,I){var F=rt(d),U=rt(h),G=F?je:Un(d),fe=U?je:Un(h);G=G==Se?ke:G,fe=fe==Se?ke:fe;var pe=G==ke,be=fe==ke,Te=G==fe;if(Te&&Cs(d)){if(!Cs(h))return!1;F=!0,pe=!1}if(Te&&!pe)return I||(I=new ho),F||Wl(d)?L5(d,h,v,k,O,I):Ite(d,h,G,v,k,O,I);if(!(v&b)){var $e=pe&&Mt.call(d,"__wrapped__"),Xe=be&&Mt.call(h,"__wrapped__");if($e||Xe){var pt=$e?d.value():d,Ye=Xe?h.value():h;return I||(I=new ho),O(pt,Ye,v,k,I)}}return Te?(I||(I=new ho),Rte(d,h,v,k,O,I)):!1}function ste(d){return sn(d)&&Un(d)==Me}function kv(d,h,v,k){var O=v.length,I=O,F=!k;if(d==null)return!I;for(d=$t(d);O--;){var U=v[O];if(F&&U[2]?U[1]!==d[U[0]]:!(U[0]in d))return!1}for(;++O<I;){U=v[O];var G=U[0],fe=d[G],pe=U[1];if(F&&U[2]){if(fe===n&&!(G in d))return!1}else{var be=new ho;if(k)var Te=k(fe,pe,G,d,h,be);if(!(Te===n?Bc(pe,fe,b|y,k,be):Te))return!1}}return!0}function n5(d){if(!en(d)||Ute(d))return!1;var h=Ei(d)?see:JQ;return h.test(Ca(d))}function ate(d){return sn(d)&&Jn(d)==ie}function lte(d){return sn(d)&&Un(d)==me}function ute(d){return sn(d)&&Wh(d.length)&&!!Kt[Jn(d)]}function r5(d){return typeof d=="function"?d:d==null?dr:typeof d=="object"?rt(d)?s5(d[0],d[1]):i5(d):k_(d)}function _v(d){if(!Lc(d))return fee(d);var h=[];for(var v in $t(d))Mt.call(d,v)&&v!="constructor"&&h.push(v);return h}function cte(d){if(!en(d))return Kte(d);var h=Lc(d),v=[];for(var k in d)k=="constructor"&&(h||!Mt.call(d,k))||v.push(k);return v}function Tv(d,h){return d<h}function o5(d,h){var v=-1,k=ur(d)?Q(d.length):[];return vs(d,function(O,I,F){k[++v]=h(O,I,F)}),k}function i5(d){var h=Uv(d);return h.length==1&&h[0][2]?$5(h[0][0],h[0][1]):function(v){return v===d||kv(v,d,h)}}function s5(d,h){return jv(d)&&F5(h)?$5(Uo(d),h):function(v){var k=e2(v,d);return k===n&&k===h?t2(v,d):Bc(h,k,b|y)}}function Th(d,h,v,k,O){d!==h&&xv(h,function(I,F){if(O||(O=new ho),en(I))dte(d,h,F,v,Th,k,O);else{var U=k?k(Kv(d,F),I,F+"",d,h,O):n;U===n&&(U=I),yv(d,F,U)}},cr)}function dte(d,h,v,k,O,I,F){var U=Kv(d,v),G=Kv(h,v),fe=F.get(G);if(fe){yv(d,v,fe);return}var pe=I?I(U,G,v+"",d,h,F):n,be=pe===n;if(be){var Te=rt(G),$e=!Te&&Cs(G),Xe=!Te&&!$e&&Wl(G);pe=G,Te||$e||Xe?rt(U)?pe=U:un(U)?pe=lr(U):$e?(be=!1,pe=v5(G,!0)):Xe?(be=!1,pe=y5(G,!0)):pe=[]:Dc(G)||Ea(G)?(pe=U,Ea(U)?pe=m_(U):(!en(U)||Ei(U))&&(pe=V5(G))):be=!1}be&&(F.set(G,pe),O(pe,G,k,I,F),F.delete(G)),yv(d,v,pe)}function a5(d,h){var v=d.length;if(v)return h+=h<0?v:0,Ci(h,v)?d[h]:n}function l5(d,h,v){h.length?h=Yt(h,function(I){return rt(I)?function(F){return wa(F,I.length===1?I[0]:I)}:I}):h=[dr];var k=-1;h=Yt(h,Cr(Ke()));var O=o5(d,function(I,F,U){var G=Yt(h,function(fe){return fe(I)});return{criteria:G,index:++k,value:I}});return FN(O,function(I,F){return Ste(I,F,v)})}function fte(d,h){return u5(d,h,function(v,k){return t2(d,k)})}function u5(d,h,v){for(var k=-1,O=h.length,I={};++k<O;){var F=h[k],U=wa(d,F);v(U,F)&&Ic(I,ws(F,d),U)}return I}function pte(d){return function(h){return wa(h,d)}}function Av(d,h,v,k){var O=k?VN:Il,I=-1,F=h.length,U=d;for(d===h&&(h=lr(h)),v&&(U=Yt(d,Cr(v)));++I<F;)for(var G=0,fe=h[I],pe=v?v(fe):fe;(G=O(U,pe,G,k))>-1;)U!==d&&bh.call(U,G,1),bh.call(d,G,1);return d}function c5(d,h){for(var v=d?h.length:0,k=v-1;v--;){var O=h[v];if(v==k||O!==I){var I=O;Ci(O)?bh.call(d,O,1):Iv(d,O)}}return d}function Ov(d,h){return d+wh(jk()*(h-d+1))}function hte(d,h,v,k){for(var O=-1,I=gn(yh((h-d)/(v||1)),0),F=Q(I);I--;)F[k?I:++O]=d,d+=v;return F}function Mv(d,h){var v="";if(!d||h<1||h>q)return v;do h%2&&(v+=d),h=wh(h/2),h&&(d+=d);while(h);return v}function ht(d,h){return Gv(z5(d,h,dr),d+"")}function mte(d){return Gk(jl(d))}function gte(d,h){var v=jl(d);return Vh(v,ya(h,0,v.length))}function Ic(d,h,v,k){if(!en(d))return d;h=ws(h,d);for(var O=-1,I=h.length,F=I-1,U=d;U!=null&&++O<I;){var G=Uo(h[O]),fe=v;if(G==="__proto__"||G==="constructor"||G==="prototype")return d;if(O!=F){var pe=U[G];fe=k?k(pe,G,U):n,fe===n&&(fe=en(pe)?pe:Ci(h[O+1])?[]:{})}Ac(U,G,fe),U=U[G]}return d}var d5=xh?function(d,h){return xh.set(d,h),d}:dr,bte=vh?function(d,h){return vh(d,"toString",{configurable:!0,enumerable:!1,value:r2(h),writable:!0})}:dr;function vte(d){return Vh(jl(d))}function Gr(d,h,v){var k=-1,O=d.length;h<0&&(h=-h>O?0:O+h),v=v>O?O:v,v<0&&(v+=O),O=h>v?0:v-h>>>0,h>>>=0;for(var I=Q(O);++k<O;)I[k]=d[k+h];return I}function yte(d,h){var v;return vs(d,function(k,O,I){return v=h(k,O,I),!v}),!!v}function Ah(d,h,v){var k=0,O=d==null?k:d.length;if(typeof h=="number"&&h===h&&O<=Ce){for(;k<O;){var I=k+O>>>1,F=d[I];F!==null&&!Sr(F)&&(v?F<=h:F<h)?k=I+1:O=I}return O}return Bv(d,h,dr,v)}function Bv(d,h,v,k){var O=0,I=d==null?0:d.length;if(I===0)return 0;h=v(h);for(var F=h!==h,U=h===null,G=Sr(h),fe=h===n;O<I;){var pe=wh((O+I)/2),be=v(d[pe]),Te=be!==n,$e=be===null,Xe=be===be,pt=Sr(be);if(F)var Ye=k||Xe;else fe?Ye=Xe&&(k||Te):U?Ye=Xe&&Te&&(k||!$e):G?Ye=Xe&&Te&&!$e&&(k||!pt):$e||pt?Ye=!1:Ye=k?be<=h:be<h;Ye?O=pe+1:I=pe}return Hn(I,ye)}function f5(d,h){for(var v=-1,k=d.length,O=0,I=[];++v<k;){var F=d[v],U=h?h(F):F;if(!v||!mo(U,G)){var G=U;I[O++]=F===0?0:F}}return I}function p5(d){return typeof d=="number"?d:Sr(d)?te:+d}function Er(d){if(typeof d=="string")return d;if(rt(d))return Yt(d,Er)+"";if(Sr(d))return qk?qk.call(d):"";var h=d+"";return h=="0"&&1/d==-1/0?"-0":h}function ys(d,h,v){var k=-1,O=ah,I=d.length,F=!0,U=[],G=U;if(v)F=!1,O=sv;else if(I>=o){var fe=h?null:Mte(d);if(fe)return uh(fe);F=!1,O=Cc,G=new va}else G=h?[]:U;e:for(;++k<I;){var pe=d[k],be=h?h(pe):pe;if(pe=v||pe!==0?pe:0,F&&be===be){for(var Te=G.length;Te--;)if(G[Te]===be)continue e;h&&G.push(be),U.push(pe)}else O(G,be,v)||(G!==U&&G.push(be),U.push(pe))}return U}function Iv(d,h){return h=ws(h,d),d=H5(d,h),d==null||delete d[Uo(Xr(h))]}function h5(d,h,v,k){return Ic(d,h,v(wa(d,h)),k)}function Oh(d,h,v,k){for(var O=d.length,I=k?O:-1;(k?I--:++I<O)&&h(d[I],I,d););return v?Gr(d,k?0:I,k?I+1:O):Gr(d,k?I+1:0,k?O:I)}function m5(d,h){var v=d;return v instanceof vt&&(v=v.value()),av(h,function(k,O){return O.func.apply(O.thisArg,ms([k],O.args))},v)}function Rv(d,h,v){var k=d.length;if(k<2)return k?ys(d[0]):[];for(var O=-1,I=Q(k);++O<k;)for(var F=d[O],U=-1;++U<k;)U!=O&&(I[O]=Oc(I[O]||F,d[U],h,v));return ys(Mn(I,1),h,v)}function g5(d,h,v){for(var k=-1,O=d.length,I=h.length,F={};++k<O;){var U=k<I?h[k]:n;v(F,d[k],U)}return F}function Lv(d){return un(d)?d:[]}function Pv(d){return typeof d=="function"?d:dr}function ws(d,h){return rt(d)?d:jv(d,h)?[d]:q5(_t(d))}var wte=ht;function xs(d,h,v){var k=d.length;return v=v===n?k:v,!h&&v>=k?d:Gr(d,h,v)}var b5=aee||function(d){return On.clearTimeout(d)};function v5(d,h){if(h)return d.slice();var v=d.length,k=$k?$k(v):new d.constructor(v);return d.copy(k),k}function Dv(d){var h=new d.constructor(d.byteLength);return new mh(h).set(new mh(d)),h}function xte(d,h){var v=h?Dv(d.buffer):d.buffer;return new d.constructor(v,d.byteOffset,d.byteLength)}function Cte(d){var h=new d.constructor(d.source,tk.exec(d));return h.lastIndex=d.lastIndex,h}function Ete(d){return Tc?$t(Tc.call(d)):{}}function y5(d,h){var v=h?Dv(d.buffer):d.buffer;return new d.constructor(v,d.byteOffset,d.length)}function w5(d,h){if(d!==h){var v=d!==n,k=d===null,O=d===d,I=Sr(d),F=h!==n,U=h===null,G=h===h,fe=Sr(h);if(!U&&!fe&&!I&&d>h||I&&F&&G&&!U&&!fe||k&&F&&G||!v&&G||!O)return 1;if(!k&&!I&&!fe&&d<h||fe&&v&&O&&!k&&!I||U&&v&&O||!F&&O||!G)return-1}return 0}function Ste(d,h,v){for(var k=-1,O=d.criteria,I=h.criteria,F=O.length,U=v.length;++k<F;){var G=w5(O[k],I[k]);if(G){if(k>=U)return G;var fe=v[k];return G*(fe=="desc"?-1:1)}}return d.index-h.index}function x5(d,h,v,k){for(var O=-1,I=d.length,F=v.length,U=-1,G=h.length,fe=gn(I-F,0),pe=Q(G+fe),be=!k;++U<G;)pe[U]=h[U];for(;++O<F;)(be||O<I)&&(pe[v[O]]=d[O]);for(;fe--;)pe[U++]=d[O++];return pe}function C5(d,h,v,k){for(var O=-1,I=d.length,F=-1,U=v.length,G=-1,fe=h.length,pe=gn(I-U,0),be=Q(pe+fe),Te=!k;++O<pe;)be[O]=d[O];for(var $e=O;++G<fe;)be[$e+G]=h[G];for(;++F<U;)(Te||O<I)&&(be[$e+v[F]]=d[O++]);return be}function lr(d,h){var v=-1,k=d.length;for(h||(h=Q(k));++v<k;)h[v]=d[v];return h}function Ho(d,h,v,k){var O=!v;v||(v={});for(var I=-1,F=h.length;++I<F;){var U=h[I],G=k?k(v[U],d[U],U,v,d):n;G===n&&(G=d[U]),O?yi(v,U,G):Ac(v,U,G)}return v}function kte(d,h){return Ho(d,Wv(d),h)}function _te(d,h){return Ho(d,P5(d),h)}function Mh(d,h){return function(v,k){var O=rt(v)?BN:Xee,I=h?h():{};return O(v,d,Ke(k,2),I)}}function zl(d){return ht(function(h,v){var k=-1,O=v.length,I=O>1?v[O-1]:n,F=O>2?v[2]:n;for(I=d.length>3&&typeof I=="function"?(O--,I):n,F&&Zn(v[0],v[1],F)&&(I=O<3?n:I,O=1),h=$t(h);++k<O;){var U=v[k];U&&d(h,U,k,I)}return h})}function E5(d,h){return function(v,k){if(v==null)return v;if(!ur(v))return d(v,k);for(var O=v.length,I=h?O:-1,F=$t(v);(h?I--:++I<O)&&k(F[I],I,F)!==!1;);return v}}function S5(d){return function(h,v,k){for(var O=-1,I=$t(h),F=k(h),U=F.length;U--;){var G=F[d?U:++O];if(v(I[G],G,I)===!1)break}return h}}function Tte(d,h,v){var k=h&w,O=Rc(d);function I(){var F=this&&this!==On&&this instanceof I?O:d;return F.apply(k?v:this,arguments)}return I}function k5(d){return function(h){h=_t(h);var v=Rl(h)?po(h):n,k=v?v[0]:h.charAt(0),O=v?xs(v,1).join(""):h.slice(1);return k[d]()+O}}function Hl(d){return function(h){return av(E_(C_(h).replace(bN,"")),d,"")}}function Rc(d){return function(){var h=arguments;switch(h.length){case 0:return new d;case 1:return new d(h[0]);case 2:return new d(h[0],h[1]);case 3:return new d(h[0],h[1],h[2]);case 4:return new d(h[0],h[1],h[2],h[3]);case 5:return new d(h[0],h[1],h[2],h[3],h[4]);case 6:return new d(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new d(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var v=$l(d.prototype),k=d.apply(v,h);return en(k)?k:v}}function Ate(d,h,v){var k=Rc(d);function O(){for(var I=arguments.length,F=Q(I),U=I,G=Ul(O);U--;)F[U]=arguments[U];var fe=I<3&&F[0]!==G&&F[I-1]!==G?[]:gs(F,G);if(I-=fe.length,I<v)return M5(d,h,Bh,O.placeholder,n,F,fe,n,n,v-I);var pe=this&&this!==On&&this instanceof O?k:d;return xr(pe,this,F)}return O}function _5(d){return function(h,v,k){var O=$t(h);if(!ur(h)){var I=Ke(v,3);h=Cn(h),v=function(U){return I(O[U],U,O)}}var F=d(h,v,k);return F>-1?O[I?h[F]:F]:n}}function T5(d){return xi(function(h){var v=h.length,k=v,O=qr.prototype.thru;for(d&&h.reverse();k--;){var I=h[k];if(typeof I!="function")throw new jr(a);if(O&&!F&&Ph(I)=="wrapper")var F=new qr([],!0)}for(k=F?k:v;++k<v;){I=h[k];var U=Ph(I),G=U=="wrapper"?Hv(I):n;G&&qv(G[0])&&G[1]==(A|C|_|L)&&!G[4].length&&G[9]==1?F=F[Ph(G[0])].apply(F,G[3]):F=I.length==1&&qv(I)?F[U]():F.thru(I)}return function(){var fe=arguments,pe=fe[0];if(F&&fe.length==1&&rt(pe))return F.plant(pe).value();for(var be=0,Te=v?h[be].apply(this,fe):pe;++be<v;)Te=h[be].call(this,Te);return Te}})}function Bh(d,h,v,k,O,I,F,U,G,fe){var pe=h&A,be=h&w,Te=h&x,$e=h&(C|E),Xe=h&D,pt=Te?n:Rc(d);function Ye(){for(var gt=arguments.length,wt=Q(gt),kr=gt;kr--;)wt[kr]=arguments[kr];if($e)var Qn=Ul(Ye),_r=zN(wt,Qn);if(k&&(wt=x5(wt,k,O,$e)),I&&(wt=C5(wt,I,F,$e)),gt-=_r,$e&&gt<fe){var cn=gs(wt,Qn);return M5(d,h,Bh,Ye.placeholder,v,wt,cn,U,G,fe-gt)}var go=be?v:this,ki=Te?go[d]:d;return gt=wt.length,U?wt=Xte(wt,U):Xe&&gt>1&&wt.reverse(),pe&&G<gt&&(wt.length=G),this&&this!==On&&this instanceof Ye&&(ki=pt||Rc(ki)),ki.apply(go,wt)}return Ye}function A5(d,h){return function(v,k){return nte(v,d,h(k),{})}}function Ih(d,h){return function(v,k){var O;if(v===n&&k===n)return h;if(v!==n&&(O=v),k!==n){if(O===n)return k;typeof v=="string"||typeof k=="string"?(v=Er(v),k=Er(k)):(v=p5(v),k=p5(k)),O=d(v,k)}return O}}function Vv(d){return xi(function(h){return h=Yt(h,Cr(Ke())),ht(function(v){var k=this;return d(h,function(O){return xr(O,k,v)})})})}function Rh(d,h){h=h===n?" ":Er(h);var v=h.length;if(v<2)return v?Mv(h,d):h;var k=Mv(h,yh(d/Ll(h)));return Rl(h)?xs(po(k),0,d).join(""):k.slice(0,d)}function Ote(d,h,v,k){var O=h&w,I=Rc(d);function F(){for(var U=-1,G=arguments.length,fe=-1,pe=k.length,be=Q(pe+G),Te=this&&this!==On&&this instanceof F?I:d;++fe<pe;)be[fe]=k[fe];for(;G--;)be[fe++]=arguments[++U];return xr(Te,O?v:this,be)}return F}function O5(d){return function(h,v,k){return k&&typeof k!="number"&&Zn(h,v,k)&&(v=k=n),h=Si(h),v===n?(v=h,h=0):v=Si(v),k=k===n?h<v?1:-1:Si(k),hte(h,v,k,d)}}function Lh(d){return function(h,v){return typeof h=="string"&&typeof v=="string"||(h=Yr(h),v=Yr(v)),d(h,v)}}function M5(d,h,v,k,O,I,F,U,G,fe){var pe=h&C,be=pe?F:n,Te=pe?n:F,$e=pe?I:n,Xe=pe?n:I;h|=pe?_:T,h&=~(pe?T:_),h&S||(h&=-4);var pt=[d,h,O,$e,be,Xe,Te,U,G,fe],Ye=v.apply(n,pt);return qv(d)&&U5(Ye,pt),Ye.placeholder=k,W5(Ye,d,h)}function Fv(d){var h=mn[d];return function(v,k){if(v=Yr(v),k=k==null?0:Hn(ut(k),292),k&&Wk(v)){var O=(_t(v)+"e").split("e"),I=h(O[0]+"e"+(+O[1]+k));return O=(_t(I)+"e").split("e"),+(O[0]+"e"+(+O[1]-k))}return h(v)}}var Mte=Vl&&1/uh(new Vl([,-0]))[1]==R?function(d){return new Vl(d)}:s2;function B5(d){return function(h){var v=Un(h);return v==Me?hv(h):v==me?GN(h):$N(h,d(h))}}function wi(d,h,v,k,O,I,F,U){var G=h&x;if(!G&&typeof d!="function")throw new jr(a);var fe=k?k.length:0;if(fe||(h&=-97,k=O=n),F=F===n?F:gn(ut(F),0),U=U===n?U:ut(U),fe-=O?O.length:0,h&T){var pe=k,be=O;k=O=n}var Te=G?n:Hv(d),$e=[d,h,v,k,O,pe,be,I,F,U];if(Te&&qte($e,Te),d=$e[0],h=$e[1],v=$e[2],k=$e[3],O=$e[4],U=$e[9]=$e[9]===n?G?0:d.length:gn($e[9]-fe,0),!U&&h&(C|E)&&(h&=-25),!h||h==w)var Xe=Tte(d,h,v);else h==C||h==E?Xe=Ate(d,h,U):(h==_||h==(w|_))&&!O.length?Xe=Ote(d,h,v,k):Xe=Bh.apply(n,$e);var pt=Te?d5:U5;return W5(pt(Xe,$e),d,h)}function I5(d,h,v,k){return d===n||mo(d,Dl[v])&&!Mt.call(k,v)?h:d}function R5(d,h,v,k,O,I){return en(d)&&en(h)&&(I.set(h,d),Th(d,h,n,R5,I),I.delete(h)),d}function Bte(d){return Dc(d)?n:d}function L5(d,h,v,k,O,I){var F=v&b,U=d.length,G=h.length;if(U!=G&&!(F&&G>U))return!1;var fe=I.get(d),pe=I.get(h);if(fe&&pe)return fe==h&&pe==d;var be=-1,Te=!0,$e=v&y?new va:n;for(I.set(d,h),I.set(h,d);++be<U;){var Xe=d[be],pt=h[be];if(k)var Ye=F?k(pt,Xe,be,h,d,I):k(Xe,pt,be,d,h,I);if(Ye!==n){if(Ye)continue;Te=!1;break}if($e){if(!lv(h,function(gt,wt){if(!Cc($e,wt)&&(Xe===gt||O(Xe,gt,v,k,I)))return $e.push(wt)})){Te=!1;break}}else if(!(Xe===pt||O(Xe,pt,v,k,I))){Te=!1;break}}return I.delete(d),I.delete(h),Te}function Ite(d,h,v,k,O,I,F){switch(v){case we:if(d.byteLength!=h.byteLength||d.byteOffset!=h.byteOffset)return!1;d=d.buffer,h=h.buffer;case ce:return!(d.byteLength!=h.byteLength||!I(new mh(d),new mh(h)));case Y:case ae:case Ue:return mo(+d,+h);case he:return d.name==h.name&&d.message==h.message;case ie:case Le:return d==h+"";case Me:var U=hv;case me:var G=k&b;if(U||(U=uh),d.size!=h.size&&!G)return!1;var fe=F.get(d);if(fe)return fe==h;k|=y,F.set(d,h);var pe=L5(U(d),U(h),k,O,I,F);return F.delete(d),pe;case nt:if(Tc)return Tc.call(d)==Tc.call(h)}return!1}function Rte(d,h,v,k,O,I){var F=v&b,U=$v(d),G=U.length,fe=$v(h),pe=fe.length;if(G!=pe&&!F)return!1;for(var be=G;be--;){var Te=U[be];if(!(F?Te in h:Mt.call(h,Te)))return!1}var $e=I.get(d),Xe=I.get(h);if($e&&Xe)return $e==h&&Xe==d;var pt=!0;I.set(d,h),I.set(h,d);for(var Ye=F;++be<G;){Te=U[be];var gt=d[Te],wt=h[Te];if(k)var kr=F?k(wt,gt,Te,h,d,I):k(gt,wt,Te,d,h,I);if(!(kr===n?gt===wt||O(gt,wt,v,k,I):kr)){pt=!1;break}Ye||(Ye=Te=="constructor")}if(pt&&!Ye){var Qn=d.constructor,_r=h.constructor;Qn!=_r&&"constructor"in d&&"constructor"in h&&!(typeof Qn=="function"&&Qn instanceof Qn&&typeof _r=="function"&&_r instanceof _r)&&(pt=!1)}return I.delete(d),I.delete(h),pt}function xi(d){return Gv(z5(d,n,Y5),d+"")}function $v(d){return e5(d,Cn,Wv)}function zv(d){return e5(d,cr,P5)}var Hv=xh?function(d){return xh.get(d)}:s2;function Ph(d){for(var h=d.name+"",v=Fl[h],k=Mt.call(Fl,h)?v.length:0;k--;){var O=v[k],I=O.func;if(I==null||I==d)return O.name}return h}function Ul(d){var h=Mt.call(B,"placeholder")?B:d;return h.placeholder}function Ke(){var d=B.iteratee||o2;return d=d===o2?r5:d,arguments.length?d(arguments[0],arguments[1]):d}function Dh(d,h){var v=d.__data__;return Hte(h)?v[typeof h=="string"?"string":"hash"]:v.map}function Uv(d){for(var h=Cn(d),v=h.length;v--;){var k=h[v],O=d[k];h[v]=[k,O,F5(O)]}return h}function xa(d,h){var v=jN(d,h);return n5(v)?v:n}function Lte(d){var h=Mt.call(d,ga),v=d[ga];try{d[ga]=n;var k=!0}catch{}var O=ph.call(d);return k&&(h?d[ga]=v:delete d[ga]),O}var Wv=gv?function(d){return d==null?[]:(d=$t(d),hs(gv(d),function(h){return Hk.call(d,h)}))}:a2,P5=gv?function(d){for(var h=[];d;)ms(h,Wv(d)),d=gh(d);return h}:a2,Un=Jn;(bv&&Un(new bv(new ArrayBuffer(1)))!=we||Sc&&Un(new Sc)!=Me||vv&&Un(vv.resolve())!=V||Vl&&Un(new Vl)!=me||kc&&Un(new kc)!=ee)&&(Un=function(d){var h=Jn(d),v=h==ke?d.constructor:n,k=v?Ca(v):"";if(k)switch(k){case gee:return we;case bee:return Me;case vee:return V;case yee:return me;case wee:return ee}return h});function Pte(d,h,v){for(var k=-1,O=v.length;++k<O;){var I=v[k],F=I.size;switch(I.type){case"drop":d+=F;break;case"dropRight":h-=F;break;case"take":h=Hn(h,d+F);break;case"takeRight":d=gn(d,h-F);break}}return{start:d,end:h}}function Dte(d){var h=d.match(UQ);return h?h[1].split(WQ):[]}function D5(d,h,v){h=ws(h,d);for(var k=-1,O=h.length,I=!1;++k<O;){var F=Uo(h[k]);if(!(I=d!=null&&v(d,F)))break;d=d[F]}return I||++k!=O?I:(O=d==null?0:d.length,!!O&&Wh(O)&&Ci(F,O)&&(rt(d)||Ea(d)))}function Vte(d){var h=d.length,v=new d.constructor(h);return h&&typeof d[0]=="string"&&Mt.call(d,"index")&&(v.index=d.index,v.input=d.input),v}function V5(d){return typeof d.constructor=="function"&&!Lc(d)?$l(gh(d)):{}}function Fte(d,h,v){var k=d.constructor;switch(h){case ce:return Dv(d);case Y:case ae:return new k(+d);case we:return xte(d,v);case Ve:case Qe:case Ot:case Nt:case hi:case oe:case Pe:case qe:case Et:return y5(d,v);case Me:return new k;case Ue:case Le:return new k(d);case ie:return Cte(d);case me:return new k;case nt:return Ete(d)}}function $te(d,h){var v=h.length;if(!v)return d;var k=v-1;return h[k]=(v>1?"& ":"")+h[k],h=h.join(v>2?", ":" "),d.replace(HQ,`{
116
+ */Pd.exports,function(t,e){(function(){var n,r="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,f="__lodash_placeholder__",p=1,m=2,g=4,b=1,y=2,w=1,x=2,S=4,C=8,E=16,_=32,T=64,A=128,L=256,D=512,M=30,$="...",j=800,X=16,se=1,W=2,z=3,R=1/0,q=9007199254740991,Z=17976931348623157e292,te=NaN,ne=4294967295,ye=ne-1,Ce=ne>>>1,He=[["ary",A],["bind",w],["bindKey",x],["curry",C],["curryRight",E],["flip",D],["partial",_],["partialRight",T],["rearg",L]],Se="[object Arguments]",je="[object Array]",H="[object AsyncFunction]",Y="[object Boolean]",ae="[object Date]",ue="[object DOMException]",he="[object Error]",J="[object Function]",ve="[object GeneratorFunction]",Me="[object Map]",Ue="[object Number]",Q="[object Null]",ke="[object Object]",V="[object Promise]",P="[object Proxy]",ie="[object RegExp]",me="[object Set]",Le="[object String]",nt="[object Symbol]",We="[object Undefined]",ee="[object WeakMap]",ge="[object WeakSet]",ce="[object ArrayBuffer]",we="[object DataView]",Ve="[object Float32Array]",Qe="[object Float64Array]",Ot="[object Int8Array]",Nt="[object Int16Array]",hi="[object Int32Array]",oe="[object Uint8Array]",Pe="[object Uint8ClampedArray]",qe="[object Uint16Array]",Et="[object Uint32Array]",yt=/\b__p \+= '';/g,An=/\b(__p \+=) '' \+/g,ar=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mi=/&(?:amp|lt|gt|quot|#39);/g,yc=/[&<>"']/g,gi=RegExp(mi.source),wc=RegExp(yc.source),Ol=/<%-([\s\S]+?)%>/g,ps=/<%([\s\S]+?)%>/g,rh=/<%=([\s\S]+?)%>/g,xc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ml=/^\w*$/,FQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zb=/[\\^$.*+?()[\]{}|]/g,$Q=RegExp(Zb.source),Qb=/^\s+/,zQ=/\s/,HQ=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,UQ=/\{\n\/\* \[wrapped with (.+)\] \*/,WQ=/,? & /,jQ=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qQ=/[()=,{}\[\]\/\s]/,KQ=/\\(\\)?/g,GQ=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tk=/\w*$/,XQ=/^[-+]0x[0-9a-f]+$/i,YQ=/^0b[01]+$/i,JQ=/^\[object .+?Constructor\]$/,ZQ=/^0o[0-7]+$/i,QQ=/^(?:0|[1-9]\d*)$/,NQ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,oh=/($^)/,eN=/['\n\r\u2028\u2029\\]/g,ih="\\ud800-\\udfff",tN="\\u0300-\\u036f",nN="\\ufe20-\\ufe2f",rN="\\u20d0-\\u20ff",nk=tN+nN+rN,rk="\\u2700-\\u27bf",ok="a-z\\xdf-\\xf6\\xf8-\\xff",oN="\\xac\\xb1\\xd7\\xf7",iN="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sN="\\u2000-\\u206f",aN=" \\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",ik="A-Z\\xc0-\\xd6\\xd8-\\xde",sk="\\ufe0e\\ufe0f",ak=oN+iN+sN+aN,Nb="['’]",lN="["+ih+"]",lk="["+ak+"]",sh="["+nk+"]",uk="\\d+",uN="["+rk+"]",ck="["+ok+"]",dk="[^"+ih+ak+uk+rk+ok+ik+"]",ev="\\ud83c[\\udffb-\\udfff]",cN="(?:"+sh+"|"+ev+")",fk="[^"+ih+"]",tv="(?:\\ud83c[\\udde6-\\uddff]){2}",nv="[\\ud800-\\udbff][\\udc00-\\udfff]",Bl="["+ik+"]",pk="\\u200d",hk="(?:"+ck+"|"+dk+")",dN="(?:"+Bl+"|"+dk+")",mk="(?:"+Nb+"(?:d|ll|m|re|s|t|ve))?",gk="(?:"+Nb+"(?:D|LL|M|RE|S|T|VE))?",bk=cN+"?",vk="["+sk+"]?",fN="(?:"+pk+"(?:"+[fk,tv,nv].join("|")+")"+vk+bk+")*",pN="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hN="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yk=vk+bk+fN,mN="(?:"+[uN,tv,nv].join("|")+")"+yk,gN="(?:"+[fk+sh+"?",sh,tv,nv,lN].join("|")+")",bN=RegExp(Nb,"g"),vN=RegExp(sh,"g"),rv=RegExp(ev+"(?="+ev+")|"+gN+yk,"g"),yN=RegExp([Bl+"?"+ck+"+"+mk+"(?="+[lk,Bl,"$"].join("|")+")",dN+"+"+gk+"(?="+[lk,Bl+hk,"$"].join("|")+")",Bl+"?"+hk+"+"+mk,Bl+"+"+gk,hN,pN,uk,mN].join("|"),"g"),wN=RegExp("["+pk+ih+nk+sk+"]"),xN=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,CN=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],EN=-1,Kt={};Kt[Ve]=Kt[Qe]=Kt[Ot]=Kt[Nt]=Kt[hi]=Kt[oe]=Kt[Pe]=Kt[qe]=Kt[Et]=!0,Kt[Se]=Kt[je]=Kt[ce]=Kt[Y]=Kt[we]=Kt[ae]=Kt[he]=Kt[J]=Kt[Me]=Kt[Ue]=Kt[ke]=Kt[ie]=Kt[me]=Kt[Le]=Kt[ee]=!1;var Ht={};Ht[Se]=Ht[je]=Ht[ce]=Ht[we]=Ht[Y]=Ht[ae]=Ht[Ve]=Ht[Qe]=Ht[Ot]=Ht[Nt]=Ht[hi]=Ht[Me]=Ht[Ue]=Ht[ke]=Ht[ie]=Ht[me]=Ht[Le]=Ht[nt]=Ht[oe]=Ht[Pe]=Ht[qe]=Ht[Et]=!0,Ht[he]=Ht[J]=Ht[ee]=!1;var SN={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},kN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_N={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},TN={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},AN=parseFloat,ON=parseInt,wk=typeof Xa=="object"&&Xa&&Xa.Object===Object&&Xa,MN=typeof self=="object"&&self&&self.Object===Object&&self,On=wk||MN||Function("return this")(),ov=e&&!e.nodeType&&e,ma=ov&&!0&&t&&!t.nodeType&&t,xk=ma&&ma.exports===ov,iv=xk&&wk.process,Ur=function(){try{var K=ma&&ma.require&&ma.require("util").types;return K||iv&&iv.binding&&iv.binding("util")}catch{}}(),Ck=Ur&&Ur.isArrayBuffer,Ek=Ur&&Ur.isDate,Sk=Ur&&Ur.isMap,kk=Ur&&Ur.isRegExp,_k=Ur&&Ur.isSet,Tk=Ur&&Ur.isTypedArray;function xr(K,le,N){switch(N.length){case 0:return K.call(le);case 1:return K.call(le,N[0]);case 2:return K.call(le,N[0],N[1]);case 3:return K.call(le,N[0],N[1],N[2])}return K.apply(le,N)}function BN(K,le,N,Be){for(var et=-1,kt=K==null?0:K.length;++et<kt;){var mn=K[et];le(Be,mn,N(mn),K)}return Be}function Wr(K,le){for(var N=-1,Be=K==null?0:K.length;++N<Be&&le(K[N],N,K)!==!1;);return K}function IN(K,le){for(var N=K==null?0:K.length;N--&&le(K[N],N,K)!==!1;);return K}function Ak(K,le){for(var N=-1,Be=K==null?0:K.length;++N<Be;)if(!le(K[N],N,K))return!1;return!0}function hs(K,le){for(var N=-1,Be=K==null?0:K.length,et=0,kt=[];++N<Be;){var mn=K[N];le(mn,N,K)&&(kt[et++]=mn)}return kt}function ah(K,le){var N=K==null?0:K.length;return!!N&&Il(K,le,0)>-1}function sv(K,le,N){for(var Be=-1,et=K==null?0:K.length;++Be<et;)if(N(le,K[Be]))return!0;return!1}function Yt(K,le){for(var N=-1,Be=K==null?0:K.length,et=Array(Be);++N<Be;)et[N]=le(K[N],N,K);return et}function ms(K,le){for(var N=-1,Be=le.length,et=K.length;++N<Be;)K[et+N]=le[N];return K}function av(K,le,N,Be){var et=-1,kt=K==null?0:K.length;for(Be&&kt&&(N=K[++et]);++et<kt;)N=le(N,K[et],et,K);return N}function RN(K,le,N,Be){var et=K==null?0:K.length;for(Be&&et&&(N=K[--et]);et--;)N=le(N,K[et],et,K);return N}function lv(K,le){for(var N=-1,Be=K==null?0:K.length;++N<Be;)if(le(K[N],N,K))return!0;return!1}var LN=uv("length");function PN(K){return K.split("")}function DN(K){return K.match(jQ)||[]}function Ok(K,le,N){var Be;return N(K,function(et,kt,mn){if(le(et,kt,mn))return Be=kt,!1}),Be}function lh(K,le,N,Be){for(var et=K.length,kt=N+(Be?1:-1);Be?kt--:++kt<et;)if(le(K[kt],kt,K))return kt;return-1}function Il(K,le,N){return le===le?XN(K,le,N):lh(K,Mk,N)}function VN(K,le,N,Be){for(var et=N-1,kt=K.length;++et<kt;)if(Be(K[et],le))return et;return-1}function Mk(K){return K!==K}function Bk(K,le){var N=K==null?0:K.length;return N?dv(K,le)/N:te}function uv(K){return function(le){return le==null?n:le[K]}}function cv(K){return function(le){return K==null?n:K[le]}}function Ik(K,le,N,Be,et){return et(K,function(kt,mn,$t){N=Be?(Be=!1,kt):le(N,kt,mn,$t)}),N}function FN(K,le){var N=K.length;for(K.sort(le);N--;)K[N]=K[N].value;return K}function dv(K,le){for(var N,Be=-1,et=K.length;++Be<et;){var kt=le(K[Be]);kt!==n&&(N=N===n?kt:N+kt)}return N}function fv(K,le){for(var N=-1,Be=Array(K);++N<K;)Be[N]=le(N);return Be}function $N(K,le){return Yt(le,function(N){return[N,K[N]]})}function Rk(K){return K&&K.slice(0,Vk(K)+1).replace(Qb,"")}function Cr(K){return function(le){return K(le)}}function pv(K,le){return Yt(le,function(N){return K[N]})}function Cc(K,le){return K.has(le)}function Lk(K,le){for(var N=-1,Be=K.length;++N<Be&&Il(le,K[N],0)>-1;);return N}function Pk(K,le){for(var N=K.length;N--&&Il(le,K[N],0)>-1;);return N}function zN(K,le){for(var N=K.length,Be=0;N--;)K[N]===le&&++Be;return Be}var HN=cv(SN),UN=cv(kN);function WN(K){return"\\"+TN[K]}function jN(K,le){return K==null?n:K[le]}function Rl(K){return wN.test(K)}function qN(K){return xN.test(K)}function KN(K){for(var le,N=[];!(le=K.next()).done;)N.push(le.value);return N}function hv(K){var le=-1,N=Array(K.size);return K.forEach(function(Be,et){N[++le]=[et,Be]}),N}function Dk(K,le){return function(N){return K(le(N))}}function gs(K,le){for(var N=-1,Be=K.length,et=0,kt=[];++N<Be;){var mn=K[N];(mn===le||mn===f)&&(K[N]=f,kt[et++]=N)}return kt}function uh(K){var le=-1,N=Array(K.size);return K.forEach(function(Be){N[++le]=Be}),N}function GN(K){var le=-1,N=Array(K.size);return K.forEach(function(Be){N[++le]=[Be,Be]}),N}function XN(K,le,N){for(var Be=N-1,et=K.length;++Be<et;)if(K[Be]===le)return Be;return-1}function YN(K,le,N){for(var Be=N+1;Be--;)if(K[Be]===le)return Be;return Be}function Ll(K){return Rl(K)?ZN(K):LN(K)}function po(K){return Rl(K)?QN(K):PN(K)}function Vk(K){for(var le=K.length;le--&&zQ.test(K.charAt(le)););return le}var JN=cv(_N);function ZN(K){for(var le=rv.lastIndex=0;rv.test(K);)++le;return le}function QN(K){return K.match(rv)||[]}function NN(K){return K.match(yN)||[]}var eee=function K(le){le=le==null?On:Pl.defaults(On.Object(),le,Pl.pick(On,CN));var N=le.Array,Be=le.Date,et=le.Error,kt=le.Function,mn=le.Math,$t=le.Object,mv=le.RegExp,tee=le.String,jr=le.TypeError,ch=N.prototype,nee=kt.prototype,Dl=$t.prototype,dh=le["__core-js_shared__"],fh=nee.toString,Mt=Dl.hasOwnProperty,ree=0,Fk=function(){var d=/[^.]+$/.exec(dh&&dh.keys&&dh.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),ph=Dl.toString,oee=fh.call($t),iee=On._,see=mv("^"+fh.call(Mt).replace(Zb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hh=xk?le.Buffer:n,bs=le.Symbol,mh=le.Uint8Array,$k=hh?hh.allocUnsafe:n,gh=Dk($t.getPrototypeOf,$t),zk=$t.create,Hk=Dl.propertyIsEnumerable,bh=ch.splice,Uk=bs?bs.isConcatSpreadable:n,Ec=bs?bs.iterator:n,ga=bs?bs.toStringTag:n,vh=function(){try{var d=xa($t,"defineProperty");return d({},"",{}),d}catch{}}(),aee=le.clearTimeout!==On.clearTimeout&&le.clearTimeout,lee=Be&&Be.now!==On.Date.now&&Be.now,uee=le.setTimeout!==On.setTimeout&&le.setTimeout,yh=mn.ceil,wh=mn.floor,gv=$t.getOwnPropertySymbols,cee=hh?hh.isBuffer:n,Wk=le.isFinite,dee=ch.join,fee=Dk($t.keys,$t),gn=mn.max,Hn=mn.min,pee=Be.now,hee=le.parseInt,jk=mn.random,mee=ch.reverse,bv=xa(le,"DataView"),Sc=xa(le,"Map"),vv=xa(le,"Promise"),Vl=xa(le,"Set"),kc=xa(le,"WeakMap"),_c=xa($t,"create"),xh=kc&&new kc,Fl={},gee=Ca(bv),bee=Ca(Sc),vee=Ca(vv),yee=Ca(Vl),wee=Ca(kc),Ch=bs?bs.prototype:n,Tc=Ch?Ch.valueOf:n,qk=Ch?Ch.toString:n;function B(d){if(sn(d)&&!rt(d)&&!(d instanceof vt)){if(d instanceof qr)return d;if(Mt.call(d,"__wrapped__"))return K5(d)}return new qr(d)}var $l=function(){function d(){}return function(h){if(!en(h))return{};if(zk)return zk(h);d.prototype=h;var v=new d;return d.prototype=n,v}}();function Eh(){}function qr(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=n}B.templateSettings={escape:Ol,evaluate:ps,interpolate:rh,variable:"",imports:{_:B}},B.prototype=Eh.prototype,B.prototype.constructor=B,qr.prototype=$l(Eh.prototype),qr.prototype.constructor=qr;function vt(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ne,this.__views__=[]}function xee(){var d=new vt(this.__wrapped__);return d.__actions__=lr(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=lr(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=lr(this.__views__),d}function Cee(){if(this.__filtered__){var d=new vt(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function Eee(){var d=this.__wrapped__.value(),h=this.__dir__,v=rt(d),k=h<0,O=v?d.length:0,I=Pte(0,O,this.__views__),F=I.start,U=I.end,G=U-F,fe=k?U:F-1,pe=this.__iteratees__,be=pe.length,Te=0,$e=Hn(G,this.__takeCount__);if(!v||!k&&O==G&&$e==G)return m5(d,this.__actions__);var Xe=[];e:for(;G--&&Te<$e;){fe+=h;for(var pt=-1,Ye=d[fe];++pt<be;){var gt=pe[pt],wt=gt.iteratee,kr=gt.type,Qn=wt(Ye);if(kr==W)Ye=Qn;else if(!Qn){if(kr==se)continue e;break e}}Xe[Te++]=Ye}return Xe}vt.prototype=$l(Eh.prototype),vt.prototype.constructor=vt;function ba(d){var h=-1,v=d==null?0:d.length;for(this.clear();++h<v;){var k=d[h];this.set(k[0],k[1])}}function See(){this.__data__=_c?_c(null):{},this.size=0}function kee(d){var h=this.has(d)&&delete this.__data__[d];return this.size-=h?1:0,h}function _ee(d){var h=this.__data__;if(_c){var v=h[d];return v===u?n:v}return Mt.call(h,d)?h[d]:n}function Tee(d){var h=this.__data__;return _c?h[d]!==n:Mt.call(h,d)}function Aee(d,h){var v=this.__data__;return this.size+=this.has(d)?0:1,v[d]=_c&&h===n?u:h,this}ba.prototype.clear=See,ba.prototype.delete=kee,ba.prototype.get=_ee,ba.prototype.has=Tee,ba.prototype.set=Aee;function bi(d){var h=-1,v=d==null?0:d.length;for(this.clear();++h<v;){var k=d[h];this.set(k[0],k[1])}}function Oee(){this.__data__=[],this.size=0}function Mee(d){var h=this.__data__,v=Sh(h,d);if(v<0)return!1;var k=h.length-1;return v==k?h.pop():bh.call(h,v,1),--this.size,!0}function Bee(d){var h=this.__data__,v=Sh(h,d);return v<0?n:h[v][1]}function Iee(d){return Sh(this.__data__,d)>-1}function Ree(d,h){var v=this.__data__,k=Sh(v,d);return k<0?(++this.size,v.push([d,h])):v[k][1]=h,this}bi.prototype.clear=Oee,bi.prototype.delete=Mee,bi.prototype.get=Bee,bi.prototype.has=Iee,bi.prototype.set=Ree;function vi(d){var h=-1,v=d==null?0:d.length;for(this.clear();++h<v;){var k=d[h];this.set(k[0],k[1])}}function Lee(){this.size=0,this.__data__={hash:new ba,map:new(Sc||bi),string:new ba}}function Pee(d){var h=Dh(this,d).delete(d);return this.size-=h?1:0,h}function Dee(d){return Dh(this,d).get(d)}function Vee(d){return Dh(this,d).has(d)}function Fee(d,h){var v=Dh(this,d),k=v.size;return v.set(d,h),this.size+=v.size==k?0:1,this}vi.prototype.clear=Lee,vi.prototype.delete=Pee,vi.prototype.get=Dee,vi.prototype.has=Vee,vi.prototype.set=Fee;function va(d){var h=-1,v=d==null?0:d.length;for(this.__data__=new vi;++h<v;)this.add(d[h])}function $ee(d){return this.__data__.set(d,u),this}function zee(d){return this.__data__.has(d)}va.prototype.add=va.prototype.push=$ee,va.prototype.has=zee;function ho(d){var h=this.__data__=new bi(d);this.size=h.size}function Hee(){this.__data__=new bi,this.size=0}function Uee(d){var h=this.__data__,v=h.delete(d);return this.size=h.size,v}function Wee(d){return this.__data__.get(d)}function jee(d){return this.__data__.has(d)}function qee(d,h){var v=this.__data__;if(v instanceof bi){var k=v.__data__;if(!Sc||k.length<o-1)return k.push([d,h]),this.size=++v.size,this;v=this.__data__=new vi(k)}return v.set(d,h),this.size=v.size,this}ho.prototype.clear=Hee,ho.prototype.delete=Uee,ho.prototype.get=Wee,ho.prototype.has=jee,ho.prototype.set=qee;function Kk(d,h){var v=rt(d),k=!v&&Ea(d),O=!v&&!k&&Cs(d),I=!v&&!k&&!O&&Wl(d),F=v||k||O||I,U=F?fv(d.length,tee):[],G=U.length;for(var fe in d)(h||Mt.call(d,fe))&&!(F&&(fe=="length"||O&&(fe=="offset"||fe=="parent")||I&&(fe=="buffer"||fe=="byteLength"||fe=="byteOffset")||Ci(fe,G)))&&U.push(fe);return U}function Gk(d){var h=d.length;return h?d[Ov(0,h-1)]:n}function Kee(d,h){return Vh(lr(d),ya(h,0,d.length))}function Gee(d){return Vh(lr(d))}function yv(d,h,v){(v!==n&&!mo(d[h],v)||v===n&&!(h in d))&&yi(d,h,v)}function Ac(d,h,v){var k=d[h];(!(Mt.call(d,h)&&mo(k,v))||v===n&&!(h in d))&&yi(d,h,v)}function Sh(d,h){for(var v=d.length;v--;)if(mo(d[v][0],h))return v;return-1}function Xee(d,h,v,k){return vs(d,function(O,I,F){h(k,O,v(O),F)}),k}function Xk(d,h){return d&&Ho(h,Cn(h),d)}function Yee(d,h){return d&&Ho(h,cr(h),d)}function yi(d,h,v){h=="__proto__"&&vh?vh(d,h,{configurable:!0,enumerable:!0,value:v,writable:!0}):d[h]=v}function wv(d,h){for(var v=-1,k=h.length,O=N(k),I=d==null;++v<k;)O[v]=I?n:e2(d,h[v]);return O}function ya(d,h,v){return d===d&&(v!==n&&(d=d<=v?d:v),h!==n&&(d=d>=h?d:h)),d}function Kr(d,h,v,k,O,I){var F,U=h&p,G=h&m,fe=h&g;if(v&&(F=O?v(d,k,O,I):v(d)),F!==n)return F;if(!en(d))return d;var pe=rt(d);if(pe){if(F=Vte(d),!U)return lr(d,F)}else{var be=Un(d),Te=be==J||be==ve;if(Cs(d))return v5(d,U);if(be==ke||be==Se||Te&&!O){if(F=G||Te?{}:V5(d),!U)return G?_te(d,Yee(F,d)):kte(d,Xk(F,d))}else{if(!Ht[be])return O?d:{};F=Fte(d,be,U)}}I||(I=new ho);var $e=I.get(d);if($e)return $e;I.set(d,F),f_(d)?d.forEach(function(Ye){F.add(Kr(Ye,h,v,Ye,d,I))}):c_(d)&&d.forEach(function(Ye,gt){F.set(gt,Kr(Ye,h,v,gt,d,I))});var Xe=fe?G?zv:$v:G?cr:Cn,pt=pe?n:Xe(d);return Wr(pt||d,function(Ye,gt){pt&&(gt=Ye,Ye=d[gt]),Ac(F,gt,Kr(Ye,h,v,gt,d,I))}),F}function Jee(d){var h=Cn(d);return function(v){return Yk(v,d,h)}}function Yk(d,h,v){var k=v.length;if(d==null)return!k;for(d=$t(d);k--;){var O=v[k],I=h[O],F=d[O];if(F===n&&!(O in d)||!I(F))return!1}return!0}function Jk(d,h,v){if(typeof d!="function")throw new jr(a);return Pc(function(){d.apply(n,v)},h)}function Oc(d,h,v,k){var O=-1,I=ah,F=!0,U=d.length,G=[],fe=h.length;if(!U)return G;v&&(h=Yt(h,Cr(v))),k?(I=sv,F=!1):h.length>=o&&(I=Cc,F=!1,h=new va(h));e:for(;++O<U;){var pe=d[O],be=v==null?pe:v(pe);if(pe=k||pe!==0?pe:0,F&&be===be){for(var Te=fe;Te--;)if(h[Te]===be)continue e;G.push(pe)}else I(h,be,k)||G.push(pe)}return G}var vs=E5(zo),Zk=E5(Cv,!0);function Zee(d,h){var v=!0;return vs(d,function(k,O,I){return v=!!h(k,O,I),v}),v}function kh(d,h,v){for(var k=-1,O=d.length;++k<O;){var I=d[k],F=h(I);if(F!=null&&(U===n?F===F&&!Sr(F):v(F,U)))var U=F,G=I}return G}function Qee(d,h,v,k){var O=d.length;for(v=ut(v),v<0&&(v=-v>O?0:O+v),k=k===n||k>O?O:ut(k),k<0&&(k+=O),k=v>k?0:h_(k);v<k;)d[v++]=h;return d}function Qk(d,h){var v=[];return vs(d,function(k,O,I){h(k,O,I)&&v.push(k)}),v}function Mn(d,h,v,k,O){var I=-1,F=d.length;for(v||(v=zte),O||(O=[]);++I<F;){var U=d[I];h>0&&v(U)?h>1?Mn(U,h-1,v,k,O):ms(O,U):k||(O[O.length]=U)}return O}var xv=S5(),Nk=S5(!0);function zo(d,h){return d&&xv(d,h,Cn)}function Cv(d,h){return d&&Nk(d,h,Cn)}function _h(d,h){return hs(h,function(v){return Ei(d[v])})}function wa(d,h){h=ws(h,d);for(var v=0,k=h.length;d!=null&&v<k;)d=d[Uo(h[v++])];return v&&v==k?d:n}function e5(d,h,v){var k=h(d);return rt(d)?k:ms(k,v(d))}function Jn(d){return d==null?d===n?We:Q:ga&&ga in $t(d)?Lte(d):Gte(d)}function Ev(d,h){return d>h}function Nee(d,h){return d!=null&&Mt.call(d,h)}function ete(d,h){return d!=null&&h in $t(d)}function tte(d,h,v){return d>=Hn(h,v)&&d<gn(h,v)}function Sv(d,h,v){for(var k=v?sv:ah,O=d[0].length,I=d.length,F=I,U=N(I),G=1/0,fe=[];F--;){var pe=d[F];F&&h&&(pe=Yt(pe,Cr(h))),G=Hn(pe.length,G),U[F]=!v&&(h||O>=120&&pe.length>=120)?new va(F&&pe):n}pe=d[0];var be=-1,Te=U[0];e:for(;++be<O&&fe.length<G;){var $e=pe[be],Xe=h?h($e):$e;if($e=v||$e!==0?$e:0,!(Te?Cc(Te,Xe):k(fe,Xe,v))){for(F=I;--F;){var pt=U[F];if(!(pt?Cc(pt,Xe):k(d[F],Xe,v)))continue e}Te&&Te.push(Xe),fe.push($e)}}return fe}function nte(d,h,v,k){return zo(d,function(O,I,F){h(k,v(O),I,F)}),k}function Mc(d,h,v){h=ws(h,d),d=H5(d,h);var k=d==null?d:d[Uo(Xr(h))];return k==null?n:xr(k,d,v)}function t5(d){return sn(d)&&Jn(d)==Se}function rte(d){return sn(d)&&Jn(d)==ce}function ote(d){return sn(d)&&Jn(d)==ae}function Bc(d,h,v,k,O){return d===h?!0:d==null||h==null||!sn(d)&&!sn(h)?d!==d&&h!==h:ite(d,h,v,k,Bc,O)}function ite(d,h,v,k,O,I){var F=rt(d),U=rt(h),G=F?je:Un(d),fe=U?je:Un(h);G=G==Se?ke:G,fe=fe==Se?ke:fe;var pe=G==ke,be=fe==ke,Te=G==fe;if(Te&&Cs(d)){if(!Cs(h))return!1;F=!0,pe=!1}if(Te&&!pe)return I||(I=new ho),F||Wl(d)?L5(d,h,v,k,O,I):Ite(d,h,G,v,k,O,I);if(!(v&b)){var $e=pe&&Mt.call(d,"__wrapped__"),Xe=be&&Mt.call(h,"__wrapped__");if($e||Xe){var pt=$e?d.value():d,Ye=Xe?h.value():h;return I||(I=new ho),O(pt,Ye,v,k,I)}}return Te?(I||(I=new ho),Rte(d,h,v,k,O,I)):!1}function ste(d){return sn(d)&&Un(d)==Me}function kv(d,h,v,k){var O=v.length,I=O,F=!k;if(d==null)return!I;for(d=$t(d);O--;){var U=v[O];if(F&&U[2]?U[1]!==d[U[0]]:!(U[0]in d))return!1}for(;++O<I;){U=v[O];var G=U[0],fe=d[G],pe=U[1];if(F&&U[2]){if(fe===n&&!(G in d))return!1}else{var be=new ho;if(k)var Te=k(fe,pe,G,d,h,be);if(!(Te===n?Bc(pe,fe,b|y,k,be):Te))return!1}}return!0}function n5(d){if(!en(d)||Ute(d))return!1;var h=Ei(d)?see:JQ;return h.test(Ca(d))}function ate(d){return sn(d)&&Jn(d)==ie}function lte(d){return sn(d)&&Un(d)==me}function ute(d){return sn(d)&&Wh(d.length)&&!!Kt[Jn(d)]}function r5(d){return typeof d=="function"?d:d==null?dr:typeof d=="object"?rt(d)?s5(d[0],d[1]):i5(d):k_(d)}function _v(d){if(!Lc(d))return fee(d);var h=[];for(var v in $t(d))Mt.call(d,v)&&v!="constructor"&&h.push(v);return h}function cte(d){if(!en(d))return Kte(d);var h=Lc(d),v=[];for(var k in d)k=="constructor"&&(h||!Mt.call(d,k))||v.push(k);return v}function Tv(d,h){return d<h}function o5(d,h){var v=-1,k=ur(d)?N(d.length):[];return vs(d,function(O,I,F){k[++v]=h(O,I,F)}),k}function i5(d){var h=Uv(d);return h.length==1&&h[0][2]?$5(h[0][0],h[0][1]):function(v){return v===d||kv(v,d,h)}}function s5(d,h){return jv(d)&&F5(h)?$5(Uo(d),h):function(v){var k=e2(v,d);return k===n&&k===h?t2(v,d):Bc(h,k,b|y)}}function Th(d,h,v,k,O){d!==h&&xv(h,function(I,F){if(O||(O=new ho),en(I))dte(d,h,F,v,Th,k,O);else{var U=k?k(Kv(d,F),I,F+"",d,h,O):n;U===n&&(U=I),yv(d,F,U)}},cr)}function dte(d,h,v,k,O,I,F){var U=Kv(d,v),G=Kv(h,v),fe=F.get(G);if(fe){yv(d,v,fe);return}var pe=I?I(U,G,v+"",d,h,F):n,be=pe===n;if(be){var Te=rt(G),$e=!Te&&Cs(G),Xe=!Te&&!$e&&Wl(G);pe=G,Te||$e||Xe?rt(U)?pe=U:un(U)?pe=lr(U):$e?(be=!1,pe=v5(G,!0)):Xe?(be=!1,pe=y5(G,!0)):pe=[]:Dc(G)||Ea(G)?(pe=U,Ea(U)?pe=m_(U):(!en(U)||Ei(U))&&(pe=V5(G))):be=!1}be&&(F.set(G,pe),O(pe,G,k,I,F),F.delete(G)),yv(d,v,pe)}function a5(d,h){var v=d.length;if(v)return h+=h<0?v:0,Ci(h,v)?d[h]:n}function l5(d,h,v){h.length?h=Yt(h,function(I){return rt(I)?function(F){return wa(F,I.length===1?I[0]:I)}:I}):h=[dr];var k=-1;h=Yt(h,Cr(Ke()));var O=o5(d,function(I,F,U){var G=Yt(h,function(fe){return fe(I)});return{criteria:G,index:++k,value:I}});return FN(O,function(I,F){return Ste(I,F,v)})}function fte(d,h){return u5(d,h,function(v,k){return t2(d,k)})}function u5(d,h,v){for(var k=-1,O=h.length,I={};++k<O;){var F=h[k],U=wa(d,F);v(U,F)&&Ic(I,ws(F,d),U)}return I}function pte(d){return function(h){return wa(h,d)}}function Av(d,h,v,k){var O=k?VN:Il,I=-1,F=h.length,U=d;for(d===h&&(h=lr(h)),v&&(U=Yt(d,Cr(v)));++I<F;)for(var G=0,fe=h[I],pe=v?v(fe):fe;(G=O(U,pe,G,k))>-1;)U!==d&&bh.call(U,G,1),bh.call(d,G,1);return d}function c5(d,h){for(var v=d?h.length:0,k=v-1;v--;){var O=h[v];if(v==k||O!==I){var I=O;Ci(O)?bh.call(d,O,1):Iv(d,O)}}return d}function Ov(d,h){return d+wh(jk()*(h-d+1))}function hte(d,h,v,k){for(var O=-1,I=gn(yh((h-d)/(v||1)),0),F=N(I);I--;)F[k?I:++O]=d,d+=v;return F}function Mv(d,h){var v="";if(!d||h<1||h>q)return v;do h%2&&(v+=d),h=wh(h/2),h&&(d+=d);while(h);return v}function ht(d,h){return Gv(z5(d,h,dr),d+"")}function mte(d){return Gk(jl(d))}function gte(d,h){var v=jl(d);return Vh(v,ya(h,0,v.length))}function Ic(d,h,v,k){if(!en(d))return d;h=ws(h,d);for(var O=-1,I=h.length,F=I-1,U=d;U!=null&&++O<I;){var G=Uo(h[O]),fe=v;if(G==="__proto__"||G==="constructor"||G==="prototype")return d;if(O!=F){var pe=U[G];fe=k?k(pe,G,U):n,fe===n&&(fe=en(pe)?pe:Ci(h[O+1])?[]:{})}Ac(U,G,fe),U=U[G]}return d}var d5=xh?function(d,h){return xh.set(d,h),d}:dr,bte=vh?function(d,h){return vh(d,"toString",{configurable:!0,enumerable:!1,value:r2(h),writable:!0})}:dr;function vte(d){return Vh(jl(d))}function Gr(d,h,v){var k=-1,O=d.length;h<0&&(h=-h>O?0:O+h),v=v>O?O:v,v<0&&(v+=O),O=h>v?0:v-h>>>0,h>>>=0;for(var I=N(O);++k<O;)I[k]=d[k+h];return I}function yte(d,h){var v;return vs(d,function(k,O,I){return v=h(k,O,I),!v}),!!v}function Ah(d,h,v){var k=0,O=d==null?k:d.length;if(typeof h=="number"&&h===h&&O<=Ce){for(;k<O;){var I=k+O>>>1,F=d[I];F!==null&&!Sr(F)&&(v?F<=h:F<h)?k=I+1:O=I}return O}return Bv(d,h,dr,v)}function Bv(d,h,v,k){var O=0,I=d==null?0:d.length;if(I===0)return 0;h=v(h);for(var F=h!==h,U=h===null,G=Sr(h),fe=h===n;O<I;){var pe=wh((O+I)/2),be=v(d[pe]),Te=be!==n,$e=be===null,Xe=be===be,pt=Sr(be);if(F)var Ye=k||Xe;else fe?Ye=Xe&&(k||Te):U?Ye=Xe&&Te&&(k||!$e):G?Ye=Xe&&Te&&!$e&&(k||!pt):$e||pt?Ye=!1:Ye=k?be<=h:be<h;Ye?O=pe+1:I=pe}return Hn(I,ye)}function f5(d,h){for(var v=-1,k=d.length,O=0,I=[];++v<k;){var F=d[v],U=h?h(F):F;if(!v||!mo(U,G)){var G=U;I[O++]=F===0?0:F}}return I}function p5(d){return typeof d=="number"?d:Sr(d)?te:+d}function Er(d){if(typeof d=="string")return d;if(rt(d))return Yt(d,Er)+"";if(Sr(d))return qk?qk.call(d):"";var h=d+"";return h=="0"&&1/d==-1/0?"-0":h}function ys(d,h,v){var k=-1,O=ah,I=d.length,F=!0,U=[],G=U;if(v)F=!1,O=sv;else if(I>=o){var fe=h?null:Mte(d);if(fe)return uh(fe);F=!1,O=Cc,G=new va}else G=h?[]:U;e:for(;++k<I;){var pe=d[k],be=h?h(pe):pe;if(pe=v||pe!==0?pe:0,F&&be===be){for(var Te=G.length;Te--;)if(G[Te]===be)continue e;h&&G.push(be),U.push(pe)}else O(G,be,v)||(G!==U&&G.push(be),U.push(pe))}return U}function Iv(d,h){return h=ws(h,d),d=H5(d,h),d==null||delete d[Uo(Xr(h))]}function h5(d,h,v,k){return Ic(d,h,v(wa(d,h)),k)}function Oh(d,h,v,k){for(var O=d.length,I=k?O:-1;(k?I--:++I<O)&&h(d[I],I,d););return v?Gr(d,k?0:I,k?I+1:O):Gr(d,k?I+1:0,k?O:I)}function m5(d,h){var v=d;return v instanceof vt&&(v=v.value()),av(h,function(k,O){return O.func.apply(O.thisArg,ms([k],O.args))},v)}function Rv(d,h,v){var k=d.length;if(k<2)return k?ys(d[0]):[];for(var O=-1,I=N(k);++O<k;)for(var F=d[O],U=-1;++U<k;)U!=O&&(I[O]=Oc(I[O]||F,d[U],h,v));return ys(Mn(I,1),h,v)}function g5(d,h,v){for(var k=-1,O=d.length,I=h.length,F={};++k<O;){var U=k<I?h[k]:n;v(F,d[k],U)}return F}function Lv(d){return un(d)?d:[]}function Pv(d){return typeof d=="function"?d:dr}function ws(d,h){return rt(d)?d:jv(d,h)?[d]:q5(_t(d))}var wte=ht;function xs(d,h,v){var k=d.length;return v=v===n?k:v,!h&&v>=k?d:Gr(d,h,v)}var b5=aee||function(d){return On.clearTimeout(d)};function v5(d,h){if(h)return d.slice();var v=d.length,k=$k?$k(v):new d.constructor(v);return d.copy(k),k}function Dv(d){var h=new d.constructor(d.byteLength);return new mh(h).set(new mh(d)),h}function xte(d,h){var v=h?Dv(d.buffer):d.buffer;return new d.constructor(v,d.byteOffset,d.byteLength)}function Cte(d){var h=new d.constructor(d.source,tk.exec(d));return h.lastIndex=d.lastIndex,h}function Ete(d){return Tc?$t(Tc.call(d)):{}}function y5(d,h){var v=h?Dv(d.buffer):d.buffer;return new d.constructor(v,d.byteOffset,d.length)}function w5(d,h){if(d!==h){var v=d!==n,k=d===null,O=d===d,I=Sr(d),F=h!==n,U=h===null,G=h===h,fe=Sr(h);if(!U&&!fe&&!I&&d>h||I&&F&&G&&!U&&!fe||k&&F&&G||!v&&G||!O)return 1;if(!k&&!I&&!fe&&d<h||fe&&v&&O&&!k&&!I||U&&v&&O||!F&&O||!G)return-1}return 0}function Ste(d,h,v){for(var k=-1,O=d.criteria,I=h.criteria,F=O.length,U=v.length;++k<F;){var G=w5(O[k],I[k]);if(G){if(k>=U)return G;var fe=v[k];return G*(fe=="desc"?-1:1)}}return d.index-h.index}function x5(d,h,v,k){for(var O=-1,I=d.length,F=v.length,U=-1,G=h.length,fe=gn(I-F,0),pe=N(G+fe),be=!k;++U<G;)pe[U]=h[U];for(;++O<F;)(be||O<I)&&(pe[v[O]]=d[O]);for(;fe--;)pe[U++]=d[O++];return pe}function C5(d,h,v,k){for(var O=-1,I=d.length,F=-1,U=v.length,G=-1,fe=h.length,pe=gn(I-U,0),be=N(pe+fe),Te=!k;++O<pe;)be[O]=d[O];for(var $e=O;++G<fe;)be[$e+G]=h[G];for(;++F<U;)(Te||O<I)&&(be[$e+v[F]]=d[O++]);return be}function lr(d,h){var v=-1,k=d.length;for(h||(h=N(k));++v<k;)h[v]=d[v];return h}function Ho(d,h,v,k){var O=!v;v||(v={});for(var I=-1,F=h.length;++I<F;){var U=h[I],G=k?k(v[U],d[U],U,v,d):n;G===n&&(G=d[U]),O?yi(v,U,G):Ac(v,U,G)}return v}function kte(d,h){return Ho(d,Wv(d),h)}function _te(d,h){return Ho(d,P5(d),h)}function Mh(d,h){return function(v,k){var O=rt(v)?BN:Xee,I=h?h():{};return O(v,d,Ke(k,2),I)}}function zl(d){return ht(function(h,v){var k=-1,O=v.length,I=O>1?v[O-1]:n,F=O>2?v[2]:n;for(I=d.length>3&&typeof I=="function"?(O--,I):n,F&&Zn(v[0],v[1],F)&&(I=O<3?n:I,O=1),h=$t(h);++k<O;){var U=v[k];U&&d(h,U,k,I)}return h})}function E5(d,h){return function(v,k){if(v==null)return v;if(!ur(v))return d(v,k);for(var O=v.length,I=h?O:-1,F=$t(v);(h?I--:++I<O)&&k(F[I],I,F)!==!1;);return v}}function S5(d){return function(h,v,k){for(var O=-1,I=$t(h),F=k(h),U=F.length;U--;){var G=F[d?U:++O];if(v(I[G],G,I)===!1)break}return h}}function Tte(d,h,v){var k=h&w,O=Rc(d);function I(){var F=this&&this!==On&&this instanceof I?O:d;return F.apply(k?v:this,arguments)}return I}function k5(d){return function(h){h=_t(h);var v=Rl(h)?po(h):n,k=v?v[0]:h.charAt(0),O=v?xs(v,1).join(""):h.slice(1);return k[d]()+O}}function Hl(d){return function(h){return av(E_(C_(h).replace(bN,"")),d,"")}}function Rc(d){return function(){var h=arguments;switch(h.length){case 0:return new d;case 1:return new d(h[0]);case 2:return new d(h[0],h[1]);case 3:return new d(h[0],h[1],h[2]);case 4:return new d(h[0],h[1],h[2],h[3]);case 5:return new d(h[0],h[1],h[2],h[3],h[4]);case 6:return new d(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new d(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var v=$l(d.prototype),k=d.apply(v,h);return en(k)?k:v}}function Ate(d,h,v){var k=Rc(d);function O(){for(var I=arguments.length,F=N(I),U=I,G=Ul(O);U--;)F[U]=arguments[U];var fe=I<3&&F[0]!==G&&F[I-1]!==G?[]:gs(F,G);if(I-=fe.length,I<v)return M5(d,h,Bh,O.placeholder,n,F,fe,n,n,v-I);var pe=this&&this!==On&&this instanceof O?k:d;return xr(pe,this,F)}return O}function _5(d){return function(h,v,k){var O=$t(h);if(!ur(h)){var I=Ke(v,3);h=Cn(h),v=function(U){return I(O[U],U,O)}}var F=d(h,v,k);return F>-1?O[I?h[F]:F]:n}}function T5(d){return xi(function(h){var v=h.length,k=v,O=qr.prototype.thru;for(d&&h.reverse();k--;){var I=h[k];if(typeof I!="function")throw new jr(a);if(O&&!F&&Ph(I)=="wrapper")var F=new qr([],!0)}for(k=F?k:v;++k<v;){I=h[k];var U=Ph(I),G=U=="wrapper"?Hv(I):n;G&&qv(G[0])&&G[1]==(A|C|_|L)&&!G[4].length&&G[9]==1?F=F[Ph(G[0])].apply(F,G[3]):F=I.length==1&&qv(I)?F[U]():F.thru(I)}return function(){var fe=arguments,pe=fe[0];if(F&&fe.length==1&&rt(pe))return F.plant(pe).value();for(var be=0,Te=v?h[be].apply(this,fe):pe;++be<v;)Te=h[be].call(this,Te);return Te}})}function Bh(d,h,v,k,O,I,F,U,G,fe){var pe=h&A,be=h&w,Te=h&x,$e=h&(C|E),Xe=h&D,pt=Te?n:Rc(d);function Ye(){for(var gt=arguments.length,wt=N(gt),kr=gt;kr--;)wt[kr]=arguments[kr];if($e)var Qn=Ul(Ye),_r=zN(wt,Qn);if(k&&(wt=x5(wt,k,O,$e)),I&&(wt=C5(wt,I,F,$e)),gt-=_r,$e&&gt<fe){var cn=gs(wt,Qn);return M5(d,h,Bh,Ye.placeholder,v,wt,cn,U,G,fe-gt)}var go=be?v:this,ki=Te?go[d]:d;return gt=wt.length,U?wt=Xte(wt,U):Xe&&gt>1&&wt.reverse(),pe&&G<gt&&(wt.length=G),this&&this!==On&&this instanceof Ye&&(ki=pt||Rc(ki)),ki.apply(go,wt)}return Ye}function A5(d,h){return function(v,k){return nte(v,d,h(k),{})}}function Ih(d,h){return function(v,k){var O;if(v===n&&k===n)return h;if(v!==n&&(O=v),k!==n){if(O===n)return k;typeof v=="string"||typeof k=="string"?(v=Er(v),k=Er(k)):(v=p5(v),k=p5(k)),O=d(v,k)}return O}}function Vv(d){return xi(function(h){return h=Yt(h,Cr(Ke())),ht(function(v){var k=this;return d(h,function(O){return xr(O,k,v)})})})}function Rh(d,h){h=h===n?" ":Er(h);var v=h.length;if(v<2)return v?Mv(h,d):h;var k=Mv(h,yh(d/Ll(h)));return Rl(h)?xs(po(k),0,d).join(""):k.slice(0,d)}function Ote(d,h,v,k){var O=h&w,I=Rc(d);function F(){for(var U=-1,G=arguments.length,fe=-1,pe=k.length,be=N(pe+G),Te=this&&this!==On&&this instanceof F?I:d;++fe<pe;)be[fe]=k[fe];for(;G--;)be[fe++]=arguments[++U];return xr(Te,O?v:this,be)}return F}function O5(d){return function(h,v,k){return k&&typeof k!="number"&&Zn(h,v,k)&&(v=k=n),h=Si(h),v===n?(v=h,h=0):v=Si(v),k=k===n?h<v?1:-1:Si(k),hte(h,v,k,d)}}function Lh(d){return function(h,v){return typeof h=="string"&&typeof v=="string"||(h=Yr(h),v=Yr(v)),d(h,v)}}function M5(d,h,v,k,O,I,F,U,G,fe){var pe=h&C,be=pe?F:n,Te=pe?n:F,$e=pe?I:n,Xe=pe?n:I;h|=pe?_:T,h&=~(pe?T:_),h&S||(h&=-4);var pt=[d,h,O,$e,be,Xe,Te,U,G,fe],Ye=v.apply(n,pt);return qv(d)&&U5(Ye,pt),Ye.placeholder=k,W5(Ye,d,h)}function Fv(d){var h=mn[d];return function(v,k){if(v=Yr(v),k=k==null?0:Hn(ut(k),292),k&&Wk(v)){var O=(_t(v)+"e").split("e"),I=h(O[0]+"e"+(+O[1]+k));return O=(_t(I)+"e").split("e"),+(O[0]+"e"+(+O[1]-k))}return h(v)}}var Mte=Vl&&1/uh(new Vl([,-0]))[1]==R?function(d){return new Vl(d)}:s2;function B5(d){return function(h){var v=Un(h);return v==Me?hv(h):v==me?GN(h):$N(h,d(h))}}function wi(d,h,v,k,O,I,F,U){var G=h&x;if(!G&&typeof d!="function")throw new jr(a);var fe=k?k.length:0;if(fe||(h&=-97,k=O=n),F=F===n?F:gn(ut(F),0),U=U===n?U:ut(U),fe-=O?O.length:0,h&T){var pe=k,be=O;k=O=n}var Te=G?n:Hv(d),$e=[d,h,v,k,O,pe,be,I,F,U];if(Te&&qte($e,Te),d=$e[0],h=$e[1],v=$e[2],k=$e[3],O=$e[4],U=$e[9]=$e[9]===n?G?0:d.length:gn($e[9]-fe,0),!U&&h&(C|E)&&(h&=-25),!h||h==w)var Xe=Tte(d,h,v);else h==C||h==E?Xe=Ate(d,h,U):(h==_||h==(w|_))&&!O.length?Xe=Ote(d,h,v,k):Xe=Bh.apply(n,$e);var pt=Te?d5:U5;return W5(pt(Xe,$e),d,h)}function I5(d,h,v,k){return d===n||mo(d,Dl[v])&&!Mt.call(k,v)?h:d}function R5(d,h,v,k,O,I){return en(d)&&en(h)&&(I.set(h,d),Th(d,h,n,R5,I),I.delete(h)),d}function Bte(d){return Dc(d)?n:d}function L5(d,h,v,k,O,I){var F=v&b,U=d.length,G=h.length;if(U!=G&&!(F&&G>U))return!1;var fe=I.get(d),pe=I.get(h);if(fe&&pe)return fe==h&&pe==d;var be=-1,Te=!0,$e=v&y?new va:n;for(I.set(d,h),I.set(h,d);++be<U;){var Xe=d[be],pt=h[be];if(k)var Ye=F?k(pt,Xe,be,h,d,I):k(Xe,pt,be,d,h,I);if(Ye!==n){if(Ye)continue;Te=!1;break}if($e){if(!lv(h,function(gt,wt){if(!Cc($e,wt)&&(Xe===gt||O(Xe,gt,v,k,I)))return $e.push(wt)})){Te=!1;break}}else if(!(Xe===pt||O(Xe,pt,v,k,I))){Te=!1;break}}return I.delete(d),I.delete(h),Te}function Ite(d,h,v,k,O,I,F){switch(v){case we:if(d.byteLength!=h.byteLength||d.byteOffset!=h.byteOffset)return!1;d=d.buffer,h=h.buffer;case ce:return!(d.byteLength!=h.byteLength||!I(new mh(d),new mh(h)));case Y:case ae:case Ue:return mo(+d,+h);case he:return d.name==h.name&&d.message==h.message;case ie:case Le:return d==h+"";case Me:var U=hv;case me:var G=k&b;if(U||(U=uh),d.size!=h.size&&!G)return!1;var fe=F.get(d);if(fe)return fe==h;k|=y,F.set(d,h);var pe=L5(U(d),U(h),k,O,I,F);return F.delete(d),pe;case nt:if(Tc)return Tc.call(d)==Tc.call(h)}return!1}function Rte(d,h,v,k,O,I){var F=v&b,U=$v(d),G=U.length,fe=$v(h),pe=fe.length;if(G!=pe&&!F)return!1;for(var be=G;be--;){var Te=U[be];if(!(F?Te in h:Mt.call(h,Te)))return!1}var $e=I.get(d),Xe=I.get(h);if($e&&Xe)return $e==h&&Xe==d;var pt=!0;I.set(d,h),I.set(h,d);for(var Ye=F;++be<G;){Te=U[be];var gt=d[Te],wt=h[Te];if(k)var kr=F?k(wt,gt,Te,h,d,I):k(gt,wt,Te,d,h,I);if(!(kr===n?gt===wt||O(gt,wt,v,k,I):kr)){pt=!1;break}Ye||(Ye=Te=="constructor")}if(pt&&!Ye){var Qn=d.constructor,_r=h.constructor;Qn!=_r&&"constructor"in d&&"constructor"in h&&!(typeof Qn=="function"&&Qn instanceof Qn&&typeof _r=="function"&&_r instanceof _r)&&(pt=!1)}return I.delete(d),I.delete(h),pt}function xi(d){return Gv(z5(d,n,Y5),d+"")}function $v(d){return e5(d,Cn,Wv)}function zv(d){return e5(d,cr,P5)}var Hv=xh?function(d){return xh.get(d)}:s2;function Ph(d){for(var h=d.name+"",v=Fl[h],k=Mt.call(Fl,h)?v.length:0;k--;){var O=v[k],I=O.func;if(I==null||I==d)return O.name}return h}function Ul(d){var h=Mt.call(B,"placeholder")?B:d;return h.placeholder}function Ke(){var d=B.iteratee||o2;return d=d===o2?r5:d,arguments.length?d(arguments[0],arguments[1]):d}function Dh(d,h){var v=d.__data__;return Hte(h)?v[typeof h=="string"?"string":"hash"]:v.map}function Uv(d){for(var h=Cn(d),v=h.length;v--;){var k=h[v],O=d[k];h[v]=[k,O,F5(O)]}return h}function xa(d,h){var v=jN(d,h);return n5(v)?v:n}function Lte(d){var h=Mt.call(d,ga),v=d[ga];try{d[ga]=n;var k=!0}catch{}var O=ph.call(d);return k&&(h?d[ga]=v:delete d[ga]),O}var Wv=gv?function(d){return d==null?[]:(d=$t(d),hs(gv(d),function(h){return Hk.call(d,h)}))}:a2,P5=gv?function(d){for(var h=[];d;)ms(h,Wv(d)),d=gh(d);return h}:a2,Un=Jn;(bv&&Un(new bv(new ArrayBuffer(1)))!=we||Sc&&Un(new Sc)!=Me||vv&&Un(vv.resolve())!=V||Vl&&Un(new Vl)!=me||kc&&Un(new kc)!=ee)&&(Un=function(d){var h=Jn(d),v=h==ke?d.constructor:n,k=v?Ca(v):"";if(k)switch(k){case gee:return we;case bee:return Me;case vee:return V;case yee:return me;case wee:return ee}return h});function Pte(d,h,v){for(var k=-1,O=v.length;++k<O;){var I=v[k],F=I.size;switch(I.type){case"drop":d+=F;break;case"dropRight":h-=F;break;case"take":h=Hn(h,d+F);break;case"takeRight":d=gn(d,h-F);break}}return{start:d,end:h}}function Dte(d){var h=d.match(UQ);return h?h[1].split(WQ):[]}function D5(d,h,v){h=ws(h,d);for(var k=-1,O=h.length,I=!1;++k<O;){var F=Uo(h[k]);if(!(I=d!=null&&v(d,F)))break;d=d[F]}return I||++k!=O?I:(O=d==null?0:d.length,!!O&&Wh(O)&&Ci(F,O)&&(rt(d)||Ea(d)))}function Vte(d){var h=d.length,v=new d.constructor(h);return h&&typeof d[0]=="string"&&Mt.call(d,"index")&&(v.index=d.index,v.input=d.input),v}function V5(d){return typeof d.constructor=="function"&&!Lc(d)?$l(gh(d)):{}}function Fte(d,h,v){var k=d.constructor;switch(h){case ce:return Dv(d);case Y:case ae:return new k(+d);case we:return xte(d,v);case Ve:case Qe:case Ot:case Nt:case hi:case oe:case Pe:case qe:case Et:return y5(d,v);case Me:return new k;case Ue:case Le:return new k(d);case ie:return Cte(d);case me:return new k;case nt:return Ete(d)}}function $te(d,h){var v=h.length;if(!v)return d;var k=v-1;return h[k]=(v>1?"& ":"")+h[k],h=h.join(v>2?", ":" "),d.replace(HQ,`{
117
117
  /* [wrapped with `+h+`] */
118
- `)}function zte(d){return rt(d)||Ea(d)||!!(Uk&&d&&d[Uk])}function Ci(d,h){var v=typeof d;return h=h??q,!!h&&(v=="number"||v!="symbol"&&QQ.test(d))&&d>-1&&d%1==0&&d<h}function Zn(d,h,v){if(!en(v))return!1;var k=typeof h;return(k=="number"?ur(v)&&Ci(h,v.length):k=="string"&&h in v)?mo(v[h],d):!1}function jv(d,h){if(rt(d))return!1;var v=typeof d;return v=="number"||v=="symbol"||v=="boolean"||d==null||Sr(d)?!0:Ml.test(d)||!xc.test(d)||h!=null&&d in $t(h)}function Hte(d){var h=typeof d;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?d!=="__proto__":d===null}function qv(d){var h=Ph(d),v=B[h];if(typeof v!="function"||!(h in vt.prototype))return!1;if(d===v)return!0;var k=Hv(v);return!!k&&d===k[0]}function Ute(d){return!!Fk&&Fk in d}var Wte=dh?Ei:l2;function Lc(d){var h=d&&d.constructor,v=typeof h=="function"&&h.prototype||Dl;return d===v}function F5(d){return d===d&&!en(d)}function $5(d,h){return function(v){return v==null?!1:v[d]===h&&(h!==n||d in $t(v))}}function jte(d){var h=Hh(d,function(k){return v.size===c&&v.clear(),k}),v=h.cache;return h}function qte(d,h){var v=d[1],k=h[1],O=v|k,I=O<(w|x|A),F=k==A&&v==C||k==A&&v==L&&d[7].length<=h[8]||k==(A|L)&&h[7].length<=h[8]&&v==C;if(!(I||F))return d;k&w&&(d[2]=h[2],O|=v&w?0:S);var U=h[3];if(U){var G=d[3];d[3]=G?x5(G,U,h[4]):U,d[4]=G?gs(d[3],f):h[4]}return U=h[5],U&&(G=d[5],d[5]=G?C5(G,U,h[6]):U,d[6]=G?gs(d[5],f):h[6]),U=h[7],U&&(d[7]=U),k&A&&(d[8]=d[8]==null?h[8]:Hn(d[8],h[8])),d[9]==null&&(d[9]=h[9]),d[0]=h[0],d[1]=O,d}function Kte(d){var h=[];if(d!=null)for(var v in $t(d))h.push(v);return h}function Gte(d){return ph.call(d)}function z5(d,h,v){return h=gn(h===n?d.length-1:h,0),function(){for(var k=arguments,O=-1,I=gn(k.length-h,0),F=Q(I);++O<I;)F[O]=k[h+O];O=-1;for(var U=Q(h+1);++O<h;)U[O]=k[O];return U[h]=v(F),xr(d,this,U)}}function H5(d,h){return h.length<2?d:wa(d,Gr(h,0,-1))}function Xte(d,h){for(var v=d.length,k=Hn(h.length,v),O=lr(d);k--;){var I=h[k];d[k]=Ci(I,v)?O[I]:n}return d}function Kv(d,h){if(!(h==="constructor"&&typeof d[h]=="function")&&h!="__proto__")return d[h]}var U5=j5(d5),Pc=uee||function(d,h){return On.setTimeout(d,h)},Gv=j5(bte);function W5(d,h,v){var k=h+"";return Gv(d,$te(k,Yte(Dte(k),v)))}function j5(d){var h=0,v=0;return function(){var k=pee(),O=X-(k-v);if(v=k,O>0){if(++h>=j)return arguments[0]}else h=0;return d.apply(n,arguments)}}function Vh(d,h){var v=-1,k=d.length,O=k-1;for(h=h===n?k:h;++v<h;){var I=Ov(v,O),F=d[I];d[I]=d[v],d[v]=F}return d.length=h,d}var q5=jte(function(d){var h=[];return d.charCodeAt(0)===46&&h.push(""),d.replace(FQ,function(v,k,O,I){h.push(O?I.replace(KQ,"$1"):k||v)}),h});function Uo(d){if(typeof d=="string"||Sr(d))return d;var h=d+"";return h=="0"&&1/d==-1/0?"-0":h}function Ca(d){if(d!=null){try{return fh.call(d)}catch{}try{return d+""}catch{}}return""}function Yte(d,h){return Wr(He,function(v){var k="_."+v[0];h&v[1]&&!ah(d,k)&&d.push(k)}),d.sort()}function K5(d){if(d instanceof vt)return d.clone();var h=new qr(d.__wrapped__,d.__chain__);return h.__actions__=lr(d.__actions__),h.__index__=d.__index__,h.__values__=d.__values__,h}function Jte(d,h,v){(v?Zn(d,h,v):h===n)?h=1:h=gn(ut(h),0);var k=d==null?0:d.length;if(!k||h<1)return[];for(var O=0,I=0,F=Q(yh(k/h));O<k;)F[I++]=Gr(d,O,O+=h);return F}function Zte(d){for(var h=-1,v=d==null?0:d.length,k=0,O=[];++h<v;){var I=d[h];I&&(O[k++]=I)}return O}function Qte(){var d=arguments.length;if(!d)return[];for(var h=Q(d-1),v=arguments[0],k=d;k--;)h[k-1]=arguments[k];return ms(rt(v)?lr(v):[v],Mn(h,1))}var Nte=ht(function(d,h){return un(d)?Oc(d,Mn(h,1,un,!0)):[]}),ene=ht(function(d,h){var v=Xr(h);return un(v)&&(v=n),un(d)?Oc(d,Mn(h,1,un,!0),Ke(v,2)):[]}),tne=ht(function(d,h){var v=Xr(h);return un(v)&&(v=n),un(d)?Oc(d,Mn(h,1,un,!0),n,v):[]});function nne(d,h,v){var k=d==null?0:d.length;return k?(h=v||h===n?1:ut(h),Gr(d,h<0?0:h,k)):[]}function rne(d,h,v){var k=d==null?0:d.length;return k?(h=v||h===n?1:ut(h),h=k-h,Gr(d,0,h<0?0:h)):[]}function one(d,h){return d&&d.length?Oh(d,Ke(h,3),!0,!0):[]}function ine(d,h){return d&&d.length?Oh(d,Ke(h,3),!0):[]}function sne(d,h,v,k){var O=d==null?0:d.length;return O?(v&&typeof v!="number"&&Zn(d,h,v)&&(v=0,k=O),Qee(d,h,v,k)):[]}function G5(d,h,v){var k=d==null?0:d.length;if(!k)return-1;var O=v==null?0:ut(v);return O<0&&(O=gn(k+O,0)),lh(d,Ke(h,3),O)}function X5(d,h,v){var k=d==null?0:d.length;if(!k)return-1;var O=k-1;return v!==n&&(O=ut(v),O=v<0?gn(k+O,0):Hn(O,k-1)),lh(d,Ke(h,3),O,!0)}function Y5(d){var h=d==null?0:d.length;return h?Mn(d,1):[]}function ane(d){var h=d==null?0:d.length;return h?Mn(d,R):[]}function lne(d,h){var v=d==null?0:d.length;return v?(h=h===n?1:ut(h),Mn(d,h)):[]}function une(d){for(var h=-1,v=d==null?0:d.length,k={};++h<v;){var O=d[h];k[O[0]]=O[1]}return k}function J5(d){return d&&d.length?d[0]:n}function cne(d,h,v){var k=d==null?0:d.length;if(!k)return-1;var O=v==null?0:ut(v);return O<0&&(O=gn(k+O,0)),Il(d,h,O)}function dne(d){var h=d==null?0:d.length;return h?Gr(d,0,-1):[]}var fne=ht(function(d){var h=Yt(d,Lv);return h.length&&h[0]===d[0]?Sv(h):[]}),pne=ht(function(d){var h=Xr(d),v=Yt(d,Lv);return h===Xr(v)?h=n:v.pop(),v.length&&v[0]===d[0]?Sv(v,Ke(h,2)):[]}),hne=ht(function(d){var h=Xr(d),v=Yt(d,Lv);return h=typeof h=="function"?h:n,h&&v.pop(),v.length&&v[0]===d[0]?Sv(v,n,h):[]});function mne(d,h){return d==null?"":dee.call(d,h)}function Xr(d){var h=d==null?0:d.length;return h?d[h-1]:n}function gne(d,h,v){var k=d==null?0:d.length;if(!k)return-1;var O=k;return v!==n&&(O=ut(v),O=O<0?gn(k+O,0):Hn(O,k-1)),h===h?YN(d,h,O):lh(d,Mk,O,!0)}function bne(d,h){return d&&d.length?a5(d,ut(h)):n}var vne=ht(Z5);function Z5(d,h){return d&&d.length&&h&&h.length?Av(d,h):d}function yne(d,h,v){return d&&d.length&&h&&h.length?Av(d,h,Ke(v,2)):d}function wne(d,h,v){return d&&d.length&&h&&h.length?Av(d,h,n,v):d}var xne=xi(function(d,h){var v=d==null?0:d.length,k=wv(d,h);return c5(d,Yt(h,function(O){return Ci(O,v)?+O:O}).sort(w5)),k});function Cne(d,h){var v=[];if(!(d&&d.length))return v;var k=-1,O=[],I=d.length;for(h=Ke(h,3);++k<I;){var F=d[k];h(F,k,d)&&(v.push(F),O.push(k))}return c5(d,O),v}function Xv(d){return d==null?d:mee.call(d)}function Ene(d,h,v){var k=d==null?0:d.length;return k?(v&&typeof v!="number"&&Zn(d,h,v)?(h=0,v=k):(h=h==null?0:ut(h),v=v===n?k:ut(v)),Gr(d,h,v)):[]}function Sne(d,h){return Ah(d,h)}function kne(d,h,v){return Bv(d,h,Ke(v,2))}function _ne(d,h){var v=d==null?0:d.length;if(v){var k=Ah(d,h);if(k<v&&mo(d[k],h))return k}return-1}function Tne(d,h){return Ah(d,h,!0)}function Ane(d,h,v){return Bv(d,h,Ke(v,2),!0)}function One(d,h){var v=d==null?0:d.length;if(v){var k=Ah(d,h,!0)-1;if(mo(d[k],h))return k}return-1}function Mne(d){return d&&d.length?f5(d):[]}function Bne(d,h){return d&&d.length?f5(d,Ke(h,2)):[]}function Ine(d){var h=d==null?0:d.length;return h?Gr(d,1,h):[]}function Rne(d,h,v){return d&&d.length?(h=v||h===n?1:ut(h),Gr(d,0,h<0?0:h)):[]}function Lne(d,h,v){var k=d==null?0:d.length;return k?(h=v||h===n?1:ut(h),h=k-h,Gr(d,h<0?0:h,k)):[]}function Pne(d,h){return d&&d.length?Oh(d,Ke(h,3),!1,!0):[]}function Dne(d,h){return d&&d.length?Oh(d,Ke(h,3)):[]}var Vne=ht(function(d){return ys(Mn(d,1,un,!0))}),Fne=ht(function(d){var h=Xr(d);return un(h)&&(h=n),ys(Mn(d,1,un,!0),Ke(h,2))}),$ne=ht(function(d){var h=Xr(d);return h=typeof h=="function"?h:n,ys(Mn(d,1,un,!0),n,h)});function zne(d){return d&&d.length?ys(d):[]}function Hne(d,h){return d&&d.length?ys(d,Ke(h,2)):[]}function Une(d,h){return h=typeof h=="function"?h:n,d&&d.length?ys(d,n,h):[]}function Yv(d){if(!(d&&d.length))return[];var h=0;return d=hs(d,function(v){if(un(v))return h=gn(v.length,h),!0}),fv(h,function(v){return Yt(d,uv(v))})}function Q5(d,h){if(!(d&&d.length))return[];var v=Yv(d);return h==null?v:Yt(v,function(k){return xr(h,n,k)})}var Wne=ht(function(d,h){return un(d)?Oc(d,h):[]}),jne=ht(function(d){return Rv(hs(d,un))}),qne=ht(function(d){var h=Xr(d);return un(h)&&(h=n),Rv(hs(d,un),Ke(h,2))}),Kne=ht(function(d){var h=Xr(d);return h=typeof h=="function"?h:n,Rv(hs(d,un),n,h)}),Gne=ht(Yv);function Xne(d,h){return g5(d||[],h||[],Ac)}function Yne(d,h){return g5(d||[],h||[],Ic)}var Jne=ht(function(d){var h=d.length,v=h>1?d[h-1]:n;return v=typeof v=="function"?(d.pop(),v):n,Q5(d,v)});function N5(d){var h=B(d);return h.__chain__=!0,h}function Zne(d,h){return h(d),d}function Fh(d,h){return h(d)}var Qne=xi(function(d){var h=d.length,v=h?d[0]:0,k=this.__wrapped__,O=function(I){return wv(I,d)};return h>1||this.__actions__.length||!(k instanceof vt)||!Ci(v)?this.thru(O):(k=k.slice(v,+v+(h?1:0)),k.__actions__.push({func:Fh,args:[O],thisArg:n}),new qr(k,this.__chain__).thru(function(I){return h&&!I.length&&I.push(n),I}))});function Nne(){return N5(this)}function ere(){return new qr(this.value(),this.__chain__)}function tre(){this.__values__===n&&(this.__values__=p_(this.value()));var d=this.__index__>=this.__values__.length,h=d?n:this.__values__[this.__index__++];return{done:d,value:h}}function nre(){return this}function rre(d){for(var h,v=this;v instanceof Eh;){var k=K5(v);k.__index__=0,k.__values__=n,h?O.__wrapped__=k:h=k;var O=k;v=v.__wrapped__}return O.__wrapped__=d,h}function ore(){var d=this.__wrapped__;if(d instanceof vt){var h=d;return this.__actions__.length&&(h=new vt(this)),h=h.reverse(),h.__actions__.push({func:Fh,args:[Xv],thisArg:n}),new qr(h,this.__chain__)}return this.thru(Xv)}function ire(){return m5(this.__wrapped__,this.__actions__)}var sre=Mh(function(d,h,v){Mt.call(d,v)?++d[v]:yi(d,v,1)});function are(d,h,v){var k=rt(d)?Ak:Zee;return v&&Zn(d,h,v)&&(h=n),k(d,Ke(h,3))}function lre(d,h){var v=rt(d)?hs:Qk;return v(d,Ke(h,3))}var ure=_5(G5),cre=_5(X5);function dre(d,h){return Mn($h(d,h),1)}function fre(d,h){return Mn($h(d,h),R)}function pre(d,h,v){return v=v===n?1:ut(v),Mn($h(d,h),v)}function e_(d,h){var v=rt(d)?Wr:vs;return v(d,Ke(h,3))}function t_(d,h){var v=rt(d)?IN:Zk;return v(d,Ke(h,3))}var hre=Mh(function(d,h,v){Mt.call(d,v)?d[v].push(h):yi(d,v,[h])});function mre(d,h,v,k){d=ur(d)?d:jl(d),v=v&&!k?ut(v):0;var O=d.length;return v<0&&(v=gn(O+v,0)),jh(d)?v<=O&&d.indexOf(h,v)>-1:!!O&&Il(d,h,v)>-1}var gre=ht(function(d,h,v){var k=-1,O=typeof h=="function",I=ur(d)?Q(d.length):[];return vs(d,function(F){I[++k]=O?xr(h,F,v):Mc(F,h,v)}),I}),bre=Mh(function(d,h,v){yi(d,v,h)});function $h(d,h){var v=rt(d)?Yt:o5;return v(d,Ke(h,3))}function vre(d,h,v,k){return d==null?[]:(rt(h)||(h=h==null?[]:[h]),v=k?n:v,rt(v)||(v=v==null?[]:[v]),l5(d,h,v))}var yre=Mh(function(d,h,v){d[v?0:1].push(h)},function(){return[[],[]]});function wre(d,h,v){var k=rt(d)?av:Ik,O=arguments.length<3;return k(d,Ke(h,4),v,O,vs)}function xre(d,h,v){var k=rt(d)?RN:Ik,O=arguments.length<3;return k(d,Ke(h,4),v,O,Zk)}function Cre(d,h){var v=rt(d)?hs:Qk;return v(d,Uh(Ke(h,3)))}function Ere(d){var h=rt(d)?Gk:mte;return h(d)}function Sre(d,h,v){(v?Zn(d,h,v):h===n)?h=1:h=ut(h);var k=rt(d)?Kee:gte;return k(d,h)}function kre(d){var h=rt(d)?Gee:vte;return h(d)}function _re(d){if(d==null)return 0;if(ur(d))return jh(d)?Ll(d):d.length;var h=Un(d);return h==Me||h==me?d.size:_v(d).length}function Tre(d,h,v){var k=rt(d)?lv:yte;return v&&Zn(d,h,v)&&(h=n),k(d,Ke(h,3))}var Are=ht(function(d,h){if(d==null)return[];var v=h.length;return v>1&&Zn(d,h[0],h[1])?h=[]:v>2&&Zn(h[0],h[1],h[2])&&(h=[h[0]]),l5(d,Mn(h,1),[])}),zh=lee||function(){return On.Date.now()};function Ore(d,h){if(typeof h!="function")throw new jr(a);return d=ut(d),function(){if(--d<1)return h.apply(this,arguments)}}function n_(d,h,v){return h=v?n:h,h=d&&h==null?d.length:h,wi(d,A,n,n,n,n,h)}function r_(d,h){var v;if(typeof h!="function")throw new jr(a);return d=ut(d),function(){return--d>0&&(v=h.apply(this,arguments)),d<=1&&(h=n),v}}var Jv=ht(function(d,h,v){var k=w;if(v.length){var O=gs(v,Ul(Jv));k|=_}return wi(d,k,h,v,O)}),o_=ht(function(d,h,v){var k=w|x;if(v.length){var O=gs(v,Ul(o_));k|=_}return wi(h,k,d,v,O)});function i_(d,h,v){h=v?n:h;var k=wi(d,C,n,n,n,n,n,h);return k.placeholder=i_.placeholder,k}function s_(d,h,v){h=v?n:h;var k=wi(d,E,n,n,n,n,n,h);return k.placeholder=s_.placeholder,k}function a_(d,h,v){var k,O,I,F,U,G,fe=0,pe=!1,be=!1,Te=!0;if(typeof d!="function")throw new jr(a);h=Yr(h)||0,en(v)&&(pe=!!v.leading,be="maxWait"in v,I=be?gn(Yr(v.maxWait)||0,h):I,Te="trailing"in v?!!v.trailing:Te);function $e(cn){var go=k,ki=O;return k=O=n,fe=cn,F=d.apply(ki,go),F}function Xe(cn){return fe=cn,U=Pc(gt,h),pe?$e(cn):F}function pt(cn){var go=cn-G,ki=cn-fe,__=h-go;return be?Hn(__,I-ki):__}function Ye(cn){var go=cn-G,ki=cn-fe;return G===n||go>=h||go<0||be&&ki>=I}function gt(){var cn=zh();if(Ye(cn))return wt(cn);U=Pc(gt,pt(cn))}function wt(cn){return U=n,Te&&k?$e(cn):(k=O=n,F)}function kr(){U!==n&&b5(U),fe=0,k=G=O=U=n}function Qn(){return U===n?F:wt(zh())}function _r(){var cn=zh(),go=Ye(cn);if(k=arguments,O=this,G=cn,go){if(U===n)return Xe(G);if(be)return b5(U),U=Pc(gt,h),$e(G)}return U===n&&(U=Pc(gt,h)),F}return _r.cancel=kr,_r.flush=Qn,_r}var Mre=ht(function(d,h){return Jk(d,1,h)}),Bre=ht(function(d,h,v){return Jk(d,Yr(h)||0,v)});function Ire(d){return wi(d,D)}function Hh(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new jr(a);var v=function(){var k=arguments,O=h?h.apply(this,k):k[0],I=v.cache;if(I.has(O))return I.get(O);var F=d.apply(this,k);return v.cache=I.set(O,F)||I,F};return v.cache=new(Hh.Cache||vi),v}Hh.Cache=vi;function Uh(d){if(typeof d!="function")throw new jr(a);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}function Rre(d){return r_(2,d)}var Lre=wte(function(d,h){h=h.length==1&&rt(h[0])?Yt(h[0],Cr(Ke())):Yt(Mn(h,1),Cr(Ke()));var v=h.length;return ht(function(k){for(var O=-1,I=Hn(k.length,v);++O<I;)k[O]=h[O].call(this,k[O]);return xr(d,this,k)})}),Zv=ht(function(d,h){var v=gs(h,Ul(Zv));return wi(d,_,n,h,v)}),l_=ht(function(d,h){var v=gs(h,Ul(l_));return wi(d,T,n,h,v)}),Pre=xi(function(d,h){return wi(d,L,n,n,n,h)});function Dre(d,h){if(typeof d!="function")throw new jr(a);return h=h===n?h:ut(h),ht(d,h)}function Vre(d,h){if(typeof d!="function")throw new jr(a);return h=h==null?0:gn(ut(h),0),ht(function(v){var k=v[h],O=xs(v,0,h);return k&&ms(O,k),xr(d,this,O)})}function Fre(d,h,v){var k=!0,O=!0;if(typeof d!="function")throw new jr(a);return en(v)&&(k="leading"in v?!!v.leading:k,O="trailing"in v?!!v.trailing:O),a_(d,h,{leading:k,maxWait:h,trailing:O})}function $re(d){return n_(d,1)}function zre(d,h){return Zv(Pv(h),d)}function Hre(){if(!arguments.length)return[];var d=arguments[0];return rt(d)?d:[d]}function Ure(d){return Kr(d,g)}function Wre(d,h){return h=typeof h=="function"?h:n,Kr(d,g,h)}function jre(d){return Kr(d,p|g)}function qre(d,h){return h=typeof h=="function"?h:n,Kr(d,p|g,h)}function Kre(d,h){return h==null||Yk(d,h,Cn(h))}function mo(d,h){return d===h||d!==d&&h!==h}var Gre=Lh(Ev),Xre=Lh(function(d,h){return d>=h}),Ea=t5(function(){return arguments}())?t5:function(d){return sn(d)&&Mt.call(d,"callee")&&!Hk.call(d,"callee")},rt=Q.isArray,Yre=Ck?Cr(Ck):rte;function ur(d){return d!=null&&Wh(d.length)&&!Ei(d)}function un(d){return sn(d)&&ur(d)}function Jre(d){return d===!0||d===!1||sn(d)&&Jn(d)==Y}var Cs=cee||l2,Zre=Ek?Cr(Ek):ote;function Qre(d){return sn(d)&&d.nodeType===1&&!Dc(d)}function Nre(d){if(d==null)return!0;if(ur(d)&&(rt(d)||typeof d=="string"||typeof d.splice=="function"||Cs(d)||Wl(d)||Ea(d)))return!d.length;var h=Un(d);if(h==Me||h==me)return!d.size;if(Lc(d))return!_v(d).length;for(var v in d)if(Mt.call(d,v))return!1;return!0}function eoe(d,h){return Bc(d,h)}function toe(d,h,v){v=typeof v=="function"?v:n;var k=v?v(d,h):n;return k===n?Bc(d,h,n,v):!!k}function Qv(d){if(!sn(d))return!1;var h=Jn(d);return h==he||h==ue||typeof d.message=="string"&&typeof d.name=="string"&&!Dc(d)}function noe(d){return typeof d=="number"&&Wk(d)}function Ei(d){if(!en(d))return!1;var h=Jn(d);return h==J||h==ve||h==H||h==P}function u_(d){return typeof d=="number"&&d==ut(d)}function Wh(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=q}function en(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function sn(d){return d!=null&&typeof d=="object"}var c_=Sk?Cr(Sk):ste;function roe(d,h){return d===h||kv(d,h,Uv(h))}function ooe(d,h,v){return v=typeof v=="function"?v:n,kv(d,h,Uv(h),v)}function ioe(d){return d_(d)&&d!=+d}function soe(d){if(Wte(d))throw new et(s);return n5(d)}function aoe(d){return d===null}function loe(d){return d==null}function d_(d){return typeof d=="number"||sn(d)&&Jn(d)==Ue}function Dc(d){if(!sn(d)||Jn(d)!=ke)return!1;var h=gh(d);if(h===null)return!0;var v=Mt.call(h,"constructor")&&h.constructor;return typeof v=="function"&&v instanceof v&&fh.call(v)==oee}var Nv=kk?Cr(kk):ate;function uoe(d){return u_(d)&&d>=-9007199254740991&&d<=q}var f_=_k?Cr(_k):lte;function jh(d){return typeof d=="string"||!rt(d)&&sn(d)&&Jn(d)==Le}function Sr(d){return typeof d=="symbol"||sn(d)&&Jn(d)==nt}var Wl=Tk?Cr(Tk):ute;function coe(d){return d===n}function doe(d){return sn(d)&&Un(d)==ee}function foe(d){return sn(d)&&Jn(d)==ge}var poe=Lh(Tv),hoe=Lh(function(d,h){return d<=h});function p_(d){if(!d)return[];if(ur(d))return jh(d)?po(d):lr(d);if(Ec&&d[Ec])return KN(d[Ec]());var h=Un(d),v=h==Me?hv:h==me?uh:jl;return v(d)}function Si(d){if(!d)return d===0?d:0;if(d=Yr(d),d===R||d===-1/0){var h=d<0?-1:1;return h*Z}return d===d?d:0}function ut(d){var h=Si(d),v=h%1;return h===h?v?h-v:h:0}function h_(d){return d?ya(ut(d),0,ne):0}function Yr(d){if(typeof d=="number")return d;if(Sr(d))return te;if(en(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=en(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=Rk(d);var v=YQ.test(d);return v||ZQ.test(d)?ON(d.slice(2),v?2:8):XQ.test(d)?te:+d}function m_(d){return Ho(d,cr(d))}function moe(d){return d?ya(ut(d),-9007199254740991,q):d===0?d:0}function _t(d){return d==null?"":Er(d)}var goe=zl(function(d,h){if(Lc(h)||ur(h)){Ho(h,Cn(h),d);return}for(var v in h)Mt.call(h,v)&&Ac(d,v,h[v])}),g_=zl(function(d,h){Ho(h,cr(h),d)}),qh=zl(function(d,h,v,k){Ho(h,cr(h),d,k)}),boe=zl(function(d,h,v,k){Ho(h,Cn(h),d,k)}),voe=xi(wv);function yoe(d,h){var v=$l(d);return h==null?v:Xk(v,h)}var woe=ht(function(d,h){d=$t(d);var v=-1,k=h.length,O=k>2?h[2]:n;for(O&&Zn(h[0],h[1],O)&&(k=1);++v<k;)for(var I=h[v],F=cr(I),U=-1,G=F.length;++U<G;){var fe=F[U],pe=d[fe];(pe===n||mo(pe,Dl[fe])&&!Mt.call(d,fe))&&(d[fe]=I[fe])}return d}),xoe=ht(function(d){return d.push(n,R5),xr(b_,n,d)});function Coe(d,h){return Ok(d,Ke(h,3),zo)}function Eoe(d,h){return Ok(d,Ke(h,3),Cv)}function Soe(d,h){return d==null?d:xv(d,Ke(h,3),cr)}function koe(d,h){return d==null?d:Nk(d,Ke(h,3),cr)}function _oe(d,h){return d&&zo(d,Ke(h,3))}function Toe(d,h){return d&&Cv(d,Ke(h,3))}function Aoe(d){return d==null?[]:_h(d,Cn(d))}function Ooe(d){return d==null?[]:_h(d,cr(d))}function e2(d,h,v){var k=d==null?n:wa(d,h);return k===n?v:k}function Moe(d,h){return d!=null&&D5(d,h,Nee)}function t2(d,h){return d!=null&&D5(d,h,ete)}var Boe=A5(function(d,h,v){h!=null&&typeof h.toString!="function"&&(h=ph.call(h)),d[h]=v},r2(dr)),Ioe=A5(function(d,h,v){h!=null&&typeof h.toString!="function"&&(h=ph.call(h)),Mt.call(d,h)?d[h].push(v):d[h]=[v]},Ke),Roe=ht(Mc);function Cn(d){return ur(d)?Kk(d):_v(d)}function cr(d){return ur(d)?Kk(d,!0):cte(d)}function Loe(d,h){var v={};return h=Ke(h,3),zo(d,function(k,O,I){yi(v,h(k,O,I),k)}),v}function Poe(d,h){var v={};return h=Ke(h,3),zo(d,function(k,O,I){yi(v,O,h(k,O,I))}),v}var Doe=zl(function(d,h,v){Th(d,h,v)}),b_=zl(function(d,h,v,k){Th(d,h,v,k)}),Voe=xi(function(d,h){var v={};if(d==null)return v;var k=!1;h=Yt(h,function(I){return I=ws(I,d),k||(k=I.length>1),I}),Ho(d,zv(d),v),k&&(v=Kr(v,p|m|g,Bte));for(var O=h.length;O--;)Iv(v,h[O]);return v});function Foe(d,h){return v_(d,Uh(Ke(h)))}var $oe=xi(function(d,h){return d==null?{}:fte(d,h)});function v_(d,h){if(d==null)return{};var v=Yt(zv(d),function(k){return[k]});return h=Ke(h),u5(d,v,function(k,O){return h(k,O[0])})}function zoe(d,h,v){h=ws(h,d);var k=-1,O=h.length;for(O||(O=1,d=n);++k<O;){var I=d==null?n:d[Uo(h[k])];I===n&&(k=O,I=v),d=Ei(I)?I.call(d):I}return d}function Hoe(d,h,v){return d==null?d:Ic(d,h,v)}function Uoe(d,h,v,k){return k=typeof k=="function"?k:n,d==null?d:Ic(d,h,v,k)}var y_=B5(Cn),w_=B5(cr);function Woe(d,h,v){var k=rt(d),O=k||Cs(d)||Wl(d);if(h=Ke(h,4),v==null){var I=d&&d.constructor;O?v=k?new I:[]:en(d)?v=Ei(I)?$l(gh(d)):{}:v={}}return(O?Wr:zo)(d,function(F,U,G){return h(v,F,U,G)}),v}function joe(d,h){return d==null?!0:Iv(d,h)}function qoe(d,h,v){return d==null?d:h5(d,h,Pv(v))}function Koe(d,h,v,k){return k=typeof k=="function"?k:n,d==null?d:h5(d,h,Pv(v),k)}function jl(d){return d==null?[]:pv(d,Cn(d))}function Goe(d){return d==null?[]:pv(d,cr(d))}function Xoe(d,h,v){return v===n&&(v=h,h=n),v!==n&&(v=Yr(v),v=v===v?v:0),h!==n&&(h=Yr(h),h=h===h?h:0),ya(Yr(d),h,v)}function Yoe(d,h,v){return h=Si(h),v===n?(v=h,h=0):v=Si(v),d=Yr(d),tte(d,h,v)}function Joe(d,h,v){if(v&&typeof v!="boolean"&&Zn(d,h,v)&&(h=v=n),v===n&&(typeof h=="boolean"?(v=h,h=n):typeof d=="boolean"&&(v=d,d=n)),d===n&&h===n?(d=0,h=1):(d=Si(d),h===n?(h=d,d=0):h=Si(h)),d>h){var k=d;d=h,h=k}if(v||d%1||h%1){var O=jk();return Hn(d+O*(h-d+AN("1e-"+((O+"").length-1))),h)}return Ov(d,h)}var Zoe=Hl(function(d,h,v){return h=h.toLowerCase(),d+(v?x_(h):h)});function x_(d){return n2(_t(d).toLowerCase())}function C_(d){return d=_t(d),d&&d.replace(NQ,HN).replace(vN,"")}function Qoe(d,h,v){d=_t(d),h=Er(h);var k=d.length;v=v===n?k:ya(ut(v),0,k);var O=v;return v-=h.length,v>=0&&d.slice(v,O)==h}function Noe(d){return d=_t(d),d&&wc.test(d)?d.replace(yc,UN):d}function eie(d){return d=_t(d),d&&$Q.test(d)?d.replace(Zb,"\\$&"):d}var tie=Hl(function(d,h,v){return d+(v?"-":"")+h.toLowerCase()}),nie=Hl(function(d,h,v){return d+(v?" ":"")+h.toLowerCase()}),rie=k5("toLowerCase");function oie(d,h,v){d=_t(d),h=ut(h);var k=h?Ll(d):0;if(!h||k>=h)return d;var O=(h-k)/2;return Rh(wh(O),v)+d+Rh(yh(O),v)}function iie(d,h,v){d=_t(d),h=ut(h);var k=h?Ll(d):0;return h&&k<h?d+Rh(h-k,v):d}function sie(d,h,v){d=_t(d),h=ut(h);var k=h?Ll(d):0;return h&&k<h?Rh(h-k,v)+d:d}function aie(d,h,v){return v||h==null?h=0:h&&(h=+h),hee(_t(d).replace(Qb,""),h||0)}function lie(d,h,v){return(v?Zn(d,h,v):h===n)?h=1:h=ut(h),Mv(_t(d),h)}function uie(){var d=arguments,h=_t(d[0]);return d.length<3?h:h.replace(d[1],d[2])}var cie=Hl(function(d,h,v){return d+(v?"_":"")+h.toLowerCase()});function die(d,h,v){return v&&typeof v!="number"&&Zn(d,h,v)&&(h=v=n),v=v===n?ne:v>>>0,v?(d=_t(d),d&&(typeof h=="string"||h!=null&&!Nv(h))&&(h=Er(h),!h&&Rl(d))?xs(po(d),0,v):d.split(h,v)):[]}var fie=Hl(function(d,h,v){return d+(v?" ":"")+n2(h)});function pie(d,h,v){return d=_t(d),v=v==null?0:ya(ut(v),0,d.length),h=Er(h),d.slice(v,v+h.length)==h}function hie(d,h,v){var k=B.templateSettings;v&&Zn(d,h,v)&&(h=n),d=_t(d),h=qh({},h,k,I5);var O=qh({},h.imports,k.imports,I5),I=Cn(O),F=pv(O,I),U,G,fe=0,pe=h.interpolate||oh,be="__p += '",Te=mv((h.escape||oh).source+"|"+pe.source+"|"+(pe===rh?GQ:oh).source+"|"+(h.evaluate||oh).source+"|$","g"),$e="//# sourceURL="+(Mt.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++EN+"]")+`
118
+ `)}function zte(d){return rt(d)||Ea(d)||!!(Uk&&d&&d[Uk])}function Ci(d,h){var v=typeof d;return h=h??q,!!h&&(v=="number"||v!="symbol"&&QQ.test(d))&&d>-1&&d%1==0&&d<h}function Zn(d,h,v){if(!en(v))return!1;var k=typeof h;return(k=="number"?ur(v)&&Ci(h,v.length):k=="string"&&h in v)?mo(v[h],d):!1}function jv(d,h){if(rt(d))return!1;var v=typeof d;return v=="number"||v=="symbol"||v=="boolean"||d==null||Sr(d)?!0:Ml.test(d)||!xc.test(d)||h!=null&&d in $t(h)}function Hte(d){var h=typeof d;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?d!=="__proto__":d===null}function qv(d){var h=Ph(d),v=B[h];if(typeof v!="function"||!(h in vt.prototype))return!1;if(d===v)return!0;var k=Hv(v);return!!k&&d===k[0]}function Ute(d){return!!Fk&&Fk in d}var Wte=dh?Ei:l2;function Lc(d){var h=d&&d.constructor,v=typeof h=="function"&&h.prototype||Dl;return d===v}function F5(d){return d===d&&!en(d)}function $5(d,h){return function(v){return v==null?!1:v[d]===h&&(h!==n||d in $t(v))}}function jte(d){var h=Hh(d,function(k){return v.size===c&&v.clear(),k}),v=h.cache;return h}function qte(d,h){var v=d[1],k=h[1],O=v|k,I=O<(w|x|A),F=k==A&&v==C||k==A&&v==L&&d[7].length<=h[8]||k==(A|L)&&h[7].length<=h[8]&&v==C;if(!(I||F))return d;k&w&&(d[2]=h[2],O|=v&w?0:S);var U=h[3];if(U){var G=d[3];d[3]=G?x5(G,U,h[4]):U,d[4]=G?gs(d[3],f):h[4]}return U=h[5],U&&(G=d[5],d[5]=G?C5(G,U,h[6]):U,d[6]=G?gs(d[5],f):h[6]),U=h[7],U&&(d[7]=U),k&A&&(d[8]=d[8]==null?h[8]:Hn(d[8],h[8])),d[9]==null&&(d[9]=h[9]),d[0]=h[0],d[1]=O,d}function Kte(d){var h=[];if(d!=null)for(var v in $t(d))h.push(v);return h}function Gte(d){return ph.call(d)}function z5(d,h,v){return h=gn(h===n?d.length-1:h,0),function(){for(var k=arguments,O=-1,I=gn(k.length-h,0),F=N(I);++O<I;)F[O]=k[h+O];O=-1;for(var U=N(h+1);++O<h;)U[O]=k[O];return U[h]=v(F),xr(d,this,U)}}function H5(d,h){return h.length<2?d:wa(d,Gr(h,0,-1))}function Xte(d,h){for(var v=d.length,k=Hn(h.length,v),O=lr(d);k--;){var I=h[k];d[k]=Ci(I,v)?O[I]:n}return d}function Kv(d,h){if(!(h==="constructor"&&typeof d[h]=="function")&&h!="__proto__")return d[h]}var U5=j5(d5),Pc=uee||function(d,h){return On.setTimeout(d,h)},Gv=j5(bte);function W5(d,h,v){var k=h+"";return Gv(d,$te(k,Yte(Dte(k),v)))}function j5(d){var h=0,v=0;return function(){var k=pee(),O=X-(k-v);if(v=k,O>0){if(++h>=j)return arguments[0]}else h=0;return d.apply(n,arguments)}}function Vh(d,h){var v=-1,k=d.length,O=k-1;for(h=h===n?k:h;++v<h;){var I=Ov(v,O),F=d[I];d[I]=d[v],d[v]=F}return d.length=h,d}var q5=jte(function(d){var h=[];return d.charCodeAt(0)===46&&h.push(""),d.replace(FQ,function(v,k,O,I){h.push(O?I.replace(KQ,"$1"):k||v)}),h});function Uo(d){if(typeof d=="string"||Sr(d))return d;var h=d+"";return h=="0"&&1/d==-1/0?"-0":h}function Ca(d){if(d!=null){try{return fh.call(d)}catch{}try{return d+""}catch{}}return""}function Yte(d,h){return Wr(He,function(v){var k="_."+v[0];h&v[1]&&!ah(d,k)&&d.push(k)}),d.sort()}function K5(d){if(d instanceof vt)return d.clone();var h=new qr(d.__wrapped__,d.__chain__);return h.__actions__=lr(d.__actions__),h.__index__=d.__index__,h.__values__=d.__values__,h}function Jte(d,h,v){(v?Zn(d,h,v):h===n)?h=1:h=gn(ut(h),0);var k=d==null?0:d.length;if(!k||h<1)return[];for(var O=0,I=0,F=N(yh(k/h));O<k;)F[I++]=Gr(d,O,O+=h);return F}function Zte(d){for(var h=-1,v=d==null?0:d.length,k=0,O=[];++h<v;){var I=d[h];I&&(O[k++]=I)}return O}function Qte(){var d=arguments.length;if(!d)return[];for(var h=N(d-1),v=arguments[0],k=d;k--;)h[k-1]=arguments[k];return ms(rt(v)?lr(v):[v],Mn(h,1))}var Nte=ht(function(d,h){return un(d)?Oc(d,Mn(h,1,un,!0)):[]}),ene=ht(function(d,h){var v=Xr(h);return un(v)&&(v=n),un(d)?Oc(d,Mn(h,1,un,!0),Ke(v,2)):[]}),tne=ht(function(d,h){var v=Xr(h);return un(v)&&(v=n),un(d)?Oc(d,Mn(h,1,un,!0),n,v):[]});function nne(d,h,v){var k=d==null?0:d.length;return k?(h=v||h===n?1:ut(h),Gr(d,h<0?0:h,k)):[]}function rne(d,h,v){var k=d==null?0:d.length;return k?(h=v||h===n?1:ut(h),h=k-h,Gr(d,0,h<0?0:h)):[]}function one(d,h){return d&&d.length?Oh(d,Ke(h,3),!0,!0):[]}function ine(d,h){return d&&d.length?Oh(d,Ke(h,3),!0):[]}function sne(d,h,v,k){var O=d==null?0:d.length;return O?(v&&typeof v!="number"&&Zn(d,h,v)&&(v=0,k=O),Qee(d,h,v,k)):[]}function G5(d,h,v){var k=d==null?0:d.length;if(!k)return-1;var O=v==null?0:ut(v);return O<0&&(O=gn(k+O,0)),lh(d,Ke(h,3),O)}function X5(d,h,v){var k=d==null?0:d.length;if(!k)return-1;var O=k-1;return v!==n&&(O=ut(v),O=v<0?gn(k+O,0):Hn(O,k-1)),lh(d,Ke(h,3),O,!0)}function Y5(d){var h=d==null?0:d.length;return h?Mn(d,1):[]}function ane(d){var h=d==null?0:d.length;return h?Mn(d,R):[]}function lne(d,h){var v=d==null?0:d.length;return v?(h=h===n?1:ut(h),Mn(d,h)):[]}function une(d){for(var h=-1,v=d==null?0:d.length,k={};++h<v;){var O=d[h];k[O[0]]=O[1]}return k}function J5(d){return d&&d.length?d[0]:n}function cne(d,h,v){var k=d==null?0:d.length;if(!k)return-1;var O=v==null?0:ut(v);return O<0&&(O=gn(k+O,0)),Il(d,h,O)}function dne(d){var h=d==null?0:d.length;return h?Gr(d,0,-1):[]}var fne=ht(function(d){var h=Yt(d,Lv);return h.length&&h[0]===d[0]?Sv(h):[]}),pne=ht(function(d){var h=Xr(d),v=Yt(d,Lv);return h===Xr(v)?h=n:v.pop(),v.length&&v[0]===d[0]?Sv(v,Ke(h,2)):[]}),hne=ht(function(d){var h=Xr(d),v=Yt(d,Lv);return h=typeof h=="function"?h:n,h&&v.pop(),v.length&&v[0]===d[0]?Sv(v,n,h):[]});function mne(d,h){return d==null?"":dee.call(d,h)}function Xr(d){var h=d==null?0:d.length;return h?d[h-1]:n}function gne(d,h,v){var k=d==null?0:d.length;if(!k)return-1;var O=k;return v!==n&&(O=ut(v),O=O<0?gn(k+O,0):Hn(O,k-1)),h===h?YN(d,h,O):lh(d,Mk,O,!0)}function bne(d,h){return d&&d.length?a5(d,ut(h)):n}var vne=ht(Z5);function Z5(d,h){return d&&d.length&&h&&h.length?Av(d,h):d}function yne(d,h,v){return d&&d.length&&h&&h.length?Av(d,h,Ke(v,2)):d}function wne(d,h,v){return d&&d.length&&h&&h.length?Av(d,h,n,v):d}var xne=xi(function(d,h){var v=d==null?0:d.length,k=wv(d,h);return c5(d,Yt(h,function(O){return Ci(O,v)?+O:O}).sort(w5)),k});function Cne(d,h){var v=[];if(!(d&&d.length))return v;var k=-1,O=[],I=d.length;for(h=Ke(h,3);++k<I;){var F=d[k];h(F,k,d)&&(v.push(F),O.push(k))}return c5(d,O),v}function Xv(d){return d==null?d:mee.call(d)}function Ene(d,h,v){var k=d==null?0:d.length;return k?(v&&typeof v!="number"&&Zn(d,h,v)?(h=0,v=k):(h=h==null?0:ut(h),v=v===n?k:ut(v)),Gr(d,h,v)):[]}function Sne(d,h){return Ah(d,h)}function kne(d,h,v){return Bv(d,h,Ke(v,2))}function _ne(d,h){var v=d==null?0:d.length;if(v){var k=Ah(d,h);if(k<v&&mo(d[k],h))return k}return-1}function Tne(d,h){return Ah(d,h,!0)}function Ane(d,h,v){return Bv(d,h,Ke(v,2),!0)}function One(d,h){var v=d==null?0:d.length;if(v){var k=Ah(d,h,!0)-1;if(mo(d[k],h))return k}return-1}function Mne(d){return d&&d.length?f5(d):[]}function Bne(d,h){return d&&d.length?f5(d,Ke(h,2)):[]}function Ine(d){var h=d==null?0:d.length;return h?Gr(d,1,h):[]}function Rne(d,h,v){return d&&d.length?(h=v||h===n?1:ut(h),Gr(d,0,h<0?0:h)):[]}function Lne(d,h,v){var k=d==null?0:d.length;return k?(h=v||h===n?1:ut(h),h=k-h,Gr(d,h<0?0:h,k)):[]}function Pne(d,h){return d&&d.length?Oh(d,Ke(h,3),!1,!0):[]}function Dne(d,h){return d&&d.length?Oh(d,Ke(h,3)):[]}var Vne=ht(function(d){return ys(Mn(d,1,un,!0))}),Fne=ht(function(d){var h=Xr(d);return un(h)&&(h=n),ys(Mn(d,1,un,!0),Ke(h,2))}),$ne=ht(function(d){var h=Xr(d);return h=typeof h=="function"?h:n,ys(Mn(d,1,un,!0),n,h)});function zne(d){return d&&d.length?ys(d):[]}function Hne(d,h){return d&&d.length?ys(d,Ke(h,2)):[]}function Une(d,h){return h=typeof h=="function"?h:n,d&&d.length?ys(d,n,h):[]}function Yv(d){if(!(d&&d.length))return[];var h=0;return d=hs(d,function(v){if(un(v))return h=gn(v.length,h),!0}),fv(h,function(v){return Yt(d,uv(v))})}function Q5(d,h){if(!(d&&d.length))return[];var v=Yv(d);return h==null?v:Yt(v,function(k){return xr(h,n,k)})}var Wne=ht(function(d,h){return un(d)?Oc(d,h):[]}),jne=ht(function(d){return Rv(hs(d,un))}),qne=ht(function(d){var h=Xr(d);return un(h)&&(h=n),Rv(hs(d,un),Ke(h,2))}),Kne=ht(function(d){var h=Xr(d);return h=typeof h=="function"?h:n,Rv(hs(d,un),n,h)}),Gne=ht(Yv);function Xne(d,h){return g5(d||[],h||[],Ac)}function Yne(d,h){return g5(d||[],h||[],Ic)}var Jne=ht(function(d){var h=d.length,v=h>1?d[h-1]:n;return v=typeof v=="function"?(d.pop(),v):n,Q5(d,v)});function N5(d){var h=B(d);return h.__chain__=!0,h}function Zne(d,h){return h(d),d}function Fh(d,h){return h(d)}var Qne=xi(function(d){var h=d.length,v=h?d[0]:0,k=this.__wrapped__,O=function(I){return wv(I,d)};return h>1||this.__actions__.length||!(k instanceof vt)||!Ci(v)?this.thru(O):(k=k.slice(v,+v+(h?1:0)),k.__actions__.push({func:Fh,args:[O],thisArg:n}),new qr(k,this.__chain__).thru(function(I){return h&&!I.length&&I.push(n),I}))});function Nne(){return N5(this)}function ere(){return new qr(this.value(),this.__chain__)}function tre(){this.__values__===n&&(this.__values__=p_(this.value()));var d=this.__index__>=this.__values__.length,h=d?n:this.__values__[this.__index__++];return{done:d,value:h}}function nre(){return this}function rre(d){for(var h,v=this;v instanceof Eh;){var k=K5(v);k.__index__=0,k.__values__=n,h?O.__wrapped__=k:h=k;var O=k;v=v.__wrapped__}return O.__wrapped__=d,h}function ore(){var d=this.__wrapped__;if(d instanceof vt){var h=d;return this.__actions__.length&&(h=new vt(this)),h=h.reverse(),h.__actions__.push({func:Fh,args:[Xv],thisArg:n}),new qr(h,this.__chain__)}return this.thru(Xv)}function ire(){return m5(this.__wrapped__,this.__actions__)}var sre=Mh(function(d,h,v){Mt.call(d,v)?++d[v]:yi(d,v,1)});function are(d,h,v){var k=rt(d)?Ak:Zee;return v&&Zn(d,h,v)&&(h=n),k(d,Ke(h,3))}function lre(d,h){var v=rt(d)?hs:Qk;return v(d,Ke(h,3))}var ure=_5(G5),cre=_5(X5);function dre(d,h){return Mn($h(d,h),1)}function fre(d,h){return Mn($h(d,h),R)}function pre(d,h,v){return v=v===n?1:ut(v),Mn($h(d,h),v)}function e_(d,h){var v=rt(d)?Wr:vs;return v(d,Ke(h,3))}function t_(d,h){var v=rt(d)?IN:Zk;return v(d,Ke(h,3))}var hre=Mh(function(d,h,v){Mt.call(d,v)?d[v].push(h):yi(d,v,[h])});function mre(d,h,v,k){d=ur(d)?d:jl(d),v=v&&!k?ut(v):0;var O=d.length;return v<0&&(v=gn(O+v,0)),jh(d)?v<=O&&d.indexOf(h,v)>-1:!!O&&Il(d,h,v)>-1}var gre=ht(function(d,h,v){var k=-1,O=typeof h=="function",I=ur(d)?N(d.length):[];return vs(d,function(F){I[++k]=O?xr(h,F,v):Mc(F,h,v)}),I}),bre=Mh(function(d,h,v){yi(d,v,h)});function $h(d,h){var v=rt(d)?Yt:o5;return v(d,Ke(h,3))}function vre(d,h,v,k){return d==null?[]:(rt(h)||(h=h==null?[]:[h]),v=k?n:v,rt(v)||(v=v==null?[]:[v]),l5(d,h,v))}var yre=Mh(function(d,h,v){d[v?0:1].push(h)},function(){return[[],[]]});function wre(d,h,v){var k=rt(d)?av:Ik,O=arguments.length<3;return k(d,Ke(h,4),v,O,vs)}function xre(d,h,v){var k=rt(d)?RN:Ik,O=arguments.length<3;return k(d,Ke(h,4),v,O,Zk)}function Cre(d,h){var v=rt(d)?hs:Qk;return v(d,Uh(Ke(h,3)))}function Ere(d){var h=rt(d)?Gk:mte;return h(d)}function Sre(d,h,v){(v?Zn(d,h,v):h===n)?h=1:h=ut(h);var k=rt(d)?Kee:gte;return k(d,h)}function kre(d){var h=rt(d)?Gee:vte;return h(d)}function _re(d){if(d==null)return 0;if(ur(d))return jh(d)?Ll(d):d.length;var h=Un(d);return h==Me||h==me?d.size:_v(d).length}function Tre(d,h,v){var k=rt(d)?lv:yte;return v&&Zn(d,h,v)&&(h=n),k(d,Ke(h,3))}var Are=ht(function(d,h){if(d==null)return[];var v=h.length;return v>1&&Zn(d,h[0],h[1])?h=[]:v>2&&Zn(h[0],h[1],h[2])&&(h=[h[0]]),l5(d,Mn(h,1),[])}),zh=lee||function(){return On.Date.now()};function Ore(d,h){if(typeof h!="function")throw new jr(a);return d=ut(d),function(){if(--d<1)return h.apply(this,arguments)}}function n_(d,h,v){return h=v?n:h,h=d&&h==null?d.length:h,wi(d,A,n,n,n,n,h)}function r_(d,h){var v;if(typeof h!="function")throw new jr(a);return d=ut(d),function(){return--d>0&&(v=h.apply(this,arguments)),d<=1&&(h=n),v}}var Jv=ht(function(d,h,v){var k=w;if(v.length){var O=gs(v,Ul(Jv));k|=_}return wi(d,k,h,v,O)}),o_=ht(function(d,h,v){var k=w|x;if(v.length){var O=gs(v,Ul(o_));k|=_}return wi(h,k,d,v,O)});function i_(d,h,v){h=v?n:h;var k=wi(d,C,n,n,n,n,n,h);return k.placeholder=i_.placeholder,k}function s_(d,h,v){h=v?n:h;var k=wi(d,E,n,n,n,n,n,h);return k.placeholder=s_.placeholder,k}function a_(d,h,v){var k,O,I,F,U,G,fe=0,pe=!1,be=!1,Te=!0;if(typeof d!="function")throw new jr(a);h=Yr(h)||0,en(v)&&(pe=!!v.leading,be="maxWait"in v,I=be?gn(Yr(v.maxWait)||0,h):I,Te="trailing"in v?!!v.trailing:Te);function $e(cn){var go=k,ki=O;return k=O=n,fe=cn,F=d.apply(ki,go),F}function Xe(cn){return fe=cn,U=Pc(gt,h),pe?$e(cn):F}function pt(cn){var go=cn-G,ki=cn-fe,__=h-go;return be?Hn(__,I-ki):__}function Ye(cn){var go=cn-G,ki=cn-fe;return G===n||go>=h||go<0||be&&ki>=I}function gt(){var cn=zh();if(Ye(cn))return wt(cn);U=Pc(gt,pt(cn))}function wt(cn){return U=n,Te&&k?$e(cn):(k=O=n,F)}function kr(){U!==n&&b5(U),fe=0,k=G=O=U=n}function Qn(){return U===n?F:wt(zh())}function _r(){var cn=zh(),go=Ye(cn);if(k=arguments,O=this,G=cn,go){if(U===n)return Xe(G);if(be)return b5(U),U=Pc(gt,h),$e(G)}return U===n&&(U=Pc(gt,h)),F}return _r.cancel=kr,_r.flush=Qn,_r}var Mre=ht(function(d,h){return Jk(d,1,h)}),Bre=ht(function(d,h,v){return Jk(d,Yr(h)||0,v)});function Ire(d){return wi(d,D)}function Hh(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new jr(a);var v=function(){var k=arguments,O=h?h.apply(this,k):k[0],I=v.cache;if(I.has(O))return I.get(O);var F=d.apply(this,k);return v.cache=I.set(O,F)||I,F};return v.cache=new(Hh.Cache||vi),v}Hh.Cache=vi;function Uh(d){if(typeof d!="function")throw new jr(a);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}function Rre(d){return r_(2,d)}var Lre=wte(function(d,h){h=h.length==1&&rt(h[0])?Yt(h[0],Cr(Ke())):Yt(Mn(h,1),Cr(Ke()));var v=h.length;return ht(function(k){for(var O=-1,I=Hn(k.length,v);++O<I;)k[O]=h[O].call(this,k[O]);return xr(d,this,k)})}),Zv=ht(function(d,h){var v=gs(h,Ul(Zv));return wi(d,_,n,h,v)}),l_=ht(function(d,h){var v=gs(h,Ul(l_));return wi(d,T,n,h,v)}),Pre=xi(function(d,h){return wi(d,L,n,n,n,h)});function Dre(d,h){if(typeof d!="function")throw new jr(a);return h=h===n?h:ut(h),ht(d,h)}function Vre(d,h){if(typeof d!="function")throw new jr(a);return h=h==null?0:gn(ut(h),0),ht(function(v){var k=v[h],O=xs(v,0,h);return k&&ms(O,k),xr(d,this,O)})}function Fre(d,h,v){var k=!0,O=!0;if(typeof d!="function")throw new jr(a);return en(v)&&(k="leading"in v?!!v.leading:k,O="trailing"in v?!!v.trailing:O),a_(d,h,{leading:k,maxWait:h,trailing:O})}function $re(d){return n_(d,1)}function zre(d,h){return Zv(Pv(h),d)}function Hre(){if(!arguments.length)return[];var d=arguments[0];return rt(d)?d:[d]}function Ure(d){return Kr(d,g)}function Wre(d,h){return h=typeof h=="function"?h:n,Kr(d,g,h)}function jre(d){return Kr(d,p|g)}function qre(d,h){return h=typeof h=="function"?h:n,Kr(d,p|g,h)}function Kre(d,h){return h==null||Yk(d,h,Cn(h))}function mo(d,h){return d===h||d!==d&&h!==h}var Gre=Lh(Ev),Xre=Lh(function(d,h){return d>=h}),Ea=t5(function(){return arguments}())?t5:function(d){return sn(d)&&Mt.call(d,"callee")&&!Hk.call(d,"callee")},rt=N.isArray,Yre=Ck?Cr(Ck):rte;function ur(d){return d!=null&&Wh(d.length)&&!Ei(d)}function un(d){return sn(d)&&ur(d)}function Jre(d){return d===!0||d===!1||sn(d)&&Jn(d)==Y}var Cs=cee||l2,Zre=Ek?Cr(Ek):ote;function Qre(d){return sn(d)&&d.nodeType===1&&!Dc(d)}function Nre(d){if(d==null)return!0;if(ur(d)&&(rt(d)||typeof d=="string"||typeof d.splice=="function"||Cs(d)||Wl(d)||Ea(d)))return!d.length;var h=Un(d);if(h==Me||h==me)return!d.size;if(Lc(d))return!_v(d).length;for(var v in d)if(Mt.call(d,v))return!1;return!0}function eoe(d,h){return Bc(d,h)}function toe(d,h,v){v=typeof v=="function"?v:n;var k=v?v(d,h):n;return k===n?Bc(d,h,n,v):!!k}function Qv(d){if(!sn(d))return!1;var h=Jn(d);return h==he||h==ue||typeof d.message=="string"&&typeof d.name=="string"&&!Dc(d)}function noe(d){return typeof d=="number"&&Wk(d)}function Ei(d){if(!en(d))return!1;var h=Jn(d);return h==J||h==ve||h==H||h==P}function u_(d){return typeof d=="number"&&d==ut(d)}function Wh(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=q}function en(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function sn(d){return d!=null&&typeof d=="object"}var c_=Sk?Cr(Sk):ste;function roe(d,h){return d===h||kv(d,h,Uv(h))}function ooe(d,h,v){return v=typeof v=="function"?v:n,kv(d,h,Uv(h),v)}function ioe(d){return d_(d)&&d!=+d}function soe(d){if(Wte(d))throw new et(s);return n5(d)}function aoe(d){return d===null}function loe(d){return d==null}function d_(d){return typeof d=="number"||sn(d)&&Jn(d)==Ue}function Dc(d){if(!sn(d)||Jn(d)!=ke)return!1;var h=gh(d);if(h===null)return!0;var v=Mt.call(h,"constructor")&&h.constructor;return typeof v=="function"&&v instanceof v&&fh.call(v)==oee}var Nv=kk?Cr(kk):ate;function uoe(d){return u_(d)&&d>=-9007199254740991&&d<=q}var f_=_k?Cr(_k):lte;function jh(d){return typeof d=="string"||!rt(d)&&sn(d)&&Jn(d)==Le}function Sr(d){return typeof d=="symbol"||sn(d)&&Jn(d)==nt}var Wl=Tk?Cr(Tk):ute;function coe(d){return d===n}function doe(d){return sn(d)&&Un(d)==ee}function foe(d){return sn(d)&&Jn(d)==ge}var poe=Lh(Tv),hoe=Lh(function(d,h){return d<=h});function p_(d){if(!d)return[];if(ur(d))return jh(d)?po(d):lr(d);if(Ec&&d[Ec])return KN(d[Ec]());var h=Un(d),v=h==Me?hv:h==me?uh:jl;return v(d)}function Si(d){if(!d)return d===0?d:0;if(d=Yr(d),d===R||d===-1/0){var h=d<0?-1:1;return h*Z}return d===d?d:0}function ut(d){var h=Si(d),v=h%1;return h===h?v?h-v:h:0}function h_(d){return d?ya(ut(d),0,ne):0}function Yr(d){if(typeof d=="number")return d;if(Sr(d))return te;if(en(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=en(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=Rk(d);var v=YQ.test(d);return v||ZQ.test(d)?ON(d.slice(2),v?2:8):XQ.test(d)?te:+d}function m_(d){return Ho(d,cr(d))}function moe(d){return d?ya(ut(d),-9007199254740991,q):d===0?d:0}function _t(d){return d==null?"":Er(d)}var goe=zl(function(d,h){if(Lc(h)||ur(h)){Ho(h,Cn(h),d);return}for(var v in h)Mt.call(h,v)&&Ac(d,v,h[v])}),g_=zl(function(d,h){Ho(h,cr(h),d)}),qh=zl(function(d,h,v,k){Ho(h,cr(h),d,k)}),boe=zl(function(d,h,v,k){Ho(h,Cn(h),d,k)}),voe=xi(wv);function yoe(d,h){var v=$l(d);return h==null?v:Xk(v,h)}var woe=ht(function(d,h){d=$t(d);var v=-1,k=h.length,O=k>2?h[2]:n;for(O&&Zn(h[0],h[1],O)&&(k=1);++v<k;)for(var I=h[v],F=cr(I),U=-1,G=F.length;++U<G;){var fe=F[U],pe=d[fe];(pe===n||mo(pe,Dl[fe])&&!Mt.call(d,fe))&&(d[fe]=I[fe])}return d}),xoe=ht(function(d){return d.push(n,R5),xr(b_,n,d)});function Coe(d,h){return Ok(d,Ke(h,3),zo)}function Eoe(d,h){return Ok(d,Ke(h,3),Cv)}function Soe(d,h){return d==null?d:xv(d,Ke(h,3),cr)}function koe(d,h){return d==null?d:Nk(d,Ke(h,3),cr)}function _oe(d,h){return d&&zo(d,Ke(h,3))}function Toe(d,h){return d&&Cv(d,Ke(h,3))}function Aoe(d){return d==null?[]:_h(d,Cn(d))}function Ooe(d){return d==null?[]:_h(d,cr(d))}function e2(d,h,v){var k=d==null?n:wa(d,h);return k===n?v:k}function Moe(d,h){return d!=null&&D5(d,h,Nee)}function t2(d,h){return d!=null&&D5(d,h,ete)}var Boe=A5(function(d,h,v){h!=null&&typeof h.toString!="function"&&(h=ph.call(h)),d[h]=v},r2(dr)),Ioe=A5(function(d,h,v){h!=null&&typeof h.toString!="function"&&(h=ph.call(h)),Mt.call(d,h)?d[h].push(v):d[h]=[v]},Ke),Roe=ht(Mc);function Cn(d){return ur(d)?Kk(d):_v(d)}function cr(d){return ur(d)?Kk(d,!0):cte(d)}function Loe(d,h){var v={};return h=Ke(h,3),zo(d,function(k,O,I){yi(v,h(k,O,I),k)}),v}function Poe(d,h){var v={};return h=Ke(h,3),zo(d,function(k,O,I){yi(v,O,h(k,O,I))}),v}var Doe=zl(function(d,h,v){Th(d,h,v)}),b_=zl(function(d,h,v,k){Th(d,h,v,k)}),Voe=xi(function(d,h){var v={};if(d==null)return v;var k=!1;h=Yt(h,function(I){return I=ws(I,d),k||(k=I.length>1),I}),Ho(d,zv(d),v),k&&(v=Kr(v,p|m|g,Bte));for(var O=h.length;O--;)Iv(v,h[O]);return v});function Foe(d,h){return v_(d,Uh(Ke(h)))}var $oe=xi(function(d,h){return d==null?{}:fte(d,h)});function v_(d,h){if(d==null)return{};var v=Yt(zv(d),function(k){return[k]});return h=Ke(h),u5(d,v,function(k,O){return h(k,O[0])})}function zoe(d,h,v){h=ws(h,d);var k=-1,O=h.length;for(O||(O=1,d=n);++k<O;){var I=d==null?n:d[Uo(h[k])];I===n&&(k=O,I=v),d=Ei(I)?I.call(d):I}return d}function Hoe(d,h,v){return d==null?d:Ic(d,h,v)}function Uoe(d,h,v,k){return k=typeof k=="function"?k:n,d==null?d:Ic(d,h,v,k)}var y_=B5(Cn),w_=B5(cr);function Woe(d,h,v){var k=rt(d),O=k||Cs(d)||Wl(d);if(h=Ke(h,4),v==null){var I=d&&d.constructor;O?v=k?new I:[]:en(d)?v=Ei(I)?$l(gh(d)):{}:v={}}return(O?Wr:zo)(d,function(F,U,G){return h(v,F,U,G)}),v}function joe(d,h){return d==null?!0:Iv(d,h)}function qoe(d,h,v){return d==null?d:h5(d,h,Pv(v))}function Koe(d,h,v,k){return k=typeof k=="function"?k:n,d==null?d:h5(d,h,Pv(v),k)}function jl(d){return d==null?[]:pv(d,Cn(d))}function Goe(d){return d==null?[]:pv(d,cr(d))}function Xoe(d,h,v){return v===n&&(v=h,h=n),v!==n&&(v=Yr(v),v=v===v?v:0),h!==n&&(h=Yr(h),h=h===h?h:0),ya(Yr(d),h,v)}function Yoe(d,h,v){return h=Si(h),v===n?(v=h,h=0):v=Si(v),d=Yr(d),tte(d,h,v)}function Joe(d,h,v){if(v&&typeof v!="boolean"&&Zn(d,h,v)&&(h=v=n),v===n&&(typeof h=="boolean"?(v=h,h=n):typeof d=="boolean"&&(v=d,d=n)),d===n&&h===n?(d=0,h=1):(d=Si(d),h===n?(h=d,d=0):h=Si(h)),d>h){var k=d;d=h,h=k}if(v||d%1||h%1){var O=jk();return Hn(d+O*(h-d+AN("1e-"+((O+"").length-1))),h)}return Ov(d,h)}var Zoe=Hl(function(d,h,v){return h=h.toLowerCase(),d+(v?x_(h):h)});function x_(d){return n2(_t(d).toLowerCase())}function C_(d){return d=_t(d),d&&d.replace(NQ,HN).replace(vN,"")}function Qoe(d,h,v){d=_t(d),h=Er(h);var k=d.length;v=v===n?k:ya(ut(v),0,k);var O=v;return v-=h.length,v>=0&&d.slice(v,O)==h}function Noe(d){return d=_t(d),d&&wc.test(d)?d.replace(yc,UN):d}function eie(d){return d=_t(d),d&&$Q.test(d)?d.replace(Zb,"\\$&"):d}var tie=Hl(function(d,h,v){return d+(v?"-":"")+h.toLowerCase()}),nie=Hl(function(d,h,v){return d+(v?" ":"")+h.toLowerCase()}),rie=k5("toLowerCase");function oie(d,h,v){d=_t(d),h=ut(h);var k=h?Ll(d):0;if(!h||k>=h)return d;var O=(h-k)/2;return Rh(wh(O),v)+d+Rh(yh(O),v)}function iie(d,h,v){d=_t(d),h=ut(h);var k=h?Ll(d):0;return h&&k<h?d+Rh(h-k,v):d}function sie(d,h,v){d=_t(d),h=ut(h);var k=h?Ll(d):0;return h&&k<h?Rh(h-k,v)+d:d}function aie(d,h,v){return v||h==null?h=0:h&&(h=+h),hee(_t(d).replace(Qb,""),h||0)}function lie(d,h,v){return(v?Zn(d,h,v):h===n)?h=1:h=ut(h),Mv(_t(d),h)}function uie(){var d=arguments,h=_t(d[0]);return d.length<3?h:h.replace(d[1],d[2])}var cie=Hl(function(d,h,v){return d+(v?"_":"")+h.toLowerCase()});function die(d,h,v){return v&&typeof v!="number"&&Zn(d,h,v)&&(h=v=n),v=v===n?ne:v>>>0,v?(d=_t(d),d&&(typeof h=="string"||h!=null&&!Nv(h))&&(h=Er(h),!h&&Rl(d))?xs(po(d),0,v):d.split(h,v)):[]}var fie=Hl(function(d,h,v){return d+(v?" ":"")+n2(h)});function pie(d,h,v){return d=_t(d),v=v==null?0:ya(ut(v),0,d.length),h=Er(h),d.slice(v,v+h.length)==h}function hie(d,h,v){var k=B.templateSettings;v&&Zn(d,h,v)&&(h=n),d=_t(d),h=qh({},h,k,I5);var O=qh({},h.imports,k.imports,I5),I=Cn(O),F=pv(O,I),U,G,fe=0,pe=h.interpolate||oh,be="__p += '",Te=mv((h.escape||oh).source+"|"+pe.source+"|"+(pe===rh?GQ:oh).source+"|"+(h.evaluate||oh).source+"|$","g"),$e="//# sourceURL="+(Mt.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++EN+"]")+`
119
119
  `;d.replace(Te,function(Ye,gt,wt,kr,Qn,_r){return wt||(wt=kr),be+=d.slice(fe,_r).replace(eN,WN),gt&&(U=!0,be+=`' +
120
120
  __e(`+gt+`) +
121
121
  '`),Qn&&(G=!0,be+=`';
@@ -148,7 +148,7 @@ For more information, see https://www.radix-vue.com/components/${n}`,l=`Warning:
148
148
  * (c) 2025 kazuya kawaguchi
149
149
  * Released under the MIT License.
150
150
  */function _D(t,e,n){return{line:t,column:e,offset:n}}function mg(t,e,n){return{start:t,end:e}}const Ze={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},TD=17,AD={[Ze.EXPECTED_TOKEN]:"Expected token: '{0}'",[Ze.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Ze.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Ze.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Ze.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Ze.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Ze.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Ze.EMPTY_PLACEHOLDER]:"Empty placeholder",[Ze.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Ze.INVALID_LINKED_FORMAT]:"Invalid linked format",[Ze.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Ze.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Ze.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Ze.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Ze.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Ze.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function il(t,e,n={}){const{domain:r,messages:o,args:s}=n,a=process.env.NODE_ENV!=="production"?ff((o||AD)[t]||"",...s||[]):t,l=new SyntaxError(String(a));return l.code=t,e&&(l.location=e),l.domain=r,l}function OD(t){throw t}const MD=/<\/?[\w\s="/.':;#-\/]+>/,BD=t=>MD.test(t),ii=" ",ID="\r",Xn=`
151
- `,RD="\u2028",LD="\u2029";function PD(t){const e=t;let n=0,r=1,o=1,s=0;const a=A=>e[A]===ID&&e[A+1]===Xn,l=A=>e[A]===Xn,u=A=>e[A]===LD,c=A=>e[A]===RD,f=A=>a(A)||l(A)||u(A)||c(A),p=()=>n,m=()=>r,g=()=>o,b=()=>s,y=A=>a(A)||u(A)||c(A)?Xn:e[A],w=()=>y(n),x=()=>y(n+s);function S(){return s=0,f(n)&&(r++,o=0),a(n)&&n++,n++,o++,e[n]}function C(){return a(n+s)&&s++,s++,e[n+s]}function E(){n=0,r=1,o=1,s=0}function _(A=0){s=A}function T(){const A=n+s;for(;A!==n;)S();s=0}return{index:p,line:m,column:g,peekOffset:b,charAt:y,currentChar:w,currentPeek:x,next:S,peek:C,reset:E,resetPeek:_,skipToPeek:T}}const Yi=void 0,DD=".",$x="'",VD="tokenizer";function FD(t,e={}){const n=e.location!==!1,r=PD(t),o=()=>r.index(),s=()=>_D(r.line(),r.column(),r.index()),a=s(),l=o(),u={currentType:13,offset:l,startLoc:a,endLoc:a,lastType:13,lastOffset:l,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>u,{onError:f}=e;function p(V,P,ie,...me){const Le=c();if(P.column+=ie,P.offset+=ie,f){const nt=n?mg(Le.startLoc,P):null,We=il(V,nt,{domain:VD,args:me});f(We)}}function m(V,P,ie){V.endLoc=s(),V.currentType=P;const me={type:P};return n&&(me.loc=mg(V.startLoc,V.endLoc)),ie!=null&&(me.value=ie),me}const g=V=>m(V,13);function b(V,P){return V.currentChar()===P?(V.next(),P):(p(Ze.EXPECTED_TOKEN,s(),0,P),"")}function y(V){let P="";for(;V.currentPeek()===ii||V.currentPeek()===Xn;)P+=V.currentPeek(),V.peek();return P}function w(V){const P=y(V);return V.skipToPeek(),P}function x(V){if(V===Yi)return!1;const P=V.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P===95}function S(V){if(V===Yi)return!1;const P=V.charCodeAt(0);return P>=48&&P<=57}function C(V,P){const{currentType:ie}=P;if(ie!==2)return!1;y(V);const me=x(V.currentPeek());return V.resetPeek(),me}function E(V,P){const{currentType:ie}=P;if(ie!==2)return!1;y(V);const me=V.currentPeek()==="-"?V.peek():V.currentPeek(),Le=S(me);return V.resetPeek(),Le}function _(V,P){const{currentType:ie}=P;if(ie!==2)return!1;y(V);const me=V.currentPeek()===$x;return V.resetPeek(),me}function T(V,P){const{currentType:ie}=P;if(ie!==7)return!1;y(V);const me=V.currentPeek()===".";return V.resetPeek(),me}function A(V,P){const{currentType:ie}=P;if(ie!==8)return!1;y(V);const me=x(V.currentPeek());return V.resetPeek(),me}function L(V,P){const{currentType:ie}=P;if(!(ie===7||ie===11))return!1;y(V);const me=V.currentPeek()===":";return V.resetPeek(),me}function D(V,P){const{currentType:ie}=P;if(ie!==9)return!1;const me=()=>{const nt=V.currentPeek();return nt==="{"?x(V.peek()):nt==="@"||nt==="|"||nt===":"||nt==="."||nt===ii||!nt?!1:nt===Xn?(V.peek(),me()):$(V,!1)},Le=me();return V.resetPeek(),Le}function M(V){y(V);const P=V.currentPeek()==="|";return V.resetPeek(),P}function $(V,P=!0){const ie=(Le=!1,nt="")=>{const We=V.currentPeek();return We==="{"||We==="@"||!We?Le:We==="|"?!(nt===ii||nt===Xn):We===ii?(V.peek(),ie(!0,ii)):We===Xn?(V.peek(),ie(!0,Xn)):!0},me=ie();return P&&V.resetPeek(),me}function j(V,P){const ie=V.currentChar();return ie===Yi?Yi:P(ie)?(V.next(),ie):null}function X(V){const P=V.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===95||P===36}function se(V){return j(V,X)}function W(V){const P=V.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===95||P===36||P===45}function z(V){return j(V,W)}function R(V){const P=V.charCodeAt(0);return P>=48&&P<=57}function q(V){return j(V,R)}function Z(V){const P=V.charCodeAt(0);return P>=48&&P<=57||P>=65&&P<=70||P>=97&&P<=102}function te(V){return j(V,Z)}function ne(V){let P="",ie="";for(;P=q(V);)ie+=P;return ie}function ye(V){let P="";for(;;){const ie=V.currentChar();if(ie==="{"||ie==="}"||ie==="@"||ie==="|"||!ie)break;if(ie===ii||ie===Xn)if($(V))P+=ie,V.next();else{if(M(V))break;P+=ie,V.next()}else P+=ie,V.next()}return P}function Ce(V){w(V);let P="",ie="";for(;P=z(V);)ie+=P;return V.currentChar()===Yi&&p(Ze.UNTERMINATED_CLOSING_BRACE,s(),0),ie}function He(V){w(V);let P="";return V.currentChar()==="-"?(V.next(),P+=`-${ne(V)}`):P+=ne(V),V.currentChar()===Yi&&p(Ze.UNTERMINATED_CLOSING_BRACE,s(),0),P}function Se(V){return V!==$x&&V!==Xn}function je(V){w(V),b(V,"'");let P="",ie="";for(;P=j(V,Se);)P==="\\"?ie+=H(V):ie+=P;const me=V.currentChar();return me===Xn||me===Yi?(p(Ze.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),me===Xn&&(V.next(),b(V,"'")),ie):(b(V,"'"),ie)}function H(V){const P=V.currentChar();switch(P){case"\\":case"'":return V.next(),`\\${P}`;case"u":return Y(V,P,4);case"U":return Y(V,P,6);default:return p(Ze.UNKNOWN_ESCAPE_SEQUENCE,s(),0,P),""}}function Y(V,P,ie){b(V,P);let me="";for(let Le=0;Le<ie;Le++){const nt=te(V);if(!nt){p(Ze.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${P}${me}${V.currentChar()}`);break}me+=nt}return`\\${P}${me}`}function ae(V){return V!=="{"&&V!=="}"&&V!==ii&&V!==Xn}function ue(V){w(V);let P="",ie="";for(;P=j(V,ae);)ie+=P;return ie}function he(V){let P="",ie="";for(;P=se(V);)ie+=P;return ie}function J(V){const P=ie=>{const me=V.currentChar();return me==="{"||me==="@"||me==="|"||me==="("||me===")"||!me||me===ii?ie:(ie+=me,V.next(),P(ie))};return P("")}function ve(V){w(V);const P=b(V,"|");return w(V),P}function Me(V,P){let ie=null;switch(V.currentChar()){case"{":return P.braceNest>=1&&p(Ze.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),V.next(),ie=m(P,2,"{"),w(V),P.braceNest++,ie;case"}":return P.braceNest>0&&P.currentType===2&&p(Ze.EMPTY_PLACEHOLDER,s(),0),V.next(),ie=m(P,3,"}"),P.braceNest--,P.braceNest>0&&w(V),P.inLinked&&P.braceNest===0&&(P.inLinked=!1),ie;case"@":return P.braceNest>0&&p(Ze.UNTERMINATED_CLOSING_BRACE,s(),0),ie=Ue(V,P)||g(P),P.braceNest=0,ie;default:{let Le=!0,nt=!0,We=!0;if(M(V))return P.braceNest>0&&p(Ze.UNTERMINATED_CLOSING_BRACE,s(),0),ie=m(P,1,ve(V)),P.braceNest=0,P.inLinked=!1,ie;if(P.braceNest>0&&(P.currentType===4||P.currentType===5||P.currentType===6))return p(Ze.UNTERMINATED_CLOSING_BRACE,s(),0),P.braceNest=0,N(V,P);if(Le=C(V,P))return ie=m(P,4,Ce(V)),w(V),ie;if(nt=E(V,P))return ie=m(P,5,He(V)),w(V),ie;if(We=_(V,P))return ie=m(P,6,je(V)),w(V),ie;if(!Le&&!nt&&!We)return ie=m(P,12,ue(V)),p(Ze.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,ie.value),w(V),ie;break}}return ie}function Ue(V,P){const{currentType:ie}=P;let me=null;const Le=V.currentChar();switch((ie===7||ie===8||ie===11||ie===9)&&(Le===Xn||Le===ii)&&p(Ze.INVALID_LINKED_FORMAT,s(),0),Le){case"@":return V.next(),me=m(P,7,"@"),P.inLinked=!0,me;case".":return w(V),V.next(),m(P,8,".");case":":return w(V),V.next(),m(P,9,":");default:return M(V)?(me=m(P,1,ve(V)),P.braceNest=0,P.inLinked=!1,me):T(V,P)||L(V,P)?(w(V),Ue(V,P)):A(V,P)?(w(V),m(P,11,he(V))):D(V,P)?(w(V),Le==="{"?Me(V,P)||me:m(P,10,J(V))):(ie===7&&p(Ze.INVALID_LINKED_FORMAT,s(),0),P.braceNest=0,P.inLinked=!1,N(V,P))}}function N(V,P){let ie={type:13};if(P.braceNest>0)return Me(V,P)||g(P);if(P.inLinked)return Ue(V,P)||g(P);switch(V.currentChar()){case"{":return Me(V,P)||g(P);case"}":return p(Ze.UNBALANCED_CLOSING_BRACE,s(),0),V.next(),m(P,3,"}");case"@":return Ue(V,P)||g(P);default:{if(M(V))return ie=m(P,1,ve(V)),P.braceNest=0,P.inLinked=!1,ie;if($(V))return m(P,0,ye(V));break}}return ie}function ke(){const{currentType:V,offset:P,startLoc:ie,endLoc:me}=u;return u.lastType=V,u.lastOffset=P,u.lastStartLoc=ie,u.lastEndLoc=me,u.offset=o(),u.startLoc=s(),r.currentChar()===Yi?m(u,13):N(r,u)}return{nextToken:ke,currentOffset:o,currentPosition:s,context:c}}const $D="parser",zD=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function HD(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function UD(t={}){const e=t.location!==!1,{onError:n}=t;function r(x,S,C,E,..._){const T=x.currentPosition();if(T.offset+=E,T.column+=E,n){const A=e?mg(C,T):null,L=il(S,A,{domain:$D,args:_});n(L)}}function o(x,S,C){const E={type:x};return e&&(E.start=S,E.end=S,E.loc={start:C,end:C}),E}function s(x,S,C,E){e&&(x.end=S,x.loc&&(x.loc.end=C))}function a(x,S){const C=x.context(),E=o(3,C.offset,C.startLoc);return E.value=S,s(E,x.currentOffset(),x.currentPosition()),E}function l(x,S){const C=x.context(),{lastOffset:E,lastStartLoc:_}=C,T=o(5,E,_);return T.index=parseInt(S,10),x.nextToken(),s(T,x.currentOffset(),x.currentPosition()),T}function u(x,S){const C=x.context(),{lastOffset:E,lastStartLoc:_}=C,T=o(4,E,_);return T.key=S,x.nextToken(),s(T,x.currentOffset(),x.currentPosition()),T}function c(x,S){const C=x.context(),{lastOffset:E,lastStartLoc:_}=C,T=o(9,E,_);return T.value=S.replace(zD,HD),x.nextToken(),s(T,x.currentOffset(),x.currentPosition()),T}function f(x){const S=x.nextToken(),C=x.context(),{lastOffset:E,lastStartLoc:_}=C,T=o(8,E,_);return S.type!==11?(r(x,Ze.UNEXPECTED_EMPTY_LINKED_MODIFIER,C.lastStartLoc,0),T.value="",s(T,E,_),{nextConsumeToken:S,node:T}):(S.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ro(S)),T.value=S.value||"",s(T,x.currentOffset(),x.currentPosition()),{node:T})}function p(x,S){const C=x.context(),E=o(7,C.offset,C.startLoc);return E.value=S,s(E,x.currentOffset(),x.currentPosition()),E}function m(x){const S=x.context(),C=o(6,S.offset,S.startLoc);let E=x.nextToken();if(E.type===8){const _=f(x);C.modifier=_.node,E=_.nextConsumeToken||x.nextToken()}switch(E.type!==9&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(E)),E=x.nextToken(),E.type===2&&(E=x.nextToken()),E.type){case 10:E.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(E)),C.key=p(x,E.value||"");break;case 4:E.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(E)),C.key=u(x,E.value||"");break;case 5:E.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(E)),C.key=l(x,E.value||"");break;case 6:E.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(E)),C.key=c(x,E.value||"");break;default:{r(x,Ze.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const _=x.context(),T=o(7,_.offset,_.startLoc);return T.value="",s(T,_.offset,_.startLoc),C.key=T,s(C,_.offset,_.startLoc),{nextConsumeToken:E,node:C}}}return s(C,x.currentOffset(),x.currentPosition()),{node:C}}function g(x){const S=x.context(),C=S.currentType===1?x.currentOffset():S.offset,E=S.currentType===1?S.endLoc:S.startLoc,_=o(2,C,E);_.items=[];let T=null;do{const D=T||x.nextToken();switch(T=null,D.type){case 0:D.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(D)),_.items.push(a(x,D.value||""));break;case 5:D.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(D)),_.items.push(l(x,D.value||""));break;case 4:D.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(D)),_.items.push(u(x,D.value||""));break;case 6:D.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(D)),_.items.push(c(x,D.value||""));break;case 7:{const M=m(x);_.items.push(M.node),T=M.nextConsumeToken||null;break}}}while(S.currentType!==13&&S.currentType!==1);const A=S.currentType===1?S.lastOffset:x.currentOffset(),L=S.currentType===1?S.lastEndLoc:x.currentPosition();return s(_,A,L),_}function b(x,S,C,E){const _=x.context();let T=E.items.length===0;const A=o(1,S,C);A.cases=[],A.cases.push(E);do{const L=g(x);T||(T=L.items.length===0),A.cases.push(L)}while(_.currentType!==13);return T&&r(x,Ze.MUST_HAVE_MESSAGES_IN_PLURAL,C,0),s(A,x.currentOffset(),x.currentPosition()),A}function y(x){const S=x.context(),{offset:C,startLoc:E}=S,_=g(x);return S.currentType===13?_:b(x,C,E,_)}function w(x){const S=FD(x,hn({},t)),C=S.context(),E=o(0,C.offset,C.startLoc);return e&&E.loc&&(E.loc.source=x),E.body=y(S),t.onCacheKey&&(E.cacheKey=t.onCacheKey(x)),C.currentType!==13&&r(S,Ze.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,x[C.offset]||""),s(E,S.currentOffset(),S.currentPosition()),E}return{parse:w}}function Ro(t){if(t.type===13)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function WD(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function zx(t,e){for(let n=0;n<t.length;n++)gg(t[n],e)}function gg(t,e){switch(t.type){case 1:zx(t.cases,e),e.helper("plural");break;case 2:zx(t.items,e);break;case 6:{gg(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function jD(t,e={}){const n=WD(t);n.helper("normalize"),t.body&&gg(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function qD(t){const e=t.body;return e.type===2?Hx(e):e.cases.forEach(n=>Hx(n)),t}function Hx(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;n<t.items.length;n++){const r=t.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;e.push(r.value)}if(e.length===t.items.length){t.static=pg(e);for(let n=0;n<t.items.length;n++){const r=t.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const KD="minifier";function sl(t){switch(t.t=t.type,t.type){case 0:{const e=t;sl(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,n=e.cases;for(let r=0;r<n.length;r++)sl(n[r]);e.c=n,delete e.cases;break}case 2:{const e=t,n=e.items;for(let r=0;r<n.length;r++)sl(n[r]);e.i=n,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;sl(e.key),e.k=e.key,delete e.key,e.modifier&&(sl(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}default:if(process.env.NODE_ENV!=="production")throw il(Ze.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:KD,args:[t.type]})}delete t.type}const GD="parser";function XD(t,e){const{filename:n,breakLineCode:r,needIndent:o}=e,s=e.location!==!1,a={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};s&&t.loc&&(a.source=t.loc.source);const l=()=>a;function u(y,w){a.code+=y}function c(y,w=!0){const x=w?r:"";u(o?x+" ".repeat(y):x)}function f(y=!0){const w=++a.indentLevel;y&&c(w)}function p(y=!0){const w=--a.indentLevel;y&&c(w)}function m(){c(a.indentLevel)}return{context:l,push:u,indent:f,deindent:p,newline:m,helper:y=>`_${y}`,needIndent:()=>a.needIndent}}function YD(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),al(t,e.key),e.modifier?(t.push(", "),al(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function JD(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const o=e.items.length;for(let s=0;s<o&&(al(t,e.items[s]),s!==o-1);s++)t.push(", ");t.deindent(r()),t.push("])")}function ZD(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const o=e.cases.length;for(let s=0;s<o&&(al(t,e.cases[s]),s!==o-1);s++)t.push(", ");t.deindent(r()),t.push("])")}}function QD(t,e){e.body?al(t,e.body):t.push("null")}function al(t,e){const{helper:n}=t;switch(e.type){case 0:QD(t,e);break;case 1:ZD(t,e);break;case 2:JD(t,e);break;case 6:YD(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:if(process.env.NODE_ENV!=="production")throw il(Ze.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:GD,args:[e.type]})}}const ND=(t,e={})=>{const n=_e(e.mode)?e.mode:"normal",r=_e(e.filename)?e.filename:"message.intl";e.sourceMap;const o=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
151
+ `,RD="\u2028",LD="\u2029";function PD(t){const e=t;let n=0,r=1,o=1,s=0;const a=A=>e[A]===ID&&e[A+1]===Xn,l=A=>e[A]===Xn,u=A=>e[A]===LD,c=A=>e[A]===RD,f=A=>a(A)||l(A)||u(A)||c(A),p=()=>n,m=()=>r,g=()=>o,b=()=>s,y=A=>a(A)||u(A)||c(A)?Xn:e[A],w=()=>y(n),x=()=>y(n+s);function S(){return s=0,f(n)&&(r++,o=0),a(n)&&n++,n++,o++,e[n]}function C(){return a(n+s)&&s++,s++,e[n+s]}function E(){n=0,r=1,o=1,s=0}function _(A=0){s=A}function T(){const A=n+s;for(;A!==n;)S();s=0}return{index:p,line:m,column:g,peekOffset:b,charAt:y,currentChar:w,currentPeek:x,next:S,peek:C,reset:E,resetPeek:_,skipToPeek:T}}const Yi=void 0,DD=".",$x="'",VD="tokenizer";function FD(t,e={}){const n=e.location!==!1,r=PD(t),o=()=>r.index(),s=()=>_D(r.line(),r.column(),r.index()),a=s(),l=o(),u={currentType:13,offset:l,startLoc:a,endLoc:a,lastType:13,lastOffset:l,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>u,{onError:f}=e;function p(V,P,ie,...me){const Le=c();if(P.column+=ie,P.offset+=ie,f){const nt=n?mg(Le.startLoc,P):null,We=il(V,nt,{domain:VD,args:me});f(We)}}function m(V,P,ie){V.endLoc=s(),V.currentType=P;const me={type:P};return n&&(me.loc=mg(V.startLoc,V.endLoc)),ie!=null&&(me.value=ie),me}const g=V=>m(V,13);function b(V,P){return V.currentChar()===P?(V.next(),P):(p(Ze.EXPECTED_TOKEN,s(),0,P),"")}function y(V){let P="";for(;V.currentPeek()===ii||V.currentPeek()===Xn;)P+=V.currentPeek(),V.peek();return P}function w(V){const P=y(V);return V.skipToPeek(),P}function x(V){if(V===Yi)return!1;const P=V.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P===95}function S(V){if(V===Yi)return!1;const P=V.charCodeAt(0);return P>=48&&P<=57}function C(V,P){const{currentType:ie}=P;if(ie!==2)return!1;y(V);const me=x(V.currentPeek());return V.resetPeek(),me}function E(V,P){const{currentType:ie}=P;if(ie!==2)return!1;y(V);const me=V.currentPeek()==="-"?V.peek():V.currentPeek(),Le=S(me);return V.resetPeek(),Le}function _(V,P){const{currentType:ie}=P;if(ie!==2)return!1;y(V);const me=V.currentPeek()===$x;return V.resetPeek(),me}function T(V,P){const{currentType:ie}=P;if(ie!==7)return!1;y(V);const me=V.currentPeek()===".";return V.resetPeek(),me}function A(V,P){const{currentType:ie}=P;if(ie!==8)return!1;y(V);const me=x(V.currentPeek());return V.resetPeek(),me}function L(V,P){const{currentType:ie}=P;if(!(ie===7||ie===11))return!1;y(V);const me=V.currentPeek()===":";return V.resetPeek(),me}function D(V,P){const{currentType:ie}=P;if(ie!==9)return!1;const me=()=>{const nt=V.currentPeek();return nt==="{"?x(V.peek()):nt==="@"||nt==="|"||nt===":"||nt==="."||nt===ii||!nt?!1:nt===Xn?(V.peek(),me()):$(V,!1)},Le=me();return V.resetPeek(),Le}function M(V){y(V);const P=V.currentPeek()==="|";return V.resetPeek(),P}function $(V,P=!0){const ie=(Le=!1,nt="")=>{const We=V.currentPeek();return We==="{"||We==="@"||!We?Le:We==="|"?!(nt===ii||nt===Xn):We===ii?(V.peek(),ie(!0,ii)):We===Xn?(V.peek(),ie(!0,Xn)):!0},me=ie();return P&&V.resetPeek(),me}function j(V,P){const ie=V.currentChar();return ie===Yi?Yi:P(ie)?(V.next(),ie):null}function X(V){const P=V.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===95||P===36}function se(V){return j(V,X)}function W(V){const P=V.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===95||P===36||P===45}function z(V){return j(V,W)}function R(V){const P=V.charCodeAt(0);return P>=48&&P<=57}function q(V){return j(V,R)}function Z(V){const P=V.charCodeAt(0);return P>=48&&P<=57||P>=65&&P<=70||P>=97&&P<=102}function te(V){return j(V,Z)}function ne(V){let P="",ie="";for(;P=q(V);)ie+=P;return ie}function ye(V){let P="";for(;;){const ie=V.currentChar();if(ie==="{"||ie==="}"||ie==="@"||ie==="|"||!ie)break;if(ie===ii||ie===Xn)if($(V))P+=ie,V.next();else{if(M(V))break;P+=ie,V.next()}else P+=ie,V.next()}return P}function Ce(V){w(V);let P="",ie="";for(;P=z(V);)ie+=P;return V.currentChar()===Yi&&p(Ze.UNTERMINATED_CLOSING_BRACE,s(),0),ie}function He(V){w(V);let P="";return V.currentChar()==="-"?(V.next(),P+=`-${ne(V)}`):P+=ne(V),V.currentChar()===Yi&&p(Ze.UNTERMINATED_CLOSING_BRACE,s(),0),P}function Se(V){return V!==$x&&V!==Xn}function je(V){w(V),b(V,"'");let P="",ie="";for(;P=j(V,Se);)P==="\\"?ie+=H(V):ie+=P;const me=V.currentChar();return me===Xn||me===Yi?(p(Ze.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),me===Xn&&(V.next(),b(V,"'")),ie):(b(V,"'"),ie)}function H(V){const P=V.currentChar();switch(P){case"\\":case"'":return V.next(),`\\${P}`;case"u":return Y(V,P,4);case"U":return Y(V,P,6);default:return p(Ze.UNKNOWN_ESCAPE_SEQUENCE,s(),0,P),""}}function Y(V,P,ie){b(V,P);let me="";for(let Le=0;Le<ie;Le++){const nt=te(V);if(!nt){p(Ze.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${P}${me}${V.currentChar()}`);break}me+=nt}return`\\${P}${me}`}function ae(V){return V!=="{"&&V!=="}"&&V!==ii&&V!==Xn}function ue(V){w(V);let P="",ie="";for(;P=j(V,ae);)ie+=P;return ie}function he(V){let P="",ie="";for(;P=se(V);)ie+=P;return ie}function J(V){const P=ie=>{const me=V.currentChar();return me==="{"||me==="@"||me==="|"||me==="("||me===")"||!me||me===ii?ie:(ie+=me,V.next(),P(ie))};return P("")}function ve(V){w(V);const P=b(V,"|");return w(V),P}function Me(V,P){let ie=null;switch(V.currentChar()){case"{":return P.braceNest>=1&&p(Ze.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),V.next(),ie=m(P,2,"{"),w(V),P.braceNest++,ie;case"}":return P.braceNest>0&&P.currentType===2&&p(Ze.EMPTY_PLACEHOLDER,s(),0),V.next(),ie=m(P,3,"}"),P.braceNest--,P.braceNest>0&&w(V),P.inLinked&&P.braceNest===0&&(P.inLinked=!1),ie;case"@":return P.braceNest>0&&p(Ze.UNTERMINATED_CLOSING_BRACE,s(),0),ie=Ue(V,P)||g(P),P.braceNest=0,ie;default:{let Le=!0,nt=!0,We=!0;if(M(V))return P.braceNest>0&&p(Ze.UNTERMINATED_CLOSING_BRACE,s(),0),ie=m(P,1,ve(V)),P.braceNest=0,P.inLinked=!1,ie;if(P.braceNest>0&&(P.currentType===4||P.currentType===5||P.currentType===6))return p(Ze.UNTERMINATED_CLOSING_BRACE,s(),0),P.braceNest=0,Q(V,P);if(Le=C(V,P))return ie=m(P,4,Ce(V)),w(V),ie;if(nt=E(V,P))return ie=m(P,5,He(V)),w(V),ie;if(We=_(V,P))return ie=m(P,6,je(V)),w(V),ie;if(!Le&&!nt&&!We)return ie=m(P,12,ue(V)),p(Ze.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,ie.value),w(V),ie;break}}return ie}function Ue(V,P){const{currentType:ie}=P;let me=null;const Le=V.currentChar();switch((ie===7||ie===8||ie===11||ie===9)&&(Le===Xn||Le===ii)&&p(Ze.INVALID_LINKED_FORMAT,s(),0),Le){case"@":return V.next(),me=m(P,7,"@"),P.inLinked=!0,me;case".":return w(V),V.next(),m(P,8,".");case":":return w(V),V.next(),m(P,9,":");default:return M(V)?(me=m(P,1,ve(V)),P.braceNest=0,P.inLinked=!1,me):T(V,P)||L(V,P)?(w(V),Ue(V,P)):A(V,P)?(w(V),m(P,11,he(V))):D(V,P)?(w(V),Le==="{"?Me(V,P)||me:m(P,10,J(V))):(ie===7&&p(Ze.INVALID_LINKED_FORMAT,s(),0),P.braceNest=0,P.inLinked=!1,Q(V,P))}}function Q(V,P){let ie={type:13};if(P.braceNest>0)return Me(V,P)||g(P);if(P.inLinked)return Ue(V,P)||g(P);switch(V.currentChar()){case"{":return Me(V,P)||g(P);case"}":return p(Ze.UNBALANCED_CLOSING_BRACE,s(),0),V.next(),m(P,3,"}");case"@":return Ue(V,P)||g(P);default:{if(M(V))return ie=m(P,1,ve(V)),P.braceNest=0,P.inLinked=!1,ie;if($(V))return m(P,0,ye(V));break}}return ie}function ke(){const{currentType:V,offset:P,startLoc:ie,endLoc:me}=u;return u.lastType=V,u.lastOffset=P,u.lastStartLoc=ie,u.lastEndLoc=me,u.offset=o(),u.startLoc=s(),r.currentChar()===Yi?m(u,13):Q(r,u)}return{nextToken:ke,currentOffset:o,currentPosition:s,context:c}}const $D="parser",zD=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function HD(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function UD(t={}){const e=t.location!==!1,{onError:n}=t;function r(x,S,C,E,..._){const T=x.currentPosition();if(T.offset+=E,T.column+=E,n){const A=e?mg(C,T):null,L=il(S,A,{domain:$D,args:_});n(L)}}function o(x,S,C){const E={type:x};return e&&(E.start=S,E.end=S,E.loc={start:C,end:C}),E}function s(x,S,C,E){e&&(x.end=S,x.loc&&(x.loc.end=C))}function a(x,S){const C=x.context(),E=o(3,C.offset,C.startLoc);return E.value=S,s(E,x.currentOffset(),x.currentPosition()),E}function l(x,S){const C=x.context(),{lastOffset:E,lastStartLoc:_}=C,T=o(5,E,_);return T.index=parseInt(S,10),x.nextToken(),s(T,x.currentOffset(),x.currentPosition()),T}function u(x,S){const C=x.context(),{lastOffset:E,lastStartLoc:_}=C,T=o(4,E,_);return T.key=S,x.nextToken(),s(T,x.currentOffset(),x.currentPosition()),T}function c(x,S){const C=x.context(),{lastOffset:E,lastStartLoc:_}=C,T=o(9,E,_);return T.value=S.replace(zD,HD),x.nextToken(),s(T,x.currentOffset(),x.currentPosition()),T}function f(x){const S=x.nextToken(),C=x.context(),{lastOffset:E,lastStartLoc:_}=C,T=o(8,E,_);return S.type!==11?(r(x,Ze.UNEXPECTED_EMPTY_LINKED_MODIFIER,C.lastStartLoc,0),T.value="",s(T,E,_),{nextConsumeToken:S,node:T}):(S.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ro(S)),T.value=S.value||"",s(T,x.currentOffset(),x.currentPosition()),{node:T})}function p(x,S){const C=x.context(),E=o(7,C.offset,C.startLoc);return E.value=S,s(E,x.currentOffset(),x.currentPosition()),E}function m(x){const S=x.context(),C=o(6,S.offset,S.startLoc);let E=x.nextToken();if(E.type===8){const _=f(x);C.modifier=_.node,E=_.nextConsumeToken||x.nextToken()}switch(E.type!==9&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(E)),E=x.nextToken(),E.type===2&&(E=x.nextToken()),E.type){case 10:E.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(E)),C.key=p(x,E.value||"");break;case 4:E.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(E)),C.key=u(x,E.value||"");break;case 5:E.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(E)),C.key=l(x,E.value||"");break;case 6:E.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(E)),C.key=c(x,E.value||"");break;default:{r(x,Ze.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const _=x.context(),T=o(7,_.offset,_.startLoc);return T.value="",s(T,_.offset,_.startLoc),C.key=T,s(C,_.offset,_.startLoc),{nextConsumeToken:E,node:C}}}return s(C,x.currentOffset(),x.currentPosition()),{node:C}}function g(x){const S=x.context(),C=S.currentType===1?x.currentOffset():S.offset,E=S.currentType===1?S.endLoc:S.startLoc,_=o(2,C,E);_.items=[];let T=null;do{const D=T||x.nextToken();switch(T=null,D.type){case 0:D.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(D)),_.items.push(a(x,D.value||""));break;case 5:D.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(D)),_.items.push(l(x,D.value||""));break;case 4:D.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(D)),_.items.push(u(x,D.value||""));break;case 6:D.value==null&&r(x,Ze.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ro(D)),_.items.push(c(x,D.value||""));break;case 7:{const M=m(x);_.items.push(M.node),T=M.nextConsumeToken||null;break}}}while(S.currentType!==13&&S.currentType!==1);const A=S.currentType===1?S.lastOffset:x.currentOffset(),L=S.currentType===1?S.lastEndLoc:x.currentPosition();return s(_,A,L),_}function b(x,S,C,E){const _=x.context();let T=E.items.length===0;const A=o(1,S,C);A.cases=[],A.cases.push(E);do{const L=g(x);T||(T=L.items.length===0),A.cases.push(L)}while(_.currentType!==13);return T&&r(x,Ze.MUST_HAVE_MESSAGES_IN_PLURAL,C,0),s(A,x.currentOffset(),x.currentPosition()),A}function y(x){const S=x.context(),{offset:C,startLoc:E}=S,_=g(x);return S.currentType===13?_:b(x,C,E,_)}function w(x){const S=FD(x,hn({},t)),C=S.context(),E=o(0,C.offset,C.startLoc);return e&&E.loc&&(E.loc.source=x),E.body=y(S),t.onCacheKey&&(E.cacheKey=t.onCacheKey(x)),C.currentType!==13&&r(S,Ze.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,x[C.offset]||""),s(E,S.currentOffset(),S.currentPosition()),E}return{parse:w}}function Ro(t){if(t.type===13)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function WD(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function zx(t,e){for(let n=0;n<t.length;n++)gg(t[n],e)}function gg(t,e){switch(t.type){case 1:zx(t.cases,e),e.helper("plural");break;case 2:zx(t.items,e);break;case 6:{gg(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function jD(t,e={}){const n=WD(t);n.helper("normalize"),t.body&&gg(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function qD(t){const e=t.body;return e.type===2?Hx(e):e.cases.forEach(n=>Hx(n)),t}function Hx(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;n<t.items.length;n++){const r=t.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;e.push(r.value)}if(e.length===t.items.length){t.static=pg(e);for(let n=0;n<t.items.length;n++){const r=t.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const KD="minifier";function sl(t){switch(t.t=t.type,t.type){case 0:{const e=t;sl(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,n=e.cases;for(let r=0;r<n.length;r++)sl(n[r]);e.c=n,delete e.cases;break}case 2:{const e=t,n=e.items;for(let r=0;r<n.length;r++)sl(n[r]);e.i=n,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;sl(e.key),e.k=e.key,delete e.key,e.modifier&&(sl(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}default:if(process.env.NODE_ENV!=="production")throw il(Ze.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:KD,args:[t.type]})}delete t.type}const GD="parser";function XD(t,e){const{filename:n,breakLineCode:r,needIndent:o}=e,s=e.location!==!1,a={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};s&&t.loc&&(a.source=t.loc.source);const l=()=>a;function u(y,w){a.code+=y}function c(y,w=!0){const x=w?r:"";u(o?x+" ".repeat(y):x)}function f(y=!0){const w=++a.indentLevel;y&&c(w)}function p(y=!0){const w=--a.indentLevel;y&&c(w)}function m(){c(a.indentLevel)}return{context:l,push:u,indent:f,deindent:p,newline:m,helper:y=>`_${y}`,needIndent:()=>a.needIndent}}function YD(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),al(t,e.key),e.modifier?(t.push(", "),al(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function JD(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const o=e.items.length;for(let s=0;s<o&&(al(t,e.items[s]),s!==o-1);s++)t.push(", ");t.deindent(r()),t.push("])")}function ZD(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const o=e.cases.length;for(let s=0;s<o&&(al(t,e.cases[s]),s!==o-1);s++)t.push(", ");t.deindent(r()),t.push("])")}}function QD(t,e){e.body?al(t,e.body):t.push("null")}function al(t,e){const{helper:n}=t;switch(e.type){case 0:QD(t,e);break;case 1:ZD(t,e);break;case 2:JD(t,e);break;case 6:YD(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:if(process.env.NODE_ENV!=="production")throw il(Ze.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:GD,args:[e.type]})}}const ND=(t,e={})=>{const n=_e(e.mode)?e.mode:"normal",r=_e(e.filename)?e.filename:"message.intl";e.sourceMap;const o=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
152
152
  `,s=e.needIndent?e.needIndent:n!=="arrow",a=t.helpers||[],l=XD(t,{filename:r,breakLineCode:o,needIndent:s});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),a.length>0&&(l.push(`const { ${pg(a.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),al(l,t),l.deindent(s),l.push("}"),delete t.helpers;const{code:u,map:c}=l.context();return{ast:t,code:u,map:c?c.toJSON():void 0}};function eV(t,e={}){const n=hn({},e),r=!!n.jit,o=!!n.minify,s=n.optimize==null?!0:n.optimize,l=UD(n).parse(t);return r?(s&&qD(l),o&&sl(l),{ast:l,code:""}):(jD(l,n),ND(l,n))}/*!
153
153
  * core-base v10.0.6
154
154
  * (c) 2025 kazuya kawaguchi
@@ -158,7 +158,7 @@ ${c}`:u)}else throw a},onCacheKey:a=>vD(e,n,a)}}function lF(t){if(_e(t))return t
158
158
  * vue-i18n v10.0.6
159
159
  * (c) 2025 kazuya kawaguchi
160
160
  * Released under the MIT License.
161
- */const vF="10.0.6";function yF(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ys().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ys().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ys().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ys().__INTLIFY_PROD_DEVTOOLS__=!1)}const Ni={FALLBACK_TO_ROOT:$V,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_TC:11},wF={[Ni.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Ni.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Ni.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Ni.DEPRECATE_TC]:"'tc' and '$tc' has been deprecated in v10. Use 't' or '$t' instead. 'tc' and '$tc’ are going to remove in v11."};function xf(t,...e){return ff(wF[t],...e)}const Vt={UNEXPECTED_RETURN_TYPE:_V,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Yn(t,...e){return il(t,null,process.env.NODE_ENV!=="production"?{messages:xF,args:e}:void 0)}const xF={[Vt.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Vt.INVALID_ARGUMENT]:"Invalid argument",[Vt.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Vt.NOT_INSTALLED]:"Need to install with `app.use` function",[Vt.UNEXPECTED_ERROR]:"Unexpected error",[Vt.REQUIRED_VALUE]:"Required in value: {0}",[Vt.INVALID_VALUE]:"Invalid value",[Vt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Vt.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Vt.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Vt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Ag=Io("__translateVNode"),Og=Io("__datetimeParts"),Mg=Io("__numberParts"),Zs=Io("__enableEmitter"),Pu=Io("__disableEmitter"),b6=Io("__setPluralRules"),v6=Io("__injectWithOption"),Bg=Io("__dispose");function Du(t){if(!xt(t))return t;for(const e in t)if(io(t,e))if(!e.includes("."))xt(t[e])&&Du(t[e]);else{const n=e.split("."),r=n.length-1;let o=t,s=!1;for(let a=0;a<r;a++){if(n[a]==="__proto__")throw new Error(`unsafe key: ${n[a]}`);if(n[a]in o||(o[n[a]]=It()),!xt(o[n[a]])){process.env.NODE_ENV!=="production"&&Xi(xf(Ni.IGNORE_OBJ_FLATTEN,{key:n[a]})),s=!0;break}o=o[n[a]]}s||(o[n[r]]=t[e],delete t[e]),xt(o[n[r]])&&Du(o[n[r]])}return t}function Ig(t,e){const{messages:n,__i18n:r,messageResolver:o,flatJson:s}=e,a=dt(n)?n:Jt(r)?It():{[t]:It()};if(Jt(r)&&r.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:u,resource:c}=l;u?(a[u]=a[u]||It(),mf(c,a[u])):mf(c,a)}else _e(l)&&mf(JSON.parse(l),a)}),o==null&&s)for(const l in a)io(a,l)&&Du(a[l]);return a}function y6(t){return t.type}function w6(t,e,n){let r=xt(e.messages)?e.messages:It();"__i18nGlobal"in n&&(r=Ig(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(s=>{t.mergeLocaleMessage(s,r[s])});{if(xt(e.datetimeFormats)){const s=Object.keys(e.datetimeFormats);s.length&&s.forEach(a=>{t.mergeDateTimeFormat(a,e.datetimeFormats[a])})}if(xt(e.numberFormats)){const s=Object.keys(e.numberFormats);s.length&&s.forEach(a=>{t.mergeNumberFormat(a,e.numberFormats[a])})}}}function x6(t){return i.createVNode(i.Text,null,t,0)}const C6="__INTLIFY_META__",E6=()=>[],CF=()=>!1;let S6=0;function k6(t){return(e,n,r,o)=>t(n,r,i.getCurrentInstance()||void 0,o)}const EF=()=>{const t=i.getCurrentInstance();let e=null;return t&&(e=y6(t)[C6])?{[C6]:e}:null};function Rg(t={}){const{__root:e,__injectWithOption:n}=t,r=e===void 0,o=t.flatJson,s=oo?i.ref:i.shallowRef;let a=Ct(t.inheritLocale)?t.inheritLocale:!0;const l=s(e&&a?e.locale.value:_e(t.locale)?t.locale:Ru),u=s(e&&a?e.fallbackLocale.value:_e(t.fallbackLocale)||Jt(t.fallbackLocale)||dt(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:l.value),c=s(Ig(l.value,t)),f=s(dt(t.datetimeFormats)?t.datetimeFormats:{[l.value]:{}}),p=s(dt(t.numberFormats)?t.numberFormats:{[l.value]:{}});let m=e?e.missingWarn:Ct(t.missingWarn)||ol(t.missingWarn)?t.missingWarn:!0,g=e?e.fallbackWarn:Ct(t.fallbackWarn)||ol(t.fallbackWarn)?t.fallbackWarn:!0,b=e?e.fallbackRoot:Ct(t.fallbackRoot)?t.fallbackRoot:!0,y=!!t.fallbackFormat,w=Dt(t.missing)?t.missing:null,x=Dt(t.missing)?k6(t.missing):null,S=Dt(t.postTranslation)?t.postTranslation:null,C=e?e.warnHtmlMessage:Ct(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const _=e?e.modifiers:dt(t.modifiers)?t.modifiers:{};let T=t.pluralRules||e&&e.pluralRules,A;A=(()=>{r&&Nx(null);const ee={version:vF,locale:l.value,fallbackLocale:u.value,messages:c.value,modifiers:_,pluralRules:T,missing:x===null?void 0:x,missingWarn:m,fallbackWarn:g,fallbackFormat:y,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:C,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};ee.datetimeFormats=f.value,ee.numberFormats=p.value,ee.__datetimeFormatters=dt(A)?A.__datetimeFormatters:void 0,ee.__numberFormatters=dt(A)?A.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(ee.__v_emitter=dt(A)?A.__v_emitter:void 0);const ge=YV(ee);return r&&Nx(ge),ge})(),Lu(A,l.value,u.value);function D(){return[l.value,u.value,c.value,f.value,p.value]}const M=i.computed({get:()=>l.value,set:ee=>{l.value=ee,A.locale=l.value}}),$=i.computed({get:()=>u.value,set:ee=>{u.value=ee,A.fallbackLocale=u.value,Lu(A,l.value,ee)}}),j=i.computed(()=>c.value),X=i.computed(()=>f.value),se=i.computed(()=>p.value);function W(){return Dt(S)?S:null}function z(ee){S=ee,A.postTranslation=ee}function R(){return w}function q(ee){ee!==null&&(x=k6(ee)),w=ee,A.missing=x}function Z(ee,ge){return ee!=="translate"||!ge.resolvedMessage}const te=(ee,ge,ce,we,Ve,Qe)=>{D();let Ot;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=e?XV():void 0),Ot=ee(A)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=void 0)}if(ce!=="translate exists"&&ln(Ot)&&Ot===vf||ce==="translate exists"&&!Ot){const[Nt,hi]=ge();if(process.env.NODE_ENV!=="production"&&e&&_e(Nt)&&Z(ce,hi)&&(b&&(wf(g,Nt)||t6(m,Nt))&&Xi(xf(Ni.FALLBACK_TO_ROOT,{key:Nt,type:ce})),process.env.NODE_ENV!=="production")){const{__v_emitter:oe}=A;oe&&b&&oe.emit("fallback",{type:ce,key:Nt,to:"global",groupId:`${ce}:${Nt}`})}return e&&b?we(e):Ve(Nt)}else{if(Qe(Ot))return Ot;throw Yn(Vt.UNEXPECTED_RETURN_TYPE)}};function ne(...ee){return te(ge=>Reflect.apply(p6,null,[ge,...ee]),()=>_g(...ee),"translate",ge=>Reflect.apply(ge.t,ge,[...ee]),ge=>ge,ge=>_e(ge))}function ye(...ee){const[ge,ce,we]=ee;if(we&&!xt(we))throw Yn(Vt.INVALID_ARGUMENT);return ne(ge,ce,hn({resolvedMessage:!0},we||{}))}function Ce(...ee){return te(ge=>Reflect.apply(i6,null,[ge,...ee]),()=>Sg(...ee),"datetime format",ge=>Reflect.apply(ge.d,ge,[...ee]),()=>yf,ge=>_e(ge))}function He(...ee){return te(ge=>Reflect.apply(l6,null,[ge,...ee]),()=>kg(...ee),"number format",ge=>Reflect.apply(ge.n,ge,[...ee]),()=>yf,ge=>_e(ge))}function Se(ee){return ee.map(ge=>_e(ge)||ln(ge)||Ct(ge)?x6(String(ge)):ge)}const H={normalize:Se,interpolate:ee=>ee,type:"vnode"};function Y(...ee){return te(ge=>{let ce;const we=ge;try{we.processor=H,ce=Reflect.apply(p6,null,[we,...ee])}finally{we.processor=null}return ce},()=>_g(...ee),"translate",ge=>ge[Ag](...ee),ge=>[x6(ge)],ge=>Jt(ge))}function ae(...ee){return te(ge=>Reflect.apply(l6,null,[ge,...ee]),()=>kg(...ee),"number format",ge=>ge[Mg](...ee),E6,ge=>_e(ge)||Jt(ge))}function ue(...ee){return te(ge=>Reflect.apply(i6,null,[ge,...ee]),()=>Sg(...ee),"datetime format",ge=>ge[Og](...ee),E6,ge=>_e(ge)||Jt(ge))}function he(ee){T=ee,A.pluralRules=T}function J(ee,ge){return te(()=>{if(!ee)return!1;const ce=_e(ge)?ge:l.value,we=Ue(ce),Ve=A.messageResolver(we,ee);return Zi(Ve)||Vr(Ve)||_e(Ve)},()=>[ee],"translate exists",ce=>Reflect.apply(ce.te,ce,[ee,ge]),CF,ce=>Ct(ce))}function ve(ee){let ge=null;const ce=jx(A,u.value,l.value);for(let we=0;we<ce.length;we++){const Ve=c.value[ce[we]]||{},Qe=A.messageResolver(Ve,ee);if(Qe!=null){ge=Qe;break}}return ge}function Me(ee){const ge=ve(ee);return ge??(e?e.tm(ee)||{}:{})}function Ue(ee){return c.value[ee]||{}}function N(ee,ge){if(o){const ce={[ee]:ge};for(const we in ce)io(ce,we)&&Du(ce[we]);ge=ce[ee]}c.value[ee]=ge,A.messages=c.value}function ke(ee,ge){c.value[ee]=c.value[ee]||{};const ce={[ee]:ge};if(o)for(const we in ce)io(ce,we)&&Du(ce[we]);ge=ce[ee],mf(ge,c.value[ee]),A.messages=c.value}function V(ee){return f.value[ee]||{}}function P(ee,ge){f.value[ee]=ge,A.datetimeFormats=f.value,a6(A,ee,ge)}function ie(ee,ge){f.value[ee]=hn(f.value[ee]||{},ge),A.datetimeFormats=f.value,a6(A,ee,ge)}function me(ee){return p.value[ee]||{}}function Le(ee,ge){p.value[ee]=ge,A.numberFormats=p.value,c6(A,ee,ge)}function nt(ee,ge){p.value[ee]=hn(p.value[ee]||{},ge),A.numberFormats=p.value,c6(A,ee,ge)}S6++,e&&oo&&(i.watch(e.locale,ee=>{a&&(l.value=ee,A.locale=ee,Lu(A,l.value,u.value))}),i.watch(e.fallbackLocale,ee=>{a&&(u.value=ee,A.fallbackLocale=ee,Lu(A,l.value,u.value))}));const We={id:S6,locale:M,fallbackLocale:$,get inheritLocale(){return a},set inheritLocale(ee){a=ee,ee&&e&&(l.value=e.locale.value,u.value=e.fallbackLocale.value,Lu(A,l.value,u.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:j,get modifiers(){return _},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return m},set missingWarn(ee){m=ee,A.missingWarn=m},get fallbackWarn(){return g},set fallbackWarn(ee){g=ee,A.fallbackWarn=g},get fallbackRoot(){return b},set fallbackRoot(ee){b=ee},get fallbackFormat(){return y},set fallbackFormat(ee){y=ee,A.fallbackFormat=y},get warnHtmlMessage(){return C},set warnHtmlMessage(ee){C=ee,A.warnHtmlMessage=ee},get escapeParameter(){return E},set escapeParameter(ee){E=ee,A.escapeParameter=ee},t:ne,getLocaleMessage:Ue,setLocaleMessage:N,mergeLocaleMessage:ke,getPostTranslationHandler:W,setPostTranslationHandler:z,getMissingHandler:R,setMissingHandler:q,[b6]:he};return We.datetimeFormats=X,We.numberFormats=se,We.rt=ye,We.te=J,We.tm=Me,We.d=Ce,We.n=He,We.getDateTimeFormat=V,We.setDateTimeFormat=P,We.mergeDateTimeFormat=ie,We.getNumberFormat=me,We.setNumberFormat=Le,We.mergeNumberFormat=nt,We[v6]=n,We[Ag]=Y,We[Og]=ue,We[Mg]=ae,process.env.NODE_ENV!=="production"&&(We[Zs]=ee=>{A.__v_emitter=ee},We[Pu]=()=>{A.__v_emitter=void 0}),We}const _6="vue-i18n: composer properties",Lg={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},SF={"vue-i18n-resource-inspector":"Search for scopes ..."},kF={"vue-i18n-timeline":16764185};let Pg;async function _F(t,e){return new Promise((n,r)=>{try{bF({id:"vue-devtools-plugin-vue-i18n",label:Lg["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[_6],app:t},o=>{Pg=o,o.on.visitComponentTree(({componentInstance:a,treeNode:l})=>{TF(a,l,e)}),o.on.inspectComponent(({componentInstance:a,instanceData:l})=>{a.vnode.el&&a.vnode.el.__VUE_I18N__&&l&&(e.mode==="legacy"?a.vnode.el.__VUE_I18N__!==e.global.__composer&&A6(l,a.vnode.el.__VUE_I18N__):A6(l,a.vnode.el.__VUE_I18N__))}),o.addInspector({id:"vue-i18n-resource-inspector",label:Lg["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:SF["vue-i18n-resource-inspector"]}),o.on.getInspectorTree(a=>{a.app===t&&a.inspectorId==="vue-i18n-resource-inspector"&&IF(a,e)});const s=new Map;o.on.getInspectorState(async a=>{if(a.app===t&&a.inspectorId==="vue-i18n-resource-inspector")if(o.unhighlightElement(),LF(a,e),a.nodeId==="global"){if(!s.has(a.app)){const[l]=await o.getComponentInstances(a.app);s.set(a.app,l)}o.highlightElement(s.get(a.app))}else{const l=RF(a.nodeId,e);l&&o.highlightElement(l)}}),o.on.editInspectorState(a=>{a.app===t&&a.inspectorId==="vue-i18n-resource-inspector"&&DF(a,e)}),o.addTimelineLayer({id:"vue-i18n-timeline",label:Lg["vue-i18n-timeline"],color:kF["vue-i18n-timeline"]}),n(!0)})}catch(o){console.error(o),r(!1)}})}function T6(t){return t.type.name||t.type.displayName||t.type.__file||"Anonymous"}function TF(t,e,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(t&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&t.vnode.el.__VUE_I18N__!==r){const o={label:`i18n (${T6(t)} Scope)`,textColor:0,backgroundColor:16764185};e.tags.push(o)}}function A6(t,e){const n=_6;t.state.push({type:n,key:"locale",editable:!0,value:e.locale.value}),t.state.push({type:n,key:"availableLocales",editable:!1,value:e.availableLocales}),t.state.push({type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value}),t.state.push({type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}),t.state.push({type:n,key:"messages",editable:!1,value:Dg(e.messages.value)}),t.state.push({type:n,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}),t.state.push({type:n,key:"numberFormats",editable:!1,value:e.numberFormats.value})}function Dg(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];Dt(r)&&"source"in r?e[n]=BF(r):Zi(r)&&r.loc&&r.loc.source?e[n]=r.loc.source:xt(r)?e[n]=Dg(r):e[n]=r}),e}const AF={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function OF(t){return t.replace(/[<>"&]/g,MF)}function MF(t){return AF[t]||t}function BF(t){return{_custom:{type:"function",display:`<span>ƒ</span> ${t.source?`("${OF(t.source)}")`:"(?)"}`}}}function IF(t,e){t.rootNodes.push({id:"global",label:"Global Scope"});const n=e.mode==="composition"?e.global:e.global.__composer;for(const[r,o]of e.__instances){const s=e.mode==="composition"?o:o.__composer;n!==s&&t.rootNodes.push({id:s.id.toString(),label:`${T6(r)} Scope`})}}function RF(t,e){let n=null;if(t!=="global"){for(const[r,o]of e.__instances.entries())if(o.id.toString()===t){n=r;break}}return n}function O6(t,e){if(t==="global")return e.mode==="composition"?e.global:e.global.__composer;{const n=Array.from(e.__instances.values()).find(r=>r.id.toString()===t);return n?e.mode==="composition"?n:n.__composer:null}}function LF(t,e){const n=O6(t.nodeId,e);return n&&(t.state=PF(n)),null}function PF(t){const e={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:t.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:t.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}];e[n]=r;const o="Locale messages info",s=[{type:o,key:"messages",editable:!1,value:Dg(t.messages.value)}];e[o]=s;{const a="Datetime formats info",l=[{type:a,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}];e[a]=l;const u="Datetime formats info",c=[{type:u,key:"numberFormats",editable:!1,value:t.numberFormats.value}];e[u]=c}return e}function Vu(t,e){if(Pg){let n;e&&"groupId"in e&&(n=e.groupId,delete e.groupId),Pg.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:t,groupId:n,time:Date.now(),meta:{},data:e||{},logType:t==="compile-error"?"error":t==="fallback"||t==="missing"?"warning":"default"}})}}function DF(t,e){const n=O6(t.nodeId,e);if(n){const[r]=t.path;r==="locale"&&_e(t.state.value)?n.locale.value=t.state.value:r==="fallbackLocale"&&(_e(t.state.value)||Jt(t.state.value)||xt(t.state.value))?n.fallbackLocale.value=t.state.value:r==="inheritLocale"&&Ct(t.state.value)&&(n.inheritLocale=t.state.value)}}function VF(t){const e=_e(t.locale)?t.locale:Ru,n=_e(t.fallbackLocale)||Jt(t.fallbackLocale)||dt(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,r=Dt(t.missing)?t.missing:void 0,o=Ct(t.silentTranslationWarn)||ol(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,s=Ct(t.silentFallbackWarn)||ol(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,a=Ct(t.fallbackRoot)?t.fallbackRoot:!0,l=!!t.formatFallbackMessages,u=dt(t.modifiers)?t.modifiers:{},c=t.pluralizationRules,f=Dt(t.postTranslation)?t.postTranslation:void 0,p=_e(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,m=!!t.escapeParameterHtml,g=Ct(t.sync)?t.sync:!0;let b=t.messages;if(dt(t.sharedMessages)){const _=t.sharedMessages;b=Object.keys(_).reduce((A,L)=>{const D=A[L]||(A[L]={});return hn(D,_[L]),A},b||{})}const{__i18n:y,__root:w,__injectWithOption:x}=t,S=t.datetimeFormats,C=t.numberFormats,E=t.flatJson;return{locale:e,fallbackLocale:n,messages:b,flatJson:E,datetimeFormats:S,numberFormats:C,missing:r,missingWarn:o,fallbackWarn:s,fallbackRoot:a,fallbackFormat:l,modifiers:u,pluralRules:c,postTranslation:f,warnHtmlMessage:p,escapeParameter:m,messageResolver:t.messageResolver,inheritLocale:g,__i18n:y,__root:w,__injectWithOption:x}}function Vg(t={}){const e=Rg(VF(t)),{__extender:n}=t,r={id:e.id,get locale(){return e.locale.value},set locale(o){e.locale.value=o},get fallbackLocale(){return e.fallbackLocale.value},set fallbackLocale(o){e.fallbackLocale.value=o},get messages(){return e.messages.value},get datetimeFormats(){return e.datetimeFormats.value},get numberFormats(){return e.numberFormats.value},get availableLocales(){return e.availableLocales},get missing(){return e.getMissingHandler()},set missing(o){e.setMissingHandler(o)},get silentTranslationWarn(){return Ct(e.missingWarn)?!e.missingWarn:e.missingWarn},set silentTranslationWarn(o){e.missingWarn=Ct(o)?!o:o},get silentFallbackWarn(){return Ct(e.fallbackWarn)?!e.fallbackWarn:e.fallbackWarn},set silentFallbackWarn(o){e.fallbackWarn=Ct(o)?!o:o},get modifiers(){return e.modifiers},get formatFallbackMessages(){return e.fallbackFormat},set formatFallbackMessages(o){e.fallbackFormat=o},get postTranslation(){return e.getPostTranslationHandler()},set postTranslation(o){e.setPostTranslationHandler(o)},get sync(){return e.inheritLocale},set sync(o){e.inheritLocale=o},get warnHtmlInMessage(){return e.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){e.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return e.escapeParameter},set escapeParameterHtml(o){e.escapeParameter=o},get pluralizationRules(){return e.pluralRules||{}},__composer:e,t(...o){return Reflect.apply(e.t,e,[...o])},rt(...o){return Reflect.apply(e.rt,e,[...o])},tc(...o){const[s,a,l]=o,u={plural:1};let c=null,f=null;if(process.env.NODE_ENV!=="production"&&Fx(xf(Ni.DEPRECATE_TC)),!_e(s))throw Yn(Vt.INVALID_ARGUMENT);const p=s;return _e(a)?u.locale=a:ln(a)?u.plural=a:Jt(a)?c=a:dt(a)&&(f=a),_e(l)?u.locale=l:Jt(l)?c=l:dt(l)&&(f=l),Reflect.apply(e.t,e,[p,c||f||{},u])},te(o,s){return e.te(o,s)},tm(o){return e.tm(o)},getLocaleMessage(o){return e.getLocaleMessage(o)},setLocaleMessage(o,s){e.setLocaleMessage(o,s)},mergeLocaleMessage(o,s){e.mergeLocaleMessage(o,s)},d(...o){return Reflect.apply(e.d,e,[...o])},getDateTimeFormat(o){return e.getDateTimeFormat(o)},setDateTimeFormat(o,s){e.setDateTimeFormat(o,s)},mergeDateTimeFormat(o,s){e.mergeDateTimeFormat(o,s)},n(...o){return Reflect.apply(e.n,e,[...o])},getNumberFormat(o){return e.getNumberFormat(o)},setNumberFormat(o,s){e.setNumberFormat(o,s)},mergeNumberFormat(o,s){e.mergeNumberFormat(o,s)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=o=>{const s=e;s[Zs]&&s[Zs](o)},r.__disableEmitter=()=>{const o=e;o[Pu]&&o[Pu]()}),r}function FF(t,e,n){return{beforeCreate(){const r=i.getCurrentInstance();if(!r)throw Yn(Vt.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const s=o.i18n;if(o.__i18n&&(s.__i18n=o.__i18n),s.__root=e,this===this.$root)this.$i18n=M6(t,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=Vg(s);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=M6(t,o);else{this.$i18n=Vg({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:e});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=t;o.__i18nGlobal&&w6(e,o,o),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,a)=>this.$i18n.te(s,a),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const o=this.__v_emitter=hg();r.__enableEmitter&&r.__enableEmitter(o),o.on("*",Vu)}},unmounted(){const r=i.getCurrentInstance();if(!r)throw Yn(Vt.UNEXPECTED_ERROR);const o=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Vu),delete this.__v_emitter),this.$i18n&&(o.__disableEmitter&&o.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(r),delete this.$i18n}}}function M6(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[b6](e.pluralizationRules||t.pluralizationRules);const n=Ig(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(n).forEach(r=>t.mergeLocaleMessage(r,n[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>t.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>t.mergeNumberFormat(r,e.numberFormats[r])),t}const Fg={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function $F({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,o)=>[...r,...o.type===i.Fragment?o.children:[o]],[]):e.reduce((n,r)=>{const o=t[r];return o&&(n[r]=o()),n},It())}function B6(){return i.Fragment}const I6=i.defineComponent({name:"i18n-t",props:hn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>ln(t)||!isNaN(t)}},Fg),setup(t,e){const{slots:n,attrs:r}=e,o=t.i18n||At({useScope:t.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(p=>p!=="_"),a=It();t.locale&&(a.locale=t.locale),t.plural!==void 0&&(a.plural=_e(t.plural)?+t.plural:t.plural);const l=$F(e,s),u=o[Ag](t.keypath,l,a),c=hn(It(),r),f=_e(t.tag)||xt(t.tag)?t.tag:B6();return i.h(f,c,u)}}});function zF(t){return Jt(t)&&!_e(t[0])}function R6(t,e,n,r){const{slots:o,attrs:s}=e;return()=>{const a={part:!0};let l=It();t.locale&&(a.locale=t.locale),_e(t.format)?a.key=t.format:xt(t.format)&&(_e(t.format.key)&&(a.key=t.format.key),l=Object.keys(t.format).reduce((m,g)=>n.includes(g)?hn(It(),m,{[g]:t.format[g]}):m,It()));const u=r(t.value,a,l);let c=[a.key];Jt(u)?c=u.map((m,g)=>{const b=o[m.type],y=b?b({[m.type]:m.value,index:g,parts:u}):[m.value];return zF(y)&&(y[0].key=`${m.type}-${g}`),y}):_e(u)&&(c=[u]);const f=hn(It(),s),p=_e(t.tag)||xt(t.tag)?t.tag:B6();return i.h(p,f,c)}}const L6=i.defineComponent({name:"i18n-n",props:hn({value:{type:Number,required:!0},format:{type:[String,Object]}},Fg),setup(t,e){const n=t.i18n||At({useScope:t.scope,__useComponent:!0});return R6(t,e,u6,(...r)=>n[Mg](...r))}}),P6=i.defineComponent({name:"i18n-d",props:hn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Fg),setup(t,e){const n=t.i18n||At({useScope:t.scope,__useComponent:!0});return R6(t,e,s6,(...r)=>n[Og](...r))}});function HF(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function UF(t){const e=a=>{const{instance:l,value:u}=a;if(!l||!l.$)throw Yn(Vt.UNEXPECTED_ERROR);const c=HF(t,l.$),f=D6(u);return[Reflect.apply(c.t,c,[...V6(f)]),c]};return{created:(a,l)=>{const[u,c]=e(l);oo&&t.global===c&&(a.__i18nWatcher=i.watch(c.locale,()=>{l.instance&&l.instance.$forceUpdate()})),a.__composer=c,a.textContent=u},unmounted:a=>{oo&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:l})=>{if(a.__composer){const u=a.__composer,c=D6(l);a.textContent=Reflect.apply(u.t,u,[...V6(c)])}},getSSRProps:a=>{const[l]=e(a);return{textContent:l}}}}function D6(t){if(_e(t))return{path:t};if(dt(t)){if(!("path"in t))throw Yn(Vt.REQUIRED_VALUE,"path");return t}else throw Yn(Vt.INVALID_VALUE)}function V6(t){const{path:e,locale:n,args:r,choice:o,plural:s}=t,a={},l=r||{};return _e(n)&&(a.locale=n),ln(o)&&(a.plural=o),ln(s)&&(a.plural=s),[e,l,a]}function WF(t,e,...n){const r=dt(n[0])?n[0]:{};(Ct(r.globalInstall)?r.globalInstall:!0)&&([I6.name,"I18nT"].forEach(s=>t.component(s,I6)),[L6.name,"I18nN"].forEach(s=>t.component(s,L6)),[P6.name,"I18nD"].forEach(s=>t.component(s,P6))),t.directive("t",UF(e))}const jF=Io("global-vue-i18n");function qF(t={},e){const n=__VUE_I18N_LEGACY_API__&&Ct(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,r=Ct(t.globalInjection)?t.globalInjection:!0,o=new Map,[s,a]=KF(t,n),l=Io(process.env.NODE_ENV!=="production"?"vue-i18n":"");function u(m){return o.get(m)||null}function c(m,g){o.set(m,g)}function f(m){o.delete(m)}const p={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(m,...g){if(process.env.NODE_ENV!=="production"&&(m.__VUE_I18N__=p),m.__VUE_I18N_SYMBOL__=l,m.provide(m.__VUE_I18N_SYMBOL__,p),dt(g[0])){const w=g[0];p.__composerExtend=w.__composerExtend,p.__vueI18nExtend=w.__vueI18nExtend}let b=null;!n&&r&&(b=e$(m,p.global)),__VUE_I18N_FULL_INSTALL__&&WF(m,p,...g),__VUE_I18N_LEGACY_API__&&n&&m.mixin(FF(a,a.__composer,p));const y=m.unmount;if(m.unmount=()=>{b&&b(),p.dispose(),y()},process.env.NODE_ENV!=="production"){if(!await _F(m,p))throw Yn(Vt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const x=hg();if(n){const S=a;S.__enableEmitter&&S.__enableEmitter(x)}else{const S=a;S[Zs]&&S[Zs](x)}x.on("*",Vu)}},get global(){return a},dispose(){s.stop()},__instances:o,__getInstance:u,__setInstance:c,__deleteInstance:f};return p}function At(t={}){const e=i.getCurrentInstance();if(e==null)throw Yn(Vt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Yn(Vt.NOT_INSTALLED);const n=GF(e),r=YF(n),o=y6(e),s=XF(t,o);if(s==="global")return w6(r,t,o),r;if(s==="parent"){let u=JF(n,e,t.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&Xi(xf(Ni.NOT_FOUND_PARENT_SCOPE)),u=r),u}const a=n;let l=a.__getInstance(e);if(l==null){const u=hn({},t);"__i18n"in o&&(u.__i18n=o.__i18n),r&&(u.__root=r),l=Rg(u),a.__composerExtend&&(l[Bg]=a.__composerExtend(l)),QF(a,e,l),a.__setInstance(e,l)}return l}function KF(t,e,n){const r=i.effectScope(),o=__VUE_I18N_LEGACY_API__&&e?r.run(()=>Vg(t)):r.run(()=>Rg(t));if(o==null)throw Yn(Vt.UNEXPECTED_ERROR);return[r,o]}function GF(t){const e=i.inject(t.isCE?jF:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Yn(t.isCE?Vt.NOT_INSTALLED_WITH_PROVIDE:Vt.UNEXPECTED_ERROR);return e}function XF(t,e){return pf(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function YF(t){return t.mode==="composition"?t.global:t.global.__composer}function JF(t,e,n=!1){let r=null;const o=e.root;let s=ZF(e,n);for(;s!=null;){const a=t;if(t.mode==="composition")r=a.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const l=a.__getInstance(s);l!=null&&(r=l.__composer,n&&r&&!r[v6]&&(r=null))}if(r!=null||o===s)break;s=s.parent}return r}function ZF(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function QF(t,e,n){let r=null;i.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=n,r=hg();const o=n;o[Zs]&&o[Zs](r),r.on("*",Vu)}},e),i.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",Vu),o[Pu]&&o[Pu](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const s=o[Bg];s&&(s(),delete o[Bg])},e)}const NF=["locale","fallbackLocale","availableLocales"],F6=["t","rt","d","n","tm","te"];function e$(t,e){const n=Object.create(null);return NF.forEach(o=>{const s=Object.getOwnPropertyDescriptor(e,o);if(!s)throw Yn(Vt.UNEXPECTED_ERROR);const a=i.isRef(s.value)?{get(){return s.value.value},set(l){s.value.value=l}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,o,a)}),t.config.globalProperties.$i18n=n,F6.forEach(o=>{const s=Object.getOwnPropertyDescriptor(e,o);if(!s||!s.value)throw Yn(Vt.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${o}`,s)}),()=>{delete t.config.globalProperties.$i18n,F6.forEach(o=>{delete t.config.globalProperties[`$${o}`]})}}if(yF(),WV(xV),jV(FV),qV(jx),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Ys();t.__INTLIFY__=!0,CV(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const t$={class:"flex gap-2 items-center overflow-x-auto overflow-y-hidden [&::-webkit-scrollbar]:h-1.5"},n$={class:"flex-1 flex justify-end items-center gap-x-3"},r$=i.defineComponent({__name:"Toolbar",props:{editor:{},editorComment:{},disabled:{type:Boolean,default:!1},mode:{}},setup(t){const e=i.defineAsyncComponent(()=>Promise.resolve().then(()=>VQ)),{t:n}=At(),r=t,o=i.inject("isEditable",i.ref(!0)),s=["fontSize","fontFamily","superText","spellchecker","fontSizeIncreaseDecrease"],a=i.computed(()=>{const p=[...r.editor.extensionManager.extensions].sort((g,b)=>g.name==="superText"?1:b.name==="superText"?-1:0);let m=[];for(const g of p){const{button:b,divider:y=!1,spacer:w=!1,toolbar:x=!0}=g.options;if(!b||!T0(b)||!x)continue;const S=b({editor:r.editor,extension:g,t:i.unref(n)});if(Array.isArray(S)){const C=S.map((E,_)=>({id:`${g.name}`,button:E,divider:_===S.length-1?y:!1,spacer:_===0?w:!1}));m=[...m,...C];continue}m.push({button:S,divider:y,spacer:w,id:`${g.name}`})}if(r.mode!==De.EDITOR)return m.filter(g=>g.id&&s.includes(g.id));if(m=m.filter(g=>g.id!=="superText"),!o.value){m=m.map(b=>(b.button.componentProps.disabled=!0,b));const g=m.find(b=>b.id==="spellchecker");g&&(g.button.componentProps.disabled=!1)}return m}),l=f=>f.id==="spellchecker"?"!text-[#2977D9] border border-gray-300 bg-ed-gray-50 dark:!text-white hover:!bg-gray-200 dark:hover:!bg-gray-700 rounded-none [&>div>svg]:w-[19px] [&>div>svg]:h-[19px] p-0 w-[26px] h-[26px]":f.button.componentProps.customClass,u=f=>f.id==="spellchecker"?"Spellchecker":f.button.componentProps.icon,c=i.computed(()=>{var f;return(f=r.editor)==null?void 0:f.extensionManager.extensions.find(p=>p.name==="spellchecker")});return(f,p)=>{var m;return i.openBlock(),i.createElementBlock("div",{id:"tool-bar",class:i.normalizeClass(i.unref(Ae)("z-10",i.unref(df)()&&"top-16"))},[i.createElementVNode("div",t$,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(g,b)=>{var y;return i.openBlock(),i.createElementBlock(i.Fragment,{key:b},[g.spacer&&b!==0?(i.openBlock(),i.createBlock(i.unref(oi),{key:0,orientation:"vertical",class:"h-[16px] mx-[10px]"})):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(g.button.component),i.mergeProps({id:g.id,ref_for:!0},g.button.componentProps,{editor:f.editor,disabled:f.disabled||((y=g.button.componentProps)==null?void 0:y.disabled),"custom-class":l(g),icon:u(g)}),i.createSlots({_:2},[i.renderList(g.button.componentSlots,(w,x,S)=>({name:`${x}`,fn:i.withCtx(C=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(w),i.mergeProps({ref_for:!0},C==null?void 0:C.props,{id:g.id}),null,16,["id"]))])}))]),1040,["id","editor","disabled","custom-class","icon"])),g.divider?(i.openBlock(),i.createBlock(i.unref(oi),{key:1,orientation:"vertical",class:"mx-2 h-auto"})):i.createCommentVNode("",!0)],64)}),128)),i.createElementVNode("div",n$,[p[0]||(p[0]=i.createElementVNode("div",{id:"tool-bar-auto-save"},null,-1)),c.value?(i.openBlock(),i.createBlock(i.unref(e),{key:0,editor:f.editor,"editor-comment":f.editorComment,isEnableSpellCheckRealTime:(m=f.editor)==null?void 0:m.extensionStorage.spellchecker.spellchecker.proofreader.enabled},null,8,["editor","editor-comment","isEnableSpellCheckRealTime"])):i.createCommentVNode("",!0)])])],2)}}}),ul=i.defineComponent({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(t,{emit:e}){const o=Pt(t,e);return(s,a)=>(i.openBlock(),i.createBlock(i.unref(eP),i.normalizeProps(i.guardReactiveProps(i.unref(o))),{default:i.withCtx(({open:l})=>[i.renderSlot(s.$slots,"default",{open:l})]),_:3},16))}}),cl=i.defineComponent({inheritAttrs:!1,__name:"PopoverContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{default:4},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:e}){const n=t,r=e,o=i.computed(()=>{const{class:a,...l}=n;return l}),s=Pt(o,r);return(a,l)=>(i.openBlock(),i.createBlock(i.unref(nP),null,{default:i.withCtx(()=>[i.createVNode(i.unref(iP),i.mergeProps({...i.unref(s),...a.$attrs},{class:i.unref(Ae)("z-50 w-72 rounded-md border bg-ed-popover p-4 text-ed-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:i.withCtx(()=>[i.renderSlot(a.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),$g=i.defineComponent({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(t,{emit:e}){const o=Pt(t,e);return(s,a)=>(i.openBlock(),i.createBlock(i.unref(tD),i.normalizeProps(i.guardReactiveProps(i.unref(o))),{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default")]),_:3},16))}}),zg=i.defineComponent({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(t){const e=t,n=i.computed(()=>{const{class:r,...o}=e;return o});return(r,o)=>(i.openBlock(),i.createBlock(i.unref(nD),i.mergeProps(n.value,{class:i.unref(Ae)("inline-flex items-center justify-center rounded-md bg-ed-muted p-1 text-ed-muted-foreground",e.class)}),{default:i.withCtx(()=>[i.renderSlot(r.$slots,"default")]),_:3},16,["class"]))}}),o$={class:"truncate"},Fu=i.defineComponent({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(t){const e=t,n=i.computed(()=>{const{class:o,...s}=e;return s}),r=Gn(n);return(o,s)=>(i.openBlock(),i.createBlock(i.unref(oD),i.mergeProps(i.unref(r),{class:i.unref(Ae)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-ed-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ed-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-ed-background data-[state=active]:text-ed-foreground data-[state=active]:shadow-sm",e.class)}),{default:i.withCtx(()=>[i.createElementVNode("span",o$,[i.renderSlot(o.$slots,"default")])]),_:3},16,["class"]))}}),dl=i.defineComponent({__name:"Input",props:{defaultValue:{},modelValue:{},class:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,o=at.useVModel(n,"modelValue",r,{passive:!0,defaultValue:n.defaultValue});return(s,a)=>i.withDirectives((i.openBlock(),i.createElementBlock("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>i.isRef(o)?o.value=l:null),class:i.normalizeClass(i.unref(Ae)("flex h-9 w-full rounded-md border border-ed-input bg-transparent px-3 py-1 box-border text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-ed-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ed-ring disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,2)),[[i.vModelText,i.unref(o)]])}}),Hg=i.defineComponent({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{}},setup(t){const e=t,n=i.computed(()=>{const{class:r,...o}=e;return o});return(r,o)=>(i.openBlock(),i.createBlock(i.unref(QL),i.mergeProps(n.value,{class:i.unref(Ae)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e.class)}),{default:i.withCtx(()=>[i.renderSlot(r.$slots,"default")]),_:3},16,["class"]))}}),fl=i.defineComponent({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(t){const e=t;return(n,r)=>(i.openBlock(),i.createBlock(i.unref(tP),i.normalizeProps(i.guardReactiveProps(e)),{default:i.withCtx(()=>[i.renderSlot(n.$slots,"default")]),_:3},16))}});let Ug;function Wg(){return Ug===void 0&&(Ug=navigator.platform.includes("Mac")),Ug}function Cf(t){return t.toLowerCase()==="mod"?Wg()?"⌘":"Ctrl":t.toLowerCase()==="alt"?Wg()?"⌥":"Alt":t.toLowerCase()==="shift"?Wg()?"⇧":"Shift":t}function $6(t){return t.map(Cf).join(" ")}const z6=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,H6=m2,jg=(t,e)=>n=>{var r;if((e==null?void 0:e.variants)==null)return H6(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=e,a=Object.keys(o).map(c=>{const f=n==null?void 0:n[c],p=s==null?void 0:s[c];if(f===null)return null;const m=z6(f)||z6(p);return o[c][m]}),l=n&&Object.entries(n).reduce((c,f)=>{let[p,m]=f;return m===void 0||(c[p]=m),c},{}),u=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((c,f)=>{let{class:p,className:m,...g}=f;return Object.entries(g).every(b=>{let[y,w]=b;return Array.isArray(w)?w.includes({...s,...l}[y]):{...s,...l}[y]===w})?[...c,p,m]:c},[]);return H6(t,a,u,n==null?void 0:n.class,n==null?void 0:n.className)},U6=i.defineComponent({__name:"Toggle",props:{defaultValue:{type:Boolean},pressed:{type:Boolean},disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{},class:{},variant:{default:"default"},size:{default:"default"}},emits:["update:pressed"],setup(t,{emit:e}){const n=t,r=e,o=i.computed(()=>{const{class:a,size:l,variant:u,...c}=n;return c}),s=Pt(o,r);return(a,l)=>(i.openBlock(),i.createBlock(i.unref(iD),i.mergeProps(i.unref(s),{class:i.unref(Ae)(i.unref(i$)({variant:a.variant,size:a.size}),n.class)}),{default:i.withCtx(()=>[i.renderSlot(a.$slots,"default")]),_:3},16,["class"]))}}),i$=jg("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-ed-muted hover:text-ed-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-ed-accent data-[state=on]:text-ed-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-ed-input bg-transparent shadow-sm hover:bg-ed-accent hover:text-ed-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),pl=i.defineComponent({name:"ToolTip",__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(t,{emit:e}){const o=Pt(t,e);return(s,a)=>(i.openBlock(),i.createBlock(i.unref(uD),i.normalizeProps(i.guardReactiveProps(i.unref(o))),{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default")]),_:3},16))}}),Qs=i.defineComponent({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside"],setup(t,{emit:e}){const n=t,r=e,o=i.computed(()=>{const{class:a,...l}=n;return l}),s=Pt(o,r);return(a,l)=>(i.openBlock(),i.createBlock(i.unref(pD),null,{default:i.withCtx(()=>[i.createVNode(i.unref(fD),i.mergeProps({...i.unref(s),...a.$attrs},{class:i.unref(Ae)(`z-50 overflow-hidden rounded-md bg-ed-primary px-3 py-1.5 text-xs text-ed-primary-foreground
161
+ */const vF="10.0.6";function yF(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ys().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ys().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ys().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ys().__INTLIFY_PROD_DEVTOOLS__=!1)}const Ni={FALLBACK_TO_ROOT:$V,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_TC:11},wF={[Ni.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Ni.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Ni.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Ni.DEPRECATE_TC]:"'tc' and '$tc' has been deprecated in v10. Use 't' or '$t' instead. 'tc' and '$tc’ are going to remove in v11."};function xf(t,...e){return ff(wF[t],...e)}const Vt={UNEXPECTED_RETURN_TYPE:_V,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Yn(t,...e){return il(t,null,process.env.NODE_ENV!=="production"?{messages:xF,args:e}:void 0)}const xF={[Vt.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Vt.INVALID_ARGUMENT]:"Invalid argument",[Vt.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Vt.NOT_INSTALLED]:"Need to install with `app.use` function",[Vt.UNEXPECTED_ERROR]:"Unexpected error",[Vt.REQUIRED_VALUE]:"Required in value: {0}",[Vt.INVALID_VALUE]:"Invalid value",[Vt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Vt.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Vt.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Vt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Ag=Io("__translateVNode"),Og=Io("__datetimeParts"),Mg=Io("__numberParts"),Zs=Io("__enableEmitter"),Pu=Io("__disableEmitter"),b6=Io("__setPluralRules"),v6=Io("__injectWithOption"),Bg=Io("__dispose");function Du(t){if(!xt(t))return t;for(const e in t)if(io(t,e))if(!e.includes("."))xt(t[e])&&Du(t[e]);else{const n=e.split("."),r=n.length-1;let o=t,s=!1;for(let a=0;a<r;a++){if(n[a]==="__proto__")throw new Error(`unsafe key: ${n[a]}`);if(n[a]in o||(o[n[a]]=It()),!xt(o[n[a]])){process.env.NODE_ENV!=="production"&&Xi(xf(Ni.IGNORE_OBJ_FLATTEN,{key:n[a]})),s=!0;break}o=o[n[a]]}s||(o[n[r]]=t[e],delete t[e]),xt(o[n[r]])&&Du(o[n[r]])}return t}function Ig(t,e){const{messages:n,__i18n:r,messageResolver:o,flatJson:s}=e,a=dt(n)?n:Jt(r)?It():{[t]:It()};if(Jt(r)&&r.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:u,resource:c}=l;u?(a[u]=a[u]||It(),mf(c,a[u])):mf(c,a)}else _e(l)&&mf(JSON.parse(l),a)}),o==null&&s)for(const l in a)io(a,l)&&Du(a[l]);return a}function y6(t){return t.type}function w6(t,e,n){let r=xt(e.messages)?e.messages:It();"__i18nGlobal"in n&&(r=Ig(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(s=>{t.mergeLocaleMessage(s,r[s])});{if(xt(e.datetimeFormats)){const s=Object.keys(e.datetimeFormats);s.length&&s.forEach(a=>{t.mergeDateTimeFormat(a,e.datetimeFormats[a])})}if(xt(e.numberFormats)){const s=Object.keys(e.numberFormats);s.length&&s.forEach(a=>{t.mergeNumberFormat(a,e.numberFormats[a])})}}}function x6(t){return i.createVNode(i.Text,null,t,0)}const C6="__INTLIFY_META__",E6=()=>[],CF=()=>!1;let S6=0;function k6(t){return(e,n,r,o)=>t(n,r,i.getCurrentInstance()||void 0,o)}const EF=()=>{const t=i.getCurrentInstance();let e=null;return t&&(e=y6(t)[C6])?{[C6]:e}:null};function Rg(t={}){const{__root:e,__injectWithOption:n}=t,r=e===void 0,o=t.flatJson,s=oo?i.ref:i.shallowRef;let a=Ct(t.inheritLocale)?t.inheritLocale:!0;const l=s(e&&a?e.locale.value:_e(t.locale)?t.locale:Ru),u=s(e&&a?e.fallbackLocale.value:_e(t.fallbackLocale)||Jt(t.fallbackLocale)||dt(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:l.value),c=s(Ig(l.value,t)),f=s(dt(t.datetimeFormats)?t.datetimeFormats:{[l.value]:{}}),p=s(dt(t.numberFormats)?t.numberFormats:{[l.value]:{}});let m=e?e.missingWarn:Ct(t.missingWarn)||ol(t.missingWarn)?t.missingWarn:!0,g=e?e.fallbackWarn:Ct(t.fallbackWarn)||ol(t.fallbackWarn)?t.fallbackWarn:!0,b=e?e.fallbackRoot:Ct(t.fallbackRoot)?t.fallbackRoot:!0,y=!!t.fallbackFormat,w=Dt(t.missing)?t.missing:null,x=Dt(t.missing)?k6(t.missing):null,S=Dt(t.postTranslation)?t.postTranslation:null,C=e?e.warnHtmlMessage:Ct(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const _=e?e.modifiers:dt(t.modifiers)?t.modifiers:{};let T=t.pluralRules||e&&e.pluralRules,A;A=(()=>{r&&Nx(null);const ee={version:vF,locale:l.value,fallbackLocale:u.value,messages:c.value,modifiers:_,pluralRules:T,missing:x===null?void 0:x,missingWarn:m,fallbackWarn:g,fallbackFormat:y,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:C,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};ee.datetimeFormats=f.value,ee.numberFormats=p.value,ee.__datetimeFormatters=dt(A)?A.__datetimeFormatters:void 0,ee.__numberFormatters=dt(A)?A.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(ee.__v_emitter=dt(A)?A.__v_emitter:void 0);const ge=YV(ee);return r&&Nx(ge),ge})(),Lu(A,l.value,u.value);function D(){return[l.value,u.value,c.value,f.value,p.value]}const M=i.computed({get:()=>l.value,set:ee=>{l.value=ee,A.locale=l.value}}),$=i.computed({get:()=>u.value,set:ee=>{u.value=ee,A.fallbackLocale=u.value,Lu(A,l.value,ee)}}),j=i.computed(()=>c.value),X=i.computed(()=>f.value),se=i.computed(()=>p.value);function W(){return Dt(S)?S:null}function z(ee){S=ee,A.postTranslation=ee}function R(){return w}function q(ee){ee!==null&&(x=k6(ee)),w=ee,A.missing=x}function Z(ee,ge){return ee!=="translate"||!ge.resolvedMessage}const te=(ee,ge,ce,we,Ve,Qe)=>{D();let Ot;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=e?XV():void 0),Ot=ee(A)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=void 0)}if(ce!=="translate exists"&&ln(Ot)&&Ot===vf||ce==="translate exists"&&!Ot){const[Nt,hi]=ge();if(process.env.NODE_ENV!=="production"&&e&&_e(Nt)&&Z(ce,hi)&&(b&&(wf(g,Nt)||t6(m,Nt))&&Xi(xf(Ni.FALLBACK_TO_ROOT,{key:Nt,type:ce})),process.env.NODE_ENV!=="production")){const{__v_emitter:oe}=A;oe&&b&&oe.emit("fallback",{type:ce,key:Nt,to:"global",groupId:`${ce}:${Nt}`})}return e&&b?we(e):Ve(Nt)}else{if(Qe(Ot))return Ot;throw Yn(Vt.UNEXPECTED_RETURN_TYPE)}};function ne(...ee){return te(ge=>Reflect.apply(p6,null,[ge,...ee]),()=>_g(...ee),"translate",ge=>Reflect.apply(ge.t,ge,[...ee]),ge=>ge,ge=>_e(ge))}function ye(...ee){const[ge,ce,we]=ee;if(we&&!xt(we))throw Yn(Vt.INVALID_ARGUMENT);return ne(ge,ce,hn({resolvedMessage:!0},we||{}))}function Ce(...ee){return te(ge=>Reflect.apply(i6,null,[ge,...ee]),()=>Sg(...ee),"datetime format",ge=>Reflect.apply(ge.d,ge,[...ee]),()=>yf,ge=>_e(ge))}function He(...ee){return te(ge=>Reflect.apply(l6,null,[ge,...ee]),()=>kg(...ee),"number format",ge=>Reflect.apply(ge.n,ge,[...ee]),()=>yf,ge=>_e(ge))}function Se(ee){return ee.map(ge=>_e(ge)||ln(ge)||Ct(ge)?x6(String(ge)):ge)}const H={normalize:Se,interpolate:ee=>ee,type:"vnode"};function Y(...ee){return te(ge=>{let ce;const we=ge;try{we.processor=H,ce=Reflect.apply(p6,null,[we,...ee])}finally{we.processor=null}return ce},()=>_g(...ee),"translate",ge=>ge[Ag](...ee),ge=>[x6(ge)],ge=>Jt(ge))}function ae(...ee){return te(ge=>Reflect.apply(l6,null,[ge,...ee]),()=>kg(...ee),"number format",ge=>ge[Mg](...ee),E6,ge=>_e(ge)||Jt(ge))}function ue(...ee){return te(ge=>Reflect.apply(i6,null,[ge,...ee]),()=>Sg(...ee),"datetime format",ge=>ge[Og](...ee),E6,ge=>_e(ge)||Jt(ge))}function he(ee){T=ee,A.pluralRules=T}function J(ee,ge){return te(()=>{if(!ee)return!1;const ce=_e(ge)?ge:l.value,we=Ue(ce),Ve=A.messageResolver(we,ee);return Zi(Ve)||Vr(Ve)||_e(Ve)},()=>[ee],"translate exists",ce=>Reflect.apply(ce.te,ce,[ee,ge]),CF,ce=>Ct(ce))}function ve(ee){let ge=null;const ce=jx(A,u.value,l.value);for(let we=0;we<ce.length;we++){const Ve=c.value[ce[we]]||{},Qe=A.messageResolver(Ve,ee);if(Qe!=null){ge=Qe;break}}return ge}function Me(ee){const ge=ve(ee);return ge??(e?e.tm(ee)||{}:{})}function Ue(ee){return c.value[ee]||{}}function Q(ee,ge){if(o){const ce={[ee]:ge};for(const we in ce)io(ce,we)&&Du(ce[we]);ge=ce[ee]}c.value[ee]=ge,A.messages=c.value}function ke(ee,ge){c.value[ee]=c.value[ee]||{};const ce={[ee]:ge};if(o)for(const we in ce)io(ce,we)&&Du(ce[we]);ge=ce[ee],mf(ge,c.value[ee]),A.messages=c.value}function V(ee){return f.value[ee]||{}}function P(ee,ge){f.value[ee]=ge,A.datetimeFormats=f.value,a6(A,ee,ge)}function ie(ee,ge){f.value[ee]=hn(f.value[ee]||{},ge),A.datetimeFormats=f.value,a6(A,ee,ge)}function me(ee){return p.value[ee]||{}}function Le(ee,ge){p.value[ee]=ge,A.numberFormats=p.value,c6(A,ee,ge)}function nt(ee,ge){p.value[ee]=hn(p.value[ee]||{},ge),A.numberFormats=p.value,c6(A,ee,ge)}S6++,e&&oo&&(i.watch(e.locale,ee=>{a&&(l.value=ee,A.locale=ee,Lu(A,l.value,u.value))}),i.watch(e.fallbackLocale,ee=>{a&&(u.value=ee,A.fallbackLocale=ee,Lu(A,l.value,u.value))}));const We={id:S6,locale:M,fallbackLocale:$,get inheritLocale(){return a},set inheritLocale(ee){a=ee,ee&&e&&(l.value=e.locale.value,u.value=e.fallbackLocale.value,Lu(A,l.value,u.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:j,get modifiers(){return _},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return m},set missingWarn(ee){m=ee,A.missingWarn=m},get fallbackWarn(){return g},set fallbackWarn(ee){g=ee,A.fallbackWarn=g},get fallbackRoot(){return b},set fallbackRoot(ee){b=ee},get fallbackFormat(){return y},set fallbackFormat(ee){y=ee,A.fallbackFormat=y},get warnHtmlMessage(){return C},set warnHtmlMessage(ee){C=ee,A.warnHtmlMessage=ee},get escapeParameter(){return E},set escapeParameter(ee){E=ee,A.escapeParameter=ee},t:ne,getLocaleMessage:Ue,setLocaleMessage:Q,mergeLocaleMessage:ke,getPostTranslationHandler:W,setPostTranslationHandler:z,getMissingHandler:R,setMissingHandler:q,[b6]:he};return We.datetimeFormats=X,We.numberFormats=se,We.rt=ye,We.te=J,We.tm=Me,We.d=Ce,We.n=He,We.getDateTimeFormat=V,We.setDateTimeFormat=P,We.mergeDateTimeFormat=ie,We.getNumberFormat=me,We.setNumberFormat=Le,We.mergeNumberFormat=nt,We[v6]=n,We[Ag]=Y,We[Og]=ue,We[Mg]=ae,process.env.NODE_ENV!=="production"&&(We[Zs]=ee=>{A.__v_emitter=ee},We[Pu]=()=>{A.__v_emitter=void 0}),We}const _6="vue-i18n: composer properties",Lg={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},SF={"vue-i18n-resource-inspector":"Search for scopes ..."},kF={"vue-i18n-timeline":16764185};let Pg;async function _F(t,e){return new Promise((n,r)=>{try{bF({id:"vue-devtools-plugin-vue-i18n",label:Lg["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[_6],app:t},o=>{Pg=o,o.on.visitComponentTree(({componentInstance:a,treeNode:l})=>{TF(a,l,e)}),o.on.inspectComponent(({componentInstance:a,instanceData:l})=>{a.vnode.el&&a.vnode.el.__VUE_I18N__&&l&&(e.mode==="legacy"?a.vnode.el.__VUE_I18N__!==e.global.__composer&&A6(l,a.vnode.el.__VUE_I18N__):A6(l,a.vnode.el.__VUE_I18N__))}),o.addInspector({id:"vue-i18n-resource-inspector",label:Lg["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:SF["vue-i18n-resource-inspector"]}),o.on.getInspectorTree(a=>{a.app===t&&a.inspectorId==="vue-i18n-resource-inspector"&&IF(a,e)});const s=new Map;o.on.getInspectorState(async a=>{if(a.app===t&&a.inspectorId==="vue-i18n-resource-inspector")if(o.unhighlightElement(),LF(a,e),a.nodeId==="global"){if(!s.has(a.app)){const[l]=await o.getComponentInstances(a.app);s.set(a.app,l)}o.highlightElement(s.get(a.app))}else{const l=RF(a.nodeId,e);l&&o.highlightElement(l)}}),o.on.editInspectorState(a=>{a.app===t&&a.inspectorId==="vue-i18n-resource-inspector"&&DF(a,e)}),o.addTimelineLayer({id:"vue-i18n-timeline",label:Lg["vue-i18n-timeline"],color:kF["vue-i18n-timeline"]}),n(!0)})}catch(o){console.error(o),r(!1)}})}function T6(t){return t.type.name||t.type.displayName||t.type.__file||"Anonymous"}function TF(t,e,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(t&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&t.vnode.el.__VUE_I18N__!==r){const o={label:`i18n (${T6(t)} Scope)`,textColor:0,backgroundColor:16764185};e.tags.push(o)}}function A6(t,e){const n=_6;t.state.push({type:n,key:"locale",editable:!0,value:e.locale.value}),t.state.push({type:n,key:"availableLocales",editable:!1,value:e.availableLocales}),t.state.push({type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value}),t.state.push({type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}),t.state.push({type:n,key:"messages",editable:!1,value:Dg(e.messages.value)}),t.state.push({type:n,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}),t.state.push({type:n,key:"numberFormats",editable:!1,value:e.numberFormats.value})}function Dg(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];Dt(r)&&"source"in r?e[n]=BF(r):Zi(r)&&r.loc&&r.loc.source?e[n]=r.loc.source:xt(r)?e[n]=Dg(r):e[n]=r}),e}const AF={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function OF(t){return t.replace(/[<>"&]/g,MF)}function MF(t){return AF[t]||t}function BF(t){return{_custom:{type:"function",display:`<span>ƒ</span> ${t.source?`("${OF(t.source)}")`:"(?)"}`}}}function IF(t,e){t.rootNodes.push({id:"global",label:"Global Scope"});const n=e.mode==="composition"?e.global:e.global.__composer;for(const[r,o]of e.__instances){const s=e.mode==="composition"?o:o.__composer;n!==s&&t.rootNodes.push({id:s.id.toString(),label:`${T6(r)} Scope`})}}function RF(t,e){let n=null;if(t!=="global"){for(const[r,o]of e.__instances.entries())if(o.id.toString()===t){n=r;break}}return n}function O6(t,e){if(t==="global")return e.mode==="composition"?e.global:e.global.__composer;{const n=Array.from(e.__instances.values()).find(r=>r.id.toString()===t);return n?e.mode==="composition"?n:n.__composer:null}}function LF(t,e){const n=O6(t.nodeId,e);return n&&(t.state=PF(n)),null}function PF(t){const e={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:t.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:t.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}];e[n]=r;const o="Locale messages info",s=[{type:o,key:"messages",editable:!1,value:Dg(t.messages.value)}];e[o]=s;{const a="Datetime formats info",l=[{type:a,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}];e[a]=l;const u="Datetime formats info",c=[{type:u,key:"numberFormats",editable:!1,value:t.numberFormats.value}];e[u]=c}return e}function Vu(t,e){if(Pg){let n;e&&"groupId"in e&&(n=e.groupId,delete e.groupId),Pg.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:t,groupId:n,time:Date.now(),meta:{},data:e||{},logType:t==="compile-error"?"error":t==="fallback"||t==="missing"?"warning":"default"}})}}function DF(t,e){const n=O6(t.nodeId,e);if(n){const[r]=t.path;r==="locale"&&_e(t.state.value)?n.locale.value=t.state.value:r==="fallbackLocale"&&(_e(t.state.value)||Jt(t.state.value)||xt(t.state.value))?n.fallbackLocale.value=t.state.value:r==="inheritLocale"&&Ct(t.state.value)&&(n.inheritLocale=t.state.value)}}function VF(t){const e=_e(t.locale)?t.locale:Ru,n=_e(t.fallbackLocale)||Jt(t.fallbackLocale)||dt(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,r=Dt(t.missing)?t.missing:void 0,o=Ct(t.silentTranslationWarn)||ol(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,s=Ct(t.silentFallbackWarn)||ol(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,a=Ct(t.fallbackRoot)?t.fallbackRoot:!0,l=!!t.formatFallbackMessages,u=dt(t.modifiers)?t.modifiers:{},c=t.pluralizationRules,f=Dt(t.postTranslation)?t.postTranslation:void 0,p=_e(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,m=!!t.escapeParameterHtml,g=Ct(t.sync)?t.sync:!0;let b=t.messages;if(dt(t.sharedMessages)){const _=t.sharedMessages;b=Object.keys(_).reduce((A,L)=>{const D=A[L]||(A[L]={});return hn(D,_[L]),A},b||{})}const{__i18n:y,__root:w,__injectWithOption:x}=t,S=t.datetimeFormats,C=t.numberFormats,E=t.flatJson;return{locale:e,fallbackLocale:n,messages:b,flatJson:E,datetimeFormats:S,numberFormats:C,missing:r,missingWarn:o,fallbackWarn:s,fallbackRoot:a,fallbackFormat:l,modifiers:u,pluralRules:c,postTranslation:f,warnHtmlMessage:p,escapeParameter:m,messageResolver:t.messageResolver,inheritLocale:g,__i18n:y,__root:w,__injectWithOption:x}}function Vg(t={}){const e=Rg(VF(t)),{__extender:n}=t,r={id:e.id,get locale(){return e.locale.value},set locale(o){e.locale.value=o},get fallbackLocale(){return e.fallbackLocale.value},set fallbackLocale(o){e.fallbackLocale.value=o},get messages(){return e.messages.value},get datetimeFormats(){return e.datetimeFormats.value},get numberFormats(){return e.numberFormats.value},get availableLocales(){return e.availableLocales},get missing(){return e.getMissingHandler()},set missing(o){e.setMissingHandler(o)},get silentTranslationWarn(){return Ct(e.missingWarn)?!e.missingWarn:e.missingWarn},set silentTranslationWarn(o){e.missingWarn=Ct(o)?!o:o},get silentFallbackWarn(){return Ct(e.fallbackWarn)?!e.fallbackWarn:e.fallbackWarn},set silentFallbackWarn(o){e.fallbackWarn=Ct(o)?!o:o},get modifiers(){return e.modifiers},get formatFallbackMessages(){return e.fallbackFormat},set formatFallbackMessages(o){e.fallbackFormat=o},get postTranslation(){return e.getPostTranslationHandler()},set postTranslation(o){e.setPostTranslationHandler(o)},get sync(){return e.inheritLocale},set sync(o){e.inheritLocale=o},get warnHtmlInMessage(){return e.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){e.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return e.escapeParameter},set escapeParameterHtml(o){e.escapeParameter=o},get pluralizationRules(){return e.pluralRules||{}},__composer:e,t(...o){return Reflect.apply(e.t,e,[...o])},rt(...o){return Reflect.apply(e.rt,e,[...o])},tc(...o){const[s,a,l]=o,u={plural:1};let c=null,f=null;if(process.env.NODE_ENV!=="production"&&Fx(xf(Ni.DEPRECATE_TC)),!_e(s))throw Yn(Vt.INVALID_ARGUMENT);const p=s;return _e(a)?u.locale=a:ln(a)?u.plural=a:Jt(a)?c=a:dt(a)&&(f=a),_e(l)?u.locale=l:Jt(l)?c=l:dt(l)&&(f=l),Reflect.apply(e.t,e,[p,c||f||{},u])},te(o,s){return e.te(o,s)},tm(o){return e.tm(o)},getLocaleMessage(o){return e.getLocaleMessage(o)},setLocaleMessage(o,s){e.setLocaleMessage(o,s)},mergeLocaleMessage(o,s){e.mergeLocaleMessage(o,s)},d(...o){return Reflect.apply(e.d,e,[...o])},getDateTimeFormat(o){return e.getDateTimeFormat(o)},setDateTimeFormat(o,s){e.setDateTimeFormat(o,s)},mergeDateTimeFormat(o,s){e.mergeDateTimeFormat(o,s)},n(...o){return Reflect.apply(e.n,e,[...o])},getNumberFormat(o){return e.getNumberFormat(o)},setNumberFormat(o,s){e.setNumberFormat(o,s)},mergeNumberFormat(o,s){e.mergeNumberFormat(o,s)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=o=>{const s=e;s[Zs]&&s[Zs](o)},r.__disableEmitter=()=>{const o=e;o[Pu]&&o[Pu]()}),r}function FF(t,e,n){return{beforeCreate(){const r=i.getCurrentInstance();if(!r)throw Yn(Vt.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const s=o.i18n;if(o.__i18n&&(s.__i18n=o.__i18n),s.__root=e,this===this.$root)this.$i18n=M6(t,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=Vg(s);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=M6(t,o);else{this.$i18n=Vg({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:e});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=t;o.__i18nGlobal&&w6(e,o,o),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,a)=>this.$i18n.te(s,a),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const o=this.__v_emitter=hg();r.__enableEmitter&&r.__enableEmitter(o),o.on("*",Vu)}},unmounted(){const r=i.getCurrentInstance();if(!r)throw Yn(Vt.UNEXPECTED_ERROR);const o=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Vu),delete this.__v_emitter),this.$i18n&&(o.__disableEmitter&&o.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(r),delete this.$i18n}}}function M6(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[b6](e.pluralizationRules||t.pluralizationRules);const n=Ig(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(n).forEach(r=>t.mergeLocaleMessage(r,n[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>t.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>t.mergeNumberFormat(r,e.numberFormats[r])),t}const Fg={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function $F({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,o)=>[...r,...o.type===i.Fragment?o.children:[o]],[]):e.reduce((n,r)=>{const o=t[r];return o&&(n[r]=o()),n},It())}function B6(){return i.Fragment}const I6=i.defineComponent({name:"i18n-t",props:hn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>ln(t)||!isNaN(t)}},Fg),setup(t,e){const{slots:n,attrs:r}=e,o=t.i18n||At({useScope:t.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(p=>p!=="_"),a=It();t.locale&&(a.locale=t.locale),t.plural!==void 0&&(a.plural=_e(t.plural)?+t.plural:t.plural);const l=$F(e,s),u=o[Ag](t.keypath,l,a),c=hn(It(),r),f=_e(t.tag)||xt(t.tag)?t.tag:B6();return i.h(f,c,u)}}});function zF(t){return Jt(t)&&!_e(t[0])}function R6(t,e,n,r){const{slots:o,attrs:s}=e;return()=>{const a={part:!0};let l=It();t.locale&&(a.locale=t.locale),_e(t.format)?a.key=t.format:xt(t.format)&&(_e(t.format.key)&&(a.key=t.format.key),l=Object.keys(t.format).reduce((m,g)=>n.includes(g)?hn(It(),m,{[g]:t.format[g]}):m,It()));const u=r(t.value,a,l);let c=[a.key];Jt(u)?c=u.map((m,g)=>{const b=o[m.type],y=b?b({[m.type]:m.value,index:g,parts:u}):[m.value];return zF(y)&&(y[0].key=`${m.type}-${g}`),y}):_e(u)&&(c=[u]);const f=hn(It(),s),p=_e(t.tag)||xt(t.tag)?t.tag:B6();return i.h(p,f,c)}}const L6=i.defineComponent({name:"i18n-n",props:hn({value:{type:Number,required:!0},format:{type:[String,Object]}},Fg),setup(t,e){const n=t.i18n||At({useScope:t.scope,__useComponent:!0});return R6(t,e,u6,(...r)=>n[Mg](...r))}}),P6=i.defineComponent({name:"i18n-d",props:hn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Fg),setup(t,e){const n=t.i18n||At({useScope:t.scope,__useComponent:!0});return R6(t,e,s6,(...r)=>n[Og](...r))}});function HF(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function UF(t){const e=a=>{const{instance:l,value:u}=a;if(!l||!l.$)throw Yn(Vt.UNEXPECTED_ERROR);const c=HF(t,l.$),f=D6(u);return[Reflect.apply(c.t,c,[...V6(f)]),c]};return{created:(a,l)=>{const[u,c]=e(l);oo&&t.global===c&&(a.__i18nWatcher=i.watch(c.locale,()=>{l.instance&&l.instance.$forceUpdate()})),a.__composer=c,a.textContent=u},unmounted:a=>{oo&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:l})=>{if(a.__composer){const u=a.__composer,c=D6(l);a.textContent=Reflect.apply(u.t,u,[...V6(c)])}},getSSRProps:a=>{const[l]=e(a);return{textContent:l}}}}function D6(t){if(_e(t))return{path:t};if(dt(t)){if(!("path"in t))throw Yn(Vt.REQUIRED_VALUE,"path");return t}else throw Yn(Vt.INVALID_VALUE)}function V6(t){const{path:e,locale:n,args:r,choice:o,plural:s}=t,a={},l=r||{};return _e(n)&&(a.locale=n),ln(o)&&(a.plural=o),ln(s)&&(a.plural=s),[e,l,a]}function WF(t,e,...n){const r=dt(n[0])?n[0]:{};(Ct(r.globalInstall)?r.globalInstall:!0)&&([I6.name,"I18nT"].forEach(s=>t.component(s,I6)),[L6.name,"I18nN"].forEach(s=>t.component(s,L6)),[P6.name,"I18nD"].forEach(s=>t.component(s,P6))),t.directive("t",UF(e))}const jF=Io("global-vue-i18n");function qF(t={},e){const n=__VUE_I18N_LEGACY_API__&&Ct(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,r=Ct(t.globalInjection)?t.globalInjection:!0,o=new Map,[s,a]=KF(t,n),l=Io(process.env.NODE_ENV!=="production"?"vue-i18n":"");function u(m){return o.get(m)||null}function c(m,g){o.set(m,g)}function f(m){o.delete(m)}const p={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(m,...g){if(process.env.NODE_ENV!=="production"&&(m.__VUE_I18N__=p),m.__VUE_I18N_SYMBOL__=l,m.provide(m.__VUE_I18N_SYMBOL__,p),dt(g[0])){const w=g[0];p.__composerExtend=w.__composerExtend,p.__vueI18nExtend=w.__vueI18nExtend}let b=null;!n&&r&&(b=e$(m,p.global)),__VUE_I18N_FULL_INSTALL__&&WF(m,p,...g),__VUE_I18N_LEGACY_API__&&n&&m.mixin(FF(a,a.__composer,p));const y=m.unmount;if(m.unmount=()=>{b&&b(),p.dispose(),y()},process.env.NODE_ENV!=="production"){if(!await _F(m,p))throw Yn(Vt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const x=hg();if(n){const S=a;S.__enableEmitter&&S.__enableEmitter(x)}else{const S=a;S[Zs]&&S[Zs](x)}x.on("*",Vu)}},get global(){return a},dispose(){s.stop()},__instances:o,__getInstance:u,__setInstance:c,__deleteInstance:f};return p}function At(t={}){const e=i.getCurrentInstance();if(e==null)throw Yn(Vt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Yn(Vt.NOT_INSTALLED);const n=GF(e),r=YF(n),o=y6(e),s=XF(t,o);if(s==="global")return w6(r,t,o),r;if(s==="parent"){let u=JF(n,e,t.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&Xi(xf(Ni.NOT_FOUND_PARENT_SCOPE)),u=r),u}const a=n;let l=a.__getInstance(e);if(l==null){const u=hn({},t);"__i18n"in o&&(u.__i18n=o.__i18n),r&&(u.__root=r),l=Rg(u),a.__composerExtend&&(l[Bg]=a.__composerExtend(l)),QF(a,e,l),a.__setInstance(e,l)}return l}function KF(t,e,n){const r=i.effectScope(),o=__VUE_I18N_LEGACY_API__&&e?r.run(()=>Vg(t)):r.run(()=>Rg(t));if(o==null)throw Yn(Vt.UNEXPECTED_ERROR);return[r,o]}function GF(t){const e=i.inject(t.isCE?jF:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Yn(t.isCE?Vt.NOT_INSTALLED_WITH_PROVIDE:Vt.UNEXPECTED_ERROR);return e}function XF(t,e){return pf(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function YF(t){return t.mode==="composition"?t.global:t.global.__composer}function JF(t,e,n=!1){let r=null;const o=e.root;let s=ZF(e,n);for(;s!=null;){const a=t;if(t.mode==="composition")r=a.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const l=a.__getInstance(s);l!=null&&(r=l.__composer,n&&r&&!r[v6]&&(r=null))}if(r!=null||o===s)break;s=s.parent}return r}function ZF(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function QF(t,e,n){let r=null;i.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=n,r=hg();const o=n;o[Zs]&&o[Zs](r),r.on("*",Vu)}},e),i.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",Vu),o[Pu]&&o[Pu](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const s=o[Bg];s&&(s(),delete o[Bg])},e)}const NF=["locale","fallbackLocale","availableLocales"],F6=["t","rt","d","n","tm","te"];function e$(t,e){const n=Object.create(null);return NF.forEach(o=>{const s=Object.getOwnPropertyDescriptor(e,o);if(!s)throw Yn(Vt.UNEXPECTED_ERROR);const a=i.isRef(s.value)?{get(){return s.value.value},set(l){s.value.value=l}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,o,a)}),t.config.globalProperties.$i18n=n,F6.forEach(o=>{const s=Object.getOwnPropertyDescriptor(e,o);if(!s||!s.value)throw Yn(Vt.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${o}`,s)}),()=>{delete t.config.globalProperties.$i18n,F6.forEach(o=>{delete t.config.globalProperties[`$${o}`]})}}if(yF(),WV(xV),jV(FV),qV(jx),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Ys();t.__INTLIFY__=!0,CV(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const t$={class:"flex gap-2 items-center overflow-x-auto overflow-y-hidden [&::-webkit-scrollbar]:h-1.5"},n$={class:"flex-1 flex justify-end items-center gap-x-3"},r$=i.defineComponent({__name:"Toolbar",props:{editor:{},editorComment:{},disabled:{type:Boolean,default:!1},mode:{}},setup(t){const e=i.defineAsyncComponent(()=>Promise.resolve().then(()=>VQ)),{t:n}=At(),r=t,o=i.inject("isEditable",i.ref(!0)),s=["fontSize","fontFamily","superText","spellchecker","fontSizeIncreaseDecrease"],a=i.computed(()=>{const p=[...r.editor.extensionManager.extensions].sort((g,b)=>g.name==="superText"?1:b.name==="superText"?-1:0);let m=[];for(const g of p){const{button:b,divider:y=!1,spacer:w=!1,toolbar:x=!0}=g.options;if(!b||!T0(b)||!x)continue;const S=b({editor:r.editor,extension:g,t:i.unref(n)});if(Array.isArray(S)){const C=S.map((E,_)=>({id:`${g.name}`,button:E,divider:_===S.length-1?y:!1,spacer:_===0?w:!1}));m=[...m,...C];continue}m.push({button:S,divider:y,spacer:w,id:`${g.name}`})}if(r.mode!==De.EDITOR)return m.filter(g=>g.id&&s.includes(g.id));if(m=m.filter(g=>g.id!=="superText"),!o.value){m=m.map(b=>(b.button.componentProps.disabled=!0,b));const g=m.find(b=>b.id==="spellchecker");g&&(g.button.componentProps.disabled=!1)}return m}),l=f=>f.id==="spellchecker"?"!text-[#2977D9] border border-gray-300 bg-ed-gray-50 dark:!text-white hover:!bg-gray-200 dark:hover:!bg-gray-700 rounded-none [&>div>svg]:w-[19px] [&>div>svg]:h-[19px] p-0 w-[26px] h-[26px]":f.button.componentProps.customClass,u=f=>f.id==="spellchecker"?"Spellchecker":f.button.componentProps.icon,c=i.computed(()=>{var f;return(f=r.editor)==null?void 0:f.extensionManager.extensions.find(p=>p.name==="spellchecker")});return(f,p)=>{var m;return i.openBlock(),i.createElementBlock("div",{id:"tool-bar",class:i.normalizeClass(i.unref(Ae)("z-10",i.unref(df)()&&"top-16"))},[i.createElementVNode("div",t$,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.value,(g,b)=>{var y;return i.openBlock(),i.createElementBlock(i.Fragment,{key:b},[g.spacer&&b!==0?(i.openBlock(),i.createBlock(i.unref(oi),{key:0,orientation:"vertical",class:"h-[16px] mx-[10px]"})):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(g.button.component),i.mergeProps({id:g.id,ref_for:!0},g.button.componentProps,{editor:f.editor,disabled:f.disabled||((y=g.button.componentProps)==null?void 0:y.disabled),"custom-class":l(g),icon:u(g)}),i.createSlots({_:2},[i.renderList(g.button.componentSlots,(w,x,S)=>({name:`${x}`,fn:i.withCtx(C=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(w),i.mergeProps({ref_for:!0},C==null?void 0:C.props,{id:g.id}),null,16,["id"]))])}))]),1040,["id","editor","disabled","custom-class","icon"])),g.divider?(i.openBlock(),i.createBlock(i.unref(oi),{key:1,orientation:"vertical",class:"mx-2 h-auto"})):i.createCommentVNode("",!0)],64)}),128)),i.createElementVNode("div",n$,[p[0]||(p[0]=i.createElementVNode("div",{id:"tool-bar-auto-save"},null,-1)),c.value?(i.openBlock(),i.createBlock(i.unref(e),{key:0,editor:f.editor,"editor-comment":f.editorComment,isEnableSpellCheckRealTime:(m=f.editor)==null?void 0:m.extensionStorage.spellchecker.spellchecker.proofreader.enabled},null,8,["editor","editor-comment","isEnableSpellCheckRealTime"])):i.createCommentVNode("",!0)])])],2)}}}),ul=i.defineComponent({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(t,{emit:e}){const o=Pt(t,e);return(s,a)=>(i.openBlock(),i.createBlock(i.unref(eP),i.normalizeProps(i.guardReactiveProps(i.unref(o))),{default:i.withCtx(({open:l})=>[i.renderSlot(s.$slots,"default",{open:l})]),_:3},16))}}),cl=i.defineComponent({inheritAttrs:!1,__name:"PopoverContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{default:4},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:e}){const n=t,r=e,o=i.computed(()=>{const{class:a,...l}=n;return l}),s=Pt(o,r);return(a,l)=>(i.openBlock(),i.createBlock(i.unref(nP),null,{default:i.withCtx(()=>[i.createVNode(i.unref(iP),i.mergeProps({...i.unref(s),...a.$attrs},{class:i.unref(Ae)("z-50 w-72 rounded-md border bg-ed-popover p-4 text-ed-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:i.withCtx(()=>[i.renderSlot(a.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),$g=i.defineComponent({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(t,{emit:e}){const o=Pt(t,e);return(s,a)=>(i.openBlock(),i.createBlock(i.unref(tD),i.normalizeProps(i.guardReactiveProps(i.unref(o))),{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default")]),_:3},16))}}),zg=i.defineComponent({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(t){const e=t,n=i.computed(()=>{const{class:r,...o}=e;return o});return(r,o)=>(i.openBlock(),i.createBlock(i.unref(nD),i.mergeProps(n.value,{class:i.unref(Ae)("inline-flex items-center justify-center rounded-md bg-ed-muted p-1 text-ed-muted-foreground",e.class)}),{default:i.withCtx(()=>[i.renderSlot(r.$slots,"default")]),_:3},16,["class"]))}}),o$={class:"truncate"},Fu=i.defineComponent({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(t){const e=t,n=i.computed(()=>{const{class:o,...s}=e;return s}),r=Gn(n);return(o,s)=>(i.openBlock(),i.createBlock(i.unref(oD),i.mergeProps(i.unref(r),{class:i.unref(Ae)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-ed-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ed-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-ed-background data-[state=active]:text-ed-foreground data-[state=active]:shadow-sm",e.class)}),{default:i.withCtx(()=>[i.createElementVNode("span",o$,[i.renderSlot(o.$slots,"default")])]),_:3},16,["class"]))}}),dl=i.defineComponent({__name:"Input",props:{defaultValue:{},modelValue:{},class:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,o=at.useVModel(n,"modelValue",r,{passive:!0,defaultValue:n.defaultValue});return(s,a)=>i.withDirectives((i.openBlock(),i.createElementBlock("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>i.isRef(o)?o.value=l:null),class:i.normalizeClass(i.unref(Ae)("flex h-9 w-full rounded-md border border-ed-input bg-transparent px-3 py-1 box-border text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-ed-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ed-ring disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,2)),[[i.vModelText,i.unref(o)]])}}),Hg=i.defineComponent({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{}},setup(t){const e=t,n=i.computed(()=>{const{class:r,...o}=e;return o});return(r,o)=>(i.openBlock(),i.createBlock(i.unref(QL),i.mergeProps(n.value,{class:i.unref(Ae)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e.class)}),{default:i.withCtx(()=>[i.renderSlot(r.$slots,"default")]),_:3},16,["class"]))}}),fl=i.defineComponent({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(t){const e=t;return(n,r)=>(i.openBlock(),i.createBlock(i.unref(tP),i.normalizeProps(i.guardReactiveProps(e)),{default:i.withCtx(()=>[i.renderSlot(n.$slots,"default")]),_:3},16))}});let Ug;function Wg(){return Ug===void 0&&(Ug=navigator.platform.includes("Mac")),Ug}function Cf(t){return t.toLowerCase()==="mod"?Wg()?"⌘":"Ctrl":t.toLowerCase()==="alt"?Wg()?"⌥":"Alt":t.toLowerCase()==="shift"?Wg()?"⇧":"Shift":t}function $6(t){return t.map(Cf).join(" ")}const z6=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,H6=m2,jg=(t,e)=>n=>{var r;if((e==null?void 0:e.variants)==null)return H6(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=e,a=Object.keys(o).map(c=>{const f=n==null?void 0:n[c],p=s==null?void 0:s[c];if(f===null)return null;const m=z6(f)||z6(p);return o[c][m]}),l=n&&Object.entries(n).reduce((c,f)=>{let[p,m]=f;return m===void 0||(c[p]=m),c},{}),u=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((c,f)=>{let{class:p,className:m,...g}=f;return Object.entries(g).every(b=>{let[y,w]=b;return Array.isArray(w)?w.includes({...s,...l}[y]):{...s,...l}[y]===w})?[...c,p,m]:c},[]);return H6(t,a,u,n==null?void 0:n.class,n==null?void 0:n.className)},U6=i.defineComponent({__name:"Toggle",props:{defaultValue:{type:Boolean},pressed:{type:Boolean},disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{},class:{},variant:{default:"default"},size:{default:"default"}},emits:["update:pressed"],setup(t,{emit:e}){const n=t,r=e,o=i.computed(()=>{const{class:a,size:l,variant:u,...c}=n;return c}),s=Pt(o,r);return(a,l)=>(i.openBlock(),i.createBlock(i.unref(iD),i.mergeProps(i.unref(s),{class:i.unref(Ae)(i.unref(i$)({variant:a.variant,size:a.size}),n.class)}),{default:i.withCtx(()=>[i.renderSlot(a.$slots,"default")]),_:3},16,["class"]))}}),i$=jg("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-ed-muted hover:text-ed-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-ed-accent data-[state=on]:text-ed-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-ed-input bg-transparent shadow-sm hover:bg-ed-accent hover:text-ed-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),pl=i.defineComponent({name:"ToolTip",__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(t,{emit:e}){const o=Pt(t,e);return(s,a)=>(i.openBlock(),i.createBlock(i.unref(uD),i.normalizeProps(i.guardReactiveProps(i.unref(o))),{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default")]),_:3},16))}}),Qs=i.defineComponent({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside"],setup(t,{emit:e}){const n=t,r=e,o=i.computed(()=>{const{class:a,...l}=n;return l}),s=Pt(o,r);return(a,l)=>(i.openBlock(),i.createBlock(i.unref(pD),null,{default:i.withCtx(()=>[i.createVNode(i.unref(fD),i.mergeProps({...i.unref(s),...a.$attrs},{class:i.unref(Ae)(`z-50 overflow-hidden rounded-md bg-ed-primary px-3 py-1.5 text-xs text-ed-primary-foreground
162
162
  data-[state=delayed-open]:animate-in
163
163
  data-[state=delayed-open]:fade-in-0
164
164
  data-[state=delayed-open]:zoom-in-95
@@ -211,7 +211,7 @@ ${c}`:u)}else throw a},onCacheKey:a=>vD(e,n,a)}}function lF(t){if(_e(t))return t
211
211
 
212
212
  `);return!s||!a?!1:t.chain().command(({tr:l})=>(l.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:r}=e,{$from:o,empty:s}=n;if(!s||o.parent.type!==this.type||!(o.parentOffset===o.parent.nodeSize-2))return!1;const l=o.after();return l===void 0?!1:r.nodeAt(l)?t.commands.command(({tr:c})=>(c.setSelection(ze.near(r.resolve(l))),!0)):t.commands.exitCode()}}},addInputRules(){return[s0({find:iH,type:this.type,getAttributes:t=>({language:t[1]})}),s0({find:sH,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new tt({key:new St("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,s=o==null?void 0:o.mode;if(!n||!s)return!1;const{tr:a,schema:l}=t.state,u=l.text(n.replace(/\r\n?/g,`
213
213
  `));return a.replaceSelectionWith(this.type.create({language:s},u)),a.selection.$from.parent.type!==this.type&&a.setSelection(Ie.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),t.dispatch(a),!0}}})]}});function lH(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function TC(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&TC(n)}),t}let AC=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function OC(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function es(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach(function(r){for(const o in r)n[o]=r[o]}),n}const uH="</span>",MC=t=>!!t.scope,cH=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,o)=>`${r}${"_".repeat(o+1)}`)].join(" ")}return`${e}${t}`};class dH{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=OC(e)}openNode(e){if(!MC(e))return;const n=cH(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){MC(e)&&(this.buffer+=uH)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const BC=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class i1{constructor(){this.rootNode=BC(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=BC({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{i1._collapse(n)}))}}class fH extends i1{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const r=e.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new dH(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Xu(t){return t?typeof t=="string"?t:t.source:null}function IC(t){return Ns("(?=",t,")")}function pH(t){return Ns("(?:",t,")*")}function hH(t){return Ns("(?:",t,")?")}function Ns(...t){return t.map(n=>Xu(n)).join("")}function mH(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function s1(...t){return"("+(mH(t).capture?"":"?:")+t.map(r=>Xu(r)).join("|")+")"}function RC(t){return new RegExp(t.toString()+"|").exec("").length-1}function gH(t,e){const n=t&&t.exec(e);return n&&n.index===0}const bH=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function a1(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const o=n;let s=Xu(r),a="";for(;s.length>0;){const l=bH.exec(s);if(!l){a+=s;break}a+=s.substring(0,l.index),s=s.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?a+="\\"+String(Number(l[1])+o):(a+=l[0],l[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(e)}const vH=/\b\B/,LC="[a-zA-Z]\\w*",l1="[a-zA-Z_]\\w*",PC="\\b\\d+(\\.\\d+)?",DC="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",VC="\\b(0b[01]+)",yH="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",wH=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=Ns(e,/.*\b/,t.binary,/\b.*/)),es({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},Yu={begin:"\\\\[\\s\\S]",relevance:0},xH={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Yu]},CH={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Yu]},EH={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},If=function(t,e,n={}){const r=es({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=s1("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Ns(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},SH=If("//","$"),kH=If("/\\*","\\*/"),_H=If("#","$"),TH={scope:"number",begin:PC,relevance:0},AH={scope:"number",begin:DC,relevance:0},OH={scope:"number",begin:VC,relevance:0},MH={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Yu,{begin:/\[/,end:/\]/,relevance:0,contains:[Yu]}]},BH={scope:"title",begin:LC,relevance:0},IH={scope:"title",begin:l1,relevance:0},RH={begin:"\\.\\s*"+l1,relevance:0};var Rf=Object.freeze({__proto__:null,APOS_STRING_MODE:xH,BACKSLASH_ESCAPE:Yu,BINARY_NUMBER_MODE:OH,BINARY_NUMBER_RE:VC,COMMENT:If,C_BLOCK_COMMENT_MODE:kH,C_LINE_COMMENT_MODE:SH,C_NUMBER_MODE:AH,C_NUMBER_RE:DC,END_SAME_AS_BEGIN:function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})},HASH_COMMENT_MODE:_H,IDENT_RE:LC,MATCH_NOTHING_RE:vH,METHOD_GUARD:RH,NUMBER_MODE:TH,NUMBER_RE:PC,PHRASAL_WORDS_MODE:EH,QUOTE_STRING_MODE:CH,REGEXP_MODE:MH,RE_STARTERS_RE:yH,SHEBANG:wH,TITLE_MODE:BH,UNDERSCORE_IDENT_RE:l1,UNDERSCORE_TITLE_MODE:IH});function LH(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function PH(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function DH(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=LH,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function VH(t,e){Array.isArray(t.illegal)&&(t.illegal=s1(...t.illegal))}function FH(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function $H(t,e){t.relevance===void 0&&(t.relevance=1)}const zH=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=Ns(n.beforeMatch,IC(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},HH=["of","and","for","in","not","or","if","then","parent","list","value"],UH="keyword";function FC(t,e,n=UH){const r=Object.create(null);return typeof t=="string"?o(n,t.split(" ")):Array.isArray(t)?o(n,t):Object.keys(t).forEach(function(s){Object.assign(r,FC(t[s],e,s))}),r;function o(s,a){e&&(a=a.map(l=>l.toLowerCase())),a.forEach(function(l){const u=l.split("|");r[u[0]]=[s,WH(u[0],u[1])]})}}function WH(t,e){return e?Number(e):jH(t)?0:1}function jH(t){return HH.includes(t.toLowerCase())}const $C={},ea=t=>{console.error(t)},zC=(t,...e)=>{console.log(`WARN: ${t}`,...e)},bl=(t,e)=>{$C[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),$C[`${t}/${e}`]=!0)},Lf=new Error;function HC(t,e,{key:n}){let r=0;const o=t[n],s={},a={};for(let l=1;l<=e.length;l++)a[l+r]=o[l],s[l+r]=!0,r+=RC(e[l-1]);t[n]=a,t[n]._emit=s,t[n]._multi=!0}function qH(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw ea("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Lf;if(typeof t.beginScope!="object"||t.beginScope===null)throw ea("beginScope must be object"),Lf;HC(t,t.begin,{key:"beginScope"}),t.begin=a1(t.begin,{joinWith:""})}}function KH(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw ea("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Lf;if(typeof t.endScope!="object"||t.endScope===null)throw ea("endScope must be object"),Lf;HC(t,t.end,{key:"endScope"}),t.end=a1(t.end,{joinWith:""})}}function GH(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function XH(t){GH(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),qH(t),KH(t)}function YH(t){function e(a,l){return new RegExp(Xu(a),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(l?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,u){u.position=this.position++,this.matchIndexes[this.matchAt]=u,this.regexes.push([u,l]),this.matchAt+=RC(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(u=>u[1]);this.matcherRe=e(a1(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const u=this.matcherRe.exec(l);if(!u)return null;const c=u.findIndex((p,m)=>m>0&&p!==void 0),f=this.matchIndexes[c];return u.splice(0,c),Object.assign(u,f)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const u=new n;return this.rules.slice(l).forEach(([c,f])=>u.addRule(c,f)),u.compile(),this.multiRegexes[l]=u,u}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,u){this.rules.push([l,u]),u.type==="begin"&&this.count++}exec(l){const u=this.getMatcher(this.regexIndex);u.lastIndex=this.lastIndex;let c=u.exec(l);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const f=this.getMatcher(0);f.lastIndex=this.lastIndex+1,c=f.exec(l)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function o(a){const l=new r;return a.contains.forEach(u=>l.addRule(u.begin,{rule:u,type:"begin"})),a.terminatorEnd&&l.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&l.addRule(a.illegal,{type:"illegal"}),l}function s(a,l){const u=a;if(a.isCompiled)return u;[PH,FH,XH,zH].forEach(f=>f(a,l)),t.compilerExtensions.forEach(f=>f(a,l)),a.__beforeBegin=null,[DH,VH,$H].forEach(f=>f(a,l)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=FC(a.keywords,t.case_insensitive)),u.keywordPatternRe=e(c,!0),l&&(a.begin||(a.begin=/\B|\b/),u.beginRe=e(u.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(u.endRe=e(u.end)),u.terminatorEnd=Xu(u.end)||"",a.endsWithParent&&l.terminatorEnd&&(u.terminatorEnd+=(a.end?"|":"")+l.terminatorEnd)),a.illegal&&(u.illegalRe=e(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(f){return JH(f==="self"?a:f)})),a.contains.forEach(function(f){s(f,u)}),a.starts&&s(a.starts,l),u.matcher=o(u),u}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=es(t.classNameAliases||{}),s(t)}function UC(t){return t?t.endsWithParent||UC(t.starts):!1}function JH(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return es(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:UC(t)?es(t,{starts:t.starts?es(t.starts):null}):Object.isFrozen(t)?es(t):t}var ZH="11.10.0";class QH extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const u1=OC,WC=es,jC=Symbol("nomatch"),NH=7,qC=function(t){const e=Object.create(null),n=Object.create(null),r=[];let o=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:fH};function u(R){return l.noHighlightRe.test(R)}function c(R){let q=R.className+" ";q+=R.parentNode?R.parentNode.className:"";const Z=l.languageDetectRe.exec(q);if(Z){const te=D(Z[1]);return te||(zC(s.replace("{}",Z[1])),zC("Falling back to no-highlight mode for this block.",R)),te?Z[1]:"no-highlight"}return q.split(/\s+/).find(te=>u(te)||D(te))}function f(R,q,Z){let te="",ne="";typeof q=="object"?(te=R,Z=q.ignoreIllegals,ne=q.language):(bl("10.7.0","highlight(lang, code, ...args) has been deprecated."),bl("10.7.0",`Please use highlight(code, options) instead.
214
- https://github.com/highlightjs/highlight.js/issues/2277`),ne=R,te=q),Z===void 0&&(Z=!0);const ye={code:te,language:ne};W("before:highlight",ye);const Ce=ye.result?ye.result:p(ye.language,ye.code,Z);return Ce.code=ye.code,W("after:highlight",Ce),Ce}function p(R,q,Z,te){const ne=Object.create(null);function ye(ce,we){return ce.keywords[we]}function Ce(){if(!P.keywords){me.addText(Le);return}let ce=0;P.keywordPatternRe.lastIndex=0;let we=P.keywordPatternRe.exec(Le),Ve="";for(;we;){Ve+=Le.substring(ce,we.index);const Qe=N.case_insensitive?we[0].toLowerCase():we[0],Ot=ye(P,Qe);if(Ot){const[Nt,hi]=Ot;if(me.addText(Ve),Ve="",ne[Qe]=(ne[Qe]||0)+1,ne[Qe]<=NH&&(nt+=hi),Nt.startsWith("_"))Ve+=we[0];else{const oe=N.classNameAliases[Nt]||Nt;je(we[0],oe)}}else Ve+=we[0];ce=P.keywordPatternRe.lastIndex,we=P.keywordPatternRe.exec(Le)}Ve+=Le.substring(ce),me.addText(Ve)}function He(){if(Le==="")return;let ce=null;if(typeof P.subLanguage=="string"){if(!e[P.subLanguage]){me.addText(Le);return}ce=p(P.subLanguage,Le,!0,ie[P.subLanguage]),ie[P.subLanguage]=ce._top}else ce=g(Le,P.subLanguage.length?P.subLanguage:null);P.relevance>0&&(nt+=ce.relevance),me.__addSublanguage(ce._emitter,ce.language)}function Se(){P.subLanguage!=null?He():Ce(),Le=""}function je(ce,we){ce!==""&&(me.startScope(we),me.addText(ce),me.endScope())}function H(ce,we){let Ve=1;const Qe=we.length-1;for(;Ve<=Qe;){if(!ce._emit[Ve]){Ve++;continue}const Ot=N.classNameAliases[ce[Ve]]||ce[Ve],Nt=we[Ve];Ot?je(Nt,Ot):(Le=Nt,Ce(),Le=""),Ve++}}function Y(ce,we){return ce.scope&&typeof ce.scope=="string"&&me.openNode(N.classNameAliases[ce.scope]||ce.scope),ce.beginScope&&(ce.beginScope._wrap?(je(Le,N.classNameAliases[ce.beginScope._wrap]||ce.beginScope._wrap),Le=""):ce.beginScope._multi&&(H(ce.beginScope,we),Le="")),P=Object.create(ce,{parent:{value:P}}),P}function ae(ce,we,Ve){let Qe=gH(ce.endRe,Ve);if(Qe){if(ce["on:end"]){const Ot=new AC(ce);ce["on:end"](we,Ot),Ot.isMatchIgnored&&(Qe=!1)}if(Qe){for(;ce.endsParent&&ce.parent;)ce=ce.parent;return ce}}if(ce.endsWithParent)return ae(ce.parent,we,Ve)}function ue(ce){return P.matcher.regexIndex===0?(Le+=ce[0],1):(ge=!0,0)}function he(ce){const we=ce[0],Ve=ce.rule,Qe=new AC(Ve),Ot=[Ve.__beforeBegin,Ve["on:begin"]];for(const Nt of Ot)if(Nt&&(Nt(ce,Qe),Qe.isMatchIgnored))return ue(we);return Ve.skip?Le+=we:(Ve.excludeBegin&&(Le+=we),Se(),!Ve.returnBegin&&!Ve.excludeBegin&&(Le=we)),Y(Ve,ce),Ve.returnBegin?0:we.length}function J(ce){const we=ce[0],Ve=q.substring(ce.index),Qe=ae(P,ce,Ve);if(!Qe)return jC;const Ot=P;P.endScope&&P.endScope._wrap?(Se(),je(we,P.endScope._wrap)):P.endScope&&P.endScope._multi?(Se(),H(P.endScope,ce)):Ot.skip?Le+=we:(Ot.returnEnd||Ot.excludeEnd||(Le+=we),Se(),Ot.excludeEnd&&(Le=we));do P.scope&&me.closeNode(),!P.skip&&!P.subLanguage&&(nt+=P.relevance),P=P.parent;while(P!==Qe.parent);return Qe.starts&&Y(Qe.starts,ce),Ot.returnEnd?0:we.length}function ve(){const ce=[];for(let we=P;we!==N;we=we.parent)we.scope&&ce.unshift(we.scope);ce.forEach(we=>me.openNode(we))}let Me={};function Ue(ce,we){const Ve=we&&we[0];if(Le+=ce,Ve==null)return Se(),0;if(Me.type==="begin"&&we.type==="end"&&Me.index===we.index&&Ve===""){if(Le+=q.slice(we.index,we.index+1),!o){const Qe=new Error(`0 width match regex (${R})`);throw Qe.languageName=R,Qe.badRule=Me.rule,Qe}return 1}if(Me=we,we.type==="begin")return he(we);if(we.type==="illegal"&&!Z){const Qe=new Error('Illegal lexeme "'+Ve+'" for mode "'+(P.scope||"<unnamed>")+'"');throw Qe.mode=P,Qe}else if(we.type==="end"){const Qe=J(we);if(Qe!==jC)return Qe}if(we.type==="illegal"&&Ve==="")return 1;if(ee>1e5&&ee>we.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Le+=Ve,Ve.length}const N=D(R);if(!N)throw ea(s.replace("{}",R)),new Error('Unknown language: "'+R+'"');const ke=YH(N);let V="",P=te||ke;const ie={},me=new l.__emitter(l);ve();let Le="",nt=0,We=0,ee=0,ge=!1;try{if(N.__emitTokens)N.__emitTokens(q,me);else{for(P.matcher.considerAll();;){ee++,ge?ge=!1:P.matcher.considerAll(),P.matcher.lastIndex=We;const ce=P.matcher.exec(q);if(!ce)break;const we=q.substring(We,ce.index),Ve=Ue(we,ce);We=ce.index+Ve}Ue(q.substring(We))}return me.finalize(),V=me.toHTML(),{language:R,value:V,relevance:nt,illegal:!1,_emitter:me,_top:P}}catch(ce){if(ce.message&&ce.message.includes("Illegal"))return{language:R,value:u1(q),illegal:!0,relevance:0,_illegalBy:{message:ce.message,index:We,context:q.slice(We-100,We+100),mode:ce.mode,resultSoFar:V},_emitter:me};if(o)return{language:R,value:u1(q),illegal:!1,relevance:0,errorRaised:ce,_emitter:me,_top:P};throw ce}}function m(R){const q={value:u1(R),illegal:!1,relevance:0,_top:a,_emitter:new l.__emitter(l)};return q._emitter.addText(R),q}function g(R,q){q=q||l.languages||Object.keys(e);const Z=m(R),te=q.filter(D).filter($).map(Se=>p(Se,R,!1));te.unshift(Z);const ne=te.sort((Se,je)=>{if(Se.relevance!==je.relevance)return je.relevance-Se.relevance;if(Se.language&&je.language){if(D(Se.language).supersetOf===je.language)return 1;if(D(je.language).supersetOf===Se.language)return-1}return 0}),[ye,Ce]=ne,He=ye;return He.secondBest=Ce,He}function b(R,q,Z){const te=q&&n[q]||Z;R.classList.add("hljs"),R.classList.add(`language-${te}`)}function y(R){let q=null;const Z=c(R);if(u(Z))return;if(W("before:highlightElement",{el:R,language:Z}),R.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",R);return}if(R.children.length>0&&(l.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(R)),l.throwUnescapedHTML))throw new QH("One of your code blocks includes unescaped HTML.",R.innerHTML);q=R;const te=q.textContent,ne=Z?f(te,{language:Z,ignoreIllegals:!0}):g(te);R.innerHTML=ne.value,R.dataset.highlighted="yes",b(R,Z,ne.language),R.result={language:ne.language,re:ne.relevance,relevance:ne.relevance},ne.secondBest&&(R.secondBest={language:ne.secondBest.language,relevance:ne.secondBest.relevance}),W("after:highlightElement",{el:R,result:ne,text:te})}function w(R){l=WC(l,R)}const x=()=>{E(),bl("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function S(){E(),bl("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let C=!1;function E(){if(document.readyState==="loading"){C=!0;return}document.querySelectorAll(l.cssSelector).forEach(y)}function _(){C&&E()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",_,!1);function T(R,q){let Z=null;try{Z=q(t)}catch(te){if(ea("Language definition for '{}' could not be registered.".replace("{}",R)),o)ea(te);else throw te;Z=a}Z.name||(Z.name=R),e[R]=Z,Z.rawDefinition=q.bind(null,t),Z.aliases&&M(Z.aliases,{languageName:R})}function A(R){delete e[R];for(const q of Object.keys(n))n[q]===R&&delete n[q]}function L(){return Object.keys(e)}function D(R){return R=(R||"").toLowerCase(),e[R]||e[n[R]]}function M(R,{languageName:q}){typeof R=="string"&&(R=[R]),R.forEach(Z=>{n[Z.toLowerCase()]=q})}function $(R){const q=D(R);return q&&!q.disableAutodetect}function j(R){R["before:highlightBlock"]&&!R["before:highlightElement"]&&(R["before:highlightElement"]=q=>{R["before:highlightBlock"](Object.assign({block:q.el},q))}),R["after:highlightBlock"]&&!R["after:highlightElement"]&&(R["after:highlightElement"]=q=>{R["after:highlightBlock"](Object.assign({block:q.el},q))})}function X(R){j(R),r.push(R)}function se(R){const q=r.indexOf(R);q!==-1&&r.splice(q,1)}function W(R,q){const Z=R;r.forEach(function(te){te[Z]&&te[Z](q)})}function z(R){return bl("10.7.0","highlightBlock will be removed entirely in v12.0"),bl("10.7.0","Please use highlightElement now."),y(R)}Object.assign(t,{highlight:f,highlightAuto:g,highlightAll:E,highlightElement:y,highlightBlock:z,configure:w,initHighlighting:x,initHighlightingOnLoad:S,registerLanguage:T,unregisterLanguage:A,listLanguages:L,getLanguage:D,registerAliases:M,autoDetection:$,inherit:WC,addPlugin:X,removePlugin:se}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString=ZH,t.regex={concat:Ns,lookahead:IC,either:s1,optional:hH,anyNumberOfTimes:pH};for(const R in Rf)typeof Rf[R]=="object"&&TC(Rf[R]);return Object.assign(t,Rf),t},vl=qC({});vl.newInstance=()=>qC({});var eU=vl;vl.HighlightJS=vl,vl.default=vl;var tU=lH(eU);function KC(t,e=[]){return t.map(n=>{const r=[...e,...n.properties?n.properties.className:[]];return n.children?KC(n.children,r):{text:n.value,classes:r}}).flat()}function GC(t){return t.value||t.children||[]}function nU(t){return!!tU.getLanguage(t)}function XC({doc:t,name:e,lowlight:n,defaultLanguage:r}){const o=[];return Nm(t,s=>s.type.name===e).forEach(s=>{var a;let l=s.pos+1;const u=s.node.attrs.language||r,c=n.listLanguages(),f=u&&(c.includes(u)||nU(u)||!((a=n.registered)===null||a===void 0)&&a.call(n,u))?GC(n.highlight(u,s.node.textContent)):GC(n.highlightAuto(s.node.textContent));KC(f).forEach(p=>{const m=l+p.text.length;if(p.classes.length){const g=Wt.inline(l,m,{class:p.classes.join(" ")});o.push(g)}l=m})}),mt.create(t,o)}function rU(t){return typeof t=="function"}function oU({name:t,lowlight:e,defaultLanguage:n}){if(!["highlight","highlightAuto","listLanguages"].every(o=>rU(e[o])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const r=new tt({key:new St("lowlight"),state:{init:(o,{doc:s})=>XC({doc:s,name:t,lowlight:e,defaultLanguage:n}),apply:(o,s,a,l)=>{const u=a.selection.$head.parent.type.name,c=l.selection.$head.parent.type.name,f=Nm(a.doc,m=>m.type.name===t),p=Nm(l.doc,m=>m.type.name===t);return o.docChanged&&([u,c].includes(t)||p.length!==f.length||o.steps.some(m=>m.from!==void 0&&m.to!==void 0&&f.some(g=>g.pos>=m.from&&g.pos+g.node.nodeSize<=m.to)))?XC({doc:o.doc,name:t,lowlight:e,defaultLanguage:n}):s.map(o.mapping,o.doc)}},props:{decorations(o){return r.getState(o)}}});return r}const iU=aH.extend({addOptions(){var t;return{...(t=this.parent)===null||t===void 0?void 0:t.call(this),lowlight:{},languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},addProseMirrorPlugins(){var t;return[...((t=this.parent)===null||t===void 0?void 0:t.call(this))||[],oU({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}}),sU=i.defineComponent({__name:"SelectSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(t){const e=t,n=i.computed(()=>{const{class:r,...o}=e;return o});return(r,o)=>(i.openBlock(),i.createBlock(i.unref($P),i.mergeProps(n.value,{class:i.unref(Ae)("-mx-1 my-1 h-px bg-ed-muted",e.class)}),null,16,["class"]))}}),aU=i.defineComponent({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},dir:{},name:{},autocomplete:{},disabled:{type:Boolean},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(t,{emit:e}){const o=Pt(t,e);return(s,a)=>(i.openBlock(),i.createBlock(i.unref(_P),i.normalizeProps(i.guardReactiveProps(i.unref(o))),{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default")]),_:3},16))}}),lU=i.defineComponent({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(t){const e=t;return(n,r)=>(i.openBlock(),i.createBlock(i.unref(YP),i.normalizeProps(i.guardReactiveProps(e)),{default:i.withCtx(()=>[i.renderSlot(n.$slots,"default")]),_:3},16))}});/**
214
+ https://github.com/highlightjs/highlight.js/issues/2277`),ne=R,te=q),Z===void 0&&(Z=!0);const ye={code:te,language:ne};W("before:highlight",ye);const Ce=ye.result?ye.result:p(ye.language,ye.code,Z);return Ce.code=ye.code,W("after:highlight",Ce),Ce}function p(R,q,Z,te){const ne=Object.create(null);function ye(ce,we){return ce.keywords[we]}function Ce(){if(!P.keywords){me.addText(Le);return}let ce=0;P.keywordPatternRe.lastIndex=0;let we=P.keywordPatternRe.exec(Le),Ve="";for(;we;){Ve+=Le.substring(ce,we.index);const Qe=Q.case_insensitive?we[0].toLowerCase():we[0],Ot=ye(P,Qe);if(Ot){const[Nt,hi]=Ot;if(me.addText(Ve),Ve="",ne[Qe]=(ne[Qe]||0)+1,ne[Qe]<=NH&&(nt+=hi),Nt.startsWith("_"))Ve+=we[0];else{const oe=Q.classNameAliases[Nt]||Nt;je(we[0],oe)}}else Ve+=we[0];ce=P.keywordPatternRe.lastIndex,we=P.keywordPatternRe.exec(Le)}Ve+=Le.substring(ce),me.addText(Ve)}function He(){if(Le==="")return;let ce=null;if(typeof P.subLanguage=="string"){if(!e[P.subLanguage]){me.addText(Le);return}ce=p(P.subLanguage,Le,!0,ie[P.subLanguage]),ie[P.subLanguage]=ce._top}else ce=g(Le,P.subLanguage.length?P.subLanguage:null);P.relevance>0&&(nt+=ce.relevance),me.__addSublanguage(ce._emitter,ce.language)}function Se(){P.subLanguage!=null?He():Ce(),Le=""}function je(ce,we){ce!==""&&(me.startScope(we),me.addText(ce),me.endScope())}function H(ce,we){let Ve=1;const Qe=we.length-1;for(;Ve<=Qe;){if(!ce._emit[Ve]){Ve++;continue}const Ot=Q.classNameAliases[ce[Ve]]||ce[Ve],Nt=we[Ve];Ot?je(Nt,Ot):(Le=Nt,Ce(),Le=""),Ve++}}function Y(ce,we){return ce.scope&&typeof ce.scope=="string"&&me.openNode(Q.classNameAliases[ce.scope]||ce.scope),ce.beginScope&&(ce.beginScope._wrap?(je(Le,Q.classNameAliases[ce.beginScope._wrap]||ce.beginScope._wrap),Le=""):ce.beginScope._multi&&(H(ce.beginScope,we),Le="")),P=Object.create(ce,{parent:{value:P}}),P}function ae(ce,we,Ve){let Qe=gH(ce.endRe,Ve);if(Qe){if(ce["on:end"]){const Ot=new AC(ce);ce["on:end"](we,Ot),Ot.isMatchIgnored&&(Qe=!1)}if(Qe){for(;ce.endsParent&&ce.parent;)ce=ce.parent;return ce}}if(ce.endsWithParent)return ae(ce.parent,we,Ve)}function ue(ce){return P.matcher.regexIndex===0?(Le+=ce[0],1):(ge=!0,0)}function he(ce){const we=ce[0],Ve=ce.rule,Qe=new AC(Ve),Ot=[Ve.__beforeBegin,Ve["on:begin"]];for(const Nt of Ot)if(Nt&&(Nt(ce,Qe),Qe.isMatchIgnored))return ue(we);return Ve.skip?Le+=we:(Ve.excludeBegin&&(Le+=we),Se(),!Ve.returnBegin&&!Ve.excludeBegin&&(Le=we)),Y(Ve,ce),Ve.returnBegin?0:we.length}function J(ce){const we=ce[0],Ve=q.substring(ce.index),Qe=ae(P,ce,Ve);if(!Qe)return jC;const Ot=P;P.endScope&&P.endScope._wrap?(Se(),je(we,P.endScope._wrap)):P.endScope&&P.endScope._multi?(Se(),H(P.endScope,ce)):Ot.skip?Le+=we:(Ot.returnEnd||Ot.excludeEnd||(Le+=we),Se(),Ot.excludeEnd&&(Le=we));do P.scope&&me.closeNode(),!P.skip&&!P.subLanguage&&(nt+=P.relevance),P=P.parent;while(P!==Qe.parent);return Qe.starts&&Y(Qe.starts,ce),Ot.returnEnd?0:we.length}function ve(){const ce=[];for(let we=P;we!==Q;we=we.parent)we.scope&&ce.unshift(we.scope);ce.forEach(we=>me.openNode(we))}let Me={};function Ue(ce,we){const Ve=we&&we[0];if(Le+=ce,Ve==null)return Se(),0;if(Me.type==="begin"&&we.type==="end"&&Me.index===we.index&&Ve===""){if(Le+=q.slice(we.index,we.index+1),!o){const Qe=new Error(`0 width match regex (${R})`);throw Qe.languageName=R,Qe.badRule=Me.rule,Qe}return 1}if(Me=we,we.type==="begin")return he(we);if(we.type==="illegal"&&!Z){const Qe=new Error('Illegal lexeme "'+Ve+'" for mode "'+(P.scope||"<unnamed>")+'"');throw Qe.mode=P,Qe}else if(we.type==="end"){const Qe=J(we);if(Qe!==jC)return Qe}if(we.type==="illegal"&&Ve==="")return 1;if(ee>1e5&&ee>we.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Le+=Ve,Ve.length}const Q=D(R);if(!Q)throw ea(s.replace("{}",R)),new Error('Unknown language: "'+R+'"');const ke=YH(Q);let V="",P=te||ke;const ie={},me=new l.__emitter(l);ve();let Le="",nt=0,We=0,ee=0,ge=!1;try{if(Q.__emitTokens)Q.__emitTokens(q,me);else{for(P.matcher.considerAll();;){ee++,ge?ge=!1:P.matcher.considerAll(),P.matcher.lastIndex=We;const ce=P.matcher.exec(q);if(!ce)break;const we=q.substring(We,ce.index),Ve=Ue(we,ce);We=ce.index+Ve}Ue(q.substring(We))}return me.finalize(),V=me.toHTML(),{language:R,value:V,relevance:nt,illegal:!1,_emitter:me,_top:P}}catch(ce){if(ce.message&&ce.message.includes("Illegal"))return{language:R,value:u1(q),illegal:!0,relevance:0,_illegalBy:{message:ce.message,index:We,context:q.slice(We-100,We+100),mode:ce.mode,resultSoFar:V},_emitter:me};if(o)return{language:R,value:u1(q),illegal:!1,relevance:0,errorRaised:ce,_emitter:me,_top:P};throw ce}}function m(R){const q={value:u1(R),illegal:!1,relevance:0,_top:a,_emitter:new l.__emitter(l)};return q._emitter.addText(R),q}function g(R,q){q=q||l.languages||Object.keys(e);const Z=m(R),te=q.filter(D).filter($).map(Se=>p(Se,R,!1));te.unshift(Z);const ne=te.sort((Se,je)=>{if(Se.relevance!==je.relevance)return je.relevance-Se.relevance;if(Se.language&&je.language){if(D(Se.language).supersetOf===je.language)return 1;if(D(je.language).supersetOf===Se.language)return-1}return 0}),[ye,Ce]=ne,He=ye;return He.secondBest=Ce,He}function b(R,q,Z){const te=q&&n[q]||Z;R.classList.add("hljs"),R.classList.add(`language-${te}`)}function y(R){let q=null;const Z=c(R);if(u(Z))return;if(W("before:highlightElement",{el:R,language:Z}),R.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",R);return}if(R.children.length>0&&(l.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(R)),l.throwUnescapedHTML))throw new QH("One of your code blocks includes unescaped HTML.",R.innerHTML);q=R;const te=q.textContent,ne=Z?f(te,{language:Z,ignoreIllegals:!0}):g(te);R.innerHTML=ne.value,R.dataset.highlighted="yes",b(R,Z,ne.language),R.result={language:ne.language,re:ne.relevance,relevance:ne.relevance},ne.secondBest&&(R.secondBest={language:ne.secondBest.language,relevance:ne.secondBest.relevance}),W("after:highlightElement",{el:R,result:ne,text:te})}function w(R){l=WC(l,R)}const x=()=>{E(),bl("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function S(){E(),bl("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let C=!1;function E(){if(document.readyState==="loading"){C=!0;return}document.querySelectorAll(l.cssSelector).forEach(y)}function _(){C&&E()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",_,!1);function T(R,q){let Z=null;try{Z=q(t)}catch(te){if(ea("Language definition for '{}' could not be registered.".replace("{}",R)),o)ea(te);else throw te;Z=a}Z.name||(Z.name=R),e[R]=Z,Z.rawDefinition=q.bind(null,t),Z.aliases&&M(Z.aliases,{languageName:R})}function A(R){delete e[R];for(const q of Object.keys(n))n[q]===R&&delete n[q]}function L(){return Object.keys(e)}function D(R){return R=(R||"").toLowerCase(),e[R]||e[n[R]]}function M(R,{languageName:q}){typeof R=="string"&&(R=[R]),R.forEach(Z=>{n[Z.toLowerCase()]=q})}function $(R){const q=D(R);return q&&!q.disableAutodetect}function j(R){R["before:highlightBlock"]&&!R["before:highlightElement"]&&(R["before:highlightElement"]=q=>{R["before:highlightBlock"](Object.assign({block:q.el},q))}),R["after:highlightBlock"]&&!R["after:highlightElement"]&&(R["after:highlightElement"]=q=>{R["after:highlightBlock"](Object.assign({block:q.el},q))})}function X(R){j(R),r.push(R)}function se(R){const q=r.indexOf(R);q!==-1&&r.splice(q,1)}function W(R,q){const Z=R;r.forEach(function(te){te[Z]&&te[Z](q)})}function z(R){return bl("10.7.0","highlightBlock will be removed entirely in v12.0"),bl("10.7.0","Please use highlightElement now."),y(R)}Object.assign(t,{highlight:f,highlightAuto:g,highlightAll:E,highlightElement:y,highlightBlock:z,configure:w,initHighlighting:x,initHighlightingOnLoad:S,registerLanguage:T,unregisterLanguage:A,listLanguages:L,getLanguage:D,registerAliases:M,autoDetection:$,inherit:WC,addPlugin:X,removePlugin:se}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString=ZH,t.regex={concat:Ns,lookahead:IC,either:s1,optional:hH,anyNumberOfTimes:pH};for(const R in Rf)typeof Rf[R]=="object"&&TC(Rf[R]);return Object.assign(t,Rf),t},vl=qC({});vl.newInstance=()=>qC({});var eU=vl;vl.HighlightJS=vl,vl.default=vl;var tU=lH(eU);function KC(t,e=[]){return t.map(n=>{const r=[...e,...n.properties?n.properties.className:[]];return n.children?KC(n.children,r):{text:n.value,classes:r}}).flat()}function GC(t){return t.value||t.children||[]}function nU(t){return!!tU.getLanguage(t)}function XC({doc:t,name:e,lowlight:n,defaultLanguage:r}){const o=[];return Nm(t,s=>s.type.name===e).forEach(s=>{var a;let l=s.pos+1;const u=s.node.attrs.language||r,c=n.listLanguages(),f=u&&(c.includes(u)||nU(u)||!((a=n.registered)===null||a===void 0)&&a.call(n,u))?GC(n.highlight(u,s.node.textContent)):GC(n.highlightAuto(s.node.textContent));KC(f).forEach(p=>{const m=l+p.text.length;if(p.classes.length){const g=Wt.inline(l,m,{class:p.classes.join(" ")});o.push(g)}l=m})}),mt.create(t,o)}function rU(t){return typeof t=="function"}function oU({name:t,lowlight:e,defaultLanguage:n}){if(!["highlight","highlightAuto","listLanguages"].every(o=>rU(e[o])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const r=new tt({key:new St("lowlight"),state:{init:(o,{doc:s})=>XC({doc:s,name:t,lowlight:e,defaultLanguage:n}),apply:(o,s,a,l)=>{const u=a.selection.$head.parent.type.name,c=l.selection.$head.parent.type.name,f=Nm(a.doc,m=>m.type.name===t),p=Nm(l.doc,m=>m.type.name===t);return o.docChanged&&([u,c].includes(t)||p.length!==f.length||o.steps.some(m=>m.from!==void 0&&m.to!==void 0&&f.some(g=>g.pos>=m.from&&g.pos+g.node.nodeSize<=m.to)))?XC({doc:o.doc,name:t,lowlight:e,defaultLanguage:n}):s.map(o.mapping,o.doc)}},props:{decorations(o){return r.getState(o)}}});return r}const iU=aH.extend({addOptions(){var t;return{...(t=this.parent)===null||t===void 0?void 0:t.call(this),lowlight:{},languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},addProseMirrorPlugins(){var t;return[...((t=this.parent)===null||t===void 0?void 0:t.call(this))||[],oU({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}}),sU=i.defineComponent({__name:"SelectSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(t){const e=t,n=i.computed(()=>{const{class:r,...o}=e;return o});return(r,o)=>(i.openBlock(),i.createBlock(i.unref($P),i.mergeProps(n.value,{class:i.unref(Ae)("-mx-1 my-1 h-px bg-ed-muted",e.class)}),null,16,["class"]))}}),aU=i.defineComponent({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},dir:{},name:{},autocomplete:{},disabled:{type:Boolean},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(t,{emit:e}){const o=Pt(t,e);return(s,a)=>(i.openBlock(),i.createBlock(i.unref(_P),i.normalizeProps(i.guardReactiveProps(i.unref(o))),{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default")]),_:3},16))}}),lU=i.defineComponent({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(t){const e=t;return(n,r)=>(i.openBlock(),i.createBlock(i.unref(YP),i.normalizeProps(i.guardReactiveProps(e)),{default:i.withCtx(()=>[i.renderSlot(n.$slots,"default")]),_:3},16))}});/**
215
215
  * @license lucide-vue-next v0.439.0 - ISC
216
216
  *
217
217
  * This source code is licensed under the ISC license.
@@ -283,11 +283,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ne=R,te=q),Z===void 0&
283
283
  `+s.map(PS).join(`
284
284
  `):" "+PS(s[0]):"as no adapter specified";throw new st("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Hb};function Ub(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Tl(null,t)}function VS(t){return Ub(t),t.headers=sr.from(t.headers),t.data=$b.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),DS.getAdapter(t.adapter||mc.adapter)(t).then(function(r){return Ub(t),r.data=$b.call(t,t.transformResponse,r),r.headers=sr.from(r.headers),r},function(r){return SS(r)||(Ub(t),r&&r.response&&(r.response.data=$b.call(t,t.transformResponse,r.response),r.response.headers=sr.from(r.response.headers))),Promise.reject(r)})}const FS="1.8.4",Yp={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Yp[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const $S={};Yp.transitional=function(e,n,r){function o(s,a){return"[Axios v"+FS+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,l)=>{if(e===!1)throw new st(o(a," has been removed"+(n?" in "+n:"")),st.ERR_DEPRECATED);return n&&!$S[a]&&($S[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,l):!0}},Yp.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function NJ(t,e,n){if(typeof t!="object")throw new st("options must be an object",st.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const s=r[o],a=e[s];if(a){const l=t[s],u=l===void 0||a(l,s,t);if(u!==!0)throw new st("option "+s+" must be "+u,st.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new st("Unknown option "+s,st.ERR_BAD_OPTION)}}const Jp={assertOptions:NJ,validators:Yp},$o=Jp.validators;let pa=class{constructor(e){this.defaults=e,this.interceptors={request:new wS,response:new wS}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
285
285
  `+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=fa(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Jp.assertOptions(r,{silentJSONParsing:$o.transitional($o.boolean),forcedJSONParsing:$o.transitional($o.boolean),clarifyTimeoutError:$o.transitional($o.boolean)},!1),o!=null&&(re.isFunction(o)?n.paramsSerializer={serialize:o}:Jp.assertOptions(o,{encode:$o.function,serialize:$o.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Jp.assertOptions(n,{baseUrl:$o.spelling("baseURL"),withXsrfToken:$o.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&re.merge(s.common,s[n.method]);s&&re.forEach(["delete","get","head","post","put","patch","common"],b=>{delete s[b]}),n.headers=sr.concat(a,s);const l=[];let u=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(u=u&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let f,p=0,m;if(!u){const b=[VS.bind(this),void 0];for(b.unshift.apply(b,l),b.push.apply(b,c),m=b.length,f=Promise.resolve(n);p<m;)f=f.then(b[p++],b[p++]);return f}m=l.length;let g=n;for(p=0;p<m;){const b=l[p++],y=l[p++];try{g=b(g)}catch(w){y.call(this,w);break}}try{f=VS.call(this,g)}catch(b){return Promise.reject(b)}for(p=0,m=c.length;p<m;)f=f.then(c[p++],c[p++]);return f}getUri(e){e=fa(this.defaults,e);const n=AS(e.baseURL,e.url,e.allowAbsoluteUrls);return yS(n,e.params,e.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(e){pa.prototype[e]=function(n,r){return this.request(fa(r||{},{method:e,url:n,data:(r||{}).data}))}}),re.forEach(["post","put","patch"],function(e){function n(r){return function(s,a,l){return this.request(fa(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}pa.prototype[e]=n(),pa.prototype[e+"Form"]=n(!0)});let eZ=class B_{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const a=new Promise(l=>{r.subscribe(l),s=l}).then(o);return a.cancel=function(){r.unsubscribe(s)},a},e(function(s,a,l){r.reason||(r.reason=new Tl(s,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new B_(function(o){e=o}),cancel:e}}};function tZ(t){return function(n){return t.apply(null,n)}}function nZ(t){return re.isObject(t)&&t.isAxiosError===!0}const Wb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Wb).forEach(([t,e])=>{Wb[e]=t});function zS(t){const e=new pa(t),n=iS(pa.prototype.request,e);return re.extend(n,pa.prototype,e,{allOwnKeys:!0}),re.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return zS(fa(t,o))},n}const on=zS(mc);on.Axios=pa,on.CanceledError=Tl,on.CancelToken=eZ,on.isCancel=SS,on.VERSION=FS,on.toFormData=jp,on.AxiosError=st,on.Cancel=on.CanceledError,on.all=function(e){return Promise.all(e)},on.spread=tZ,on.isAxiosError=nZ,on.mergeConfig=fa,on.AxiosHeaders=sr,on.formToJSON=t=>CS(re.isHTMLForm(t)?new FormData(t):t),on.getAdapter=DS.getAdapter,on.HttpStatusCode=Wb,on.default=on;const{Axios:Xse,AxiosError:Yse,CanceledError:Jse,isCancel:Zse,CancelToken:Qse,VERSION:Nse,all:eae,Cancel:tae,isAxiosError:nae,spread:rae,toFormData:oae,AxiosHeaders:iae,HttpStatusCode:sae,formToJSON:aae,getAdapter:lae,mergeConfig:uae}=on,rZ=async function(t){let e=[];try{if(this.enabled===!1||t.length===0||t.trim()==="")return e;if(this.limit&&t.length>this.limit)throw new Error("Text is too long");const n=await on.post(this.getApi(),{value:t}),r=this.transfer(n.data);e=(r==null?void 0:r.map(o=>o.errorText))||[],this!=null&&this.setSuggestions&&this.setSuggestions(r)}catch(n){console.error(n)}return e};class HS{constructor({api:e,limit:n,transfer:r,enabled:o}){Gt(this,"suggestions",[]);Gt(this,"api","");Gt(this,"enabled",!0);Gt(this,"limit");Gt(this,"transfer");this.suggestions=[],this.api=e,this.limit=n,this.transfer=r,this.enabled=o??!0}setSuggestions(e){this.suggestions=e}getSuggestions(e){var n;return Promise.resolve(((n=this.suggestions.find(r=>r.errorText.wrongWord===e))==null?void 0:n.spellData.correctWord)??[])}getApi(){return this.api}normalizeTextForLanguage(e){return e}proofreadText(e){return Promise.resolve(rZ.call(this,e))}toggleIsEnabled(){this.enabled=!this.enabled}setEnabled(e){this.enabled=e}getIsEnabled(){return this.enabled}}const oZ=Object.freeze(Object.defineProperty({__proto__:null,AI:bY,BaseKit:QE,Blockquote:cW,Bold:EC,BulletList:tW,Clear:h1,Code:oH,CodeBlock:CU,Color:r8,Columns:gb,FindAndReplace:AY,FontFamily:hE,FontSize:n8,FormatPainter:pb,Fullscreen:ZW,Heading:e8,Highlight:JU,History:H1,HorizontalRule:zW,Image:mb,ImageUpload:ZE,ImportWord:wY,Indent:JX,Italic:SC,LineHeight:bE,Link:F1,MoreMark:KX,OrderedList:iW,Preview:xY,Printer:BY,Proofreader:HS,SlashCommand:mY,SpellcheckerExtension:oS,Strike:_C,SubAndSuperScript:WX,Table:kb,TaskList:lW,TextAlign:t8,Underline:kC,Video:XE,VideoUpload:GE},Symbol.toStringTag,{value:"Module"})),iZ='<page id="ft6nbbxs" extend="false" pagenumber="1" force="false"><h1 id="tk6n64mj" extend="&quot;false&quot;"><strong>Introduction(English)</strong></h1><p id="s864ng1o" extend="&quot;false&quot;">MyMy Editor is open-source document editor based on Vue3 and Tiptap. MyMy Editor provides comprehensive document editing capabilities, supports pagination, supports Markdown syntax, offers basic rich text editing functions, allows for the insertion of various node types in multiple formats, provides a variety of practical tools, and supports setting page styles. It also supports exporting in various formats, printing and print preview, block-level document editing, adding custom extensions, multi-language settings, and a dark theme.</p><h1 id="jm9johtz" extend="&quot;false&quot;"><strong>소개(국문)</strong></h1><p id="0qei01hl" extend="&quot;false&quot;">마이마이 에디터는 Vue3과 Tiptap을 기반으로 한 오픈소스 문서 편집기입니다. 마이마이 에디터는 포괄적인 문서 편집 기능을 제공하며, 페이지네이션, 마크다운 구문 지원, 기본적인 리치 텍스트 편집 기능, 다양한 형식의 다양한 노드 유형 삽입, 다양한 실용적인 도구 제공, 페이지 스타일 설정 지원 등을 제공합니다. 또한 다양한 형식으로 내보내기, 인쇄 및 인쇄 미리보기, 블록 수준의 문서 편집, 사용자 지정 확장 추가, 다국어 설정 및 다크 테마를 지원합니다.마이마이 에디터는 Vue3과 Tiptap을 기반으로 한 오픈소스 문서 편집기입니다. 마이마이 에디터는 포괄적인 문서 편집 기능을 제공하며, 페이지네이션, 마크다운 구문 지원, 기본적인 리치 텍스트 편집 기능, 다양한 형식의 다양한 노드 유형 삽입, 다양한 실용적인 도구 제공, 페이지 스타일 설정 지원 등을 제공합니다. 또한 다양한 형식으로 내보내기, 인쇄 및 인쇄 미리보기, 블록 수준의 문서 편집, 사용자 지정 확장 추가, 다국어 설정 및 다크 테마를 지원합니다.</p><blockquote class="blockquote"><p id="nekf7yi0" extend="false"><span style="color: rgb(115, 209, 61)"><strong><em>Make by VDC</em></strong></span></p></blockquote></page>';function sZ(){const t=window.localStorage.getItem("content"),e=i.ref(t||iZ),n=i.computed(()=>[QE.configure({placeholder:{showOnlyCurrent:!0},characterCount:{limit:5e4},excludes:{}}),H1,gb,pb,h1,F1,mb,kb]),r=at.useEventBus(ir.RENDER_SUPER_TEXT);function o(s,a){const l={action:"status",payload:{id:s,status:a}};r.emit(l)}return{defaultExtensions:n,content:e,dispatchUpdateStatusSuperText:o}}const aZ={class:"flex items-center h-[32px] hover:bg-ed-muted rounded-md"},lZ={class:"text-sm flex items-center justify-center"},uZ={width:"18px",height:"18px",viewBox:"0 0 256 256",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},cZ={id:"icon/填充色",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},dZ={id:"icon/背景颜色"},fZ=["fill"],US=i.defineComponent({__name:"HighlightActionButton",props:{editor:{},tooltip:{default:void 0},disabled:{type:Boolean,default:!1},action:{type:Function,default:void 0},isActive:{type:Function,default:void 0},tooltipOptions:{default:void 0}},setup(t){const e=t,n=i.ref(void 0),{state:r}=vn();function o(a){var l;(l=e.action)==null||l.call(e,a)}function s(a){var l;(l=e.action)==null||l.call(e,n.value)}return i.watchEffect(()=>{const{color:a}=e.editor.getAttributes("highlight");r.highlight=a}),(a,l)=>(i.openBlock(),i.createElementBlock("div",aZ,[i.createVNode(Ge,{id:"highlight",tooltip:a.tooltip,disabled:a.disabled,action:s,"tooltip-options":a.tooltipOptions},{icon:i.withCtx(()=>[i.createElementVNode("span",lZ,[(i.openBlock(),i.createElementBlock("svg",uZ,[i.createElementVNode("g",cZ,[i.createElementVNode("g",dZ,[l[1]||(l[1]=i.createElementVNode("g",{id:"编组",fill:"currentColor"},[i.createElementVNode("g",{id:"矩形",transform:"translate(119.502295, 137.878331) rotate(-135.000000) translate(-119.502295, -137.878331) translate(48.002295, 31.757731)"},[i.createElementVNode("path",{d:"M100.946943,60.8084699 L43.7469427,60.8084699 C37.2852111,60.8084699 32.0469427,66.0467383 32.0469427,72.5084699 L32.0469427,118.70847 C32.0469427,125.170201 37.2852111,130.40847 43.7469427,130.40847 L100.946943,130.40847 C107.408674,130.40847 112.646943,125.170201 112.646943,118.70847 L112.646943,72.5084699 C112.646943,66.0467383 107.408674,60.8084699 100.946943,60.8084699 Z M93.646,79.808 L93.646,111.408 L51.046,111.408 L51.046,79.808 L93.646,79.808 Z","fill-rule":"nonzero"}),i.createElementVNode("path",{d:"M87.9366521,16.90916 L87.9194966,68.2000001 C87.9183543,69.4147389 86.9334998,70.399264 85.7187607,70.4 L56.9423078,70.4 C55.7272813,70.4 54.7423078,69.4150264 54.7423078,68.2 L54.7423078,39.4621057 C54.7423078,37.2523513 55.5736632,35.1234748 57.0711706,33.4985176 L76.4832996,12.4342613 C78.9534987,9.75382857 83.1289108,9.5834005 85.8093436,12.0535996 C87.1658473,13.303709 87.9372691,15.0644715 87.9366521,16.90916 Z","fill-rule":"evenodd"}),i.createElementVNode("path",{d:"M131.3,111.241199 L11.7,111.241199 C5.23826843,111.241199 0,116.479467 0,122.941199 L0,200.541199 C0,207.002931 5.23826843,212.241199 11.7,212.241199 L131.3,212.241199 C137.761732,212.241199 143,207.002931 143,200.541199 L143,122.941199 C143,116.479467 137.761732,111.241199 131.3,111.241199 Z M124,130.241 L124,193.241 L19,193.241 L19,130.241 L124,130.241 Z","fill-rule":"nonzero"})])],-1)),i.createElementVNode("path",{id:"矩形",d:"M51,218 L205,218 C211.075132,218 216,222.924868 216,229 C216,235.075132 211.075132,240 205,240 L51,240 C44.9248678,240 40,235.075132 40,229 C40,222.924868 44.9248678,218 51,218 Z",fill:n.value||"#FBDE28"},null,8,fZ)])])]))])]),_:1},8,["tooltip","disabled","tooltip-options"]),i.createVNode(mC,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=u=>n.value=u),highlight:"",disabled:a.disabled,onChange:o},{default:i.withCtx(()=>[i.createVNode(i.unref(_n),{variant:"ghost",size:"icon",class:"w-3 h-[32px] rounded-l-none hover:bg-ed-muted-foreground/20",disabled:a.disabled},{default:i.withCtx(()=>[i.createVNode(i.unref(jt),{class:"w-3 h-3 text-zinc-500",name:"MenuDown"})]),_:1},8,["disabled"])]),_:1},8,["modelValue","disabled"])]))}}),pZ={class:"h-full w-fit min-w-32 flex items-center leading-none gap-0.5 p-2 bg-ed-background rounded-lg shadow-sm border border-ed-border"},Zp=i.defineComponent({__name:"TableBubbleMenu",props:{editor:{}},setup(t){const e=t,n=()=>document.body,r=({editor:w})=>{var x;return w.isActive("table")&&(((x=w.storage.table)==null?void 0:x.isTableEditorOpen)??!1)},{t:o}=At();function s(){e.editor.chain().focus().addColumnBefore().run()}function a(){e.editor.chain().focus().addColumnAfter().run()}function l(){e.editor.chain().focus().deleteColumn().run()}function u(){e.editor.chain().focus().addRowBefore().run()}function c(){e.editor.chain().focus().addRowAfter().run()}function f(){e.editor.chain().focus().deleteRow().run()}function p(){e.editor.chain().focus().mergeCells().run()}function m(){var w;(w=e.editor)==null||w.chain().focus().splitCell().run()}function g(){e.editor.chain().focus().deleteTable().run()}function b(w){e.editor.chain().focus().setTableCellBackground(w).run()}const y=()=>{const w=document.querySelector(".vdc-editor");if(!w)return new DOMRect(-1e3,-1e3,0,0);const x=w.getBoundingClientRect();return new DOMRect(x.left,x.top+10,x.width,0)};return(w,x)=>(i.openBlock(),i.createBlock(i.unref(Od),{editor:w.editor,"plugin-key":"table","update-delay":0,"should-show":r,"tippy-options":{zIndex:9999,maxWidth:"auto",getReferenceClientRect:y,appendTo:n}},{default:i.withCtx(()=>{var S,C,E,_,T,A,L,D,M;return[i.createElementVNode("div",pZ,[i.createVNode(Ge,{icon:"TablerColumnInsertLeft","icon-class":"w-5 h-5",tooltip:i.unref(o)("editor.table.menu.insertColumnBefore"),action:s,"tooltip-options":{sideOffset:15},disabled:!((S=w.editor)!=null&&S.can().addColumnBefore())},null,8,["tooltip","disabled"]),i.createVNode(Ge,{icon:"TablerColumnInsertRight",tooltip:i.unref(o)("editor.table.menu.insertColumnAfter"),"icon-class":"w-5 h-5",action:a,"tooltip-options":{sideOffset:15},disabled:!((C=w.editor)!=null&&C.can().addColumnAfter())},null,8,["tooltip","disabled"]),i.createVNode(Ge,{icon:"TablerColumnRemove",action:l,"icon-class":"w-5 h-5",tooltip:i.unref(o)("editor.table.menu.deleteColumn"),"tooltip-options":{sideOffset:15},disabled:!((E=w.editor)!=null&&E.can().deleteColumn())},null,8,["tooltip","disabled"]),i.createVNode(i.unref(oi),{orientation:"vertical",class:"mx-1 me-2 h-[16px]"}),i.createVNode(Ge,{icon:"TablerRowInsertTop",action:u,"icon-class":"w-5 h-5",tooltip:i.unref(o)("editor.table.menu.insertRowAbove"),"tooltip-options":{sideOffset:15},disabled:!((_=w.editor)!=null&&_.can().addRowBefore())},null,8,["tooltip","disabled"]),i.createVNode(Ge,{icon:"TablerRowInsertBottom",action:c,"icon-class":"w-5 h-5",tooltip:i.unref(o)("editor.table.menu.insertRowBelow"),"tooltip-options":{sideOffset:15},disabled:!((T=w.editor)!=null&&T.can().addRowAfter())},null,8,["tooltip","disabled"]),i.createVNode(Ge,{icon:"TablerRowRemove",action:f,"icon-class":"w-5 h-5",tooltip:i.unref(o)("editor.table.menu.deleteRow"),"tooltip-options":{sideOffset:15},disabled:!((A=w.editor)!=null&&A.can().deleteRow())},null,8,["tooltip","disabled"]),i.createVNode(i.unref(oi),{orientation:"vertical",class:"mx-1 me-2 h-[16px]"}),i.createVNode(Ge,{icon:"TableCellsMerge",action:p,"icon-class":"w-5 h-5",tooltip:i.unref(o)("editor.table.menu.mergeCells"),"tooltip-options":{sideOffset:15},disabled:!((L=w.editor)!=null&&L.can().mergeCells())},null,8,["tooltip","disabled"]),i.createVNode(Ge,{icon:"TableCellsSplit",action:m,"icon-class":"w-5 h-5",tooltip:i.unref(o)("editor.table.menu.splitCells"),"tooltip-options":{sideOffset:15},disabled:!((D=w.editor)!=null&&D.can().splitCell())},null,8,["tooltip","disabled"]),i.createVNode(i.unref(oi),{orientation:"vertical",class:"mx-1 me-2 h-[16px]"}),i.createVNode(US,{editor:w.editor,tooltip:i.unref(o)("editor.table.menu.setCellsBgColor"),action:b,"tooltip-options":{sideOffset:15}},null,8,["editor","tooltip"]),i.createVNode(Ge,{icon:"Trash2",tooltip:i.unref(o)("editor.table.menu.deleteTable"),"icon-class":"w-5 h-5",action:g,"tooltip-options":{sideOffset:15},disabled:!((M=w.editor)!=null&&M.can().deleteTable())},null,8,["tooltip","disabled"])])]}),_:1},8,["editor","tippy-options"]))}}),hZ={class:"p-2 bg-white border rounded-lg shadow-sm dark:bg-black border-neutral-200 dark:border-neutral-800"},mZ={class:"flex items-center gap-1"},Qp=i.defineComponent({__name:"ColumnsBubbleMenu",props:{editor:{},disabled:{type:Boolean,default:!1}},setup(t){const e=t,n=({editor:l})=>n0(l.view.state,"columns"),r=()=>{const l=hC(e.editor,"columns");return(l==null?void 0:l.getBoundingClientRect())||new DOMRect(-1e3,-1e3,0,0)},o=()=>{e.editor.chain().focus().setLayout(aa.SidebarLeft).run()},s=()=>{e.editor.chain().focus().setLayout(aa.SidebarRight).run()},a=()=>{e.editor.chain().focus().setLayout(aa.TwoColumn).run()};return(l,u)=>(i.openBlock(),i.createBlock(i.unref(Od),{editor:l.editor,"plugin-key":"columns","should-show":n,"update-delay":0,"tippy-options":{offset:[0,8],popperOptions:{modifiers:[{name:"flip",enabled:!1}]},getReferenceClientRect:r,plugins:[i.unref(SB)],sticky:"popper"}},{default:i.withCtx(()=>[i.createElementVNode("div",hZ,[i.createElementVNode("div",mZ,[i.createVNode(Ge,{id:"panel-left",title:"ok",icon:"PanelLeft",tooltip:"tooltip",action:o,"is-active":()=>l.editor.isActive("columns",{layout:i.unref(aa).SidebarLeft}),"tooltip-options":{sideOffset:15}},null,8,["is-active"]),i.createVNode(Ge,{id:"columns",title:"ok",icon:"Columns",tooltip:"tooltip",action:a,"is-active":()=>l.editor.isActive("columns",{layout:i.unref(aa).TwoColumn}),"tooltip-options":{sideOffset:15}},null,8,["is-active"]),i.createVNode(Ge,{id:"panel-right",title:"ok",icon:"PanelRight",tooltip:"tooltip",action:s,"is-active":()=>l.editor.isActive("columns",{layout:i.unref(aa).SidebarRight}),"tooltip-options":{sideOffset:15}},null,8,["is-active"])])])]),_:1},8,["editor","tippy-options"]))}}),gZ={class:"flex items-center gap-2 p-2 bg-white border rounded-lg shadow-sm dark:bg-black border-neutral-200 dark:border-neutral-800"},bZ=["href"],vZ={class:"flex flex-nowrap"},yZ=i.defineComponent({__name:"LinkViewBlock",props:{editor:{},link:{default:void 0}},emits:["clear","edit"],setup(t,{emit:e}){const{t:n}=At(),r=e;function o(){r("clear")}function s(){r("edit")}return(a,l)=>(i.openBlock(),i.createElementBlock("div",gZ,[i.createElementVNode("a",{href:a.link,target:"_blank",rel:"noopener noreferrer",class:"text-sm underline break-all"},i.toDisplayString(i.unref(it.truncate)(a.link,{length:50,omission:"…"})),9,bZ),a.link?(i.openBlock(),i.createBlock(i.unref(oi),{key:0,orientation:"vertical",class:"h-4"})):i.createCommentVNode("",!0),i.createElementVNode("div",vZ,[i.createVNode(Ge,{icon:"Pencil",tooltip:i.unref(n)("editor.link.edit.tooltip"),action:s,"tooltip-options":{sideOffset:15}},null,8,["tooltip"]),i.createVNode(Ge,{icon:"Unlink",tooltip:i.unref(n)("editor.link.unlink.tooltip"),action:o,"tooltip-options":{sideOffset:15}},null,8,["tooltip"])])]))}}),Np=i.defineComponent({__name:"LinkBubbleMenu",props:{editor:{},disabled:{type:Boolean,default:!1}},setup(t){const e=t,n=i.ref(!1),r=i.ref(),o={width:-2,height:16},s=i.computed(()=>{const{href:f}=e.editor.getAttributes("link");return f}),a=i.computed(()=>e.editor.isActive("link")),l=i.computed(()=>{var y;if(!n.value)return{};const f=e.editor.state.selection,p=e.editor.view.coordsAtPos(f.from),m=(y=r.value)==null?void 0:y.getBoundingClientRect(),g=p.left+((m==null?void 0:m.width)??0)+o.width>window.innerWidth,b=p.top+((m==null?void 0:m.height)??0)+o.height>window.innerHeight;return g||b?{left:g?`${p.left-((m==null?void 0:m.width)??0)-o.width}px`:`${p.left}px`,top:b?`${p.top-((m==null?void 0:m.height)??0)-o.height}px`:`${p.top}px`}:{left:`${p.left}px`,top:`${p.bottom+o.height}px`}});function u(f,p,m){e.editor.chain().extendMarkRange("link").insertContent({type:"text",text:p,marks:[{type:"link",attrs:{href:f,target:m?"_blank":""}}]}).setLink({href:f}).focus().run(),n.value=!1}function c(){e.editor.chain().extendMarkRange("link").unsetLink().focus().run(),n.value=!1}return(f,p)=>i.withDirectives((i.openBlock(),i.createBlock(i.unref(Od),{editor:f.editor,"update-delay":0,"tippy-options":{popperOptions:{modifiers:[{name:"flip",enabled:!0}]},appendTo:"parent",placement:"bottom-start",offset:[o.width,o.height],zIndex:9999,onHidden:()=>{n.value=!1}}},{default:i.withCtx(()=>[n.value?(i.openBlock(),i.createBlock(i.Teleport,{key:0,to:"#vdc-editor"},[i.createElementVNode("div",{ref_key:"editFormRef",ref:r,class:"fixed z-50",style:i.normalizeStyle(l.value)},[i.createVNode(_8,{class:"p-4",editor:f.editor,onOnSetLink:u},null,8,["editor"])],4)])):i.createCommentVNode("",!0),n.value?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(yZ,{key:1,editor:f.editor,link:s.value,onClear:c,onEdit:p[0]||(p[0]=m=>n.value=!0)},null,8,["editor","link"]))]),_:1},8,["editor","tippy-options"])),[[i.vShow,a.value]])}}),jb=i.defineComponent({__name:"Badge",props:{variant:{},class:{}},setup(t){const e=t;return(n,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(i.unref(Ae)(i.unref(wZ)({variant:e.variant}),e.class))},[i.renderSlot(n.$slots,"default")],2))}}),wZ=jg("inline-flex items-center rounded-full border px-2.5 py-0.5 font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-ed-primary text-ed-primary-foreground hover:bg-ed-primary/80",secondary:"border-transparent bg-ed-secondary text-ed-secondary-foreground hover:bg-ed-secondary/80",destructive:"border-transparent bg-ed-destructive text-ed-destructive-foreground hover:bg-ed-destructive/80",outline:"text-ed-foreground"}},defaultVariants:{variant:"default"}}),WS=(t,e,n,r,o)=>{const s=at.useEventBus(ir.RENDER_SUPER_TEXT),a=S=>{if(!e.value||!t)return;const C=e.value.index,E=e.value.id,{state:_}=t,{tr:T}=_;let A=!1;_.doc.descendants((L,D)=>{var M,$;if(((M=L.attrs)==null?void 0:M[ot.ID])===E){($=L.attrs[ot.TEXT])!=null&&$.trim();const j=S.trim();if(yE(j))return T.delete(D,D+1),A=!0,!1;const{[ot.ELEMENT_ID]:X,...se}=L.attrs;return T.setNodeMarkup(D,void 0,{...se,[ot.TEXT]:j}),A=!0,!1}return!0}),A&&t&&t.view.dispatch(T),C!==-1&&(n.value[C].text=S,n.value[C].textOriginal=S)},l=()=>{if(!(t!=null&&t.view.dom))return[];const S=[],C=t==null?void 0:t.view.dom.querySelectorAll("[node-id]"),E=new Map;return C.forEach(_=>{const T=_.getBoundingClientRect().top;E.set(T,_)}),S.push(...E.values()),S},u=S=>{const C=S.closest(`#${r}`);if(!C)return;const E=C.getBoundingClientRect().top,_=C==null?void 0:C.scrollTop;return S.getBoundingClientRect().top-(E-_)},c=(S,C)=>{const E=n.value.findIndex(_=>_.id===S);E>-1&&(n.value[E].status=C)},f=S=>S.replace(/<p><\/p>/g,"<p>&nbsp;</p>"),p=async()=>{await i.nextTick();const C=l().map(E=>{const _=E.getAttribute("node-id"),T=E.getAttribute("book-mark-content"),A=E.getAttribute("page-id"),L=E.getAttribute("page-number"),D=E.getBoundingClientRect(),M=E.getAttribute("line-id"),$=E.getAttribute("element-id");return{position:D,text:f(T),id:_,pageId:A,pageNumber:L,visiblePosition:u(E),status:0,lineId:M,elementId:$,textOriginal:f(T)}});n.value=C},m=(S,C)=>{const E=S.bottom<=C.top,_=S.top>=C.bottom;return!(E||_)};async function g(){const S=o.value;!S||S.length===0||(S.sort((C,E)=>{const _=Number(C.getAttribute("index")),T=Number(E.getAttribute("index"));return _-T}),S.forEach(C=>C.classList.remove("super-text-truncate")),S.forEach((C,E)=>{const _=C.getBoundingClientRect();S.slice(E+1).forEach(T=>{const A=T.getBoundingClientRect();m(_,A)&&C.classList.add("super-text-truncate")})}))}const b=async S=>{await i.nextTick();const C=t==null?void 0:t.view.dom.querySelector(`[node-id='${S.dataId}']`),E=o.value.find(A=>A.getBoundingClientRect().top+9===(C==null?void 0:C.getBoundingClientRect().top));if(!E)return;const _=Number(E.getAttribute("index"));if(!S.text){E.querySelector(".super-text-lines").innerHTML=n.value[_].textOriginal,o.value.forEach(A=>A.classList.remove("hidden")),g();return}E.querySelector(".super-text-lines").innerHTML=f(S.text),E.classList.remove("super-text-truncate");const T=E.getBoundingClientRect();o.value.forEach((A,L)=>{if(L!==_){const D=A.getBoundingClientRect();m(T,D)&&A.classList.add("hidden")}})},y=S=>{switch(S.action){case"hover":b(S.payload);break;case"status":c(S.payload.id,S.payload.status);break;case"render":p();break;default:console.log("There is no action")}},w=(S,C)=>{const E=S.currentTarget;E.classList.remove("super-text-truncate");const _=E.getBoundingClientRect();o.value.forEach((T,A)=>{if(A!==C){const L=T.getBoundingClientRect();m(_,L)&&T.classList.add("hidden")}})},x=()=>{o.value.forEach(S=>S.classList.remove("hidden")),g()};return i.onBeforeMount(()=>{s.on(y),window.addEventListener("resize",p)}),i.onBeforeUnmount(()=>{s.off(y),window.removeEventListener("resize",p)}),i.watch(()=>n,async()=>{await i.nextTick(),g()},{deep:!0}),{onUpdate:a,hanldeTruncateSuperTexts:g,eventListener:y,handleMouseOver:w,handleMouseLeave:x}},xZ=["index","book-mark-id","line-id","onMouseover"],CZ=["innerHTML"],EZ=_o(i.defineComponent({__name:"SuperTextView",props:{editor:{},superPreviewCustomClass:{},minChars:{},fontSize:{}},setup(t,{expose:e}){const n=t,r=i.ref([]),o=i.ref([]),s=i.ref(!1),a=i.ref(!1),l=i.ref(null),u=i.inject("isMobile",!1),c=i.inject("canEditSuper",i.ref(!0)),{onUpdate:f,handleMouseOver:p,handleMouseLeave:m}=WS(n.editor,l,o,"editor-container",r),g=(S,C)=>{c.value&&(l.value={id:S.id,text:S.text,elementId:S.elementId,index:C},s.value=!0,u&&(a.value=!0))},b=S=>{var C,E;return Vc(S?((C=n.superPreviewCustomClass)==null?void 0:C.completedSuper)??"bg-black":((E=n.superPreviewCustomClass)==null?void 0:E.unproducedSuper)??"bg-red-500")},y=i.computed(()=>n.fontSize??""),{contentInner:w,measuredMinWidth:x}=Dd({minChars:n.minChars,fontSize:y});return e({measuredMinWidthComment:x}),(S,C)=>{var _;const E=jt;return i.openBlock(),i.createElementBlock("div",{id:"super-text-view-wrapper",ref_key:"contentInner",ref:w,style:i.normalizeStyle({width:`${Number(i.unref(x))+25}px`}),class:i.normalizeClass(i.unref(Ae)("relative border border-ed-gray-400 dark:bg-black rounded-[3px] mr-2.5",((_=S.superPreviewCustomClass)==null?void 0:_.overall)??"bg-ed-gray-50"))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(T,A)=>{var L,D,M;return i.openBlock(),i.createElementBlock("div",{key:T.id,ref_for:!0,ref_key:"superTextRefs",ref:r,index:A,"book-mark-id":T.id,"line-id":T.lineId,class:i.normalizeClass(i.unref(Ae)("super-text-view","absolute w-full px-2 translate-y-[-10px] group",{})),style:i.normalizeStyle({top:`${T.visiblePosition||((L=T.position)==null?void 0:L.top)}px`}),onMouseover:$=>i.unref(p)($,A),onMouseleave:C[0]||(C[0]=(...$)=>i.unref(m)&&i.unref(m)(...$))},[i.createVNode(i.unref(jb),{role:"text",variant:"outline",class:i.normalizeClass(i.unref(Ae)("wrap-anywhere whitespace-normal w-full !font-normal px-1 pt-0 m-0 !leading-tight rounded-sm text-white border-transparent cursor-pointer",T.elementId?((D=S.superPreviewCustomClass)==null?void 0:D.completedSuper)??"bg-black":((M=S.superPreviewCustomClass)==null?void 0:M.unproducedSuper)??"bg-red-500",{"cursor-default":!i.unref(c)})),onDblclick:$=>g(T,A)},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"super-text-lines",innerHTML:T.text},null,8,CZ),i.createVNode(E,{name:"triangle",class:i.normalizeClass(["absolute top-[0.4em] rotate-90 w-3 h-3 right-0",b(T.elementId)])},null,8,["class"])]),_:2},1032,["class","onDblclick"])],46,xZ)}),128)),!i.unref(u)&&l.value?(i.openBlock(),i.createBlock(uc,{key:0,open:s.value,editor:n.editor,"super-text-init":l.value.text,"super-text-element-id":l.value.elementId,onClose:C[1]||(C[1]=T=>s.value=!1),onSave:i.unref(f)},null,8,["open","editor","super-text-init","super-text-element-id","onSave"])):i.createCommentVNode("",!0)],6)}}}),[["__scopeId","data-v-f8cf206c"]]),SZ=["index","book-mark-id","line-id","onMouseover"],kZ=["innerHTML"],_Z=_o(i.defineComponent({__name:"SuperTextViewComment",props:{editor:{},disableSuperInput:{type:Boolean},superPreviewCustomClass:{}},setup(t){const e=t,n=i.ref([]),r=i.ref([]),o=i.ref(!1),s=i.ref(!1),a=i.ref(null),l=i.inject("isMobile",!1),u=i.inject("isEditable",i.ref(!0)),{onUpdate:c,handleMouseOver:f,handleMouseLeave:p}=WS(e.editor,a,r,"editor-container-comment",n),m=(y,w)=>{u.value&&(a.value={id:y.id,text:y.text,elementId:y.elementId,index:w},e.disableSuperInput||(o.value=!0),l&&(s.value=!0))},g=y=>{var w,x;return Vc(y?((w=e.superPreviewCustomClass)==null?void 0:w.completedSuper)??"bg-black":((x=e.superPreviewCustomClass)==null?void 0:x.unproducedSuper)??"bg-red-500")},b=i.inject("measuredMinWidthComment",0);return(y,w)=>{var S;const x=jt;return i.openBlock(),i.createElementBlock("div",{id:"super-text-view-wrapper",style:i.normalizeStyle({width:`${Number(i.unref(b))+25}px`}),class:i.normalizeClass(i.unref(Ae)("relative border border-ed-gray-400 dark:bg-black rounded-[3px] mr-2.5",((S=y.superPreviewCustomClass)==null?void 0:S.overall)??"bg-ed-gray-50"))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(C,E)=>{var _,T,A;return i.openBlock(),i.createElementBlock("div",{key:C.id,ref_for:!0,ref_key:"superTextRefs",ref:n,index:E,"book-mark-id":C.id,"line-id":C.lineId,class:i.normalizeClass(i.unref(Ae)("super-text-view","absolute w-full px-2 translate-y-[-10px] group",{})),style:i.normalizeStyle({top:`${C.visiblePosition||((_=C.position)==null?void 0:_.top)}px`}),onMouseover:L=>i.unref(f)(L,E),onMouseleave:w[0]||(w[0]=(...L)=>i.unref(p)&&i.unref(p)(...L))},[i.createVNode(i.unref(jb),{role:"text",variant:"outline",class:i.normalizeClass(i.unref(Ae)("wrap-anywhere whitespace-normal w-full !font-normal px-1 pt-0 m-0 !leading-tight rounded-sm text-white border-transparent cursor-pointer",C.elementId?((T=y.superPreviewCustomClass)==null?void 0:T.completedSuper)??"bg-black":((A=y.superPreviewCustomClass)==null?void 0:A.unproducedSuper)??"bg-red-500",{"cursor-default":!i.unref(u)})),onDblclick:L=>m(C,E)},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"super-text-lines",innerHTML:C.text},null,8,kZ),i.createVNode(x,{name:"triangle",class:i.normalizeClass(["absolute top-[0.4em] rotate-90 w-3 h-3 right-0",g(C.elementId)])},null,8,["class"])]),_:2},1032,["class","onDblclick"])],46,SZ)}),128)),!i.unref(l)&&a.value&&!y.disableSuperInput?(i.openBlock(),i.createBlock(uc,{key:0,open:o.value,editor:e.editor,"super-text-init":a.value.text,"super-text-element-id":a.value.elementId,onClose:w[1]||(w[1]=C=>o.value=!1),onSave:i.unref(c)},null,8,["open","editor","super-text-init","super-text-element-id","onSave"])):i.createCommentVNode("",!0)],6)}}}),[["__scopeId","data-v-06855cdd"]]),jS=t=>{console.log(t),t=t.replace(/\s*style="[^"]*"/g,""),t=t.replace(/<iframe\b[\s\S]*?<\/iframe\s*>/gi,"");const e=t.match(/<!--StartFragment-->([\s\S]*?)<!--EndFragment-->/),r=(e?e[1]:t).replace(/<br\s*\/?>/gi,`
286
- `).split(/\r?\n/),o=[];for(const a of r){const l=a.trim();if(l==="")o.push("<p></p>");else if(/^<br\s*\/?>/i.test(l)){const u=l.replace(/^<br\s*\/?>/i,"").trim();o.push(`<p>${u}</p>`)}else if(/^<\/BR>/i.test(l)){const u=l.replace(/^<\/BR>/i,"").trim();o.push(`<p>${u}</p>`)}else/^<(?!p\b)[^>]+>/i.test(l)?o.push(`<p>${l}</p>`):o.push(l)}let s=o.join("");return s=s.replace(/<p\b[^>]*>/gi,"<p>"),s},TZ=vn(),bc=t=>{const e=i.computed(()=>TZ.state.spellCheck);i.watch(()=>e.value,n=>{t.view.dispatch(t.state.tr.setMeta($n.IS_ACTIVE_SPELLCHECK,n))},{immediate:!0})},AZ={id:"editor-container-comment",class:"flex flex-col"},OZ={class:"flex flex-1"},MZ=i.defineComponent({__name:"EditorComment",props:{isMobile:{type:Boolean},superTextArea:{default:{view:!0,button:!0}},mode:{},modelValue:{default:""},comment:{},commentCuesheet:{},hideComment:{type:Boolean},disableSuperInput:{type:Boolean,default:!1},fontSizeDefault:{},fontFamilyDefault:{},isOpenSuperView:{type:Boolean,default:!0},output:{default:"html"},dark:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:!1},isShowFormatControlBar:{type:Boolean},titleBarComment:{},titleBarContent:{},fieldNameComment:{},fieldNameCommentCuesheet:{},fieldNameContent:{},fieldNameSuper:{},isScreenSplit:{},isShowLineNumber:{type:Boolean},hideMenubar:{type:Boolean},disableBubble:{type:Boolean,default:!1},hideBubble:{type:Boolean,default:!1},maxWidth:{default:void 0},minHeight:{default:600},maxHeight:{default:void 0},height:{},extensions:{default:()=>[]},editorClass:{default:void 0},contentClass:{default:void 0},isCompare:{type:Boolean},autoHeight:{type:Boolean},textAlert:{},toolBarClass:{},readonly:{type:Boolean,default:!1},canEditSuperReadOnly:{type:Boolean},autoFocus:{type:Boolean},superPreviewCustomClass:{default:void 0},minChar:{}},emits:["enter","change","update:modelValue","update:comment","onFocusEditor","changed:selection","setEditorSelected","onBlurEditor","lineFocus"],setup(t,{expose:e,emit:n}){const r=t,o=n,s=at.useEventBus(ir.RENDER_SUPER_TEXT),a=i.useAttrs(),l=vn(),{isReady:u,editor:c,updateEditorState:f,superTextStore:p,checkSpellStore:m,setEditorContextMenuRef:g}=l,b=i.inject("isEditable",i.ref(!0)),y=new No({enablePasteRules:!1,enableInputRules:!1,content:Pn(r.modelValue,r.disabled),editorProps:{attributes:{id:nr.COMMENT,[nr.DISABLE_SUPER_INPUT]:`${r.disableSuperInput}`},handleKeyDown:it.throttle((_,T)=>T.key==="Enter"&&a.enter&&!T.shiftKey?(o("enter"),!0):!1,ko),transformPastedHTML:_=>jS(_),handlePaste:(_,T)=>{const A=T.clipboardData;if(!A)return!1;const L=r.mode,D=A.getData("text/plain")||"",M=Array.from(A.items).some($=>$.type.startsWith("image/"));return(L===De.STRAIGHT||L===De.REPORT)&&M?(T.preventDefault(),!0):L===De.PLAIN_TEXT?(T.preventDefault(),_.dispatch(_.state.tr.insertText(D,_.state.selection.from)),!0):!1},clipboardTextParser:(_,T)=>{const A=_.split(/(?:\r\n?|\n)/),L=[];A.forEach(M=>{let $={type:"paragraph"};M.length>0&&($.content=[{type:"text",text:M}]);let j=Jr.fromJSON(T.doc.type.schema,$);L.push(j)});const D=de.fromArray(L);return Ee.maxOpen(D)}},onCreate:({editor:_})=>{f(_)},onUpdate:it.throttle(({editor:_})=>{u.value=!0;const T=S(_,r.output);o("update:modelValue",T),o("change",{editor:_,output:T}),f(_),x()},ko),extensions:r.extensions,editable:b.value,onFocus:()=>{g(C.value)}}),w=i.computed(()=>r.mode===De.EDITOR);async function x(){await i.nextTick(),s.emit({action:"render"})}function S(_,T){if(!_)return"";if(_.isEmpty)return T==="json"?{}:"";switch(T){case"html":return _.getHTML();case"json":return _.getJSON();case"text":return _.getText();default:return""}}i.watch(()=>r.disableSuperInput,()=>{const _=document.getElementById(nr.COMMENT);_==null||_.setAttribute(nr.DISABLE_SUPER_INPUT,`${r.disableSuperInput}`)}),i.watch(()=>m.languages,()=>{y.commands.checkSpelling()}),i.watch(()=>r.modelValue,_=>{if(!y||it.isEqual(S(y,r.output),_))return;const{from:T,to:A}=y.state.selection;y.commands.setTextSelection({from:T,to:A}),y.commands.setContent(Pn(_,r.disabled),!1),x()},{deep:!0}),i.watch(()=>b.value,_=>{var T;y==null||y.setEditable(_),(T=y==null?void 0:y.commands)!=null&&T.setIsEnableSuggestion&&y.commands.setIsEnableSuggestion(_)},{immediate:!0}),i.watch(()=>c.value,()=>{c.value&&c.value.on("selectionUpdate",({editor:_})=>{o("changed:selection",{editor:_})})}),i.onUnmounted(()=>y==null?void 0:y.destroy()),Gu(Eu.SAVE,()=>{localStorage.setItem("comment",S(y,"html"))});const C=i.ref(null);function E(_){_===De.REPORT&&g(C.value)}return i.onMounted(()=>{E(r.mode)}),i.watch(()=>r.mode,_=>{E(_)}),bc(y),e({editor:y}),(_,T)=>(i.openBlock(),i.createElementBlock("div",AZ,[i.createElementVNode("div",OZ,[i.withDirectives(i.createVNode(_Z,{"disable-super-input":_.disableSuperInput,editor:i.unref(y),"super-preview-custom-class":_.superPreviewCustomClass},null,8,["disable-super-input","editor","super-preview-custom-class"]),[[i.vShow,_.isOpenSuperView]]),i.createElementVNode("div",{id:"editor-panel",class:i.normalizeClass(["flex-1 p-2.5 border border-ed-gray-400 rounded-[3px] focus-within:border-ed-input-focus",[!i.unref(w)&&"[&_*:not(.super-text):not(.super-text-view):not(.bulk-highlight)]:!text-inherit"]])},[i.createVNode(fb,{ref_key:"selectContextMenuRef",ref:C,"disable-super-input":_.disableSuperInput,editor:i.unref(y),mode:_.mode,"super-text-store":i.unref(p)},{default:i.withCtx(()=>[i.createVNode(i.unref(Eo),{editor:i.unref(y),spellcheck:"true",class:"h-full break-all"},null,8,["editor"])]),_:1},8,["disable-super-input","editor","mode","super-text-store"])],2)])]))}});function BZ(t,e,n=!1,r=200){const{height:o}=at.useElementSize(t),s=i.ref(0),a=i.ref(0),l=i.ref(r),u=i.ref(0),c=async()=>{await i.nextTick();const f=o.value-8;e.value===De.REPORT?(s.value=f/3,a.value=n?"auto":f-s.value,l.value=r/3*2,u.value=r/3):(s.value=0,a.value=n?"auto":o.value)};return n||i.watch(()=>o.value,c),i.onMounted(()=>{c()}),{commentHeight:s,contentHeight:a,minHeight:l,minHeightComment:u}}const IZ={class:"flex flex-1"},eh=i.defineComponent({__name:"CoreEditorV2",props:{isMobile:{type:Boolean},superTextArea:{default:{view:!0,button:!0}},mode:{},modelValue:{default:""},comment:{default:""},commentCuesheet:{default:""},hideComment:{type:Boolean,default:!1},disableSuperInput:{type:Boolean,default:!1},fontSizeDefault:{default:"14px"},fontFamilyDefault:{default:""},isOpenSuperView:{type:Boolean},output:{default:"html"},dark:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:!1},isShowFormatControlBar:{type:Boolean},titleBarComment:{},titleBarContent:{},fieldNameComment:{default:null},fieldNameCommentCuesheet:{default:null},fieldNameContent:{default:null},fieldNameSuper:{},isScreenSplit:{},isShowLineNumber:{type:Boolean},hideMenubar:{type:Boolean},disableBubble:{type:Boolean,default:!1},hideBubble:{type:Boolean,default:!1},maxWidth:{default:void 0},minHeight:{default:200},maxHeight:{default:void 0},height:{default:void 0},extensions:{default:()=>[]},editorClass:{default:void 0},contentClass:{default:void 0},isCompare:{type:Boolean},autoHeight:{type:Boolean,default:!1},textAlert:{},toolBarClass:{default:void 0},readonly:{type:Boolean,default:!1},canEditSuperReadOnly:{type:Boolean,default:!1},autoFocus:{type:Boolean},superPreviewCustomClass:{default:()=>({overall:"bg-ed-gray-50",unproducedSuper:"bg-red-500",completedSuper:"bg-black"})},minChar:{default:()=>({superPreview:29,content:26})}},emits:["enter","change","update:modelValue","update:comment","onFocusEditor","changed:selection","setEditorSelected","onBlurEditor","lineFocus"],setup(t,{expose:e,emit:n}){const r=t,o=n,s=at.useEventBus(ir.RENDER_SUPER_TEXT),a=at.useEventBus(ir.INCREASE_DECREASE_FONTSIZE),l=i.useAttrs(),u=vn(),{state:c,isFullscreen:f,isReady:p,editor:m,updateEditorState:g,superTextStore:b,checkSpellStore:y,setEditorContextMenuRef:w}=u,x=i.computed(()=>!(r.disabled||r.readonly));i.provide("isEditable",x);const S=i.computed(()=>x.value?!0:r.canEditSuperReadOnly);i.provide("canEditSuper",S);const C=i.computed(()=>[...c.extensions,...it.differenceBy(r.extensions,c.extensions,"name")].map((ve,Me)=>{var Ue;return((Ue=ve.configure)==null?void 0:Ue.call(ve,{sort:Me}))||ve})),E=i.computed(()=>r.mode===De.EDITOR),_=i.ref(r.fontSizeDefault),T=i.ref(r.fontFamilyDefault);i.provide("fontSize",_),i.provide("fontFamily",T);const A=i.computed(()=>{const J={height:"auto",minHeight:r.minHeight?an(r.minHeight):void 0,maxHeight:r.maxHeight?an(r.maxHeight):void 0,overflowY:"auto"};return E.value&&!r.autoHeight?{}:E.value&&r.autoHeight?J:!E.value&&r.autoHeight?{...J,fontFamily:T.value,fontSize:_.value}:{fontFamily:T.value,fontSize:_.value}});i.watch(()=>[A.value,r.disabled],async()=>{R()}),i.onMounted(()=>{R()});const L=J=>{const ve=parseInt(_.value||"16px"),Me=J?ve+2:ve-2;_.value=Me+"px"};i.onBeforeMount(()=>{r.disabled||a.on(L)}),i.onBeforeUnmount(()=>{r.disabled||a.off(L)});const D=i.computed(()=>({...i.unref(f)?{height:"100%"}:{minHeight:r.minHeight?an(r.minHeight):void 0,maxHeight:r.maxHeight?an(r.maxHeight):void 0,height:r.height?an(r.height):void 0},maxWidth:an(r.maxWidth),width:r.maxWidth?"100%":void 0,margin:r.maxWidth?"0 auto":void 0})),M=new No({enablePasteRules:!1,enableInputRules:!1,content:Pn(r.modelValue,r.disabled,r.mode),editorProps:{handleKeyDown:it.throttle((J,ve)=>ve.key==="Enter"&&l.enter&&!ve.shiftKey?(o("enter"),!0):!1,ko),transformPastedHTML:J=>jS(J),handlePaste:(J,ve)=>{const Me=ve.clipboardData;if(!Me)return!1;const Ue=r.mode,N=Array.from(Me.items),ke=N.some(P=>P.type.startsWith("image/")),V=N.some(P=>P.type.startsWith("video/"));return(Ue===De.STRAIGHT||Ue===De.REPORT)&&(ke||V)?(ve.preventDefault(),!0):V?(ve.preventDefault(),Z(["video"])&&N.forEach(async P=>{var We;if(!P.type.startsWith("video/"))return;const ie=P.getAsFile();if(!ie)return;const me=M.extensionManager.extensions.find(ee=>ee.name==="video"),Le=(We=me==null?void 0:me.options)==null?void 0:We.upload,nt=Le?await Le(ie):URL.createObjectURL(ie);M.commands.focus(),M.commands.setVideo({src:nt})}),!0):!1},clipboardTextParser:(J,ve)=>{const Me=J.split(/(?:\r\n?|\n)/),Ue=[];Me.forEach(ke=>{let V={type:"paragraph"};ke.length>0&&(V.content=[{type:"text",text:ke}]);let P=Jr.fromJSON(ve.doc.type.schema,V);Ue.push(P)});const N=de.fromArray(Ue);return Ee.maxOpen(N)}},onCreate:({editor:J})=>{g(J)},onUpdate:it.throttle(({editor:J})=>{p.value=!0;const ve=q(J,r.output);o("update:modelValue",ve),o("change",{editor:J,output:ve}),g(J),R(),X()},ko),extensions:it.uniqBy(it.reverse(i.unref(C)),"name"),editable:x.value,onFocus:()=>{w(H.value)},parseOptions:{preserveWhitespace:"full"}});i.provide("minCharSuperInput",r.minChar.superPreview);const{contentInner:$,measuredMinWidth:j,measure:X}=Dd({minChars:r.minChar.content,fontSize:_,editor:M}),se=i.ref(null),W=i.computed(()=>{var J;return(J=se.value)==null?void 0:J.measuredMinWidthComment});i.provide("measuredMinWidthComment",W);const z=i.computed(()=>E.value?0:te.value?Number(j==null?void 0:j.value)+Number(W==null?void 0:W.value)+30:Number(j==null?void 0:j.value));async function R(){await i.nextTick(),s.emit({action:"render"})}function q(J,ve){if(!J)return"";if(J.isEmpty)return ve==="json"?{}:"";if(r.mode===De.PLAIN_TEXT)return J.getText({blockSeparator:`
286
+ `).split(/\r?\n/),o=[];for(const a of r){const l=a.trim();if(l==="")o.push("<p></p>");else if(/^<br\s*\/?>/i.test(l)){const u=l.replace(/^<br\s*\/?>/i,"").trim();o.push(`<p>${u}</p>`)}else if(/^<\/BR>/i.test(l)){const u=l.replace(/^<\/BR>/i,"").trim();o.push(`<p>${u}</p>`)}else/^<(?!p\b)[^>]+>/i.test(l)?o.push(`<p>${l}</p>`):o.push(l)}let s=o.join("");return s=s.replace(/<p\b[^>]*>/gi,"<p>"),s},TZ=vn(),bc=t=>{const e=i.computed(()=>TZ.state.spellCheck);i.watch(()=>e.value,n=>{t.view.dispatch(t.state.tr.setMeta($n.IS_ACTIVE_SPELLCHECK,n))},{immediate:!0})},AZ={id:"editor-container-comment",class:"flex flex-col"},OZ={class:"flex flex-1"},MZ=i.defineComponent({__name:"EditorComment",props:{isMobile:{type:Boolean},superTextArea:{default:{view:!0,button:!0}},mode:{},modelValue:{default:""},comment:{},commentCuesheet:{},hideComment:{type:Boolean},disableSuperInput:{type:Boolean,default:!1},fontSizeDefault:{},fontFamilyDefault:{},isOpenSuperView:{type:Boolean,default:!0},output:{default:"html"},dark:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:!1},isShowFormatControlBar:{type:Boolean},titleBarComment:{},titleBarContent:{},fieldNameComment:{},fieldNameCommentCuesheet:{},fieldNameContent:{},fieldNameSuper:{},isScreenSplit:{},isShowLineNumber:{type:Boolean},hideMenubar:{type:Boolean},disableBubble:{type:Boolean,default:!1},hideBubble:{type:Boolean,default:!1},maxWidth:{default:void 0},minHeight:{default:600},maxHeight:{default:void 0},height:{},extensions:{default:()=>[]},editorClass:{default:void 0},contentClass:{default:void 0},isCompare:{type:Boolean},autoHeight:{type:Boolean},textAlert:{},toolBarClass:{},readonly:{type:Boolean,default:!1},canEditSuperReadOnly:{type:Boolean},autoFocus:{type:Boolean},superPreviewCustomClass:{default:void 0},minChar:{}},emits:["enter","change","update:modelValue","update:comment","onFocusEditor","changed:selection","setEditorSelected","onBlurEditor","lineFocus","onFocus","onBlur"],setup(t,{expose:e,emit:n}){const r=t,o=n,s=at.useEventBus(ir.RENDER_SUPER_TEXT),a=i.useAttrs(),l=vn(),{isReady:u,editor:c,updateEditorState:f,superTextStore:p,checkSpellStore:m,setEditorContextMenuRef:g}=l,b=i.inject("isEditable",i.ref(!0)),y=new No({enablePasteRules:!1,enableInputRules:!1,content:Pn(r.modelValue,r.disabled),editorProps:{attributes:{id:nr.COMMENT,[nr.DISABLE_SUPER_INPUT]:`${r.disableSuperInput}`},handleKeyDown:it.throttle((_,T)=>T.key==="Enter"&&a.enter&&!T.shiftKey?(o("enter"),!0):!1,ko),transformPastedHTML:_=>jS(_),handlePaste:(_,T)=>{const A=T.clipboardData;if(!A)return!1;const L=r.mode,D=A.getData("text/plain")||"",M=Array.from(A.items).some($=>$.type.startsWith("image/"));return(L===De.STRAIGHT||L===De.REPORT)&&M?(T.preventDefault(),!0):L===De.PLAIN_TEXT?(T.preventDefault(),_.dispatch(_.state.tr.insertText(D,_.state.selection.from)),!0):!1},clipboardTextParser:(_,T)=>{const A=_.split(/(?:\r\n?|\n)/),L=[];A.forEach(M=>{let $={type:"paragraph"};M.length>0&&($.content=[{type:"text",text:M}]);let j=Jr.fromJSON(T.doc.type.schema,$);L.push(j)});const D=de.fromArray(L);return Ee.maxOpen(D)}},onCreate:({editor:_})=>{f(_)},onUpdate:it.throttle(({editor:_})=>{u.value=!0;const T=S(_,r.output);o("update:modelValue",T),o("change",{editor:_,output:T}),f(_),x()},ko),extensions:r.extensions,editable:b.value,onFocus:()=>{g(C.value)}}),w=i.computed(()=>r.mode===De.EDITOR);async function x(){await i.nextTick(),s.emit({action:"render"})}function S(_,T){if(!_)return"";if(_.isEmpty)return T==="json"?{}:"";switch(T){case"html":return _.getHTML();case"json":return _.getJSON();case"text":return _.getText();default:return""}}i.watch(()=>r.disableSuperInput,()=>{const _=document.getElementById(nr.COMMENT);_==null||_.setAttribute(nr.DISABLE_SUPER_INPUT,`${r.disableSuperInput}`)}),i.watch(()=>m.languages,()=>{y.commands.checkSpelling()}),i.watch(()=>r.modelValue,_=>{if(!y||it.isEqual(S(y,r.output),_))return;const{from:T,to:A}=y.state.selection;y.commands.setTextSelection({from:T,to:A}),y.commands.setContent(Pn(_,r.disabled),!1),x()},{deep:!0}),i.watch(()=>b.value,_=>{var T;y==null||y.setEditable(_),(T=y==null?void 0:y.commands)!=null&&T.setIsEnableSuggestion&&y.commands.setIsEnableSuggestion(_)},{immediate:!0}),i.watch(()=>c.value,()=>{c.value&&c.value.on("selectionUpdate",({editor:_})=>{o("changed:selection",{editor:_})})}),i.onUnmounted(()=>y==null?void 0:y.destroy()),Gu(Eu.SAVE,()=>{localStorage.setItem("comment",S(y,"html"))});const C=i.ref(null);function E(_){_===De.REPORT&&g(C.value)}return i.onMounted(()=>{E(r.mode)}),i.watch(()=>r.mode,_=>{E(_)}),bc(y),e({editor:y}),(_,T)=>(i.openBlock(),i.createElementBlock("div",AZ,[i.createElementVNode("div",OZ,[i.withDirectives(i.createVNode(_Z,{"disable-super-input":_.disableSuperInput,editor:i.unref(y),"super-preview-custom-class":_.superPreviewCustomClass},null,8,["disable-super-input","editor","super-preview-custom-class"]),[[i.vShow,_.isOpenSuperView]]),i.createElementVNode("div",{id:"editor-panel",class:i.normalizeClass(["flex-1 p-2.5 border border-ed-gray-400 rounded-[3px] focus-within:border-ed-input-focus",[!i.unref(w)&&"[&_*:not(.super-text):not(.super-text-view):not(.bulk-highlight)]:!text-inherit"]])},[i.createVNode(fb,{ref_key:"selectContextMenuRef",ref:C,"disable-super-input":_.disableSuperInput,editor:i.unref(y),mode:_.mode,"super-text-store":i.unref(p)},{default:i.withCtx(()=>[i.createVNode(i.unref(Eo),{editor:i.unref(y),spellcheck:"true",class:"h-full break-all"},null,8,["editor"])]),_:1},8,["disable-super-input","editor","mode","super-text-store"])],2)])]))}});function BZ(t,e,n=!1,r=200){const{height:o}=at.useElementSize(t),s=i.ref(0),a=i.ref(0),l=i.ref(r),u=i.ref(0),c=async()=>{await i.nextTick();const f=o.value-8;e.value===De.REPORT?(s.value=f/3,a.value=n?"auto":f-s.value,l.value=r/3*2,u.value=r/3):(s.value=0,a.value=n?"auto":o.value)};return n||i.watch(()=>o.value,c),i.onMounted(()=>{c()}),{commentHeight:s,contentHeight:a,minHeight:l,minHeightComment:u}}const IZ={class:"flex flex-1"},eh=i.defineComponent({__name:"CoreEditorV2",props:{isMobile:{type:Boolean},superTextArea:{default:{view:!0,button:!0}},mode:{},modelValue:{default:""},comment:{default:""},commentCuesheet:{default:""},hideComment:{type:Boolean,default:!1},disableSuperInput:{type:Boolean,default:!1},fontSizeDefault:{default:"14px"},fontFamilyDefault:{default:""},isOpenSuperView:{type:Boolean},output:{default:"html"},dark:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:!1},isShowFormatControlBar:{type:Boolean},titleBarComment:{},titleBarContent:{},fieldNameComment:{default:null},fieldNameCommentCuesheet:{default:null},fieldNameContent:{default:null},fieldNameSuper:{},isScreenSplit:{},isShowLineNumber:{type:Boolean},hideMenubar:{type:Boolean},disableBubble:{type:Boolean,default:!1},hideBubble:{type:Boolean,default:!1},maxWidth:{default:void 0},minHeight:{default:200},maxHeight:{default:void 0},height:{default:void 0},extensions:{default:()=>[]},editorClass:{default:void 0},contentClass:{default:void 0},isCompare:{type:Boolean},autoHeight:{type:Boolean,default:!1},textAlert:{},toolBarClass:{default:void 0},readonly:{type:Boolean,default:!1},canEditSuperReadOnly:{type:Boolean,default:!1},autoFocus:{type:Boolean},superPreviewCustomClass:{default:()=>({overall:"bg-ed-gray-50",unproducedSuper:"bg-red-500",completedSuper:"bg-black"})},minChar:{default:()=>({superPreview:29,content:26})}},emits:["enter","change","update:modelValue","update:comment","onFocusEditor","changed:selection","setEditorSelected","onBlurEditor","lineFocus","onFocus","onBlur"],setup(t,{expose:e,emit:n}){const r=t,o=n,s=at.useEventBus(ir.RENDER_SUPER_TEXT),a=at.useEventBus(ir.INCREASE_DECREASE_FONTSIZE),l=i.useAttrs(),u=vn(),{state:c,isFullscreen:f,isReady:p,editor:m,updateEditorState:g,superTextStore:b,checkSpellStore:y,setEditorContextMenuRef:w}=u,x=i.computed(()=>!(r.disabled||r.readonly));i.provide("isEditable",x);const S=i.computed(()=>x.value?!0:r.canEditSuperReadOnly);i.provide("canEditSuper",S);const C=i.computed(()=>[...c.extensions,...it.differenceBy(r.extensions,c.extensions,"name")].map((ve,Me)=>{var Ue;return((Ue=ve.configure)==null?void 0:Ue.call(ve,{sort:Me}))||ve})),E=i.computed(()=>r.mode===De.EDITOR),_=i.ref(r.fontSizeDefault),T=i.ref(r.fontFamilyDefault);i.provide("fontSize",_),i.provide("fontFamily",T);const A=i.computed(()=>{const J={height:"auto",minHeight:r.minHeight?an(r.minHeight):void 0,maxHeight:r.maxHeight?an(r.maxHeight):void 0,overflowY:"auto"};return E.value&&!r.autoHeight?{}:E.value&&r.autoHeight?J:!E.value&&r.autoHeight?{...J,fontFamily:T.value,fontSize:_.value}:{fontFamily:T.value,fontSize:_.value}});i.watch(()=>[A.value,r.disabled],async()=>{R()}),i.onMounted(()=>{R()});const L=J=>{const ve=parseInt(_.value||"16px"),Me=J?ve+2:ve-2;_.value=Me+"px"};i.onBeforeMount(()=>{r.disabled||a.on(L)}),i.onBeforeUnmount(()=>{r.disabled||a.off(L)});const D=i.computed(()=>({...i.unref(f)?{height:"100%"}:{minHeight:r.minHeight?an(r.minHeight):void 0,maxHeight:r.maxHeight?an(r.maxHeight):void 0,height:r.height?an(r.height):void 0},maxWidth:an(r.maxWidth),width:r.maxWidth?"100%":void 0,margin:r.maxWidth?"0 auto":void 0})),M=new No({enablePasteRules:!1,enableInputRules:!1,content:Pn(r.modelValue,r.disabled,r.mode),editorProps:{handleKeyDown:it.throttle((J,ve)=>ve.key==="Enter"&&l.enter&&!ve.shiftKey?(o("enter"),!0):!1,ko),transformPastedHTML:J=>jS(J),handlePaste:(J,ve)=>{const Me=ve.clipboardData;if(!Me)return!1;const Ue=r.mode,Q=Array.from(Me.items),ke=Q.some(P=>P.type.startsWith("image/")),V=Q.some(P=>P.type.startsWith("video/"));return(Ue===De.STRAIGHT||Ue===De.REPORT)&&(ke||V)?(ve.preventDefault(),!0):V?(ve.preventDefault(),Z(["video"])&&Q.forEach(async P=>{var We;if(!P.type.startsWith("video/"))return;const ie=P.getAsFile();if(!ie)return;const me=M.extensionManager.extensions.find(ee=>ee.name==="video"),Le=(We=me==null?void 0:me.options)==null?void 0:We.upload,nt=Le?await Le(ie):URL.createObjectURL(ie);M.commands.focus(),M.commands.setVideo({src:nt})}),!0):!1},clipboardTextParser:(J,ve)=>{const Me=J.split(/(?:\r\n?|\n)/),Ue=[];Me.forEach(ke=>{let V={type:"paragraph"};ke.length>0&&(V.content=[{type:"text",text:ke}]);let P=Jr.fromJSON(ve.doc.type.schema,V);Ue.push(P)});const Q=de.fromArray(Ue);return Ee.maxOpen(Q)}},onCreate:({editor:J})=>{g(J)},onUpdate:it.throttle(({editor:J})=>{p.value=!0;const ve=q(J,r.output);o("update:modelValue",ve),o("change",{editor:J,output:ve}),g(J),R(),X()},ko),extensions:it.uniqBy(it.reverse(i.unref(C)),"name"),editable:x.value,onFocus:J=>{w(H.value),o("onFocus",J)},onBlur:J=>o("onBlur",J),parseOptions:{preserveWhitespace:"full"}});i.provide("minCharSuperInput",r.minChar.superPreview);const{contentInner:$,measuredMinWidth:j,measure:X}=Dd({minChars:r.minChar.content,fontSize:_,editor:M}),se=i.ref(null),W=i.computed(()=>{var J;return(J=se.value)==null?void 0:J.measuredMinWidthComment});i.provide("measuredMinWidthComment",W);const z=i.computed(()=>E.value?0:te.value?Number(j==null?void 0:j.value)+Number(W==null?void 0:W.value)+30:Number(j==null?void 0:j.value));async function R(){await i.nextTick(),s.emit({action:"render"})}function q(J,ve){if(!J)return"";if(J.isEmpty)return ve==="json"?{}:"";if(r.mode===De.PLAIN_TEXT)return J.getText({blockSeparator:`
287
287
  `});switch(ve){case"html":return J.getHTML();case"json":return J.getJSON();case"text":return J.getText({blockSeparator:`
288
- `});default:return""}}function Z(J){return J.every(ve=>M==null?void 0:M.extensionManager.extensions.find(Me=>Me.name===ve))}i.watch(()=>y.languages,()=>{M.commands.checkSpelling()}),i.watch(()=>r.modelValue,J=>{if(!M||it.isEqual(q(M,r.output),J))return;const{from:ve,to:Me}=M.state.selection;M.commands.setTextSelection({from:ve,to:Me}),M.commands.setContent(Pn(J,r.disabled,r.mode),!1,{preserveWhitespace:"full"}),R()},{deep:!0}),i.watch(()=>x.value,J=>{var ve;M==null||M.setEditable(J),(ve=M==null?void 0:M.commands)!=null&&ve.setIsEnableSuggestion&&M.commands.setIsEnableSuggestion(J)},{immediate:!0}),i.watch(()=>m.value,()=>{m.value&&m.value.on("selectionUpdate",({editor:J})=>{o("changed:selection",{editor:J})})}),i.onUnmounted(()=>M==null?void 0:M.destroy()),Gu(Eu.SAVE,()=>{localStorage.setItem("content",q(M,"html"))});const te=i.computed(()=>{var Ue;if(!((Ue=M==null?void 0:M.storage)!=null&&Ue.superText))return!1;const{enable:J}=M.storage.superText,ve=[De.EDITOR,De.PLAIN_TEXT].includes(r.mode),Me=r.disabled;return J&&!ve&&!Me}),ne=i.ref(null),ye=i.computed(()=>r.mode),{commentHeight:Ce,contentHeight:He,minHeight:Se,minHeightComment:je}=BZ(ne,ye,r.autoHeight,typeof r.minHeight=="string"?parseInt(r.minHeight):r.minHeight),H=i.ref(null);function Y(J){J===De.STRAIGHT&&w(H.value)}i.onMounted(()=>{Y(r.mode)}),i.watch(()=>r.mode,J=>{Y(J)});const ae=i.ref(null),ue=()=>{var ve;(ve=ae.value)!=null&&ve.editor.commands.focusInvalidChar()||M.commands.focusInvalidChar()};u.focusFirstInvalidChar.value=ue,i.onActivated(()=>{u.focusFirstInvalidChar.value=ue});const he=i.computed(()=>{var ve,Me,Ue;const J=((ve=r.fieldNameComment)==null?void 0:ve.label)||((Me=r.fieldNameCommentCuesheet)==null?void 0:Me.label)||((Ue=r.fieldNameContent)==null?void 0:Ue.label);return r.disabled&&J});return e({editor:M}),(J,ve)=>{var ie;const Me=Np,Ue=Qp,N=Zp,ke=Of,V=r$,P=KB;return i.unref(M)?(i.openBlock(),i.createElementBlock("div",{key:0,id:"vdc-editor",class:i.normalizeClass(["vdc-editor w-full flex flex-col",[J.editorClass,{"outline-ed-primary":i.unref(M).isFocused,"outline-ed-border":!i.unref(M).isFocused}]]),style:i.normalizeStyle(D.value)},[!J.hideBubble&&!J.disabled&&x.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[Z([i.unref(ac)])?(i.openBlock(),i.createBlock(Me,{key:0,editor:i.unref(M)},null,8,["editor"])):i.createCommentVNode("",!0),Z([i.unref(sa)])?(i.openBlock(),i.createBlock(Ue,{key:1,editor:i.unref(M)},null,8,["editor"])):i.createCommentVNode("",!0),Z([i.unref(us)])?(i.openBlock(),i.createBlock(N,{key:2,editor:i.unref(M)},null,8,["editor"])):i.createCommentVNode("",!0),Z([i.unref(cs),i.unref(ds)])?(i.openBlock(),i.createBlock(ke,{key:3,editor:i.unref(M)},null,8,["editor"])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),J.hideToolbar?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(V,{key:1,editor:i.unref(M),"editor-comment":(ie=ae.value)==null?void 0:ie.editor,mode:J.mode,class:i.normalizeClass(["mb-2",J.toolBarClass])},null,8,["editor","editor-comment","mode","class"])),i.createElementVNode("div",{ref_key:"editorWrapRef",ref:ne,class:i.normalizeClass(["space-y-2 flex-1 flex flex-col break-keep",!E.value&&"[&_*]:!font-inherit [&_*]:!text-font-size-inherit [&_*]:!no-underline [&_*]:!font-normal",T.value&&!E.value?"[&_*]:!font-inherit":"",_.value&&!E.value?"[&_*]:!text-font-size-inherit":""]),style:i.normalizeStyle(A.value)},[he.value?(i.openBlock(),i.createBlock(P,{key:0,extensions:J.extensions,mode:J.mode,"hide-comment":J.hideComment,"field-name-comment":J.fieldNameComment,"field-name-comment-cuesheet":J.fieldNameCommentCuesheet,"field-name-content":J.fieldNameContent,comment:J.comment,"comment-cuesheet":J.commentCuesheet,content:J.modelValue,"min-chars":J.minChar.content,"font-size":_.value},null,8,["extensions","mode","hide-comment","field-name-comment","field-name-comment-cuesheet","field-name-content","comment","comment-cuesheet","content","min-chars","font-size"])):(i.openBlock(),i.createElementBlock("div",{key:1,class:"space-y-2 flex-1 flex flex-col",style:i.normalizeStyle({minWidth:`${z.value}px`})},[J.mode===i.unref(De).REPORT&&!J.hideComment?(i.openBlock(),i.createBlock(MZ,{key:0,ref_key:"editorCommentRef",ref:ae,mode:i.unref(De).REPORT,extensions:J.extensions,"model-value":r.comment,disabled:r.disabled,"disable-super-input":J.disableSuperInput,"is-open-super-view":te.value,"super-preview-custom-class":J.superPreviewCustomClass,"min-char":J.minChar,"font-size":_.value,style:i.normalizeStyle(r.autoHeight?{height:"auto",minHeight:i.unref(an)(i.unref(je))}:{height:i.unref(an)(i.unref(Ce)),minHeight:i.unref(an)(i.unref(Se))}),class:"relative overflow-y-auto","onUpdate:modelValue":ve[0]||(ve[0]=me=>o("update:comment",me))},null,8,["mode","extensions","model-value","disabled","disable-super-input","is-open-super-view","super-preview-custom-class","min-char","font-size","style"])):i.createCommentVNode("",!0),i.createElementVNode("div",{id:"editor-container",class:"relative overflow-y-auto flex flex-col",style:i.normalizeStyle(r.autoHeight?{height:"auto",minHeight:i.unref(an)(i.unref(Se))}:{height:i.unref(an)(i.unref(He))})},[i.createElementVNode("div",IZ,[i.withDirectives(i.createVNode(EZ,{ref_key:"superTextViewRef",ref:se,editor:i.unref(M),"super-preview-custom-class":J.superPreviewCustomClass,"min-chars":J.minChar.superPreview,"font-size":_.value},null,8,["editor","super-preview-custom-class","min-chars","font-size"]),[[i.vShow,te.value]]),i.createElementVNode("div",{id:"editor-panel",ref_key:"contentInner",ref:$,class:i.normalizeClass(["flex-1 p-2.5 border border-ed-gray-400 rounded-[3px] focus-within:border-ed-input-focus",[!E.value&&"[&_*:not(.super-text):not(.super-text-view):not(.bulk-highlight)]:!text-inherit"]])},[i.createVNode(fb,{ref_key:"selectContextMenuRef",ref:H,editor:i.unref(M),mode:J.mode,"super-text-store":i.unref(b)},{default:i.withCtx(()=>[i.createVNode(i.unref(Eo),{editor:i.unref(M),spellcheck:"true",class:i.normalizeClass(i.unref(Ae)("h-full break-all",J.mode===i.unref(De).PLAIN_TEXT&&"plain-text"))},null,8,["editor","class"])]),_:1},8,["editor","mode","super-text-store"])],2)])],4)],4))],6)],6)):i.createCommentVNode("",!0)}}}),RZ={class:"flex gap-2 items-center overflow-x-auto overflow-y-hidden min-h-11 scrollbar-hide"},LZ=i.defineComponent({__name:"ToolbarFormat",props:{editor:{},disabled:{type:Boolean,default:!1},mode:{},activeExtensions:{default:()=>[]}},setup(t){const{t:e}=At(),n=t,r=["fontSize","fontFamily","superText","spellchecker",uE],o=i.computed(()=>{const l=[...n.editor.extensionManager.extensions];let u=[];for(const c of l){const{button:f,divider:p=!1,spacer:m=!1,toolbar:g=!0}=c.options;if(!f||!T0(f)||!g)continue;const b=f({editor:n.editor,extension:c,t:i.unref(e),isMobile:!0});if(Array.isArray(b)){const y=b.map((w,x)=>({id:`${c.name}`,button:w,divider:x===b.length-1?p:!1,spacer:x===0?m:!1}));u=[...u,...y];continue}u.push({button:b,divider:p,spacer:m,id:`${c.name}`})}return n.activeExtensions.length?u.filter(c=>c.id&&n.activeExtensions.includes(c.id)):(r.length&&(u=u.filter(c=>c.id&&!r.includes(c.id))),u)}),s=l=>l.id==="spellchecker"?"!text-ed-blue !bg-white !font-normal rounded [&>div>svg]:w-[19px] [&>div>svg]:h-[19px] h-[26px] gap-x-1 whitespace-nowrap":l.button.componentProps.customClass,a=l=>l.id==="spellchecker"?"Spellchecker":l.button.componentProps.icon;return(l,u)=>(i.openBlock(),i.createElementBlock("div",{id:"tool-bar-format",class:i.normalizeClass(i.unref(Ae)("bg-white border border-gray-100 rounded-full shadow-md px-2.5",!o.value.length&&"hidden"))},[i.createElementVNode("div",RZ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(c,f)=>{var p;return i.openBlock(),i.createBlock(i.resolveDynamicComponent(c.button.component),i.mergeProps({key:f,id:c.id,ref_for:!0},c.button.componentProps,{editor:l.editor,disabled:l.disabled||((p=c.button.componentProps)==null?void 0:p.disabled),"custom-class":s(c),icon:a(c)}),i.createSlots({_:2},[i.renderList(c.button.componentSlots,(m,g,b)=>({name:`${g}`,fn:i.withCtx(y=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(m),i.mergeProps({ref_for:!0},y==null?void 0:y.props,{id:c.id}),null,16,["id"]))])}))]),1040,["id","editor","disabled","custom-class","icon"])}),128))])],2))}}),PZ={class:"flex gap-2 items-center overflow-x-auto"},qS=i.defineComponent({__name:"ToolbarMobile",props:{editor:{},disabled:{type:Boolean,default:!1},mode:{},activeExtensions:{default:()=>[lE,lc,cb]}},setup(t){const{t:e}=At(),n=t,r=i.inject("isEditable",i.ref(!0)),o=i.computed(()=>{const u=[...n.editor.extensionManager.extensions],c=u.find(m=>m.name===cb);let f=u.sort((m,g)=>m.name==="spellchecker"?-1:g.name==="spellchecker"||m.name==="superText"?1:g.name==="superText"?-1:0);c&&(f=u.sort((m,g)=>m.name==="configPlan"?1:g.name==="configPlan"?-1:0));let p=[];for(const m of f){const{button:g,divider:b=!1,spacer:y=!1,toolbar:w=!0}=m.options;if(!g||!T0(g)||!w)continue;const x=g({editor:n.editor,extension:m,t:i.unref(e),isMobile:!0});if(Array.isArray(x)){const S=x.map((C,E)=>({id:`${m.name}`,button:C,divider:E===x.length-1?b:!1,spacer:E===0?y:!1}));p=[...p,...S];continue}p.push({button:x,divider:b,spacer:y,id:`${m.name}`})}if(!r.value){const m=p.find(g=>g.id==="superText");m&&(m.button.componentProps.disabled=!0)}return n.activeExtensions.length?p.filter(m=>m.id&&n.activeExtensions.includes(m.id)):p}),s=u=>u.id==="spellchecker"?"!text-ed-blue bg-white !font-normal rounded [&>div>svg]:w-[19px] [&>div>svg]:h-[19px] h-[26px] gap-x-1 whitespace-nowrap":u.button.componentProps.customClass,a=u=>u.id==="spellchecker"?"Spellchecker":u.button.componentProps.icon,l=i.ref(!1);return(u,c)=>{const f=cE;return i.openBlock(),i.createElementBlock("div",{id:"tool-bar",class:i.normalizeClass(i.unref(Ae)("z-10 bg-[#E0E0E0] rounded-[5px] px-2.5 py-[5px] leading-none",i.unref(df)()&&"top-16",!o.value.length&&"hidden"))},[i.createElementVNode("div",PZ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(p,m)=>{var g,b,y;return i.openBlock(),i.createElementBlock(i.Fragment,{key:m},[p.spacer&&m!==0?(i.openBlock(),i.createBlock(i.unref(oi),{key:0,orientation:"vertical",class:"h-[16px] mx-[10px]"})):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(p.button.component),i.mergeProps({id:p.id,ref_for:!0},p.button.componentProps,{editor:u.editor,disabled:u.disabled||((g=p.button.componentProps)==null?void 0:g.disabled),"custom-class":s(p),icon:a(p)}),i.createSlots({_:2},[i.renderList(p.button.componentSlots,(w,x,S)=>({name:`${x}`,fn:i.withCtx(C=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(w),i.mergeProps({ref_for:!0},C==null?void 0:C.props,{id:p.id}),null,16,["id"]))])}))]),1040,["id","editor","disabled","custom-class","icon"])),p.id===lc&&i.unref(l)?(i.openBlock(),i.createBlock(f,{key:1,class:"bg-white border-inherit w-[26px] h-[26px] shadow-none",checked:(y=(b=p.button.componentProps).isActive)==null?void 0:y.call(b),"onUpdate:checked":w=>{var x,S;return(S=(x=p.button.componentProps).action)==null?void 0:S.call(x)}},null,8,["checked","onUpdate:checked"])):i.createCommentVNode("",!0),p.divider?(i.openBlock(),i.createBlock(i.unref(oi),{key:2,orientation:"vertical",class:"mx-2 h-auto"})):i.createCommentVNode("",!0)],64)}),128))])],2)}}}),DZ={class:"bg-ed-blue px-1"},VZ={class:"bg-ed-blue px-1"},qb=_o(i.defineComponent({__name:"SelectContextMenuMobile",props:{editor:{},mode:{},disableSuperInput:{type:Boolean}},setup(t){var g;const e=t,{t:n}=At(),r=i.ref(!1),o=i.inject("isEditable",i.ref(!0)),s=(g=e.editor.extensionManager.extensions.find(b=>b.name==="superText"))==null?void 0:g.options.specialCharModal,a=b=>{e.editor.chain().focus().insertContent(b).run()},l=()=>{e.editor.chain().focus().selectAll().run()},u=i.ref(!1),c=async b=>{var y,w;if(b){const x=await((w=(y=e.editor).hasClipboard)==null?void 0:w.call(y));u.value=!!x}},f=i.computed(()=>!o.value),p=i.computed(()=>[...e.editor.extensionManager.extensions].find(y=>y.name==="configPlan")),m=i.computed(()=>[...e.editor.extensionManager.extensions].find(y=>y.name==="superText"));return(b,y)=>{var E,_,T;const w=kp,x=Sp,S=Ep,C=Cp;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(C,{"onUpdate:open":c},{default:i.withCtx(()=>[i.createVNode(w,{as:"template",disabled:i.unref(f)},{default:i.withCtx(()=>[i.renderSlot(b.$slots,"default",{},void 0,!0)]),_:3},8,["disabled"]),i.createVNode(S,{"avoid-collisions":!0,sticky:"always","hide-when-detached":"","prioritize-position":"",class:"flex bg-[#616161] text-white max-w-[calc(100vw-16px)] sm:max-w-[310px] overflow-x-auto whitespace-nowrap"},{default:i.withCtx(()=>[i.unref(m)&&!b.disableSuperInput&&b.mode!==i.unref(De).EDITOR?(i.openBlock(),i.createBlock(x,{key:0,onClick:y[0]||(y[0]=A=>b.editor.commands.toggleSuperInputMoblie())},{default:i.withCtx(()=>[i.createElementVNode("span",DZ,i.toDisplayString(i.unref(n)("editor.super")),1)]),_:1})):i.createCommentVNode("",!0),i.unref(p)?(i.openBlock(),i.createBlock(x,{key:1,onClick:y[1]||(y[1]=A=>b.editor.commands.toggleConfigPlanInput())},{default:i.withCtx(()=>[i.createElementVNode("span",VZ,i.toDisplayString(i.unref(n)("editor.configPlan")),1)]),_:1})):i.createCommentVNode("",!0),i.createVNode(x,{onClick:y[2]||(y[2]=A=>r.value=!0)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(n)("editor.insertSpecial")),1)]),_:1}),i.unref(u)?(i.openBlock(),i.createBlock(x,{key:2,onClick:y[3]||(y[3]=A=>{var L;return(L=b.editor)==null?void 0:L.commands.pasteContent()})},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(n)("editor.paste")),1)]),_:1})):i.createCommentVNode("",!0),i.createVNode(x,{onClick:y[4]||(y[4]=A=>{var L;return(L=b.editor)==null?void 0:L.commands.cutContent()})},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(n)("editor.cut")),1)]),_:1}),i.createVNode(x,{onClick:y[5]||(y[5]=A=>{var L;return(L=b.editor)==null?void 0:L.commands.copyContent()})},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(n)("editor.copy")),1)]),_:1}),i.createVNode(x,{onClick:l},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(n)("editor.selectAll")),1)]),_:1})]),_:1})]),_:3}),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent((E=i.unref(s))==null?void 0:E.component),{"is-open":i.unref(r),open:i.unref(r),class:i.normalizeClass((T=(_=i.unref(s))==null?void 0:_.componentProps)==null?void 0:T.class),onSelectedChar:a,onClose:y[6]||(y[6]=A=>r.value=!1)},null,40,["is-open","open","class"]))]))],64)}}}),[["__scopeId","data-v-d47964cd"]]),FZ={class:"text-red-500 relative -top-1"},th=i.defineComponent({__name:"EditorFieldName",props:{fieldName:{},mode:{},disabled:{type:Boolean,default:!1},intent:{default:"primary"}},setup(t){const e=t,n=i.computed(()=>e.disabled&&e.mode!==De.EDITOR?`[${e.fieldName.label}]`:e.fieldName.label),r=i.computed(()=>e.mode===De.EDITOR?"":e.intent==="primary"?"border-ed-blue text-ed-blue":"border-[#FF3B30] text-[#FF3B30]");return(o,s)=>(i.openBlock(),i.createElementBlock("p",null,[i.createElementVNode("span",{class:i.normalizeClass(i.unref(Ae)("font-bold",o.mode!==i.unref(De).EDITOR&&"rounded-full border text-xs py-[2px] px-1 inline-block font-normal",o.disabled&&"!border-transparent px-0",i.unref(r)))},i.toDisplayString(i.unref(n)),3),i.withDirectives(i.createElementVNode("span",FZ," •",512),[[i.vShow,o.fieldName.isRequired]])]))}}),$Z=i.defineComponent({__name:"EditorCommentMoblie",props:{isMobile:{type:Boolean},superTextArea:{default:{view:!0,button:!0}},mode:{},modelValue:{default:""},comment:{},commentCuesheet:{},hideComment:{type:Boolean},disableSuperInput:{type:Boolean,default:!1},fontSizeDefault:{},fontFamilyDefault:{},isOpenSuperView:{type:Boolean,default:!0},output:{default:"html"},dark:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:!1},isShowFormatControlBar:{type:Boolean},titleBarComment:{},titleBarContent:{},fieldNameComment:{},fieldNameCommentCuesheet:{},fieldNameContent:{},fieldNameSuper:{},isScreenSplit:{},isShowLineNumber:{type:Boolean},hideMenubar:{type:Boolean},disableBubble:{type:Boolean,default:!1},hideBubble:{type:Boolean,default:!1},maxWidth:{default:void 0},minHeight:{default:600},maxHeight:{default:void 0},height:{},extensions:{default:()=>[]},editorClass:{default:void 0},contentClass:{default:void 0},isCompare:{type:Boolean},autoHeight:{type:Boolean},textAlert:{},toolBarClass:{},readonly:{type:Boolean},canEditSuperReadOnly:{type:Boolean},autoFocus:{type:Boolean,default:!0},superPreviewCustomClass:{},minChar:{}},emits:["enter","change","update:modelValue","update:comment","onFocusEditor","changed:selection","setEditorSelected","onBlurEditor","lineFocus"],setup(t,{expose:e,emit:n}){const r=t,o=n,s=i.useAttrs(),a=vn(),{isReady:l,editor:u,updateEditorState:c,checkSpellStore:f}=a,p=i.inject("isEditable",i.ref(!0)),m=at.useDark(),g=i.computed(()=>r.mode===De.EDITOR),b=new No({enablePasteRules:!1,enableInputRules:!1,content:Pn(r.modelValue,r.disabled),editorProps:{attributes:{id:nr.COMMENT,[nr.DISABLE_SUPER_INPUT]:`${r.disableSuperInput}`},handleKeyDown:it.throttle((C,E)=>E.key==="Enter"&&s.enter&&!E.shiftKey?(o("enter"),!0):!1,ko),transformPastedHTML:C=>(C=C.replace(/\s*style="[^"]*"/g,""),C)},onCreate:({editor:C})=>{c(C)},onUpdate:it.throttle(({editor:C})=>{l.value=!0;const E=w(C,r.output);o("update:modelValue",E),o("change",{editor:C,output:E}),c(C)},ko),extensions:it.uniqBy(it.reverse(i.unref(r.extensions)),"name"),editable:p.value,onFocus:()=>{y()},onBlur:({editor:C,event:E})=>{o("onBlurEditor",E)}});function y(){o("setEditorSelected",b)}y();function w(C,E){if(!C)return"";if(C.isEmpty)return E==="json"?{}:"";switch(E){case"html":return C.getHTML();case"json":return C.getJSON();case"text":return C.getText();default:return""}}function x(C){return C.every(E=>b==null?void 0:b.extensionManager.extensions.find(_=>_.name===E))}i.watch(()=>r.dark,()=>at.useToggle(m)),i.watch(()=>f.languages,()=>{b.commands.checkSpelling()}),i.watch(()=>r.modelValue,C=>{if(!b||it.isEqual(w(b,r.output),C))return;const{from:E,to:_}=b.state.selection;b.commands.setTextSelection({from:E,to:_}),b.commands.setContent(Pn(C,r.disabled),!1)},{deep:!0}),i.watch(()=>u.value,()=>{u.value&&u.value.on("selectionUpdate",({editor:C})=>{o("changed:selection",{editor:C})})}),i.watch(()=>r.disableSuperInput,()=>{const C=document.getElementById(nr.COMMENT);C==null||C.setAttribute(nr.DISABLE_SUPER_INPUT,`${r.disableSuperInput}`)}),i.onUnmounted(()=>b==null?void 0:b.destroy()),Gu(Eu.SAVE,()=>{localStorage.setItem("comment",w(b,"html"))});function S(C){b.commands.focus("end"),y()}return bc(b),i.onMounted(()=>{var C;r.autoFocus&&S(r.mode),(C=b==null?void 0:b.commands)!=null&&C.setIsMobile&&b.commands.setIsMobile(!0)}),i.watch(()=>r.mode,C=>{r.autoFocus&&S()}),i.watch(()=>p.value,C=>{var E;b==null||b.setEditable(C),(E=b==null?void 0:b.commands)!=null&&E.setIsEnableSuggestion&&b.commands.setIsEnableSuggestion(C)},{immediate:!0}),e({editor:b}),(C,E)=>{var M;const _=Np,T=Qp,A=Zp,L=Of,D=th;return i.openBlock(),i.createElementBlock(i.Fragment,null,[!C.hideBubble&&!C.disabled&&i.unref(p)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[x([i.unref(ac)])?(i.openBlock(),i.createBlock(_,{key:0,editor:i.unref(b)},null,8,["editor"])):i.createCommentVNode("",!0),x([i.unref(sa)])?(i.openBlock(),i.createBlock(T,{key:1,editor:i.unref(b)},null,8,["editor"])):i.createCommentVNode("",!0),x([i.unref(us)])?(i.openBlock(),i.createBlock(A,{key:2,editor:i.unref(b)},null,8,["editor"])):i.createCommentVNode("",!0),x([i.unref(cs),i.unref(ds)])?(i.openBlock(),i.createBlock(L,{key:3,editor:i.unref(b)},null,8,["editor"])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),(M=C.fieldNameComment)!=null&&M.label?(i.openBlock(),i.createBlock(D,{key:1,"field-name":C.fieldNameComment,mode:C.mode,disabled:C.disabled,class:"mb-1"},null,8,["field-name","mode","disabled"])):i.createCommentVNode("",!0),i.createVNode(qb,{editor:i.unref(b),mode:C.mode,"disable-super-input":C.disableSuperInput},{default:i.withCtx(()=>[i.createVNode(i.unref(Eo),{id:"editor-panel",editor:i.unref(b),spellcheck:"true",class:i.normalizeClass(["flex-1 flex-col relative",!i.unref(g)&&"[&_*:not(.super-text)]:!text-inherit [&_*]:!no-underline [&_*]:!font-normal"])},null,8,["editor","class"])]),_:1},8,["editor","mode","disable-super-input"])],64)}}}),Kb={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(t,{emit:e}){const n=e,r=t,o=i.useSlots(),s=i.ref([]),a=i.computed(()=>s.value.reduce((H,Y)=>(H[~~Y.id]=Y)&&H,{})),l=i.computed(()=>s.value.length),u=i.ref(null),c=i.ref(!1),f=i.ref({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),p=i.ref({splitter:null,timeoutId:null}),m=i.computed(()=>({[`splitpanes splitpanes--${r.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":f.value.dragging})),g=()=>{document.addEventListener("mousemove",w,{passive:!1}),document.addEventListener("mouseup",x),"ontouchstart"in window&&(document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",x))},b=()=>{document.removeEventListener("mousemove",w,{passive:!1}),document.removeEventListener("mouseup",x),"ontouchstart"in window&&(document.removeEventListener("touchmove",w,{passive:!1}),document.removeEventListener("touchend",x))},y=(H,Y)=>{const ae=H.target.closest(".splitpanes__splitter");if(ae){const{left:ue,top:he}=ae.getBoundingClientRect(),{clientX:J,clientY:ve}="ontouchstart"in window&&H.touches?H.touches[0]:H;f.value.cursorOffset=r.horizontal?ve-he:J-ue}g(),f.value.mouseDown=!0,f.value.activeSplitter=Y},w=H=>{f.value.mouseDown&&(H.preventDefault(),f.value.dragging=!0,requestAnimationFrame(()=>{A(_(H)),Se("resize",{event:H},!0)}))},x=H=>{f.value.dragging&&(window.getSelection().removeAllRanges(),Se("resized",{event:H},!0)),f.value.mouseDown=!1,f.value.activeSplitter=null,setTimeout(()=>{f.value.dragging=!1,b()},100)},S=(H,Y)=>{"ontouchstart"in window&&(H.preventDefault(),p.value.splitter===Y?(clearTimeout(p.value.timeoutId),p.value.timeoutId=null,C(H,Y),p.value.splitter=null):(p.value.splitter=Y,p.value.timeoutId=setTimeout(()=>p.value.splitter=null,500))),f.value.dragging||Se("splitter-click",{event:H,index:Y},!0)},C=(H,Y)=>{if(Se("splitter-dblclick",{event:H,index:Y},!0),r.maximizePanes){let ae=0;s.value=s.value.map((ue,he)=>(ue.size=he===Y?ue.max:ue.min,he!==Y&&(ae+=ue.min),ue)),s.value[Y].size-=ae,Se("pane-maximize",{event:H,index:Y,pane:s.value[Y]}),Se("resized",{event:H,index:Y},!0)}},E=(H,Y)=>{Se("pane-click",{event:H,index:a.value[Y].index,pane:a.value[Y]})},_=H=>{const Y=u.value.getBoundingClientRect(),{clientX:ae,clientY:ue}="ontouchstart"in window&&H.touches?H.touches[0]:H;return{x:ae-(r.horizontal?0:f.value.cursorOffset)-Y.left,y:ue-(r.horizontal?f.value.cursorOffset:0)-Y.top}},T=H=>{H=H[r.horizontal?"y":"x"];const Y=u.value[r.horizontal?"clientHeight":"clientWidth"];return r.rtl&&!r.horizontal&&(H=Y-H),H*100/Y},A=H=>{const Y=f.value.activeSplitter;let ae={prevPanesSize:D(Y),nextPanesSize:M(Y),prevReachedMinPanes:0,nextReachedMinPanes:0};const ue=0+(r.pushOtherPanes?0:ae.prevPanesSize),he=100-(r.pushOtherPanes?0:ae.nextPanesSize),J=Math.max(Math.min(T(H),he),ue);let ve=[Y,Y+1],Me=s.value[ve[0]]||null,Ue=s.value[ve[1]]||null;const N=Me.max<100&&J>=Me.max+ae.prevPanesSize,ke=Ue.max<100&&J<=100-(Ue.max+M(Y+1));if(N||ke){N?(Me.size=Me.max,Ue.size=Math.max(100-Me.max-ae.prevPanesSize-ae.nextPanesSize,0)):(Me.size=Math.max(100-Ue.max-ae.prevPanesSize-M(Y+1),0),Ue.size=Ue.max);return}if(r.pushOtherPanes){const V=L(ae,J);if(!V)return;({sums:ae,panesToResize:ve}=V),Me=s.value[ve[0]]||null,Ue=s.value[ve[1]]||null}Me!==null&&(Me.size=Math.min(Math.max(J-ae.prevPanesSize-ae.prevReachedMinPanes,Me.min),Me.max)),Ue!==null&&(Ue.size=Math.min(Math.max(100-J-ae.nextPanesSize-ae.nextReachedMinPanes,Ue.min),Ue.max))},L=(H,Y)=>{const ae=f.value.activeSplitter,ue=[ae,ae+1];return Y<H.prevPanesSize+s.value[ue[0]].min&&(ue[0]=$(ae).index,H.prevReachedMinPanes=0,ue[0]<ae&&s.value.forEach((he,J)=>{J>ue[0]&&J<=ae&&(he.size=he.min,H.prevReachedMinPanes+=he.min)}),H.prevPanesSize=D(ue[0]),ue[0]===void 0)?(H.prevReachedMinPanes=0,s.value[0].size=s.value[0].min,s.value.forEach((he,J)=>{J>0&&J<=ae&&(he.size=he.min,H.prevReachedMinPanes+=he.min)}),s.value[ue[1]].size=100-H.prevReachedMinPanes-s.value[0].min-H.prevPanesSize-H.nextPanesSize,null):Y>100-H.nextPanesSize-s.value[ue[1]].min&&(ue[1]=j(ae).index,H.nextReachedMinPanes=0,ue[1]>ae+1&&s.value.forEach((he,J)=>{J>ae&&J<ue[1]&&(he.size=he.min,H.nextReachedMinPanes+=he.min)}),H.nextPanesSize=M(ue[1]-1),ue[1]===void 0)?(H.nextReachedMinPanes=0,s.value.forEach((he,J)=>{J<l.value-1&&J>=ae+1&&(he.size=he.min,H.nextReachedMinPanes+=he.min)}),s.value[ue[0]].size=100-H.prevPanesSize-M(ue[0]-1),null):{sums:H,panesToResize:ue}},D=H=>s.value.reduce((Y,ae,ue)=>Y+(ue<H?ae.size:0),0),M=H=>s.value.reduce((Y,ae,ue)=>Y+(ue>H+1?ae.size:0),0),$=H=>[...s.value].reverse().find(Y=>Y.index<H&&Y.size>Y.min)||{},j=H=>s.value.find(Y=>Y.index>H+1&&Y.size>Y.min)||{},X=()=>{var H;const Y=Array.from(((H=u.value)==null?void 0:H.children)||[]);for(const ae of Y){const ue=ae.classList.contains("splitpanes__pane"),he=ae.classList.contains("splitpanes__splitter");!ue&&!he&&(ae.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},se=(H,Y,ae=!1)=>{const ue=H-1,he=document.createElement("div");he.classList.add("splitpanes__splitter"),ae||(he.onmousedown=J=>y(J,ue),typeof window<"u"&&"ontouchstart"in window&&(he.ontouchstart=J=>y(J,ue)),he.onclick=J=>S(J,ue+1)),he.ondblclick=J=>C(J,ue+1),Y.parentNode.insertBefore(he,Y)},W=H=>{H.onmousedown=void 0,H.onclick=void 0,H.ondblclick=void 0,H.remove()},z=()=>{var H;const Y=Array.from(((H=u.value)==null?void 0:H.children)||[]);for(const ue of Y)ue.className.includes("splitpanes__splitter")&&W(ue);let ae=0;for(const ue of Y)ue.className.includes("splitpanes__pane")&&(!ae&&r.firstSplitter?se(ae,ue,!0):ae&&se(ae,ue),ae++)},R=({uid:H,...Y})=>{const ae=a.value[H];for(const[ue,he]of Object.entries(Y))ae[ue]=he},q=H=>{var Y;let ae=-1;Array.from(((Y=u.value)==null?void 0:Y.children)||[]).some(ue=>(ue.className.includes("splitpanes__pane")&&ae++,ue.isSameNode(H.el))),s.value.splice(ae,0,{...H,index:ae}),s.value.forEach((ue,he)=>ue.index=he),c.value&&i.nextTick(()=>{z(),te({addedPane:s.value[ae]}),Se("pane-add",{pane:s.value[ae]})})},Z=H=>{const Y=s.value.findIndex(ue=>ue.id===H);s.value[Y].el=null;const ae=s.value.splice(Y,1)[0];s.value.forEach((ue,he)=>ue.index=he),i.nextTick(()=>{z(),Se("pane-remove",{pane:ae}),te({removedPane:{...ae}})})},te=(H={})=>{!H.addedPane&&!H.removedPane?ye():s.value.some(Y=>Y.givenSize!==null||Y.min||Y.max<100)?Ce(H):ne(),c.value&&Se("resized")},ne=()=>{const H=100/l.value;let Y=0;const ae=[],ue=[];for(const he of s.value)he.size=Math.max(Math.min(H,he.max),he.min),Y-=he.size,he.size>=he.max&&ae.push(he.id),he.size<=he.min&&ue.push(he.id);Y>.1&&He(Y,ae,ue)},ye=()=>{let H=100;const Y=[],ae=[];let ue=0;for(const J of s.value)H-=J.size,J.givenSize!==null&&ue++,J.size>=J.max&&Y.push(J.id),J.size<=J.min&&ae.push(J.id);let he=100;if(H>.1){for(const J of s.value)J.givenSize===null&&(J.size=Math.max(Math.min(H/(l.value-ue),J.max),J.min)),he-=J.size;he>.1&&He(he,Y,ae)}},Ce=({addedPane:H,removedPane:Y}={})=>{let ae=100/l.value,ue=0;const he=[],J=[];((H==null?void 0:H.givenSize)??null)!==null&&(ae=(100-H.givenSize)/(l.value-1));for(const ve of s.value)ue-=ve.size,ve.size>=ve.max&&he.push(ve.id),ve.size<=ve.min&&J.push(ve.id);if(!(Math.abs(ue)<.1)){for(const ve of s.value)(H==null?void 0:H.givenSize)!==null&&(H==null?void 0:H.id)===ve.id||(ve.size=Math.max(Math.min(ae,ve.max),ve.min)),ue-=ve.size,ve.size>=ve.max&&he.push(ve.id),ve.size<=ve.min&&J.push(ve.id);ue>.1&&He(ue,he,J)}},He=(H,Y,ae)=>{let ue;H>0?ue=H/(l.value-Y.length):ue=H/(l.value-ae.length),s.value.forEach((he,J)=>{if(H>0&&!Y.includes(he.id)){const ve=Math.max(Math.min(he.size+ue,he.max),he.min),Me=ve-he.size;H-=Me,he.size=ve}else if(!ae.includes(he.id)){const ve=Math.max(Math.min(he.size+ue,he.max),he.min),Me=ve-he.size;H-=Me,he.size=ve}}),Math.abs(H)>.1&&i.nextTick(()=>{c.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Se=(H,Y=void 0,ae=!1)=>{const ue=(Y==null?void 0:Y.index)??f.value.activeSplitter??null;n(H,{...Y,...ue!==null&&{index:ue},...ae&&ue!==null&&{prevPane:s.value[ue-(r.firstSplitter?1:0)],nextPane:s.value[ue+(r.firstSplitter?0:1)]},panes:s.value.map(he=>({min:he.min,max:he.max,size:he.size}))})};i.watch(()=>r.firstSplitter,()=>z()),i.onMounted(()=>{X(),z(),te(),Se("ready"),c.value=!0}),i.onBeforeUnmount(()=>c.value=!1);const je=()=>{var H;return i.h("div",{ref:u,class:m.value},(H=o.default)==null?void 0:H.call(o))};return i.provide("panes",s),i.provide("indexedPanes",a),i.provide("horizontal",i.computed(()=>r.horizontal)),i.provide("requestUpdate",R),i.provide("onPaneAdd",q),i.provide("onPaneRemove",Z),i.provide("onPaneClick",E),(H,Y)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(je)))}},ha={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(t){var e;const n=t,r=i.inject("requestUpdate"),o=i.inject("onPaneAdd"),s=i.inject("horizontal"),a=i.inject("onPaneRemove"),l=i.inject("onPaneClick"),u=(e=i.getCurrentInstance())==null?void 0:e.uid,c=i.inject("indexedPanes"),f=i.computed(()=>c.value[u]),p=i.ref(null),m=i.computed(()=>{const w=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(w,b.value),g.value)}),g=i.computed(()=>{const w=parseFloat(n.minSize);return isNaN(w)?0:w}),b=i.computed(()=>{const w=parseFloat(n.maxSize);return isNaN(w)?100:w}),y=i.computed(()=>{var w;return`${s.value?"height":"width"}: ${(w=f.value)==null?void 0:w.size}%`});return i.watch(()=>m.value,w=>r({uid:u,size:w})),i.watch(()=>g.value,w=>r({uid:u,min:w})),i.watch(()=>b.value,w=>r({uid:u,max:w})),i.onMounted(()=>{o({id:u,el:p.value,min:g.value,max:b.value,givenSize:n.size===void 0?null:m.value,size:m.value})}),i.onBeforeUnmount(()=>a(u)),(w,x)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"paneEl",ref:p,class:"splitpanes__pane",onClick:x[0]||(x[0]=S=>i.unref(l)(S,w._.uid)),style:i.normalizeStyle(y.value)},[i.renderSlot(w.$slots,"default")],4))}},Gb=i.defineComponent({__name:"ToolbarTitle",props:{titleBar:{},customClass:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("h3",{class:i.normalizeClass(i.unref(Ae)("rounded-[5px] px-2.5 py-[5px] min-h-[32px] flex items-center bg-[#E0E0E0]",[e.customClass],[e.titleBar.bgClass]))},i.toDisplayString(e.titleBar.title),3))}});function nh(){let e=null,n=!1;const r=i.ref(!1),o=i.ref(0),s=i.ref(0),a=i.ref(50),l=i.ref(50);let u=[];function c(x,S){n=!1,e=setTimeout(()=>{n=!0},200);const C=S.getBoundingClientRect();o.value=C.left+C.width/2,s.value=C.top+C.height/2}function f(x){clearTimeout(e),e=null,n||(r.value=!0),n=!1}function p(){const x=document.querySelectorAll(".splitpanes__splitter");u=Array.from(x),u.forEach(S=>{S.addEventListener("mousedown",C=>c(C,S)),S.addEventListener("mouseup",f),S.addEventListener("touchstart",C=>c(C,S)),S.addEventListener("touchend",f)})}function m(){u.forEach(x=>{x.removeEventListener("mouseup",f),x.removeEventListener("touchend",f),x.removeEventListener("mousedown",S=>c(S,x)),x.removeEventListener("touchstart",S=>c(S,x))}),u=[]}const g=i.ref([{name:"paneUp",selected:!1},{name:"paneMiddle",selected:!0},{name:"paneDown",selected:!1}]),b=i.ref({name:"paneMiddle",selected:!0});function y(x){b.value=x}async function w(x){y(x),r.value=!1,await i.nextTick(),x.name==="paneUp"?(a.value=0,l.value=100):x.name==="paneDown"?(a.value=100,l.value=0):(a.value=50,l.value=50)}return{showMenuSplitter:r,menuX:o,menuY:s,commentSize:a,contentSize:l,setupSplitterListeners:p,removeSplitterListeners:m,iconSplitters:g,iconSplitSelected:b,setSelectedIconSplit:y,clickIconSplitter:w}}const Xb=i.defineComponent({__name:"ScreenSplitToastPopup",props:{menuX:{},menuY:{},iconSplitSelected:{}},emits:["on-change-split"],setup(t,{emit:e}){const{iconSplitters:n}=nh(),r=t,o=e,s=i.computed(()=>({top:`${r.menuY}px`,left:`${r.menuX}px`,transform:"translate(-50%, -50%)"}));return(a,l)=>(i.openBlock(),i.createElementBlock("div",{style:i.normalizeStyle(i.unref(s)),class:"fixed bg-[#424242]/40 text-white/40 rounded-[21px] w-[132px] h-[37px] flex items-center justify-center gap-6 [&>svg]:cursor-pointer"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(n),u=>(i.openBlock(),i.createBlock(i.unref(jt),{key:u.name,name:u.name,class:i.normalizeClass({"text-black/80":u.name===a.iconSplitSelected.name}),onClick:c=>o("on-change-split",u)},null,8,["name","class","onClick"]))),128))],4))}});class zZ{isNativeWebViewAvailable(){return window.ReactNativeWebView!==void 0}getDevicePlatform(){var r;if(!this.isNativeWebViewAvailable())return;if(typeof window.webkit=="object"&&typeof((r=window.webkit)==null?void 0:r.messageHandlers)=="object")return S0.IOS;const n=navigator.userAgent.toLowerCase();if(n.includes("android"))return S0.ANDROID;if(n.includes("iphone")||n.includes("ipad")||n.includes("ipod"))return S0.IOS}sendToNative(e,n){if(window.ReactNativeWebView){const r={type:e,data:n};window.ReactNativeWebView.postMessage(JSON.stringify(r)),console.log(`Sent message to native: ${e}`)}else console.log("ReactNativeWebView not available")}receiveDataFromNative(e,n){const r=window.receiveDriverData;window.receiveDriverData=o=>{try{const s=JSON.parse(o);s.type===e?(console.log(`Received data from native ${e}`),n(s.data)):r&&r(o)}catch(s){console.log("Error parsing data from native",s)}}}}const vc=i.defineComponent({__name:"CoreEditorMoblie",props:{isMobile:{type:Boolean},superTextArea:{default:{view:!0,button:!0}},mode:{},modelValue:{default:""},comment:{default:""},commentCuesheet:{},hideComment:{type:Boolean,default:!1},disableSuperInput:{type:Boolean,default:!1},fontSizeDefault:{default:"12px"},fontFamilyDefault:{default:""},isOpenSuperView:{type:Boolean},output:{default:"html"},dark:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:!1},isShowFormatControlBar:{type:Boolean,default:!1},titleBarComment:{default:null},titleBarContent:{default:null},fieldNameComment:{default:null},fieldNameCommentCuesheet:{},fieldNameContent:{default:null},fieldNameSuper:{},isScreenSplit:{default:!1},isShowLineNumber:{type:Boolean,default:!1},hideMenubar:{type:Boolean},disableBubble:{type:Boolean,default:!1},hideBubble:{type:Boolean,default:!1},maxWidth:{default:void 0},minHeight:{default:200},maxHeight:{default:void 0},height:{default:void 0},extensions:{default:()=>[]},editorClass:{default:void 0},contentClass:{default:void 0},isCompare:{type:Boolean},autoHeight:{type:Boolean},textAlert:{},toolBarClass:{default:void 0},readonly:{type:Boolean,default:!1},canEditSuperReadOnly:{type:Boolean},autoFocus:{type:Boolean,default:!0},superPreviewCustomClass:{},minChar:{}},emits:["enter","change","update:modelValue","update:comment","onFocusEditor","changed:selection","setEditorSelected","onBlurEditor","lineFocus"],setup(t,{expose:e,emit:n}){const r=t,o=n,s=new zZ;i.provide("isMobile",!0);const a=at.useEventBus(ir.INCREASE_DECREASE_FONTSIZE),l=i.useAttrs(),u=vn(),{state:c,isFullscreen:f,isReady:p,editor:m,updateEditorState:g,checkSpellStore:b,setImageAttachment:y}=u,w=i.computed(()=>r.mode===De.EDITOR),x=i.ref(!r.disabled&&!r.readonly);i.provide("isEditable",x);const S=i.computed(()=>[...c.extensions,...it.differenceBy(r.extensions,c.extensions,"name")].map((N,ke)=>N.configure({sort:ke}))),C=i.ref(r.fontSizeDefault),E=i.ref(r.fontFamilyDefault);i.provide("fontSize",C),i.provide("fontFamily",E);const _=i.computed(()=>({fontFamily:E.value,fontSize:C.value})),T=i.ref(),{height:A}=at.useWindowSize(),L=i.computed(()=>{var ke;if(z.value)return{bottom:"15px"};const N=((ke=T.value)==null?void 0:ke.getBoundingClientRect().bottom)||0;return{bottom:`${A.value-N+10}px`}}),D=N=>{const ke=parseInt(C.value||"12px"),V=N?ke+2:ke-2;C.value=V+"px"};i.onBeforeMount(()=>{a.on(D)}),i.onBeforeUnmount(()=>{a.off(D)});const M=i.computed(()=>({...i.unref(f)?{height:"100%"}:{minHeight:r.minHeight?an(r.minHeight):void 0,maxHeight:r.maxHeight?an(r.maxHeight):void 0,height:r.height?an(r.height):void 0},maxWidth:an(r.maxWidth),width:r.maxWidth?"100%":void 0,margin:r.maxWidth?"0 auto":void 0})),$=new No({enablePasteRules:!1,enableInputRules:!1,content:Pn(r.modelValue,r.disabled,r.mode),editorProps:{handleKeyDown:it.throttle((N,ke)=>ke.key==="Enter"&&l.enter&&!ke.shiftKey?(o("enter"),!0):!1,ko),transformPastedHTML:N=>(N=N.replace(/\s*style="[^"]*"/g,""),N),handlePaste(N,ke){var me;if(r.mode!==De.PLAIN_TEXT)return!1;ke.preventDefault();const V=((me=ke.clipboardData)==null?void 0:me.getData("text/plain"))||"",{tr:P,selection:ie}=N.state;return N.dispatch(P.insertText(V,ie.from)),!0}},onCreate:({editor:N})=>{g(N)},onUpdate:it.throttle(({editor:N})=>{p.value=!0;const ke=ne(N,r.output);o("update:modelValue",ke),o("change",{editor:N,output:ke}),g(N),j(N)},ko),extensions:it.uniqBy(it.reverse(i.unref(S)),"name"),editable:x.value,onFocus:()=>{Z()},parseOptions:{preserveWhitespace:"full"}});function j(N){const ke=[];N.state.doc.descendants(V=>{V.type.name==="image"&&ke.push({id:V.attrs.id,src:V.attrs.src})}),y(ke)}const X=i.ref(),se=i.ref(),W=i.ref(!0),z=i.ref(!1);function R(){s.isNativeWebViewAvailable()&&(s.receiveDataFromNative("keyboardDidShow",N=>{z.value=!0}),s.receiveDataFromNative("keyboardDidHide",N=>{z.value=!1}))}function q(N){const ke=document.querySelectorAll('[contenteditable="true"]:not(.tiptap), .simple-editor, input, textarea'),V=Array.from(ke).some(P=>P.contains(N.target));if(N.type==="focusout"){W.value=!0;return}W.value=!V}at.useEventListener(document,"focusin",q),at.useEventListener(document,"focusout",q),i.onMounted(()=>{X.value=$,R()});function Z(N){X.value=N??$}const te=i.computed(()=>{const N=X.value.view.dom.dataset.disableSuperInput&&JSON.parse(X.value.view.dom.dataset.disableSuperInput);return X.value.storage.superText.isShowSuperInputMoblie&&!N});function ne(N,ke){if(!N)return"";if(N.isEmpty)return ke==="json"?{}:"";if(r.mode===De.PLAIN_TEXT)return N.getText({blockSeparator:`
289
- `});switch(ke){case"html":return N.getHTML();case"json":return N.getJSON();case"text":return N.getText({blockSeparator:`
290
- `});default:return""}}function ye(N){return N.every(ke=>$==null?void 0:$.extensionManager.extensions.find(V=>V.name===ke))}i.watch(()=>b.languages,()=>{$.commands.checkSpelling()}),i.watch(()=>r.modelValue,N=>{if(!$||it.isEqual(ne($,r.output),N))return;const{from:ke,to:V}=$.state.selection;$.commands.setTextSelection({from:ke,to:V}),$.commands.setContent(Pn(N,r.disabled,r.mode),!1)},{deep:!0}),i.watch([()=>r.disabled,()=>r.readonly],()=>{x.value=!r.disabled&&!r.readonly},{immediate:!0}),i.watch(()=>x.value,N=>{var ke;$==null||$.setEditable(N),(ke=$==null?void 0:$.commands)!=null&&ke.setIsEnableSuggestion&&$.commands.setIsEnableSuggestion(N)},{immediate:!0}),i.watch(()=>m.value,()=>{m.value&&m.value.on("selectionUpdate",({editor:N})=>{o("changed:selection",{editor:N})})}),i.onUnmounted(()=>{var N;$==null||$.destroy(),(N=X.value)==null||N.destroy()}),Gu(Eu.SAVE,()=>{localStorage.setItem("content",ne($,"html"))});const Ce=N=>{var V;const ke=X.value??$;if(ke){const{from:P}=ke.view.state.selection;ke.commands.insertContentAt(P,{type:"superText",attrs:{"data-id":ai(6),"data-text":N}})}(V=X.value)==null||V.commands.toggleSuperInputMoblie()},He=N=>{var V;const ke=X.value??$;if(ke){const{from:P}=ke.view.state.selection;ke.commands.insertContentAt(P,{type:"configPlan",attrs:{"data-id":ai(6),"data-text":N}})}(V=X.value)==null||V.commands.toggleConfigPlanInput()};function Se(N){N===De.STRAIGHT&&$.commands.focus("end"),N===De.EDITOR&&$.commands.focus("end")}i.onMounted(()=>{var N;r.autoFocus&&Se(r.mode),(N=$==null?void 0:$.commands)!=null&&N.setIsMobile&&$.commands.setIsMobile(!0)}),i.watch(()=>r.mode,N=>{r.autoFocus&&Se(N)});const{showMenuSplitter:je,menuX:H,menuY:Y,commentSize:ae,contentSize:ue,setupSplitterListeners:he,removeSplitterListeners:J,iconSplitSelected:ve,clickIconSplitter:Me}=nh();i.onMounted(()=>{he()}),i.onUnmounted(()=>{J()});const Ue=i.ref();return at.onClickOutside(Ue,N=>{je.value=!1}),bc($),e({editor:$}),(N,ke)=>{var We,ee,ge,ce,we;const V=Np,P=Qp,ie=Zp,me=Of,Le=qS,nt=LZ;return i.openBlock(),i.createElementBlock(i.Fragment,null,[X.value?(i.openBlock(),i.createElementBlock("div",{key:0,id:"vdc-editor",ref_key:"editorRef",ref:T,style:i.normalizeStyle(M.value),class:i.normalizeClass(i.unref(Ae)("vdc-editor moblie relative w-full flex flex-col",!r.height&&"flex-1",N.editorClass,N.disabled&&"disabled",N.mode!==i.unref(De).EDITOR&&"editor-line"))},[!N.hideBubble&&!N.disabled&&x.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[ye([i.unref(ac)])?(i.openBlock(),i.createBlock(V,{key:0,editor:i.unref($)},null,8,["editor"])):i.createCommentVNode("",!0),ye([i.unref(sa)])?(i.openBlock(),i.createBlock(P,{key:1,editor:i.unref($)},null,8,["editor"])):i.createCommentVNode("",!0),ye([i.unref(us)])?(i.openBlock(),i.createBlock(ie,{key:2,editor:i.unref($)},null,8,["editor"])):i.createCommentVNode("",!0),ye([i.unref(cs),i.unref(ds)])?(i.openBlock(),i.createBlock(me,{key:3,editor:i.unref($)},null,8,["editor"])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),N.hideToolbar?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(Le,{key:1,editor:X.value,mode:N.mode,disabled:N.disabled,class:i.normalizeClass(["mb-[3px]",N.toolBarClass]),"active-extensions":N.mode===i.unref(De).EDITOR?[lc]:void 0},null,8,["editor","mode","disabled","class","active-extensions"])),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createElementVNode("div",{class:"fixed left-5 right-5 z-[12]",style:i.normalizeStyle(L.value)},[N.isShowFormatControlBar?(i.openBlock(),i.createBlock(nt,{key:0,editor:X.value,mode:N.mode,disabled:!x.value||N.disabled,style:i.normalizeStyle({visibility:W.value?"visible":"hidden"})},null,8,["editor","mode","disabled","style"])):i.createCommentVNode("",!0)],4)])),i.createVNode(i.unref(Kb),{class:i.normalizeClass(i.unref(Ae)("flex-1 basis-0 flex flex-col [&_*]:!font-inherit [&_*]:!text-font-size-inherit",E.value&&"[&_*]:!font-inherit",C.value&&"[&_*]:!text-font-size-inherit")),style:i.normalizeStyle({..._.value}),horizontal:"",onReady:i.unref(he),onResized:i.unref(he)},{default:i.withCtx(()=>[(N.mode===i.unref(De).REPORT||N.mode===i.unref(De).EDITOR&&N.isScreenSplit)&&!N.hideComment?(i.openBlock(),i.createBlock(i.unref(ha),{key:0,size:i.unref(ae),class:"border-none p-0 flex flex-col"},{default:i.withCtx(()=>{var Ve;return[(Ve=N.titleBarComment)!=null&&Ve.title?(i.openBlock(),i.createBlock(Gb,{key:0,"title-bar":N.titleBarComment,class:"mb-[3px]"},null,8,["title-bar"])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(i.unref(Ae)("flex-1 !overflow-y-auto basis-0 flex h-full flex-col py-1.5 px-2.5 border border-ed-gray rounded-[5px] focus-within:border-ed-blue",N.disabled&&"border-transparent",W.value&&!z.value&&"pb-16",N.contentClass))},[i.createVNode($Z,{ref_key:"editorCommentRef",ref:se,mode:N.mode,extensions:N.extensions,"model-value":r.comment,disabled:r.disabled,"disable-super-input":N.disableSuperInput,"field-name-comment":N.fieldNameComment,"is-show-format-control-bar":N.isShowFormatControlBar,"auto-focus":N.autoFocus,"onUpdate:modelValue":ke[0]||(ke[0]=Qe=>o("update:comment",Qe)),onSetEditorSelected:Z},null,8,["mode","extensions","model-value","disabled","disable-super-input","field-name-comment","is-show-format-control-bar","auto-focus"])],2)]}),_:1},8,["size"])):i.createCommentVNode("",!0),i.createVNode(i.unref(ha),{size:i.unref(ue),class:"border-none p-0 flex flex-col"},{default:i.withCtx(()=>{var Ve,Qe;return[(Ve=N.titleBarContent)!=null&&Ve.title?(i.openBlock(),i.createBlock(Gb,{key:0,"title-bar":N.titleBarContent,class:"mb-[3px]"},null,8,["title-bar"])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(i.unref(Ae)("flex-1 !overflow-y-auto basis-0 flex flex-col py-1.5 px-2.5 border border-ed-gray rounded-[5px] focus-within:border-ed-blue",N.disabled&&"border-transparent",W.value&&!z.value&&"pb-16",N.contentClass))},[(Qe=N.fieldNameContent)!=null&&Qe.label?(i.openBlock(),i.createBlock(th,{key:0,"field-name":N.fieldNameContent,mode:N.mode,disabled:N.disabled,class:"mb-1"},null,8,["field-name","mode","disabled"])):i.createCommentVNode("",!0),i.createVNode(qb,{editor:i.unref($),mode:N.mode},{default:i.withCtx(()=>[i.createVNode(i.unref(Eo),{id:"editor-panel",editor:i.unref($),spellcheck:"true",class:i.normalizeClass(["flex-1 flex-col relative break-all",N.mode===i.unref(De).PLAIN_TEXT&&"plain-text",!w.value&&"[&_*:not(.super-text)]:!text-inherit [&_*]:!no-underline [&_*]:!font-normal"])},null,8,["editor","class"])]),_:1},8,["editor","mode"])],2)]}),_:1},8,["size"])]),_:1},8,["class","style","onReady","onResized"])],6)):i.createCommentVNode("",!0),i.unref(je)&&!N.disabled?(i.openBlock(),i.createBlock(Xb,{key:1,ref_key:"splitToastRef",ref:Ue,"icon-split-selected":i.unref(ve),"menu-x":i.unref(H),"menu-y":i.unref(Y),onOnChangeSplit:i.unref(Me)},null,8,["icon-split-selected","menu-x","menu-y","onOnChangeSplit"])):i.createCommentVNode("",!0),(We=X.value)!=null&&We.storage.superText?(i.openBlock(),i.createBlock(Ip,{key:2,open:te.value,"is-view-mode":!((ee=X.value)!=null&&ee.storage.superText.isShowSuperInputMoblie),editor:X.value,onClose:ke[1]||(ke[1]=Ve=>X.value.commands.toggleSuperInputMoblie()),onSave:Ce},null,8,["open","is-view-mode","editor"])):i.createCommentVNode("",!0),(ge=X.value)!=null&&ge.storage.configPlan?(i.openBlock(),i.createBlock(Ip,{key:3,open:(ce=X.value)==null?void 0:ce.storage.configPlan.isShowConfigPlanInput,"is-view-mode":!((we=X.value)!=null&&we.storage.configPlan.isShowConfigPlanInput),editor:X.value,title:N.$t("editor.configPlan"),onClose:ke[2]||(ke[2]=Ve=>X.value.commands.toggleConfigPlanInput()),onSave:He},null,8,["open","is-view-mode","editor","title"])):i.createCommentVNode("",!0)],64)}}}),HZ=i.defineComponent({__name:"ArticleEditor",props:{mode:{default:De.STRAIGHT},isMobile:{type:Boolean},superTextArea:{},modelValue:{},comment:{},commentCuesheet:{},hideComment:{type:Boolean},disableSuperInput:{type:Boolean},fontSizeDefault:{},fontFamilyDefault:{},isOpenSuperView:{type:Boolean},output:{},dark:{type:Boolean},disabled:{type:Boolean},hideToolbar:{type:Boolean},isShowFormatControlBar:{type:Boolean},titleBarComment:{},titleBarContent:{},fieldNameComment:{},fieldNameCommentCuesheet:{},fieldNameContent:{},fieldNameSuper:{},isScreenSplit:{},isShowLineNumber:{type:Boolean},hideMenubar:{type:Boolean},disableBubble:{type:Boolean},hideBubble:{type:Boolean},maxWidth:{},minHeight:{},maxHeight:{},height:{},extensions:{},editorClass:{},contentClass:{},isCompare:{type:Boolean},autoHeight:{type:Boolean},textAlert:{},toolBarClass:{},readonly:{type:Boolean},canEditSuperReadOnly:{type:Boolean},autoFocus:{type:Boolean,default:!0},superPreviewCustomClass:{},minChar:{}},setup(t){const e=t,n=vn();return i.onMounted(()=>{n.setTextAlert(e.textAlert||"")}),(r,o)=>e.isMobile?(i.openBlock(),i.createBlock(vc,i.mergeProps({key:1},e,{"onUpdate:modelValue":o[2]||(o[2]=s=>r.$emit("update:modelValue",s)),"onUpdate:comment":o[3]||(o[3]=s=>r.$emit("update:comment",s))}),null,16)):(i.openBlock(),i.createBlock(eh,i.mergeProps({key:0},e,{"onUpdate:modelValue":o[0]||(o[0]=s=>r.$emit("update:modelValue",s)),"onUpdate:comment":o[1]||(o[1]=s=>r.$emit("update:comment",s))}),null,16))}}),UZ=i.defineComponent({__name:"DigitalNewsEditor",props:{mode:{default:De.EDITOR},isMobile:{type:Boolean},superTextArea:{},modelValue:{},comment:{},commentCuesheet:{},hideComment:{type:Boolean},disableSuperInput:{type:Boolean},fontSizeDefault:{},fontFamilyDefault:{},isOpenSuperView:{type:Boolean},output:{},dark:{type:Boolean},disabled:{type:Boolean},hideToolbar:{type:Boolean},isShowFormatControlBar:{type:Boolean},titleBarComment:{},titleBarContent:{},fieldNameComment:{},fieldNameCommentCuesheet:{},fieldNameContent:{},fieldNameSuper:{},isScreenSplit:{},isShowLineNumber:{type:Boolean},hideMenubar:{type:Boolean},disableBubble:{type:Boolean},hideBubble:{type:Boolean},maxWidth:{},minHeight:{},maxHeight:{},height:{},extensions:{},editorClass:{},contentClass:{},isCompare:{type:Boolean},autoHeight:{type:Boolean},textAlert:{},toolBarClass:{},readonly:{type:Boolean},canEditSuperReadOnly:{type:Boolean},autoFocus:{type:Boolean,default:!0},superPreviewCustomClass:{},minChar:{}},setup(t){const e=t;return(n,r)=>{const o=eh,s=vc;return e.isMobile?(i.openBlock(),i.createBlock(s,i.mergeProps({key:1},e,{"onUpdate:modelValue":r[1]||(r[1]=a=>n.$emit("update:modelValue",a)),"onUpdate:comment":r[2]||(r[2]=a=>n.$emit("update:comment",a))}),null,16)):(i.openBlock(),i.createBlock(o,i.mergeProps({key:0},e,{"onUpdate:modelValue":r[0]||(r[0]=a=>n.$emit("update:modelValue",a))}),null,16))}}});var KS={exports:{}};(function(t){(function(){function e(W){return W===">"}function n(W){return W==="<"}function r(W){return/^\s+$/.test(W)}function o(W){var z=W.match(/^\s*<([^!>][^>]*)>\s*$/);return!!z&&z[1].trim().split(" ")[0]}function s(W){return!o(W)}function a(W){return/^<!--/.test(W)}function l(W){return/--\>$/.test(W)}var u,c=new RegExp("^<(iframe|object|math|svg|script|video|head|style|a)");function f(W){var z=u.exec(W);return z&&z[1]}function p(W,z){return W.substring(W.length-z.length-2)==="</"+z}function m(W){return/^\s*<[^>]+\/>\s*$/.test(W)}function g(W){var z=/^<img[\s>]/.test(W);return z||s(W)||f(W)||m(W)}function b(W){return{string:W,key:x(W)}}function y(W,z,R,q){this.segment=q,this.length=R,this.startInBefore=W+q.beforeIndex,this.startInAfter=z+q.afterIndex,this.endInBefore=this.startInBefore+this.length-1,this.endInAfter=this.startInAfter+this.length-1,this.segmentStartInBefore=W,this.segmentStartInAfter=z,this.segmentEndInBefore=this.segmentStartInBefore+this.length-1,this.segmentEndInAfter=this.segmentStartInAfter+this.length-1}function w(W){for(var z="char",R="",q="",Z=[],te=0;te<W.length;te++){var ne=W[te];switch(z){case"tag":var ye=f(R);ye?(z="atomic_tag",q=ye,R+=ne):a(R)?(z="html_comment",R+=ne):e(ne)?(R+=">",Z.push(b(R)),R="",r(ne)?z="whitespace":z="char"):R+=ne;break;case"atomic_tag":e(ne)&&p(R,q)?(R+=">",Z.push(b(R)),R="",q="",z="char"):R+=ne;break;case"html_comment":R+=ne,l(R)&&(R="",z="char");break;case"char":n(ne)?(R&&Z.push(b(R)),R="<",z="tag"):/\s/.test(ne)?(R&&Z.push(b(R)),R=ne,z="whitespace"):/[\w\d\#@]/.test(ne)?R+=ne:/&/.test(ne)?(R&&Z.push(b(R)),R=ne):(R+=ne,Z.push(b(R)),R="");break;case"whitespace":n(ne)?(R&&Z.push(b(R)),R="<",z="tag"):r(ne)?R+=ne:(R&&Z.push(b(R)),R=ne,z="char");break;default:throw new Error("Unknown mode "+z)}}return R&&Z.push(b(R)),Z}function x(W){var z=/^<img.*src=['"]([^"']*)['"].*>$/.exec(W);if(z)return'<img src="'+z[1]+'">';var R=/^<a.*href=['"]([^"']*)['"]/.exec(W);if(R)return'<a href="'+R[1]+'"></a>';var q=/^<object.*data=['"]([^"']*)['"]/.exec(W);if(q)return'<object src="'+q[1]+'"></object>';if(/^<(svg|math|video)[\s>]/.test(W)){var Z=W.indexOf('data-uuid="');if(Z!==-1){var te=W.slice(0,Z),ne=W.slice(Z+44);return te+ne}else return W}var ye=/^<iframe.*src=['"]([^"']*)['"].*>/.exec(W);if(ye)return'<iframe src="'+ye[1]+'"></iframe>';var Ce=/<([^\s>]+)[\s>]/.exec(W);return Ce?"<"+Ce[1].toLowerCase()+">":W&&W.replace(/(\s+|&nbsp;|&#160;)/g," ")}function S(W){return W.reduce(function(z,R,q){return z[R.key]?z[R.key].push(q):z[R.key]=[q],z},Object.create(null))}function C(W,z){return z.endInBefore<W.startInBefore&&z.endInAfter<W.startInAfter?-1:z.startInBefore>W.endInBefore&&z.startInAfter>W.endInAfter?1:0}function E(){this._root=null}E.prototype={add:function(W){var z={value:W,left:null,right:null},R=this._root;if(R)for(;;){var q=C(R.value,W);if(q===-1)if(R.left)R=R.left;else{R.left=z;break}else if(q===1)if(R.right)R=R.right;else{R.right=z;break}else break}else this._root=z},toArray:function(){function W(z,R){return z&&(W(z.left,R),R.push(z.value),W(z.right,R)),R}return W(this._root,[])}};function _(W){for(var z=W.beforeTokens,R=W.afterMap,q=null,Z=null,te=0;te<z.length;te++){var ne=!1,ye=z.length-te;if(Z&&ye<Z.length)break;var Ce=z[te];if(Ce.key===" "){q=te;continue}q===te-1&&(ne=!0);var He=R[Ce.key];He&&He.forEach(function(Se){var je=Z?Z.length:0,H=T(W,te,Se,je,ne);H&&H.length>je&&(Z=H)})}return Z}function T(W,z,R,q,Z){var te=W.beforeTokens,ne=W.afterTokens,ye=z+q,Ce=R+q;if(!(ye>=te.length||Ce>=ne.length)){if(q){var He=te[ye].key,Se=ne[Ce].key;if(He!==Se)return}for(var je=!0,H=1,Y=z+H,ae=R+H;je&&Y<te.length&&ae<ne.length;){var ue=te[Y].key,he=ne[ae].key;ue===he?(H++,Y=z+H,ae=R+H):je=!1}if(Z&&z>0&&R>0){var J=te[z-1].key,ve=ne[R-1].key;J===" "&&ve===" "&&(z--,R--,H++)}return new y(z,R,H,W)}}function A(W,z,R,q){return{beforeTokens:W,afterTokens:z,beforeMap:S(W),afterMap:S(z),beforeIndex:R,afterIndex:q}}function L(W){for(var z=new E,R,q=[W];q.length;)if(W=q.pop(),R=_(W),R&&R.length){if(R.segmentStartInBefore>0&&R.segmentStartInAfter>0){var Z=W.beforeTokens.slice(0,R.segmentStartInBefore),te=W.afterTokens.slice(0,R.segmentStartInAfter);q.push(A(Z,te,W.beforeIndex,W.afterIndex))}var ne=W.beforeTokens.slice(R.segmentEndInBefore+1),ye=W.afterTokens.slice(R.segmentEndInAfter+1),Ce=W.beforeIndex+R.segmentEndInBefore+1,He=W.afterIndex+R.segmentEndInAfter+1;ne.length&&ye.length&&q.push(A(ne,ye,Ce,He)),z.add(R)}return z.toArray()}function D(W,z){if(!W)throw new Error("Missing beforeTokens");if(!z)throw new Error("Missing afterTokens");var R=0,q=0,Z=[],te=A(W,z,0,0),ne=L(te);ne.push(new y(W.length,z.length,0,te));for(var ye=0;ye<ne.length;ye++){var Ce=ne[ye],He="none";R===Ce.startInBefore?q!==Ce.startInAfter&&(He="insert"):(He="delete",q!==Ce.startInAfter&&(He="replace")),He!=="none"&&Z.push({action:He,startInBefore:R,endInBefore:He!=="insert"?Ce.startInBefore-1:null,startInAfter:q,endInAfter:He!=="delete"?Ce.startInAfter-1:null}),Ce.length!==0&&Z.push({action:"equal",startInBefore:Ce.startInBefore,endInBefore:Ce.endInBefore,startInAfter:Ce.startInAfter,endInAfter:Ce.endInAfter}),R=Ce.endInBefore+1,q=Ce.endInAfter+1}var Se=[],je={action:"none"};function H(ue){return ue.action!=="equal"||ue.endInBefore-ue.startInBefore!==0?!1:/^\s$/.test(W.slice(ue.startInBefore,ue.endInBefore+1))}for(var Y=0;Y<Z.length;Y++){var ae=Z[Y];H(ae)&&je.action==="replace"||ae.action==="replace"&&je.action==="replace"?(je.endInBefore=ae.endInBefore,je.endInAfter=ae.endInAfter):(Se.push(ae),je=ae)}return Se}function M(W){this.tokens=W,this.notes=W.reduce(function(z,R,q){z.notes.push({isWrappable:g(R),insertedTag:!1});var Z=!m(R)&&o(R),te=z.tagStack[z.tagStack.length-1];return Z&&(te&&"/"+te.tag===Z?(z.notes[te.position].insertedTag=!0,z.tagStack.pop()):z.tagStack.push({tag:Z,position:q})),z},{notes:[],tagStack:[]}).notes}M.prototype.combine=function(W,z){var R=this.notes,q=this.tokens.slice(),Z=q.reduce(function(te,ne,ye){R[ye].insertedTag&&(q[ye]=z(q[ye])),te.status===null&&(te.status=R[ye].isWrappable);var Ce=R[ye].isWrappable;return Ce!==te.status&&(te.list.push({isWrappable:te.status,tokens:q.slice(te.lastIndex,ye)}),te.lastIndex=ye,te.status=Ce),ye===q.length-1&&te.list.push({isWrappable:te.status,tokens:q.slice(te.lastIndex,ye+1)}),te},{list:[],status:null,lastIndex:0}).list;return Z.map(W).join("")};function $(W,z,R,q,Z){var te=new M(z);q=q?q+"-":"";var ne=" data-"+q+'operation-index="'+R+'"';return Z&&(ne+=' class="'+Z+'"'),te.combine(function(ye){if(ye.isWrappable){var Ce=ye.tokens.join("");if(Ce.trim())return"<"+W+ne+">"+Ce+"</"+W+">"}else return ye.tokens.join("");return""},function(ye){var Ce=' data-diff-node="'+W+'"';return Ce+=" data-"+q+'operation-index="'+R+'"',ye.replace(/>\s*$/,Ce+"$&")})}var j={equal:function(W,z,R,q,Z,te){var ne=R.slice(W.startInAfter,W.endInAfter+1);return ne.reduce(function(ye,Ce){return ye+Ce.string},"")},insert:function(W,z,R,q,Z,te){var ne=R.slice(W.startInAfter,W.endInAfter+1),ye=ne.map(function(Ce){return Ce.string});return $("ins",ye,q,Z,te)},delete:function(W,z,R,q,Z,te){var ne=z.slice(W.startInBefore,W.endInBefore+1),ye=ne.map(function(Ce){return Ce.string});return $("del",ye,q,Z,te)},replace:function(){return j.delete.apply(null,arguments)+j.insert.apply(null,arguments)}};function X(W,z,R,q,Z){return R.reduce(function(te,ne,ye){return te+j[ne.action](ne,W,z,ye,q,Z)},"")}function se(W,z,R,q,Z){if(W===z)return W;Z?u=new RegExp("^<("+Z.replace(/\s*/g,"").replace(/,/g,"|")+")"):u=c,W=w(W),z=w(z);var te=D(W,z);return X(W,z,te,q,R)}se.htmlToTokens=w,se.findMatchingBlocks=L,L.findBestMatch=_,L.createMap=S,L.createToken=b,L.createSegment=A,L.getKeyForToken=x,se.calculateOperations=D,se.renderOperations=X,t!==null?t.exports=se:this.htmldiff=se}).call(Xa)})(KS);var WZ=KS.exports;const jZ=FB(WZ),GS=(t,e,n)=>{let r="";{const o=Pn(t,n),s=Pn(e,n);r=jZ(o,s,null,null,"button")}return r=r.replace(/<del[^>]*>/g,'<mark style="background:#ffa8a8;color:white;">').replace(/<\/del>/g,"</mark>").replace(/<ins[^>]*>/g,'<mark style="background:#42424266;">').replace(/<\/ins>/g,"</mark>"),r},qZ={class:"border border-ed-gray rounded-[5px] p-2.5 flex-1 overflow-y-auto"},KZ={class:"border border-ed-gray rounded-[5px] p-2.5 h-full"},GZ={class:"border border-ed-gray rounded-[5px] p-2.5 flex-1 overflow-y-auto"},XZ=_o(i.defineComponent({__name:"ArticleCompareEditor",props:{originalData:{},changedData:{},extensions:{},editorClass:{}},setup(t){const e=t,n=i.ref(!1),r=i.computed(()=>!e.originalData||!e.changedData?{comment:"",content:""}:{comment:GS(e.originalData.comment,e.changedData.comment,!0),content:GS(e.originalData.content,e.changedData.content,!0)}),{showMenuSplitter:o,menuX:s,menuY:a,commentSize:l,contentSize:u,setupSplitterListeners:c,removeSplitterListeners:f,iconSplitSelected:p,clickIconSplitter:m}=nh();i.onMounted(()=>{c()}),i.onUnmounted(()=>{f()});const g=i.ref();return at.onClickOutside(g,b=>{o.value=!1}),(b,y)=>{const w=Gb;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{class:i.normalizeClass(i.unref(Ae)("h-full",b.editorClass))},[i.createVNode(i.unref(Kb),{horizontal:"",onReady:i.unref(c),onResized:i.unref(c)},{default:i.withCtx(()=>[i.createVNode(i.unref(ha),{size:i.unref(l),class:"flex flex-col"},{default:i.withCtx(()=>{var x,S,C,E,_,T;return[(S=(x=b.originalData)==null?void 0:x.titleBar)!=null&&S.title?(i.openBlock(),i.createBlock(w,{key:0,"title-bar":b.originalData.titleBar,class:"text-[12px] mb-[3px]"},null,8,["title-bar"])):i.createCommentVNode("",!0),i.createElementVNode("div",qZ,[i.createVNode(vc,{"editor-class":"h-full",mode:i.unref(De).REPORT,disabled:"","hide-toolbar":"",extensions:b.extensions,"field-name-comment":(C=b.originalData)==null?void 0:C.fieldNameComment,"field-name-content":(E=b.originalData)==null?void 0:E.fieldNameContent,comment:(_=b.originalData)==null?void 0:_.comment,"model-value":(T=b.originalData)==null?void 0:T.content},null,8,["mode","extensions","field-name-comment","field-name-content","comment","model-value"])])]}),_:1},8,["size"]),i.unref(n)?(i.openBlock(),i.createBlock(i.unref(ha),{key:0},{default:i.withCtx(()=>{var x,S,C,E;return[i.createElementVNode("div",KZ,[i.createVNode(vc,{"editor-class":"h-full",mode:i.unref(De).REPORT,disabled:"","hide-toolbar":"",extensions:b.extensions,"field-name-comment":(x=b.changedData)==null?void 0:x.fieldNameComment,"field-name-content":(S=b.changedData)==null?void 0:S.fieldNameContent,comment:(C=b.changedData)==null?void 0:C.comment,"model-value":(E=b.changedData)==null?void 0:E.content},null,8,["mode","extensions","field-name-comment","field-name-content","comment","model-value"])])]}),_:1})):i.createCommentVNode("",!0),i.createVNode(i.unref(ha),{size:i.unref(u),class:"flex flex-col"},{default:i.withCtx(()=>{var x,S,C,E,_;return[(S=(x=b.changedData)==null?void 0:x.titleBar)!=null&&S.title?(i.openBlock(),i.createBlock(w,{key:0,"title-bar":(C=b.changedData)==null?void 0:C.titleBar,class:"text-[12px] mb-[3px]","custom-class":"bg-[#34c759]"},null,8,["title-bar"])):i.createCommentVNode("",!0),i.createElementVNode("div",GZ,[i.createVNode(vc,{"editor-class":"h-full",mode:i.unref(De).REPORT,disabled:"","hide-toolbar":"",extensions:b.extensions,"field-name-comment":(E=b.changedData)==null?void 0:E.fieldNameComment,"field-name-content":(_=b.changedData)==null?void 0:_.fieldNameContent,comment:i.unref(r).comment,"model-value":i.unref(r).content},null,8,["mode","extensions","field-name-comment","field-name-content","comment","model-value"])])]}),_:1},8,["size"])]),_:1},8,["onReady","onResized"])],2),i.unref(o)?(i.openBlock(),i.createBlock(Xb,{key:0,ref_key:"splitRef",ref:g,"icon-split-selected":i.unref(p),"menu-x":i.unref(s),"menu-y":i.unref(a),onOnChangeSplit:i.unref(m)},null,8,["icon-split-selected","menu-x","menu-y","onOnChangeSplit"])):i.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-0ac94213"]]),XS=t=>{if(!t)return-1;const{from:e}=t.state.selection;let n=0;return t.state.doc.descendants((r,o)=>{r.type.name===yp&&o<e&&n++}),n},YZ=i.defineComponent({__name:"SuperViewMobileSuperEditor",props:{isMobile:{type:Boolean},superTextArea:{},mode:{},modelValue:{default:""},comment:{},commentCuesheet:{},hideComment:{type:Boolean},disableSuperInput:{type:Boolean,default:!1},fontSizeDefault:{},fontFamilyDefault:{},isOpenSuperView:{type:Boolean},output:{default:"html"},dark:{type:Boolean,default:void 0},disabled:{type:Boolean},hideToolbar:{type:Boolean,default:!1},isShowFormatControlBar:{type:Boolean},titleBarComment:{},titleBarContent:{},fieldNameComment:{},fieldNameCommentCuesheet:{},fieldNameContent:{},fieldNameSuper:{default:null},isScreenSplit:{},isShowLineNumber:{type:Boolean},hideMenubar:{type:Boolean},disableBubble:{type:Boolean,default:!1},hideBubble:{type:Boolean,default:!1},maxWidth:{default:void 0},minHeight:{default:600},maxHeight:{default:void 0},height:{},extensions:{default:()=>[]},editorClass:{},contentClass:{},isCompare:{type:Boolean},autoHeight:{type:Boolean},textAlert:{},toolBarClass:{},readonly:{type:Boolean},canEditSuperReadOnly:{type:Boolean},autoFocus:{type:Boolean},superPreviewCustomClass:{},minChar:{}},emits:["enter","change","update:modelValue","update:comment","onFocusEditor","changed:selection","setEditorSelected","onBlurEditor","lineFocus"],setup(t,{expose:e,emit:n}){const r=t,o=n,s=i.computed(()=>r.mode===De.EDITOR),a=at.useEventBus(ir.RENDER_SUPER_TEXT),l=vn(),{isReady:u,editor:c,updateEditorState:f,checkSpellStore:p}=l,m=i.ref(!1);i.provide("isEditable",m);const g=at.useDark(),b=i.ref(d4(r.modelValue));function y(T){if(r.disabled||r.readonly)return;const A=XS(T);o("lineFocus",{lineIndex:A})}function w(){o("lineFocus",{lineIndex:void 0})}const x=new No({enablePasteRules:!1,enableInputRules:!1,content:b.value,onCreate:({editor:T})=>{f(T)},onUpdate:it.throttle(({editor:T})=>{u.value=!0;const A=_(T,r.output);o("update:modelValue",A),o("change",{editor:T,output:A}),f(T)},ko),extensions:it.uniqBy(it.reverse(i.unref(r.extensions)),"name"),editable:m.value,onFocus:()=>{C(),S.value=!0,y(x)},onBlur:()=>{S.value=!1,w()},onSelectionUpdate:()=>{y(x)}}),S=i.ref(!1);function C(){o("setEditorSelected",x)}function E(){a.emit({action:"render"})}function _(T,A){if(!T)return"";if(T.isEmpty)return A==="json"?{}:"";switch(A){case"html":return T.getHTML();case"json":return T.getJSON();case"text":return T.getText();default:return""}}return i.watch(()=>r.dark,()=>at.useToggle(g)),i.watch(()=>p.languages,()=>{x.commands.checkSpelling()}),i.watch(()=>r.modelValue,T=>{if(!x||it.isEqual(_(x,r.output),T))return;const{from:A,to:L}=x.state.selection;x.commands.setTextSelection({from:A,to:L}),E(),b.value=d4(T)},{deep:!0}),i.watch(()=>c.value,()=>{c.value&&c.value.on("selectionUpdate",({editor:T})=>{o("changed:selection",{editor:T})})}),i.watch(()=>r.disableSuperInput,()=>{const T=document.getElementById(nr.COMMENT);T==null||T.setAttribute(nr.DISABLE_SUPER_INPUT,`${r.disableSuperInput}`)}),i.onUnmounted(()=>x==null?void 0:x.destroy()),bc(x),i.onMounted(()=>{var T,A;(T=x==null?void 0:x.commands)!=null&&T.setIsEnableSuggestion&&x.commands.setIsEnableSuggestion(!1),(A=x==null?void 0:x.commands)!=null&&A.setIsMobile&&x.commands.setIsMobile(!0)}),e({editor:x}),(T,A)=>{var D;const L=th;return i.openBlock(),i.createElementBlock(i.Fragment,null,[(D=T.fieldNameSuper)!=null&&D.label?(i.openBlock(),i.createBlock(L,{key:0,"field-name":T.fieldNameSuper,mode:T.mode,disabled:T.disabled,class:"mb-1",intent:"secondary"},null,8,["field-name","mode","disabled"])):i.createCommentVNode("",!0),i.createVNode(qb,{editor:i.unref(x),mode:T.mode,"disable-super-input":""},{default:i.withCtx(()=>[i.createVNode(i.unref(Eo),{editor:i.unref(x),spellcheck:"true",class:i.normalizeClass(["flex-1 flex-col",!i.unref(s)&&"[&_*:not(.super-text)]:!text-inherit"])},null,8,["editor","class"])]),_:1},8,["editor","mode"])],64)}}}),JZ=(t,e)=>{let n=null;return t.state.doc.descendants((r,o)=>{if(r.type.name==="paragraph"&&Number(r.attrs["number-line"])===e)return n={node:r,pos:o},!1}),n},YS="focused-line";async function JS({lineIndex:t,editor:e}){if(e.state.doc.descendants((l,u)=>{if(l.attrs.class===YS){const c=e.state.tr.setNodeMarkup(u,void 0,{...l.attrs,class:""});return e.view.dispatch(c),!1}}),await i.nextTick(),!t)return;const n=JZ(e,t);if(!n)return;const{node:r,pos:o}=n,s=e.state.tr.setNodeMarkup(o,void 0,{...r.attrs,class:YS});e.view.dispatch(s),await i.nextTick(),e.view.nodeDOM(o).scrollIntoView({behavior:"smooth"})}const ZZ=i.defineComponent({__name:"SuperViewMobileEditor",props:{isMobile:{type:Boolean},superTextArea:{},mode:{},modelValue:{default:""},comment:{default:""},commentCuesheet:{},hideComment:{type:Boolean},disableSuperInput:{type:Boolean},fontSizeDefault:{default:"12px"},fontFamilyDefault:{default:""},isOpenSuperView:{type:Boolean},output:{default:"html"},dark:{type:Boolean},disabled:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:!1},isShowFormatControlBar:{type:Boolean},titleBarComment:{},titleBarContent:{},fieldNameComment:{},fieldNameCommentCuesheet:{},fieldNameContent:{default:null},fieldNameSuper:{default:null},isScreenSplit:{},isShowLineNumber:{type:Boolean},hideMenubar:{type:Boolean},disableBubble:{type:Boolean},hideBubble:{type:Boolean,default:!1},maxWidth:{default:void 0},minHeight:{default:200},maxHeight:{default:void 0},height:{default:void 0},extensions:{default:()=>[]},editorClass:{default:void 0},contentClass:{default:void 0},isCompare:{type:Boolean},autoHeight:{type:Boolean},textAlert:{},toolBarClass:{default:void 0},readonly:{type:Boolean,default:!1},canEditSuperReadOnly:{type:Boolean},autoFocus:{type:Boolean},superPreviewCustomClass:{},minChar:{}},emits:["enter","change","update:modelValue","update:comment","onFocusEditor","changed:selection","setEditorSelected","onBlurEditor","lineFocus"],setup(t,{expose:e,emit:n}){const r=t,o=n;i.provide("isMobile",!0);const s=i.computed(()=>r.mode===De.EDITOR),a=at.useEventBus(ir.INCREASE_DECREASE_FONTSIZE);i.useAttrs();const l=vn(),{state:u,isFullscreen:c,isReady:f,editor:p,updateEditorState:m,checkSpellStore:g}=l,b=i.ref(!1);i.provide("isEditable",b);const y=i.ref(void 0),w=i.ref(),x=i.computed(()=>[...u.extensions,...it.differenceBy(r.extensions,u.extensions,"name")].map((H,Y)=>H.configure({sort:Y}))),S=i.ref(r.fontSizeDefault),C=i.ref(r.fontFamilyDefault);i.provide("fontSize",S),i.provide("fontFamily",C);const E=i.computed(()=>({fontFamily:C.value,fontSize:S.value})),_=i.ref(),T=H=>{const Y=parseInt(S.value||"12px"),ae=H?Y+2:Y-2;S.value=ae+"px"};i.onBeforeMount(()=>{a.on(T)}),i.onBeforeUnmount(()=>{a.off(T)});const A=i.computed(()=>({...i.unref(c)?{height:"100%"}:{minHeight:r.minHeight?an(r.minHeight):void 0,maxHeight:r.maxHeight?an(r.maxHeight):void 0,height:r.height?an(r.height):void 0},maxWidth:an(r.maxWidth),width:r.maxWidth?"100%":void 0,margin:r.maxWidth?"0 auto":void 0}));function L(H){if(r.disabled||r.readonly)return;const Y=XS(H);y.value=Y}function D(){y.value=void 0}const M=new No({enablePasteRules:!1,enableInputRules:!1,content:Pn(r.modelValue,r.disabled,r.mode),onCreate:({editor:H})=>{m(H)},onUpdate:it.throttle(({editor:H})=>{f.value=!0;const Y=W(H,r.output);o("update:modelValue",Y),o("change",{editor:H,output:Y}),m(H)},ko),extensions:it.uniqBy(it.reverse(i.unref(x)),"name"),editable:b.value,onFocus:()=>{se(),$.value=!0,L(M)},onBlur:()=>{$.value=!1,D()},onSelectionUpdate:()=>{L(M)}}),$=i.ref(!1),j=i.ref();i.onMounted(()=>{j.value=M});const X=({lineIndex:H})=>{var ae;M&&JS({lineIndex:H,editor:M});const Y=(ae=w.value)==null?void 0:ae.editor;Y&&JS({lineIndex:H,editor:Y})};i.watch(()=>y.value,H=>{o("lineFocus",{lineIndex:H}),X({lineIndex:H})},{immediate:!0});function se(H){j.value=M}function W(H,Y){if(!H)return"";if(H.isEmpty)return Y==="json"?{}:"";switch(Y){case"html":return H.getHTML();case"json":return H.getJSON();case"text":return H.getText({blockSeparator:`
288
+ `});default:return""}}function Z(J){return J.every(ve=>M==null?void 0:M.extensionManager.extensions.find(Me=>Me.name===ve))}i.watch(()=>y.languages,()=>{M.commands.checkSpelling()}),i.watch(()=>r.modelValue,J=>{if(!M||it.isEqual(q(M,r.output),J))return;const{from:ve,to:Me}=M.state.selection;M.commands.setTextSelection({from:ve,to:Me}),M.commands.setContent(Pn(J,r.disabled,r.mode),!1,{preserveWhitespace:"full"}),R()},{deep:!0}),i.watch(()=>x.value,J=>{var ve;M==null||M.setEditable(J),(ve=M==null?void 0:M.commands)!=null&&ve.setIsEnableSuggestion&&M.commands.setIsEnableSuggestion(J)},{immediate:!0}),i.watch(()=>m.value,()=>{m.value&&m.value.on("selectionUpdate",({editor:J})=>{o("changed:selection",{editor:J})})}),i.onUnmounted(()=>M==null?void 0:M.destroy()),Gu(Eu.SAVE,()=>{localStorage.setItem("content",q(M,"html"))});const te=i.computed(()=>{var Ue;if(!((Ue=M==null?void 0:M.storage)!=null&&Ue.superText))return!1;const{enable:J}=M.storage.superText,ve=[De.EDITOR,De.PLAIN_TEXT].includes(r.mode),Me=r.disabled;return J&&!ve&&!Me}),ne=i.ref(null),ye=i.computed(()=>r.mode),{commentHeight:Ce,contentHeight:He,minHeight:Se,minHeightComment:je}=BZ(ne,ye,r.autoHeight,typeof r.minHeight=="string"?parseInt(r.minHeight):r.minHeight),H=i.ref(null);function Y(J){J===De.STRAIGHT&&w(H.value)}i.onMounted(()=>{Y(r.mode)}),i.watch(()=>r.mode,J=>{Y(J)});const ae=i.ref(null),ue=()=>{var ve;(ve=ae.value)!=null&&ve.editor.commands.focusInvalidChar()||M.commands.focusInvalidChar()};u.focusFirstInvalidChar.value=ue,i.onActivated(()=>{u.focusFirstInvalidChar.value=ue});const he=i.computed(()=>{var ve,Me,Ue;const J=((ve=r.fieldNameComment)==null?void 0:ve.label)||((Me=r.fieldNameCommentCuesheet)==null?void 0:Me.label)||((Ue=r.fieldNameContent)==null?void 0:Ue.label);return r.disabled&&J});return e({editor:M}),(J,ve)=>{var ie;const Me=Np,Ue=Qp,Q=Zp,ke=Of,V=r$,P=KB;return i.unref(M)?(i.openBlock(),i.createElementBlock("div",{key:0,id:"vdc-editor",class:i.normalizeClass(["vdc-editor w-full flex flex-col",[J.editorClass,{"outline-ed-primary":i.unref(M).isFocused,"outline-ed-border":!i.unref(M).isFocused}]]),style:i.normalizeStyle(D.value)},[!J.hideBubble&&!J.disabled&&x.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[Z([i.unref(ac)])?(i.openBlock(),i.createBlock(Me,{key:0,editor:i.unref(M)},null,8,["editor"])):i.createCommentVNode("",!0),Z([i.unref(sa)])?(i.openBlock(),i.createBlock(Ue,{key:1,editor:i.unref(M)},null,8,["editor"])):i.createCommentVNode("",!0),Z([i.unref(us)])?(i.openBlock(),i.createBlock(Q,{key:2,editor:i.unref(M)},null,8,["editor"])):i.createCommentVNode("",!0),Z([i.unref(cs),i.unref(ds)])?(i.openBlock(),i.createBlock(ke,{key:3,editor:i.unref(M)},null,8,["editor"])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),J.hideToolbar?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(V,{key:1,editor:i.unref(M),"editor-comment":(ie=ae.value)==null?void 0:ie.editor,mode:J.mode,class:i.normalizeClass(["mb-2",J.toolBarClass])},null,8,["editor","editor-comment","mode","class"])),i.createElementVNode("div",{ref_key:"editorWrapRef",ref:ne,class:i.normalizeClass(["space-y-2 flex-1 flex flex-col break-keep",!E.value&&"[&_*]:!font-inherit [&_*]:!text-font-size-inherit [&_*]:!no-underline [&_*]:!font-normal",T.value&&!E.value?"[&_*]:!font-inherit":"",_.value&&!E.value?"[&_*]:!text-font-size-inherit":""]),style:i.normalizeStyle(A.value)},[he.value?(i.openBlock(),i.createBlock(P,{key:0,extensions:J.extensions,mode:J.mode,"hide-comment":J.hideComment,"field-name-comment":J.fieldNameComment,"field-name-comment-cuesheet":J.fieldNameCommentCuesheet,"field-name-content":J.fieldNameContent,comment:J.comment,"comment-cuesheet":J.commentCuesheet,content:J.modelValue,"min-chars":J.minChar.content,"font-size":_.value},null,8,["extensions","mode","hide-comment","field-name-comment","field-name-comment-cuesheet","field-name-content","comment","comment-cuesheet","content","min-chars","font-size"])):(i.openBlock(),i.createElementBlock("div",{key:1,class:"space-y-2 flex-1 flex flex-col",style:i.normalizeStyle({minWidth:`${z.value}px`})},[J.mode===i.unref(De).REPORT&&!J.hideComment?(i.openBlock(),i.createBlock(MZ,{key:0,ref_key:"editorCommentRef",ref:ae,mode:i.unref(De).REPORT,extensions:J.extensions,"model-value":r.comment,disabled:r.disabled,"disable-super-input":J.disableSuperInput,"is-open-super-view":te.value,"super-preview-custom-class":J.superPreviewCustomClass,"min-char":J.minChar,"font-size":_.value,style:i.normalizeStyle(r.autoHeight?{height:"auto",minHeight:i.unref(an)(i.unref(je))}:{height:i.unref(an)(i.unref(Ce)),minHeight:i.unref(an)(i.unref(Se))}),class:"relative overflow-y-auto","onUpdate:modelValue":ve[0]||(ve[0]=me=>o("update:comment",me))},null,8,["mode","extensions","model-value","disabled","disable-super-input","is-open-super-view","super-preview-custom-class","min-char","font-size","style"])):i.createCommentVNode("",!0),i.createElementVNode("div",{id:"editor-container",class:"relative overflow-y-auto flex flex-col",style:i.normalizeStyle(r.autoHeight?{height:"auto",minHeight:i.unref(an)(i.unref(Se))}:{height:i.unref(an)(i.unref(He))})},[i.createElementVNode("div",IZ,[i.withDirectives(i.createVNode(EZ,{ref_key:"superTextViewRef",ref:se,editor:i.unref(M),"super-preview-custom-class":J.superPreviewCustomClass,"min-chars":J.minChar.superPreview,"font-size":_.value},null,8,["editor","super-preview-custom-class","min-chars","font-size"]),[[i.vShow,te.value]]),i.createElementVNode("div",{id:"editor-panel",ref_key:"contentInner",ref:$,class:i.normalizeClass(["flex-1 p-2.5 border border-ed-gray-400 rounded-[3px] focus-within:border-ed-input-focus",[!E.value&&"[&_*:not(.super-text):not(.super-text-view):not(.bulk-highlight)]:!text-inherit"]])},[i.createVNode(fb,{ref_key:"selectContextMenuRef",ref:H,editor:i.unref(M),mode:J.mode,"super-text-store":i.unref(b)},{default:i.withCtx(()=>[i.createVNode(i.unref(Eo),{editor:i.unref(M),spellcheck:"true",class:i.normalizeClass(i.unref(Ae)("h-full break-all",J.mode===i.unref(De).PLAIN_TEXT&&"plain-text"))},null,8,["editor","class"])]),_:1},8,["editor","mode","super-text-store"])],2)])],4)],4))],6)],6)):i.createCommentVNode("",!0)}}}),RZ={class:"flex gap-2 items-center overflow-x-auto overflow-y-hidden min-h-11 scrollbar-hide"},LZ=i.defineComponent({__name:"ToolbarFormat",props:{editor:{},disabled:{type:Boolean,default:!1},mode:{},activeExtensions:{default:()=>[]}},setup(t){const{t:e}=At(),n=t,r=["fontSize","fontFamily","superText","spellchecker",uE],o=i.computed(()=>{const l=[...n.editor.extensionManager.extensions];let u=[];for(const c of l){const{button:f,divider:p=!1,spacer:m=!1,toolbar:g=!0}=c.options;if(!f||!T0(f)||!g)continue;const b=f({editor:n.editor,extension:c,t:i.unref(e),isMobile:!0});if(Array.isArray(b)){const y=b.map((w,x)=>({id:`${c.name}`,button:w,divider:x===b.length-1?p:!1,spacer:x===0?m:!1}));u=[...u,...y];continue}u.push({button:b,divider:p,spacer:m,id:`${c.name}`})}return n.activeExtensions.length?u.filter(c=>c.id&&n.activeExtensions.includes(c.id)):(r.length&&(u=u.filter(c=>c.id&&!r.includes(c.id))),u)}),s=l=>l.id==="spellchecker"?"!text-ed-blue !bg-white !font-normal rounded [&>div>svg]:w-[19px] [&>div>svg]:h-[19px] h-[26px] gap-x-1 whitespace-nowrap":l.button.componentProps.customClass,a=l=>l.id==="spellchecker"?"Spellchecker":l.button.componentProps.icon;return(l,u)=>(i.openBlock(),i.createElementBlock("div",{id:"tool-bar-format",class:i.normalizeClass(i.unref(Ae)("bg-white border border-gray-100 rounded-full shadow-md px-2.5",!o.value.length&&"hidden"))},[i.createElementVNode("div",RZ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(c,f)=>{var p;return i.openBlock(),i.createBlock(i.resolveDynamicComponent(c.button.component),i.mergeProps({key:f,id:c.id,ref_for:!0},c.button.componentProps,{editor:l.editor,disabled:l.disabled||((p=c.button.componentProps)==null?void 0:p.disabled),"custom-class":s(c),icon:a(c)}),i.createSlots({_:2},[i.renderList(c.button.componentSlots,(m,g,b)=>({name:`${g}`,fn:i.withCtx(y=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(m),i.mergeProps({ref_for:!0},y==null?void 0:y.props,{id:c.id}),null,16,["id"]))])}))]),1040,["id","editor","disabled","custom-class","icon"])}),128))])],2))}}),PZ={class:"flex gap-2 items-center overflow-x-auto"},qS=i.defineComponent({__name:"ToolbarMobile",props:{editor:{},disabled:{type:Boolean,default:!1},mode:{},activeExtensions:{default:()=>[lE,lc,cb]}},setup(t){const{t:e}=At(),n=t,r=i.inject("isEditable",i.ref(!0)),o=i.computed(()=>{const u=[...n.editor.extensionManager.extensions],c=u.find(m=>m.name===cb);let f=u.sort((m,g)=>m.name==="spellchecker"?-1:g.name==="spellchecker"||m.name==="superText"?1:g.name==="superText"?-1:0);c&&(f=u.sort((m,g)=>m.name==="configPlan"?1:g.name==="configPlan"?-1:0));let p=[];for(const m of f){const{button:g,divider:b=!1,spacer:y=!1,toolbar:w=!0}=m.options;if(!g||!T0(g)||!w)continue;const x=g({editor:n.editor,extension:m,t:i.unref(e),isMobile:!0});if(Array.isArray(x)){const S=x.map((C,E)=>({id:`${m.name}`,button:C,divider:E===x.length-1?b:!1,spacer:E===0?y:!1}));p=[...p,...S];continue}p.push({button:x,divider:b,spacer:y,id:`${m.name}`})}if(!r.value){const m=p.find(g=>g.id==="superText");m&&(m.button.componentProps.disabled=!0)}return n.activeExtensions.length?p.filter(m=>m.id&&n.activeExtensions.includes(m.id)):p}),s=u=>u.id==="spellchecker"?"!text-ed-blue bg-white !font-normal rounded [&>div>svg]:w-[19px] [&>div>svg]:h-[19px] h-[26px] gap-x-1 whitespace-nowrap":u.button.componentProps.customClass,a=u=>u.id==="spellchecker"?"Spellchecker":u.button.componentProps.icon,l=i.ref(!1);return(u,c)=>{const f=cE;return i.openBlock(),i.createElementBlock("div",{id:"tool-bar",class:i.normalizeClass(i.unref(Ae)("z-10 bg-[#E0E0E0] rounded-[5px] px-2.5 py-[5px] leading-none",i.unref(df)()&&"top-16",!o.value.length&&"hidden"))},[i.createElementVNode("div",PZ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(p,m)=>{var g,b,y;return i.openBlock(),i.createElementBlock(i.Fragment,{key:m},[p.spacer&&m!==0?(i.openBlock(),i.createBlock(i.unref(oi),{key:0,orientation:"vertical",class:"h-[16px] mx-[10px]"})):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(p.button.component),i.mergeProps({id:p.id,ref_for:!0},p.button.componentProps,{editor:u.editor,disabled:u.disabled||((g=p.button.componentProps)==null?void 0:g.disabled),"custom-class":s(p),icon:a(p)}),i.createSlots({_:2},[i.renderList(p.button.componentSlots,(w,x,S)=>({name:`${x}`,fn:i.withCtx(C=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(w),i.mergeProps({ref_for:!0},C==null?void 0:C.props,{id:p.id}),null,16,["id"]))])}))]),1040,["id","editor","disabled","custom-class","icon"])),p.id===lc&&i.unref(l)?(i.openBlock(),i.createBlock(f,{key:1,class:"bg-white border-inherit w-[26px] h-[26px] shadow-none",checked:(y=(b=p.button.componentProps).isActive)==null?void 0:y.call(b),"onUpdate:checked":w=>{var x,S;return(S=(x=p.button.componentProps).action)==null?void 0:S.call(x)}},null,8,["checked","onUpdate:checked"])):i.createCommentVNode("",!0),p.divider?(i.openBlock(),i.createBlock(i.unref(oi),{key:2,orientation:"vertical",class:"mx-2 h-auto"})):i.createCommentVNode("",!0)],64)}),128))])],2)}}}),DZ={class:"bg-ed-blue px-1"},VZ={class:"bg-ed-blue px-1"},qb=_o(i.defineComponent({__name:"SelectContextMenuMobile",props:{editor:{},mode:{},disableSuperInput:{type:Boolean}},setup(t){var g;const e=t,{t:n}=At(),r=i.ref(!1),o=i.inject("isEditable",i.ref(!0)),s=(g=e.editor.extensionManager.extensions.find(b=>b.name==="superText"))==null?void 0:g.options.specialCharModal,a=b=>{e.editor.chain().focus().insertContent(b).run()},l=()=>{e.editor.chain().focus().selectAll().run()},u=i.ref(!1),c=async b=>{var y,w;if(b){const x=await((w=(y=e.editor).hasClipboard)==null?void 0:w.call(y));u.value=!!x}},f=i.computed(()=>!o.value),p=i.computed(()=>[...e.editor.extensionManager.extensions].find(y=>y.name==="configPlan")),m=i.computed(()=>[...e.editor.extensionManager.extensions].find(y=>y.name==="superText"));return(b,y)=>{var E,_,T;const w=kp,x=Sp,S=Ep,C=Cp;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(C,{"onUpdate:open":c},{default:i.withCtx(()=>[i.createVNode(w,{as:"template",disabled:i.unref(f)},{default:i.withCtx(()=>[i.renderSlot(b.$slots,"default",{},void 0,!0)]),_:3},8,["disabled"]),i.createVNode(S,{"avoid-collisions":!0,sticky:"always","hide-when-detached":"","prioritize-position":"",class:"flex bg-[#616161] text-white max-w-[calc(100vw-16px)] sm:max-w-[310px] overflow-x-auto whitespace-nowrap"},{default:i.withCtx(()=>[i.unref(m)&&!b.disableSuperInput&&b.mode!==i.unref(De).EDITOR?(i.openBlock(),i.createBlock(x,{key:0,onClick:y[0]||(y[0]=A=>b.editor.commands.toggleSuperInputMoblie())},{default:i.withCtx(()=>[i.createElementVNode("span",DZ,i.toDisplayString(i.unref(n)("editor.super")),1)]),_:1})):i.createCommentVNode("",!0),i.unref(p)?(i.openBlock(),i.createBlock(x,{key:1,onClick:y[1]||(y[1]=A=>b.editor.commands.toggleConfigPlanInput())},{default:i.withCtx(()=>[i.createElementVNode("span",VZ,i.toDisplayString(i.unref(n)("editor.configPlan")),1)]),_:1})):i.createCommentVNode("",!0),i.createVNode(x,{onClick:y[2]||(y[2]=A=>r.value=!0)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(n)("editor.insertSpecial")),1)]),_:1}),i.unref(u)?(i.openBlock(),i.createBlock(x,{key:2,onClick:y[3]||(y[3]=A=>{var L;return(L=b.editor)==null?void 0:L.commands.pasteContent()})},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(n)("editor.paste")),1)]),_:1})):i.createCommentVNode("",!0),i.createVNode(x,{onClick:y[4]||(y[4]=A=>{var L;return(L=b.editor)==null?void 0:L.commands.cutContent()})},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(n)("editor.cut")),1)]),_:1}),i.createVNode(x,{onClick:y[5]||(y[5]=A=>{var L;return(L=b.editor)==null?void 0:L.commands.copyContent()})},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(n)("editor.copy")),1)]),_:1}),i.createVNode(x,{onClick:l},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(n)("editor.selectAll")),1)]),_:1})]),_:1})]),_:3}),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent((E=i.unref(s))==null?void 0:E.component),{"is-open":i.unref(r),open:i.unref(r),class:i.normalizeClass((T=(_=i.unref(s))==null?void 0:_.componentProps)==null?void 0:T.class),onSelectedChar:a,onClose:y[6]||(y[6]=A=>r.value=!1)},null,40,["is-open","open","class"]))]))],64)}}}),[["__scopeId","data-v-d47964cd"]]),FZ={class:"text-red-500 relative -top-1"},th=i.defineComponent({__name:"EditorFieldName",props:{fieldName:{},mode:{},disabled:{type:Boolean,default:!1},intent:{default:"primary"}},setup(t){const e=t,n=i.computed(()=>e.disabled&&e.mode!==De.EDITOR?`[${e.fieldName.label}]`:e.fieldName.label),r=i.computed(()=>e.mode===De.EDITOR?"":e.intent==="primary"?"border-ed-blue text-ed-blue":"border-[#FF3B30] text-[#FF3B30]");return(o,s)=>(i.openBlock(),i.createElementBlock("p",null,[i.createElementVNode("span",{class:i.normalizeClass(i.unref(Ae)("font-bold",o.mode!==i.unref(De).EDITOR&&"rounded-full border text-xs py-[2px] px-1 inline-block font-normal",o.disabled&&"!border-transparent px-0",i.unref(r)))},i.toDisplayString(i.unref(n)),3),i.withDirectives(i.createElementVNode("span",FZ," •",512),[[i.vShow,o.fieldName.isRequired]])]))}}),$Z=i.defineComponent({__name:"EditorCommentMoblie",props:{isMobile:{type:Boolean},superTextArea:{default:{view:!0,button:!0}},mode:{},modelValue:{default:""},comment:{},commentCuesheet:{},hideComment:{type:Boolean},disableSuperInput:{type:Boolean,default:!1},fontSizeDefault:{},fontFamilyDefault:{},isOpenSuperView:{type:Boolean,default:!0},output:{default:"html"},dark:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:!1},isShowFormatControlBar:{type:Boolean},titleBarComment:{},titleBarContent:{},fieldNameComment:{},fieldNameCommentCuesheet:{},fieldNameContent:{},fieldNameSuper:{},isScreenSplit:{},isShowLineNumber:{type:Boolean},hideMenubar:{type:Boolean},disableBubble:{type:Boolean,default:!1},hideBubble:{type:Boolean,default:!1},maxWidth:{default:void 0},minHeight:{default:600},maxHeight:{default:void 0},height:{},extensions:{default:()=>[]},editorClass:{default:void 0},contentClass:{default:void 0},isCompare:{type:Boolean},autoHeight:{type:Boolean},textAlert:{},toolBarClass:{},readonly:{type:Boolean},canEditSuperReadOnly:{type:Boolean},autoFocus:{type:Boolean,default:!0},superPreviewCustomClass:{},minChar:{}},emits:["enter","change","update:modelValue","update:comment","onFocusEditor","changed:selection","setEditorSelected","onBlurEditor","lineFocus","onFocus","onBlur"],setup(t,{expose:e,emit:n}){const r=t,o=n,s=i.useAttrs(),a=vn(),{isReady:l,editor:u,updateEditorState:c,checkSpellStore:f}=a,p=i.inject("isEditable",i.ref(!0)),m=at.useDark(),g=i.computed(()=>r.mode===De.EDITOR),b=new No({enablePasteRules:!1,enableInputRules:!1,content:Pn(r.modelValue,r.disabled),editorProps:{attributes:{id:nr.COMMENT,[nr.DISABLE_SUPER_INPUT]:`${r.disableSuperInput}`},handleKeyDown:it.throttle((C,E)=>E.key==="Enter"&&s.enter&&!E.shiftKey?(o("enter"),!0):!1,ko),transformPastedHTML:C=>(C=C.replace(/\s*style="[^"]*"/g,""),C)},onCreate:({editor:C})=>{c(C)},onUpdate:it.throttle(({editor:C})=>{l.value=!0;const E=w(C,r.output);o("update:modelValue",E),o("change",{editor:C,output:E}),c(C)},ko),extensions:it.uniqBy(it.reverse(i.unref(r.extensions)),"name"),editable:p.value,onFocus:()=>{y()},onBlur:({editor:C,event:E})=>{o("onBlurEditor",E)}});function y(){o("setEditorSelected",b)}y();function w(C,E){if(!C)return"";if(C.isEmpty)return E==="json"?{}:"";switch(E){case"html":return C.getHTML();case"json":return C.getJSON();case"text":return C.getText();default:return""}}function x(C){return C.every(E=>b==null?void 0:b.extensionManager.extensions.find(_=>_.name===E))}i.watch(()=>r.dark,()=>at.useToggle(m)),i.watch(()=>f.languages,()=>{b.commands.checkSpelling()}),i.watch(()=>r.modelValue,C=>{if(!b||it.isEqual(w(b,r.output),C))return;const{from:E,to:_}=b.state.selection;b.commands.setTextSelection({from:E,to:_}),b.commands.setContent(Pn(C,r.disabled),!1)},{deep:!0}),i.watch(()=>u.value,()=>{u.value&&u.value.on("selectionUpdate",({editor:C})=>{o("changed:selection",{editor:C})})}),i.watch(()=>r.disableSuperInput,()=>{const C=document.getElementById(nr.COMMENT);C==null||C.setAttribute(nr.DISABLE_SUPER_INPUT,`${r.disableSuperInput}`)}),i.onUnmounted(()=>b==null?void 0:b.destroy()),Gu(Eu.SAVE,()=>{localStorage.setItem("comment",w(b,"html"))});function S(C){b.commands.focus("end"),y()}return bc(b),i.onMounted(()=>{var C;r.autoFocus&&S(r.mode),(C=b==null?void 0:b.commands)!=null&&C.setIsMobile&&b.commands.setIsMobile(!0)}),i.watch(()=>r.mode,C=>{r.autoFocus&&S()}),i.watch(()=>p.value,C=>{var E;b==null||b.setEditable(C),(E=b==null?void 0:b.commands)!=null&&E.setIsEnableSuggestion&&b.commands.setIsEnableSuggestion(C)},{immediate:!0}),e({editor:b}),(C,E)=>{var M;const _=Np,T=Qp,A=Zp,L=Of,D=th;return i.openBlock(),i.createElementBlock(i.Fragment,null,[!C.hideBubble&&!C.disabled&&i.unref(p)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[x([i.unref(ac)])?(i.openBlock(),i.createBlock(_,{key:0,editor:i.unref(b)},null,8,["editor"])):i.createCommentVNode("",!0),x([i.unref(sa)])?(i.openBlock(),i.createBlock(T,{key:1,editor:i.unref(b)},null,8,["editor"])):i.createCommentVNode("",!0),x([i.unref(us)])?(i.openBlock(),i.createBlock(A,{key:2,editor:i.unref(b)},null,8,["editor"])):i.createCommentVNode("",!0),x([i.unref(cs),i.unref(ds)])?(i.openBlock(),i.createBlock(L,{key:3,editor:i.unref(b)},null,8,["editor"])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),(M=C.fieldNameComment)!=null&&M.label?(i.openBlock(),i.createBlock(D,{key:1,"field-name":C.fieldNameComment,mode:C.mode,disabled:C.disabled,class:"mb-1"},null,8,["field-name","mode","disabled"])):i.createCommentVNode("",!0),i.createVNode(qb,{editor:i.unref(b),mode:C.mode,"disable-super-input":C.disableSuperInput},{default:i.withCtx(()=>[i.createVNode(i.unref(Eo),{id:"editor-panel",editor:i.unref(b),spellcheck:"true",class:i.normalizeClass(["flex-1 flex-col relative",!i.unref(g)&&"[&_*:not(.super-text)]:!text-inherit [&_*]:!no-underline [&_*]:!font-normal"])},null,8,["editor","class"])]),_:1},8,["editor","mode","disable-super-input"])],64)}}}),Kb={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(t,{emit:e}){const n=e,r=t,o=i.useSlots(),s=i.ref([]),a=i.computed(()=>s.value.reduce((H,Y)=>(H[~~Y.id]=Y)&&H,{})),l=i.computed(()=>s.value.length),u=i.ref(null),c=i.ref(!1),f=i.ref({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),p=i.ref({splitter:null,timeoutId:null}),m=i.computed(()=>({[`splitpanes splitpanes--${r.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":f.value.dragging})),g=()=>{document.addEventListener("mousemove",w,{passive:!1}),document.addEventListener("mouseup",x),"ontouchstart"in window&&(document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",x))},b=()=>{document.removeEventListener("mousemove",w,{passive:!1}),document.removeEventListener("mouseup",x),"ontouchstart"in window&&(document.removeEventListener("touchmove",w,{passive:!1}),document.removeEventListener("touchend",x))},y=(H,Y)=>{const ae=H.target.closest(".splitpanes__splitter");if(ae){const{left:ue,top:he}=ae.getBoundingClientRect(),{clientX:J,clientY:ve}="ontouchstart"in window&&H.touches?H.touches[0]:H;f.value.cursorOffset=r.horizontal?ve-he:J-ue}g(),f.value.mouseDown=!0,f.value.activeSplitter=Y},w=H=>{f.value.mouseDown&&(H.preventDefault(),f.value.dragging=!0,requestAnimationFrame(()=>{A(_(H)),Se("resize",{event:H},!0)}))},x=H=>{f.value.dragging&&(window.getSelection().removeAllRanges(),Se("resized",{event:H},!0)),f.value.mouseDown=!1,f.value.activeSplitter=null,setTimeout(()=>{f.value.dragging=!1,b()},100)},S=(H,Y)=>{"ontouchstart"in window&&(H.preventDefault(),p.value.splitter===Y?(clearTimeout(p.value.timeoutId),p.value.timeoutId=null,C(H,Y),p.value.splitter=null):(p.value.splitter=Y,p.value.timeoutId=setTimeout(()=>p.value.splitter=null,500))),f.value.dragging||Se("splitter-click",{event:H,index:Y},!0)},C=(H,Y)=>{if(Se("splitter-dblclick",{event:H,index:Y},!0),r.maximizePanes){let ae=0;s.value=s.value.map((ue,he)=>(ue.size=he===Y?ue.max:ue.min,he!==Y&&(ae+=ue.min),ue)),s.value[Y].size-=ae,Se("pane-maximize",{event:H,index:Y,pane:s.value[Y]}),Se("resized",{event:H,index:Y},!0)}},E=(H,Y)=>{Se("pane-click",{event:H,index:a.value[Y].index,pane:a.value[Y]})},_=H=>{const Y=u.value.getBoundingClientRect(),{clientX:ae,clientY:ue}="ontouchstart"in window&&H.touches?H.touches[0]:H;return{x:ae-(r.horizontal?0:f.value.cursorOffset)-Y.left,y:ue-(r.horizontal?f.value.cursorOffset:0)-Y.top}},T=H=>{H=H[r.horizontal?"y":"x"];const Y=u.value[r.horizontal?"clientHeight":"clientWidth"];return r.rtl&&!r.horizontal&&(H=Y-H),H*100/Y},A=H=>{const Y=f.value.activeSplitter;let ae={prevPanesSize:D(Y),nextPanesSize:M(Y),prevReachedMinPanes:0,nextReachedMinPanes:0};const ue=0+(r.pushOtherPanes?0:ae.prevPanesSize),he=100-(r.pushOtherPanes?0:ae.nextPanesSize),J=Math.max(Math.min(T(H),he),ue);let ve=[Y,Y+1],Me=s.value[ve[0]]||null,Ue=s.value[ve[1]]||null;const Q=Me.max<100&&J>=Me.max+ae.prevPanesSize,ke=Ue.max<100&&J<=100-(Ue.max+M(Y+1));if(Q||ke){Q?(Me.size=Me.max,Ue.size=Math.max(100-Me.max-ae.prevPanesSize-ae.nextPanesSize,0)):(Me.size=Math.max(100-Ue.max-ae.prevPanesSize-M(Y+1),0),Ue.size=Ue.max);return}if(r.pushOtherPanes){const V=L(ae,J);if(!V)return;({sums:ae,panesToResize:ve}=V),Me=s.value[ve[0]]||null,Ue=s.value[ve[1]]||null}Me!==null&&(Me.size=Math.min(Math.max(J-ae.prevPanesSize-ae.prevReachedMinPanes,Me.min),Me.max)),Ue!==null&&(Ue.size=Math.min(Math.max(100-J-ae.nextPanesSize-ae.nextReachedMinPanes,Ue.min),Ue.max))},L=(H,Y)=>{const ae=f.value.activeSplitter,ue=[ae,ae+1];return Y<H.prevPanesSize+s.value[ue[0]].min&&(ue[0]=$(ae).index,H.prevReachedMinPanes=0,ue[0]<ae&&s.value.forEach((he,J)=>{J>ue[0]&&J<=ae&&(he.size=he.min,H.prevReachedMinPanes+=he.min)}),H.prevPanesSize=D(ue[0]),ue[0]===void 0)?(H.prevReachedMinPanes=0,s.value[0].size=s.value[0].min,s.value.forEach((he,J)=>{J>0&&J<=ae&&(he.size=he.min,H.prevReachedMinPanes+=he.min)}),s.value[ue[1]].size=100-H.prevReachedMinPanes-s.value[0].min-H.prevPanesSize-H.nextPanesSize,null):Y>100-H.nextPanesSize-s.value[ue[1]].min&&(ue[1]=j(ae).index,H.nextReachedMinPanes=0,ue[1]>ae+1&&s.value.forEach((he,J)=>{J>ae&&J<ue[1]&&(he.size=he.min,H.nextReachedMinPanes+=he.min)}),H.nextPanesSize=M(ue[1]-1),ue[1]===void 0)?(H.nextReachedMinPanes=0,s.value.forEach((he,J)=>{J<l.value-1&&J>=ae+1&&(he.size=he.min,H.nextReachedMinPanes+=he.min)}),s.value[ue[0]].size=100-H.prevPanesSize-M(ue[0]-1),null):{sums:H,panesToResize:ue}},D=H=>s.value.reduce((Y,ae,ue)=>Y+(ue<H?ae.size:0),0),M=H=>s.value.reduce((Y,ae,ue)=>Y+(ue>H+1?ae.size:0),0),$=H=>[...s.value].reverse().find(Y=>Y.index<H&&Y.size>Y.min)||{},j=H=>s.value.find(Y=>Y.index>H+1&&Y.size>Y.min)||{},X=()=>{var H;const Y=Array.from(((H=u.value)==null?void 0:H.children)||[]);for(const ae of Y){const ue=ae.classList.contains("splitpanes__pane"),he=ae.classList.contains("splitpanes__splitter");!ue&&!he&&(ae.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},se=(H,Y,ae=!1)=>{const ue=H-1,he=document.createElement("div");he.classList.add("splitpanes__splitter"),ae||(he.onmousedown=J=>y(J,ue),typeof window<"u"&&"ontouchstart"in window&&(he.ontouchstart=J=>y(J,ue)),he.onclick=J=>S(J,ue+1)),he.ondblclick=J=>C(J,ue+1),Y.parentNode.insertBefore(he,Y)},W=H=>{H.onmousedown=void 0,H.onclick=void 0,H.ondblclick=void 0,H.remove()},z=()=>{var H;const Y=Array.from(((H=u.value)==null?void 0:H.children)||[]);for(const ue of Y)ue.className.includes("splitpanes__splitter")&&W(ue);let ae=0;for(const ue of Y)ue.className.includes("splitpanes__pane")&&(!ae&&r.firstSplitter?se(ae,ue,!0):ae&&se(ae,ue),ae++)},R=({uid:H,...Y})=>{const ae=a.value[H];for(const[ue,he]of Object.entries(Y))ae[ue]=he},q=H=>{var Y;let ae=-1;Array.from(((Y=u.value)==null?void 0:Y.children)||[]).some(ue=>(ue.className.includes("splitpanes__pane")&&ae++,ue.isSameNode(H.el))),s.value.splice(ae,0,{...H,index:ae}),s.value.forEach((ue,he)=>ue.index=he),c.value&&i.nextTick(()=>{z(),te({addedPane:s.value[ae]}),Se("pane-add",{pane:s.value[ae]})})},Z=H=>{const Y=s.value.findIndex(ue=>ue.id===H);s.value[Y].el=null;const ae=s.value.splice(Y,1)[0];s.value.forEach((ue,he)=>ue.index=he),i.nextTick(()=>{z(),Se("pane-remove",{pane:ae}),te({removedPane:{...ae}})})},te=(H={})=>{!H.addedPane&&!H.removedPane?ye():s.value.some(Y=>Y.givenSize!==null||Y.min||Y.max<100)?Ce(H):ne(),c.value&&Se("resized")},ne=()=>{const H=100/l.value;let Y=0;const ae=[],ue=[];for(const he of s.value)he.size=Math.max(Math.min(H,he.max),he.min),Y-=he.size,he.size>=he.max&&ae.push(he.id),he.size<=he.min&&ue.push(he.id);Y>.1&&He(Y,ae,ue)},ye=()=>{let H=100;const Y=[],ae=[];let ue=0;for(const J of s.value)H-=J.size,J.givenSize!==null&&ue++,J.size>=J.max&&Y.push(J.id),J.size<=J.min&&ae.push(J.id);let he=100;if(H>.1){for(const J of s.value)J.givenSize===null&&(J.size=Math.max(Math.min(H/(l.value-ue),J.max),J.min)),he-=J.size;he>.1&&He(he,Y,ae)}},Ce=({addedPane:H,removedPane:Y}={})=>{let ae=100/l.value,ue=0;const he=[],J=[];((H==null?void 0:H.givenSize)??null)!==null&&(ae=(100-H.givenSize)/(l.value-1));for(const ve of s.value)ue-=ve.size,ve.size>=ve.max&&he.push(ve.id),ve.size<=ve.min&&J.push(ve.id);if(!(Math.abs(ue)<.1)){for(const ve of s.value)(H==null?void 0:H.givenSize)!==null&&(H==null?void 0:H.id)===ve.id||(ve.size=Math.max(Math.min(ae,ve.max),ve.min)),ue-=ve.size,ve.size>=ve.max&&he.push(ve.id),ve.size<=ve.min&&J.push(ve.id);ue>.1&&He(ue,he,J)}},He=(H,Y,ae)=>{let ue;H>0?ue=H/(l.value-Y.length):ue=H/(l.value-ae.length),s.value.forEach((he,J)=>{if(H>0&&!Y.includes(he.id)){const ve=Math.max(Math.min(he.size+ue,he.max),he.min),Me=ve-he.size;H-=Me,he.size=ve}else if(!ae.includes(he.id)){const ve=Math.max(Math.min(he.size+ue,he.max),he.min),Me=ve-he.size;H-=Me,he.size=ve}}),Math.abs(H)>.1&&i.nextTick(()=>{c.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Se=(H,Y=void 0,ae=!1)=>{const ue=(Y==null?void 0:Y.index)??f.value.activeSplitter??null;n(H,{...Y,...ue!==null&&{index:ue},...ae&&ue!==null&&{prevPane:s.value[ue-(r.firstSplitter?1:0)],nextPane:s.value[ue+(r.firstSplitter?0:1)]},panes:s.value.map(he=>({min:he.min,max:he.max,size:he.size}))})};i.watch(()=>r.firstSplitter,()=>z()),i.onMounted(()=>{X(),z(),te(),Se("ready"),c.value=!0}),i.onBeforeUnmount(()=>c.value=!1);const je=()=>{var H;return i.h("div",{ref:u,class:m.value},(H=o.default)==null?void 0:H.call(o))};return i.provide("panes",s),i.provide("indexedPanes",a),i.provide("horizontal",i.computed(()=>r.horizontal)),i.provide("requestUpdate",R),i.provide("onPaneAdd",q),i.provide("onPaneRemove",Z),i.provide("onPaneClick",E),(H,Y)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(je)))}},ha={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(t){var e;const n=t,r=i.inject("requestUpdate"),o=i.inject("onPaneAdd"),s=i.inject("horizontal"),a=i.inject("onPaneRemove"),l=i.inject("onPaneClick"),u=(e=i.getCurrentInstance())==null?void 0:e.uid,c=i.inject("indexedPanes"),f=i.computed(()=>c.value[u]),p=i.ref(null),m=i.computed(()=>{const w=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(w,b.value),g.value)}),g=i.computed(()=>{const w=parseFloat(n.minSize);return isNaN(w)?0:w}),b=i.computed(()=>{const w=parseFloat(n.maxSize);return isNaN(w)?100:w}),y=i.computed(()=>{var w;return`${s.value?"height":"width"}: ${(w=f.value)==null?void 0:w.size}%`});return i.watch(()=>m.value,w=>r({uid:u,size:w})),i.watch(()=>g.value,w=>r({uid:u,min:w})),i.watch(()=>b.value,w=>r({uid:u,max:w})),i.onMounted(()=>{o({id:u,el:p.value,min:g.value,max:b.value,givenSize:n.size===void 0?null:m.value,size:m.value})}),i.onBeforeUnmount(()=>a(u)),(w,x)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"paneEl",ref:p,class:"splitpanes__pane",onClick:x[0]||(x[0]=S=>i.unref(l)(S,w._.uid)),style:i.normalizeStyle(y.value)},[i.renderSlot(w.$slots,"default")],4))}},Gb=i.defineComponent({__name:"ToolbarTitle",props:{titleBar:{},customClass:{}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("h3",{class:i.normalizeClass(i.unref(Ae)("rounded-[5px] px-2.5 py-[5px] min-h-[32px] flex items-center bg-[#E0E0E0]",[e.customClass],[e.titleBar.bgClass]))},i.toDisplayString(e.titleBar.title),3))}});function nh(){let e=null,n=!1;const r=i.ref(!1),o=i.ref(0),s=i.ref(0),a=i.ref(50),l=i.ref(50);let u=[];function c(x,S){n=!1,e=setTimeout(()=>{n=!0},200);const C=S.getBoundingClientRect();o.value=C.left+C.width/2,s.value=C.top+C.height/2}function f(x){clearTimeout(e),e=null,n||(r.value=!0),n=!1}function p(){const x=document.querySelectorAll(".splitpanes__splitter");u=Array.from(x),u.forEach(S=>{S.addEventListener("mousedown",C=>c(C,S)),S.addEventListener("mouseup",f),S.addEventListener("touchstart",C=>c(C,S)),S.addEventListener("touchend",f)})}function m(){u.forEach(x=>{x.removeEventListener("mouseup",f),x.removeEventListener("touchend",f),x.removeEventListener("mousedown",S=>c(S,x)),x.removeEventListener("touchstart",S=>c(S,x))}),u=[]}const g=i.ref([{name:"paneUp",selected:!1},{name:"paneMiddle",selected:!0},{name:"paneDown",selected:!1}]),b=i.ref({name:"paneMiddle",selected:!0});function y(x){b.value=x}async function w(x){y(x),r.value=!1,await i.nextTick(),x.name==="paneUp"?(a.value=0,l.value=100):x.name==="paneDown"?(a.value=100,l.value=0):(a.value=50,l.value=50)}return{showMenuSplitter:r,menuX:o,menuY:s,commentSize:a,contentSize:l,setupSplitterListeners:p,removeSplitterListeners:m,iconSplitters:g,iconSplitSelected:b,setSelectedIconSplit:y,clickIconSplitter:w}}const Xb=i.defineComponent({__name:"ScreenSplitToastPopup",props:{menuX:{},menuY:{},iconSplitSelected:{}},emits:["on-change-split"],setup(t,{emit:e}){const{iconSplitters:n}=nh(),r=t,o=e,s=i.computed(()=>({top:`${r.menuY}px`,left:`${r.menuX}px`,transform:"translate(-50%, -50%)"}));return(a,l)=>(i.openBlock(),i.createElementBlock("div",{style:i.normalizeStyle(i.unref(s)),class:"fixed bg-[#424242]/40 text-white/40 rounded-[21px] w-[132px] h-[37px] flex items-center justify-center gap-6 [&>svg]:cursor-pointer"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(n),u=>(i.openBlock(),i.createBlock(i.unref(jt),{key:u.name,name:u.name,class:i.normalizeClass({"text-black/80":u.name===a.iconSplitSelected.name}),onClick:c=>o("on-change-split",u)},null,8,["name","class","onClick"]))),128))],4))}});class zZ{isNativeWebViewAvailable(){return window.ReactNativeWebView!==void 0}getDevicePlatform(){var r;if(!this.isNativeWebViewAvailable())return;if(typeof window.webkit=="object"&&typeof((r=window.webkit)==null?void 0:r.messageHandlers)=="object")return S0.IOS;const n=navigator.userAgent.toLowerCase();if(n.includes("android"))return S0.ANDROID;if(n.includes("iphone")||n.includes("ipad")||n.includes("ipod"))return S0.IOS}sendToNative(e,n){if(window.ReactNativeWebView){const r={type:e,data:n};window.ReactNativeWebView.postMessage(JSON.stringify(r)),console.log(`Sent message to native: ${e}`)}else console.log("ReactNativeWebView not available")}receiveDataFromNative(e,n){const r=window.receiveDriverData;window.receiveDriverData=o=>{try{const s=JSON.parse(o);s.type===e?(console.log(`Received data from native ${e}`),n(s.data)):r&&r(o)}catch(s){console.log("Error parsing data from native",s)}}}}const vc=i.defineComponent({__name:"CoreEditorMoblie",props:{isMobile:{type:Boolean},superTextArea:{default:{view:!0,button:!0}},mode:{},modelValue:{default:""},comment:{default:""},commentCuesheet:{},hideComment:{type:Boolean,default:!1},disableSuperInput:{type:Boolean,default:!1},fontSizeDefault:{default:"12px"},fontFamilyDefault:{default:""},isOpenSuperView:{type:Boolean},output:{default:"html"},dark:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:!1},isShowFormatControlBar:{type:Boolean,default:!1},titleBarComment:{default:null},titleBarContent:{default:null},fieldNameComment:{default:null},fieldNameCommentCuesheet:{},fieldNameContent:{default:null},fieldNameSuper:{},isScreenSplit:{default:!1},isShowLineNumber:{type:Boolean,default:!1},hideMenubar:{type:Boolean},disableBubble:{type:Boolean,default:!1},hideBubble:{type:Boolean,default:!1},maxWidth:{default:void 0},minHeight:{default:200},maxHeight:{default:void 0},height:{default:void 0},extensions:{default:()=>[]},editorClass:{default:void 0},contentClass:{default:void 0},isCompare:{type:Boolean},autoHeight:{type:Boolean},textAlert:{},toolBarClass:{default:void 0},readonly:{type:Boolean,default:!1},canEditSuperReadOnly:{type:Boolean},autoFocus:{type:Boolean,default:!0},superPreviewCustomClass:{},minChar:{}},emits:["enter","change","update:modelValue","update:comment","onFocusEditor","changed:selection","setEditorSelected","onBlurEditor","lineFocus","onFocus","onBlur"],setup(t,{expose:e,emit:n}){const r=t,o=n,s=new zZ;i.provide("isMobile",!0);const a=at.useEventBus(ir.INCREASE_DECREASE_FONTSIZE),l=i.useAttrs(),u=vn(),{state:c,isFullscreen:f,isReady:p,editor:m,updateEditorState:g,checkSpellStore:b,setImageAttachment:y}=u,w=i.computed(()=>r.mode===De.EDITOR),x=i.ref(!r.disabled&&!r.readonly);i.provide("isEditable",x);const S=i.computed(()=>[...c.extensions,...it.differenceBy(r.extensions,c.extensions,"name")].map((Q,ke)=>Q.configure({sort:ke}))),C=i.ref(r.fontSizeDefault),E=i.ref(r.fontFamilyDefault);i.provide("fontSize",C),i.provide("fontFamily",E);const _=i.computed(()=>({fontFamily:E.value,fontSize:C.value})),T=i.ref(),{height:A}=at.useWindowSize(),L=i.computed(()=>{var ke;if(z.value)return{bottom:"15px"};const Q=((ke=T.value)==null?void 0:ke.getBoundingClientRect().bottom)||0;return{bottom:`${A.value-Q+10}px`}}),D=Q=>{const ke=parseInt(C.value||"12px"),V=Q?ke+2:ke-2;C.value=V+"px"};i.onBeforeMount(()=>{a.on(D)}),i.onBeforeUnmount(()=>{a.off(D)});const M=i.computed(()=>({...i.unref(f)?{height:"100%"}:{minHeight:r.minHeight?an(r.minHeight):void 0,maxHeight:r.maxHeight?an(r.maxHeight):void 0,height:r.height?an(r.height):void 0},maxWidth:an(r.maxWidth),width:r.maxWidth?"100%":void 0,margin:r.maxWidth?"0 auto":void 0})),$=new No({enablePasteRules:!1,enableInputRules:!1,content:Pn(r.modelValue,r.disabled,r.mode),editorProps:{handleKeyDown:it.throttle((Q,ke)=>ke.key==="Enter"&&l.enter&&!ke.shiftKey?(o("enter"),!0):!1,ko),transformPastedHTML:Q=>(Q=Q.replace(/\s*style="[^"]*"/g,""),Q),handlePaste(Q,ke){var me;if(r.mode!==De.PLAIN_TEXT)return!1;ke.preventDefault();const V=((me=ke.clipboardData)==null?void 0:me.getData("text/plain"))||"",{tr:P,selection:ie}=Q.state;return Q.dispatch(P.insertText(V,ie.from)),!0}},onCreate:({editor:Q})=>{g(Q)},onUpdate:it.throttle(({editor:Q})=>{p.value=!0;const ke=ne(Q,r.output);o("update:modelValue",ke),o("change",{editor:Q,output:ke}),g(Q),j(Q)},ko),extensions:it.uniqBy(it.reverse(i.unref(S)),"name"),editable:x.value,onFocus:Q=>{Z(),o("onFocus",Q)},onBlur:Q=>o("onBlur",Q),parseOptions:{preserveWhitespace:"full"}});function j(Q){const ke=[];Q.state.doc.descendants(V=>{V.type.name==="image"&&ke.push({id:V.attrs.id,src:V.attrs.src})}),y(ke)}const X=i.ref(),se=i.ref(),W=i.ref(!0),z=i.ref(!1);function R(){s.isNativeWebViewAvailable()&&(s.receiveDataFromNative("keyboardDidShow",Q=>{z.value=!0}),s.receiveDataFromNative("keyboardDidHide",Q=>{z.value=!1}))}function q(Q){const ke=document.querySelectorAll('[contenteditable="true"]:not(.tiptap), .simple-editor, input, textarea'),V=Array.from(ke).some(P=>P.contains(Q.target));if(Q.type==="focusout"){W.value=!0;return}W.value=!V}at.useEventListener(document,"focusin",q),at.useEventListener(document,"focusout",q),i.onMounted(()=>{X.value=$,R()});function Z(Q){X.value=Q??$}const te=i.computed(()=>{const Q=X.value.view.dom.dataset.disableSuperInput&&JSON.parse(X.value.view.dom.dataset.disableSuperInput);return X.value.storage.superText.isShowSuperInputMoblie&&!Q});function ne(Q,ke){if(!Q)return"";if(Q.isEmpty)return ke==="json"?{}:"";if(r.mode===De.PLAIN_TEXT)return Q.getText({blockSeparator:`
289
+ `});switch(ke){case"html":return Q.getHTML();case"json":return Q.getJSON();case"text":return Q.getText({blockSeparator:`
290
+ `});default:return""}}function ye(Q){return Q.every(ke=>$==null?void 0:$.extensionManager.extensions.find(V=>V.name===ke))}i.watch(()=>b.languages,()=>{$.commands.checkSpelling()}),i.watch(()=>r.modelValue,Q=>{if(!$||it.isEqual(ne($,r.output),Q))return;const{from:ke,to:V}=$.state.selection;$.commands.setTextSelection({from:ke,to:V}),$.commands.setContent(Pn(Q,r.disabled,r.mode),!1)},{deep:!0}),i.watch([()=>r.disabled,()=>r.readonly],()=>{x.value=!r.disabled&&!r.readonly},{immediate:!0}),i.watch(()=>x.value,Q=>{var ke;$==null||$.setEditable(Q),(ke=$==null?void 0:$.commands)!=null&&ke.setIsEnableSuggestion&&$.commands.setIsEnableSuggestion(Q)},{immediate:!0}),i.watch(()=>m.value,()=>{m.value&&m.value.on("selectionUpdate",({editor:Q})=>{o("changed:selection",{editor:Q})})}),i.onUnmounted(()=>{var Q;$==null||$.destroy(),(Q=X.value)==null||Q.destroy()}),Gu(Eu.SAVE,()=>{localStorage.setItem("content",ne($,"html"))});const Ce=Q=>{var V;const ke=X.value??$;if(ke){const{from:P}=ke.view.state.selection;ke.commands.insertContentAt(P,{type:"superText",attrs:{"data-id":ai(6),"data-text":Q}})}(V=X.value)==null||V.commands.toggleSuperInputMoblie()},He=Q=>{var V;const ke=X.value??$;if(ke){const{from:P}=ke.view.state.selection;ke.commands.insertContentAt(P,{type:"configPlan",attrs:{"data-id":ai(6),"data-text":Q}})}(V=X.value)==null||V.commands.toggleConfigPlanInput()};function Se(Q){Q===De.STRAIGHT&&$.commands.focus("end"),Q===De.EDITOR&&$.commands.focus("end")}i.onMounted(()=>{var Q;r.autoFocus&&Se(r.mode),(Q=$==null?void 0:$.commands)!=null&&Q.setIsMobile&&$.commands.setIsMobile(!0)}),i.watch(()=>r.mode,Q=>{r.autoFocus&&Se(Q)});const{showMenuSplitter:je,menuX:H,menuY:Y,commentSize:ae,contentSize:ue,setupSplitterListeners:he,removeSplitterListeners:J,iconSplitSelected:ve,clickIconSplitter:Me}=nh();i.onMounted(()=>{he()}),i.onUnmounted(()=>{J()});const Ue=i.ref();return at.onClickOutside(Ue,Q=>{je.value=!1}),bc($),e({editor:$}),(Q,ke)=>{var We,ee,ge,ce,we;const V=Np,P=Qp,ie=Zp,me=Of,Le=qS,nt=LZ;return i.openBlock(),i.createElementBlock(i.Fragment,null,[X.value?(i.openBlock(),i.createElementBlock("div",{key:0,id:"vdc-editor",ref_key:"editorRef",ref:T,style:i.normalizeStyle(M.value),class:i.normalizeClass(i.unref(Ae)("vdc-editor moblie relative w-full flex flex-col",!r.height&&"flex-1",Q.editorClass,Q.disabled&&"disabled",Q.mode!==i.unref(De).EDITOR&&"editor-line"))},[!Q.hideBubble&&!Q.disabled&&x.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[ye([i.unref(ac)])?(i.openBlock(),i.createBlock(V,{key:0,editor:i.unref($)},null,8,["editor"])):i.createCommentVNode("",!0),ye([i.unref(sa)])?(i.openBlock(),i.createBlock(P,{key:1,editor:i.unref($)},null,8,["editor"])):i.createCommentVNode("",!0),ye([i.unref(us)])?(i.openBlock(),i.createBlock(ie,{key:2,editor:i.unref($)},null,8,["editor"])):i.createCommentVNode("",!0),ye([i.unref(cs),i.unref(ds)])?(i.openBlock(),i.createBlock(me,{key:3,editor:i.unref($)},null,8,["editor"])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),Q.hideToolbar?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(Le,{key:1,editor:X.value,mode:Q.mode,disabled:Q.disabled,class:i.normalizeClass(["mb-[3px]",Q.toolBarClass]),"active-extensions":Q.mode===i.unref(De).EDITOR?[lc]:void 0},null,8,["editor","mode","disabled","class","active-extensions"])),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createElementVNode("div",{class:"fixed left-5 right-5 z-[12]",style:i.normalizeStyle(L.value)},[Q.isShowFormatControlBar?(i.openBlock(),i.createBlock(nt,{key:0,editor:X.value,mode:Q.mode,disabled:!x.value||Q.disabled,style:i.normalizeStyle({visibility:W.value?"visible":"hidden"})},null,8,["editor","mode","disabled","style"])):i.createCommentVNode("",!0)],4)])),i.createVNode(i.unref(Kb),{class:i.normalizeClass(i.unref(Ae)("flex-1 basis-0 flex flex-col",!w.value&&"[&_*]:!font-inherit [&_*]:!text-font-size-inherit",E.value&&!w.value&&"[&_*]:!font-inherit",C.value&&!w.value&&"[&_*]:!text-font-size-inherit")),style:i.normalizeStyle({..._.value}),horizontal:"",onReady:i.unref(he),onResized:i.unref(he)},{default:i.withCtx(()=>[(Q.mode===i.unref(De).REPORT||Q.mode===i.unref(De).EDITOR&&Q.isScreenSplit)&&!Q.hideComment?(i.openBlock(),i.createBlock(i.unref(ha),{key:0,size:i.unref(ae),class:"border-none p-0 flex flex-col"},{default:i.withCtx(()=>{var Ve;return[(Ve=Q.titleBarComment)!=null&&Ve.title?(i.openBlock(),i.createBlock(Gb,{key:0,"title-bar":Q.titleBarComment,class:"mb-[3px]"},null,8,["title-bar"])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(i.unref(Ae)("flex-1 !overflow-y-auto basis-0 flex h-full flex-col py-1.5 px-2.5 border border-ed-gray rounded-[5px] focus-within:border-ed-blue",Q.disabled&&"border-transparent",W.value&&!z.value&&"pb-16",Q.contentClass))},[i.createVNode($Z,{ref_key:"editorCommentRef",ref:se,mode:Q.mode,extensions:Q.extensions,"model-value":r.comment,disabled:r.disabled,"disable-super-input":Q.disableSuperInput,"field-name-comment":Q.fieldNameComment,"is-show-format-control-bar":Q.isShowFormatControlBar,"auto-focus":Q.autoFocus,"onUpdate:modelValue":ke[0]||(ke[0]=Qe=>o("update:comment",Qe)),onSetEditorSelected:Z},null,8,["mode","extensions","model-value","disabled","disable-super-input","field-name-comment","is-show-format-control-bar","auto-focus"])],2)]}),_:1},8,["size"])):i.createCommentVNode("",!0),i.createVNode(i.unref(ha),{size:i.unref(ue),class:"border-none p-0 flex flex-col"},{default:i.withCtx(()=>{var Ve,Qe;return[(Ve=Q.titleBarContent)!=null&&Ve.title?(i.openBlock(),i.createBlock(Gb,{key:0,"title-bar":Q.titleBarContent,class:"mb-[3px]"},null,8,["title-bar"])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(i.unref(Ae)("flex-1 !overflow-y-auto basis-0 flex flex-col py-1.5 px-2.5 border border-ed-gray rounded-[5px] focus-within:border-ed-blue",Q.disabled&&"border-transparent",W.value&&!z.value&&"pb-16",Q.contentClass))},[(Qe=Q.fieldNameContent)!=null&&Qe.label?(i.openBlock(),i.createBlock(th,{key:0,"field-name":Q.fieldNameContent,mode:Q.mode,disabled:Q.disabled,class:"mb-1"},null,8,["field-name","mode","disabled"])):i.createCommentVNode("",!0),i.createVNode(qb,{editor:i.unref($),mode:Q.mode},{default:i.withCtx(()=>[i.createVNode(i.unref(Eo),{id:"editor-panel",editor:i.unref($),spellcheck:"true",class:i.normalizeClass(["flex-1 flex-col relative break-all",Q.mode===i.unref(De).PLAIN_TEXT&&"plain-text",!w.value&&"[&_*:not(.super-text)]:!text-inherit [&_*]:!no-underline [&_*]:!font-normal"])},null,8,["editor","class"])]),_:1},8,["editor","mode"])],2)]}),_:1},8,["size"])]),_:1},8,["class","style","onReady","onResized"])],6)):i.createCommentVNode("",!0),i.unref(je)&&!Q.disabled?(i.openBlock(),i.createBlock(Xb,{key:1,ref_key:"splitToastRef",ref:Ue,"icon-split-selected":i.unref(ve),"menu-x":i.unref(H),"menu-y":i.unref(Y),onOnChangeSplit:i.unref(Me)},null,8,["icon-split-selected","menu-x","menu-y","onOnChangeSplit"])):i.createCommentVNode("",!0),(We=X.value)!=null&&We.storage.superText?(i.openBlock(),i.createBlock(Ip,{key:2,open:te.value,"is-view-mode":!((ee=X.value)!=null&&ee.storage.superText.isShowSuperInputMoblie),editor:X.value,onClose:ke[1]||(ke[1]=Ve=>X.value.commands.toggleSuperInputMoblie()),onSave:Ce},null,8,["open","is-view-mode","editor"])):i.createCommentVNode("",!0),(ge=X.value)!=null&&ge.storage.configPlan?(i.openBlock(),i.createBlock(Ip,{key:3,open:(ce=X.value)==null?void 0:ce.storage.configPlan.isShowConfigPlanInput,"is-view-mode":!((we=X.value)!=null&&we.storage.configPlan.isShowConfigPlanInput),editor:X.value,title:Q.$t("editor.configPlan"),onClose:ke[2]||(ke[2]=Ve=>X.value.commands.toggleConfigPlanInput()),onSave:He},null,8,["open","is-view-mode","editor","title"])):i.createCommentVNode("",!0)],64)}}}),HZ=i.defineComponent({__name:"ArticleEditor",props:{mode:{default:De.STRAIGHT},isMobile:{type:Boolean},superTextArea:{},modelValue:{},comment:{},commentCuesheet:{},hideComment:{type:Boolean},disableSuperInput:{type:Boolean},fontSizeDefault:{},fontFamilyDefault:{},isOpenSuperView:{type:Boolean},output:{},dark:{type:Boolean},disabled:{type:Boolean},hideToolbar:{type:Boolean},isShowFormatControlBar:{type:Boolean},titleBarComment:{},titleBarContent:{},fieldNameComment:{},fieldNameCommentCuesheet:{},fieldNameContent:{},fieldNameSuper:{},isScreenSplit:{},isShowLineNumber:{type:Boolean},hideMenubar:{type:Boolean},disableBubble:{type:Boolean},hideBubble:{type:Boolean},maxWidth:{},minHeight:{},maxHeight:{},height:{},extensions:{},editorClass:{},contentClass:{},isCompare:{type:Boolean},autoHeight:{type:Boolean},textAlert:{},toolBarClass:{},readonly:{type:Boolean},canEditSuperReadOnly:{type:Boolean},autoFocus:{type:Boolean,default:!0},superPreviewCustomClass:{},minChar:{}},setup(t){const e=t,n=vn();return i.onMounted(()=>{n.setTextAlert(e.textAlert||"")}),(r,o)=>e.isMobile?(i.openBlock(),i.createBlock(vc,i.mergeProps({key:1},e,{"onUpdate:modelValue":o[2]||(o[2]=s=>r.$emit("update:modelValue",s)),"onUpdate:comment":o[3]||(o[3]=s=>r.$emit("update:comment",s))}),null,16)):(i.openBlock(),i.createBlock(eh,i.mergeProps({key:0},e,{"onUpdate:modelValue":o[0]||(o[0]=s=>r.$emit("update:modelValue",s)),"onUpdate:comment":o[1]||(o[1]=s=>r.$emit("update:comment",s))}),null,16))}}),UZ=i.defineComponent({__name:"DigitalNewsEditor",props:{mode:{default:De.EDITOR},isMobile:{type:Boolean},superTextArea:{},modelValue:{},comment:{},commentCuesheet:{},hideComment:{type:Boolean},disableSuperInput:{type:Boolean},fontSizeDefault:{},fontFamilyDefault:{},isOpenSuperView:{type:Boolean},output:{},dark:{type:Boolean},disabled:{type:Boolean},hideToolbar:{type:Boolean},isShowFormatControlBar:{type:Boolean},titleBarComment:{},titleBarContent:{},fieldNameComment:{},fieldNameCommentCuesheet:{},fieldNameContent:{},fieldNameSuper:{},isScreenSplit:{},isShowLineNumber:{type:Boolean},hideMenubar:{type:Boolean},disableBubble:{type:Boolean},hideBubble:{type:Boolean},maxWidth:{},minHeight:{},maxHeight:{},height:{},extensions:{},editorClass:{},contentClass:{},isCompare:{type:Boolean},autoHeight:{type:Boolean},textAlert:{},toolBarClass:{},readonly:{type:Boolean},canEditSuperReadOnly:{type:Boolean},autoFocus:{type:Boolean,default:!0},superPreviewCustomClass:{},minChar:{}},setup(t){const e=t;return(n,r)=>{const o=eh,s=vc;return e.isMobile?(i.openBlock(),i.createBlock(s,i.mergeProps({key:1},e,{"onUpdate:modelValue":r[1]||(r[1]=a=>n.$emit("update:modelValue",a)),"onUpdate:comment":r[2]||(r[2]=a=>n.$emit("update:comment",a))}),null,16)):(i.openBlock(),i.createBlock(o,i.mergeProps({key:0},e,{"onUpdate:modelValue":r[0]||(r[0]=a=>n.$emit("update:modelValue",a))}),null,16))}}});var KS={exports:{}};(function(t){(function(){function e(W){return W===">"}function n(W){return W==="<"}function r(W){return/^\s+$/.test(W)}function o(W){var z=W.match(/^\s*<([^!>][^>]*)>\s*$/);return!!z&&z[1].trim().split(" ")[0]}function s(W){return!o(W)}function a(W){return/^<!--/.test(W)}function l(W){return/--\>$/.test(W)}var u,c=new RegExp("^<(iframe|object|math|svg|script|video|head|style|a)");function f(W){var z=u.exec(W);return z&&z[1]}function p(W,z){return W.substring(W.length-z.length-2)==="</"+z}function m(W){return/^\s*<[^>]+\/>\s*$/.test(W)}function g(W){var z=/^<img[\s>]/.test(W);return z||s(W)||f(W)||m(W)}function b(W){return{string:W,key:x(W)}}function y(W,z,R,q){this.segment=q,this.length=R,this.startInBefore=W+q.beforeIndex,this.startInAfter=z+q.afterIndex,this.endInBefore=this.startInBefore+this.length-1,this.endInAfter=this.startInAfter+this.length-1,this.segmentStartInBefore=W,this.segmentStartInAfter=z,this.segmentEndInBefore=this.segmentStartInBefore+this.length-1,this.segmentEndInAfter=this.segmentStartInAfter+this.length-1}function w(W){for(var z="char",R="",q="",Z=[],te=0;te<W.length;te++){var ne=W[te];switch(z){case"tag":var ye=f(R);ye?(z="atomic_tag",q=ye,R+=ne):a(R)?(z="html_comment",R+=ne):e(ne)?(R+=">",Z.push(b(R)),R="",r(ne)?z="whitespace":z="char"):R+=ne;break;case"atomic_tag":e(ne)&&p(R,q)?(R+=">",Z.push(b(R)),R="",q="",z="char"):R+=ne;break;case"html_comment":R+=ne,l(R)&&(R="",z="char");break;case"char":n(ne)?(R&&Z.push(b(R)),R="<",z="tag"):/\s/.test(ne)?(R&&Z.push(b(R)),R=ne,z="whitespace"):/[\w\d\#@]/.test(ne)?R+=ne:/&/.test(ne)?(R&&Z.push(b(R)),R=ne):(R+=ne,Z.push(b(R)),R="");break;case"whitespace":n(ne)?(R&&Z.push(b(R)),R="<",z="tag"):r(ne)?R+=ne:(R&&Z.push(b(R)),R=ne,z="char");break;default:throw new Error("Unknown mode "+z)}}return R&&Z.push(b(R)),Z}function x(W){var z=/^<img.*src=['"]([^"']*)['"].*>$/.exec(W);if(z)return'<img src="'+z[1]+'">';var R=/^<a.*href=['"]([^"']*)['"]/.exec(W);if(R)return'<a href="'+R[1]+'"></a>';var q=/^<object.*data=['"]([^"']*)['"]/.exec(W);if(q)return'<object src="'+q[1]+'"></object>';if(/^<(svg|math|video)[\s>]/.test(W)){var Z=W.indexOf('data-uuid="');if(Z!==-1){var te=W.slice(0,Z),ne=W.slice(Z+44);return te+ne}else return W}var ye=/^<iframe.*src=['"]([^"']*)['"].*>/.exec(W);if(ye)return'<iframe src="'+ye[1]+'"></iframe>';var Ce=/<([^\s>]+)[\s>]/.exec(W);return Ce?"<"+Ce[1].toLowerCase()+">":W&&W.replace(/(\s+|&nbsp;|&#160;)/g," ")}function S(W){return W.reduce(function(z,R,q){return z[R.key]?z[R.key].push(q):z[R.key]=[q],z},Object.create(null))}function C(W,z){return z.endInBefore<W.startInBefore&&z.endInAfter<W.startInAfter?-1:z.startInBefore>W.endInBefore&&z.startInAfter>W.endInAfter?1:0}function E(){this._root=null}E.prototype={add:function(W){var z={value:W,left:null,right:null},R=this._root;if(R)for(;;){var q=C(R.value,W);if(q===-1)if(R.left)R=R.left;else{R.left=z;break}else if(q===1)if(R.right)R=R.right;else{R.right=z;break}else break}else this._root=z},toArray:function(){function W(z,R){return z&&(W(z.left,R),R.push(z.value),W(z.right,R)),R}return W(this._root,[])}};function _(W){for(var z=W.beforeTokens,R=W.afterMap,q=null,Z=null,te=0;te<z.length;te++){var ne=!1,ye=z.length-te;if(Z&&ye<Z.length)break;var Ce=z[te];if(Ce.key===" "){q=te;continue}q===te-1&&(ne=!0);var He=R[Ce.key];He&&He.forEach(function(Se){var je=Z?Z.length:0,H=T(W,te,Se,je,ne);H&&H.length>je&&(Z=H)})}return Z}function T(W,z,R,q,Z){var te=W.beforeTokens,ne=W.afterTokens,ye=z+q,Ce=R+q;if(!(ye>=te.length||Ce>=ne.length)){if(q){var He=te[ye].key,Se=ne[Ce].key;if(He!==Se)return}for(var je=!0,H=1,Y=z+H,ae=R+H;je&&Y<te.length&&ae<ne.length;){var ue=te[Y].key,he=ne[ae].key;ue===he?(H++,Y=z+H,ae=R+H):je=!1}if(Z&&z>0&&R>0){var J=te[z-1].key,ve=ne[R-1].key;J===" "&&ve===" "&&(z--,R--,H++)}return new y(z,R,H,W)}}function A(W,z,R,q){return{beforeTokens:W,afterTokens:z,beforeMap:S(W),afterMap:S(z),beforeIndex:R,afterIndex:q}}function L(W){for(var z=new E,R,q=[W];q.length;)if(W=q.pop(),R=_(W),R&&R.length){if(R.segmentStartInBefore>0&&R.segmentStartInAfter>0){var Z=W.beforeTokens.slice(0,R.segmentStartInBefore),te=W.afterTokens.slice(0,R.segmentStartInAfter);q.push(A(Z,te,W.beforeIndex,W.afterIndex))}var ne=W.beforeTokens.slice(R.segmentEndInBefore+1),ye=W.afterTokens.slice(R.segmentEndInAfter+1),Ce=W.beforeIndex+R.segmentEndInBefore+1,He=W.afterIndex+R.segmentEndInAfter+1;ne.length&&ye.length&&q.push(A(ne,ye,Ce,He)),z.add(R)}return z.toArray()}function D(W,z){if(!W)throw new Error("Missing beforeTokens");if(!z)throw new Error("Missing afterTokens");var R=0,q=0,Z=[],te=A(W,z,0,0),ne=L(te);ne.push(new y(W.length,z.length,0,te));for(var ye=0;ye<ne.length;ye++){var Ce=ne[ye],He="none";R===Ce.startInBefore?q!==Ce.startInAfter&&(He="insert"):(He="delete",q!==Ce.startInAfter&&(He="replace")),He!=="none"&&Z.push({action:He,startInBefore:R,endInBefore:He!=="insert"?Ce.startInBefore-1:null,startInAfter:q,endInAfter:He!=="delete"?Ce.startInAfter-1:null}),Ce.length!==0&&Z.push({action:"equal",startInBefore:Ce.startInBefore,endInBefore:Ce.endInBefore,startInAfter:Ce.startInAfter,endInAfter:Ce.endInAfter}),R=Ce.endInBefore+1,q=Ce.endInAfter+1}var Se=[],je={action:"none"};function H(ue){return ue.action!=="equal"||ue.endInBefore-ue.startInBefore!==0?!1:/^\s$/.test(W.slice(ue.startInBefore,ue.endInBefore+1))}for(var Y=0;Y<Z.length;Y++){var ae=Z[Y];H(ae)&&je.action==="replace"||ae.action==="replace"&&je.action==="replace"?(je.endInBefore=ae.endInBefore,je.endInAfter=ae.endInAfter):(Se.push(ae),je=ae)}return Se}function M(W){this.tokens=W,this.notes=W.reduce(function(z,R,q){z.notes.push({isWrappable:g(R),insertedTag:!1});var Z=!m(R)&&o(R),te=z.tagStack[z.tagStack.length-1];return Z&&(te&&"/"+te.tag===Z?(z.notes[te.position].insertedTag=!0,z.tagStack.pop()):z.tagStack.push({tag:Z,position:q})),z},{notes:[],tagStack:[]}).notes}M.prototype.combine=function(W,z){var R=this.notes,q=this.tokens.slice(),Z=q.reduce(function(te,ne,ye){R[ye].insertedTag&&(q[ye]=z(q[ye])),te.status===null&&(te.status=R[ye].isWrappable);var Ce=R[ye].isWrappable;return Ce!==te.status&&(te.list.push({isWrappable:te.status,tokens:q.slice(te.lastIndex,ye)}),te.lastIndex=ye,te.status=Ce),ye===q.length-1&&te.list.push({isWrappable:te.status,tokens:q.slice(te.lastIndex,ye+1)}),te},{list:[],status:null,lastIndex:0}).list;return Z.map(W).join("")};function $(W,z,R,q,Z){var te=new M(z);q=q?q+"-":"";var ne=" data-"+q+'operation-index="'+R+'"';return Z&&(ne+=' class="'+Z+'"'),te.combine(function(ye){if(ye.isWrappable){var Ce=ye.tokens.join("");if(Ce.trim())return"<"+W+ne+">"+Ce+"</"+W+">"}else return ye.tokens.join("");return""},function(ye){var Ce=' data-diff-node="'+W+'"';return Ce+=" data-"+q+'operation-index="'+R+'"',ye.replace(/>\s*$/,Ce+"$&")})}var j={equal:function(W,z,R,q,Z,te){var ne=R.slice(W.startInAfter,W.endInAfter+1);return ne.reduce(function(ye,Ce){return ye+Ce.string},"")},insert:function(W,z,R,q,Z,te){var ne=R.slice(W.startInAfter,W.endInAfter+1),ye=ne.map(function(Ce){return Ce.string});return $("ins",ye,q,Z,te)},delete:function(W,z,R,q,Z,te){var ne=z.slice(W.startInBefore,W.endInBefore+1),ye=ne.map(function(Ce){return Ce.string});return $("del",ye,q,Z,te)},replace:function(){return j.delete.apply(null,arguments)+j.insert.apply(null,arguments)}};function X(W,z,R,q,Z){return R.reduce(function(te,ne,ye){return te+j[ne.action](ne,W,z,ye,q,Z)},"")}function se(W,z,R,q,Z){if(W===z)return W;Z?u=new RegExp("^<("+Z.replace(/\s*/g,"").replace(/,/g,"|")+")"):u=c,W=w(W),z=w(z);var te=D(W,z);return X(W,z,te,q,R)}se.htmlToTokens=w,se.findMatchingBlocks=L,L.findBestMatch=_,L.createMap=S,L.createToken=b,L.createSegment=A,L.getKeyForToken=x,se.calculateOperations=D,se.renderOperations=X,t!==null?t.exports=se:this.htmldiff=se}).call(Xa)})(KS);var WZ=KS.exports;const jZ=FB(WZ),GS=(t,e,n)=>{let r="";{const o=Pn(t,n),s=Pn(e,n);r=jZ(o,s,null,null,"button")}return r=r.replace(/<del[^>]*>/g,'<mark style="background:#ffa8a8;color:white;">').replace(/<\/del>/g,"</mark>").replace(/<ins[^>]*>/g,'<mark style="background:#42424266;">').replace(/<\/ins>/g,"</mark>"),r},qZ={class:"border border-ed-gray rounded-[5px] p-2.5 flex-1 overflow-y-auto"},KZ={class:"border border-ed-gray rounded-[5px] p-2.5 h-full"},GZ={class:"border border-ed-gray rounded-[5px] p-2.5 flex-1 overflow-y-auto"},XZ=_o(i.defineComponent({__name:"ArticleCompareEditor",props:{originalData:{},changedData:{},extensions:{},editorClass:{}},setup(t){const e=t,n=i.ref(!1),r=i.computed(()=>!e.originalData||!e.changedData?{comment:"",content:""}:{comment:GS(e.originalData.comment,e.changedData.comment,!0),content:GS(e.originalData.content,e.changedData.content,!0)}),{showMenuSplitter:o,menuX:s,menuY:a,commentSize:l,contentSize:u,setupSplitterListeners:c,removeSplitterListeners:f,iconSplitSelected:p,clickIconSplitter:m}=nh();i.onMounted(()=>{c()}),i.onUnmounted(()=>{f()});const g=i.ref();return at.onClickOutside(g,b=>{o.value=!1}),(b,y)=>{const w=Gb;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{class:i.normalizeClass(i.unref(Ae)("h-full",b.editorClass))},[i.createVNode(i.unref(Kb),{horizontal:"",onReady:i.unref(c),onResized:i.unref(c)},{default:i.withCtx(()=>[i.createVNode(i.unref(ha),{size:i.unref(l),class:"flex flex-col"},{default:i.withCtx(()=>{var x,S,C,E,_,T;return[(S=(x=b.originalData)==null?void 0:x.titleBar)!=null&&S.title?(i.openBlock(),i.createBlock(w,{key:0,"title-bar":b.originalData.titleBar,class:"text-[12px] mb-[3px]"},null,8,["title-bar"])):i.createCommentVNode("",!0),i.createElementVNode("div",qZ,[i.createVNode(vc,{"editor-class":"h-full",mode:i.unref(De).REPORT,disabled:"","hide-toolbar":"",extensions:b.extensions,"field-name-comment":(C=b.originalData)==null?void 0:C.fieldNameComment,"field-name-content":(E=b.originalData)==null?void 0:E.fieldNameContent,comment:(_=b.originalData)==null?void 0:_.comment,"model-value":(T=b.originalData)==null?void 0:T.content},null,8,["mode","extensions","field-name-comment","field-name-content","comment","model-value"])])]}),_:1},8,["size"]),i.unref(n)?(i.openBlock(),i.createBlock(i.unref(ha),{key:0},{default:i.withCtx(()=>{var x,S,C,E;return[i.createElementVNode("div",KZ,[i.createVNode(vc,{"editor-class":"h-full",mode:i.unref(De).REPORT,disabled:"","hide-toolbar":"",extensions:b.extensions,"field-name-comment":(x=b.changedData)==null?void 0:x.fieldNameComment,"field-name-content":(S=b.changedData)==null?void 0:S.fieldNameContent,comment:(C=b.changedData)==null?void 0:C.comment,"model-value":(E=b.changedData)==null?void 0:E.content},null,8,["mode","extensions","field-name-comment","field-name-content","comment","model-value"])])]}),_:1})):i.createCommentVNode("",!0),i.createVNode(i.unref(ha),{size:i.unref(u),class:"flex flex-col"},{default:i.withCtx(()=>{var x,S,C,E,_;return[(S=(x=b.changedData)==null?void 0:x.titleBar)!=null&&S.title?(i.openBlock(),i.createBlock(w,{key:0,"title-bar":(C=b.changedData)==null?void 0:C.titleBar,class:"text-[12px] mb-[3px]","custom-class":"bg-[#34c759]"},null,8,["title-bar"])):i.createCommentVNode("",!0),i.createElementVNode("div",GZ,[i.createVNode(vc,{"editor-class":"h-full",mode:i.unref(De).REPORT,disabled:"","hide-toolbar":"",extensions:b.extensions,"field-name-comment":(E=b.changedData)==null?void 0:E.fieldNameComment,"field-name-content":(_=b.changedData)==null?void 0:_.fieldNameContent,comment:i.unref(r).comment,"model-value":i.unref(r).content},null,8,["mode","extensions","field-name-comment","field-name-content","comment","model-value"])])]}),_:1},8,["size"])]),_:1},8,["onReady","onResized"])],2),i.unref(o)?(i.openBlock(),i.createBlock(Xb,{key:0,ref_key:"splitRef",ref:g,"icon-split-selected":i.unref(p),"menu-x":i.unref(s),"menu-y":i.unref(a),onOnChangeSplit:i.unref(m)},null,8,["icon-split-selected","menu-x","menu-y","onOnChangeSplit"])):i.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-0ac94213"]]),XS=t=>{if(!t)return-1;const{from:e}=t.state.selection;let n=0;return t.state.doc.descendants((r,o)=>{r.type.name===yp&&o<e&&n++}),n},YZ=i.defineComponent({__name:"SuperViewMobileSuperEditor",props:{isMobile:{type:Boolean},superTextArea:{},mode:{},modelValue:{default:""},comment:{},commentCuesheet:{},hideComment:{type:Boolean},disableSuperInput:{type:Boolean,default:!1},fontSizeDefault:{},fontFamilyDefault:{},isOpenSuperView:{type:Boolean},output:{default:"html"},dark:{type:Boolean,default:void 0},disabled:{type:Boolean},hideToolbar:{type:Boolean,default:!1},isShowFormatControlBar:{type:Boolean},titleBarComment:{},titleBarContent:{},fieldNameComment:{},fieldNameCommentCuesheet:{},fieldNameContent:{},fieldNameSuper:{default:null},isScreenSplit:{},isShowLineNumber:{type:Boolean},hideMenubar:{type:Boolean},disableBubble:{type:Boolean,default:!1},hideBubble:{type:Boolean,default:!1},maxWidth:{default:void 0},minHeight:{default:600},maxHeight:{default:void 0},height:{},extensions:{default:()=>[]},editorClass:{},contentClass:{},isCompare:{type:Boolean},autoHeight:{type:Boolean},textAlert:{},toolBarClass:{},readonly:{type:Boolean},canEditSuperReadOnly:{type:Boolean},autoFocus:{type:Boolean},superPreviewCustomClass:{},minChar:{}},emits:["enter","change","update:modelValue","update:comment","onFocusEditor","changed:selection","setEditorSelected","onBlurEditor","lineFocus","onFocus","onBlur"],setup(t,{expose:e,emit:n}){const r=t,o=n,s=i.computed(()=>r.mode===De.EDITOR),a=at.useEventBus(ir.RENDER_SUPER_TEXT),l=vn(),{isReady:u,editor:c,updateEditorState:f,checkSpellStore:p}=l,m=i.ref(!1);i.provide("isEditable",m);const g=at.useDark(),b=i.ref(d4(r.modelValue));function y(T){if(r.disabled||r.readonly)return;const A=XS(T);o("lineFocus",{lineIndex:A})}function w(){o("lineFocus",{lineIndex:void 0})}const x=new No({enablePasteRules:!1,enableInputRules:!1,content:b.value,onCreate:({editor:T})=>{f(T)},onUpdate:it.throttle(({editor:T})=>{u.value=!0;const A=_(T,r.output);o("update:modelValue",A),o("change",{editor:T,output:A}),f(T)},ko),extensions:it.uniqBy(it.reverse(i.unref(r.extensions)),"name"),editable:m.value,onFocus:()=>{C(),S.value=!0,y(x)},onBlur:()=>{S.value=!1,w()},onSelectionUpdate:()=>{y(x)}}),S=i.ref(!1);function C(){o("setEditorSelected",x)}function E(){a.emit({action:"render"})}function _(T,A){if(!T)return"";if(T.isEmpty)return A==="json"?{}:"";switch(A){case"html":return T.getHTML();case"json":return T.getJSON();case"text":return T.getText();default:return""}}return i.watch(()=>r.dark,()=>at.useToggle(g)),i.watch(()=>p.languages,()=>{x.commands.checkSpelling()}),i.watch(()=>r.modelValue,T=>{if(!x||it.isEqual(_(x,r.output),T))return;const{from:A,to:L}=x.state.selection;x.commands.setTextSelection({from:A,to:L}),E(),b.value=d4(T)},{deep:!0}),i.watch(()=>c.value,()=>{c.value&&c.value.on("selectionUpdate",({editor:T})=>{o("changed:selection",{editor:T})})}),i.watch(()=>r.disableSuperInput,()=>{const T=document.getElementById(nr.COMMENT);T==null||T.setAttribute(nr.DISABLE_SUPER_INPUT,`${r.disableSuperInput}`)}),i.onUnmounted(()=>x==null?void 0:x.destroy()),bc(x),i.onMounted(()=>{var T,A;(T=x==null?void 0:x.commands)!=null&&T.setIsEnableSuggestion&&x.commands.setIsEnableSuggestion(!1),(A=x==null?void 0:x.commands)!=null&&A.setIsMobile&&x.commands.setIsMobile(!0)}),e({editor:x}),(T,A)=>{var D;const L=th;return i.openBlock(),i.createElementBlock(i.Fragment,null,[(D=T.fieldNameSuper)!=null&&D.label?(i.openBlock(),i.createBlock(L,{key:0,"field-name":T.fieldNameSuper,mode:T.mode,disabled:T.disabled,class:"mb-1",intent:"secondary"},null,8,["field-name","mode","disabled"])):i.createCommentVNode("",!0),i.createVNode(qb,{editor:i.unref(x),mode:T.mode,"disable-super-input":""},{default:i.withCtx(()=>[i.createVNode(i.unref(Eo),{editor:i.unref(x),spellcheck:"true",class:i.normalizeClass(["flex-1 flex-col",!i.unref(s)&&"[&_*:not(.super-text)]:!text-inherit"])},null,8,["editor","class"])]),_:1},8,["editor","mode"])],64)}}}),JZ=(t,e)=>{let n=null;return t.state.doc.descendants((r,o)=>{if(r.type.name==="paragraph"&&Number(r.attrs["number-line"])===e)return n={node:r,pos:o},!1}),n},YS="focused-line";async function JS({lineIndex:t,editor:e}){if(e.state.doc.descendants((l,u)=>{if(l.attrs.class===YS){const c=e.state.tr.setNodeMarkup(u,void 0,{...l.attrs,class:""});return e.view.dispatch(c),!1}}),await i.nextTick(),!t)return;const n=JZ(e,t);if(!n)return;const{node:r,pos:o}=n,s=e.state.tr.setNodeMarkup(o,void 0,{...r.attrs,class:YS});e.view.dispatch(s),await i.nextTick(),e.view.nodeDOM(o).scrollIntoView({behavior:"smooth"})}const ZZ=i.defineComponent({__name:"SuperViewMobileEditor",props:{isMobile:{type:Boolean},superTextArea:{},mode:{},modelValue:{default:""},comment:{default:""},commentCuesheet:{},hideComment:{type:Boolean},disableSuperInput:{type:Boolean},fontSizeDefault:{default:"12px"},fontFamilyDefault:{default:""},isOpenSuperView:{type:Boolean},output:{default:"html"},dark:{type:Boolean},disabled:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:!1},isShowFormatControlBar:{type:Boolean},titleBarComment:{},titleBarContent:{},fieldNameComment:{},fieldNameCommentCuesheet:{},fieldNameContent:{default:null},fieldNameSuper:{default:null},isScreenSplit:{},isShowLineNumber:{type:Boolean},hideMenubar:{type:Boolean},disableBubble:{type:Boolean},hideBubble:{type:Boolean,default:!1},maxWidth:{default:void 0},minHeight:{default:200},maxHeight:{default:void 0},height:{default:void 0},extensions:{default:()=>[]},editorClass:{default:void 0},contentClass:{default:void 0},isCompare:{type:Boolean},autoHeight:{type:Boolean},textAlert:{},toolBarClass:{default:void 0},readonly:{type:Boolean,default:!1},canEditSuperReadOnly:{type:Boolean},autoFocus:{type:Boolean},superPreviewCustomClass:{},minChar:{}},emits:["enter","change","update:modelValue","update:comment","onFocusEditor","changed:selection","setEditorSelected","onBlurEditor","lineFocus","onFocus","onBlur"],setup(t,{expose:e,emit:n}){const r=t,o=n;i.provide("isMobile",!0);const s=i.computed(()=>r.mode===De.EDITOR),a=at.useEventBus(ir.INCREASE_DECREASE_FONTSIZE);i.useAttrs();const l=vn(),{state:u,isFullscreen:c,isReady:f,editor:p,updateEditorState:m,checkSpellStore:g}=l,b=i.ref(!1);i.provide("isEditable",b);const y=i.ref(void 0),w=i.ref(),x=i.computed(()=>[...u.extensions,...it.differenceBy(r.extensions,u.extensions,"name")].map((H,Y)=>H.configure({sort:Y}))),S=i.ref(r.fontSizeDefault),C=i.ref(r.fontFamilyDefault);i.provide("fontSize",S),i.provide("fontFamily",C);const E=i.computed(()=>({fontFamily:C.value,fontSize:S.value})),_=i.ref(),T=H=>{const Y=parseInt(S.value||"12px"),ae=H?Y+2:Y-2;S.value=ae+"px"};i.onBeforeMount(()=>{a.on(T)}),i.onBeforeUnmount(()=>{a.off(T)});const A=i.computed(()=>({...i.unref(c)?{height:"100%"}:{minHeight:r.minHeight?an(r.minHeight):void 0,maxHeight:r.maxHeight?an(r.maxHeight):void 0,height:r.height?an(r.height):void 0},maxWidth:an(r.maxWidth),width:r.maxWidth?"100%":void 0,margin:r.maxWidth?"0 auto":void 0}));function L(H){if(r.disabled||r.readonly)return;const Y=XS(H);y.value=Y}function D(){y.value=void 0}const M=new No({enablePasteRules:!1,enableInputRules:!1,content:Pn(r.modelValue,r.disabled,r.mode),onCreate:({editor:H})=>{m(H)},onUpdate:it.throttle(({editor:H})=>{f.value=!0;const Y=W(H,r.output);o("update:modelValue",Y),o("change",{editor:H,output:Y}),m(H)},ko),extensions:it.uniqBy(it.reverse(i.unref(x)),"name"),editable:b.value,onFocus:()=>{se(),$.value=!0,L(M)},onBlur:()=>{$.value=!1,D()},onSelectionUpdate:()=>{L(M)}}),$=i.ref(!1),j=i.ref();i.onMounted(()=>{j.value=M});const X=({lineIndex:H})=>{var ae;M&&JS({lineIndex:H,editor:M});const Y=(ae=w.value)==null?void 0:ae.editor;Y&&JS({lineIndex:H,editor:Y})};i.watch(()=>y.value,H=>{o("lineFocus",{lineIndex:H}),X({lineIndex:H})},{immediate:!0});function se(H){j.value=M}function W(H,Y){if(!H)return"";if(H.isEmpty)return Y==="json"?{}:"";switch(Y){case"html":return H.getHTML();case"json":return H.getJSON();case"text":return H.getText({blockSeparator:`
291
291
  `});default:return""}}function z(H){return H.every(Y=>M==null?void 0:M.extensionManager.extensions.find(ae=>ae.name===Y))}i.watch(()=>g.languages,()=>{M.commands.checkSpelling()}),i.watch(()=>r.modelValue,H=>{if(!M||it.isEqual(W(M,r.output),H))return;const{from:Y,to:ae}=M.state.selection;M.commands.setTextSelection({from:Y,to:ae}),M.commands.setContent(Pn(H,r.disabled,r.mode),!1)},{deep:!0}),i.watch(()=>p.value,()=>{p.value&&p.value.on("selectionUpdate",({editor:H})=>{o("changed:selection",{editor:H})})}),i.onUnmounted(()=>{var H;M==null||M.destroy(),(H=j.value)==null||H.destroy()}),Gu(Eu.SAVE,()=>{localStorage.setItem("content",W(M,"html"))}),i.onMounted(()=>{var H,Y;(H=M==null?void 0:M.commands)!=null&&H.setIsEnableSuggestion&&M.commands.setIsEnableSuggestion(!1),(Y=M==null?void 0:M.commands)!=null&&Y.setIsMobile&&M.commands.setIsMobile(!0)});const{showMenuSplitter:R,menuX:q,menuY:Z,commentSize:te,contentSize:ne,setupSplitterListeners:ye,removeSplitterListeners:Ce,iconSplitSelected:He,clickIconSplitter:Se}=nh();i.onMounted(()=>{ye()}),i.onUnmounted(()=>{Ce()});const je=i.ref();return at.onClickOutside(je,H=>{R.value=!1}),bc(M),e({editor:M}),(H,Y)=>{const ae=Np,ue=Qp,he=Zp,J=Of,ve=qS,Me=th;return i.openBlock(),i.createElementBlock(i.Fragment,null,[j.value?(i.openBlock(),i.createElementBlock("div",{key:0,id:"vdc-editor",ref_key:"editorRef",ref:_,style:i.normalizeStyle(A.value),class:i.normalizeClass(i.unref(Ae)("vdc-editor moblie relative w-full flex flex-col editor-line-number editor-line",!r.height&&"flex-1",H.editorClass))},[!H.hideBubble&&!H.disabled&&b.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[z([i.unref(ac)])?(i.openBlock(),i.createBlock(ae,{key:0,editor:i.unref(M)},null,8,["editor"])):i.createCommentVNode("",!0),z([i.unref(sa)])?(i.openBlock(),i.createBlock(ue,{key:1,editor:i.unref(M)},null,8,["editor"])):i.createCommentVNode("",!0),z([i.unref(us)])?(i.openBlock(),i.createBlock(he,{key:2,editor:i.unref(M)},null,8,["editor"])):i.createCommentVNode("",!0),z([i.unref(cs),i.unref(ds)])?(i.openBlock(),i.createBlock(J,{key:3,editor:i.unref(M)},null,8,["editor"])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),H.hideToolbar?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(ve,{key:1,editor:j.value,mode:H.mode,disabled:H.disabled,class:i.normalizeClass(["mb-[3px]",H.toolBarClass]),"active-extensions":[lc]},null,8,["editor","mode","disabled","class","active-extensions"])),i.createVNode(i.unref(Kb),{class:i.normalizeClass(i.unref(Ae)("flex flex-col [&_*]:!font-inherit [&_*]:!text-font-size-inherit",!s.value&&"[&_*]:!no-underline [&_*]:!font-normal",C.value&&"[&_*]:!font-inherit",S.value&&"[&_*]:!text-font-size-inherit")),style:i.normalizeStyle({...E.value}),horizontal:"",onReady:i.unref(ye),onResized:i.unref(ye)},{default:i.withCtx(()=>[i.createVNode(i.unref(ha),{size:i.unref(te),class:"border-none p-0 flex flex-col bg-[#EEEEEE]"},{default:i.withCtx(()=>{var Ue;return[i.createElementVNode("div",{class:i.normalizeClass(i.unref(Ae)("flex-1 !overflow-y-auto basis-0 flex flex-col pt-1.5 p-2.5 border border-ed-gray rounded-[5px]",H.contentClass))},[(Ue=H.fieldNameContent)!=null&&Ue.label?(i.openBlock(),i.createBlock(Me,{key:0,"field-name":H.fieldNameContent,mode:H.mode,disabled:H.disabled,class:"mb-1"},null,8,["field-name","mode","disabled"])):i.createCommentVNode("",!0),i.createVNode(i.unref(Eo),{editor:i.unref(M),spellcheck:"true",class:i.normalizeClass(["flex-1 flex-col",!s.value&&"[&_*:not(.super-text)]:!text-inherit"])},null,8,["editor","class"])],2)]}),_:1},8,["size"]),i.createVNode(i.unref(ha),{size:i.unref(ne),class:"border-none p-0 flex flex-col"},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(i.unref(Ae)("flex-1 !overflow-y-auto basis-0 flex flex-col pt-1.5 p-2.5 border border-ed-gray rounded-[5px]",$.value&&"border-ed-blue",H.disabled&&"border-transparent",H.contentClass))},[i.createVNode(YZ,{ref_key:"superEditorRef",ref:w,mode:H.mode,"field-name-super":H.fieldNameSuper,extensions:H.extensions,"model-value":H.modelValue,disabled:H.disabled,readonly:H.readonly,onLineFocus:X},null,8,["mode","field-name-super","extensions","model-value","disabled","readonly"])],2)]),_:1},8,["size"])]),_:1},8,["class","style","onReady","onResized"])],6)):i.createCommentVNode("",!0),i.unref(R)&&!H.disabled?(i.openBlock(),i.createBlock(Xb,{key:1,ref_key:"splitToastRef",ref:je,"icon-split-selected":i.unref(He),"menu-x":i.unref(q),"menu-y":i.unref(Z),onOnChangeSplit:i.unref(Se)},null,8,["icon-split-selected","menu-x","menu-y","onOnChangeSplit"])):i.createCommentVNode("",!0)],64)}}}),ZS={"editor.remove":"Remove","editor.copy":"Copy","editor.words":"WORDS","editor.characters":"CHARACTERS","editor.default":"Default","editor.recent":"Recently Used","editor.nofill":"Remove Color","editor.format":"Format Painter","editor.close":"Close","editor.modify":"Modify","editor.preview.tooltip":"Preview","editor.draghandle.tooltip":"Click And Drag","editor.copyToClipboard":"CopyToClipboard","editor.importWord.tooltip":"Import from Word","editor.importWord.success":"Import Success","editor.importWord.fileTooLarge":"File is Too large","editor.importWord.error":"Import Failed, File not supported","editor.slash":"Press '/' for commands","editor.slash.empty":"No Result","editor.slash.format":"Format","editor.slash.insert":"Insert","editor.slash.embed":"Embed Services","editor.content":"Please input content","editor.slash.hint":"Please input content","editor.moremark":"More Text Styles","editor.size.small.tooltip":"Small","editor.size.medium.tooltip":"Medium","editor.size.large.tooltip":"Cover","editor.bold.tooltip":"Bold","editor.italic.tooltip":"Italic","editor.underline.tooltip":"Underline","editor.strike.tooltip":"Strike","editor.color.tooltip":"Color","editor.color.more":"Color Picker","editor.highlight.tooltip":"Highlight","editor.lineheight.tooltip":"Line Height","editor.heading.tooltip":"Headings","editor.heading.h1.tooltip":"Heading 1","editor.heading.h2.tooltip":"Heading 2","editor.heading.h3.tooltip":"Heading 3","editor.heading.h4.tooltip":"Heading 4","editor.heading.h5.tooltip":"Heading 5","editor.heading.h6.tooltip":"Heading 6","editor.paragraph.tooltip":"Paragraph","editor.textalign.tooltip":"Align","editor.textalign.left.tooltip":"Left","editor.textalign.center.tooltip":"Center","editor.textalign.right.tooltip":"Right","editor.textalign.justify.tooltip":"Justify","editor.indent":"Indent","editor.indent.indent":"Increase Indent","editor.indent.outdent":"Decrease Indent","editor.fontFamily.tooltip":"Font family","editor.fontFamily.default":"Default","editor.fontFamily.gulim":"Gulim","editor.fontFamily.dotum":"Dotum","editor.fontFamily.gungsuh":"Gungsuh","editor.fontSize.tooltip":"Font size","editor.fontSize.default.tooltip":"Default","editor.superscript.tooltip":"Superscript","editor.subscript.tooltip":"Subscript","editor.bulletlist.tooltip":"Bullet List","editor.bulletlist.disc.tooltip":"Disc","editor.bulletlist.circle.tooltip":"Circle","editor.bulletlist.square.tooltip":"Square","editor.orderedlist.tooltip":"Ordered List","editor.orderedlist.decimal.tooltip":"Decimal","editor.orderedlist.decimalLeadingZero.tooltip":"Decimal with leading zero","editor.orderedlist.lowerRoman.tooltip":"Lower Roman","editor.orderedlist.upperRoman.tooltip":"Upper Roman","editor.orderedlist.lowerLatin.tooltip":"Lower Latin","editor.orderedlist.upperLatin.tooltip":"Upper Latin","editor.orderedlist.tradChineseInformal.tooltip":"Trad Chinese Informal","editor.orderedlist.simpChineseFormal.tooltip":"Simp Chinese Informal","editor.tasklist.tooltip":"Task List","editor.indent.tooltip":"Indent","editor.outdent.tooltip":"Outdent","editor.columns.tooltip":"Columns","editor.link.tooltip":"Link","editor.link.unlink.tooltip":"UnLink","editor.link.open.tooltip":"Open Link","editor.link.edit.tooltip":"Edit Link","editor.link.dialog.title":"Insert Link","editor.link.dialog.link":"Link","editor.link.dialog.text":"Text","editor.link.dialog.openInNewTab":"Open In New Tab","editor.link.dialog.link.placeholder":"Link Address","editor.link.dialog.text.placeholder":"Add Description","editor.link.dialog.button.apply":"Apply","editor.image.tooltip":"Image","editor.image.menu.flipX":"Flip vertical","editor.image.menu.flipY":"Flip horizontal","editor.image.menu.size":"Set Size","editor.image.menu.size.width":"Width","editor.image.menu.size.height":"Height","editor.image.dragger.tooltip":"Click or drag the image to the area to upload","editor.image.float.left.tooltip":"Float left","editor.image.float.none.tooltip":"Float none","editor.image.float.right.tooltip":"Float right","editor.image.dialog.title":"Add an image","editor.image.dialog.tab.url":"Url","editor.image.dialog.tab.upload":"Upload","editor.image.dialog.uploading":"Uploading","editor.image.dialog.form.link":"Link","editor.image.dialog.placeholder":"Link","editor.image.dialog.form.alt":"Alt","editor.image.dialog.form.aspectRatio":"Lock original aspect ratio","editor.image.dialog.form.file":"File","editor.image.dialog.button.apply":"apply","editor.video.tooltip":"Video","editor.video.dialog.tab.upload":"Upload","editor.video.dialog.uploading":"Uploading","editor.video.dialog.title":"Embed or upload a video","editor.video.dialog.link":"link","editor.video.dialog.placeholder":"Link","editor.video.dialog.button.apply":"apply","editor.table.tooltip":"Table","editor.table.menu.insert_table":"Insert Table","editor.table.menu.insert_table.with_header_row":"With header row","editor.table.menu.insertColumnBefore":"Insert Column Before","editor.table.menu.insertColumnAfter":"Insert Column After","editor.table.menu.deleteColumn":"Delete Column","editor.table.menu.insertRowAbove":"Insert Row Above","editor.table.menu.insertRowBelow":"Insert Row Below","editor.table.menu.deleteRow":"Delete Row","editor.table.menu.mergeCells":"Merge Cells","editor.table.menu.splitCells":"Split Cells","editor.table.menu.deleteTable":"Delete Table","editor.table.menu.setCellsBgColor":"Cell Background Color","editor.blockquote.tooltip":"Blockquote","editor.horizontalrule.tooltip":"Horizontal Rule","editor.code.tooltip":"Code","editor.codeblock.tooltip":"Code Block","editor.clear.tooltip":"Clear Format","editor.undo.tooltip":"Undo","editor.redo.tooltip":"Redo","editor.fullscreen.tooltip.fullscreen":"Fullscreen","editor.fullscreen.tooltip.exit":"Fullscreen Exit","editor.imageUpload.fileTypeNotSupported":"File type not supported","editor.imageUpload.fileSizeTooBig":"File size too big, Maximum size is","editor.AI.placeholder":"Ask AI ...","editor.AI.generating":"Generating","editor.AI.insert":"Insert below selection","editor.AI.replace":"Replace selected content","editor.AI.regenerate":"Regenerate","editor.AI.close":"Close","editor.AI.stop":"Stop","editor.AI.ask":"Ask AI","editor.menubar.file":"File","editor.menubar.edit":"Edit","editor.menubar.view":"View","editor.menubar.insert":"Insert","editor.menubar.format":"Format","editor.menubar.menu.newDoc":"New Document","editor.menubar.menu.restoreLastDraft":"Restore last draft","editor.menubar.menu.print":"Print","editor.menubar.menu.cut":"Cut","editor.menubar.menu.copy":"Copy","editor.menubar.menu.paste":"Paste","editor.menubar.menu.pasteAsText":"Paste as text","editor.menubar.menu.selectAll":"Select all","editor.menubar.menu.preview":"Preview","editor.menubar.menu.spellCheck":"Spell check","editor.menubar.menu.spelling":"spelling","editor.menubar.menu.superView":"Super view","editor.menubar.menu.insertSuper":"Insert super","editor.menubar.menu.articleContent":"Article content","editor.menubar.menu.articleComment":"Article comment","editor.menubar.menu.cancel":"Cancel","editor.menubar.menu.save":"Save","editor.findAndReplace.tooltip":"Find and replace","editor.findAndReplace.find":"Find","editor.findAndReplace.replace":"Replace","editor.findAndReplace.replaceAll":"Replace All","editor.findAndReplace.caseSensitive":"Case Sensitive","editor.printer.tooltip":"Print","editor.superinput":"Super input","editor.insert.symbol":"Insert symbol","editor.check":"Check","editor.detail":"Detail","editor.inputSuper":"Input Super","editor.insertSpecial":"Special characters","editor.cut":"Cut","editor.paste":"Paste","editor.selectAll":"SelectAll","editor.delete":"Delete","editor.super.edit":"Super edit","editor.super.delete":"Super delete","editor.configPlan.edit":"Config plan edit","editor.configPlan.delete":"Config plan delete","editor.super":"Super","editor.configPlan":"Config plan","editor.insertConfigPlan":"Insert config plan","editor.alert":"Super has been changed. Super ID will be deleted.","editor.alertConfirm":"Confirm","editor.alertYes":"OK"},QS={"editor.remove":"제거","editor.copy":"복사","editor.words":"낱말","editor.characters":"문자","editor.default":"기본값","editor.recent":"최근 사용됨","editor.nofill":"색상 제거","editor.format":"형식 페인터","editor.close":"닫기","editor.modify":"수정","editor.preview.tooltip":"미리보기","editor.draghandle.tooltip":"클릭하여 드래그","editor.copyToClipboard":"클립보드에 복사","editor.importWord.tooltip":"Word에서 가져오기","editor.importWord.success":"가져오기 성공","editor.importWord.fileTooLarge":"파일이 너무 큽니다","editor.importWord.error":"가져오기 실패, 파일이 지원되지 않음","editor.slash":"명령을 보려면 '/'를 누르세요.","editor.slash.empty":"결과 없음","editor.slash.format":"형식","editor.slash.insert":"삽입","editor.slash.embed":"서비스 삽입","editor.content":"내용을 입력해주세요","editor.slash.hint":"내용을 입력해주세요","editor.moremark":"추가 텍스트 스타일","editor.size.small.tooltip":"작음","editor.size.medium.tooltip":"중간","editor.size.large.tooltip":"표지","editor.bold.tooltip":"굵게","editor.italic.tooltip":"기울임꼴","editor.underline.tooltip":"밑줄","editor.strike.tooltip":"스트라이크","editor.color.tooltip":"색상","editor.color.more":"색상 선택기","editor.highlight.tooltip":"강조 표시","editor.lineheight.tooltip":"줄 높이","editor.heading.tooltip":"제목","editor.heading.h1.tooltip":"제목 1","editor.heading.h2.tooltip":"제목 2","editor.heading.h3.tooltip":"제목 3","editor.heading.h4.tooltip":"제목 4","editor.heading.h5.tooltip":"제목 5","editor.heading.h6.tooltip":"제목 6","editor.paragraph.tooltip":"단락","editor.textalign.tooltip":"정렬","editor.textalign.left.tooltip":"왼쪽","editor.textalign.center.tooltip":"가운데","editor.textalign.right.tooltip":"오른쪽","editor.textalign.justify.tooltip":"정렬","editor.indent":"들여쓰기","editor.indent.indent":"들여쓰기","editor.indent.outdent":"들여쓰기 줄이기","editor.fontFamily.tooltip":"글꼴 모음","editor.fontFamily.default":"기본값","editor.fontFamily.gulim":"굴림","editor.fontFamily.dotum":"돋움","editor.fontFamily.gungsuh":"궁서","editor.fontSize.tooltip":"글꼴 크기","editor.fontSize.default.tooltip":"기본값","editor.superscript.tooltip":"위 첨자","editor.subscript.tooltip":"아래첨자","editor.bulletlist.tooltip":"글머리 기호 목록","editor.bulletlist.disc.tooltip":"디스크","editor.bulletlist.circle.tooltip":"원","editor.bulletlist.square.tooltip":"사각형","editor.orderedlist.tooltip":"순서가 지정된 목록","editor.orderedlist.decimal.tooltip":"십진수","editor.orderedlist.decimalLeadingZero.tooltip":"앞에 0이 있는 십진수","editor.orderedlist.lowerRoman.tooltip":"하위 로마자","editor.orderedlist.upperRoman.tooltip":"상위 로마자","editor.orderedlist.lowerLatin.tooltip":"하위 라틴어","editor.orderedlist.upperLatin.tooltip":"상위 라틴어","editor.orderedlist.tradChinaInformal.tooltip":"중국어 비공식","editor.orderedlist.simpChinaFormal.tooltip":"간체 중국어 비공식","editor.tasklist.tooltip":"작업 목록","editor.indent.tooltip":"들여쓰기","editor.outdent.tooltip":"내어쓰기","editor.columns.tooltip":"열","editor.link.tooltip":"링크","editor.link.unlink.tooltip":"링크 해제","editor.link.open.tooltip":"링크 열기","editor.link.edit.tooltip":"링크 편집","editor.link.dialog.title":"링크 삽입","editor.link.dialog.link":"링크","editor.link.dialog.text":"텍스트","editor.link.dialog.openInNewTab":"새 탭에서 열기","editor.link.dialog.link.placeholder":"링크 주소","editor.link.dialog.text.placeholder":"설명 추가","editor.link.dialog.button.apply":"적용","editor.image.tooltip":"이미지","editor.image.menu.flipX":"세로 뒤집기","editor.image.menu.flipY":"가로 뒤집기","editor.image.menu.size":"크기 설정","editor.image.menu.size.width":"너비","editor.image.menu.size.height":"높이","editor.image.dragger.tooltip":"업로드할 영역으로 이미지를 클릭하거나 드래그하세요.","editor.image.float.left.tooltip":"왼쪽으로 부동","editor.image.float.none.tooltip":"부동 없음","editor.image.float.right.tooltip":"오른쪽으로 부동","editor.image.dialog.title":"이미지 추가","editor.image.dialog.tab.url":"URL","editor.image.dialog.tab.upload":"업로드","editor.image.dialog.uploading":"업로드 중","editor.image.dialog.form.link":"링크","editor.image.dialog.placeholder":"링크","editor.image.dialog.form.alt":"Alt","editor.image.dialog.form.aspectRatio":"원본 가로 세로 비율 잠금","editor.image.dialog.form.file":"파일","editor.image.dialog.button.apply":"적용","editor.video.tooltip":"비디오","editor.video.dialog.tab.upload":"업로드","editor.video.dialog.uploading":"업로드 중","editor.video.dialog.title":"동영상 삽입 또는 업로드","editor.video.dialog.link":"링크","editor.video.dialog.placeholder":"링크","editor.video.dialog.button.apply":"적용","editor.table.tooltip":"테이블","editor.table.menu.insert_table":"테이블 삽입","editor.table.menu.insert_table.with_header_row":"머리글 행 포함","editor.table.menu.insertColumnBefore":"앞에 열 삽입","editor.table.menu.insertColumnAfter":"다음에 열 삽입","editor.table.menu.deleteColumn":"열 삭제","editor.table.menu.insertRowAbove":"위에 행 삽입","editor.table.menu.insertRowBelow":"아래에 행 삽입","editor.table.menu.deleteRow":"행 삭제","editor.table.menu.mergeCells":"셀 병합","editor.table.menu.splitCells":"셀 분할","editor.table.menu.deleteTable":"테이블 삭제","editor.table.menu.setCellsBgColor":"셀 배경색","editor.blockquote.tooltip":"블록인용","editor.horizontalrule.tooltip":"수평 규칙","editor.code.tooltip":"코드","editor.codeblock.tooltip":"코드 블록","editor.clear.tooltip":"형식 지우기","editor.undo.tooltip":"실행 취소","editor.redo.tooltip":"다시 실행","editor.fullscreen.tooltip.fullscreen":"전체 화면","editor.fullscreen.tooltip.exit":"전체 화면 종료","editor.imageUpload.fileTypeNotSupported":"지원되지 않는 파일 형식","editor.imageUpload.fileSizeTooBig":"파일 크기가 너무 큽니다. 최대 크기는 다음과 같습니다.","editor.AI.placeholder":"AI에게 물어보세요...","editor.AI.geneating":"생성","editor.AI.insert":"선택 항목 아래에 삽입","editor.AI.replace":"선택한 콘텐츠 교체","editor.AI.regenerate":"재생성","editor.AI.close":"닫기","editor.AI.stop":"중지","editor.AI.ask":"AI에게 물어보세요","editor.menubar.file":"파일","editor.menubar.edit":"편집","editor.menubar.view":"보기","editor.menubar.insert":"삽입","editor.menubar.format":"형식","editor.menubar.menu.newDoc":"새 문서","editor.menubar.menu.restoreLastDraft":"마지막 초안 복원","editor.menubar.menu.print":"인쇄","editor.menubar.menu.cut":"잘라내기","editor.menubar.menu.copy":"복사","editor.menubar.menu.paste":"붙여넣기","editor.menubar.menu.pasteAsText":"텍스트로 붙여넣기","editor.menubar.menu.selectAll":"모두 선택","editor.menubar.menu.preview":"미리보기","editor.menubar.menu.spellCheck":"맞춤법 검사","editor.menubar.menu.spelling":"맞춤법","editor.menubar.menu.superView":"수퍼보기","editor.menubar.menu.insertSuper":"수퍼 넣기","editor.menubar.menu.articleContent":"앵커멘트","editor.menubar.menu.articleComment":"상세 텍스트","editor.menubar.menu.cancel":"취소","editor.menubar.menu.save":"저장","editor.findAndReplace.tooltip":"찾기 및 바꾸기","editor.findAndReplace.find":"찾기","editor.findAndReplace.replace":"바꾸기","editor.findAndReplace.replaceAll":"모두 바꾸기","editor.findAndReplace.caseSensitive":"대소문자 구분","editor.printer.tooltip":"인쇄","editor.superinput":"수퍼입력","editor.insert.symbol":"기호삽입","editor.check":"확인","editor.detail":"내용","editor.inputSuper":"수퍼 작성","editor.insertSpecial":"특수문자","editor.cut":"잘라내기","editor.paste":"붙여넣기","editor.selectAll":"모두선택","editor.delete":"삭제","editor.super.edit":"수퍼 수정","editor.super.delete":"수퍼 삭제","editor.configPlan.edit":"구성안 수정","editor.configPlan.delete":"구성안 삭제","editor.super":"수퍼","editor.configPlan":"구성안","editor.insertConfigPlan":"구성안넣기","editor.alert":"수퍼가 변경되었습니다. 수퍼아이디를 삭제합니다.","editor.alertConfirm":"확인","editor.alertYes":"확인"},QZ=qF({legacy:!1,locale:"en",fallbackLocale:"en",messages:{en:ZS,ko:QS}});pC();const NS={install(t){t.use(QZ),t.component("vdc-editor",eh)}},NZ=at.useEventBus(ir.RENDER_SUPER_TEXT);function eQ(){NZ.emit({action:"render"})}const tQ={class:"min-h-[188px] flex flex-col items-center justify-center gap-y-2 text-sm"},nQ=i.defineComponent({__name:"BulkSpellCheckerFail",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",tQ,[i.createVNode(i.unref(pU),{class:"h-12 w-12 text-red-500"}),n[0]||(n[0]=i.createElementVNode("div",null,"맞춤법 검사에 실패했습니다",-1)),n[1]||(n[1]=i.createElementVNode("p",{class:"text-xs font-normal text-gray-600"},"다시 검사하기 버튼을 눌러 재시도 해주세요",-1))]))}}),rQ={class:"min-h-[188px] flex flex-col items-center justify-center gap-y-2 text-sm"},oQ=i.defineComponent({__name:"BulkSpellCheckerNotWrongWord",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",rQ,[i.createVNode(i.unref(hU),{class:"h-12 w-12 text-blue-500"}),n[0]||(n[0]=i.createElementVNode("div",null,"맞춤법 오류가 없습니다",-1))]))}}),iQ={class:"relative"},sQ=["innerHTML"],aQ={class:"border-b border-gray-500"},lQ=i.defineComponent({__name:"BulkSpellCheckerHelpText",props:{text:{}},setup(t){const e=i.ref(!1),n=i.ref(!1),r=i.ref(null);function o(){e.value=!e.value}return i.onMounted(async()=>{await i.nextTick(),r.value&&r.value.scrollHeight>32&&(n.value=!0)}),(s,a)=>(i.openBlock(),i.createElementBlock("div",iQ,[i.createElementVNode("div",{ref_key:"helpRef",ref:r,class:i.normalizeClass(["text-gray-700 transition-all",i.unref(e)?"max-h-none":"max-h-[32px] overflow-hidden"]),innerHTML:s.text},null,10,sQ),i.unref(n)?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["",i.unref(Ae)("w-32 flex items-end justify-end bg-gradient-to-l from-white via-white to-transparent",i.unref(e)?"ml-auto opacity-60":"absolute bottom-0 right-0")])},[i.createElementVNode("button",{class:"flex items-center gap-1",onClick:i.withModifiers(o,["stop"])},[i.createElementVNode("span",aQ,i.toDisplayString(i.unref(e)?"접기":"자세히"),1),i.createVNode(i.unref(d1),{class:i.normalizeClass(["w-4 h-4 transition-transform",i.unref(e)?"rotate-180":""])},null,8,["class"])])],2)):i.createCommentVNode("",!0)]))}}),Yb=new St("bulk-spellcheck-highlight");function uQ(t,e,n=`
292
292
  `){return new tt({key:Yb,props:{decorations(r){const o=[],s={[Md.SPACING]:"bulk-highlight text-blue-500 border-b-2 border-blue-500",[Md.SPELLING]:"bulk-highlight text-red-500 border-b-2 border-red-500"};return e.forEach(a=>{var g,b;const l=Al(t,a.startIndex,n),u=Al(t,a.endIndex-1,n)+1,c=(b=(g=a.errorHelpDtos)==null?void 0:g[0])==null?void 0:b.errorType,f=s[c??-1]||"bulk-highlight text-green-500 border-b-2 border-green-500",p=Math.max(0,Math.min(l,r.doc.content.size)),m=Math.max(0,Math.min(u,r.doc.content.size));p<m&&o.push(Wt.inline(p,m,{class:f}))}),mt.create(r.doc,o)}}})}function Jb(t,e){if(t.unregisterPlugin(Yb),!e.length)return;const n=uQ(t,e);t.registerPlugin(n)}function cQ(t){t&&t.unregisterPlugin(Yb)}function ek(t,e=`
293
293
  `){const n=[];let r=0,o=!0;return t.state.doc.descendants((s,a)=>{if(s.isText&&s.text)for(let c=0;c<s.text.length;c++)n[r++]=a+c;const l=s.type&&s.type.name;if((l==="hardBreak"||l==="hard_break"||l==="br")&&e.length>0)for(let c=0;c<e.length;c++)n[r++]=a;if(s.isBlock){if(!o&&e.length>0)for(let c=0;c<e.length;c++)n[r++]=a;o=!1}return!0}),n}function Al(t,e,n=`