vue-spear-tip 0.6.20 → 0.6.21
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/.vite/manifest.json +41 -41
- package/dist/{Button-CAJDF40j.cjs → Button-DL8dzhLs.cjs} +1 -1
- package/dist/{Button-vs70k3y-.js → Button-mNgrIBt0.js} +1 -1
- package/dist/{CodeHighlight-C5LisCU3.cjs → CodeHighlight-CWT9ljxW.cjs} +1 -1
- package/dist/{CodeHighlight-C-3pwzbK.js → CodeHighlight-eMrWWqjO.js} +1 -1
- package/dist/{DateField-CCjHobsM.cjs → DateField-276tU7dR.cjs} +1 -1
- package/dist/{DateField-QZ0RVuEI.js → DateField-DJgLEfuJ.js} +2 -2
- package/dist/{Draggable-Beja0hFj.cjs → Draggable-D9K46teR.cjs} +1 -1
- package/dist/{Draggable-Drzs2CPN.js → Draggable-xSaOZkIc.js} +1 -1
- package/dist/{Droppable-DrURkIH4.js → Droppable-DGc3gGXX.js} +1 -1
- package/dist/{Droppable-mZqnMqzB.cjs → Droppable-ozHn_LH7.cjs} +1 -1
- package/dist/{FieldComponent.vue_vue_type_script_lang-DF1Q1YIa.js → FieldComponent.vue_vue_type_script_lang-BCu4PrNU.js} +1 -1
- package/dist/{FieldComponent.vue_vue_type_script_lang-B-z2yOtA.cjs → FieldComponent.vue_vue_type_script_lang-Bht3oZYb.cjs} +1 -1
- package/dist/{FilesArea-DCrFjTXo.js → FilesArea-C9z4gTb0.js} +2 -2
- package/dist/{FilesArea-ihfL0_JW.cjs → FilesArea-DZiv8wBT.cjs} +1 -1
- package/dist/{Scrollbar-B-5t6tsN.js → Scrollbar-CBCuild6.js} +1 -1
- package/dist/{Scrollbar-DKIMAMUs.cjs → Scrollbar-DpX61NhD.cjs} +1 -1
- package/dist/{SelectField-DWeh3qeQ.js → SelectField-BN765HUF.js} +108 -102
- package/dist/{SelectField-C5jCjz-H.cjs → SelectField-BTQ-c5YW.cjs} +2 -2
- package/dist/{StringField-xd5hAzKC.cjs → StringField-D4k0FAo8.cjs} +1 -1
- package/dist/{StringField-_2xWOAx7.js → StringField-DXuKHlpt.js} +2 -2
- package/dist/{SwitchField-Baz2nBD0.js → SwitchField-BdKQGeSb.js} +2 -2
- package/dist/{SwitchField-m0Hp4wHc.cjs → SwitchField-Dj2QpW85.cjs} +1 -1
- package/dist/{Tabs-D42K5MjE.js → Tabs-CAbUgriG.js} +1 -1
- package/dist/{Tabs-DUragp0z.cjs → Tabs-Dm8Aj2Y8.cjs} +1 -1
- package/dist/{TextField--CH2O_wo.js → TextField-BTofkhCU.js} +2 -2
- package/dist/{TextField-G7cNmIeJ.cjs → TextField-DJkk40xg.cjs} +1 -1
- package/dist/{index-CCc6hATh.js → index-Cd_DL4JD.js} +3 -3
- package/dist/{index-BgWRAiiR.cjs → index-DZjDh7FL.cjs} +1 -1
- package/dist/vue-spear-tip.cjs.js +1 -1
- package/dist/vue-spear-tip.es.js +1 -1
- package/docs/index.html +1 -1
- package/docs/static/{Button-D7mEEsUM.js → Button-8C6MeUM7.js} +1 -1
- package/docs/static/{CodeHighlight-C5z_7qJE.js → CodeHighlight-DFeMy3ki.js} +1 -1
- package/docs/static/{DateField-CyrKoUoT.js → DateField-Cf48x5xH.js} +1 -1
- package/docs/static/{Draggable-DvYh-Mq2.js → Draggable-CS4w2yK4.js} +1 -1
- package/docs/static/{Droppable-CjvR76y4.js → Droppable-wLX0xjMl.js} +1 -1
- package/docs/static/{FieldComponent.vue_vue_type_script_lang-BGU29o43.js → FieldComponent.vue_vue_type_script_lang-Ig4MpRH0.js} +1 -1
- package/docs/static/{FilesArea-BuyraK7u.js → FilesArea-Cl92W6MM.js} +1 -1
- package/docs/static/{NoSymbolIcon-BFWxS8vy.js → NoSymbolIcon-NizHqgdb.js} +1 -1
- package/docs/static/{Scrollbar-B1RlHJdY.js → Scrollbar-l6hENTT0.js} +1 -1
- package/docs/static/{SelectField-Dm5Zy3ZA.js → SelectField-CC7fBKuR.js} +8 -8
- package/docs/static/{StringField-CN3dgDY_.js → StringField-2LaMICQ8.js} +1 -1
- package/docs/static/{SwitchField-CAWor2EI.js → SwitchField-DaP3PVMB.js} +1 -1
- package/docs/static/{Tabs-C1V64QTo.js → Tabs-CBsULMP9.js} +1 -1
- package/docs/static/{TextField-Sq7oBihL.js → TextField-DUq1jGAW.js} +1 -1
- package/docs/static/index-DpXxVeQv.js +2 -0
- package/docs/static/{main-A2tcl52U.js → main-BIpS3Kki.js} +3 -3
- package/package.json +1 -1
- package/docs/static/index-DlDPp_Nm.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Qt=Object.defineProperty;var g=(x,e)=>Qt(x,"name",{value:e,configurable:!0});import{o as be,c as _e,a as ge,P as me,C as Jt,h as dt,i as ze,n as Fe,f as Ae,j as $t,k as Re,F as Xt,t as mt,b as Je,w as ei,e as ti,r as ii,g as ri}from"./main-
|
|
1
|
+
var Qt=Object.defineProperty;var g=(x,e)=>Qt(x,"name",{value:e,configurable:!0});import{o as be,c as _e,a as ge,P as me,C as Jt,h as dt,i as ze,n as Fe,f as Ae,j as $t,k as Re,F as Xt,t as mt,b as Je,w as ei,e as ti,r as ii,g as ri}from"./main-BIpS3Kki.js";import{F as ai}from"./FieldComponent.vue_vue_type_script_lang-Ig4MpRH0.js";import{r as si}from"./NoSymbolIcon-NizHqgdb.js";function ni(x,e){return be(),_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[ge("path",{"fill-rule":"evenodd",d:"M8.603 3.799A4.49 4.49 0 0 1 12 2.25c1.357 0 2.573.6 3.397 1.549a4.49 4.49 0 0 1 3.498 1.307 4.491 4.491 0 0 1 1.307 3.497A4.49 4.49 0 0 1 21.75 12a4.49 4.49 0 0 1-1.549 3.397 4.491 4.491 0 0 1-1.307 3.497 4.491 4.491 0 0 1-3.497 1.307A4.49 4.49 0 0 1 12 21.75a4.49 4.49 0 0 1-3.397-1.549 4.49 4.49 0 0 1-3.498-1.306 4.491 4.491 0 0 1-1.307-3.498A4.49 4.49 0 0 1 2.25 12c0-1.357.6-2.573 1.549-3.397a4.49 4.49 0 0 1 1.307-3.497 4.49 4.49 0 0 1 3.497-1.307Zm7.007 6.387a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}g(ni,"render$2");function oi(x,e){return be(),_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[ge("path",{"fill-rule":"evenodd",d:"M7.502 6h7.128A3.375 3.375 0 0 1 18 9.375v9.375a3 3 0 0 0 3-3V6.108c0-1.505-1.125-2.811-2.664-2.94a48.972 48.972 0 0 0-.673-.05A3 3 0 0 0 15 1.5h-1.5a3 3 0 0 0-2.663 1.618c-.225.015-.45.032-.673.05C8.662 3.295 7.554 4.542 7.502 6ZM13.5 3A1.5 1.5 0 0 0 12 4.5h4.5A1.5 1.5 0 0 0 15 3h-1.5Z","clip-rule":"evenodd"}),ge("path",{"fill-rule":"evenodd",d:"M3 9.375C3 8.339 3.84 7.5 4.875 7.5h9.75c1.036 0 1.875.84 1.875 1.875v11.25c0 1.035-.84 1.875-1.875 1.875h-9.75A1.875 1.875 0 0 1 3 20.625V9.375ZM6 12a.75.75 0 0 1 .75-.75h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75H6.75a.75.75 0 0 1-.75-.75V12Zm2.25 0a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75ZM6 15a.75.75 0 0 1 .75-.75h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75H6.75a.75.75 0 0 1-.75-.75V15Zm2.25 0a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75ZM6 18a.75.75 0 0 1 .75-.75h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75H6.75a.75.75 0 0 1-.75-.75V18Zm2.25 0a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75Z","clip-rule":"evenodd"})])}g(oi,"render$1");(function(x,e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t=e();for(var o in t)(typeof exports=="object"?exports:x)[o]=t[o]}})(typeof self<"u"?self:void 0,(function(){return(function(){var x={3976:function(d,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0,c.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:g(function(){},"oncomplete"),onincomplete:g(function(){},"onincomplete"),oncleared:g(function(){},"oncleared"),repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:g(function(){},"onKeyDown"),onBeforeMask:null,onBeforePaste:g(function(k,A){return typeof A.onBeforeMask=="function"?A.onBeforeMask.call(this,k,A):k},"onBeforePaste"),onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:g(function(){},"onKeyValidation"),skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},7392:function(d,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0,c.default={9:{validator:"[0-90-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-90-9A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(d,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=function(k,A,I){if(I===void 0)return k.__data?k.__data[A]:null;k.__data=k.__data||{},k.__data[A]=I}},3776:function(d,c,k){Object.defineProperty(c,"__esModule",{value:!0}),c.Event=void 0,c.off=function(v,y){var s,p;return C(this[0])&&v&&(s=this[0].eventRegistry,p=this[0],v.split(" ").forEach((function(r){var u=D(r.split("."),2);(function(n,a){var i,l,h=[];if(n.length>0)if(y===void 0)for(i=0,l=s[n][a].length;i<l;i++)h.push({ev:n,namespace:a&&a.length>0?a:"global",handler:s[n][a][i]});else h.push({ev:n,namespace:a&&a.length>0?a:"global",handler:y});else if(a.length>0){for(var m in s)for(var _ in s[m])if(_===a)if(y===void 0)for(i=0,l=s[m][_].length;i<l;i++)h.push({ev:m,namespace:_,handler:s[m][_][i]});else h.push({ev:m,namespace:_,handler:y})}return h})(u[0],u[1]).forEach((function(n){var a=n.ev,i=n.handler;(function(l,h,m){if(l in s==1)if(p.removeEventListener?p.removeEventListener(l,m,!1):p.detachEvent&&p.detachEvent("on".concat(l),m),h==="global")for(var _ in s[l])s[l][_].splice(s[l][_].indexOf(m),1);else s[l][h].splice(s[l][h].indexOf(m),1)})(a,n.namespace,i)}))}))),this},c.on=function(v,y){if(C(this[0])){var s=this[0].eventRegistry,p=this[0];v.split(" ").forEach((function(r){var u=D(r.split("."),2),n=u[0],a=u[1];(function(i,l){p.addEventListener?p.addEventListener(i,y,!1):p.attachEvent&&p.attachEvent("on".concat(i),y),s[i]=s[i]||{},s[i][l]=s[i][l]||[],s[i][l].push(y)})(n,a===void 0?"global":a)}))}return this},c.trigger=function(v){var y=arguments;if(C(this[0]))for(var s=this[0].eventRegistry,p=this[0],r=typeof v=="string"?v.split(" "):[v.type],u=0;u<r.length;u++){var n=r[u].split("."),a=n[0],i=n[1]||"global";if(w!==void 0&&i==="global"){var l,h={bubbles:!0,cancelable:!0,composed:!0,detail:arguments[1]};if(w.createEvent){try{a==="input"?(h.inputType="insertText",l=new InputEvent(a,h)):l=new CustomEvent(a,h)}catch{(l=w.createEvent("CustomEvent")).initCustomEvent(a,h.bubbles,h.cancelable,h.detail)}v.type&&(0,I.default)(l,v),p.dispatchEvent(l)}else(l=w.createEventObject()).eventType=a,l.detail=arguments[1],v.type&&(0,I.default)(l,v),p.fireEvent("on"+l.eventType,l)}else if(s[a]!==void 0){arguments[0]=arguments[0].type?arguments[0]:S.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1);var m=s[a];(i==="global"?Object.values(m).flat():m[i]).forEach((function(_){return _.apply(p,y)}))}}return this};var A=U(k(9380)),I=U(k(600)),S=U(k(4963));function D(v,y){return(function(s){if(Array.isArray(s))return s})(v)||(function(s,p){var r=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(r!=null){var u,n,a,i,l=[],h=!0,m=!1;try{if(a=(r=r.call(s)).next,p!==0)for(;!(h=(u=a.call(r)).done)&&(l.push(u.value),l.length!==p);h=!0);}catch(_){m=!0,n=_}finally{try{if(!h&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(m)throw n}}return l}})(v,y)||(function(s,p){if(s){if(typeof s=="string")return G(s,p);var r=Object.prototype.toString.call(s).slice(8,-1);if(r==="Object"&&s.constructor&&(r=s.constructor.name),r==="Map"||r==="Set")return Array.from(s);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return G(s,p)}})(v,y)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}g(D,"o");function G(v,y){(y==null||y>v.length)&&(y=v.length);for(var s=0,p=new Array(y);s<y;s++)p[s]=v[s];return p}g(G,"l");function U(v){return v&&v.__esModule?v:{default:v}}g(U,"s");var w=A.default.document;function C(v){return v instanceof Element}g(C,"u");var E=c.Event=void 0;typeof A.default.CustomEvent=="function"?c.Event=E=A.default.CustomEvent:A.default.Event&&w&&w.createEvent?(c.Event=E=g(function(v,y){y=y||{bubbles:!1,cancelable:!1,composed:!0,detail:void 0};var s=w.createEvent("CustomEvent");return s.initCustomEvent(v,y.bubbles,y.cancelable,y.detail),s},"f"),E.prototype=A.default.Event.prototype):typeof Event<"u"&&(c.Event=E=Event)},600:function(d,c){function k(A){return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},k(A)}g(k,"n"),Object.defineProperty(c,"__esModule",{value:!0}),c.default=g(function A(){var I,S,D,G,U,w,C=arguments[0]||{},E=1,v=arguments.length,y=!1;for(typeof C=="boolean"&&(y=C,C=arguments[E]||{},E++),k(C)!=="object"&&typeof C!="function"&&(C={});E<v;E++)if((I=arguments[E])!=null)for(S in I)D=C[S],C!==(G=I[S])&&(y&&G&&(Object.prototype.toString.call(G)==="[object Object]"||(U=Array.isArray(G)))?(U?(U=!1,w=D&&Array.isArray(D)?D:[]):w=D&&Object.prototype.toString.call(D)==="[object Object]"?D:{},C[S]=A(y,w,G)):G!==void 0&&(C[S]=G));return C},"e")},4963:function(d,c,k){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var A=G(k(9380)),I=G(k(253)),S=k(3776),D=G(k(600));function G(C){return C&&C.__esModule?C:{default:C}}g(G,"l");var U=A.default.document;function w(C){return C instanceof w?C:this instanceof w?void(C!=null&&C!==A.default&&(this[0]=C.nodeName?C:C[0]!==void 0&&C[0].nodeName?C[0]:U.querySelector(C),this[0]!==void 0&&this[0]!==null&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new w(C)}g(w,"c"),w.prototype={on:S.on,off:S.off,trigger:S.trigger},w.extend=D.default,w.data=I.default,w.Event=S.Event,c.default=w},9845:function(d,c,k){Object.defineProperty(c,"__esModule",{value:!0}),c.mobile=c.iphone=c.ie=void 0;var A,I=(A=k(9380))&&A.__esModule?A:{default:A},S=I.default.navigator&&I.default.navigator.userAgent||"";c.ie=S.indexOf("MSIE ")>0||S.indexOf("Trident/")>0,c.mobile=I.default.navigator&&I.default.navigator.userAgentData&&I.default.navigator.userAgentData.mobile||I.default.navigator&&I.default.navigator.maxTouchPoints||"ontouchstart"in I.default,c.iphone=/iphone/i.test(S)},7184:function(d,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=function(A){return A.replace(k,"\\$1")};var k=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(d,c,k){function A(a){return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},A(a)}g(A,"i"),Object.defineProperty(c,"__esModule",{value:!0}),c.EventHandlers=void 0;var I,S=k(9845),D=(I=k(9380))&&I.__esModule?I:{default:I},G=k(7760),U=k(2839),w=k(8711),C=k(7215),E=k(4713);function v(){v=g(function(){return i},"p");var a,i={},l=Object.prototype,h=l.hasOwnProperty,m=Object.defineProperty||function(Z,V,$){Z[V]=$.value},_=typeof Symbol=="function"?Symbol:{},O=_.iterator||"@@iterator",B=_.asyncIterator||"@@asyncIterator",F=_.toStringTag||"@@toStringTag";function T(Z,V,$){return Object.defineProperty(Z,V,{value:$,enumerable:!0,configurable:!0,writable:!0}),Z[V]}g(T,"u");try{T({},"")}catch{T=g(function(V,$,Q){return V[$]=Q},"u")}function j(Z,V,$,Q){var q=V&&V.prototype instanceof Y?V:Y,ie=Object.create(q.prototype),ce=new ve(Q||[]);return m(ie,"_invoke",{value:re(Z,$,ce)}),ie}g(j,"f");function f(Z,V,$){try{return{type:"normal",arg:Z.call(V,$)}}catch(Q){return{type:"throw",arg:Q}}}g(f,"d"),i.wrap=j;var b="suspendedStart",P="suspendedYield",M="executing",L="completed",N={};function Y(){}g(Y,"k");function W(){}g(W,"b");function R(){}g(R,"x");var H={};T(H,O,(function(){return this}));var ee=Object.getPrototypeOf,K=ee&&ee(ee(xe([])));K&&K!==l&&h.call(K,O)&&(H=K);var z=R.prototype=Y.prototype=Object.create(H);function X(Z){["next","throw","return"].forEach((function(V){T(Z,V,(function($){return this._invoke(V,$)}))}))}g(X,"_");function J(Z,V){function $(q,ie,ce,ne){var oe=f(Z[q],Z,ie);if(oe.type!=="throw"){var he=oe.arg,Me=he.value;return Me&&A(Me)=="object"&&h.call(Me,"__await")?V.resolve(Me.__await).then((function(de){$("next",de,ce,ne)}),(function(de){$("throw",de,ce,ne)})):V.resolve(Me).then((function(de){he.value=de,ce(he)}),(function(de){return $("throw",de,ce,ne)}))}ne(oe.arg)}g($,"n");var Q;m(this,"_invoke",{value:g(function(q,ie){function ce(){return new V((function(ne,oe){$(q,ie,ne,oe)}))}return g(ce,"a"),Q=Q?Q.then(ce,ce):ce()},"value")})}g(J,"M");function re(Z,V,$){var Q=b;return function(q,ie){if(Q===M)throw new Error("Generator is already running");if(Q===L){if(q==="throw")throw ie;return{value:a,done:!0}}for($.method=q,$.arg=ie;;){var ce=$.delegate;if(ce){var ne=se(ce,$);if(ne){if(ne===N)continue;return ne}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(Q===b)throw Q=L,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);Q=M;var oe=f(Z,V,$);if(oe.type==="normal"){if(Q=$.done?L:P,oe.arg===N)continue;return{value:oe.arg,done:$.done}}oe.type==="throw"&&(Q=L,$.method="throw",$.arg=oe.arg)}}}g(re,"E");function se(Z,V){var $=V.method,Q=Z.iterator[$];if(Q===a)return V.delegate=null,$==="throw"&&Z.iterator.return&&(V.method="return",V.arg=a,se(Z,V),V.method==="throw")||$!=="return"&&(V.method="throw",V.arg=new TypeError("The iterator does not provide a '"+$+"' method")),N;var q=f(Q,Z.iterator,V.arg);if(q.type==="throw")return V.method="throw",V.arg=q.arg,V.delegate=null,N;var ie=q.arg;return ie?ie.done?(V[Z.resultName]=ie.value,V.next=Z.nextLoc,V.method!=="return"&&(V.method="next",V.arg=a),V.delegate=null,N):ie:(V.method="throw",V.arg=new TypeError("iterator result is not an object"),V.delegate=null,N)}g(se,"j");function le(Z){var V={tryLoc:Z[0]};1 in Z&&(V.catchLoc=Z[1]),2 in Z&&(V.finallyLoc=Z[2],V.afterLoc=Z[3]),this.tryEntries.push(V)}g(le,"T");function ke(Z){var V=Z.completion||{};V.type="normal",delete V.arg,Z.completion=V}g(ke,"A");function ve(Z){this.tryEntries=[{tryLoc:"root"}],Z.forEach(le,this),this.reset(!0)}g(ve,"D");function xe(Z){if(Z||Z===""){var V=Z[O];if(V)return V.call(Z);if(typeof Z.next=="function")return Z;if(!isNaN(Z.length)){var $=-1,Q=g(function q(){for(;++$<Z.length;)if(h.call(Z,$))return q.value=Z[$],q.done=!1,q;return q.value=a,q.done=!0,q},"n");return Q.next=Q}}throw new TypeError(A(Z)+" is not iterable")}return g(xe,"L"),W.prototype=R,m(z,"constructor",{value:R,configurable:!0}),m(R,"constructor",{value:W,configurable:!0}),W.displayName=T(R,F,"GeneratorFunction"),i.isGeneratorFunction=function(Z){var V=typeof Z=="function"&&Z.constructor;return!!V&&(V===W||(V.displayName||V.name)==="GeneratorFunction")},i.mark=function(Z){return Object.setPrototypeOf?Object.setPrototypeOf(Z,R):(Z.__proto__=R,T(Z,F,"GeneratorFunction")),Z.prototype=Object.create(z),Z},i.awrap=function(Z){return{__await:Z}},X(J.prototype),T(J.prototype,B,(function(){return this})),i.AsyncIterator=J,i.async=function(Z,V,$,Q,q){q===void 0&&(q=Promise);var ie=new J(j(Z,V,$,Q),q);return i.isGeneratorFunction(V)?ie:ie.next().then((function(ce){return ce.done?ce.value:ie.next()}))},X(z),T(z,F,"Generator"),T(z,O,(function(){return this})),T(z,"toString",(function(){return"[object Generator]"})),i.keys=function(Z){var V=Object(Z),$=[];for(var Q in V)$.push(Q);return $.reverse(),g(function q(){for(;$.length;){var ie=$.pop();if(ie in V)return q.value=ie,q.done=!1,q}return q.done=!0,q},"e")},i.values=xe,ve.prototype={constructor:ve,reset:g(function(Z){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(ke),!Z)for(var V in this)V.charAt(0)==="t"&&h.call(this,V)&&!isNaN(+V.slice(1))&&(this[V]=a)},"reset"),stop:g(function(){this.done=!0;var Z=this.tryEntries[0].completion;if(Z.type==="throw")throw Z.arg;return this.rval},"stop"),dispatchException:g(function(Z){if(this.done)throw Z;var V=this;function $(oe,he){return ie.type="throw",ie.arg=Z,V.next=oe,he&&(V.method="next",V.arg=a),!!he}g($,"i");for(var Q=this.tryEntries.length-1;Q>=0;--Q){var q=this.tryEntries[Q],ie=q.completion;if(q.tryLoc==="root")return $("end");if(q.tryLoc<=this.prev){var ce=h.call(q,"catchLoc"),ne=h.call(q,"finallyLoc");if(ce&&ne){if(this.prev<q.catchLoc)return $(q.catchLoc,!0);if(this.prev<q.finallyLoc)return $(q.finallyLoc)}else if(ce){if(this.prev<q.catchLoc)return $(q.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<q.finallyLoc)return $(q.finallyLoc)}}}},"dispatchException"),abrupt:g(function(Z,V){for(var $=this.tryEntries.length-1;$>=0;--$){var Q=this.tryEntries[$];if(Q.tryLoc<=this.prev&&h.call(Q,"finallyLoc")&&this.prev<Q.finallyLoc){var q=Q;break}}q&&(Z==="break"||Z==="continue")&&q.tryLoc<=V&&V<=q.finallyLoc&&(q=null);var ie=q?q.completion:{};return ie.type=Z,ie.arg=V,q?(this.method="next",this.next=q.finallyLoc,N):this.complete(ie)},"abrupt"),complete:g(function(Z,V){if(Z.type==="throw")throw Z.arg;return Z.type==="break"||Z.type==="continue"?this.next=Z.arg:Z.type==="return"?(this.rval=this.arg=Z.arg,this.method="return",this.next="end"):Z.type==="normal"&&V&&(this.next=V),N},"complete"),finish:g(function(Z){for(var V=this.tryEntries.length-1;V>=0;--V){var $=this.tryEntries[V];if($.finallyLoc===Z)return this.complete($.completion,$.afterLoc),ke($),N}},"finish"),catch:g(function(Z){for(var V=this.tryEntries.length-1;V>=0;--V){var $=this.tryEntries[V];if($.tryLoc===Z){var Q=$.completion;if(Q.type==="throw"){var q=Q.arg;ke($)}return q}}throw new Error("illegal catch attempt")},"catch"),delegateYield:g(function(Z,V,$){return this.delegate={iterator:xe(Z),resultName:V,nextLoc:$},this.method==="next"&&(this.arg=a),N},"delegateYield")},i}g(v,"p");function y(a,i){var l=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!l){if(Array.isArray(a)||(l=(function(F,T){if(F){if(typeof F=="string")return s(F,T);var j=Object.prototype.toString.call(F).slice(8,-1);if(j==="Object"&&F.constructor&&(j=F.constructor.name),j==="Map"||j==="Set")return Array.from(F);if(j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return s(F,T)}})(a))||i){l&&(a=l);var h=0,m=g(function(){},"a");return{s:m,n:g(function(){return h>=a.length?{done:!0}:{done:!1,value:a[h++]}},"n"),e:g(function(F){throw F},"e"),f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _,O=!0,B=!1;return{s:g(function(){l=l.call(a)},"s"),n:g(function(){var F=l.next();return O=F.done,F},"n"),e:g(function(F){B=!0,_=F},"e"),f:g(function(){try{O||l.return==null||l.return()}finally{if(B)throw _}},"f")}}g(y,"d");function s(a,i){(i==null||i>a.length)&&(i=a.length);for(var l=0,h=new Array(i);l<i;l++)h[l]=a[l];return h}g(s,"h");function p(a,i,l,h,m,_,O){try{var B=a[_](O),F=B.value}catch(T){return void l(T)}B.done?i(F):Promise.resolve(F).then(h,m)}g(p,"v");var r,u,n=c.EventHandlers={keyEvent:g(function(a,i,l,h,m){var _=this.inputmask,O=_.opts,B=_.dependencyLib,F=_.maskset,T=this,j=B(T),f=a.key,b=w.caret.call(_,T),P=O.onKeyDown.call(this,a,w.getBuffer.call(_),b,O);if(P!==void 0)return P;if(f===U.keys.Backspace||f===U.keys.Delete||S.iphone&&f===U.keys.BACKSPACE_SAFARI||a.ctrlKey&&f===U.keys.x&&!("oncut"in T))a.preventDefault(),C.handleRemove.call(_,T,f,b),(0,G.writeBuffer)(T,w.getBuffer.call(_,!0),F.p,a,T.inputmask._valueGet()!==w.getBuffer.call(_).join(""));else if(f===U.keys.End||f===U.keys.PageDown){a.preventDefault();var M=w.seekNext.call(_,w.getLastValidPosition.call(_));w.caret.call(_,T,a.shiftKey?b.begin:M,M,!0)}else f===U.keys.Home&&!a.shiftKey||f===U.keys.PageUp?(a.preventDefault(),w.caret.call(_,T,0,a.shiftKey?b.begin:0,!0)):O.undoOnEscape&&f===U.keys.Escape&&a.altKey!==!0?((0,G.checkVal)(T,!0,!1,_.undoValue.split("")),j.trigger("click")):f!==U.keys.Insert||a.shiftKey||a.ctrlKey||_.userOptions.insertMode!==void 0?O.tabThrough===!0&&f===U.keys.Tab?a.shiftKey===!0?(b.end=w.seekPrevious.call(_,b.end,!0),E.getTest.call(_,b.end-1).match.static===!0&&b.end--,b.begin=w.seekPrevious.call(_,b.end,!0),b.begin>=0&&b.end>0&&(a.preventDefault(),w.caret.call(_,T,b.begin,b.end))):(b.begin=w.seekNext.call(_,b.begin,!0),b.end=w.seekNext.call(_,b.begin,!0),b.end<F.maskLength&&b.end--,b.begin<=F.maskLength&&(a.preventDefault(),w.caret.call(_,T,b.begin,b.end))):a.shiftKey||(O.insertModeVisual&&O.insertMode===!1?f===U.keys.ArrowRight?setTimeout((function(){var L=w.caret.call(_,T);w.caret.call(_,T,L.begin)}),0):f===U.keys.ArrowLeft&&setTimeout((function(){var L=w.translatePosition.call(_,T.inputmask.caretPos.begin);w.translatePosition.call(_,T.inputmask.caretPos.end),_.isRTL?w.caret.call(_,T,L+(L===F.maskLength?0:1)):w.caret.call(_,T,L-(L===0?0:1))}),0):_.keyEventHook===void 0||_.keyEventHook(a)):C.isSelection.call(_,b)?O.insertMode=!O.insertMode:(O.insertMode=!O.insertMode,w.caret.call(_,T,b.begin,b.begin));return _.isComposing=f==U.keys.Process||f==U.keys.Unidentified,_.ignorable=f.length>1&&!(T.tagName.toLowerCase()==="textarea"&&f==U.keys.Enter),n.keypressEvent.call(this,a,i,l,h,m)},"keyEvent"),keypressEvent:g(function(a,i,l,h,m){var _=this.inputmask||this,O=_.opts,B=_.dependencyLib,F=_.maskset,T=_.el,j=B(T),f=a.key;if(i===!0||a.ctrlKey&&a.altKey&&!_.ignorable||!(a.ctrlKey||a.metaKey||_.ignorable)){if(f){var b,P=i?{begin:m,end:m}:w.caret.call(_,T);i||(f=O.substitutes[f]||f),F.writeOutBuffer=!0;var M=C.isValid.call(_,P,f,h,void 0,void 0,void 0,i);if(M!==!1&&(w.resetMaskSet.call(_,!0),b=M.caret!==void 0?M.caret:w.seekNext.call(_,M.pos.begin?M.pos.begin:M.pos),F.p=b),b=O.numericInput&&M.caret===void 0?w.seekPrevious.call(_,b):b,l!==!1&&(setTimeout((function(){O.onKeyValidation.call(T,f,M)}),0),F.writeOutBuffer&&M!==!1)){var L=w.getBuffer.call(_);(0,G.writeBuffer)(T,L,b,a,i!==!0)}if(a.preventDefault(),i)return M!==!1&&(M.forwardPosition=b),M}}else f===U.keys.Enter&&_.undoValue!==_._valueGet(!0)&&(_.undoValue=_._valueGet(!0),setTimeout((function(){j.trigger("change")}),0))},"keypressEvent"),pasteEvent:(r=v().mark(g((function a(i){var l,h,m,_,O,B;return v().wrap((function(F){for(;;)switch(F.prev=F.next){case 0:l=g(function(T,j,f,b,P){var M=w.caret.call(T,j,void 0,void 0,!0),L=f.substr(0,M.begin),N=f.substr(M.end,f.length);if(L==(T.isRTL?w.getBufferTemplate.call(T).slice().reverse():w.getBufferTemplate.call(T)).slice(0,M.begin).join("")&&(L=""),N==(T.isRTL?w.getBufferTemplate.call(T).slice().reverse():w.getBufferTemplate.call(T)).slice(M.end).join("")&&(N=""),b=L+b+N,T.isRTL&&_.numericInput!==!0){b=b.split("");var Y,W=y(w.getBufferTemplate.call(T));try{for(W.s();!(Y=W.n()).done;){var R=Y.value;b[0]===R&&b.shift()}}catch(ee){W.e(ee)}finally{W.f()}b=b.reverse().join("")}var H=b;if(typeof P=="function"){if((H=P.call(T,H,_))===!1)return!1;H||(H=f)}(0,G.checkVal)(j,!0,!1,H.toString().split(""),i)},"n"),h=this,m=this.inputmask,_=m.opts,O=m._valueGet(!0),m.skipInputEvent=!0,i.clipboardData&&i.clipboardData.getData?B=i.clipboardData.getData("text/plain"):D.default.clipboardData&&D.default.clipboardData.getData&&(B=D.default.clipboardData.getData("Text")),l(m,h,O,B,_.onBeforePaste),i.preventDefault();case 7:case"end":return F.stop()}}),a,this)}),"e")),u=g(function(){var a=this,i=arguments;return new Promise((function(l,h){var m=r.apply(a,i);function _(B){p(m,l,h,_,O,"next",B)}g(_,"r");function O(B){p(m,l,h,_,O,"throw",B)}g(O,"o"),_(void 0)}))},"g"),function(a){return u.apply(this,arguments)}),inputFallBackEvent:g(function(a){var i=this.inputmask,l=i.opts,h=i.dependencyLib,m,_=this,O=_.inputmask._valueGet(!0),B=(i.isRTL?w.getBuffer.call(i).slice().reverse():w.getBuffer.call(i)).join(""),F=w.caret.call(i,_,void 0,void 0,!0);if(B!==O){if(m=(function(j,f,b){for(var P,M,L,N=j.substr(0,b.begin).split(""),Y=j.substr(b.begin).split(""),W=f.substr(0,b.begin).split(""),R=f.substr(b.begin).split(""),H=N.length>=W.length?N.length:W.length,ee=Y.length>=R.length?Y.length:R.length,K="",z=[],X="~";N.length<H;)N.push(X);for(;W.length<H;)W.push(X);for(;Y.length<ee;)Y.unshift(X);for(;R.length<ee;)R.unshift(X);var J=N.concat(Y),re=W.concat(R);for(M=0,P=J.length;M<P;M++)switch(L=E.getPlaceholder.call(i,w.translatePosition.call(i,M)),K){case"insertText":re[M-1]===J[M]&&b.begin==J.length-1&&z.push(J[M]),M=P;break;case"insertReplacementText":case"deleteContentBackward":J[M]===X?b.end++:M=P;break;default:J[M]!==re[M]&&(J[M+1]!==X&&J[M+1]!==L&&J[M+1]!==void 0||(re[M]!==L||re[M+1]!==X)&&re[M]!==X?re[M+1]===X&&re[M]===J[M+1]?(K="insertText",z.push(J[M]),b.begin--,b.end--):J[M]!==L&&J[M]!==X&&(J[M+1]===X||re[M]!==J[M]&&re[M+1]===J[M+1])?(K="insertReplacementText",z.push(J[M]),b.begin--):J[M]===X?(K="deleteContentBackward",(w.isMask.call(i,w.translatePosition.call(i,M),!0)||re[M]===l.radixPoint)&&b.end++):M=P:(K="insertText",z.push(J[M]),b.begin--,b.end--))}return{action:K,data:z,caret:b}})(O,B,F),(_.inputmask.shadowRoot||_.ownerDocument).activeElement!==_&&_.focus(),(0,G.writeBuffer)(_,w.getBuffer.call(i)),w.caret.call(i,_,F.begin,F.end,!0),!S.mobile&&i.skipNextInsert&&a.inputType==="insertText"&&m.action==="insertText"&&i.isComposing)return!1;switch(a.inputType==="insertCompositionText"&&m.action==="insertText"&&i.isComposing?i.skipNextInsert=!0:i.skipNextInsert=!1,m.action){case"insertText":case"insertReplacementText":m.data.forEach((function(j,f){var b=new h.Event("keypress");b.key=j,i.ignorable=!1,n.keypressEvent.call(_,b)})),setTimeout((function(){i.$el.trigger("keyup")}),0);break;case"deleteContentBackward":var T=new h.Event("keydown");T.key=U.keys.Backspace,n.keyEvent.call(_,T);break;default:(0,G.applyInputValue)(_,O),w.caret.call(i,_,F.begin,F.end,!0)}a.preventDefault()}},"inputFallBackEvent"),setValueEvent:g(function(a){var i=this.inputmask,l=i.dependencyLib,h=this,m=a&&a.detail?a.detail[0]:arguments[1];m===void 0&&(m=h.inputmask._valueGet(!0)),(0,G.applyInputValue)(h,m,new l.Event("input")),(a.detail&&a.detail[1]!==void 0||arguments[2]!==void 0)&&w.caret.call(i,h,a.detail?a.detail[1]:arguments[2])},"setValueEvent"),focusEvent:g(function(a){var i=this.inputmask,l=i.opts,h=i&&i._valueGet();l.showMaskOnFocus&&h!==w.getBuffer.call(i).join("")&&(0,G.writeBuffer)(this,w.getBuffer.call(i),w.seekNext.call(i,w.getLastValidPosition.call(i))),l.positionCaretOnTab!==!0||i.mouseEnter!==!1||C.isComplete.call(i,w.getBuffer.call(i))&&w.getLastValidPosition.call(i)!==-1||n.clickEvent.apply(this,[a,!0]),i.undoValue=i&&i._valueGet(!0)},"focusEvent"),invalidEvent:g(function(a){this.inputmask.validationEvent=!0},"invalidEvent"),mouseleaveEvent:g(function(){var a=this.inputmask,i=a.opts,l=this;a.mouseEnter=!1,i.clearMaskOnLostFocus&&(l.inputmask.shadowRoot||l.ownerDocument).activeElement!==l&&(0,G.HandleNativePlaceholder)(l,a.originalPlaceholder)},"mouseleaveEvent"),clickEvent:g(function(a,i){var l=this.inputmask;l.clicked++;var h=this;if((h.inputmask.shadowRoot||h.ownerDocument).activeElement===h){var m=w.determineNewCaretPosition.call(l,w.caret.call(l,h),i);m!==void 0&&w.caret.call(l,h,m)}},"clickEvent"),cutEvent:g(function(a){var i=this.inputmask,l=i.maskset,h=this,m=w.caret.call(i,h),_=i.isRTL?w.getBuffer.call(i).slice(m.end,m.begin):w.getBuffer.call(i).slice(m.begin,m.end),O=i.isRTL?_.reverse().join(""):_.join("");D.default.navigator&&D.default.navigator.clipboard?D.default.navigator.clipboard.writeText(O):D.default.clipboardData&&D.default.clipboardData.getData&&D.default.clipboardData.setData("Text",O),C.handleRemove.call(i,h,U.keys.Delete,m),(0,G.writeBuffer)(h,w.getBuffer.call(i),l.p,a,i.undoValue!==i._valueGet(!0))},"cutEvent"),blurEvent:g(function(a){var i=this.inputmask,l=i.opts,h=i.dependencyLib;i.clicked=0;var m=h(this),_=this;if(_.inputmask){(0,G.HandleNativePlaceholder)(_,i.originalPlaceholder);var O=_.inputmask._valueGet(),B=w.getBuffer.call(i).slice();O!==""&&(l.clearMaskOnLostFocus&&(w.getLastValidPosition.call(i)===-1&&O===w.getBufferTemplate.call(i).join("")?B=[]:G.clearOptionalTail.call(i,B)),C.isComplete.call(i,B)===!1&&(setTimeout((function(){m.trigger("incomplete")}),0),l.clearIncomplete&&(w.resetMaskSet.call(i,!1),B=l.clearMaskOnLostFocus?[]:w.getBufferTemplate.call(i).slice())),(0,G.writeBuffer)(_,B,void 0,a)),O=i._valueGet(!0),i.undoValue!==O&&(O!=""||i.undoValue!=w.getBufferTemplate.call(i).join("")||i.undoValue==w.getBufferTemplate.call(i).join("")&&i.maskset.validPositions.length>0)&&(i.undoValue=O,m.trigger("change"))}},"blurEvent"),mouseenterEvent:g(function(){var a=this.inputmask,i=a.opts.showMaskOnHover,l=this;if(a.mouseEnter=!0,(l.inputmask.shadowRoot||l.ownerDocument).activeElement!==l){var h=(a.isRTL?w.getBufferTemplate.call(a).slice().reverse():w.getBufferTemplate.call(a)).join("");i&&(0,G.HandleNativePlaceholder)(l,h)}},"mouseenterEvent"),submitEvent:g(function(){var a=this.inputmask,i=a.opts;a.undoValue!==a._valueGet(!0)&&a.$el.trigger("change"),w.getLastValidPosition.call(a)===-1&&a._valueGet&&a._valueGet()===w.getBufferTemplate.call(a).join("")&&a._valueSet(""),i.clearIncomplete&&C.isComplete.call(a,w.getBuffer.call(a))===!1&&a._valueSet(""),i.removeMaskOnSubmit&&(a._valueSet(a.unmaskedvalue(),!0),setTimeout((function(){(0,G.writeBuffer)(a.el,w.getBuffer.call(a))}),0))},"submitEvent"),resetEvent:g(function(){var a=this.inputmask;a.refreshValue=!0,setTimeout((function(){(0,G.applyInputValue)(a.el,a._valueGet(!0))}),0)},"resetEvent")}},9716:function(d,c,k){Object.defineProperty(c,"__esModule",{value:!0}),c.EventRuler=void 0;var A,I=k(7760),S=(A=k(2394))&&A.__esModule?A:{default:A},D=k(2839),G=k(8711);c.EventRuler={on:g(function(U,w,C){var E=U.inputmask.dependencyLib,v=g(function(y){y.originalEvent&&(y=y.originalEvent||y,arguments[0]=y);var s,p=this,r=p.inputmask,u=r?r.opts:void 0;if(r===void 0&&this.nodeName!=="FORM"){var n=E.data(p,"_inputmask_opts");E(p).off(),n&&new S.default(n).mask(p)}else{if(["submit","reset","setvalue"].includes(y.type)||this.nodeName==="FORM"||!(p.disabled||p.readOnly&&!(y.type==="keydown"&&y.ctrlKey&&y.key===D.keys.c||u.tabThrough===!1&&y.key===D.keys.Tab))){switch(y.type){case"input":if(r.skipInputEvent===!0)return r.skipInputEvent=!1,y.preventDefault();break;case"click":case"focus":return r.validationEvent?(r.validationEvent=!1,U.blur(),(0,I.HandleNativePlaceholder)(U,(r.isRTL?G.getBufferTemplate.call(r).slice().reverse():G.getBufferTemplate.call(r)).join("")),setTimeout((function(){U.focus()}),u.validationEventTimeOut),!1):(s=arguments,void setTimeout((function(){U.inputmask&&C.apply(p,s)}),0))}var a=C.apply(p,arguments);return a===!1&&(y.preventDefault(),y.stopPropagation()),a}y.preventDefault()}},"s");["submit","reset"].includes(w)?(v=v.bind(U),U.form!==null&&E(U.form).on(w,v)):E(U).on(w,v),U.inputmask.events[w]=U.inputmask.events[w]||[],U.inputmask.events[w].push(v)},"on"),off:g(function(U,w){if(U.inputmask&&U.inputmask.events){var C=U.inputmask.dependencyLib,E=U.inputmask.events;for(var v in w&&((E=[])[w]=U.inputmask.events[w]),E){for(var y=E[v];y.length>0;){var s=y.pop();["submit","reset"].includes(v)?U.form!==null&&C(U.form).off(v,s):C(U).off(v,s)}delete U.inputmask.events[v]}}},"off")}},219:function(d,c,k){var A=v(k(7184)),I=v(k(2394)),S=k(2839),D=k(8711),G=k(4713);function U(f,b){return(function(P){if(Array.isArray(P))return P})(f)||(function(P,M){var L=P==null?null:typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(L!=null){var N,Y,W,R,H=[],ee=!0,K=!1;try{if(W=(L=L.call(P)).next,M!==0)for(;!(ee=(N=W.call(L)).done)&&(H.push(N.value),H.length!==M);ee=!0);}catch(z){K=!0,Y=z}finally{try{if(!ee&&L.return!=null&&(R=L.return(),Object(R)!==R))return}finally{if(K)throw Y}}return H}})(f,b)||(function(P,M){if(P){if(typeof P=="string")return w(P,M);var L=Object.prototype.toString.call(P).slice(8,-1);if(L==="Object"&&P.constructor&&(L=P.constructor.name),L==="Map"||L==="Set")return Array.from(P);if(L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return w(P,M)}})(f,b)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}g(U,"s");function w(f,b){(b==null||b>f.length)&&(b=f.length);for(var P=0,M=new Array(b);P<b;P++)M[P]=f[P];return M}g(w,"c");function C(f){return C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},C(f)}g(C,"u");function E(f,b){for(var P=0;P<b.length;P++){var M=b[P];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(f,(L=M.key,N=void 0,N=(function(Y,W){if(C(Y)!=="object"||Y===null)return Y;var R=Y[Symbol.toPrimitive];if(R!==void 0){var H=R.call(Y,W);if(C(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(W==="string"?String:Number)(Y)})(L,"string"),C(N)==="symbol"?N:String(N)),M)}var L,N}g(E,"f");function v(f){return f&&f.__esModule?f:{default:f}}g(v,"p"),k(1313);var y=I.default.dependencyLib,s=(function(){function f(M,L,N,Y){(function(W,R){if(!(W instanceof R))throw new TypeError("Cannot call a class as a function")})(this,f),this.mask=M,this.format=L,this.opts=N,this.inputmask=Y,this._date=new Date(1,0,1),this.initDateObject(M,this.opts,this.inputmask)}g(f,"e");var b,P;return b=f,(P=[{key:"date",get:g(function(){return this._date===void 0&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts,this.inputmask)),this._date},"get")},{key:"initDateObject",value:g(function(M,L,N){var Y;for(m(L).lastIndex=0;Y=m(L).exec(this.format);){var W=/\d+$/.exec(Y[0]),R=W?Y[0][0]+"x":Y[0],H=void 0;if(M!==void 0){if(W){var ee=m(L).lastIndex,K=j.call(N,Y.index,L,N&&N.maskset);m(L).lastIndex=ee,H=M.slice(0,M.indexOf(K.nextMatch[0]))}else{for(var z=Y[0][0],X=Y.index;N&&(L.placeholder[G.getTest.call(N,X).match.placeholder]||G.getTest.call(N,X).match.placeholder)===z;)X++;var J=X-Y.index;H=M.slice(0,J||n[R]&&n[R][4]||R.length)}M=M.slice(H.length)}Object.prototype.hasOwnProperty.call(n,R)&&this.setValue(this,H,R,n[R][2],n[R][1])}},"value")},{key:"setValue",value:g(function(M,L,N,Y,W){if(L!==void 0)switch(Y){case"ampm":M[Y]=L,M["raw"+Y]=L.replace(/\s/g,"_");break;case"month":if(N==="mmm"||N==="mmmm"){M[Y]=B(N==="mmm"?r.monthNames.slice(0,12).findIndex((function(H){return L.toLowerCase()===H.toLowerCase()}))+1:r.monthNames.slice(12,24).findIndex((function(H){return L.toLowerCase()===H.toLowerCase()}))+1,2),M[Y]=M[Y]==="00"?"":M[Y].toString(),M["raw"+Y]=M[Y];break}default:M[Y]=L.replace(/[^0-9]/g,"0"),M["raw"+Y]=L.replace(/\s/g,"_")}if(W!==void 0){var R=M[Y];(Y==="day"&&parseInt(R)===29||Y==="month"&&parseInt(R)===2)&&(parseInt(M.day)!==29||parseInt(M.month)!==2||M.year!==""&&M.year!==void 0||M._date.setFullYear(2012,1,29)),Y==="day"&&(u=!0,parseInt(R)===0&&(R=1)),Y==="month"&&(u=!0),Y==="year"&&(u=!0,R.length<n[N][4]&&(R=B(R,n[N][4],!0))),(R!==""&&!isNaN(R)||Y==="ampm")&&W.call(M._date,R)}},"value")},{key:"reset",value:g(function(){this._date=new Date(1,0,1)},"value")},{key:"reInit",value:g(function(){this._date=void 0,this.date},"value")}])&&E(b.prototype,P),Object.defineProperty(b,"prototype",{writable:!1}),f})(),p=new Date().getFullYear(),r=I.default.prototype.i18n,u=!1,n={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return B(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(f){var b=f?parseInt(f):0;return b>0&&b--,Date.prototype.setMonth.call(this,b)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(f){var b=f?parseInt(f):0;return b>0&&b--,Date.prototype.setMonth.call(this,b)},"month",function(){return B(Date.prototype.getMonth.call(this)+1,2)}],mmm:[r.monthNames.slice(0,12).join("|"),function(f){var b=r.monthNames.slice(0,12).findIndex((function(P){return f.toLowerCase()===P.toLowerCase()}));return b!==-1&&Date.prototype.setMonth.call(this,b)},"month",function(){return r.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],mmmm:[r.monthNames.slice(12,24).join("|"),function(f){var b=r.monthNames.slice(12,24).findIndex((function(P){return f.toLowerCase()===P.toLowerCase()}));return b!==-1&&Date.prototype.setMonth.call(this,b)},"month",function(){return r.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:["[0-9]{2}",function(f){var b=new Date().getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,"".concat(b).concat(f))},"year",function(){return B(Date.prototype.getFullYear.call(this),2)},2],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return B(Date.prototype.getFullYear.call(this),4)},4],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return B(Date.prototype.getHours.call(this),2)}],hx:[function(f){return"[0-9]{".concat(f,"}")},Date.prototype.setHours,"hours",function(f){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return B(Date.prototype.getHours.call(this),2)}],Hx:[function(f){return"[0-9]{".concat(f,"}")},Date.prototype.setHours,"hours",function(f){return function(){return B(Date.prototype.getHours.call(this),f)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return B(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return B(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return B(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return B(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",i,"ampm",l,1],tt:["[ap]m",i,"ampm",l,2],T:["[AP]",i,"ampm",l,1],TT:["[AP]M",i,"ampm",l,2],Z:[".*",void 0,"Z",function(){var f=this.toString().match(/\((.+)\)/)[1];return f.includes(" ")&&(f=(f=f.replace("-"," ").toUpperCase()).split(" ").map((function(b){return U(b,1)[0]})).join("")),f}],o:[""],S:[""]},a={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function i(f){var b=this.getHours();f.toLowerCase().includes("p")?this.setHours(b+12):f.toLowerCase().includes("a")&&b>=12&&this.setHours(b-12)}g(i,"b");function l(){var f=this.getHours();return(f=f||12)>=12?"PM":"AM"}g(l,"x");function h(f){var b=/\d+$/.exec(f[0]);if(b&&b[0]!==void 0){var P=n[f[0][0]+"x"].slice("");return P[0]=P[0](b[0]),P[3]=P[3](b[0]),P}if(n[f[0]])return n[f[0]]}g(h,"w");function m(f){if(!f.tokenizer){var b=[],P=[];for(var M in n)if(/\.*x$/.test(M)){var L=M[0]+"\\d+";P.indexOf(L)===-1&&P.push(L)}else b.indexOf(M[0])===-1&&b.push(M[0]);f.tokenizer="("+(P.length>0?P.join("|")+"|":"")+b.join("+|")+")+?|.",f.tokenizer=new RegExp(f.tokenizer,"g")}return f.tokenizer}g(m,"P");function _(f,b,P){if(!u)return!0;if(f.rawday===void 0||!isFinite(f.rawday)&&new Date(f.date.getFullYear(),isFinite(f.rawmonth)?f.month:f.date.getMonth()+1,0).getDate()>=f.day||f.day=="29"&&(!isFinite(f.rawyear)||f.rawyear===void 0||f.rawyear==="")||new Date(f.date.getFullYear(),isFinite(f.rawmonth)?f.month:f.date.getMonth()+1,0).getDate()>=f.day)return b;if(f.day=="29"){var M=j.call(this,b.pos,P,this.maskset);if(M.targetMatch&&M.targetMatch[0]==="yyyy"&&b.pos-M.targetMatchIndex==2)return b.remove=b.pos+1,b}else if(f.date.getMonth()==2&&f.day=="30"&&b.c!==void 0)return f.day="03",f.date.setDate(3),f.date.setMonth(1),b.insert=[{pos:b.pos,c:"0"},{pos:b.pos+1,c:b.c}],b.caret=D.seekNext.call(this,b.pos+1),b;return!1}g(_,"S");function O(f,b,P,M){var L,N,Y="",W=0,R={};for(m(P).lastIndex=0;L=m(P).exec(f);){if(b===void 0)if(N=h(L))Y+="("+N[0]+")",P.placeholder&&P.placeholder!==""?(R[W]=P.placeholder[L.index%P.placeholder.length],R[P.placeholder[L.index%P.placeholder.length]]=L[0].charAt(0)):R[W]=L[0].charAt(0);else switch(L[0]){case"[":Y+="(";break;case"]":Y+=")?";break;default:Y+=(0,A.default)(L[0]),R[W]=L[0].charAt(0)}else(N=h(L))?M!==!0&&N[3]?Y+=N[3].call(b.date):N[2]?Y+=b["raw"+N[2]]:Y+=L[0]:Y+=L[0];W++}return b===void 0&&(P.placeholder=R),Y}g(O,"O");function B(f,b,P){for(f=String(f),b=b||2;f.length<b;)f=P?f+"0":"0"+f;return f}g(B,"_");function F(f,b,P){return typeof f=="string"?new s(f,b,P,this):f&&C(f)==="object"&&Object.prototype.hasOwnProperty.call(f,"date")?f:void 0}g(F,"M");function T(f,b){return O(b.inputFormat,{date:f},b)}g(T,"E");function j(f,b,P){var M,L,N=this,Y=P&&P.tests[f]?b.placeholder[P.tests[f][0].match.placeholder]||P.tests[f][0].match.placeholder:"",W=0,R=0;for(m(b).lastIndex=0;L=m(b).exec(b.inputFormat);){var H=/\d+$/.exec(L[0]);if(H)R=parseInt(H[0]);else{for(var ee=L[0][0],K=W;N&&(b.placeholder[G.getTest.call(N,K).match.placeholder]||G.getTest.call(N,K).match.placeholder)===ee;)K++;(R=K-W)===0&&(R=L[0].length)}if(W+=R,L[0].indexOf(Y)!=-1||W>=f+1){M=L,L=m(b).exec(b.inputFormat);break}}return{targetMatchIndex:W-R,nextMatch:L,targetMatch:M}}g(j,"j"),I.default.extendAliases({datetime:{mask:g(function(f){return f.numericInput=!1,n.S=r.ordinalSuffix.join("|"),f.inputFormat=a[f.inputFormat]||f.inputFormat,f.displayFormat=a[f.displayFormat]||f.displayFormat||f.inputFormat,f.outputFormat=a[f.outputFormat]||f.outputFormat||f.inputFormat,f.regex=O(f.inputFormat,void 0,f),f.min=F(f.min,f.inputFormat,f),f.max=F(f.max,f.inputFormat,f),null},"mask"),placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",preValidation:g(function(f,b,P,M,L,N,Y,W){if(W)return!0;if(isNaN(P)&&f[b]!==P){var R=j.call(this,b,L,N);if(R.nextMatch&&R.nextMatch[0]===P&&R.targetMatch[0].length>1){var H=h(R.targetMatch)[0];if(new RegExp(H).test("0"+f[b-1]))return f[b]=f[b-1],f[b-1]="0",{fuzzy:!0,buffer:f,refreshFromBuffer:{start:b-1,end:b+1},pos:b+1}}}return!0},"preValidation"),postValidation:g(function(f,b,P,M,L,N,Y,W){var R,H,ee=this;if(Y)return!0;if(M===!1&&(((R=j.call(ee,b+1,L,N)).targetMatch&&R.targetMatchIndex===b&&R.targetMatch[0].length>1&&n[R.targetMatch[0]]!==void 0||(R=j.call(ee,b+2,L,N)).targetMatch&&R.targetMatchIndex===b+1&&R.targetMatch[0].length>1&&n[R.targetMatch[0]]!==void 0)&&(H=h(R.targetMatch)[0]),H!==void 0&&(N.validPositions[b+1]!==void 0&&new RegExp(H).test(P+"0")?(f[b]=P,f[b+1]="0",M={pos:b+2,caret:b}):new RegExp(H).test("0"+P)&&(f[b]="0",f[b+1]=P,M={pos:b+2})),M===!1))return M;if(M.fuzzy&&(f=M.buffer,b=M.pos),(R=j.call(ee,b,L,N)).targetMatch&&R.targetMatch[0]&&n[R.targetMatch[0]]!==void 0){var K=h(R.targetMatch);H=K[0];var z=f.slice(R.targetMatchIndex,R.targetMatchIndex+R.targetMatch[0].length);if(new RegExp(H).test(z.join(""))===!1&&R.targetMatch[0].length===2&&N.validPositions[R.targetMatchIndex]&&N.validPositions[R.targetMatchIndex+1]&&(N.validPositions[R.targetMatchIndex+1].input="0"),K[2]=="year")for(var X=G.getMaskTemplate.call(ee,!1,1,void 0,!0),J=b+1;J<f.length;J++)f[J]=X[J],N.validPositions.splice(b+1,1)}var re=M,se=F.call(ee,f.join(""),L.inputFormat,L);return re&&!isNaN(se.date.getTime())&&(L.prefillYear&&(re=(function(le,ke,ve){if(le.year!==le.rawyear){var xe=p.toString(),Z=le.rawyear.replace(/[^0-9]/g,""),V=xe.slice(0,Z.length),$=xe.slice(Z.length);if(Z.length===2&&Z===V){var Q=new Date(p,le.month-1,le.day);le.day==Q.getDate()&&(!ve.max||ve.max.date.getTime()>=Q.getTime())&&(le.date.setFullYear(p),le.year=xe,ke.insert=[{pos:ke.pos+1,c:$[0]},{pos:ke.pos+2,c:$[1]}])}}return ke})(se,re,L)),re=(function(le,ke,ve,xe,Z){if(!ke)return ke;if(ke&&ve.min&&!isNaN(ve.min.date.getTime())){var V;for(le.reset(),m(ve).lastIndex=0;V=m(ve).exec(ve.inputFormat);){var $;if(($=h(V))&&$[3]){for(var Q=$[1],q=le[$[2]],ie=ve.min[$[2]],ce=ve.max?ve.max[$[2]]:ie+1,ne=[],oe=!1,he=0;he<ie.length;he++)xe.validPositions[he+V.index]!==void 0||oe?(ne[he]=q[he],oe=oe||q[he]>ie[he]):(he+V.index==0&&q[he]<ie[he]?(ne[he]=q[he],oe=!0):ne[he]=ie[he],$[2]==="year"&&q.length-1==he&&ie!=ce&&(ne=(parseInt(ne.join(""))+1).toString().split("")),$[2]==="ampm"&&ie!=ce&&ve.min.date.getTime()>le.date.getTime()&&(ne[he]=ce[he]));Q.call(le._date,ne.join(""))}}ke=ve.min.date.getTime()<=le.date.getTime(),le.reInit()}return ke&&ve.max&&(isNaN(ve.max.date.getTime())||(ke=ve.max.date.getTime()>=le.date.getTime())),ke})(se,re=_.call(ee,se,re,L),L,N)),b!==void 0&&re&&M.pos!==b?{buffer:O(L.inputFormat,se,L).split(""),refreshFromBuffer:{start:b,end:M.pos},pos:M.caret||M.pos}:re},"postValidation"),onKeyDown:g(function(f,b,P,M){f.ctrlKey&&f.key===S.keys.ArrowRight&&(this.inputmask._valueSet(T(new Date,M)),y(this).trigger("setvalue"))},"onKeyDown"),onUnMask:g(function(f,b,P){return b&&O(P.outputFormat,F.call(this,f,P.inputFormat,P),P,!0)},"onUnMask"),casing:g(function(f,b,P,M){if(b.nativeDef.indexOf("[ap]")==0)return f.toLowerCase();if(b.nativeDef.indexOf("[AP]")==0)return f.toUpperCase();var L=G.getTest.call(this,[P-1]);return L.match.def.indexOf("[AP]")==0||P===0||L&&L.input===String.fromCharCode(S.keyCode.Space)||L&&L.match.def===String.fromCharCode(S.keyCode.Space)?f.toUpperCase():f.toLowerCase()},"casing"),onBeforeMask:g(function(f,b){return Object.prototype.toString.call(f)==="[object Date]"&&(f=T(f,b)),f},"onBeforeMask"),insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},1313:function(d,c,k){var A,I=(A=k(2394))&&A.__esModule?A:{default:A};I.default.dependencyLib.extend(!0,I.default.prototype.i18n,{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]})},3851:function(d,c,k){var A,I=(A=k(2394))&&A.__esModule?A:{default:A},S=k(8711),D=k(4713);function G(E){return(function(v){if(Array.isArray(v))return U(v)})(E)||(function(v){if(typeof Symbol<"u"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)})(E)||(function(v,y){if(v){if(typeof v=="string")return U(v,y);var s=Object.prototype.toString.call(v).slice(8,-1);if(s==="Object"&&v.constructor&&(s=v.constructor.name),s==="Map"||s==="Set")return Array.from(v);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return U(v,y)}})(E)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var c=Object.defineProperty;var S=(e,a)=>c(e,"name",{value:a,configurable:!0});import{P as i,W as V,C as $,o as d,c as p,n as g,a as s,j as I,l as T,v as C,f as b,b as m,w as f,e as y,t as l,r as v,g as z}from"./main-
|
|
1
|
+
var c=Object.defineProperty;var S=(e,a)=>c(e,"name",{value:a,configurable:!0});import{P as i,W as V,C as $,o as d,c as p,n as g,a as s,j as I,l as T,v as C,f as b,b as m,w as f,e as y,t as l,r as v,g as z}from"./main-BIpS3Kki.js";import{F as B}from"./FieldComponent.vue_vue_type_script_lang-Ig4MpRH0.js";var N=Object.defineProperty,W=Object.getOwnPropertyDescriptor,t=S((e,a,w,u)=>{for(var n=u>1?void 0:u?W(a,w):a,k=e.length-1,r;k>=0;k--)(r=e[k])&&(n=(u?r(a,w,n):r(n))||n);return u&&n&&N(a,w,n),n},"__decorateClass"),h;let o=(h=class extends B{disabled=!1;bg="linear-gradient(330deg, #0aa86d 0%, #4eb18d 50%, #0ca86e 100%)";bgInactive="#a1a1a1";title=null;titleTheme="info";bgTogglerY="#3db37e";bgTogglerN="#FF3A19";titleTogglerY="Active";titleTogglerN="Inactive";togglerWidth="100px";togglerWidthActive="100px";togglerRevertColors=null;boxShadow="0 0 2px #1ca95e";disabledTitle="Disabled";disabledTitleTheme="grey";boxShadowHover="0 0 2px #9eeda8";labelColor="#fff";labelBoxShadow="0 0 4px #a4a4a4";type="switcher";modelValue=!1;value=!1;beforeMount(){this.value=this.inputValue||this.modelValue||!1,this.randomId=$VST.generateRandomKey(32)}emits=["update:modelValue","change"];onValueChange(){if(this.ignoreOuter)return this.ignoreOuter=!1;this.$emit("update:modelValue",this.value),this.$emit("change",this.value)}randomId="";ignoreOuter=!1;modelValueChanged(a){this.ignoreOuter=!0,this.setValue(a)}},S(h,"SwitchField"),h);t([i(Boolean)],o.prototype,"disabled",2);t([i(String)],o.prototype,"bg",2);t([i(String)],o.prototype,"bgInactive",2);t([i(String)],o.prototype,"title",2);t([i(String)],o.prototype,"titleTheme",2);t([i(String)],o.prototype,"bgTogglerY",2);t([i(String)],o.prototype,"bgTogglerN",2);t([i(String)],o.prototype,"titleTogglerY",2);t([i(String)],o.prototype,"titleTogglerN",2);t([i(String)],o.prototype,"togglerWidth",2);t([i(String)],o.prototype,"togglerWidthActive",2);t([i(Boolean)],o.prototype,"togglerRevertColors",2);t([i(String)],o.prototype,"boxShadow",2);t([i(String)],o.prototype,"disabledTitle",2);t([i(String)],o.prototype,"disabledTitleTheme",2);t([i(String)],o.prototype,"boxShadowHover",2);t([i(String)],o.prototype,"labelColor",2);t([i(String)],o.prototype,"labelBoxShadow",2);t([i(String)],o.prototype,"type",2);t([i(Boolean,null)],o.prototype,"modelValue",2);t([V("modelValue",!0)],o.prototype,"modelValueChanged",1);o=t([$],o);const O=["title","data-theme"],Y={class:"switch_box"},A=["id","disabled"],D=["for"],F=["id","disabled"],P=["data-tg-off","data-tg-on","for"],L={class:"flex items-center justify-center"},R=["id","disabled"],j=["for"],U=["height"];function H(e,a,w,u,n,k){return d(),p("div",{class:g(["container-switch",{"min-w64px":e.type!="checkbox","44px!":e.size=="lg","h25px!":e.size=="md","h20px! w25px!":e.size=="sm"}]),title:e.disabled?e.disabledTitle:e.title,"data-theme":e.disabled?e.disabledTitleTheme:e.titleTheme,"data-offset":"[-15, 15]"},[e.type=="switcher"?(d(),p("div",{key:0,class:g(["switch",{"min-h25px! scale-80":e.size=="md","min-h18px! scale-50":e.size=="sm",disabled:e.disabled}])},[s("div",Y,[s("div",{class:"cursor-pointer fs-1rem mb2px",onClick:a[0]||(a[0]=r=>e.disabled?null:e.value=!e.value)},[I(e.$slots,"default")]),T(s("input",{id:"switch-"+e.randomId,type:"checkbox","onUpdate:modelValue":a[1]||(a[1]=r=>e.value=r),disabled:e.disabled},null,8,A),[[C,e.value]]),s("label",{for:"switch-"+e.randomId,class:g({disabled:e.disabled})},null,10,D)])],2)):e.type=="toggler"?(d(),p("div",{key:1,class:g(["hybrid-checkbox",{["toggler-"+e.randomId]:!0}])},[T(s("input",{class:"tgl tgl-flip",id:"toggler-"+e.randomId,type:"checkbox","onUpdate:modelValue":a[2]||(a[2]=r=>e.value=r),disabled:e.disabled},null,8,F),[[C,e.value]]),s("label",{class:"tgl-btn","data-tg-off":e.titleTogglerN,"data-tg-on":e.titleTogglerY,for:"toggler-"+e.randomId},null,8,P)],2)):e.type=="checkbox"?(d(),p("div",{key:2,class:g(["typical-checkbox",{disabled:e.disabled}])},[s("span",L,[T(s("input",{type:"checkbox",id:"checkbox-"+e.randomId,"onUpdate:modelValue":a[3]||(a[3]=r=>e.value=r),disabled:e.disabled},null,8,R),[[C,e.value]]),s("label",{class:g(["check py3px! w20px! p0!",{"bg-white":e.value,"mt3px!":!e.value,"h10px!":e.size=="sm"}]),for:"checkbox-"+e.randomId},[(d(),p("svg",{class:g(["w20px",{"svg-unchecked bg-white":!e.value}]),width:"20px",height:e.size=="sm"?"13px":e.size=="md"?"18px":null,viewBox:"0 0 18 18"},[...a[5]||(a[5]=[s("path",{d:"M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"},null,-1),s("polyline",{points:"1 9 7 14 15 4"},null,-1)])],10,U))],10,j)]),e.$slots?.default&&e.$slots?.default?.()?.[0]?.children?.length?(d(),p("span",{key:0,class:g(["cursor-pointer fs-1rem mx15px my2px whitespace-nowrap",{"fw-bold underline underline-black":e.value}]),onClick:a[4]||(a[4]=r=>e.disabled?null:e.value=!e.value)},[I(e.$slots,"default")],2)):b("",!0)],2)):b("",!0),e.type=="toggler"?(d(),m(v("style"),{key:3},{default:f(()=>[y(".toggler-"+l(e.randomId)+" .tgl-flip + .tgl-btn { perspective: "+l(e.value?e.togglerWidthActive:e.togglerWidth)+" !important; width: "+l(e.value?e.togglerWidthActive:e.togglerWidth)+" !important; } .toggler-"+l(e.randomId)+" .tgl-flip + .tgl-btn:before { background: "+l(e.togglerRevertColors?e.bgTogglerY:e.bgTogglerN)+" } .toggler-"+l(e.randomId)+" .tgl-flip:checked + .tgl-btn:after { background: "+l(e.togglerRevertColors?e.bgTogglerN:e.bgTogglerY)+" }",1)]),_:1})):b("",!0),e.type=="toggler"&&e.disabled?(d(),m(v("style"),{key:4},{default:f(()=>[y(".toggler-"+l(e.randomId)+" { opacity: 0.5 !important; }",1)]),_:1})):b("",!0),e.type=="checkbox"?(d(),m(v("style"),{key:5},{default:f(()=>[y("#checkbox-"+l(e.randomId)+" { display: none; visibility: hidden; } #checkbox-"+l(e.randomId)+" + label { box-sizing: content-box !important; }",1)]),_:1})):b("",!0),e.type=="checkbox"&&e.size=="sm"?(d(),m(v("style"),{key:6},{default:f(()=>[y('[for="checkbox-'+l(e.randomId)+'"]:before { height: 20px !important; width: 20px !important; } #checkbox-'+l(e.randomId)+" + label { height: 15px !important; width: 15px !important; }",1)]),_:1})):b("",!0),(d(),m(v("style"),null,{default:f(()=>[y('[for="switch-'+l(e.randomId)+'"]::before { background: '+l(e.bg)+"; box-shadow: "+l(e.boxShadow)+' !important; } [for="switch-'+l(e.randomId)+'"]:not(.disabled):hover { box-shadow: '+l(e.boxShadowHover)+'; } .switch_box [for="switch-'+l(e.randomId)+'"]::after { background: '+l(e.labelColor)+" !important; box-shadow: "+l(e.labelBoxShadow)+'; } .switch_box [for="switch-'+l(e.randomId)+'"] input { display: none !important; } .switch_box label[for="switch-'+l(e.randomId)+'"] { background: '+l(e.bgInactive)+" !important; }",1)]),_:1}))],10,O)}S(H,"render");const Z=z(o,[["render",H]]);export{Z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var T=Object.defineProperty;var o=(t,a)=>T(t,"name",{value:a,configurable:!0});import{K as f,C as k,o as s,c as r,a as g,F as n,Q as b,n as $,j as v,f as _,t as m,l as y,I as w,g as B}from"./main-
|
|
1
|
+
var T=Object.defineProperty;var o=(t,a)=>T(t,"name",{value:a,configurable:!0});import{K as f,C as k,o as s,c as r,a as g,F as n,Q as b,n as $,j as v,f as _,t as m,l as y,I as w,g as B}from"./main-BIpS3Kki.js";var D=Object.getOwnPropertyDescriptor,O=o((t,a,h,c)=>{for(var i=c>1?void 0:c?D(a,h):a,d=t.length-1,u;d>=0;d--)(u=t[d])&&(i=u(i)||i);return i},"__decorateClass"),l;let p=(l=class extends f{currentTab="default";CommentT=Comment;mounted(){}setCurrentTab(a){this.currentTab=a}getTabTitle(a){return a.props?.title||"Без названия"}},o(l,"Tabs"),l);p=O([k],p);const S={class:"tabs"},W={class:"tabs__headers"},j=["onClick"],F=["onClick"],I={key:0,class:"tabs__content"};function N(t,a,h,c,i,d){return s(),r("div",S,[g("div",W,[(s(!0),r(n,null,b(t.$slots,(u,e)=>(s(),r(n,null,[e.startsWith("$title-")?(s(),r("div",{key:0,class:$(["tabs__header",{"tabs__header--active":t.currentTab===e.split("-")[1]}]),onClick:o(C=>t.setCurrentTab(e.split("-")[1]),"onClick")},[v(t.$slots,e,{},void 0,!0)],10,j)):_("",!0)],64))),256)),(s(!0),r(n,null,b(t.$slots,(u,e)=>(s(),r(n,null,[!e.startsWith("$title")&&!t.$slots?.[`$title-${e}`]?(s(),r("div",{key:0,class:$(["tabs__header",{"tabs__header--active":t.currentTab===e}]),onClick:o(C=>t.setCurrentTab(e),"onClick")},m(e),11,F)):_("",!0)],64))),256))]),(s(!0),r(n,null,b(t.$slots,(u,e)=>(s(),r(n,null,[e.startsWith("$")?_("",!0):y((s(),r("div",I,[v(t.$slots,e,{},void 0,!0)],512)),[[w,t.currentTab==e]])],64))),256))])}o(N,"render");const z=B(p,[["render",N],["__scopeId","data-v-a12a2bf2"]]);export{z as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Fm=Object.defineProperty;var a=(t,e)=>Fm(t,"name",{value:e,configurable:!0});import{m as ih,p as sh,q as Pm,s as oh,u as lh,x as zm,y as Bm,z as uh,A as $m,B as Hm,D as Vm,V as jm,E as Wm,G as qm,P as $e,W as Pi,C as Um,h as Jn,o as se,b as zt,w as B,l as il,a as x,n as Y,H as U,I as sl,c as Ve,J as Gn,k as nt,f as xe,i as Km,t as Fc,r as Jm,e as Gm,g as Ym}from"./main-A2tcl52U.js";import{F as Zm}from"./FieldComponent.vue_vue_type_script_lang-BGU29o43.js";import{g as Xm}from"./_commonjsHelpers-BO6-jdEg.js";import{r as Qm}from"./NoSymbolIcon-BFWxS8vy.js";function me(t){this.content=t}a(me,"OrderedMap");me.prototype={constructor:me,find:a(function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},"find"),get:a(function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},"get"),update:a(function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),s=r.content.slice();return i==-1?s.push(n||t,e):(s[i+1]=e,n&&(s[i]=n)),new me(s)},"update"),remove:a(function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new me(n)},"remove"),addToStart:a(function(t,e){return new me([t,e].concat(this.remove(t).content))},"addToStart"),addToEnd:a(function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new me(n)},"addToEnd"),addBefore:a(function(t,e,n){var r=this.remove(e),i=r.content.slice(),s=r.find(t);return i.splice(s==-1?i.length:s,0,e,n),new me(i)},"addBefore"),forEach:a(function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},"forEach"),prepend:a(function(t){return t=me.from(t),t.size?new me(t.content.concat(this.subtract(t).content)):this},"prepend"),append:a(function(t){return t=me.from(t),t.size?new me(this.subtract(t).content.concat(t.content)):this},"append"),subtract:a(function(t){var e=this;t=me.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},"subtract"),toObject:a(function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},"toObject"),get size(){return this.content.length>>1}};me.from=function(t){if(t instanceof me)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new me(e)};function ah(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),s=e.child(r);if(i==s){n+=i.nodeSize;continue}if(!i.sameMarkup(s))return n;if(i.isText&&i.text!=s.text){for(let o=0;i.text[o]==s.text[o];o++)n++;return n}if(i.content.size||s.content.size){let o=ah(i.content,s.content,n+1);if(o!=null)return o}n+=i.nodeSize}}a(ah,"findDiffStart");function ch(t,e,n,r){for(let i=t.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:n,b:r};let o=t.child(--i),l=e.child(--s),u=o.nodeSize;if(o==l){n-=u,r-=u;continue}if(!o.sameMarkup(l))return{a:n,b:r};if(o.isText&&o.text!=l.text){let c=0,d=Math.min(o.text.length,l.text.length);for(;c<d&&o.text[o.text.length-c-1]==l.text[l.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(o.content.size||l.content.size){let c=ch(o.content,l.content,n-1,r-1);if(c)return c}n-=u,r-=u}}a(ch,"findDiffEnd");const pe=class pe{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,s){for(let o=0,l=0;l<n;o++){let u=this.content[o],c=l+u.nodeSize;if(c>e&&r(u,i+l,s||null,o)!==!1&&u.content.size){let d=l+1;u.nodesBetween(Math.max(0,e-d),Math.min(u.content.size,n-d),r,i+d)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let s="",o=!0;return this.nodesBetween(e,n,(l,u)=>{let c=l.isText?l.text.slice(Math.max(e,u)-u,n-u):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new pe(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let s=0,o=0;o<n;s++){let l=this.content[s],u=o+l.nodeSize;u>e&&((o<e||u>n)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,n-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,n-o-1))),r.push(l),i+=l.nodeSize),o=u}return new pe(r,i)}cutByIndex(e,n){return e==n?pe.empty:e==0&&n==this.content.length?this:new pe(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),s=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new pe(i,s)}addToStart(e){return new pe([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new pe(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return ah(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return ch(this,e,n,r)}findIndex(e){if(e==0)return Ki(0,e);if(e==this.size)return Ki(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=e)return s==e?Ki(n+1,s):Ki(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return pe.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new pe(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return pe.empty;let n,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(n||(n=e.slice(0,i)),n[n.length-1]=s.withText(n[n.length-1].text+s.text)):n&&n.push(s)}return new pe(n||e,r)}static from(e){if(!e)return pe.empty;if(e instanceof pe)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new pe([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};a(pe,"Fragment");let M=pe;M.empty=new M([],0);const ol={index:0,offset:0};function Ki(t,e){return ol.index=t,ol.offset=e,ol}a(Ki,"retIndex");function bs(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!bs(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!bs(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}a(bs,"compareDeep");var rn;let W=(rn=class{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))n||(n=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(s)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&bs(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return rn.none;if(e instanceof rn)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}},a(rn,"Mark"),rn);W.none=[];const Xa=class Xa extends Error{};a(Xa,"ReplaceError");let Ar=Xa;const Wt=class Wt{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=fh(this.content,e+this.openStart,n);return r&&new Wt(r,this.openStart,this.openEnd)}removeBetween(e,n){return new Wt(dh(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return Wt.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Wt(M.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)i++;return new Wt(e,r,i)}};a(Wt,"Slice");let T=Wt;T.empty=new T(M.empty,0,0);function dh(t,e,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r),{index:o,offset:l}=t.findIndex(n);if(i==e||s.isText){if(l!=n&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(r,s.copy(dh(s.content,e-i-1,n-i-1)))}a(dh,"removeRange");function fh(t,e,n,r){let{index:i,offset:s}=t.findIndex(e),o=t.maybeChild(i);if(s==e||o.isText)return r&&!r.canReplace(i,i,n)?null:t.cut(0,e).append(n).append(t.cut(e));let l=fh(o.content,e-s-1,n,o);return l&&t.replaceChild(i,o.copy(l))}a(fh,"insertInto");function e1(t,e,n){if(n.openStart>t.depth)throw new Ar("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Ar("Inconsistent open depths");return hh(t,e,n,0)}a(e1,"replace$1");function hh(t,e,n,r){let i=t.index(r),s=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let o=hh(t,e,n,r+1);return s.copy(s.content.replaceChild(i,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let o=t.parent,l=o.content;return Dn(o,l.cut(0,t.parentOffset).append(n.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=t1(n,t);return Dn(s,mh(t,o,l,e,r))}else return Dn(s,ys(t,e,r))}a(hh,"replaceOuter");function ph(t,e){if(!e.type.compatibleContent(t.type))throw new Ar("Cannot join "+e.type.name+" onto "+t.type.name)}a(ph,"checkJoin");function Kl(t,e,n){let r=t.node(n);return ph(r,e.node(n)),r}a(Kl,"joinable$1");function Tn(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}a(Tn,"addNode");function Xr(t,e,n,r){let i=(e||t).node(n),s=0,o=e?e.index(n):i.childCount;t&&(s=t.index(n),t.depth>n?s++:t.textOffset&&(Tn(t.nodeAfter,r),s++));for(let l=s;l<o;l++)Tn(i.child(l),r);e&&e.depth==n&&e.textOffset&&Tn(e.nodeBefore,r)}a(Xr,"addRange");function Dn(t,e){return t.type.checkContent(e),t.copy(e)}a(Dn,"close");function mh(t,e,n,r,i){let s=t.depth>i&&Kl(t,e,i+1),o=r.depth>i&&Kl(n,r,i+1),l=[];return Xr(null,t,i,l),s&&o&&e.index(i)==n.index(i)?(ph(s,o),Tn(Dn(s,mh(t,e,n,r,i+1)),l)):(s&&Tn(Dn(s,ys(t,e,i+1)),l),Xr(e,n,i,l),o&&Tn(Dn(o,ys(n,r,i+1)),l)),Xr(r,null,i,l),new M(l)}a(mh,"replaceThreeWay");function ys(t,e,n){let r=[];if(Xr(null,t,n,r),t.depth>n){let i=Kl(t,e,n+1);Tn(Dn(i,ys(t,e,n+1)),r)}return Xr(e,null,n,r),new M(r)}a(ys,"replaceTwoWay");function t1(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let s=n-1;s>=0;s--)i=e.node(s).copy(M.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}a(t1,"prepareSliceForReplace");const ci=class ci{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return W.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let l=r;r=i,i=l}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Tr(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,s=n;for(let o=e;;){let{index:l,offset:u}=o.content.findIndex(s),c=s-u;if(r.push(o,l,i+u),!c||(o=o.child(l),o.isText))break;s=c-1,i+=u+1}return new ci(n,r,s)}static resolveCached(e,n){let r=Pc.get(e);if(r)for(let s=0;s<r.elts.length;s++){let o=r.elts[s];if(o.pos==n)return o}else Pc.set(e,r=new Jl);let i=r.elts[r.i]=ci.resolve(e,n);return r.i=(r.i+1)%n1,i}};a(ci,"ResolvedPos");let ks=ci;const Qa=class Qa{constructor(){this.elts=[],this.i=0}};a(Qa,"ResolveCache");let Jl=Qa;const n1=12,Pc=new WeakMap,ec=class ec{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};a(ec,"NodeRange");let Tr=ec;const r1=Object.create(null);var sn;let Qt=(sn=class{constructor(e,n,r,i=W.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||M.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&bs(this.attrs,n||e.defaultAttrs||r1)&&W.sameSet(this.marks,r||W.none)}copy(e=null){return e==this.content?this:new sn(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new sn(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return T.empty;let i=this.resolve(e),s=this.resolve(n),o=r?0:i.sharedDepth(n),l=i.start(o),c=i.node(o).content.cut(i.pos-l,s.pos-l);return new T(c,i.depth-o,s.depth-o)}replace(e,n,r){return e1(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return ks.resolveCached(this,e)}resolveNoCache(e){return ks.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),gh(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=M.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let u=i;u<s;u++)if(!this.type.allowsMarks(r.child(u).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,n);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=W.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!W.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=M.fromJSON(e,n.content),s=e.nodeType(n.type).create(n.attrs,i,r);return s.type.checkAttrs(s.attrs),s}},a(sn,"Node"),sn);Qt.prototype.text=void 0;const di=class di extends Qt{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):gh(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new di(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new di(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};a(di,"TextNode");let Gl=di;function gh(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}a(gh,"wrapMarks");const Mo=class Mo{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new Yl(e,n);if(r.next==null)return Mo.empty;let i=bh(r);r.next&&r.err("Unexpected trailing text");let s=c1(a1(i));return d1(s,r),s}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let s=n;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function s(o,l){let u=o.matchFragment(e,r);if(u&&(!n||u.validEnd))return M.from(l.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:d,next:f}=o.next[c];if(!(d.isText||d.hasRequiredAttrs())&&i.indexOf(f)==-1){i.push(f);let h=s(f,l.concat(d));if(h)return h}}return null}return a(s,"search"),s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let l=i;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:l,next:u}=s.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!i.type||u.validEnd)&&(r.push({match:l.contentMatch,type:l,via:i}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return a(n,"scan"),n(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
|
|
1
|
+
var Fm=Object.defineProperty;var a=(t,e)=>Fm(t,"name",{value:e,configurable:!0});import{m as ih,p as sh,q as Pm,s as oh,u as lh,x as zm,y as Bm,z as uh,A as $m,B as Hm,D as Vm,V as jm,E as Wm,G as qm,P as $e,W as Pi,C as Um,h as Jn,o as se,b as zt,w as B,l as il,a as x,n as Y,H as U,I as sl,c as Ve,J as Gn,k as nt,f as xe,i as Km,t as Fc,r as Jm,e as Gm,g as Ym}from"./main-BIpS3Kki.js";import{F as Zm}from"./FieldComponent.vue_vue_type_script_lang-Ig4MpRH0.js";import{g as Xm}from"./_commonjsHelpers-BO6-jdEg.js";import{r as Qm}from"./NoSymbolIcon-NizHqgdb.js";function me(t){this.content=t}a(me,"OrderedMap");me.prototype={constructor:me,find:a(function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},"find"),get:a(function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},"get"),update:a(function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),s=r.content.slice();return i==-1?s.push(n||t,e):(s[i+1]=e,n&&(s[i]=n)),new me(s)},"update"),remove:a(function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new me(n)},"remove"),addToStart:a(function(t,e){return new me([t,e].concat(this.remove(t).content))},"addToStart"),addToEnd:a(function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new me(n)},"addToEnd"),addBefore:a(function(t,e,n){var r=this.remove(e),i=r.content.slice(),s=r.find(t);return i.splice(s==-1?i.length:s,0,e,n),new me(i)},"addBefore"),forEach:a(function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},"forEach"),prepend:a(function(t){return t=me.from(t),t.size?new me(t.content.concat(this.subtract(t).content)):this},"prepend"),append:a(function(t){return t=me.from(t),t.size?new me(this.subtract(t).content.concat(t.content)):this},"append"),subtract:a(function(t){var e=this;t=me.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},"subtract"),toObject:a(function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},"toObject"),get size(){return this.content.length>>1}};me.from=function(t){if(t instanceof me)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new me(e)};function ah(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),s=e.child(r);if(i==s){n+=i.nodeSize;continue}if(!i.sameMarkup(s))return n;if(i.isText&&i.text!=s.text){for(let o=0;i.text[o]==s.text[o];o++)n++;return n}if(i.content.size||s.content.size){let o=ah(i.content,s.content,n+1);if(o!=null)return o}n+=i.nodeSize}}a(ah,"findDiffStart");function ch(t,e,n,r){for(let i=t.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:n,b:r};let o=t.child(--i),l=e.child(--s),u=o.nodeSize;if(o==l){n-=u,r-=u;continue}if(!o.sameMarkup(l))return{a:n,b:r};if(o.isText&&o.text!=l.text){let c=0,d=Math.min(o.text.length,l.text.length);for(;c<d&&o.text[o.text.length-c-1]==l.text[l.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(o.content.size||l.content.size){let c=ch(o.content,l.content,n-1,r-1);if(c)return c}n-=u,r-=u}}a(ch,"findDiffEnd");const pe=class pe{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,s){for(let o=0,l=0;l<n;o++){let u=this.content[o],c=l+u.nodeSize;if(c>e&&r(u,i+l,s||null,o)!==!1&&u.content.size){let d=l+1;u.nodesBetween(Math.max(0,e-d),Math.min(u.content.size,n-d),r,i+d)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let s="",o=!0;return this.nodesBetween(e,n,(l,u)=>{let c=l.isText?l.text.slice(Math.max(e,u)-u,n-u):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new pe(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let s=0,o=0;o<n;s++){let l=this.content[s],u=o+l.nodeSize;u>e&&((o<e||u>n)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,n-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,n-o-1))),r.push(l),i+=l.nodeSize),o=u}return new pe(r,i)}cutByIndex(e,n){return e==n?pe.empty:e==0&&n==this.content.length?this:new pe(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),s=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new pe(i,s)}addToStart(e){return new pe([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new pe(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return ah(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return ch(this,e,n,r)}findIndex(e){if(e==0)return Ki(0,e);if(e==this.size)return Ki(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=e)return s==e?Ki(n+1,s):Ki(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return pe.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new pe(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return pe.empty;let n,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(n||(n=e.slice(0,i)),n[n.length-1]=s.withText(n[n.length-1].text+s.text)):n&&n.push(s)}return new pe(n||e,r)}static from(e){if(!e)return pe.empty;if(e instanceof pe)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new pe([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};a(pe,"Fragment");let M=pe;M.empty=new M([],0);const ol={index:0,offset:0};function Ki(t,e){return ol.index=t,ol.offset=e,ol}a(Ki,"retIndex");function bs(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!bs(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!bs(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}a(bs,"compareDeep");var rn;let W=(rn=class{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))n||(n=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(s)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&bs(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return rn.none;if(e instanceof rn)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}},a(rn,"Mark"),rn);W.none=[];const Xa=class Xa extends Error{};a(Xa,"ReplaceError");let Ar=Xa;const Wt=class Wt{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=fh(this.content,e+this.openStart,n);return r&&new Wt(r,this.openStart,this.openEnd)}removeBetween(e,n){return new Wt(dh(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return Wt.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Wt(M.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)i++;return new Wt(e,r,i)}};a(Wt,"Slice");let T=Wt;T.empty=new T(M.empty,0,0);function dh(t,e,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r),{index:o,offset:l}=t.findIndex(n);if(i==e||s.isText){if(l!=n&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(r,s.copy(dh(s.content,e-i-1,n-i-1)))}a(dh,"removeRange");function fh(t,e,n,r){let{index:i,offset:s}=t.findIndex(e),o=t.maybeChild(i);if(s==e||o.isText)return r&&!r.canReplace(i,i,n)?null:t.cut(0,e).append(n).append(t.cut(e));let l=fh(o.content,e-s-1,n,o);return l&&t.replaceChild(i,o.copy(l))}a(fh,"insertInto");function e1(t,e,n){if(n.openStart>t.depth)throw new Ar("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Ar("Inconsistent open depths");return hh(t,e,n,0)}a(e1,"replace$1");function hh(t,e,n,r){let i=t.index(r),s=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let o=hh(t,e,n,r+1);return s.copy(s.content.replaceChild(i,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let o=t.parent,l=o.content;return Dn(o,l.cut(0,t.parentOffset).append(n.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=t1(n,t);return Dn(s,mh(t,o,l,e,r))}else return Dn(s,ys(t,e,r))}a(hh,"replaceOuter");function ph(t,e){if(!e.type.compatibleContent(t.type))throw new Ar("Cannot join "+e.type.name+" onto "+t.type.name)}a(ph,"checkJoin");function Kl(t,e,n){let r=t.node(n);return ph(r,e.node(n)),r}a(Kl,"joinable$1");function Tn(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}a(Tn,"addNode");function Xr(t,e,n,r){let i=(e||t).node(n),s=0,o=e?e.index(n):i.childCount;t&&(s=t.index(n),t.depth>n?s++:t.textOffset&&(Tn(t.nodeAfter,r),s++));for(let l=s;l<o;l++)Tn(i.child(l),r);e&&e.depth==n&&e.textOffset&&Tn(e.nodeBefore,r)}a(Xr,"addRange");function Dn(t,e){return t.type.checkContent(e),t.copy(e)}a(Dn,"close");function mh(t,e,n,r,i){let s=t.depth>i&&Kl(t,e,i+1),o=r.depth>i&&Kl(n,r,i+1),l=[];return Xr(null,t,i,l),s&&o&&e.index(i)==n.index(i)?(ph(s,o),Tn(Dn(s,mh(t,e,n,r,i+1)),l)):(s&&Tn(Dn(s,ys(t,e,i+1)),l),Xr(e,n,i,l),o&&Tn(Dn(o,ys(n,r,i+1)),l)),Xr(r,null,i,l),new M(l)}a(mh,"replaceThreeWay");function ys(t,e,n){let r=[];if(Xr(null,t,n,r),t.depth>n){let i=Kl(t,e,n+1);Tn(Dn(i,ys(t,e,n+1)),r)}return Xr(e,null,n,r),new M(r)}a(ys,"replaceTwoWay");function t1(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let s=n-1;s>=0;s--)i=e.node(s).copy(M.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}a(t1,"prepareSliceForReplace");const ci=class ci{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return W.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let l=r;r=i,i=l}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Tr(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,s=n;for(let o=e;;){let{index:l,offset:u}=o.content.findIndex(s),c=s-u;if(r.push(o,l,i+u),!c||(o=o.child(l),o.isText))break;s=c-1,i+=u+1}return new ci(n,r,s)}static resolveCached(e,n){let r=Pc.get(e);if(r)for(let s=0;s<r.elts.length;s++){let o=r.elts[s];if(o.pos==n)return o}else Pc.set(e,r=new Jl);let i=r.elts[r.i]=ci.resolve(e,n);return r.i=(r.i+1)%n1,i}};a(ci,"ResolvedPos");let ks=ci;const Qa=class Qa{constructor(){this.elts=[],this.i=0}};a(Qa,"ResolveCache");let Jl=Qa;const n1=12,Pc=new WeakMap,ec=class ec{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};a(ec,"NodeRange");let Tr=ec;const r1=Object.create(null);var sn;let Qt=(sn=class{constructor(e,n,r,i=W.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||M.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&bs(this.attrs,n||e.defaultAttrs||r1)&&W.sameSet(this.marks,r||W.none)}copy(e=null){return e==this.content?this:new sn(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new sn(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return T.empty;let i=this.resolve(e),s=this.resolve(n),o=r?0:i.sharedDepth(n),l=i.start(o),c=i.node(o).content.cut(i.pos-l,s.pos-l);return new T(c,i.depth-o,s.depth-o)}replace(e,n,r){return e1(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return ks.resolveCached(this,e)}resolveNoCache(e){return ks.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),gh(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=M.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let u=i;u<s;u++)if(!this.type.allowsMarks(r.child(u).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,n);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=W.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!W.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=M.fromJSON(e,n.content),s=e.nodeType(n.type).create(n.attrs,i,r);return s.type.checkAttrs(s.attrs),s}},a(sn,"Node"),sn);Qt.prototype.text=void 0;const di=class di extends Qt{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):gh(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new di(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new di(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};a(di,"TextNode");let Gl=di;function gh(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}a(gh,"wrapMarks");const Mo=class Mo{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new Yl(e,n);if(r.next==null)return Mo.empty;let i=bh(r);r.next&&r.err("Unexpected trailing text");let s=c1(a1(i));return d1(s,r),s}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let s=n;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function s(o,l){let u=o.matchFragment(e,r);if(u&&(!n||u.validEnd))return M.from(l.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:d,next:f}=o.next[c];if(!(d.isText||d.hasRequiredAttrs())&&i.indexOf(f)==-1){i.push(f);let h=s(f,l.concat(d));if(h)return h}}return null}return a(s,"search"),s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let l=i;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:l,next:u}=s.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!i.type||u.validEnd)&&(r.push({match:l.contentMatch,type:l,via:i}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return a(n,"scan"),n(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
|
|
2
2
|
`)}};a(Mo,"ContentMatch");let $n=Mo;$n.empty=new $n(!0);const tc=class tc{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}};a(tc,"TokenStream");let Yl=tc;function bh(t){let e=[];do e.push(i1(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}a(bh,"parseExpr");function i1(t){let e=[];do e.push(s1(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}a(i1,"parseExprSeq");function s1(t){let e=u1(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=o1(t,e);else break;return e}a(s1,"parseExprSubscript");function zc(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}a(zc,"parseNum");function o1(t,e){let n=zc(t),r=n;return t.eat(",")&&(t.next!="}"?r=zc(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}a(o1,"parseExprRange");function l1(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let s in n){let o=n[s];o.isInGroup(e)&&i.push(o)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}a(l1,"resolveName");function u1(t){if(t.eat("(")){let e=bh(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=l1(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}a(u1,"parseExprAtom");function a1(t){let e=[[]];return i(s(t,0),n()),e;function n(){return e.push([])-1}a(n,"node");function r(o,l,u){let c={term:u,to:l};return e[o].push(c),c}a(r,"edge");function i(o,l){o.forEach(u=>u.to=l)}a(i,"connect");function s(o,l){if(o.type=="choice")return o.exprs.reduce((u,c)=>u.concat(s(c,l)),[]);if(o.type=="seq")for(let u=0;;u++){let c=s(o.exprs[u],l);if(u==o.exprs.length-1)return c;i(c,l=n())}else if(o.type=="star"){let u=n();return r(l,u),i(s(o.expr,u),u),[r(u)]}else if(o.type=="plus"){let u=n();return i(s(o.expr,l),u),i(s(o.expr,u),u),[r(u)]}else{if(o.type=="opt")return[r(l)].concat(s(o.expr,l));if(o.type=="range"){let u=l;for(let c=0;c<o.min;c++){let d=n();i(s(o.expr,u),d),u=d}if(o.max==-1)i(s(o.expr,u),u);else for(let c=o.min;c<o.max;c++){let d=n();r(u,d),i(s(o.expr,u),d),u=d}return[r(u)]}else{if(o.type=="name")return[r(l,void 0,o.value)];throw new Error("Unknown expr type")}}}a(s,"compile")}a(a1,"nfa");function yh(t,e){return e-t}a(yh,"cmp");function Bc(t,e){let n=[];return r(e),n.sort(yh);function r(i){let s=t[i];if(s.length==1&&!s[0].term)return r(s[0].to);n.push(i);for(let o=0;o<s.length;o++){let{term:l,to:u}=s[o];!l&&n.indexOf(u)==-1&&r(u)}}a(r,"scan")}a(Bc,"nullFrom");function c1(t){let e=Object.create(null);return n(Bc(t,0));function n(r){let i=[];r.forEach(o=>{t[o].forEach(({term:l,to:u})=>{if(!l)return;let c;for(let d=0;d<i.length;d++)i[d][0]==l&&(c=i[d][1]);Bc(t,u).forEach(d=>{c||i.push([l,c=[]]),c.indexOf(d)==-1&&c.push(d)})})});let s=e[r.join(",")]=new $n(r.indexOf(t.length-1)>-1);for(let o=0;o<i.length;o++){let l=i[o][1].sort(yh);s.next.push({type:i[o][0],next:e[l.join(",")]||n(l)})}return s}}a(c1,"dfa");function d1(t,e){for(let n=0,r=[t];n<r.length;n++){let i=r[n],s=!i.validEnd,o=[];for(let l=0;l<i.next.length;l++){let{type:u,next:c}=i.next[l];o.push(u.name),s&&!(u.isText||u.hasRequiredAttrs())&&(s=!1),r.indexOf(c)==-1&&r.push(c)}s&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}a(d1,"checkForDeadEnds");function kh(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}a(kh,"defaultAttrs");function xh(t,e){let n=Object.create(null);for(let r in t){let i=e&&e[r];if(i===void 0){let s=t[r];if(s.hasDefault)i=s.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}a(xh,"computeAttrs");function wh(t,e,n,r){for(let i in e)if(!(i in t))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${i}`);for(let i in t){let s=t[i];s.validate&&s.validate(e[i])}}a(wh,"checkAttrs");function Ch(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new Zl(t,r,e[r]);return n}a(Ch,"initAttrs");var _n;let $c=(_n=class{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Ch(e,r.attrs),this.defaultAttrs=kh(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==$n.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:xh(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Qt(this,this.computeAttrs(e),M.from(n),W.setFrom(r))}createChecked(e=null,n,r){return n=M.from(n),this.checkContent(n),new Qt(this,this.computeAttrs(e),n,W.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=M.from(n),n.size){let o=this.contentMatch.fillBefore(n);if(!o)return null;n=o.append(n)}let i=this.contentMatch.matchFragment(n),s=i&&i.fillBefore(M.empty,!0);return s?new Qt(this,e,n.append(s),W.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){wh(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:W.none:e}static compile(e,n){let r=Object.create(null);e.forEach((s,o)=>r[s]=new _n(s,n,o));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}},a(_n,"NodeType"),_n);function f1(t,e,n){let r=n.split("|");return i=>{let s=i===null?"null":typeof i;if(r.indexOf(s)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${s}`)}}a(f1,"validateType");const nc=class nc{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?f1(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}};a(nc,"Attribute");let Zl=nc;const Ao=class Ao{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=Ch(e,i.attrs),this.excluded=null;let s=kh(this.attrs);this.instance=s?new W(this,s):null}create(e=null){return!e&&this.instance?this.instance:new W(this,xh(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((s,o)=>r[s]=new Ao(s,i++,n,o)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){wh(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}};a(Ao,"MarkType");let xs=Ao;const rc=class rc{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=me.from(e.nodes),n.marks=me.from(e.marks||{}),this.nodes=$c.compile(this.spec.nodes,this),this.marks=xs.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let s=this.nodes[i],o=s.spec.content||"",l=s.spec.marks;if(s.contentMatch=r[o]||(r[o]=$n.parse(o,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=l=="_"?null:l?Hc(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let i in this.marks){let s=this.marks[i],o=s.spec.excludes;s.excluded=o==null?[s]:o==""?[]:Hc(this,o.split(" "))}this.nodeFromJSON=i=>Qt.fromJSON(this,i),this.markFromJSON=i=>W.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof $c){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new Gl(r,r.defaultAttrs,e,W.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}};a(rc,"Schema");let yi=rc;function Hc(t,e){let n=[];for(let r=0;r<e.length;r++){let i=e[r],s=t.marks[i],o=s;if(s)n.push(s);else for(let l in t.marks){let u=t.marks[l];(i=="_"||u.spec.group&&u.spec.group.split(" ").indexOf(i)>-1)&&n.push(o=u)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}a(Hc,"gatherMarks");function h1(t){return t.tag!=null}a(h1,"isTagRule");function p1(t){return t.style!=null}a(p1,"isStyleRule");const fi=class fi{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(h1(i))this.tags.push(i);else if(p1(i)){let s=/[^=]*/.exec(i.style)[0];r.indexOf(s)<0&&r.push(s),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let s=e.nodes[i.node];return s.contentMatch.matchType(s)})}parse(e,n={}){let r=new ws(this,n,!1);return r.addAll(e,W.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new ws(this,n,!0);return r.addAll(e,W.none,n.from,n.to),T.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let s=this.tags[i];if(b1(e,s.tag)&&(s.namespace===void 0||e.namespaceURI==s.namespace)&&(!s.context||n.matchesContext(s.context))){if(s.getAttrs){let o=s.getAttrs(e);if(o===!1)continue;s.attrs=o||void 0}return s}}}matchStyle(e,n,r,i){for(let s=i?this.styles.indexOf(i)+1:0;s<this.styles.length;s++){let o=this.styles[s],l=o.style;if(!(l.indexOf(e)!=0||o.context&&!r.matchesContext(o.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=n))){if(o.getAttrs){let u=o.getAttrs(n);if(u===!1)continue;o.attrs=u||void 0}return o}}}static schemaRules(e){let n=[];function r(i){let s=i.priority==null?50:i.priority,o=0;for(;o<n.length;o++){let l=n[o];if((l.priority==null?50:l.priority)<s)break}n.splice(o,0,i)}a(r,"insert");for(let i in e.marks){let s=e.marks[i].spec.parseDOM;s&&s.forEach(o=>{r(o=jc(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in e.nodes){let s=e.nodes[i].spec.parseDOM;s&&s.forEach(o=>{r(o=jc(o)),o.node||o.ignore||o.mark||(o.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new fi(e,fi.schemaRules(e)))}};a(fi,"DOMParser");let en=fi;const vh={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},m1={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Sh={ol:!0,ul:!0},ki=1,Xl=2,Qr=4;function Vc(t,e,n){return e!=null?(e?ki:0)|(e==="full"?Xl:0):t&&t.whitespace=="pre"?ki|Xl:n&~Qr}a(Vc,"wsOptionsFor");const ic=class ic{constructor(e,n,r,i,s,o){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=o,this.content=[],this.activeMarks=W.none,this.match=s||(o&Qr?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(M.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&ki)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-i[0].length))}}let n=M.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(M.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!vh.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}};a(ic,"NodeContext");let nr=ic;const sc=class sc{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,s,o=Vc(null,n.preserveWhitespace,0)|(r?Qr:0);i?s=new nr(i.type,i.attrs,W.none,!0,n.topMatch||i.type.contentMatch,o):r?s=new nr(null,null,W.none,!0,null,o):s=new nr(e.schema.topNodeType,null,W.none,!0,null,o),this.nodes=[s],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top,s=i.options&Xl?"full":this.localPreserveWS||(i.options&ki)>0,{schema:o}=this.parser;if(s==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(s)if(s==="full")r=r.replace(/\r\n?/g,`
|
|
3
3
|
`);else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let l=r.split(/\r?\n|\r/);for(let u=0;u<l.length;u++)u&&this.insertNode(o.linebreakReplacement.create(),n,!0),l[u]&&this.insertNode(o.text(l[u]),n,!/\S/.test(l[u]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let l=i.content[i.content.length-1],u=e.previousSibling;(!l||u&&u.nodeName=="BR"||l.isText&&/[ \t\r\n\u000c]$/.test(l.text))&&(r=r.slice(1))}r&&this.insertNode(o.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=this.localPreserveWS,s=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),l;Sh.hasOwnProperty(o)&&this.parser.normalizeLists&&g1(e);let u=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(l=this.parser.matchTag(e,this,r));e:if(u?u.ignore:m1.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,n);else if(!u||u.skip||u.closeParent){u&&u.closeParent?this.open=Math.max(0,this.open-1):u&&u.skip.nodeType&&(e=u.skip);let c,d=this.needsBlock;if(vh.hasOwnProperty(o))s.content.length&&s.content[0].isInline&&this.open&&(this.open--,s=this.top),c=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let f=u&&u.skip?n:this.readStyles(e,n);f&&this.addAll(e,f),c&&this.sync(s),this.needsBlock=d}else{let c=this.readStyles(e,n);c&&this.addElementByRule(e,u,c,u.consuming===!1?l:void 0)}this.localPreserveWS=i}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
4
4
|
`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let s=this.parser.matchedStyles[i],o=r.getPropertyValue(s);if(o)for(let l=void 0;;){let u=this.parser.matchStyle(s,o,this,l);if(!u)break;if(u.ignore)return null;if(u.clearMark?n=n.filter(c=>!u.clearMark(c)):n=n.concat(this.parser.schema.marks[u.mark].create(u.attrs)),u.consuming===!1)l=u;else break}}return n}addElementByRule(e,n,r,i){let s,o;if(n.node)if(o=this.parser.schema.nodes[n.node],o.isLeaf)this.insertNode(o.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let u=this.enter(o,n.attrs||null,r,n.preserveWhitespace);u&&(s=!0,r=u)}else{let u=this.parser.schema.marks[n.mark];r=r.concat(u.create(n.attrs))}let l=this.top;if(o&&o.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(u=>this.insertNode(u,r,!1));else{let u=e;typeof n.contentElement=="string"?u=e.querySelector(n.contentElement):typeof n.contentElement=="function"?u=n.contentElement(e):n.contentElement&&(u=n.contentElement),this.findAround(e,u,!0),this.addAll(u,r),this.findAround(e,u,!1)}s&&this.sync(l)&&this.open--}addAll(e,n,r,i){let s=r||0;for(let o=r?e.childNodes[r]:e.firstChild,l=i==null?null:e.childNodes[i];o!=l;o=o.nextSibling,++s)this.findAtPoint(e,s),this.addDOM(o,n);this.findAtPoint(e,s)}findPlace(e,n,r){let i,s;for(let o=this.open,l=0;o>=0;o--){let u=this.nodes[o],c=u.findWrapping(e);if(c&&(!i||i.length>c.length+l)&&(i=c,s=u,!c.length))break;if(u.solid){if(r)break;l+=2}}if(!i)return null;this.sync(s);for(let o=0;o<i.length;o++)n=this.enterInner(i[o],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let s=this.textblockFromContext();s&&(n=this.enterInner(s,null,n))}let i=this.findPlace(e,n,r);if(i){this.closeExtra();let s=this.top;s.match&&(s.match=s.match.matchType(e.type));let o=W.none;for(let l of i.concat(e.marks))(s.type?s.type.allowsMarkType(l.type):Wc(l.type,e.type))&&(o=l.addToSet(o));return s.content.push(e.mark(o)),!0}return!1}enter(e,n,r,i){let s=this.findPlace(e.create(n),r,!1);return s&&(s=this.enterInner(e,n,r,!0,i)),s}enterInner(e,n,r,i=!1,s){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let l=Vc(e,s,o.options);o.options&Qr&&o.content.length==0&&(l|=Qr);let u=W.none;return r=r.filter(c=>(o.type?o.type.allowsMarkType(c.type):Wc(c.type,e))?(u=c.addToSet(u),!1):!0),this.nodes.push(new nr(e,n,u,i,null,l)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=ki)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(i?0:1),o=a((l,u)=>{for(;l>=0;l--){let c=n[l];if(c==""){if(l==n.length-1||l==0)continue;for(;u>=s;u--)if(o(l-1,u))return!0;return!1}else{let d=u>0||u==0&&i?this.nodes[u].type:r&&u>=s?r.node(u-s).type:null;if(!d||d.name!=c&&!d.isInGroup(c))return!1;u--}}return!0},"match");return o(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}};a(sc,"ParseContext");let ws=sc;function g1(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Sh.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}a(g1,"normalizeList");function b1(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}a(b1,"matches");function jc(t){let e={};for(let n in t)e[n]=t[n];return e}a(jc,"copy");function Wc(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let s=[],o=a(l=>{s.push(l);for(let u=0;u<l.edgeCount;u++){let{type:c,next:d}=l.edge(u);if(c==e||s.indexOf(d)<0&&o(d))return!0}},"scan");if(o(i.contentMatch))return!0}}a(Wc,"markMayApply");const To=class To{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=ll(n).createDocumentFragment());let i=r,s=[];return e.forEach(o=>{if(s.length||o.marks.length){let l=0,u=0;for(;l<s.length&&u<o.marks.length;){let c=o.marks[u];if(!this.marks[c.type.name]){u++;continue}if(!c.eq(s[l][0])||c.type.spec.spanning===!1)break;l++,u++}for(;l<s.length;)i=s.pop()[1];for(;u<o.marks.length;){let c=o.marks[u++],d=this.serializeMark(c,o.isInline,n);d&&(s.push([c,i]),i.appendChild(d.dom),i=d.contentDOM||d.dom)}}i.appendChild(this.serializeNodeInner(o,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:i}=ds(ll(n),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,i)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let i=e.marks.length-1;i>=0;i--){let s=this.serializeMark(e.marks[i],e.isInline,n);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&ds(ll(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return ds(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new To(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=qc(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return qc(e.marks)}};a(To,"DOMSerializer");let Hn=To;function qc(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}a(qc,"gatherToDOM");function ll(t){return t.document||window.document}a(ll,"doc$1");const Uc=new WeakMap;function y1(t){let e=Uc.get(t);return e===void 0&&Uc.set(t,e=k1(t)),e}a(y1,"suspiciousAttributes");function k1(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return a(n,"scan"),n(t),e}a(k1,"suspiciousAttributesInner");function ds(t,e,n,r){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let i=e[0],s;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(s=y1(r))&&s.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=i.indexOf(" ");o>0&&(n=i.slice(0,o),i=i.slice(o+1));let l,u=n?t.createElementNS(n,i):t.createElement(i),c=e[1],d=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){d=2;for(let f in c)if(c[f]!=null){let h=f.indexOf(" ");h>0?u.setAttributeNS(f.slice(0,h),f.slice(h+1),c[f]):f=="style"&&u.style?u.style.cssText=c[f]:u.setAttribute(f,c[f])}}for(let f=d;f<e.length;f++){let h=e[f];if(h===0){if(f<e.length-1||f>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}else{let{dom:p,contentDOM:m}=ds(t,h,n,r);if(u.appendChild(p),m){if(l)throw new RangeError("Multiple content holes");l=m}}}return{dom:u,contentDOM:l}}a(ds,"renderSpec");const Eh=65535,Mh=Math.pow(2,16);function x1(t,e){return t+e*Mh}a(x1,"makeRecover");function Kc(t){return t&Eh}a(Kc,"recoverIndex");function w1(t){return(t-(t&Eh))/Mh}a(w1,"recoverOffset");const Ah=1,Th=2,fs=4,Dh=8,oc=class oc{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&Dh)>0}get deletedBefore(){return(this.delInfo&(Ah|fs))>0}get deletedAfter(){return(this.delInfo&(Th|fs))>0}get deletedAcross(){return(this.delInfo&fs)>0}};a(oc,"MapResult");let xi=oc;const qt=class qt{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&qt.empty)return qt.empty}recover(e){let n=0,r=Kc(e);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+w1(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let i=0,s=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let u=this.ranges[l]-(this.inverted?i:0);if(u>e)break;let c=this.ranges[l+s],d=this.ranges[l+o],f=u+c;if(e<=f){let h=c?e==u?-1:e==f?1:n:n,p=u+i+(h<0?0:d);if(r)return p;let m=e==(n<0?u:f)?null:x1(l/3,e-u),g=e==u?Th:e==f?Ah:fs;return(n<0?e!=u:e!=f)&&(g|=Dh),new xi(p,g,m)}i+=d-c}return r?e+i:new xi(e+i,0,null)}touches(e,n){let r=0,i=Kc(n),s=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let u=this.ranges[l]-(this.inverted?r:0);if(u>e)break;let c=this.ranges[l+s],d=u+c;if(e<=d&&l==i*3)return!0;r+=this.ranges[l+o]-c}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,s=0;i<this.ranges.length;i+=3){let o=this.ranges[i],l=o-(this.inverted?s:0),u=o+(this.inverted?0:s),c=this.ranges[i+n],d=this.ranges[i+r];e(l,l+c,u,u+d),s+=d-c}}invert(){return new qt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?qt.empty:new qt(e<0?[0,-e,0]:[0,0,e])}};a(qt,"StepMap");let Rt=qt;Rt.empty=new Rt([]);const hi=class hi{constructor(e,n,r=0,i=e?e.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new hi(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,r=this._maps.length;n<e._maps.length;n++){let i=e.getMirror(n);this.appendMap(e._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this._maps.length+e._maps.length;n>=0;n--){let i=e.getMirror(n);this.appendMap(e._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new hi;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let i=0;for(let s=this.from;s<this.to;s++){let o=this._maps[s],l=o.mapResult(e,n);if(l.recover!=null){let u=this.getMirror(s);if(u!=null&&u>s&&u<this.to){s=u,e=this._maps[u].recover(l.recover);continue}}i|=l.delInfo,e=l.pos}return r?e:new xi(e,i,null)}};a(hi,"Mapping");let Cs=hi;const ul=Object.create(null),lc=class lc{getMap(){return Rt.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=ul[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in ul)throw new RangeError("Duplicate use of step JSON ID "+e);return ul[e]=n,n.prototype.jsonID=e,n}};a(lc,"Step");let he=lc;const gn=class gn{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new gn(e,null)}static fail(e){return new gn(null,e)}static fromReplace(e,n,r,i){try{return gn.ok(e.replace(n,r,i))}catch(s){if(s instanceof Ar)return gn.fail(s.message);throw s}}};a(gn,"StepResult");let ye=gn;function ea(t,e,n){let r=[];for(let i=0;i<t.childCount;i++){let s=t.child(i);s.content.size&&(s=s.copy(ea(s.content,e,s))),s.isInline&&(s=e(s,n,i)),r.push(s)}return M.fromArray(r)}a(ea,"mapFragment");const bn=class bn extends he{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),s=new T(ea(n.content,(o,l)=>!o.isAtom||!l.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),n.openStart,n.openEnd);return ye.fromReplace(e,this.from,this.to,s)}invert(){return new on(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new bn(n.pos,r.pos,this.mark)}merge(e){return e instanceof bn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new bn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new bn(n.from,n.to,e.markFromJSON(n.mark))}};a(bn,"AddMarkStep");let wi=bn;he.jsonID("addMark",wi);const yn=class yn extends he{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new T(ea(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return ye.fromReplace(e,this.from,this.to,r)}invert(){return new wi(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new yn(n.pos,r.pos,this.mark)}merge(e){return e instanceof yn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new yn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new yn(n.from,n.to,e.markFromJSON(n.mark))}};a(yn,"RemoveMarkStep");let on=yn;he.jsonID("removeMark",on);const kn=class kn extends he{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ye.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ye.fromReplace(e,this.pos,this.pos+1,new T(M.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new kn(this.pos,n.marks[i]);return new kn(this.pos,this.mark)}}return new Dr(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new kn(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new kn(n.pos,e.markFromJSON(n.mark))}};a(kn,"AddNodeMarkStep");let Ci=kn;he.jsonID("addNodeMark",Ci);const pi=class pi extends he{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ye.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ye.fromReplace(e,this.pos,this.pos+1,new T(M.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Ci(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new pi(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new pi(n.pos,e.markFromJSON(n.mark))}};a(pi,"RemoveNodeMarkStep");let Dr=pi;he.jsonID("removeNodeMark",Dr);const ot=class ot extends he{constructor(e,n,r,i=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=i}apply(e){return this.structure&&Ql(e,this.from,this.to)?ye.fail("Structure replace would overwrite content"):ye.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Rt([this.from,this.to-this.from,this.slice.size])}invert(e){return new ot(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.to,-1),r=this.from==this.to&&ot.MAP_BIAS<0?n:e.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new ot(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof ot)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?T.empty:new T(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new ot(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?T.empty:new T(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new ot(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new ot(n.from,n.to,T.fromJSON(e,n.slice),!!n.structure)}};a(ot,"ReplaceStep");let Ie=ot;Ie.MAP_BIAS=1;he.jsonID("replace",Ie);const rr=class rr extends he{constructor(e,n,r,i,s,o,l=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=s,this.insert=o,this.structure=l}apply(e){if(this.structure&&(Ql(e,this.from,this.gapFrom)||Ql(e,this.gapTo,this.to)))return ye.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ye.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?ye.fromReplace(e,this.from,this.to,r):ye.fail("Content does not fit in gap")}getMap(){return new Rt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new rr(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),s=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||s>r.pos?null:new rr(n.pos,r.pos,i,s,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new rr(n.from,n.to,n.gapFrom,n.gapTo,T.fromJSON(e,n.slice),n.insert,!!n.structure)}};a(rr,"ReplaceAroundStep");let Ce=rr;he.jsonID("replaceAround",Ce);function Ql(t,e,n){let r=t.resolve(e),i=n-e,s=r.depth;for(;i>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,i--;if(i>0){let o=r.node(s).maybeChild(r.indexAfter(s));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}a(Ql,"contentBetween");function C1(t,e,n,r){let i=[],s=[],o,l;t.doc.nodesBetween(e,n,(u,c,d)=>{if(!u.isInline)return;let f=u.marks;if(!r.isInSet(f)&&d.type.allowsMarkType(r.type)){let h=Math.max(c,e),p=Math.min(c+u.nodeSize,n),m=r.addToSet(f);for(let g=0;g<f.length;g++)f[g].isInSet(m)||(o&&o.to==h&&o.mark.eq(f[g])?o.to=p:i.push(o=new on(h,p,f[g])));l&&l.to==h?l.to=p:s.push(l=new wi(h,p,r))}}),i.forEach(u=>t.step(u)),s.forEach(u=>t.step(u))}a(C1,"addMark");function v1(t,e,n,r){let i=[],s=0;t.doc.nodesBetween(e,n,(o,l)=>{if(!o.isInline)return;s++;let u=null;if(r instanceof xs){let c=o.marks,d;for(;d=r.isInSet(c);)(u||(u=[])).push(d),c=d.removeFromSet(c)}else r?r.isInSet(o.marks)&&(u=[r]):u=o.marks;if(u&&u.length){let c=Math.min(l+o.nodeSize,n);for(let d=0;d<u.length;d++){let f=u[d],h;for(let p=0;p<i.length;p++){let m=i[p];m.step==s-1&&f.eq(i[p].style)&&(h=m)}h?(h.to=c,h.step=s):i.push({style:f,from:Math.max(l,e),to:c,step:s})}}}),i.forEach(o=>t.step(new on(o.from,o.to,o.style)))}a(v1,"removeMark");function ta(t,e,n,r=n.contentMatch,i=!0){let s=t.doc.nodeAt(e),o=[],l=e+1;for(let u=0;u<s.childCount;u++){let c=s.child(u),d=l+c.nodeSize,f=r.matchType(c.type);if(!f)o.push(new Ie(l,d,T.empty));else{r=f;for(let h=0;h<c.marks.length;h++)n.allowsMarkType(c.marks[h].type)||t.step(new on(l,d,c.marks[h]));if(i&&c.isText&&n.whitespace!="pre"){let h,p=/\r?\n|\r/g,m;for(;h=p.exec(c.text);)m||(m=new T(M.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),o.push(new Ie(l+h.index,l+h.index+h[0].length,m))}}l=d}if(!r.validEnd){let u=r.fillBefore(M.empty,!0);t.replace(l,l,new T(u,0,0))}for(let u=o.length-1;u>=0;u--)t.step(o[u])}a(ta,"clearIncompatible");function S1(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}a(S1,"canCut");function Vr(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,i=0,s=0;;--r){let o=t.$from.node(r),l=t.$from.index(r)+i,u=t.$to.indexAfter(r)-s;if(r<t.depth&&o.canReplace(l,u,n))return r;if(r==0||o.type.spec.isolating||!S1(o,l,u))break;l&&(i=1),u<o.childCount&&(s=1)}return null}a(Vr,"liftTarget");function E1(t,e,n){let{$from:r,$to:i,depth:s}=e,o=r.before(s+1),l=i.after(s+1),u=o,c=l,d=M.empty,f=0;for(let m=s,g=!1;m>n;m--)g||r.index(m)>0?(g=!0,d=M.from(r.node(m).copy(d)),f++):u--;let h=M.empty,p=0;for(let m=s,g=!1;m>n;m--)g||i.after(m+1)<i.end(m)?(g=!0,h=M.from(i.node(m).copy(h)),p++):c++;t.step(new Ce(u,c,o,l,new T(d.append(h),f,p),d.size-f,!0))}a(E1,"lift$2");function na(t,e,n=null,r=t){let i=M1(t,e),s=i&&A1(r,e);return s?i.map(Jc).concat({type:e,attrs:n}).concat(s.map(Jc)):null}a(na,"findWrapping");function Jc(t){return{type:t,attrs:null}}a(Jc,"withAttrs");function M1(t,e){let{parent:n,startIndex:r,endIndex:i}=t,s=n.contentMatchAt(r).findWrapping(e);if(!s)return null;let o=s.length?s[0]:e;return n.canReplaceWith(r,i,o)?s:null}a(M1,"findWrappingOutside");function A1(t,e){let{parent:n,startIndex:r,endIndex:i}=t,s=n.child(r),o=e.contentMatch.findWrapping(s.type);if(!o)return null;let u=(o.length?o[o.length-1]:e).contentMatch;for(let c=r;u&&c<i;c++)u=u.matchType(n.child(c).type);return!u||!u.validEnd?null:o}a(A1,"findWrappingInside");function T1(t,e,n){let r=M.empty;for(let o=n.length-1;o>=0;o--){if(r.size){let l=n[o].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=M.from(n[o].type.create(n[o].attrs,r))}let i=e.start,s=e.end;t.step(new Ce(i,s,i,s,new T(r,0,0),n.length,!0))}a(T1,"wrap");function D1(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=t.steps.length;t.doc.nodesBetween(e,n,(o,l)=>{let u=typeof i=="function"?i(o):i;if(o.isTextblock&&!o.hasMarkup(r,u)&&O1(t.doc,t.mapping.slice(s).map(l),r)){let c=null;if(r.schema.linebreakReplacement){let p=r.whitespace=="pre",m=!!r.contentMatch.matchType(r.schema.linebreakReplacement);p&&!m?c=!1:!p&&m&&(c=!0)}c===!1&&Nh(t,o,l,s),ta(t,t.mapping.slice(s).map(l,1),r,void 0,c===null);let d=t.mapping.slice(s),f=d.map(l,1),h=d.map(l+o.nodeSize,1);return t.step(new Ce(f,h,f+1,h-1,new T(M.from(r.create(u,null,o.marks)),0,0),1,!0)),c===!0&&Oh(t,o,l,s),!1}})}a(D1,"setBlockType$1");function Oh(t,e,n,r){e.forEach((i,s)=>{if(i.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(i.text);){let u=t.mapping.slice(r).map(n+1+s+o.index);t.replaceWith(u,u+1,e.type.schema.linebreakReplacement.create())}}})}a(Oh,"replaceNewlines");function Nh(t,e,n,r){e.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let o=t.mapping.slice(r).map(n+1+s);t.replaceWith(o,o+1,e.type.schema.text(`
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/CodeHighlight-DFeMy3ki.js","static/main-BIpS3Kki.js","static/main-C4Jwq3vK.css","static/CodeHighlight-CGrGqjhz.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{d as e,_ as o}from"./main-BIpS3Kki.js";const _=e(()=>o(()=>import("./CodeHighlight-DFeMy3ki.js"),__vite__mapDeps([0,1,2,3])));export{_ as default};
|