kdpa-components 1.19.1 → 1.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +3 -2
- package/dist/index.js +1 -1
- package/dist/types/designerKit/components/Stepper/KdStepper.stories.d.ts +3 -2
- package/dist/types/designerKit/components/Stepper/KdStepper.stories.d.ts.map +1 -1
- package/dist/types/designerKit/components/Stepper/StepContent/KdStepContent.d.ts +7 -7
- package/dist/types/designerKit/components/Stepper/StepContent/KdStepContent.d.ts.map +1 -1
- package/dist/types/designerKit/components/Stepper/StepList/KdStepList.d.ts +7 -6
- package/dist/types/designerKit/components/Stepper/StepList/KdStepList.d.ts.map +1 -1
- package/dist/types/designerKit/components/Stepper/StepRoot/KdStepRoot.d.ts +8 -5
- package/dist/types/designerKit/components/Stepper/StepRoot/KdStepRoot.d.ts.map +1 -1
- package/dist/types/designerKit/components/Stepper/StepTrigger/KdStepTrigger.d.ts +3 -2
- package/dist/types/designerKit/components/Stepper/StepTrigger/KdStepTrigger.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
.KdTabsList{display:flex;flex-direction:row;gap:20px}
|
|
27
27
|
.KdTabsContent{flex-grow:1;outline:none}
|
|
28
28
|
.KdTabsTrigger{align-items:center;background-color:inherit;border:none;display:flex;flex:1;font-family:inherit;font-size:15px;gap:6px;height:45px;justify-content:center;line-height:1;padding:0 20px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:50px}.KdTabsTrigger[data-state=active]{border-bottom:3px solid var(--bs-primary,#7367aa);color:var(--bs-primary,#7367aa)}
|
|
29
|
-
.
|
|
30
|
-
.
|
|
29
|
+
.KdStepRoot{background-color:#fff;border-radius:6px;box-shadow:0 .25rem 1.125rem rgba(75,70,92,.1);padding:5px}.KdStepRoot_vertical{display:flex;flex-direction:row;gap:1rem;justify-content:space-between}.KdStepRoot_horizontal{display:flex;flex-direction:column;gap:1rem}
|
|
30
|
+
.KdStepper_vertical{border-left:1px solid var(--bs-gray,gray);min-width:10rem;padding:.5rem;text-align:center}
|
|
31
|
+
.KdStepContent_vertical{display:flex;flex-direction:column;justify-content:space-between;width:100%}.KdStepContent_horizontal{width:100%}.KdStepContent_Buttons{display:flex;flex-direction:row;justify-content:space-between;margin-top:.5rem}
|
|
31
32
|
.KdStepLabel{cursor:pointer}
|
package/dist/index.js
CHANGED
|
@@ -307,4 +307,4 @@ function(){function e(e){e.remember("_draggable",this),this.el=e}e.prototype.ini
|
|
|
307
307
|
* @author Lea Verou <https://lea.verou.me>
|
|
308
308
|
* @namespace
|
|
309
309
|
* @public
|
|
310
|
-
*/e.exports&&(e.exports=t),void 0!==X&&(X.Prism=t)}(Tue);var Eue=Tue.exports,Mue=Pue;function Pue(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}Pue.displayName="markup",Pue.aliases=["html","mathml","svg","xml","ssml","atom","rss"];var Nue=Aue;function Aue(e){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e)}Aue.displayName="css",Aue.aliases=[];var Due=q(Nue),Rue=_ue;function _ue(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}_ue.displayName="clike",_ue.aliases=[];var jue=Iue;function Iue(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}Iue.displayName="javascript",Iue.aliases=["js"];var Lue,zue,Fue=q(jue),Bue="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof X?X:{},Vue=(zue=(Lue="Prism"in Bue)?Bue.Prism:void 0,function(){Lue?Bue.Prism=zue:delete Bue.Prism,Lue=void 0,zue=void 0});Bue.Prism={manual:!0,disableWorkerMessageHandler:!0};var $ue=Rce,Hue=qce,Wue=Eue,Yue=Mue,Uue=Nue,Xue=Rue,que=jue;Vue();var Gue={}.hasOwnProperty;function Kue(){}Kue.prototype=Wue;var Zue=new Kue,Jue=Zue;function Que(e){if("function"!=typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===Zue.languages[e.displayName]&&e(Zue)}Zue.highlight=function(e,t){var n,r=Wue.highlight;if("string"!=typeof e)throw new Error("Expected `string` for `value`, got `"+e+"`");if("Object"===Zue.util.type(t))n=t,t=null;else{if("string"!=typeof t)throw new Error("Expected `string` for `name`, got `"+t+"`");if(!Gue.call(Zue.languages,t))throw new Error("Unknown language: `"+t+"` is not registered");n=Zue.languages[t]}return r.call(this,e,n,t)},Zue.register=Que,Zue.alias=function(e,t){var n,r,o,i,a=Zue.languages,s=e;t&&((s={})[e]=t);for(n in s)for(o=(r="string"==typeof(r=s[n])?[r]:r).length,i=-1;++i<o;)a[r[i]]=a[n]},Zue.registered=function(e){if("string"!=typeof e)throw new Error("Expected `string` for `language`, got `"+e+"`");return Gue.call(Zue.languages,e)},Zue.listLanguages=function(){var e,t=Zue.languages,n=[];for(e in t)Gue.call(t,e)&&"object"==typeof t[e]&&n.push(e);return n},Que(Yue),Que(Uue),Que(Xue),Que(que),Zue.util.encode=function(e){return e},Zue.Token.stringify=function(e,t,n){var r;if("string"==typeof e)return{type:"text",value:e};if("Array"===Zue.util.type(e))return function(e,t){var n,r=[],o=e.length,i=-1;for(;++i<o;)""!==(n=e[i])&&null!=n&&r.push(n);i=-1,o=r.length;for(;++i<o;)n=r[i],r[i]=Zue.Token.stringify(n,t,r);return r}(e,t);r={type:e.type,content:Zue.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(r.classes=r.classes.concat(e.alias));return Zue.hooks.run("wrap",r),$ue(r.tag+"."+r.classes.join("."),function(e){var t;for(t in e)e[t]=Hue(e[t]);return e}(r.attributes),r.content)};var ede=q(Jue),tde=Object.defineProperty,nde=Object.getOwnPropertyDescriptor,rde=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?nde(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&tde(t,n,i),i},ode=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},ide=(e,t,n)=>(ode(e,t,"read from private field"),n?n.call(e):t.get(e)),ade=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},sde=(e,t,n,r)=>(ode(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),lde="data-code-block-language";function cde(e,t,n=[]){return e.map((e=>{const r=[...n];return"element"===e.type&&e.properties.className?r.push(...e.properties.className):"text"===e.type&&0===r.length&&t&&r.push(t),"element"===e.type?cde(e.children,t,r):{text:e.value,classes:r}}))}function ude(e,t){var n;const{node:r,pos:o}=e,i=fde({language:null==(n=r.attrs.language)?void 0:n.replace("language-",""),fallback:"markup"}),a=cde(ede.highlight(r.textContent??"",i),t);let s=o+1;return eJ(a).map((function(e){const t=s,n=t+e.text.length;return s=n,{...e,from:t,to:n}}))}function dde(e){const{blocks:t,skipLast:n,plainTextClassName:r}=e,o=[];for(const e of t){const t=ude(e,r),i=n?t.length-1:t.length;for(const e of lJ(i)){const n=t[e],r=null==n?void 0:n.classes;if(!n||!(null==r?void 0:r.length))continue;const i=F5.inline(n.from,n.to,{class:r.join(" ")});o.push(i)}}return o}function pde(e){return t=>({state:{tr:n,selection:r},dispatch:o})=>{if(!function(e){return!!(e&&$Z(e)&&jZ(e.language)&&e.language.length>0)}(t))throw new Error("Invalid attrs passed to the updateAttributes method");const i=C3({types:e,selection:r});return!(!i||JZ(t,i.node.attrs))&&(n.setNodeMarkup(i.pos,e,{...i.node.attrs,...t}),o&&o(n),!0)}}function fde(e){const{language:t,fallback:n}=e;if(!t)return n;const r=ede.listLanguages();for(const e of r)if(e.toLowerCase()===t.toLowerCase())return e;return n}var hde,mde,gde,{DESCRIPTION:vde,LABEL:bde}=Y0,yde={icon:"bracesLine",description:({t:e})=>e(vde),label:({t:e})=>e(bde)};hde=new WeakMap,mde=new WeakMap,gde=new WeakMap;var xde=class extends N8{get name(){return"codeBlock"}createTags(){return[VK.Block,VK.Code]}init(){this.registerLanguages()}createNodeSpec(e,t){const n=/highlight-(?:text|source)-([\da-z]+)/;return{content:"text*",marks:"",defining:!0,draggable:!1,...t,code:!0,attrs:{...e.defaults(),language:{default:this.options.defaultLanguage},wrap:{default:this.options.defaultWrap}},parseDOM:[{tag:"div.highlight",preserveWhitespace:"full",getAttrs:t=>{var r,o;if(!k3(t))return!1;const i=t.querySelector("pre.code");if(!k3(i))return!1;const a="pre-wrap"===s3(i,"white-space"),s=null==(o=null==(r=t.className.match(n))?void 0:r[1])?void 0:o.replace("language-","");return{...e.parse(t),language:s,wrap:a}}},{tag:"pre",preserveWhitespace:"full",getAttrs:t=>{if(!k3(t))return!1;const n=t.querySelector("code");if(!k3(n))return!1;const r="pre-wrap"===s3(n,"white-space"),o=this.options.getLanguageFromDom(n,t);return{...e.parse(t),language:o,wrap:r}}},...t.parseDOM??[]],toDOM:t=>function(e,t){const{language:n,wrap:r}=s6(e.attrs,t),{style:o,...i}=t.dom(e);let a=i.style;return r&&(a=l6({whiteSpace:"pre-wrap",wordBreak:"break-all"},a)),["pre",{spellcheck:"false",...i,class:k8(i.class,`language-${n}`)},["code",{[lde]:n,style:a},0]]}(t,e)}}createAttributes(){return{class:coe[this.options.syntaxTheme.toUpperCase()]}}createInputRules(){return[O6({regexp:/^```([\dA-Za-z]*) $/,type:this.type,beforeDispatch:({tr:e,start:t})=>{const n=e.doc.resolve(t);e.setSelection(d0.near(n))},getAttributes:e=>({language:fde({language:Z3(e,1),fallback:this.options.defaultLanguage})})})]}onSetOptions(e){const{changes:t}=e;t.supportedLanguages.changed&&this.registerLanguages(),t.syntaxTheme.changed&&this.store.updateAttributes()}createPlugin(){const e=new class{constructor(e,t){ade(this,hde,void 0),ade(this,mde,void 0),ade(this,gde,!1),sde(this,mde,e),sde(this,hde,t)}init(e){const t=x6({node:e.doc,type:ide(this,mde)});return this.refreshDecorationSet(e.doc,t),this}refreshDecorationSet(e,t){const n=dde({blocks:t,skipLast:ide(this,gde),defaultLanguage:ide(this,hde).options.defaultLanguage,plainTextClassName:ide(this,hde).options.plainTextClassName??void 0});this.decorationSet=$5.create(e,n)}apply(e,t){if(!e.docChanged)return this;this.decorationSet=this.decorationSet.map(e.mapping,e.doc);const n=w6(e,{descend:!0,predicate:e=>e.type===ide(this,mde),StepTypes:[]});return this.updateDecorationSet(e,n),this}updateDecorationSet(e,t){if(0===t.length)return;let n=this.decorationSet;for(const{node:e,pos:r}of t)n=this.decorationSet.remove(this.decorationSet.find(r,r+e.nodeSize));this.decorationSet=n.add(e.doc,dde({blocks:t,skipLast:ide(this,gde),defaultLanguage:ide(this,hde).options.defaultLanguage,plainTextClassName:ide(this,hde).options.plainTextClassName??void 0}))}setDeleted(e){sde(this,gde,e)}}(this.type,this),t=()=>(e.setDeleted(!0),!1);return{state:{init:(t,n)=>e.init(n),apply:(t,n,r,o)=>e.apply(t,o)},props:{handleKeyDown:e8({Backspace:t,"Mod-Backspace":t,Delete:t,"Mod-Delete":t,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t}),decorations:()=>(e.setDeleted(!1),e.decorationSet)}}}toggleCodeBlock(e={}){return g6({type:this.type,toggleType:this.options.toggleName,attrs:{language:this.options.defaultLanguage,...e}})}createCodeBlock(e){return m6(this.type,e)}updateCodeBlock(e){return pde(this.type)(e)}formatCodeBlock(e){return function(e){return({pos:t}=PZ())=>({tr:n,dispatch:r})=>{const{type:o,formatter:i,defaultLanguage:a}=e,{from:s,to:l}=t?{from:t,to:t}:n.selection,c=C3({types:o,selection:n.selection});if(!c)return!1;const{node:{attrs:u,textContent:d},start:p}=c,f=s-p,h=l-p,m=fde({language:u.language,fallback:a}),g=i({source:d,language:m,cursorOffset:f});let v;if(f!==h&&(v=i({source:d,language:m,cursorOffset:h})),!g)return!1;const{cursorOffset:b,formatted:y}=g;if(y===d)return!1;const x=p+d.length;n.insertText(y,p,x);const w=p+b,k=v?p+v.cursorOffset:void 0;return n.setSelection(d0.between(n.doc.resolve(w),n.doc.resolve(k??w))),r&&r(n),!0}}({type:this.type,formatter:this.options.formatter,defaultLanguage:this.options.defaultLanguage})(e)}tabKey({state:e,dispatch:t}){const{selection:n,tr:r,schema:o}=e,{node:i}=function(e){const t=S3({predicate:()=>!0,selection:e});return hJ(t,{message:"No parent node found for the selection provided."}),t}(n);if(!O3({node:i,types:this.type}))return!1;if(n.empty)r.insertText("\t");else{const{from:e,to:t}=n;r.replaceWith(e,t,o.text("\t"))}return t&&t(r),!0}backspaceKey({dispatch:e,tr:t,state:n}){if(!t.selection.empty)return!1;const r=C3({types:this.type,selection:t.selection});if((null==r?void 0:r.start)!==t.selection.from)return!1;const{pos:o,node:i,start:a}=r,s=kZ(n.schema.nodes,this.options.toggleName);return""===i.textContent.trim()?t.doc.lastChild===i&&t.doc.firstChild===i?function({pos:e,tr:t,content:n}){const r=t.doc.nodeAt(e);r&&t.replaceWith(e,e+r.nodeSize,n)}({pos:o,tr:t,content:s.create()}):function({pos:e,tr:t}){const n=t.doc.nodeAt(e);n&&t.delete(e,e+n.nodeSize)}({pos:o,tr:t}):a>2?t.setSelection(d0.near(t.doc.resolve(a-2))):(t.insert(0,s.create()),t.setSelection(d0.near(t.doc.resolve(1)))),e&&e(t),!0}enterKey({dispatch:e,tr:t}){if(!z3(t.selection)||!t.selection.empty)return!1;const{nodeBefore:n,parent:r}=t.selection.$anchor;if(!(null==n?void 0:n.isText)||!r.type.isTextblock)return!1;const o=/^```([A-Za-z]*)?$/,{text:i,nodeSize:a}=n,{textContent:s}=r;if(!i)return!1;const l=i.match(o),c=s.match(o);if(!l||!c)return!1;const[,u]=l,d=fde({language:u,fallback:this.options.defaultLanguage}),p=t.selection.$from.before(),f=p+a+1;return t.replaceWith(p,f,this.type.create({language:d})),t.setSelection(d0.near(t.doc.resolve(p+1))),e&&e(t),!0}formatShortcut({tr:e}){const t=this.store.commands;if(!M3({type:this.type,state:e}))return!1;const n=t.formatCodeBlock.isEnabled();return n&&t.formatCodeBlock(),n}registerLanguages(){for(const e of this.options.supportedLanguages)ede.register(e)}};rde([F8(yde)],xde.prototype,"toggleCodeBlock",1),rde([F8()],xde.prototype,"createCodeBlock",1),rde([F8()],xde.prototype,"updateCodeBlock",1),rde([F8()],xde.prototype,"formatCodeBlock",1),rde([B8({shortcut:"Tab"})],xde.prototype,"tabKey",1),rde([B8({shortcut:"Backspace"})],xde.prototype,"backspaceKey",1),rde([B8({shortcut:"Enter"})],xde.prototype,"enterKey",1),rde([B8({shortcut:UK.Format})],xde.prototype,"formatShortcut",1),xde=rde([I8({defaultOptions:{supportedLanguages:[],toggleName:"paragraph",formatter:({source:e})=>({cursorOffset:0,formatted:e}),syntaxTheme:"a11y_dark",defaultLanguage:"markup",defaultWrap:!1,plainTextClassName:"",getLanguageFromDom:function(e){var t;return null==(t=e.getAttribute(lde)??e.classList[0])?void 0:t.replace("language-","")}},staticKeys:["getLanguageFromDom"]})],xde);var wde=Object.defineProperty,kde=Object.getOwnPropertyDescriptor,Ode=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?kde(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&wde(t,n,i),i},Sde=class extends N8{get name(){return"blockquote"}createTags(){return[VK.Block,VK.FormattingNode]}createNodeSpec(e,t){return{content:"block+",defining:!0,draggable:!1,...t,attrs:e.defaults(),parseDOM:[{tag:"blockquote",getAttrs:e.parse,priority:100},...t.parseDOM??[]],toDOM:t=>["blockquote",e.dom(t),0]}}toggleBlockquote(){return h6(this.type)}shortcut(e){return this.toggleBlockquote()(e)}createInputRules(){return[i1(/^\s*>\s$/,this.type)]}createPasteRules(){return{type:"node",nodeType:this.type,regexp:/^\s*>\s$/,startOfTextBlock:!0}}};Ode([F8({icon:"doubleQuotesL",description:({t:e})=>e(H0.DESCRIPTION),label:({t:e})=>e(H0.LABEL)})],Sde.prototype,"toggleBlockquote",1),Ode([B8({shortcut:"Ctrl->",command:"toggleBlockquote"})],Sde.prototype,"shortcut",1);var Cde=new P0("trailingNode");function Tde(e){const{ignoredNodes:t=[],nodeName:n="paragraph"}=e??{},r=QZ([...t,n]);let o,i;return new T0({key:Cde,appendTransaction(e,t,n){const{doc:r,tr:i}=n,a=Cde.getState(n),s=r.content.size;if(a)return i.insert(s,o.create())},state:{init:(e,{doc:t,schema:a})=>{var s;const l=a.nodes[n];if(!l)throw new Error(`Invalid node being used for trailing node extension: '${n}'`);return o=l,i=Object.values(a.nodes).map((e=>e)).filter((e=>!r.includes(e.name))),MZ(i,null==(s=t.lastChild)?void 0:s.type)},apply:(e,t)=>{var n;return e.docChanged?MZ(i,null==(n=e.doc.lastChild)?void 0:n.type):t}}})}var Ede=Object.defineProperty,Mde=Object.getOwnPropertyDescriptor,Pde=class extends M8{get name(){return"trailingNode"}onSetOptions(e){const{changes:t}=e;(t.disableTags.changed||t.ignoredNodes.changed||t.nodeName.changed)&&this.store.updateExtensionPlugins(this)}createExternalPlugins(){const{tags:e}=this.store,{disableTags:t,nodeName:n}=this.options;return[Tde({ignoredNodes:t?[...this.options.ignoredNodes]:[...this.options.ignoredNodes,...e.lastNodeCompatible],nodeName:n})]}};Pde=((e,t,n,r)=>{for(var o,i=r>1?void 0:r?Mde(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Ede(t,n,i),i})([I8({defaultOptions:{ignoredNodes:[],disableTags:!1,nodeName:"paragraph"}})],Pde);var Nde=Object.defineProperty,Ade=Object.getOwnPropertyDescriptor,Dde=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?Ade(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Nde(t,n,i),i},Rde={icon:"separator",label:({t:e})=>e(q0.LABEL),description:({t:e})=>e(q0.DESCRIPTION)},_de=class extends N8{get name(){return"horizontalRule"}createTags(){return[VK.Block]}createNodeSpec(e,t){return{...t,attrs:e.defaults(),parseDOM:[{tag:"hr",getAttrs:e.parse},...t.parseDOM??[]],toDOM:t=>["hr",e.dom(t)]}}insertHorizontalRule(){return e=>{const{tr:t,dispatch:n}=e,r=t.selection.$anchor,o=r.parent;if("doc"===o.type.name||o.isAtom||o.isLeaf)return!1;if(!n)return!0;return t.selection.empty&&U3(o)&&t.insert(r.pos+1,o),t.replaceSelectionWith(this.type.create()),this.updateFromNodeSelection(t),n(t.scrollIntoView()),!0}}createInputRules(){return[O6({regexp:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type,beforeDispatch:({tr:e})=>{this.updateFromNodeSelection(e)}})]}updateFromNodeSelection(e){if(!V3(e.selection)||e.selection.node.type.name!==this.name)return;const t=e.selection.$from.pos+1,{insertionNode:n}=this.options;if(!n)return;const r=this.store.schema.nodes[n];hJ(r,{code:XK.EXTENSION,message:`'${n}' node provided as the insertionNode to the '${this.constructorName}' does not exist.`});const o=r.create();e.insert(t,o),e.setSelection(d0.near(e.doc.resolve(t+1)))}};Dde([F8(Rde)],_de.prototype,"insertHorizontalRule",1),_de=Dde([I8({defaultOptions:{insertionNode:"paragraph"}})],_de);var jde,Ide=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Lde=(e,t,n)=>(Ide(e,t,"read from private field"),n?n.call(e):t.get(e)),zde=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Fde=(e,t,n,r)=>(Ide(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Bde=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="22" height="22" fill="rgba(0, 0, 0, 0.65)" stroke="rgba(255, 255, 255, 0.5)" transform="rotate(90)" xmlns:v="https://vecta.io/nano"><path fill-rule="evenodd" d="M14 0a2 2 0 0 0-2 2v10H2a2 2 0 1 0 0 4h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/></svg>'),Vde=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="22" height="22" fill="rgba(0, 0, 0, 0.65)" stroke="rgba(255, 255, 255, 0.5)" transform="matrix(0 1 1 0 0 0)" xmlns:v="https://vecta.io/nano"><path fill-rule="evenodd" d="M14 0a2 2 0 0 0-2 2v10H2a2 2 0 1 0 0 4h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/></svg>');jde=new WeakMap;var $de,Hde,Wde,Yde,Ude,Xde=(e=>(e[e.Fixed=0]="Fixed",e[e.Flexible=1]="Flexible",e))(Xde||{}),qde=class{constructor({node:e,view:t,getPos:n,aspectRatio:r=0,options:o,initialSize:i}){zde(this,$de,void 0),zde(this,Hde,void 0),zde(this,Wde,[]),zde(this,Yde,void 0),zde(this,Ude,void 0);const a=this.createWrapper(e,i),s=this.createElement({node:e,view:t,getPos:n,options:o}),l=(1===r?[0,1,2,3,4]:[0,1]).map((e=>new class{constructor(e){zde(this,jde,void 0);const t=document.createElement("div"),n=document.createElement("div");this.dom=t,Fde(this,jde,n),this.type=e,this.createHandle(e)}createHandle(e){switch(l3(this.dom,{position:"absolute",pointerEvents:"auto",display:"flex",alignItems:"center",justifyContent:"center",zIndex:"100"}),l3(Lde(this,jde),{opacity:"0",transition:"opacity 300ms ease-in 0s"}),Lde(this,jde).dataset.dragging="",e){case 0:l3(this.dom,{right:"0px",top:"0px",height:"100%",width:"15px",cursor:"col-resize"}),l3(Lde(this,jde),{width:" 4px",height:"36px",maxHeight:"50%",boxSizing:"content-box",background:"rgba(0, 0, 0, 0.65)",border:"1px solid rgba(255, 255, 255, 0.5)",borderRadius:"6px"});break;case 1:l3(this.dom,{left:"0px",top:"0px",height:"100%",width:"15px",cursor:"col-resize"}),l3(Lde(this,jde),{width:" 4px",height:"36px",maxHeight:"50%",boxSizing:"content-box",background:"rgba(0, 0, 0, 0.65)",border:"1px solid rgba(255, 255, 255, 0.5)",borderRadius:"6px"});break;case 2:l3(this.dom,{bottom:"0px",width:"100%",height:"14px",cursor:"row-resize"}),l3(Lde(this,jde),{width:" 42px",height:"4px",boxSizing:"content-box",maxWidth:"50%",background:"rgba(0, 0, 0, 0.65)",border:"1px solid rgba(255, 255, 255, 0.5)",borderRadius:"6px"});break;case 3:l3(this.dom,{right:"-1px",bottom:"-2px",width:"30px",height:"30px",cursor:"nwse-resize",zIndex:"101"}),l3(Lde(this,jde),{height:"22px",width:"22px",backgroundRepeat:"no-repeat",backgroundImage:`url("data:image/svg+xml,${Vde}") `});break;case 4:l3(this.dom,{left:"-1px",bottom:"-2px",width:"30px",height:"30px",cursor:"nesw-resize",zIndex:"101"}),l3(Lde(this,jde),{height:"22px",width:"22px",backgroundRepeat:"no-repeat",backgroundImage:`url("data:image/svg+xml,${Bde}") `})}this.dom.append(Lde(this,jde))}setHandleVisibility(e){const t=e||!!Lde(this,jde).dataset.dragging;Lde(this,jde).style.opacity=t?"1":"0"}dataSetDragging(e){Lde(this,jde).dataset.dragging=e?"true":""}}(e)));for(const e of l){const r=r=>{this.startResizing(r,t,n,e)};e.dom.addEventListener("mousedown",r),Lde(this,Wde).push((()=>e.dom.removeEventListener("mousedown",r))),a.append(e.dom)}const c=()=>{l.forEach((e=>e.setHandleVisibility(!0)))},u=()=>{l.forEach((e=>e.setHandleVisibility(!1)))};a.addEventListener("mouseover",c),a.addEventListener("mouseout",u),Lde(this,Wde).push((()=>a.removeEventListener("mouseover",c)),(()=>a.removeEventListener("mouseout",u))),a.append(s),this.dom=a,Fde(this,Hde,e),Fde(this,$de,s),this.aspectRatio=r}createWrapper(e,t){const n=document.createElement("div");return n.classList.add("remirror-resizable-view"),n.style.position="relative",l3(n,t?{width:Gde(t.width),aspectRatio:`${t.width} / ${t.height}`}:{width:Gde(e.attrs.width),aspectRatio:`${e.attrs.width} / ${e.attrs.height}`}),l3(n,{maxWidth:"100%",minWidth:"50px",verticalAlign:"bottom",display:"inline-block",lineHeight:"0",transition:"width 0.15s ease-out, height 0.15s ease-out"}),n}startResizing(e,t,n,r){var o,i;e.preventDefault(),r.dataSetDragging(!0),Lde(this,$de).style.pointerEvents="none";const a=e.pageX,s=e.pageY,l=(null==(o=Lde(this,$de))?void 0:o.getBoundingClientRect().width)||0,c=(null==(i=Lde(this,$de))?void 0:i.getBoundingClientRect().height)||0,u=xZ(100,!1,(e=>{const t=e.pageX,n=e.pageY,o=t-a,i=n-s;let u=null,d=null;if(0===this.aspectRatio&&l&&c)switch(r.type){case 0:case 3:u=l+o,d=c/l*u;break;case 1:case 4:u=l-o,d=c/l*u;break;case 2:d=c+i,u=l/c*d}else if(1===this.aspectRatio)switch(r.type){case 0:u=l+o;break;case 1:u=l-o;break;case 2:d=c+i;break;case 3:u=l+o,d=c+i;break;case 4:u=l-o,d=c+i}"number"==typeof u&&u<50&&(0===this.aspectRatio&&l&&c?(u=50,d=c/l*u):1===this.aspectRatio&&(u=50)),u&&(Fde(this,Yde,Math.round(u)),this.dom.style.width=`${Lde(this,Yde)}px`),d&&Fde(this,Ude,Math.round(d)),(u||d)&&(this.dom.style.aspectRatio=`${Lde(this,Yde)} / ${Lde(this,Ude)}`)})),d=e=>{e.preventDefault(),r.dataSetDragging(!1),r.setHandleVisibility(!1),Lde(this,$de).style.pointerEvents="auto",document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d);const o=n(),i=t.state.tr.setNodeMarkup(o,void 0,{...Lde(this,Hde).attrs,width:Lde(this,Yde),height:Lde(this,Ude)});t.dispatch(i)};document.addEventListener("mousemove",u),document.addEventListener("mouseup",d),Lde(this,Wde).push((()=>document.removeEventListener("mousemove",u))),Lde(this,Wde).push((()=>document.removeEventListener("mouseup",d)))}update(e){return e.type===Lde(this,Hde).type&&((0!==this.aspectRatio||!e.attrs.width||e.attrs.width===Lde(this,Yde))&&((1!==this.aspectRatio||!e.attrs.width||!e.attrs.height||e.attrs.width===Lde(this,Yde)||e.attrs.height===Lde(this,Ude))&&(t=Lde(this,Hde),r=["width","height"],!!(t===(n=e)||function(e,t,n){const r=e.attrs,o=t.attrs,i={};for(const e of n)i[e]=null;e.attrs={...r,...i},t.attrs={...o,...i};const a=e.sameMarkup(t);return e.attrs=r,t.attrs=o,a}(t,n,r)&&t.content.eq(n.content))&&(Fde(this,Hde,e),Fde(this,Yde,e.attrs.width),Fde(this,Ude,e.attrs.height),!0))));var t,n,r}destroy(){Lde(this,Wde).forEach((e=>e()))}};function Gde(e){return"number"==typeof e?`${e}px`:e||void 0}$de=new WeakMap,Hde=new WeakMap,Wde=new WeakMap,Yde=new WeakMap,Ude=new WeakMap;var Kde=Object.defineProperty,Zde=Object.getOwnPropertyDescriptor,Jde=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?Zde(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Kde(t,n,i),i},Qde=class extends qde{constructor(e,t,n){super({node:e,view:t,getPos:n,aspectRatio:Xde.Fixed})}createElement({node:e}){const t=document.createElement("img");return t.setAttribute("src",e.attrs.src),l3(t,{width:"100%",minWidth:"50px",objectFit:"contain"}),t}},epe=class extends N8{get name(){return"image"}createTags(){return[VK.InlineNode,VK.Media]}createNodeSpec(e,t){const{preferPastedTextContent:n}=this.options;return{inline:!0,draggable:!0,selectable:!1,...t,attrs:{...e.defaults(),alt:{default:""},crop:{default:null},height:{default:null},width:{default:null},rotate:{default:null},src:{default:null},title:{default:""},fileName:{default:null},resizable:{default:!1}},parseDOM:[{tag:"img[src]",getAttrs:t=>{var r;if(k3(t)){const o=function({element:e,parse:t}){const{width:n,height:r}=function(e){let{width:t,height:n}=e.style;return t=t||e.getAttribute("width")||"",n=n||e.getAttribute("height")||"",{width:t,height:n}}(e);return{...t(e),alt:e.getAttribute("alt")??"",height:Number.parseInt(r||"0",10)||null,src:e.getAttribute("src")??null,title:e.getAttribute("title")??"",width:Number.parseInt(n||"0",10)||null,fileName:e.getAttribute("data-file-name")??null}}({element:t,parse:e.parse});return(!n||!(null==(r=o.src)?void 0:r.startsWith("file:///")))&&o}return{}}},...t.parseDOM??[]],toDOM:t=>{const n=s6(t.attrs,e);return["img",{...e.dom(t),...n}]}}}insertImage(e,t){return({tr:n,dispatch:r})=>{const{from:o,to:i}=J3(t??n.selection,n.doc),a=this.type.create(e);return null==r||r(n.replaceRangeWith(o,i,a)),!0}}uploadImage(e,t){const{updatePlaceholder:n,destroyPlaceholder:r,createPlaceholder:o}=this.options;return i=>{const{tr:a}=i;let s=a.selection.from;return this.store.createPlaceholderCommand({promise:e,placeholder:{type:"widget",get pos(){return s},createElement:(e,n)=>{const r=o(e,n);return null==t||t(r),r},onUpdate:(e,t,r,o)=>{n(e,t,r,o)},onDestroy:(e,t)=>{r(e,t)}},onSuccess:(e,t,n)=>this.insertImage(e,t)(n)}).validate((({tr:e,dispatch:t})=>{const n=YQ(e.doc,s,this.type);return null!=n&&(s=n,e.selection.empty||null==t||t(e.deleteSelection()),!0)}),"unshift").generateCommand()(i)}}fileUploadFileHandler(e,t,n){var r;const{preferPastedTextContent:o,uploadHandler:i}=this.options;if(o&&function(e){return void 0!==e.clipboardData}(t)&&(null==(r=t.clipboardData)?void 0:r.getData("text/plain")))return!1;const{commands:a,chain:s}=this.store,l=e.map(((e,t)=>({file:e,progress:e=>{a.updatePlaceholder(c[t],e)}}))),c=i(l);IZ(n)&&s.selectText(n);for(const e of c)s.uploadImage(e);return s.run(),!0}createPasteRules(){return[{type:"file",regexp:/image/i,fileHandler:e=>{const t="drop"===e.type?e.pos:void 0;return this.fileUploadFileHandler(e.files,e.event,t)}}]}createNodeViews(){return this.options.enableResizing?(e,t,n)=>new Qde(e,t,n):{}}};Jde([F8()],epe.prototype,"insertImage",1),Jde([F8()],epe.prototype,"uploadImage",1),epe=Jde([I8({defaultOptions:{createPlaceholder:function(e,t){const n=document.createElement("div");return n.classList.add(uoe.IMAGE_LOADER),n},updatePlaceholder:()=>{},destroyPlaceholder:()=>{},uploadHandler:function(e){hJ(e.length>0,{code:XK.EXTENSION,message:"The upload handler was applied for the image extension without any valid files"});let t=0;const n=[];for(const{file:r,progress:o}of e)n.push((()=>new Promise((n=>{const i=new FileReader;i.addEventListener("load",(i=>{var a;t+=1,o(t/e.length),n({src:null==(a=i.target)?void 0:a.result,fileName:r.name})}),{once:!0}),i.readAsDataURL(r)}))));return n},enableResizing:!1,preferPastedTextContent:!0}})],epe);var tpe={exports:{}};"undefined"!=typeof self&&self,tpe.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){function r(){throw new TypeError("The given URL is not a string. Please verify your string|array.")}function o(e){"string"!=typeof e&&r();for(var t=0,n=0,o=0,s=e.length,l=0;s--&&++l&&!(t&&-1<i.indexOf(e[l]));)"."===e[l]&&(++t,n=l);for(t=l,l=n;l--;)if(-1!==a.indexOf(e[l])){o=l+1;break}return 2>o?"":e.slice(o,t)}var i=["/",":","?","#"],a=[".","/","@"];e.exports=function(e){if("string"==typeof e)return o(e);if(Array.isArray(e)){var t,n=[],i=0;for(t=e.length;i<t;i++)n.push(o(e[i]));return n}r()}}]);var npe=q(tpe.exports),rpe=Object.defineProperty,ope=Object.getOwnPropertyDescriptor,ipe=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?ope(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&rpe(t,n,i),i},ape="updateLink",spe=class extends P8{constructor(){super(...arguments),this._autoLinkRegexNonGlobal=void 0}get name(){return"link"}createTags(){return[VK.Link,VK.ExcludeInputRules]}createMarkSpec(e,t){const n="data-link-auto",r=e=>{const{defaultTarget:t,supportedTargets:n}=this.options,r=t?[...n,t]:n;return e&&MZ(r,e)?{target:e}:void 0};return{inclusive:!1,excludes:"_",...t,attrs:{...e.defaults(),href:{},target:{default:this.options.defaultTarget},auto:{default:!1}},parseDOM:[{tag:"a[href]",getAttrs:t=>{if(!k3(t))return!1;const o=t.getAttribute("href"),i=t.textContent,a=this.options.autoLink&&(t.hasAttribute(n)||o===i||(null==o?void 0:o.replace(`${this.options.defaultProtocol}//`,""))===i);return{...e.parse(t),href:o,auto:a,...r(t.getAttribute("target"))}}},...t.parseDOM??[]],toDOM:t=>{const{auto:o,target:i,...a}=s6(t.attrs,e),s=t.attrs.auto?{[n]:""}:{};return["a",{...e.dom(t),...a,rel:"noopener noreferrer nofollow",...s,...r(t.attrs.target)},0]}}}onCreate(){const{autoLinkRegex:e}=this.options;this._autoLinkRegexNonGlobal=new RegExp(`^${e.source}$`,e.flags.replace("g",""))}shortcut({tr:e}){let t="",{from:n,to:r,empty:o,$from:i}=e.selection,a=!1;const s=X3(i,this.type);if(o){const o=s??K3(e);if(!o)return!1;({text:t,from:n,to:r}=o),a=!0}return n!==r&&(a||(t=e.doc.textBetween(n,r)),this.options.onActivateLink(t),this.options.onShortcut({activeLink:s?{attrs:s.mark.attrs,from:s.from,to:s.to}:void 0,selectedText:t,from:n,to:r}),!0)}updateLink(e,t){return n=>{const{tr:r}=n;var o;return!!(z3(r.selection)&&!T3(r.selection)||$Z(o=r.selection)&&o instanceof m0||$3({trState:r,type:this.type})||t)&&(r.setMeta(this.name,{command:ape,attrs:e,range:t}),function(e){return({dispatch:t,tr:n})=>{const{type:r,attrs:o=PZ(),appendText:i,range:a}=e,s=a?d0.between(n.doc.resolve(a.from),n.doc.resolve(a.to)):n.selection,{$from:l,from:c,to:u}=s;let d=0===l.depth&&n.doc.type.allowsMarkType(r);return n.doc.nodesBetween(c,u,(e=>{if(d)return!1;e.inlineContent&&e.type.allowsMarkType(r)&&(d=!0)})),!!d&&(null==t||t(n.addMark(c,u,r.create(o))&&i?n.insertText(i):n),!0)}}({type:this.type,attrs:e,range:t})(n))}}selectLink(){return this.store.commands.selectMark.original(this.type)}removeLink(e){return t=>{const{tr:n}=t;return!!$3({trState:n,type:this.type,...e})&&y6({type:this.type,expand:!0,range:e})(t)}}createPasteRules(){return[{type:"mark",regexp:this.options.autoLinkRegex,markType:this.type,getAttributes:(e,t)=>({href:this.buildHref(Z3(e)),auto:!t}),transformMatch:e=>{const t=Z3(e);return!!t&&(!!this.isValidUrl(t)&&t)}}]}createEventHandlers(){return{clickMark:(e,t)=>{const n=t.getMark(this.type);if(!n)return;const r=n.mark.attrs,o={...r,...n};if(this.options.onClick(e,o))return!0;if(!this.store.view.editable)return;let i=!1;if(this.options.openLinkOnClick){i=!0;const e=r.href;window.open(e,"_blank")}return this.options.selectTextOnClick&&(i=!0,this.store.commands.selectText(n)),i}}}createPlugin(){return{appendTransaction:(e,t,n)=>{if(e.filter((e=>!!e.getMeta(this.name))).forEach((e=>{const t=e.getMeta(this.name);if(t.command===ape){const{range:e,attrs:r}=t,{selection:o,doc:i}=n,a={range:e,selection:o,doc:i,attrs:r},{from:s,to:l}=e??o;this.options.onUpdateLink(i.textBetween(s,l),a)}})),!this.options.autoLink)return;if(Dre(t)-Dre(n)==1)return;if(!e.some((e=>e.docChanged)))return;const r=function(e,t){const{tr:n}=t;return e.forEach((e=>{e.steps.forEach((e=>{n.step(e)}))})),n}(e,t),o=G3(r,[LQ,IQ]),{mapping:i}=r,{tr:a,doc:s}=n,{updateLink:l,removeLink:c}=this.store.chain(a);return o.forEach((({prevFrom:e,prevTo:n,from:r,to:o})=>{const u=[],d=o-r==2,p=this.getLinkMarksInRange(t.doc,e,n,!0).filter((e=>e.mark.type===this.type)).map((({from:e,to:t,text:n})=>({mappedFrom:i.map(e),mappedTo:i.map(t),text:n,from:e,to:t})));p.forEach((({mappedFrom:e,mappedTo:n,from:i,to:a},f)=>this.getLinkMarksInRange(s,e,n,!0).filter((e=>e.mark.type===this.type)).forEach((n=>{const h=t.doc.textBetween(i,a,void 0," "),m=s.textBetween(n.from,n.to+1,void 0," ").trim(),g=this.isValidUrl(h);this.isValidUrl(m)||(g&&(c({from:n.from,to:n.to}).tr(),p.splice(f,1)),d||r===o&&this.findAutoLinks(m).map((t=>this.addLinkProperties({...t,from:e+t.start,to:e+t.end}))).forEach((({attrs:e,range:t,text:n})=>{l(e,t).tr(),u.push({attrs:e,range:t,text:n})})))})))),this.findTextBlocksInRange(s,{from:r,to:o}).forEach((({text:e,positionStart:t})=>{this.findAutoLinks(e).map((e=>this.addLinkProperties({...e,from:t+e.start+1,to:t+e.end+1}))).filter((({range:e})=>{const t=r>=e.from&&r<=e.to,n=o>=e.from&&o<=e.to;return t||n||d})).filter((({range:e})=>0===this.getLinkMarksInRange(a.doc,e.from,e.to,!1).length)).filter((({range:{from:e},text:t})=>!p.some((({text:n,mappedFrom:r})=>r===e&&n===t)))).forEach((({attrs:e,text:t,range:n})=>{l(e,n).tr(),u.push({attrs:e,range:n,text:t})}))})),window.requestAnimationFrame((()=>{u.forEach((({attrs:e,range:t,text:n})=>{const{doc:r,selection:o}=a;this.options.onUpdateLink(n,{attrs:e,doc:r,range:t,selection:o})}))}))})),0!==a.steps.length?a:void 0}}}buildHref(e){return this.options.extractHref({url:e,defaultProtocol:this.options.defaultProtocol})}getLinkMarksInRange(e,t,n,r){const o=[];if(t===n){const n=Math.max(t-1,0),i=X3(e.resolve(n),this.type);(null==i?void 0:i.mark.attrs.auto)===r&&o.push(i)}else e.nodesBetween(t,n,((e,t)=>{const n=(e.marks??[]).find((({type:e,attrs:t})=>e===this.type&&t.auto===r));n&&o.push({from:t,to:t+e.nodeSize,mark:n,text:e.textContent})}));return o}findTextBlocksInRange(e,t){const n=[];return e.nodesBetween(t.from,t.to,((e,t)=>{e.isTextblock&&e.type.allowsMarkType(this.type)&&n.push({node:e,pos:t})})),n.map((t=>({text:e.textBetween(t.pos,t.pos+t.node.nodeSize,void 0," "),positionStart:t.pos})))}addLinkProperties({from:e,to:t,href:n,...r}){return{...r,range:{from:e,to:t},attrs:{href:n,auto:!0}}}findAutoLinks(e){if(this.options.findAutoLinks)return this.options.findAutoLinks(e,this.options.defaultProtocol);const t=[];for(const n of qZ(e,this.options.autoLinkRegex)){const e=Z3(n);if(!e)continue;const r=this.buildHref(e);(this.isValidTLD(r)||r.startsWith("tel:"))&&t.push({text:e,href:r,start:n.index,end:n.index+e.length})}return t}isValidUrl(e){var t;return this.options.isValidUrl?this.options.isValidUrl(e,this.options.defaultProtocol):this.isValidTLD(this.buildHref(e))&&!!(null==(t=this._autoLinkRegexNonGlobal)?void 0:t.test(e))}isValidTLD(e){const{autoLinkAllowedTLDs:t}=this.options;if(0===t.length)return!0;const n=npe(e);if(""===n)return!0;const r=rJ(n.split("."));return t.includes(r)}};ipe([B8({shortcut:UK.InsertLink})],spe.prototype,"shortcut",1),ipe([F8()],spe.prototype,"updateLink",1),ipe([F8()],spe.prototype,"selectLink",1),ipe([F8()],spe.prototype,"removeLink",1),spe=ipe([I8({defaultOptions:{autoLink:!1,defaultProtocol:"",selectTextOnClick:!1,openLinkOnClick:!1,autoLinkRegex:/(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?:[\da-z\u00A1-\uFFFF][\w\u00A1-\uFFFF-]{0,62})?[\da-z\u00A1-\uFFFF]\.)*(?:(?:\d(?!\.)|[a-z\u00A1-\uFFFF])(?:[\da-z\u00A1-\uFFFF][\w\u00A1-\uFFFF-]{0,62})?[\da-z\u00A1-\uFFFF]\.)+[a-z\u00A1-\uFFFF]{2,}(?::\d{2,5})?(?:[#/?]\S*)?/gi,autoLinkAllowedTLDs:["com","de","net","org","uk","cn","ga","nl","cf","ml","tk","ru","br","gq","xyz","fr","eu","info","co","au","ca","it","in","ch","pl","es","online","us","top","be","jp","biz","se","at","dk","cz","za","me","ir","icu","shop","kr","site","mx","hu","io","cc","club","no","cyou"],findAutoLinks:void 0,isValidUrl:void 0,defaultTarget:null,supportedTargets:[],extractHref:function({url:e,defaultProtocol:t}){const n=/^((?:https?|ftp)?:)\/\//.test(e);if(!n&&e.includes("@"))return`mailto:${e}`;return n?e:`${t}//${e}`}},staticKeys:["autoLinkRegex"],handlerKeyOptions:{onClick:{earlyReturnValue:!0}},handlerKeys:["onActivateLink","onShortcut","onUpdateLink","onClick"],defaultPriority:WK.Medium})],spe);var lpe=cpe;function cpe(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}cpe.displayName="json",cpe.aliases=["webmanifest"];var upe=q(lpe),dpe=ppe;function ppe(e){!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,l]:a.alias.push(l):a.alias=[l]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],c=/language-(.+)/.exec(i);if(c){n=c[1];break}}var u=e.languages[n];if(u)t.content=e.highlight(function(e){var t=e.replace(a,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n);var r=s[t];return r||e})),t}(t.content.value),u,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(e)}ppe.displayName="markdown",ppe.aliases=["md"];var fpe=q(dpe),hpe=mpe;function mpe(e){!function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(e)}mpe.displayName="typescript",mpe.aliases=["ts"];var gpe=q(hpe);const vpe=new vse,bpe=new kse,ype=new Ese,xpe=new ole,wpe=new Oae,kpe=new Dse,Ope=new xde({supportedLanguages:[Due,Fue,upe,fpe,gpe]}),Spe=new lle,Cpe=new Sde,Tpe=new vae,Epe=new bae,Mpe=new Pde,Ppe=new Zse,Npe=new _de,Ape=new spe({autoLink:!0,openLinkOnClick:!0}),Dpe=new epe({enableResizing:!0}),Rpe=new dse({autoUpdate:!0,defaultDirection:"rtl"}),_pe=()=>[vpe,Rpe,Ape,Dpe,bpe,ype,xpe,wpe,Ope,kpe,Spe,Cpe,Tpe,Epe,Mpe,Npe,Ppe];function jpe({iconSize:n=18,type:r,level:o}){const i=Eie().heading({level:o}),{toggleHeading:a}=Mie();return t(Bae,{type:r,isActive:i,onClick:function(){a.enabled({level:o})&&a({level:o})},disabled:!a.enabled({level:o}),children:[o,e(_ae,{size:n})]})}function Ipe(e){return aC({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M6.2253 4.81108C5.83477 4.42056 5.20161 4.42056 4.81108 4.81108C4.42056 5.20161 4.42056 5.83477 4.81108 6.2253L10.5858 12L4.81114 17.7747C4.42062 18.1652 4.42062 18.7984 4.81114 19.1889C5.20167 19.5794 5.83483 19.5794 6.22535 19.1889L12 13.4142L17.7747 19.1889C18.1652 19.5794 18.7984 19.5794 19.1889 19.1889C19.5794 18.7984 19.5794 18.1652 19.1889 17.7747L13.4142 12L19.189 6.2253C19.5795 5.83477 19.5795 5.20161 19.189 4.81108C18.7985 4.42056 18.1653 4.42056 17.7748 4.81108L12 10.5858L6.2253 4.81108Z",fill:"currentColor"}}]})(e)}function Lpe({iconSize:r=18,type:o}){const i=function(e=!1){return Tie(e?{autoUpdate:!0}:void 0).attrs}().link()?.href??"",[a,s]=u(i),[l,c]=u(!1),p=Eie().link(),f=Tie().chain.new(),h=d();return t(n,{children:[e(Bae,{isActive:p,onClick:function(){a||f.selectLink(),c(!0)},type:o,ref:h,children:e(Iae,{size:r})}),e(Av,{open:l,anchorEl:h.current,onClose:function(){c(!1)},anchorOrigin:{vertical:"bottom",horizontal:"left"},className:"kd-popover",children:t("div",{className:"kd-popover__link-url",children:[e(Ipe,{size:r,className:"kd-popover__link-url__close-icon",onClick:function(){f.removeLink().focus().run(),s(null),c(!1)}}),e(uC,{label:"آدرس لینک",className:"toggle-link-handler__href-input",onKeyUp:e=>function(e){13===e.keyCode&&(""===a?(f.removeLink(),c(!1)):(f.updateLink({href:a}),c(!1)),f.run()),27===e.keyCode&&c(!1)}(e),onChange:e=>s(e.target.value),defaultValue:a})]})})]})}const zpe=[{name:"offset",options:{offset:[0,8]}}];function Fpe(){const[r,o]=u(null),{ref:i,x:a,y:s,width:l,height:c,active:p}=function(e,t){const n=null==t||zZ(t)?[e]:t,r=!zZ(t)||t,o=d(KZ()),i=Pae(e,n)[0];return f((()=>i&&r?{...i,active:!0}:{...Uoe,ref:void 0,data:{},active:!1,key:o.current}),[r,i])}((()=>oie("selection")),[]),h=f((()=>({position:"absolute",pointerEvents:"none",left:a,top:s,width:l,height:c})),[a,s,l,c]),g=m((e=>{o(e),i?.(e)}),[i]);return e("div",{ref:g,style:h,children:t(Md,{className:"kd-floating-toolbar",placement:"top",open:p,anchorEl:r,modifiers:zpe,children:[t(n,{children:[e(Lpe,{iconSize:16,type:"flat"}),e(Vae,{iconSize:16,type:"flat"}),e($ae,{iconSize:16,type:"flat"}),e(Hae,{iconSize:16,type:"flat"})]}),t(n,{children:[e(jpe,{iconSize:16,type:"flat",level:1}),e(jpe,{iconSize:16,type:"flat",level:2})]})]})})}const Bpe=({onChange:n,defaultValue:r,style:o,...i})=>{const{manager:a,state:s}=$ie({extensions:_pe,selection:"start"}),l=i6({content:r??"",schema:s.schema});return e("div",{style:{height:"300px",...o},...i,children:e("div",{className:"remirror-theme kd-editor",children:t(Uie,{manager:a,initialContent:l,children:[e(ese,{}),e(Wie,{}),e(Fpe,{}),e(Hie,{onChange:e=>{n&&n(e)}})]})})})},Vpe=t=>e("div",{style:{...t.style},children:t.src?!1===t.modal?e("img",{...t}):e(UV,{...t,small:t.src,large:t.src}):e(Uae,{style:{color:"gray",height:"100%",width:"100%"}})});function $pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Hpe(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>w(e)));return function(n){const r=(null==n?void 0:n[e])||t;return f((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=w(r),i=n.length;function s(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=f((()=>a),Object.values(a));return k(s.Provider,{value:l},r)}return n=[...n,r],s.displayName=t+"Provider",[s,function(n,s){const l=(null==s?void 0:s[e][i])||o,c=a(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Wpe(r,...t)]}function Wpe(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return f((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function Ype(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Upe(...e){return m(Ype(...e),e)}const Xpe=i(((e,t)=>{const{children:n,...r}=e,o=s.toArray(n),i=o.find(Kpe);if(i){const e=i.props.children,n=o.map((t=>t===i?s.count(e)>1?s.only(null):l(e)?e.props.children:null:t));return k(qpe,H({},r,{ref:t}),l(e)?c(e,void 0,n):null)}return k(qpe,H({},r,{ref:t}),n)}));Xpe.displayName="Slot";const qpe=i(((e,t)=>{const{children:n,...r}=e;return l(n)?c(n,{...Zpe(r,n.props),ref:t?Ype(t,n.ref):n.ref}):s.count(n)>1?s.only(null):null}));qpe.displayName="SlotClone";const Gpe=({children:e})=>k(v,null,e);function Kpe(e){return l(e)&&e.type===Gpe}function Zpe(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Jpe=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?b:()=>{},Qpe=r["useId".toString()]||(()=>{});let efe=0;function tfe(e){const[t,n]=r.useState(Qpe());return Jpe((()=>{e||n((e=>null!=e?e:String(efe++)))}),[e]),e||(t?`radix-${t}`:"")}const nfe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=i(((e,n)=>{const{asChild:r,...o}=e,i=r?Xpe:t;return p((()=>{window[Symbol.for("radix-ui")]=!0}),[]),k(i,H({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function rfe(e){const t=d(e);return p((()=>{t.current=e})),f((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function ofe({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=u(e),[r]=n,o=d(r),i=rfe(t);return p((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=rfe(n);return[a,m((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}const ife=w(void 0);function afe(e){const t=a(ife);return e||t||"ltr"}const sfe="rovingFocusGroup.onEntryFocus",lfe={bubbles:!1,cancelable:!0},cfe="RovingFocusGroup",[ufe,dfe,pfe]=function(e){const t=e+"CollectionProvider",[n,r]=Hpe(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e+"CollectionSlot",l=e+"CollectionItemSlot",c="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=o.useRef(null),a=o.useRef(new Map).current;return o.createElement(i,{scope:t,itemMap:a,collectionRef:r},n)},Slot:o.forwardRef(((e,t)=>{const{scope:n,children:r}=e,i=Upe(t,a(s,n).collectionRef);return o.createElement(Xpe,{ref:i},r)})),ItemSlot:o.forwardRef(((e,t)=>{const{scope:n,children:r,...i}=e,s=o.useRef(null),u=Upe(t,s),d=a(l,n);return o.useEffect((()=>(d.itemMap.set(s,{ref:s,...i}),()=>{d.itemMap.delete(s)}))),o.createElement(Xpe,{[c]:"",ref:u},r)}))},function(t){const n=a(e+"CollectionConsumer",t),r=o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}(cfe),[ffe,hfe]=Hpe(cfe,[pfe]),[mfe,gfe]=ffe(cfe),vfe=i(((e,t)=>k(ufe.Provider,{scope:e.__scopeRovingFocusGroup},k(ufe.Slot,{scope:e.__scopeRovingFocusGroup},k(bfe,H({},e,{ref:t})))))),bfe=i(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...f}=e,h=d(null),g=Upe(t,h),v=afe(i),[b=null,y]=ofe({prop:a,defaultProp:s,onChange:l}),[x,w]=u(!1),O=rfe(c),S=dfe(n),C=d(!1),[T,E]=u(0);return p((()=>{const e=h.current;if(e)return e.addEventListener(sfe,O),()=>e.removeEventListener(sfe,O)}),[O]),k(mfe,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:b,onItemFocus:m((e=>y(e)),[y]),onItemShiftTab:m((()=>w(!0)),[]),onFocusableItemAdd:m((()=>E((e=>e+1))),[]),onFocusableItemRemove:m((()=>E((e=>e-1))),[])},k(nfe.div,H({tabIndex:x||0===T?-1:0,"data-orientation":r},f,{ref:g,style:{outline:"none",...e.style},onMouseDown:$pe(e.onMouseDown,(()=>{C.current=!0})),onFocus:$pe(e.onFocus,(e=>{const t=!C.current;if(e.target===e.currentTarget&&t&&!x){const t=new CustomEvent(sfe,lfe);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=S().filter((e=>e.focusable));wfe([e.find((e=>e.active)),e.find((e=>e.id===b)),...e].filter(Boolean).map((e=>e.ref.current)))}}C.current=!1})),onBlur:$pe(e.onBlur,(()=>w(!1)))})))})),yfe=i(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=tfe(),l=i||s,c=gfe("RovingFocusGroupItem",n),u=c.currentTabStopId===l,d=dfe(n),{onFocusableItemAdd:f,onFocusableItemRemove:h}=c;return p((()=>{if(r)return f(),()=>h()}),[r,f,h]),k(ufe.ItemSlot,{scope:n,id:l,focusable:r,active:o},k(nfe.span,H({tabIndex:u?0:-1,"data-orientation":c.orientation},a,{ref:t,onMouseDown:$pe(e.onMouseDown,(e=>{r?c.onItemFocus(l):e.preventDefault()})),onFocus:$pe(e.onFocus,(()=>c.onItemFocus(l))),onKeyDown:$pe(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:xfe[r]}(e,c.orientation,c.dir);if(void 0!==t){e.preventDefault();let o=d().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=c.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>wfe(o)))}var n,r}))})))})),xfe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wfe(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const kfe=vfe,Ofe=yfe;const Sfe=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=u(),r=d({}),o=d(e),i=d("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return h(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p((()=>{const e=Cfe(r.current);i.current="mounted"===s?e:"none"}),[s]),Jpe((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Cfe(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),Jpe((()=>{if(t){const e=e=>{const n=Cfe(r.current).includes(e.animationName);e.target===t&&n&&E((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Cfe(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:m((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):s.only(n),i=Upe(r.ref,o.ref);return"function"==typeof n||r.isPresent?c(o,{ref:i}):null};function Cfe(e){return(null==e?void 0:e.animationName)||"none"}Sfe.displayName="Presence";const Tfe="Tabs",[Efe,Mfe]=Hpe(Tfe,[hfe]),Pfe=hfe(),[Nfe,Afe]=Efe(Tfe),Dfe=i(((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:l="automatic",...c}=e,u=afe(s),[d,p]=ofe({prop:r,onChange:o,defaultProp:i});return k(Nfe,{scope:n,baseId:tfe(),value:d,onValueChange:p,orientation:a,dir:u,activationMode:l},k(nfe.div,H({dir:u,"data-orientation":a},c,{ref:t})))}));function Rfe(e,t){return`${e}-trigger-${t}`}function _fe(e,t){return`${e}-content-${t}`}const jfe=Dfe,Ife=i(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=Afe("TabsList",n),a=Pfe(n);return k(kfe,H({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),k(nfe.div,H({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))})),Lfe=i(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=Afe("TabsTrigger",n),s=Pfe(n),l=Rfe(a.baseId,r),c=_fe(a.baseId,r),u=r===a.value;return k(Ofe,H({asChild:!0},s,{focusable:!o,active:u}),k(nfe.button,H({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},i,{ref:t,onMouseDown:$pe(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)})),onKeyDown:$pe(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)})),onFocus:$pe(e.onFocus,(()=>{const e="manual"!==a.activationMode;u||o||!e||a.onValueChange(r)}))})))})),zfe=i(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,s=Afe("TabsContent",n),l=Rfe(s.baseId,r),c=_fe(s.baseId,r),u=r===s.value,f=d(u);return p((()=>{const e=requestAnimationFrame((()=>f.current=!1));return()=>cancelAnimationFrame(e)}),[]),k(Sfe,{present:o||u},(({present:n})=>k(nfe.div,H({"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:c,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),n&&i)))}));function Ffe({children:t,...n}){return e(jfe,{dir:"rtl",className:"KdTabsRoot",...n,children:t})}function Bfe({children:t,...n}){return e(JF,{children:e(Ife,{className:"KdTabsList",...n,children:t})})}function Vfe({children:t,...n}){return e(zfe,{className:"KdTabsContent",...n,children:t})}function $fe({children:t,...n}){return e(Lfe,{className:"KdTabsTrigger",...n,children:t})}function Hfe({setCurrentStep:t,defaultValue:n,children:r,...o}){return p((()=>{n&&t("string"==typeof n?parseInt(n):n)}),[n]),e("div",{...o,children:r})}function Wfe({children:t,currentStep:n,...r}){return e(JF,{children:e(qx,{activeStep:n,orientation:"horizontal",className:"KdStepper",...r,children:t.map(((t,r)=>e(vx,{completed:n>r,children:t})))})})}function Yfe({children:r,footer:o=!0,backButtonText:i="قبلی",nextButtonText:a="بعدی",index:s,currentStep:l,setCurrentStep:c,onPrev:u,onNext:d,...p}){return l===s?t("div",{...p,children:[r,o&&t("div",{className:"KdStepContent_Buttons",children:[e(HL,{disabled:0===l,onClick:()=>{u?u():c(l-1)},children:i}),e(HL,{variant:"contained",onClick:()=>{d?d():c(l+1)},children:a})]})]}):e(n,{})}function Ufe({children:t,index:n,setCurrentStep:r,icon:o,...i}){return e(Ix,{icon:o??void 0,className:"KdStepLabel",color:"inherit",onClick:()=>{r(n)},...i,children:t})}export{vK as KdAdvanceFileUploader,RK as KdChart2D,DK as KdChart3D,sG as KdDropDownField,hK as KdFileUploader,aG as KdFormContainer,iG as KdFormField,Bpe as KdHtmlEditor,Vpe as KdImageBox,Yfe as KdStepContent,Wfe as KdStepList,Hfe as KdStepRoot,Ufe as KdStepTrigger,Vfe as KdTabsContent,Bfe as KdTabsList,Ffe as KdTabsRoot,$fe as KdTabsTrigger,pK as KdTypography,VX as KdpaAccordion,HX as KdpaAccordionDetails,$X as KdpaAccordionSummary,Hw as KdpaAlert,Ww as KdpaAlertTitle,BL as KdpaAutoComplete,mC as KdpaAvatar,KS as KdpaBadge,VL as KdpaButton,YL as KdpaCheckBox,cC as KdpaChip,tz as KdpaCircularProgress,nG as KdpaCodeEditor,QL as KdpaCollapse,sz as KdpaCollapseTransitions,rV as KdpaCopyToClipboard,rG as KdpaDataGrid,dL as KdpaDatePicker,jL as KdpaDateTimePicker,oG as KdpaDialog,ez as KdpaDivider,SF as KdpaDropZone,iz as KdpaFade,oq as KdpaFileUploader,iq as KdpaFormContainer,IL as KdpaFormControl,LL as KdpaFormControlLabel,aq as KdpaFormField,JX as KdpaFullScreenDialog,eC as KdpaGrid,QS as KdpaGridBadge,az as KdpaGrow,$L as KdpaIconButton,iV as KdpaInlineSpinner,uC as KdpaInput,dC as KdpaInputLabel,pC as KdpaInputMultiline,QF as KdpaLazyDrop,aV as KdpaLoading,FL as KdpaMenuItem,qV as KdpaModal,XV as KdpaModalImage,ZS as KdpaMuiBadge,KV as KdpaPaginationGrid,HL as KdpaPrimaryButton,fC as KdpaRadio,hC as KdpaRadioGroup,KX as KdpaRtlProvider,WL as KdpaSecondaryButton,tq as KdpaSegment,zL as KdpaSelect,sV as KdpaSkeleton,lz as KdpaSlide,GV as KdpaSlider,KL as KdpaSweetAlertConfirm,ZL as KdpaSweetAlertDelete,JL as KdpaSweetAlertOK,gC as KdpaSwitch,rz as KdpaTab,oz as KdpaTabs,WX as KdpaThemeProvider,AD as KdpaTimePicker,JS as KdpaTooltip,QV as KdpaTree,BX as KdpaTreeSelect,uL as KdpaTypography,cz as KdpaZoom};
|
|
310
|
+
*/e.exports&&(e.exports=t),void 0!==X&&(X.Prism=t)}(Tue);var Eue=Tue.exports,Mue=Pue;function Pue(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}Pue.displayName="markup",Pue.aliases=["html","mathml","svg","xml","ssml","atom","rss"];var Nue=Aue;function Aue(e){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e)}Aue.displayName="css",Aue.aliases=[];var Due=q(Nue),Rue=_ue;function _ue(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}_ue.displayName="clike",_ue.aliases=[];var jue=Iue;function Iue(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}Iue.displayName="javascript",Iue.aliases=["js"];var Lue,zue,Fue=q(jue),Bue="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof X?X:{},Vue=(zue=(Lue="Prism"in Bue)?Bue.Prism:void 0,function(){Lue?Bue.Prism=zue:delete Bue.Prism,Lue=void 0,zue=void 0});Bue.Prism={manual:!0,disableWorkerMessageHandler:!0};var $ue=Rce,Hue=qce,Wue=Eue,Yue=Mue,Uue=Nue,Xue=Rue,que=jue;Vue();var Gue={}.hasOwnProperty;function Kue(){}Kue.prototype=Wue;var Zue=new Kue,Jue=Zue;function Que(e){if("function"!=typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===Zue.languages[e.displayName]&&e(Zue)}Zue.highlight=function(e,t){var n,r=Wue.highlight;if("string"!=typeof e)throw new Error("Expected `string` for `value`, got `"+e+"`");if("Object"===Zue.util.type(t))n=t,t=null;else{if("string"!=typeof t)throw new Error("Expected `string` for `name`, got `"+t+"`");if(!Gue.call(Zue.languages,t))throw new Error("Unknown language: `"+t+"` is not registered");n=Zue.languages[t]}return r.call(this,e,n,t)},Zue.register=Que,Zue.alias=function(e,t){var n,r,o,i,a=Zue.languages,s=e;t&&((s={})[e]=t);for(n in s)for(o=(r="string"==typeof(r=s[n])?[r]:r).length,i=-1;++i<o;)a[r[i]]=a[n]},Zue.registered=function(e){if("string"!=typeof e)throw new Error("Expected `string` for `language`, got `"+e+"`");return Gue.call(Zue.languages,e)},Zue.listLanguages=function(){var e,t=Zue.languages,n=[];for(e in t)Gue.call(t,e)&&"object"==typeof t[e]&&n.push(e);return n},Que(Yue),Que(Uue),Que(Xue),Que(que),Zue.util.encode=function(e){return e},Zue.Token.stringify=function(e,t,n){var r;if("string"==typeof e)return{type:"text",value:e};if("Array"===Zue.util.type(e))return function(e,t){var n,r=[],o=e.length,i=-1;for(;++i<o;)""!==(n=e[i])&&null!=n&&r.push(n);i=-1,o=r.length;for(;++i<o;)n=r[i],r[i]=Zue.Token.stringify(n,t,r);return r}(e,t);r={type:e.type,content:Zue.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(r.classes=r.classes.concat(e.alias));return Zue.hooks.run("wrap",r),$ue(r.tag+"."+r.classes.join("."),function(e){var t;for(t in e)e[t]=Hue(e[t]);return e}(r.attributes),r.content)};var ede=q(Jue),tde=Object.defineProperty,nde=Object.getOwnPropertyDescriptor,rde=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?nde(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&tde(t,n,i),i},ode=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},ide=(e,t,n)=>(ode(e,t,"read from private field"),n?n.call(e):t.get(e)),ade=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},sde=(e,t,n,r)=>(ode(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),lde="data-code-block-language";function cde(e,t,n=[]){return e.map((e=>{const r=[...n];return"element"===e.type&&e.properties.className?r.push(...e.properties.className):"text"===e.type&&0===r.length&&t&&r.push(t),"element"===e.type?cde(e.children,t,r):{text:e.value,classes:r}}))}function ude(e,t){var n;const{node:r,pos:o}=e,i=fde({language:null==(n=r.attrs.language)?void 0:n.replace("language-",""),fallback:"markup"}),a=cde(ede.highlight(r.textContent??"",i),t);let s=o+1;return eJ(a).map((function(e){const t=s,n=t+e.text.length;return s=n,{...e,from:t,to:n}}))}function dde(e){const{blocks:t,skipLast:n,plainTextClassName:r}=e,o=[];for(const e of t){const t=ude(e,r),i=n?t.length-1:t.length;for(const e of lJ(i)){const n=t[e],r=null==n?void 0:n.classes;if(!n||!(null==r?void 0:r.length))continue;const i=F5.inline(n.from,n.to,{class:r.join(" ")});o.push(i)}}return o}function pde(e){return t=>({state:{tr:n,selection:r},dispatch:o})=>{if(!function(e){return!!(e&&$Z(e)&&jZ(e.language)&&e.language.length>0)}(t))throw new Error("Invalid attrs passed to the updateAttributes method");const i=C3({types:e,selection:r});return!(!i||JZ(t,i.node.attrs))&&(n.setNodeMarkup(i.pos,e,{...i.node.attrs,...t}),o&&o(n),!0)}}function fde(e){const{language:t,fallback:n}=e;if(!t)return n;const r=ede.listLanguages();for(const e of r)if(e.toLowerCase()===t.toLowerCase())return e;return n}var hde,mde,gde,{DESCRIPTION:vde,LABEL:bde}=Y0,yde={icon:"bracesLine",description:({t:e})=>e(vde),label:({t:e})=>e(bde)};hde=new WeakMap,mde=new WeakMap,gde=new WeakMap;var xde=class extends N8{get name(){return"codeBlock"}createTags(){return[VK.Block,VK.Code]}init(){this.registerLanguages()}createNodeSpec(e,t){const n=/highlight-(?:text|source)-([\da-z]+)/;return{content:"text*",marks:"",defining:!0,draggable:!1,...t,code:!0,attrs:{...e.defaults(),language:{default:this.options.defaultLanguage},wrap:{default:this.options.defaultWrap}},parseDOM:[{tag:"div.highlight",preserveWhitespace:"full",getAttrs:t=>{var r,o;if(!k3(t))return!1;const i=t.querySelector("pre.code");if(!k3(i))return!1;const a="pre-wrap"===s3(i,"white-space"),s=null==(o=null==(r=t.className.match(n))?void 0:r[1])?void 0:o.replace("language-","");return{...e.parse(t),language:s,wrap:a}}},{tag:"pre",preserveWhitespace:"full",getAttrs:t=>{if(!k3(t))return!1;const n=t.querySelector("code");if(!k3(n))return!1;const r="pre-wrap"===s3(n,"white-space"),o=this.options.getLanguageFromDom(n,t);return{...e.parse(t),language:o,wrap:r}}},...t.parseDOM??[]],toDOM:t=>function(e,t){const{language:n,wrap:r}=s6(e.attrs,t),{style:o,...i}=t.dom(e);let a=i.style;return r&&(a=l6({whiteSpace:"pre-wrap",wordBreak:"break-all"},a)),["pre",{spellcheck:"false",...i,class:k8(i.class,`language-${n}`)},["code",{[lde]:n,style:a},0]]}(t,e)}}createAttributes(){return{class:coe[this.options.syntaxTheme.toUpperCase()]}}createInputRules(){return[O6({regexp:/^```([\dA-Za-z]*) $/,type:this.type,beforeDispatch:({tr:e,start:t})=>{const n=e.doc.resolve(t);e.setSelection(d0.near(n))},getAttributes:e=>({language:fde({language:Z3(e,1),fallback:this.options.defaultLanguage})})})]}onSetOptions(e){const{changes:t}=e;t.supportedLanguages.changed&&this.registerLanguages(),t.syntaxTheme.changed&&this.store.updateAttributes()}createPlugin(){const e=new class{constructor(e,t){ade(this,hde,void 0),ade(this,mde,void 0),ade(this,gde,!1),sde(this,mde,e),sde(this,hde,t)}init(e){const t=x6({node:e.doc,type:ide(this,mde)});return this.refreshDecorationSet(e.doc,t),this}refreshDecorationSet(e,t){const n=dde({blocks:t,skipLast:ide(this,gde),defaultLanguage:ide(this,hde).options.defaultLanguage,plainTextClassName:ide(this,hde).options.plainTextClassName??void 0});this.decorationSet=$5.create(e,n)}apply(e,t){if(!e.docChanged)return this;this.decorationSet=this.decorationSet.map(e.mapping,e.doc);const n=w6(e,{descend:!0,predicate:e=>e.type===ide(this,mde),StepTypes:[]});return this.updateDecorationSet(e,n),this}updateDecorationSet(e,t){if(0===t.length)return;let n=this.decorationSet;for(const{node:e,pos:r}of t)n=this.decorationSet.remove(this.decorationSet.find(r,r+e.nodeSize));this.decorationSet=n.add(e.doc,dde({blocks:t,skipLast:ide(this,gde),defaultLanguage:ide(this,hde).options.defaultLanguage,plainTextClassName:ide(this,hde).options.plainTextClassName??void 0}))}setDeleted(e){sde(this,gde,e)}}(this.type,this),t=()=>(e.setDeleted(!0),!1);return{state:{init:(t,n)=>e.init(n),apply:(t,n,r,o)=>e.apply(t,o)},props:{handleKeyDown:e8({Backspace:t,"Mod-Backspace":t,Delete:t,"Mod-Delete":t,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t}),decorations:()=>(e.setDeleted(!1),e.decorationSet)}}}toggleCodeBlock(e={}){return g6({type:this.type,toggleType:this.options.toggleName,attrs:{language:this.options.defaultLanguage,...e}})}createCodeBlock(e){return m6(this.type,e)}updateCodeBlock(e){return pde(this.type)(e)}formatCodeBlock(e){return function(e){return({pos:t}=PZ())=>({tr:n,dispatch:r})=>{const{type:o,formatter:i,defaultLanguage:a}=e,{from:s,to:l}=t?{from:t,to:t}:n.selection,c=C3({types:o,selection:n.selection});if(!c)return!1;const{node:{attrs:u,textContent:d},start:p}=c,f=s-p,h=l-p,m=fde({language:u.language,fallback:a}),g=i({source:d,language:m,cursorOffset:f});let v;if(f!==h&&(v=i({source:d,language:m,cursorOffset:h})),!g)return!1;const{cursorOffset:b,formatted:y}=g;if(y===d)return!1;const x=p+d.length;n.insertText(y,p,x);const w=p+b,k=v?p+v.cursorOffset:void 0;return n.setSelection(d0.between(n.doc.resolve(w),n.doc.resolve(k??w))),r&&r(n),!0}}({type:this.type,formatter:this.options.formatter,defaultLanguage:this.options.defaultLanguage})(e)}tabKey({state:e,dispatch:t}){const{selection:n,tr:r,schema:o}=e,{node:i}=function(e){const t=S3({predicate:()=>!0,selection:e});return hJ(t,{message:"No parent node found for the selection provided."}),t}(n);if(!O3({node:i,types:this.type}))return!1;if(n.empty)r.insertText("\t");else{const{from:e,to:t}=n;r.replaceWith(e,t,o.text("\t"))}return t&&t(r),!0}backspaceKey({dispatch:e,tr:t,state:n}){if(!t.selection.empty)return!1;const r=C3({types:this.type,selection:t.selection});if((null==r?void 0:r.start)!==t.selection.from)return!1;const{pos:o,node:i,start:a}=r,s=kZ(n.schema.nodes,this.options.toggleName);return""===i.textContent.trim()?t.doc.lastChild===i&&t.doc.firstChild===i?function({pos:e,tr:t,content:n}){const r=t.doc.nodeAt(e);r&&t.replaceWith(e,e+r.nodeSize,n)}({pos:o,tr:t,content:s.create()}):function({pos:e,tr:t}){const n=t.doc.nodeAt(e);n&&t.delete(e,e+n.nodeSize)}({pos:o,tr:t}):a>2?t.setSelection(d0.near(t.doc.resolve(a-2))):(t.insert(0,s.create()),t.setSelection(d0.near(t.doc.resolve(1)))),e&&e(t),!0}enterKey({dispatch:e,tr:t}){if(!z3(t.selection)||!t.selection.empty)return!1;const{nodeBefore:n,parent:r}=t.selection.$anchor;if(!(null==n?void 0:n.isText)||!r.type.isTextblock)return!1;const o=/^```([A-Za-z]*)?$/,{text:i,nodeSize:a}=n,{textContent:s}=r;if(!i)return!1;const l=i.match(o),c=s.match(o);if(!l||!c)return!1;const[,u]=l,d=fde({language:u,fallback:this.options.defaultLanguage}),p=t.selection.$from.before(),f=p+a+1;return t.replaceWith(p,f,this.type.create({language:d})),t.setSelection(d0.near(t.doc.resolve(p+1))),e&&e(t),!0}formatShortcut({tr:e}){const t=this.store.commands;if(!M3({type:this.type,state:e}))return!1;const n=t.formatCodeBlock.isEnabled();return n&&t.formatCodeBlock(),n}registerLanguages(){for(const e of this.options.supportedLanguages)ede.register(e)}};rde([F8(yde)],xde.prototype,"toggleCodeBlock",1),rde([F8()],xde.prototype,"createCodeBlock",1),rde([F8()],xde.prototype,"updateCodeBlock",1),rde([F8()],xde.prototype,"formatCodeBlock",1),rde([B8({shortcut:"Tab"})],xde.prototype,"tabKey",1),rde([B8({shortcut:"Backspace"})],xde.prototype,"backspaceKey",1),rde([B8({shortcut:"Enter"})],xde.prototype,"enterKey",1),rde([B8({shortcut:UK.Format})],xde.prototype,"formatShortcut",1),xde=rde([I8({defaultOptions:{supportedLanguages:[],toggleName:"paragraph",formatter:({source:e})=>({cursorOffset:0,formatted:e}),syntaxTheme:"a11y_dark",defaultLanguage:"markup",defaultWrap:!1,plainTextClassName:"",getLanguageFromDom:function(e){var t;return null==(t=e.getAttribute(lde)??e.classList[0])?void 0:t.replace("language-","")}},staticKeys:["getLanguageFromDom"]})],xde);var wde=Object.defineProperty,kde=Object.getOwnPropertyDescriptor,Ode=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?kde(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&wde(t,n,i),i},Sde=class extends N8{get name(){return"blockquote"}createTags(){return[VK.Block,VK.FormattingNode]}createNodeSpec(e,t){return{content:"block+",defining:!0,draggable:!1,...t,attrs:e.defaults(),parseDOM:[{tag:"blockquote",getAttrs:e.parse,priority:100},...t.parseDOM??[]],toDOM:t=>["blockquote",e.dom(t),0]}}toggleBlockquote(){return h6(this.type)}shortcut(e){return this.toggleBlockquote()(e)}createInputRules(){return[i1(/^\s*>\s$/,this.type)]}createPasteRules(){return{type:"node",nodeType:this.type,regexp:/^\s*>\s$/,startOfTextBlock:!0}}};Ode([F8({icon:"doubleQuotesL",description:({t:e})=>e(H0.DESCRIPTION),label:({t:e})=>e(H0.LABEL)})],Sde.prototype,"toggleBlockquote",1),Ode([B8({shortcut:"Ctrl->",command:"toggleBlockquote"})],Sde.prototype,"shortcut",1);var Cde=new P0("trailingNode");function Tde(e){const{ignoredNodes:t=[],nodeName:n="paragraph"}=e??{},r=QZ([...t,n]);let o,i;return new T0({key:Cde,appendTransaction(e,t,n){const{doc:r,tr:i}=n,a=Cde.getState(n),s=r.content.size;if(a)return i.insert(s,o.create())},state:{init:(e,{doc:t,schema:a})=>{var s;const l=a.nodes[n];if(!l)throw new Error(`Invalid node being used for trailing node extension: '${n}'`);return o=l,i=Object.values(a.nodes).map((e=>e)).filter((e=>!r.includes(e.name))),MZ(i,null==(s=t.lastChild)?void 0:s.type)},apply:(e,t)=>{var n;return e.docChanged?MZ(i,null==(n=e.doc.lastChild)?void 0:n.type):t}}})}var Ede=Object.defineProperty,Mde=Object.getOwnPropertyDescriptor,Pde=class extends M8{get name(){return"trailingNode"}onSetOptions(e){const{changes:t}=e;(t.disableTags.changed||t.ignoredNodes.changed||t.nodeName.changed)&&this.store.updateExtensionPlugins(this)}createExternalPlugins(){const{tags:e}=this.store,{disableTags:t,nodeName:n}=this.options;return[Tde({ignoredNodes:t?[...this.options.ignoredNodes]:[...this.options.ignoredNodes,...e.lastNodeCompatible],nodeName:n})]}};Pde=((e,t,n,r)=>{for(var o,i=r>1?void 0:r?Mde(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Ede(t,n,i),i})([I8({defaultOptions:{ignoredNodes:[],disableTags:!1,nodeName:"paragraph"}})],Pde);var Nde=Object.defineProperty,Ade=Object.getOwnPropertyDescriptor,Dde=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?Ade(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Nde(t,n,i),i},Rde={icon:"separator",label:({t:e})=>e(q0.LABEL),description:({t:e})=>e(q0.DESCRIPTION)},_de=class extends N8{get name(){return"horizontalRule"}createTags(){return[VK.Block]}createNodeSpec(e,t){return{...t,attrs:e.defaults(),parseDOM:[{tag:"hr",getAttrs:e.parse},...t.parseDOM??[]],toDOM:t=>["hr",e.dom(t)]}}insertHorizontalRule(){return e=>{const{tr:t,dispatch:n}=e,r=t.selection.$anchor,o=r.parent;if("doc"===o.type.name||o.isAtom||o.isLeaf)return!1;if(!n)return!0;return t.selection.empty&&U3(o)&&t.insert(r.pos+1,o),t.replaceSelectionWith(this.type.create()),this.updateFromNodeSelection(t),n(t.scrollIntoView()),!0}}createInputRules(){return[O6({regexp:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type,beforeDispatch:({tr:e})=>{this.updateFromNodeSelection(e)}})]}updateFromNodeSelection(e){if(!V3(e.selection)||e.selection.node.type.name!==this.name)return;const t=e.selection.$from.pos+1,{insertionNode:n}=this.options;if(!n)return;const r=this.store.schema.nodes[n];hJ(r,{code:XK.EXTENSION,message:`'${n}' node provided as the insertionNode to the '${this.constructorName}' does not exist.`});const o=r.create();e.insert(t,o),e.setSelection(d0.near(e.doc.resolve(t+1)))}};Dde([F8(Rde)],_de.prototype,"insertHorizontalRule",1),_de=Dde([I8({defaultOptions:{insertionNode:"paragraph"}})],_de);var jde,Ide=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Lde=(e,t,n)=>(Ide(e,t,"read from private field"),n?n.call(e):t.get(e)),zde=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Fde=(e,t,n,r)=>(Ide(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Bde=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="22" height="22" fill="rgba(0, 0, 0, 0.65)" stroke="rgba(255, 255, 255, 0.5)" transform="rotate(90)" xmlns:v="https://vecta.io/nano"><path fill-rule="evenodd" d="M14 0a2 2 0 0 0-2 2v10H2a2 2 0 1 0 0 4h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/></svg>'),Vde=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="22" height="22" fill="rgba(0, 0, 0, 0.65)" stroke="rgba(255, 255, 255, 0.5)" transform="matrix(0 1 1 0 0 0)" xmlns:v="https://vecta.io/nano"><path fill-rule="evenodd" d="M14 0a2 2 0 0 0-2 2v10H2a2 2 0 1 0 0 4h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/></svg>');jde=new WeakMap;var $de,Hde,Wde,Yde,Ude,Xde=(e=>(e[e.Fixed=0]="Fixed",e[e.Flexible=1]="Flexible",e))(Xde||{}),qde=class{constructor({node:e,view:t,getPos:n,aspectRatio:r=0,options:o,initialSize:i}){zde(this,$de,void 0),zde(this,Hde,void 0),zde(this,Wde,[]),zde(this,Yde,void 0),zde(this,Ude,void 0);const a=this.createWrapper(e,i),s=this.createElement({node:e,view:t,getPos:n,options:o}),l=(1===r?[0,1,2,3,4]:[0,1]).map((e=>new class{constructor(e){zde(this,jde,void 0);const t=document.createElement("div"),n=document.createElement("div");this.dom=t,Fde(this,jde,n),this.type=e,this.createHandle(e)}createHandle(e){switch(l3(this.dom,{position:"absolute",pointerEvents:"auto",display:"flex",alignItems:"center",justifyContent:"center",zIndex:"100"}),l3(Lde(this,jde),{opacity:"0",transition:"opacity 300ms ease-in 0s"}),Lde(this,jde).dataset.dragging="",e){case 0:l3(this.dom,{right:"0px",top:"0px",height:"100%",width:"15px",cursor:"col-resize"}),l3(Lde(this,jde),{width:" 4px",height:"36px",maxHeight:"50%",boxSizing:"content-box",background:"rgba(0, 0, 0, 0.65)",border:"1px solid rgba(255, 255, 255, 0.5)",borderRadius:"6px"});break;case 1:l3(this.dom,{left:"0px",top:"0px",height:"100%",width:"15px",cursor:"col-resize"}),l3(Lde(this,jde),{width:" 4px",height:"36px",maxHeight:"50%",boxSizing:"content-box",background:"rgba(0, 0, 0, 0.65)",border:"1px solid rgba(255, 255, 255, 0.5)",borderRadius:"6px"});break;case 2:l3(this.dom,{bottom:"0px",width:"100%",height:"14px",cursor:"row-resize"}),l3(Lde(this,jde),{width:" 42px",height:"4px",boxSizing:"content-box",maxWidth:"50%",background:"rgba(0, 0, 0, 0.65)",border:"1px solid rgba(255, 255, 255, 0.5)",borderRadius:"6px"});break;case 3:l3(this.dom,{right:"-1px",bottom:"-2px",width:"30px",height:"30px",cursor:"nwse-resize",zIndex:"101"}),l3(Lde(this,jde),{height:"22px",width:"22px",backgroundRepeat:"no-repeat",backgroundImage:`url("data:image/svg+xml,${Vde}") `});break;case 4:l3(this.dom,{left:"-1px",bottom:"-2px",width:"30px",height:"30px",cursor:"nesw-resize",zIndex:"101"}),l3(Lde(this,jde),{height:"22px",width:"22px",backgroundRepeat:"no-repeat",backgroundImage:`url("data:image/svg+xml,${Bde}") `})}this.dom.append(Lde(this,jde))}setHandleVisibility(e){const t=e||!!Lde(this,jde).dataset.dragging;Lde(this,jde).style.opacity=t?"1":"0"}dataSetDragging(e){Lde(this,jde).dataset.dragging=e?"true":""}}(e)));for(const e of l){const r=r=>{this.startResizing(r,t,n,e)};e.dom.addEventListener("mousedown",r),Lde(this,Wde).push((()=>e.dom.removeEventListener("mousedown",r))),a.append(e.dom)}const c=()=>{l.forEach((e=>e.setHandleVisibility(!0)))},u=()=>{l.forEach((e=>e.setHandleVisibility(!1)))};a.addEventListener("mouseover",c),a.addEventListener("mouseout",u),Lde(this,Wde).push((()=>a.removeEventListener("mouseover",c)),(()=>a.removeEventListener("mouseout",u))),a.append(s),this.dom=a,Fde(this,Hde,e),Fde(this,$de,s),this.aspectRatio=r}createWrapper(e,t){const n=document.createElement("div");return n.classList.add("remirror-resizable-view"),n.style.position="relative",l3(n,t?{width:Gde(t.width),aspectRatio:`${t.width} / ${t.height}`}:{width:Gde(e.attrs.width),aspectRatio:`${e.attrs.width} / ${e.attrs.height}`}),l3(n,{maxWidth:"100%",minWidth:"50px",verticalAlign:"bottom",display:"inline-block",lineHeight:"0",transition:"width 0.15s ease-out, height 0.15s ease-out"}),n}startResizing(e,t,n,r){var o,i;e.preventDefault(),r.dataSetDragging(!0),Lde(this,$de).style.pointerEvents="none";const a=e.pageX,s=e.pageY,l=(null==(o=Lde(this,$de))?void 0:o.getBoundingClientRect().width)||0,c=(null==(i=Lde(this,$de))?void 0:i.getBoundingClientRect().height)||0,u=xZ(100,!1,(e=>{const t=e.pageX,n=e.pageY,o=t-a,i=n-s;let u=null,d=null;if(0===this.aspectRatio&&l&&c)switch(r.type){case 0:case 3:u=l+o,d=c/l*u;break;case 1:case 4:u=l-o,d=c/l*u;break;case 2:d=c+i,u=l/c*d}else if(1===this.aspectRatio)switch(r.type){case 0:u=l+o;break;case 1:u=l-o;break;case 2:d=c+i;break;case 3:u=l+o,d=c+i;break;case 4:u=l-o,d=c+i}"number"==typeof u&&u<50&&(0===this.aspectRatio&&l&&c?(u=50,d=c/l*u):1===this.aspectRatio&&(u=50)),u&&(Fde(this,Yde,Math.round(u)),this.dom.style.width=`${Lde(this,Yde)}px`),d&&Fde(this,Ude,Math.round(d)),(u||d)&&(this.dom.style.aspectRatio=`${Lde(this,Yde)} / ${Lde(this,Ude)}`)})),d=e=>{e.preventDefault(),r.dataSetDragging(!1),r.setHandleVisibility(!1),Lde(this,$de).style.pointerEvents="auto",document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d);const o=n(),i=t.state.tr.setNodeMarkup(o,void 0,{...Lde(this,Hde).attrs,width:Lde(this,Yde),height:Lde(this,Ude)});t.dispatch(i)};document.addEventListener("mousemove",u),document.addEventListener("mouseup",d),Lde(this,Wde).push((()=>document.removeEventListener("mousemove",u))),Lde(this,Wde).push((()=>document.removeEventListener("mouseup",d)))}update(e){return e.type===Lde(this,Hde).type&&((0!==this.aspectRatio||!e.attrs.width||e.attrs.width===Lde(this,Yde))&&((1!==this.aspectRatio||!e.attrs.width||!e.attrs.height||e.attrs.width===Lde(this,Yde)||e.attrs.height===Lde(this,Ude))&&(t=Lde(this,Hde),r=["width","height"],!!(t===(n=e)||function(e,t,n){const r=e.attrs,o=t.attrs,i={};for(const e of n)i[e]=null;e.attrs={...r,...i},t.attrs={...o,...i};const a=e.sameMarkup(t);return e.attrs=r,t.attrs=o,a}(t,n,r)&&t.content.eq(n.content))&&(Fde(this,Hde,e),Fde(this,Yde,e.attrs.width),Fde(this,Ude,e.attrs.height),!0))));var t,n,r}destroy(){Lde(this,Wde).forEach((e=>e()))}};function Gde(e){return"number"==typeof e?`${e}px`:e||void 0}$de=new WeakMap,Hde=new WeakMap,Wde=new WeakMap,Yde=new WeakMap,Ude=new WeakMap;var Kde=Object.defineProperty,Zde=Object.getOwnPropertyDescriptor,Jde=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?Zde(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Kde(t,n,i),i},Qde=class extends qde{constructor(e,t,n){super({node:e,view:t,getPos:n,aspectRatio:Xde.Fixed})}createElement({node:e}){const t=document.createElement("img");return t.setAttribute("src",e.attrs.src),l3(t,{width:"100%",minWidth:"50px",objectFit:"contain"}),t}},epe=class extends N8{get name(){return"image"}createTags(){return[VK.InlineNode,VK.Media]}createNodeSpec(e,t){const{preferPastedTextContent:n}=this.options;return{inline:!0,draggable:!0,selectable:!1,...t,attrs:{...e.defaults(),alt:{default:""},crop:{default:null},height:{default:null},width:{default:null},rotate:{default:null},src:{default:null},title:{default:""},fileName:{default:null},resizable:{default:!1}},parseDOM:[{tag:"img[src]",getAttrs:t=>{var r;if(k3(t)){const o=function({element:e,parse:t}){const{width:n,height:r}=function(e){let{width:t,height:n}=e.style;return t=t||e.getAttribute("width")||"",n=n||e.getAttribute("height")||"",{width:t,height:n}}(e);return{...t(e),alt:e.getAttribute("alt")??"",height:Number.parseInt(r||"0",10)||null,src:e.getAttribute("src")??null,title:e.getAttribute("title")??"",width:Number.parseInt(n||"0",10)||null,fileName:e.getAttribute("data-file-name")??null}}({element:t,parse:e.parse});return(!n||!(null==(r=o.src)?void 0:r.startsWith("file:///")))&&o}return{}}},...t.parseDOM??[]],toDOM:t=>{const n=s6(t.attrs,e);return["img",{...e.dom(t),...n}]}}}insertImage(e,t){return({tr:n,dispatch:r})=>{const{from:o,to:i}=J3(t??n.selection,n.doc),a=this.type.create(e);return null==r||r(n.replaceRangeWith(o,i,a)),!0}}uploadImage(e,t){const{updatePlaceholder:n,destroyPlaceholder:r,createPlaceholder:o}=this.options;return i=>{const{tr:a}=i;let s=a.selection.from;return this.store.createPlaceholderCommand({promise:e,placeholder:{type:"widget",get pos(){return s},createElement:(e,n)=>{const r=o(e,n);return null==t||t(r),r},onUpdate:(e,t,r,o)=>{n(e,t,r,o)},onDestroy:(e,t)=>{r(e,t)}},onSuccess:(e,t,n)=>this.insertImage(e,t)(n)}).validate((({tr:e,dispatch:t})=>{const n=YQ(e.doc,s,this.type);return null!=n&&(s=n,e.selection.empty||null==t||t(e.deleteSelection()),!0)}),"unshift").generateCommand()(i)}}fileUploadFileHandler(e,t,n){var r;const{preferPastedTextContent:o,uploadHandler:i}=this.options;if(o&&function(e){return void 0!==e.clipboardData}(t)&&(null==(r=t.clipboardData)?void 0:r.getData("text/plain")))return!1;const{commands:a,chain:s}=this.store,l=e.map(((e,t)=>({file:e,progress:e=>{a.updatePlaceholder(c[t],e)}}))),c=i(l);IZ(n)&&s.selectText(n);for(const e of c)s.uploadImage(e);return s.run(),!0}createPasteRules(){return[{type:"file",regexp:/image/i,fileHandler:e=>{const t="drop"===e.type?e.pos:void 0;return this.fileUploadFileHandler(e.files,e.event,t)}}]}createNodeViews(){return this.options.enableResizing?(e,t,n)=>new Qde(e,t,n):{}}};Jde([F8()],epe.prototype,"insertImage",1),Jde([F8()],epe.prototype,"uploadImage",1),epe=Jde([I8({defaultOptions:{createPlaceholder:function(e,t){const n=document.createElement("div");return n.classList.add(uoe.IMAGE_LOADER),n},updatePlaceholder:()=>{},destroyPlaceholder:()=>{},uploadHandler:function(e){hJ(e.length>0,{code:XK.EXTENSION,message:"The upload handler was applied for the image extension without any valid files"});let t=0;const n=[];for(const{file:r,progress:o}of e)n.push((()=>new Promise((n=>{const i=new FileReader;i.addEventListener("load",(i=>{var a;t+=1,o(t/e.length),n({src:null==(a=i.target)?void 0:a.result,fileName:r.name})}),{once:!0}),i.readAsDataURL(r)}))));return n},enableResizing:!1,preferPastedTextContent:!0}})],epe);var tpe={exports:{}};"undefined"!=typeof self&&self,tpe.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){function r(){throw new TypeError("The given URL is not a string. Please verify your string|array.")}function o(e){"string"!=typeof e&&r();for(var t=0,n=0,o=0,s=e.length,l=0;s--&&++l&&!(t&&-1<i.indexOf(e[l]));)"."===e[l]&&(++t,n=l);for(t=l,l=n;l--;)if(-1!==a.indexOf(e[l])){o=l+1;break}return 2>o?"":e.slice(o,t)}var i=["/",":","?","#"],a=[".","/","@"];e.exports=function(e){if("string"==typeof e)return o(e);if(Array.isArray(e)){var t,n=[],i=0;for(t=e.length;i<t;i++)n.push(o(e[i]));return n}r()}}]);var npe=q(tpe.exports),rpe=Object.defineProperty,ope=Object.getOwnPropertyDescriptor,ipe=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?ope(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&rpe(t,n,i),i},ape="updateLink",spe=class extends P8{constructor(){super(...arguments),this._autoLinkRegexNonGlobal=void 0}get name(){return"link"}createTags(){return[VK.Link,VK.ExcludeInputRules]}createMarkSpec(e,t){const n="data-link-auto",r=e=>{const{defaultTarget:t,supportedTargets:n}=this.options,r=t?[...n,t]:n;return e&&MZ(r,e)?{target:e}:void 0};return{inclusive:!1,excludes:"_",...t,attrs:{...e.defaults(),href:{},target:{default:this.options.defaultTarget},auto:{default:!1}},parseDOM:[{tag:"a[href]",getAttrs:t=>{if(!k3(t))return!1;const o=t.getAttribute("href"),i=t.textContent,a=this.options.autoLink&&(t.hasAttribute(n)||o===i||(null==o?void 0:o.replace(`${this.options.defaultProtocol}//`,""))===i);return{...e.parse(t),href:o,auto:a,...r(t.getAttribute("target"))}}},...t.parseDOM??[]],toDOM:t=>{const{auto:o,target:i,...a}=s6(t.attrs,e),s=t.attrs.auto?{[n]:""}:{};return["a",{...e.dom(t),...a,rel:"noopener noreferrer nofollow",...s,...r(t.attrs.target)},0]}}}onCreate(){const{autoLinkRegex:e}=this.options;this._autoLinkRegexNonGlobal=new RegExp(`^${e.source}$`,e.flags.replace("g",""))}shortcut({tr:e}){let t="",{from:n,to:r,empty:o,$from:i}=e.selection,a=!1;const s=X3(i,this.type);if(o){const o=s??K3(e);if(!o)return!1;({text:t,from:n,to:r}=o),a=!0}return n!==r&&(a||(t=e.doc.textBetween(n,r)),this.options.onActivateLink(t),this.options.onShortcut({activeLink:s?{attrs:s.mark.attrs,from:s.from,to:s.to}:void 0,selectedText:t,from:n,to:r}),!0)}updateLink(e,t){return n=>{const{tr:r}=n;var o;return!!(z3(r.selection)&&!T3(r.selection)||$Z(o=r.selection)&&o instanceof m0||$3({trState:r,type:this.type})||t)&&(r.setMeta(this.name,{command:ape,attrs:e,range:t}),function(e){return({dispatch:t,tr:n})=>{const{type:r,attrs:o=PZ(),appendText:i,range:a}=e,s=a?d0.between(n.doc.resolve(a.from),n.doc.resolve(a.to)):n.selection,{$from:l,from:c,to:u}=s;let d=0===l.depth&&n.doc.type.allowsMarkType(r);return n.doc.nodesBetween(c,u,(e=>{if(d)return!1;e.inlineContent&&e.type.allowsMarkType(r)&&(d=!0)})),!!d&&(null==t||t(n.addMark(c,u,r.create(o))&&i?n.insertText(i):n),!0)}}({type:this.type,attrs:e,range:t})(n))}}selectLink(){return this.store.commands.selectMark.original(this.type)}removeLink(e){return t=>{const{tr:n}=t;return!!$3({trState:n,type:this.type,...e})&&y6({type:this.type,expand:!0,range:e})(t)}}createPasteRules(){return[{type:"mark",regexp:this.options.autoLinkRegex,markType:this.type,getAttributes:(e,t)=>({href:this.buildHref(Z3(e)),auto:!t}),transformMatch:e=>{const t=Z3(e);return!!t&&(!!this.isValidUrl(t)&&t)}}]}createEventHandlers(){return{clickMark:(e,t)=>{const n=t.getMark(this.type);if(!n)return;const r=n.mark.attrs,o={...r,...n};if(this.options.onClick(e,o))return!0;if(!this.store.view.editable)return;let i=!1;if(this.options.openLinkOnClick){i=!0;const e=r.href;window.open(e,"_blank")}return this.options.selectTextOnClick&&(i=!0,this.store.commands.selectText(n)),i}}}createPlugin(){return{appendTransaction:(e,t,n)=>{if(e.filter((e=>!!e.getMeta(this.name))).forEach((e=>{const t=e.getMeta(this.name);if(t.command===ape){const{range:e,attrs:r}=t,{selection:o,doc:i}=n,a={range:e,selection:o,doc:i,attrs:r},{from:s,to:l}=e??o;this.options.onUpdateLink(i.textBetween(s,l),a)}})),!this.options.autoLink)return;if(Dre(t)-Dre(n)==1)return;if(!e.some((e=>e.docChanged)))return;const r=function(e,t){const{tr:n}=t;return e.forEach((e=>{e.steps.forEach((e=>{n.step(e)}))})),n}(e,t),o=G3(r,[LQ,IQ]),{mapping:i}=r,{tr:a,doc:s}=n,{updateLink:l,removeLink:c}=this.store.chain(a);return o.forEach((({prevFrom:e,prevTo:n,from:r,to:o})=>{const u=[],d=o-r==2,p=this.getLinkMarksInRange(t.doc,e,n,!0).filter((e=>e.mark.type===this.type)).map((({from:e,to:t,text:n})=>({mappedFrom:i.map(e),mappedTo:i.map(t),text:n,from:e,to:t})));p.forEach((({mappedFrom:e,mappedTo:n,from:i,to:a},f)=>this.getLinkMarksInRange(s,e,n,!0).filter((e=>e.mark.type===this.type)).forEach((n=>{const h=t.doc.textBetween(i,a,void 0," "),m=s.textBetween(n.from,n.to+1,void 0," ").trim(),g=this.isValidUrl(h);this.isValidUrl(m)||(g&&(c({from:n.from,to:n.to}).tr(),p.splice(f,1)),d||r===o&&this.findAutoLinks(m).map((t=>this.addLinkProperties({...t,from:e+t.start,to:e+t.end}))).forEach((({attrs:e,range:t,text:n})=>{l(e,t).tr(),u.push({attrs:e,range:t,text:n})})))})))),this.findTextBlocksInRange(s,{from:r,to:o}).forEach((({text:e,positionStart:t})=>{this.findAutoLinks(e).map((e=>this.addLinkProperties({...e,from:t+e.start+1,to:t+e.end+1}))).filter((({range:e})=>{const t=r>=e.from&&r<=e.to,n=o>=e.from&&o<=e.to;return t||n||d})).filter((({range:e})=>0===this.getLinkMarksInRange(a.doc,e.from,e.to,!1).length)).filter((({range:{from:e},text:t})=>!p.some((({text:n,mappedFrom:r})=>r===e&&n===t)))).forEach((({attrs:e,text:t,range:n})=>{l(e,n).tr(),u.push({attrs:e,range:n,text:t})}))})),window.requestAnimationFrame((()=>{u.forEach((({attrs:e,range:t,text:n})=>{const{doc:r,selection:o}=a;this.options.onUpdateLink(n,{attrs:e,doc:r,range:t,selection:o})}))}))})),0!==a.steps.length?a:void 0}}}buildHref(e){return this.options.extractHref({url:e,defaultProtocol:this.options.defaultProtocol})}getLinkMarksInRange(e,t,n,r){const o=[];if(t===n){const n=Math.max(t-1,0),i=X3(e.resolve(n),this.type);(null==i?void 0:i.mark.attrs.auto)===r&&o.push(i)}else e.nodesBetween(t,n,((e,t)=>{const n=(e.marks??[]).find((({type:e,attrs:t})=>e===this.type&&t.auto===r));n&&o.push({from:t,to:t+e.nodeSize,mark:n,text:e.textContent})}));return o}findTextBlocksInRange(e,t){const n=[];return e.nodesBetween(t.from,t.to,((e,t)=>{e.isTextblock&&e.type.allowsMarkType(this.type)&&n.push({node:e,pos:t})})),n.map((t=>({text:e.textBetween(t.pos,t.pos+t.node.nodeSize,void 0," "),positionStart:t.pos})))}addLinkProperties({from:e,to:t,href:n,...r}){return{...r,range:{from:e,to:t},attrs:{href:n,auto:!0}}}findAutoLinks(e){if(this.options.findAutoLinks)return this.options.findAutoLinks(e,this.options.defaultProtocol);const t=[];for(const n of qZ(e,this.options.autoLinkRegex)){const e=Z3(n);if(!e)continue;const r=this.buildHref(e);(this.isValidTLD(r)||r.startsWith("tel:"))&&t.push({text:e,href:r,start:n.index,end:n.index+e.length})}return t}isValidUrl(e){var t;return this.options.isValidUrl?this.options.isValidUrl(e,this.options.defaultProtocol):this.isValidTLD(this.buildHref(e))&&!!(null==(t=this._autoLinkRegexNonGlobal)?void 0:t.test(e))}isValidTLD(e){const{autoLinkAllowedTLDs:t}=this.options;if(0===t.length)return!0;const n=npe(e);if(""===n)return!0;const r=rJ(n.split("."));return t.includes(r)}};ipe([B8({shortcut:UK.InsertLink})],spe.prototype,"shortcut",1),ipe([F8()],spe.prototype,"updateLink",1),ipe([F8()],spe.prototype,"selectLink",1),ipe([F8()],spe.prototype,"removeLink",1),spe=ipe([I8({defaultOptions:{autoLink:!1,defaultProtocol:"",selectTextOnClick:!1,openLinkOnClick:!1,autoLinkRegex:/(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?:[\da-z\u00A1-\uFFFF][\w\u00A1-\uFFFF-]{0,62})?[\da-z\u00A1-\uFFFF]\.)*(?:(?:\d(?!\.)|[a-z\u00A1-\uFFFF])(?:[\da-z\u00A1-\uFFFF][\w\u00A1-\uFFFF-]{0,62})?[\da-z\u00A1-\uFFFF]\.)+[a-z\u00A1-\uFFFF]{2,}(?::\d{2,5})?(?:[#/?]\S*)?/gi,autoLinkAllowedTLDs:["com","de","net","org","uk","cn","ga","nl","cf","ml","tk","ru","br","gq","xyz","fr","eu","info","co","au","ca","it","in","ch","pl","es","online","us","top","be","jp","biz","se","at","dk","cz","za","me","ir","icu","shop","kr","site","mx","hu","io","cc","club","no","cyou"],findAutoLinks:void 0,isValidUrl:void 0,defaultTarget:null,supportedTargets:[],extractHref:function({url:e,defaultProtocol:t}){const n=/^((?:https?|ftp)?:)\/\//.test(e);if(!n&&e.includes("@"))return`mailto:${e}`;return n?e:`${t}//${e}`}},staticKeys:["autoLinkRegex"],handlerKeyOptions:{onClick:{earlyReturnValue:!0}},handlerKeys:["onActivateLink","onShortcut","onUpdateLink","onClick"],defaultPriority:WK.Medium})],spe);var lpe=cpe;function cpe(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}cpe.displayName="json",cpe.aliases=["webmanifest"];var upe=q(lpe),dpe=ppe;function ppe(e){!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,l]:a.alias.push(l):a.alias=[l]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],c=/language-(.+)/.exec(i);if(c){n=c[1];break}}var u=e.languages[n];if(u)t.content=e.highlight(function(e){var t=e.replace(a,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n);var r=s[t];return r||e})),t}(t.content.value),u,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(e)}ppe.displayName="markdown",ppe.aliases=["md"];var fpe=q(dpe),hpe=mpe;function mpe(e){!function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(e)}mpe.displayName="typescript",mpe.aliases=["ts"];var gpe=q(hpe);const vpe=new vse,bpe=new kse,ype=new Ese,xpe=new ole,wpe=new Oae,kpe=new Dse,Ope=new xde({supportedLanguages:[Due,Fue,upe,fpe,gpe]}),Spe=new lle,Cpe=new Sde,Tpe=new vae,Epe=new bae,Mpe=new Pde,Ppe=new Zse,Npe=new _de,Ape=new spe({autoLink:!0,openLinkOnClick:!0}),Dpe=new epe({enableResizing:!0}),Rpe=new dse({autoUpdate:!0,defaultDirection:"rtl"}),_pe=()=>[vpe,Rpe,Ape,Dpe,bpe,ype,xpe,wpe,Ope,kpe,Spe,Cpe,Tpe,Epe,Mpe,Npe,Ppe];function jpe({iconSize:n=18,type:r,level:o}){const i=Eie().heading({level:o}),{toggleHeading:a}=Mie();return t(Bae,{type:r,isActive:i,onClick:function(){a.enabled({level:o})&&a({level:o})},disabled:!a.enabled({level:o}),children:[o,e(_ae,{size:n})]})}function Ipe(e){return aC({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M6.2253 4.81108C5.83477 4.42056 5.20161 4.42056 4.81108 4.81108C4.42056 5.20161 4.42056 5.83477 4.81108 6.2253L10.5858 12L4.81114 17.7747C4.42062 18.1652 4.42062 18.7984 4.81114 19.1889C5.20167 19.5794 5.83483 19.5794 6.22535 19.1889L12 13.4142L17.7747 19.1889C18.1652 19.5794 18.7984 19.5794 19.1889 19.1889C19.5794 18.7984 19.5794 18.1652 19.1889 17.7747L13.4142 12L19.189 6.2253C19.5795 5.83477 19.5795 5.20161 19.189 4.81108C18.7985 4.42056 18.1653 4.42056 17.7748 4.81108L12 10.5858L6.2253 4.81108Z",fill:"currentColor"}}]})(e)}function Lpe({iconSize:r=18,type:o}){const i=function(e=!1){return Tie(e?{autoUpdate:!0}:void 0).attrs}().link()?.href??"",[a,s]=u(i),[l,c]=u(!1),p=Eie().link(),f=Tie().chain.new(),h=d();return t(n,{children:[e(Bae,{isActive:p,onClick:function(){a||f.selectLink(),c(!0)},type:o,ref:h,children:e(Iae,{size:r})}),e(Av,{open:l,anchorEl:h.current,onClose:function(){c(!1)},anchorOrigin:{vertical:"bottom",horizontal:"left"},className:"kd-popover",children:t("div",{className:"kd-popover__link-url",children:[e(Ipe,{size:r,className:"kd-popover__link-url__close-icon",onClick:function(){f.removeLink().focus().run(),s(null),c(!1)}}),e(uC,{label:"آدرس لینک",className:"toggle-link-handler__href-input",onKeyUp:e=>function(e){13===e.keyCode&&(""===a?(f.removeLink(),c(!1)):(f.updateLink({href:a}),c(!1)),f.run()),27===e.keyCode&&c(!1)}(e),onChange:e=>s(e.target.value),defaultValue:a})]})})]})}const zpe=[{name:"offset",options:{offset:[0,8]}}];function Fpe(){const[r,o]=u(null),{ref:i,x:a,y:s,width:l,height:c,active:p}=function(e,t){const n=null==t||zZ(t)?[e]:t,r=!zZ(t)||t,o=d(KZ()),i=Pae(e,n)[0];return f((()=>i&&r?{...i,active:!0}:{...Uoe,ref:void 0,data:{},active:!1,key:o.current}),[r,i])}((()=>oie("selection")),[]),h=f((()=>({position:"absolute",pointerEvents:"none",left:a,top:s,width:l,height:c})),[a,s,l,c]),g=m((e=>{o(e),i?.(e)}),[i]);return e("div",{ref:g,style:h,children:t(Md,{className:"kd-floating-toolbar",placement:"top",open:p,anchorEl:r,modifiers:zpe,children:[t(n,{children:[e(Lpe,{iconSize:16,type:"flat"}),e(Vae,{iconSize:16,type:"flat"}),e($ae,{iconSize:16,type:"flat"}),e(Hae,{iconSize:16,type:"flat"})]}),t(n,{children:[e(jpe,{iconSize:16,type:"flat",level:1}),e(jpe,{iconSize:16,type:"flat",level:2})]})]})})}const Bpe=({onChange:n,defaultValue:r,style:o,...i})=>{const{manager:a,state:s}=$ie({extensions:_pe,selection:"start"}),l=i6({content:r??"",schema:s.schema});return e("div",{style:{height:"300px",...o},...i,children:e("div",{className:"remirror-theme kd-editor",children:t(Uie,{manager:a,initialContent:l,children:[e(ese,{}),e(Wie,{}),e(Fpe,{}),e(Hie,{onChange:e=>{n&&n(e)}})]})})})},Vpe=t=>e("div",{style:{...t.style},children:t.src?!1===t.modal?e("img",{...t}):e(UV,{...t,small:t.src,large:t.src}):e(Uae,{style:{color:"gray",height:"100%",width:"100%"}})});function $pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Hpe(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>w(e)));return function(n){const r=(null==n?void 0:n[e])||t;return f((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=w(r),i=n.length;function s(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=f((()=>a),Object.values(a));return k(s.Provider,{value:l},r)}return n=[...n,r],s.displayName=t+"Provider",[s,function(n,s){const l=(null==s?void 0:s[e][i])||o,c=a(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Wpe(r,...t)]}function Wpe(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return f((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function Ype(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Upe(...e){return m(Ype(...e),e)}const Xpe=i(((e,t)=>{const{children:n,...r}=e,o=s.toArray(n),i=o.find(Kpe);if(i){const e=i.props.children,n=o.map((t=>t===i?s.count(e)>1?s.only(null):l(e)?e.props.children:null:t));return k(qpe,H({},r,{ref:t}),l(e)?c(e,void 0,n):null)}return k(qpe,H({},r,{ref:t}),n)}));Xpe.displayName="Slot";const qpe=i(((e,t)=>{const{children:n,...r}=e;return l(n)?c(n,{...Zpe(r,n.props),ref:t?Ype(t,n.ref):n.ref}):s.count(n)>1?s.only(null):null}));qpe.displayName="SlotClone";const Gpe=({children:e})=>k(v,null,e);function Kpe(e){return l(e)&&e.type===Gpe}function Zpe(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Jpe=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?b:()=>{},Qpe=r["useId".toString()]||(()=>{});let efe=0;function tfe(e){const[t,n]=r.useState(Qpe());return Jpe((()=>{e||n((e=>null!=e?e:String(efe++)))}),[e]),e||(t?`radix-${t}`:"")}const nfe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=i(((e,n)=>{const{asChild:r,...o}=e,i=r?Xpe:t;return p((()=>{window[Symbol.for("radix-ui")]=!0}),[]),k(i,H({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function rfe(e){const t=d(e);return p((()=>{t.current=e})),f((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function ofe({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=u(e),[r]=n,o=d(r),i=rfe(t);return p((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=rfe(n);return[a,m((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}const ife=w(void 0);function afe(e){const t=a(ife);return e||t||"ltr"}const sfe="rovingFocusGroup.onEntryFocus",lfe={bubbles:!1,cancelable:!0},cfe="RovingFocusGroup",[ufe,dfe,pfe]=function(e){const t=e+"CollectionProvider",[n,r]=Hpe(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e+"CollectionSlot",l=e+"CollectionItemSlot",c="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=o.useRef(null),a=o.useRef(new Map).current;return o.createElement(i,{scope:t,itemMap:a,collectionRef:r},n)},Slot:o.forwardRef(((e,t)=>{const{scope:n,children:r}=e,i=Upe(t,a(s,n).collectionRef);return o.createElement(Xpe,{ref:i},r)})),ItemSlot:o.forwardRef(((e,t)=>{const{scope:n,children:r,...i}=e,s=o.useRef(null),u=Upe(t,s),d=a(l,n);return o.useEffect((()=>(d.itemMap.set(s,{ref:s,...i}),()=>{d.itemMap.delete(s)}))),o.createElement(Xpe,{[c]:"",ref:u},r)}))},function(t){const n=a(e+"CollectionConsumer",t),r=o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}(cfe),[ffe,hfe]=Hpe(cfe,[pfe]),[mfe,gfe]=ffe(cfe),vfe=i(((e,t)=>k(ufe.Provider,{scope:e.__scopeRovingFocusGroup},k(ufe.Slot,{scope:e.__scopeRovingFocusGroup},k(bfe,H({},e,{ref:t})))))),bfe=i(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...f}=e,h=d(null),g=Upe(t,h),v=afe(i),[b=null,y]=ofe({prop:a,defaultProp:s,onChange:l}),[x,w]=u(!1),O=rfe(c),S=dfe(n),C=d(!1),[T,E]=u(0);return p((()=>{const e=h.current;if(e)return e.addEventListener(sfe,O),()=>e.removeEventListener(sfe,O)}),[O]),k(mfe,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:b,onItemFocus:m((e=>y(e)),[y]),onItemShiftTab:m((()=>w(!0)),[]),onFocusableItemAdd:m((()=>E((e=>e+1))),[]),onFocusableItemRemove:m((()=>E((e=>e-1))),[])},k(nfe.div,H({tabIndex:x||0===T?-1:0,"data-orientation":r},f,{ref:g,style:{outline:"none",...e.style},onMouseDown:$pe(e.onMouseDown,(()=>{C.current=!0})),onFocus:$pe(e.onFocus,(e=>{const t=!C.current;if(e.target===e.currentTarget&&t&&!x){const t=new CustomEvent(sfe,lfe);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=S().filter((e=>e.focusable));wfe([e.find((e=>e.active)),e.find((e=>e.id===b)),...e].filter(Boolean).map((e=>e.ref.current)))}}C.current=!1})),onBlur:$pe(e.onBlur,(()=>w(!1)))})))})),yfe=i(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=tfe(),l=i||s,c=gfe("RovingFocusGroupItem",n),u=c.currentTabStopId===l,d=dfe(n),{onFocusableItemAdd:f,onFocusableItemRemove:h}=c;return p((()=>{if(r)return f(),()=>h()}),[r,f,h]),k(ufe.ItemSlot,{scope:n,id:l,focusable:r,active:o},k(nfe.span,H({tabIndex:u?0:-1,"data-orientation":c.orientation},a,{ref:t,onMouseDown:$pe(e.onMouseDown,(e=>{r?c.onItemFocus(l):e.preventDefault()})),onFocus:$pe(e.onFocus,(()=>c.onItemFocus(l))),onKeyDown:$pe(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:xfe[r]}(e,c.orientation,c.dir);if(void 0!==t){e.preventDefault();let o=d().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=c.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>wfe(o)))}var n,r}))})))})),xfe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wfe(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const kfe=vfe,Ofe=yfe;const Sfe=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=u(),r=d({}),o=d(e),i=d("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return h(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p((()=>{const e=Cfe(r.current);i.current="mounted"===s?e:"none"}),[s]),Jpe((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Cfe(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),Jpe((()=>{if(t){const e=e=>{const n=Cfe(r.current).includes(e.animationName);e.target===t&&n&&E((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Cfe(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:m((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):s.only(n),i=Upe(r.ref,o.ref);return"function"==typeof n||r.isPresent?c(o,{ref:i}):null};function Cfe(e){return(null==e?void 0:e.animationName)||"none"}Sfe.displayName="Presence";const Tfe="Tabs",[Efe,Mfe]=Hpe(Tfe,[hfe]),Pfe=hfe(),[Nfe,Afe]=Efe(Tfe),Dfe=i(((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:l="automatic",...c}=e,u=afe(s),[d,p]=ofe({prop:r,onChange:o,defaultProp:i});return k(Nfe,{scope:n,baseId:tfe(),value:d,onValueChange:p,orientation:a,dir:u,activationMode:l},k(nfe.div,H({dir:u,"data-orientation":a},c,{ref:t})))}));function Rfe(e,t){return`${e}-trigger-${t}`}function _fe(e,t){return`${e}-content-${t}`}const jfe=Dfe,Ife=i(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=Afe("TabsList",n),a=Pfe(n);return k(kfe,H({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),k(nfe.div,H({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))})),Lfe=i(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=Afe("TabsTrigger",n),s=Pfe(n),l=Rfe(a.baseId,r),c=_fe(a.baseId,r),u=r===a.value;return k(Ofe,H({asChild:!0},s,{focusable:!o,active:u}),k(nfe.button,H({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},i,{ref:t,onMouseDown:$pe(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)})),onKeyDown:$pe(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)})),onFocus:$pe(e.onFocus,(()=>{const e="manual"!==a.activationMode;u||o||!e||a.onValueChange(r)}))})))})),zfe=i(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,s=Afe("TabsContent",n),l=Rfe(s.baseId,r),c=_fe(s.baseId,r),u=r===s.value,f=d(u);return p((()=>{const e=requestAnimationFrame((()=>f.current=!1));return()=>cancelAnimationFrame(e)}),[]),k(Sfe,{present:o||u},(({present:n})=>k(nfe.div,H({"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:c,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),n&&i)))}));function Ffe({children:t,...n}){return e(jfe,{dir:"rtl",className:"KdTabsRoot",...n,children:t})}function Bfe({children:t,...n}){return e(JF,{children:e(Ife,{className:"KdTabsList",...n,children:t})})}function Vfe({children:t,...n}){return e(zfe,{className:"KdTabsContent",...n,children:t})}function $fe({children:t,...n}){return e(Lfe,{className:"KdTabsTrigger",...n,children:t})}function Hfe({currentStep:t,setCurrentStep:n,defaultValue:r,children:i,orientation:a="horizontal",clickSteps:s=!0,...l}){return p((()=>{r&&n("string"==typeof r?parseInt(r):r)}),[r]),e("div",{...l,className:`${l.className} KdStepRoot ${"vertical"===a?"KdStepRoot_vertical":"KdStepRoot_horizontal"}`,children:i.map(((e,r)=>o.isValidElement(e)?o.cloneElement(e,{orientation:a,currentStep:t,setCurrentStep:n,clickSteps:s,key:r}):e))})}function Wfe({children:t,currentStep:n,setCurrentStep:r,orientation:i="horizontal",clickSteps:a=!0,...s}){return e(qx,{activeStep:n,orientation:i,...s,sx:{...s.sx,".MuiStepConnector-lineVertical":{height:"100%"}},className:`${s.className} ${"vertical"===i?"KdStepper_vertical":"KdStepper_horizontal"}`,children:t.map(((t,s)=>e(vx,{completed:void 0!==n&&n>s,children:o.isValidElement(t)?o.cloneElement(t,{orientation:i,setCurrentStep:r,clickSteps:a,key:s}):t})))})}function Yfe({children:r,footer:o=!1,backButtonText:i="قبلی",nextButtonText:a="بعدی",index:s,currentStep:l,setCurrentStep:c,onPrev:u,onNext:d,orientation:p="horizontal",...f}){return l===s?t("div",{className:"horizontal"===p?"KdStepContent_horizontal":"KdStepContent_vertical",...f,children:[e("div",{children:r}),o&&t("div",{className:"KdStepContent_Buttons",children:[e(HL,{disabled:0===l,onClick:()=>{u?u():c&&void 0!==l&&c(l-1)},children:i}),e(HL,{variant:"contained",onClick:()=>{d?d():c&&void 0!==l&&c(l+1)},children:a})]})]}):e(n,{})}function Ufe({children:t,index:n,setCurrentStep:r,clickSteps:o=!0,...i}){return e(Ix,{icon:i.icon??void 0,className:"KdStepLabel",color:"inherit",onClick:()=>{var e;o&&(e=n,r&&r(e))},...i,children:t})}export{vK as KdAdvanceFileUploader,RK as KdChart2D,DK as KdChart3D,sG as KdDropDownField,hK as KdFileUploader,aG as KdFormContainer,iG as KdFormField,Bpe as KdHtmlEditor,Vpe as KdImageBox,Yfe as KdStepContent,Wfe as KdStepList,Hfe as KdStepRoot,Ufe as KdStepTrigger,Vfe as KdTabsContent,Bfe as KdTabsList,Ffe as KdTabsRoot,$fe as KdTabsTrigger,pK as KdTypography,VX as KdpaAccordion,HX as KdpaAccordionDetails,$X as KdpaAccordionSummary,Hw as KdpaAlert,Ww as KdpaAlertTitle,BL as KdpaAutoComplete,mC as KdpaAvatar,KS as KdpaBadge,VL as KdpaButton,YL as KdpaCheckBox,cC as KdpaChip,tz as KdpaCircularProgress,nG as KdpaCodeEditor,QL as KdpaCollapse,sz as KdpaCollapseTransitions,rV as KdpaCopyToClipboard,rG as KdpaDataGrid,dL as KdpaDatePicker,jL as KdpaDateTimePicker,oG as KdpaDialog,ez as KdpaDivider,SF as KdpaDropZone,iz as KdpaFade,oq as KdpaFileUploader,iq as KdpaFormContainer,IL as KdpaFormControl,LL as KdpaFormControlLabel,aq as KdpaFormField,JX as KdpaFullScreenDialog,eC as KdpaGrid,QS as KdpaGridBadge,az as KdpaGrow,$L as KdpaIconButton,iV as KdpaInlineSpinner,uC as KdpaInput,dC as KdpaInputLabel,pC as KdpaInputMultiline,QF as KdpaLazyDrop,aV as KdpaLoading,FL as KdpaMenuItem,qV as KdpaModal,XV as KdpaModalImage,ZS as KdpaMuiBadge,KV as KdpaPaginationGrid,HL as KdpaPrimaryButton,fC as KdpaRadio,hC as KdpaRadioGroup,KX as KdpaRtlProvider,WL as KdpaSecondaryButton,tq as KdpaSegment,zL as KdpaSelect,sV as KdpaSkeleton,lz as KdpaSlide,GV as KdpaSlider,KL as KdpaSweetAlertConfirm,ZL as KdpaSweetAlertDelete,JL as KdpaSweetAlertOK,gC as KdpaSwitch,rz as KdpaTab,oz as KdpaTabs,WX as KdpaThemeProvider,AD as KdpaTimePicker,JS as KdpaTooltip,QV as KdpaTree,BX as KdpaTreeSelect,uL as KdpaTypography,cz as KdpaZoom};
|
|
@@ -2,6 +2,7 @@ import { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
import KdStepRoot from "./StepRoot/KdStepRoot";
|
|
3
3
|
declare const meta: Meta<typeof KdStepRoot>;
|
|
4
4
|
export default meta;
|
|
5
|
-
type
|
|
6
|
-
export declare const
|
|
5
|
+
type CustomStory = StoryObj<typeof KdStepRoot>;
|
|
6
|
+
export declare const Vertical: CustomStory;
|
|
7
|
+
export declare const Horizontal: CustomStory;
|
|
7
8
|
//# sourceMappingURL=KdStepper.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdStepper.stories.d.ts","sourceRoot":"","sources":["../../../../../src/designerKit/components/Stepper/KdStepper.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,UAAU,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"KdStepper.stories.d.ts","sourceRoot":"","sources":["../../../../../src/designerKit/components/Stepper/KdStepper.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAM/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAGjC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,WAAW,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/C,eAAO,MAAM,QAAQ,EAAE,WAmBtB,CAAC;AAIF,eAAO,MAAM,UAAU,EAAE,WAmBxB,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
2
|
import "./KdStepContent.scss";
|
|
3
|
-
export interface KdStepContentProps {
|
|
3
|
+
export interface KdStepContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
footer?: boolean;
|
|
6
6
|
backButtonText?: string;
|
|
7
7
|
nextButtonText?: string;
|
|
8
|
-
index
|
|
9
|
-
currentStep
|
|
10
|
-
setCurrentStep
|
|
8
|
+
index?: number;
|
|
9
|
+
currentStep?: number;
|
|
10
|
+
setCurrentStep?: (value: number) => void;
|
|
11
11
|
onPrev?: () => void;
|
|
12
12
|
onNext?: () => void;
|
|
13
|
-
|
|
13
|
+
orientation?: "vertical" | "horizontal";
|
|
14
14
|
}
|
|
15
|
-
declare function KdStepContent({ children, footer, backButtonText, nextButtonText, index, currentStep, setCurrentStep, onPrev, onNext, ...props }: KdStepContentProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function KdStepContent({ children, footer, backButtonText, nextButtonText, index, currentStep, setCurrentStep, onPrev, onNext, orientation, ...props }: KdStepContentProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export default KdStepContent;
|
|
17
17
|
//# sourceMappingURL=KdStepContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdStepContent.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Stepper/StepContent/KdStepContent.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"KdStepContent.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Stepper/StepContent/KdStepContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,sBAAsB,CAAC;AAE9B,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACxE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;CACzC;AAED,iBAAS,aAAa,CAAC,EACrB,QAAQ,EACR,MAAc,EACd,cAAuB,EACvB,cAAuB,EACvB,KAAK,EACL,WAAW,EACX,cAAc,EACd,MAAM,EACN,MAAM,EACN,WAA0B,EAC1B,GAAG,KAAK,EACT,EAAE,kBAAkB,2CA+CpB;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import "
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StepperProps } from "@mui/material/Stepper";
|
|
3
3
|
import "./KdStepList.scss";
|
|
4
|
-
export interface KdStepListProps {
|
|
4
|
+
export interface KdStepListProps extends StepperProps {
|
|
5
5
|
children: React.ReactNode[];
|
|
6
|
-
currentStep
|
|
7
|
-
|
|
6
|
+
currentStep?: number;
|
|
7
|
+
setCurrentStep?: (value: number) => void;
|
|
8
|
+
clickSteps?: boolean;
|
|
8
9
|
}
|
|
9
|
-
declare function KdStepList({ children, currentStep, ...props }: KdStepListProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function KdStepList({ children, currentStep, setCurrentStep, orientation, clickSteps, ...props }: KdStepListProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default KdStepList;
|
|
11
12
|
//# sourceMappingURL=KdStepList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdStepList.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Stepper/StepList/KdStepList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdStepList.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Stepper/StepList/KdStepList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAgB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,mBAAmB,CAAC;AAE3B,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,QAAQ,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AACD,iBAAS,UAAU,CAAC,EAClB,QAAQ,EACR,WAAW,EACX,cAAc,EACd,WAA0B,EAC1B,UAAiB,EACjB,GAAG,KAAK,EACT,EAAE,eAAe,2CAoCjB;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React, { HTMLAttributes } from "react";
|
|
2
|
+
import "./KdStepRoot.scss";
|
|
3
|
+
export interface KdStepRootProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
currentStep: number;
|
|
3
5
|
setCurrentStep: (value: number) => void;
|
|
4
6
|
defaultValue?: string | number;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
|
|
7
|
+
children: React.ReactNode[];
|
|
8
|
+
orientation?: "vertical" | "horizontal";
|
|
9
|
+
clickSteps?: boolean;
|
|
7
10
|
}
|
|
8
|
-
declare function KdStepRoot({ setCurrentStep, defaultValue, children, ...props }: KdStepRootProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function KdStepRoot({ currentStep, setCurrentStep, defaultValue, children, orientation, clickSteps, ...props }: KdStepRootProps): import("react/jsx-runtime").JSX.Element;
|
|
9
12
|
export default KdStepRoot;
|
|
10
13
|
//# sourceMappingURL=KdStepRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdStepRoot.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Stepper/StepRoot/KdStepRoot.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"KdStepRoot.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Stepper/StepRoot/KdStepRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAa,MAAM,OAAO,CAAC;AACzD,OAAO,mBAAmB,CAAC;AAC3B,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACrE,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,iBAAS,UAAU,CAAC,EAClB,WAAW,EACX,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,WAA0B,EAC1B,UAAiB,EACjB,GAAG,KAAK,EACT,EAAE,eAAe,2CA8BjB;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -2,8 +2,9 @@ import { StepLabelProps } from "@mui/material/StepLabel";
|
|
|
2
2
|
import "./KdStepTrigger.scss";
|
|
3
3
|
export interface KdStepTriggerProps extends StepLabelProps {
|
|
4
4
|
index: number;
|
|
5
|
-
setCurrentStep
|
|
5
|
+
setCurrentStep?: (value: number) => void;
|
|
6
|
+
clickSteps?: boolean;
|
|
6
7
|
}
|
|
7
|
-
declare function KdStepTrigger({ children, index, setCurrentStep,
|
|
8
|
+
declare function KdStepTrigger({ children, index, setCurrentStep, clickSteps, ...props }: KdStepTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default KdStepTrigger;
|
|
9
10
|
//# sourceMappingURL=KdStepTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdStepTrigger.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Stepper/StepTrigger/KdStepTrigger.tsx"],"names":[],"mappings":"AAAA,OAAkB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,sBAAsB,CAAC;AAC9B,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"KdStepTrigger.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Stepper/StepTrigger/KdStepTrigger.tsx"],"names":[],"mappings":"AAAA,OAAkB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,sBAAsB,CAAC;AAC9B,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,iBAAS,aAAa,CAAC,EACrB,QAAQ,EACR,KAAK,EACL,cAAc,EACd,UAAiB,EACjB,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAkBpB;AAED,eAAe,aAAa,CAAC"}
|