oga-ui 0.1.13 → 0.1.14

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.

Potentially problematic release.


This version of oga-ui might be problematic. Click here for more details.

package/index.umd.ts CHANGED
@@ -1,5 +1,81 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t(require(`vue`)):typeof define==`function`&&define.amd?define([`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,e.index=t(e.Vue))})(this,function(e){var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e};e=((e,r,i)=>(i=e==null?{}:t(a(e)),s(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)))(e);var c={expression:{Required:/[\S]/,Email:/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/,Int:/(-)?(\d+)$/,IntPositive:/^\+?[0-9]\d*$/,IntZeroPositive:/^\+?[1-9]\d*$/,Float:/(-)?(\d+)(((\.)(\d)+))?/,FloatPositive:/^([0-9]\d*(.\d+)*|0\.(?=\d*[1-9]\d*)\d+)$/,FloatZeroPositive:/^([1-9]\d*(.\d+)*|0\.(?=\d*[1-9]\d*)\d+)$/,Chinese:/[\u4e00-\u9fa5]/,English:/[a-zA-Z]/,Mobile:/^[1]([3-9])[0-9]{9}$/,Password:/^[A-Za-z][A-Za-z0-9~!@#$%^&*]{5,19}$/,IdentityCard:/[\d]{6}(19|20)*[\d]{2}((0[1-9])|(11|12))([012][\d]|(30|31))[\d]{3}[xX\d]*/,EngAndNum:/[a-zA-Z0-9]*/,EngNumUnderline:/[a-zA-Z0-9_]*/,PhoneNumber:/(86)?(-)?(0\d{2,3})?(-)?(\d{7,8})(-)?(\d{1,5})?/,PostalCode:/\d{6}/,Account:/^[A-Za-z0-9@.]{8,19}$/,URL:/^[0-9a-zA-Z_]{1,}$/,Domain:/^(?=^.{3,255}$)[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$/},getLanguage(){let e=localStorage.getItem(`foUILanguage`);return e||=navigator.language,e!=null&&(e=`en|zh-CN`.indexOf(e)>-1?e:`en`),localStorage.setItem(`foUILanguage`,e),e},isEmpty(e){return!(e!=null&&/[\S]/.test(e))},isNotEmpty(e){return!this.isEmpty(e)}},l=(0,e.defineComponent)({__name:`index`,props:{modelValue:{type:String,default:``},placeholder:{type:String,default:``},size:{type:String,default:``},label:{type:String,default:``},borderless:{type:Boolean,default:!1},shrink:{type:Boolean,default:!0},errorTips:{type:Boolean,default:!0}},setup(t){let n=``,r=(0,e.ref)(!1),i=t,a=(0,e.useAttrs)();return a={...a,...i},n=i.modelValue,r.value=c.isEmpty(n),(0,e.onMounted)(()=>{r.value=c.isEmpty(i.modelValue)}),(0,e.watch)(()=>i.modelValue,(e,t)=>{r.value=c.isEmpty(e),e!==t&&(n=i.modelValue)}),(i,o)=>{let s=(0,e.resolveComponent)(`el-input`);return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`el-input-material`,`${t.borderless?`borderless`:``}${t.errorTips?``:` no-tips`}`])},[t.borderless?(0,e.createCommentVNode)(`v-if`,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`label`,{key:0,class:(0,e.normalizeClass)([`el-input-material-label`,t.shrink||r.value?`active`:``])},(0,e.toDisplayString)(t.label),3)),(0,e.createVNode)(s,(0,e.mergeProps)((0,e.unref)(a),{modelValue:(0,e.unref)(n),"onUpdate:modelValue":o[0]||=t=>(0,e.isRef)(n)?n.value=t:n=t,placeholder:t.shrink?t.placeholder||``:t.label}),(0,e.createSlots)({_:2},[(0,e.useSlots)().append?{name:`append`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(i.$slots,`append`,{},void 0,!0)]),key:`0`}:void 0,(0,e.useSlots)().prepend?{name:`prepend`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(i.$slots,`prepend`,{},void 0,!0)]),key:`1`}:void 0,(0,e.useSlots)().default?{name:`prepend`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(i.$slots,`default`,{},void 0,!0)]),key:`2`}:void 0,(0,e.useSlots)().suffix?{name:`suffix`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(i.$slots,`suffix`,{},void 0,!0)]),key:`3`}:void 0,(0,e.useSlots)().suffix?{name:`suffix`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(i.$slots,`suffix`,{},void 0,!0)]),key:`4`}:void 0]),1040,[`modelValue`,`placeholder`])],2)}}}),u=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},d=u(l,[[`__scopeId`,`data-v-8d32a589`]]),f={install(e){e.component(`OgaInput`,d)}},p={key:0},m={key:1,class:`oga-section-action`},h={key:2,class:`oga-section-description`},g={key:3,class:`oga-section-content`},_=(0,e.defineComponent)({__name:`index`,props:{heading:{type:String,default:``},description:{type:String,default:``},borderRadius:{type:Number,default:0}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`fieldset`,{class:(0,e.normalizeClass)([`oga-section`,t.description?`has-description`:``]),style:(0,e.normalizeStyle)(t.borderRadius>0?`border-radius: ${t.borderRadius}px`:``)},[t.heading?((0,e.openBlock)(),(0,e.createElementBlock)(`legend`,p,(0,e.toDisplayString)(t.heading),1)):(0,e.createCommentVNode)(`v-if`,!0),n.$slots.header?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,m,[(0,e.renderSlot)(n.$slots,`header`)])):(0,e.createCommentVNode)(`v-if`,!0),t.description?((0,e.openBlock)(),(0,e.createElementBlock)(`p`,h,(0,e.toDisplayString)(t.description),1)):(0,e.createCommentVNode)(`v-if`,!0),n.$slots.default?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,g,[(0,e.renderSlot)(n.$slots,`default`)])):(0,e.createCommentVNode)(`v-if`,!0)],6))}}),v={install(e){e.component(`OgaSection`,_)}},y={class:`oga-layout`},b={class:`oga-layout-aside-content`},x=(0,e.defineComponent)({__name:`index`,props:{isRouterView:{type:Boolean,default:()=>!0},copyright:{type:String,default:()=>``},asideCss:{type:String,default:()=>``},asideTop:{type:Number,default:()=>0},asideBottom:{type:Number,default:()=>0},asideWidth:{type:Number,default:()=>200},foldIcon:{type:String,default:()=>`el-icon-s-fold`},foldIconHeight:{type:Number,default:()=>60},maskBackground:{type:String,default:()=>``},footerIndent:{type:Number,default:()=>200}},setup(t){let n=(0,e.ref)(new Date().getFullYear()),r=(0,e.ref)({}),i=(0,e.ref)(``),a=(0,e.ref)(``),o=(0,e.ref)(``),s=(0,e.ref)(``),l=(0,e.ref)({}),u=(0,e.useSlots)(),d=(0,e.ref)(!1),f=t,p={};return f.asideTop>0&&(p.top=`${f.asideTop}px`),(f.asideBottom>0||f.asideTop>0)&&(p.height=`calc(100% - ${f.asideTop+f.asideBottom}px)`),r.value={"--asideWidth":f.asideWidth,...p},l.value={"--asideWidth":f.asideWidth},i.value=c.isEmpty(f.maskBackground)?``:`background-color: ${f.maskBackground}`,a.value=f.foldIconHeight!==60&&f.foldIconHeight>0?`width: ${f.foldIconHeight}px;height:${f.foldIconHeight}px`:``,o.value=f.foldIconHeight!==60&&f.foldIconHeight>0?`font-size: ${f.foldIconHeight/2}px`:``,s.value=f.footerIndent>0&&f.footerIndent!==200?`text-indent:${f.footerIndent}px`:``,(a,o)=>{let c=(0,e.resolveComponent)(`router-view`);return(0,e.openBlock)(),(0,e.createElementBlock)(`section`,y,[(0,e.unref)(u).aside?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,style:(0,e.normalizeStyle)((0,e.unref)(r)),class:(0,e.normalizeClass)([`oga-layout-aside`,`${d.value?`active `:``}${t.asideCss}`])},[(0,e.createElementVNode)(`div`,b,[(0,e.renderSlot)(a.$slots,`aside`)])],6)):(0,e.createCommentVNode)(`v-if`,!0),a.$slots.header?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:`oga-header`,style:(0,e.normalizeStyle)((0,e.unref)(l))},[(0,e.renderSlot)(a.$slots,`header`)],4)):(0,e.createCommentVNode)(`v-if`,!0),t.isRouterView?((0,e.openBlock)(),(0,e.createBlock)(c,{key:2})):(0,e.createCommentVNode)(`v-if`,!0),(0,e.renderSlot)(a.$slots,`default`),a.$slots.footer?(0,e.renderSlot)(a.$slots,`footer`,{key:3}):(0,e.createCommentVNode)(`v-if`,!0),t.copyright?((0,e.openBlock)(),(0,e.createElementBlock)(`footer`,{key:4,class:`oga-layout-footer`,style:(0,e.normalizeStyle)((0,e.unref)(s))},`© `+(0,e.toDisplayString)(n.value)+` `+(0,e.toDisplayString)(t.copyright),5)):(0,e.createCommentVNode)(`v-if`,!0),(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)([`oga-layout-mask`,d.value?`active`:``]),style:(0,e.normalizeStyle)(`width: calc(100% - ${(0,e.unref)(l)}px);${(0,e.unref)(i)}`),onClick:o[0]||=e=>d.value=!1},null,6)])}}}),S={install(e){e.component(`OgaLayout`,x)}},C={key:0,class:`oga-page-header`},w={key:2,ref:`refLayoutPage`,class:`oga-page`},ee={key:3,class:`oga-page-footer`},te=(0,e.defineComponent)({__name:`index`,props:{offset:{type:Number,default:()=>220},contentWidth:{type:Number,default:()=>90},fullscreen:{type:Boolean,default:()=>!1},loading:{type:Boolean,default:()=>!1},padding:{type:Boolean,default:()=>!0},loadingText:{type:String,default:()=>`i18n.t('pageAborted.loading')`},loadingBackgroundColor:String,googleStyle:{type:Boolean,default:()=>!1},percentage:{type:Number,default:()=>0}},setup(t){let n=(0,e.ref)({}),r=t;return n.value={"--offset":r.offset},(i,a)=>((0,e.openBlock)(),(0,e.createElementBlock)(`section`,{class:`oga-layout-main`,style:(0,e.normalizeStyle)((0,e.unref)(n))},[i.$slots.header?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,C,[(0,e.renderSlot)(i.$slots,`header`)])):(0,e.createCommentVNode)(`v-if`,!0),t.googleStyle?((0,e.openBlock)(),(0,e.createElementBlock)(`section`,{key:1,ref:`refLayoutPage`,class:(0,e.normalizeClass)([`oga-page oga-google-style`,r.percentage>0?`percent-${t.percentage}`:``]),style:(0,e.normalizeStyle)((0,e.unref)(n))},[(0,e.createElementVNode)(`section`,{class:(0,e.normalizeClass)([`oga-page-content`,t.padding?`has-padding`:``])},[(0,e.renderSlot)(i.$slots,`default`)],2)],6)):((0,e.openBlock)(),(0,e.createElementBlock)(`section`,w,[(0,e.createElementVNode)(`section`,{class:(0,e.normalizeClass)([`oga-page-content`,t.padding?`has-padding`:``])},[(0,e.renderSlot)(i.$slots,`default`)],2)],512)),i.$slots.footer?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,ee,[(0,e.renderSlot)(i.$slots,`footer`)])):(0,e.createCommentVNode)(`v-if`,!0)],4))}}),ne={install(e){e.component(`OgaPage`,te)}},T=u((0,e.defineComponent)({__name:`index`,props:{borderless:{type:Boolean,default:()=>!0}},setup(t){let n=t,r=(0,e.useAttrs)();return r={...r,...n},(n,i)=>{let a=(0,e.resolveComponent)(`el-form`);return(0,e.openBlock)(),(0,e.createBlock)(a,(0,e.mergeProps)({class:[`oga-form`,t.borderless?`borderless`:``]},(0,e.unref)(r)),{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`,{},void 0,!0)]),_:3},16,[`class`])}}}),[[`__scopeId`,`data-v-1f902fa8`]]),re={install(e){e.component(`OgaForm`,T)}},ie=u((0,e.defineComponent)({__name:`index`,props:{showMessage:{type:Boolean,default:()=>!1}},setup(t){let n=t,r=(0,e.useAttrs)();return r={...r,...n},(n,i)=>{let a=(0,e.resolveComponent)(`el-form-item`);return(0,e.openBlock)(),(0,e.createBlock)(a,(0,e.mergeProps)({class:t.showMessage?``:`gutter-less`},(0,e.unref)(r)),{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`,{},void 0,!0)]),_:3},16,[`class`])}}}),[[`__scopeId`,`data-v-d900973a`]]),ae={install(e){e.component(`OgaFormItem`,ie)}};function E(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}var oe={};function se(e){oe[e]||(oe[e]=!0,E(e))}var D=typeof window<`u`,O,k;if(process.env.NODE_ENV!==`production`){let e=D&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(O=t=>{e.mark(t)},k=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}var ce=/\{([0-9a-zA-Z]+)\}/g;function le(e,...t){return t.length===1&&B(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(ce,(e,n)=>t.hasOwnProperty(n)?t[n]:``)}var A=(e,t=!1)=>t?Symbol.for(e):Symbol(e),ue=(e,t,n)=>de({l:e,k:t,s:n}),de=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),j=e=>typeof e==`number`&&isFinite(e),fe=e=>Ce(e)===`[object Date]`,pe=e=>Ce(e)===`[object RegExp]`,me=e=>V(e)&&Object.keys(e).length===0,M=Object.assign,he=Object.create,N=(e=null)=>he(e),ge,P=()=>ge||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:N();function _e(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`).replace(/\//g,`&#x2F;`).replace(/=/g,`&#x3D;`)}function ve(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function ye(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${ve(n)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${ve(n)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!==`production`&&E(`Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages.`),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,`$1&#111;n$3`)),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(t=>{e=e.replace(t,`$1javascript&#58;`)}),e}var be=Object.prototype.hasOwnProperty;function F(e,t){return be.call(e,t)}var I=Array.isArray,L=e=>typeof e==`function`,R=e=>typeof e==`string`,z=e=>typeof e==`boolean`,B=e=>typeof e==`object`&&!!e,xe=e=>B(e)&&L(e.then)&&L(e.catch),Se=Object.prototype.toString,Ce=e=>Se.call(e),V=e=>Ce(e)===`[object Object]`,we=e=>e==null?``:I(e)||V(e)&&e.toString===Se?JSON.stringify(e,null,2):String(e);function Te(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}var Ee=2;function De(e,t=0,n=e.length){let r=e.split(/\r?\n/),i=0,a=[];for(let e=0;e<r.length;e++)if(i+=r[e].length+1,i>=t){for(let o=e-Ee;o<=e+Ee||n>i;o++){if(o<0||o>=r.length)continue;let s=o+1;a.push(`${s}${` `.repeat(3-String(s).length)}| ${r[o]}`);let c=r[o].length;if(o===e){let e=t-(i-c)+1,r=Math.max(1,n>i?c-e:n-t);a.push(` | `+` `.repeat(e)+`^`.repeat(r))}else if(o>e){if(n>i){let e=Math.max(Math.min(n-i,c),1);a.push(` | `+`^`.repeat(e))}i+=c+1}}break}return a.join(`
2
- `)}function Oe(){let e=new Map;return{events:e,on(t,n){let r=e.get(t);r&&r.push(n)||e.set(t,[n])},off(t,n){let r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map(e=>e(n)),(e.get(`*`)||[]).slice().map(e=>e(t,n))}}}var H=e=>!B(e)||I(e);function ke(e,t){if(H(e)||H(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{r!==`__proto__`&&(B(e[r])&&!B(t[r])&&(t[r]=Array.isArray(e[r])?[]:N()),H(t[r])||H(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}function Ae(e,t,n){return{line:e,column:t,offset:n}}function je(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var U={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},Me={[U.EXPECTED_TOKEN]:`Expected token: '{0}'`,[U.INVALID_TOKEN_IN_PLACEHOLDER]:`Invalid token in placeholder: '{0}'`,[U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:`Unterminated single quote in placeholder`,[U.UNKNOWN_ESCAPE_SEQUENCE]:`Unknown escape sequence: \\{0}`,[U.INVALID_UNICODE_ESCAPE_SEQUENCE]:`Invalid unicode escape sequence: {0}`,[U.UNBALANCED_CLOSING_BRACE]:`Unbalanced closing brace`,[U.UNTERMINATED_CLOSING_BRACE]:`Unterminated closing brace`,[U.EMPTY_PLACEHOLDER]:`Empty placeholder`,[U.NOT_ALLOW_NEST_PLACEHOLDER]:`Not allowed nest placeholder`,[U.INVALID_LINKED_FORMAT]:`Invalid linked format`,[U.MUST_HAVE_MESSAGES_IN_PLURAL]:`Plural must have messages`,[U.UNEXPECTED_EMPTY_LINKED_MODIFIER]:`Unexpected empty linked modifier`,[U.UNEXPECTED_EMPTY_LINKED_KEY]:`Unexpected empty linked key`,[U.UNEXPECTED_LEXICAL_ANALYSIS]:`Unexpected lexical analysis in token: '{0}'`,[U.UNHANDLED_CODEGEN_NODE_TYPE]:`unhandled codegen node type: '{0}'`,[U.UNHANDLED_MINIFIER_NODE_TYPE]:`unhandled mimifier node type: '{0}'`};function Ne(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=process.env.NODE_ENV===`production`?e:le((i||Me)[e]||``,...a||[]),s=SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}function Pe(e){throw e}var Fe=/<\/?[\w\s="/.':;#-\/]+>/,Ie=e=>Fe.test(e),W=` `,Le=`\r`,G=`
3
- `,Re=`\u2028`,ze=`\u2029`;function Be(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===Le&&t[e+1]===G,s=e=>t[e]===G,c=e=>t[e]===ze,l=e=>t[e]===Re,u=e=>o(e)||s(e)||c(e)||l(e),d=()=>n,f=()=>r,p=()=>i,m=()=>a,h=e=>o(e)||c(e)||l(e)?G:t[e],g=()=>h(n),_=()=>h(n+a);function v(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function x(e=0){a=e}function S(){let e=n+a;for(;e!==n;)v();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:_,next:v,peek:y,reset:b,resetPeek:x,skipToPeek:S}}var Ve=void 0,He=`'`,Ue=`tokenizer`;function We(e,t={}){let n=t.location!==!1,r=Be(e),i=()=>r.index(),a=()=>Ae(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();t.column+=r,t.offset+=r,u&&u(Ne(e,n?je(a.startLoc,t):null,{domain:Ue,args:i}))}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=je(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(U.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===W||e.currentPeek()===G;)t+=e.currentPeek(),e.peek();return t}function g(e){let t=h(e);return e.skipToPeek(),t}function _(e){if(e===Ve)return!1;let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function v(e){if(e===Ve)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57}function y(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function b(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=v(e.currentPeek()===`-`?e.peek():e.currentPeek());return e.resetPeek(),r}function x(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===He;return e.resetPeek(),r}function S(e,t){let{currentType:n}=t;if(n!==7)return!1;h(e);let r=e.currentPeek()===`.`;return e.resetPeek(),r}function C(e,t){let{currentType:n}=t;if(n!==8)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function w(e,t){let{currentType:n}=t;if(!(n===7||n===11))return!1;h(e);let r=e.currentPeek()===`:`;return e.resetPeek(),r}function ee(e,t){let{currentType:n}=t;if(n!==9)return!1;let r=()=>{let t=e.currentPeek();return t===`{`?_(e.peek()):t===`@`||t===`|`||t===`:`||t===`.`||t===W||!t?!1:t===G?(e.peek(),r()):ne(e,!1)},i=r();return e.resetPeek(),i}function te(e){h(e);let t=e.currentPeek()===`|`;return e.resetPeek(),t}function ne(e,t=!0){let n=(t=!1,r=``)=>{let i=e.currentPeek();return i===`{`||i===`@`||!i?t:i===`|`?!(r===W||r===G):i===W?(e.peek(),n(!0,W)):i===G?(e.peek(),n(!0,G)):!0},r=n();return t&&e.resetPeek(),r}function T(e,t){let n=e.currentChar();return n===Ve?Ve:t(n)?(e.next(),n):null}function re(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function ie(e){return T(e,re)}function ae(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function E(e){return T(e,ae)}function oe(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function se(e){return T(e,oe)}function D(e){let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function O(e){return T(e,D)}function k(e){let t=``,n=``;for(;t=se(e);)n+=t;return n}function ce(e){let t=``;for(;;){let n=e.currentChar();if(n===`{`||n===`}`||n===`@`||n===`|`||!n)break;if(n===W||n===G)if(ne(e))t+=n,e.next();else if(te(e))break;else t+=n,e.next();else t+=n,e.next()}return t}function le(e){g(e);let t=``,n=``;for(;t=E(e);)n+=t;let r=e.currentChar();if(r&&r!==`}`&&r!==Ve&&r!==W&&r!==G&&r!==` `){let t=me(e);return d(U.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n+t),n+t}return e.currentChar()===Ve&&d(U.UNTERMINATED_CLOSING_BRACE,a(),0),n}function A(e){g(e);let t=``;return e.currentChar()===`-`?(e.next(),t+=`-${k(e)}`):t+=k(e),e.currentChar()===Ve&&d(U.UNTERMINATED_CLOSING_BRACE,a(),0),t}function ue(e){return e!==He&&e!==G}function de(e){g(e),m(e,`'`);let t=``,n=``;for(;t=T(e,ue);)t===`\\`?n+=j(e):n+=t;let r=e.currentChar();return r===G||r===Ve?(d(U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===G&&(e.next(),m(e,`'`)),n):(m(e,`'`),n)}function j(e){let t=e.currentChar();switch(t){case`\\`:case`'`:return e.next(),`\\${t}`;case`u`:return fe(e,t,4);case`U`:return fe(e,t,6);default:return d(U.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),``}}function fe(e,t,n){m(e,t);let r=``;for(let i=0;i<n;i++){let n=O(e);if(!n){d(U.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function pe(e){return e!==`{`&&e!==`}`&&e!==W&&e!==G}function me(e){g(e);let t=``,n=``;for(;t=T(e,pe);)n+=t;return n}function M(e){let t=``,n=``;for(;t=ie(e);)n+=t;return n}function he(e){let t=n=>{let r=e.currentChar();return r===`{`||r===`@`||r===`|`||r===`(`||r===`)`||!r||r===W?n:(n+=r,e.next(),t(n))};return t(``)}function N(e){g(e);let t=m(e,`|`);return g(e),t}function ge(e,t){let n=null;switch(e.currentChar()){case`{`:return t.braceNest>=1&&d(U.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=f(t,2,`{`),g(e),t.braceNest++,n;case`}`:return t.braceNest>0&&t.currentType===2&&d(U.EMPTY_PLACEHOLDER,a(),0),e.next(),n=f(t,3,`}`),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),n;case`@`:return t.braceNest>0&&d(U.UNTERMINATED_CLOSING_BRACE,a(),0),n=P(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(te(e))return t.braceNest>0&&d(U.UNTERMINATED_CLOSING_BRACE,a(),0),n=f(t,1,N(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(t.currentType===4||t.currentType===5||t.currentType===6))return d(U.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,_e(e,t);if(r=y(e,t))return n=f(t,4,le(e)),g(e),n;if(i=b(e,t))return n=f(t,5,A(e)),g(e),n;if(o=x(e,t))return n=f(t,6,de(e)),g(e),n;if(!r&&!i&&!o)return n=f(t,12,me(e)),d(U.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function P(e,t){let{currentType:n}=t,r=null,i=e.currentChar();switch((n===7||n===8||n===11||n===9)&&(i===G||i===W)&&d(U.INVALID_LINKED_FORMAT,a(),0),i){case`@`:return e.next(),r=f(t,7,`@`),t.inLinked=!0,r;case`.`:return g(e),e.next(),f(t,8,`.`);case`:`:return g(e),e.next(),f(t,9,`:`);default:return te(e)?(r=f(t,1,N(e)),t.braceNest=0,t.inLinked=!1,r):S(e,t)||w(e,t)?(g(e),P(e,t)):C(e,t)?(g(e),f(t,11,M(e))):ee(e,t)?(g(e),i===`{`?ge(e,t)||r:f(t,10,he(e))):(n===7&&d(U.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,_e(e,t))}}function _e(e,t){let n={type:13};if(t.braceNest>0)return ge(e,t)||p(t);if(t.inLinked)return P(e,t)||p(t);switch(e.currentChar()){case`{`:return ge(e,t)||p(t);case`}`:return d(U.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),f(t,3,`}`);case`@`:return P(e,t)||p(t);default:if(te(e))return n=f(t,1,N(e)),t.braceNest=0,t.inLinked=!1,n;if(ne(e))return f(t,0,ce(e));break}return n}function ve(){let{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=i(),c.startLoc=a(),r.currentChar()===Ve?f(c,13):_e(r,c)}return{nextToken:ve,currentOffset:i,currentPosition:a,context:l}}var Ge=`parser`,Ke=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function qe(e,t,n){switch(e){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):`�`}}}function Je(e={}){let t=e.location!==!1,{onError:n}=e;function r(e,r,i,a,...o){let s=e.currentPosition();s.offset+=a,s.column+=a,n&&n(Ne(r,t?je(i,s):null,{domain:Ge,args:o}))}function i(e,n,r){let i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){let n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(5,n,r);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function c(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(4,n,r);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function l(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(9,n,r);return o.value=t.replace(Ke,qe),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function u(e){let t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,c=i(8,o,s);return t.type===11?(t.value??r(e,U.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,K(t)),c.value=t.value||``,a(c,e.currentOffset(),e.currentPosition()),{node:c}):(r(e,U.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value=``,a(c,o,s),{nextConsumeToken:t,node:c})}function d(e,t){let n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function f(e){let t=e.context(),n=i(6,t.offset,t.startLoc),o=e.nextToken();if(o.type===8){let t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(o.type!==9&&r(e,U.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,K(o)),o=e.nextToken(),o.type===2&&(o=e.nextToken()),o.type){case 10:o.value??r(e,U.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,K(o)),n.key=d(e,o.value||``);break;case 4:o.value??r(e,U.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,K(o)),n.key=c(e,o.value||``);break;case 5:o.value??r(e,U.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,K(o)),n.key=s(e,o.value||``);break;case 6:o.value??r(e,U.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,K(o)),n.key=l(e,o.value||``);break;default:{r(e,U.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);let s=e.context(),c=i(7,s.offset,s.startLoc);return c.value=``,a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){let t=e.context(),n=i(2,t.currentType===1?e.currentOffset():t.offset,t.currentType===1?t.endLoc:t.startLoc);n.items=[];let u=null;do{let i=u||e.nextToken();switch(u=null,i.type){case 0:i.value??r(e,U.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,K(i)),n.items.push(o(e,i.value||``));break;case 5:i.value??r(e,U.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,K(i)),n.items.push(s(e,i.value||``));break;case 4:i.value??r(e,U.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,K(i)),n.items.push(c(e,i.value||``));break;case 6:i.value??r(e,U.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,K(i)),n.items.push(l(e,i.value||``));break;case 7:{let t=f(e);n.items.push(t.node),u=t.nextConsumeToken||null;break}}}while(t.currentType!==13&&t.currentType!==1);return a(n,t.currentType===1?t.lastOffset:e.currentOffset(),t.currentType===1?t.lastEndLoc:e.currentPosition()),n}function m(e,t,n,o){let s=e.context(),c=o.items.length===0,l=i(1,t,n);l.cases=[],l.cases.push(o);do{let t=p(e);c||=t.items.length===0,l.cases.push(t)}while(s.currentType!==13);return c&&r(e,U.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}function h(e){let t=e.context(),{offset:n,startLoc:r}=t,i=p(e);return t.currentType===13?i:m(e,n,r,i)}function g(n){let o=We(n,M({},e)),s=o.context(),c=i(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=h(o),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),s.currentType!==13&&r(o,U.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||``),a(c,o.currentOffset(),o.currentPosition()),c}return{parse:g}}function K(e){if(e.type===13)return`EOF`;let t=(e.value||``).replace(/\r?\n/gu,`\\n`);return t.length>10?t.slice(0,9)+`…`:t}function Ye(e,t={}){let n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function Xe(e,t){for(let n=0;n<e.length;n++)Ze(e[n],t)}function Ze(e,t){switch(e.type){case 1:Xe(e.cases,t),t.helper(`plural`);break;case 2:Xe(e.items,t);break;case 6:Ze(e.key,t),t.helper(`linked`),t.helper(`type`);break;case 5:t.helper(`interpolate`),t.helper(`list`);break;case 4:t.helper(`interpolate`),t.helper(`named`);break}}function Qe(e,t={}){let n=Ye(e);n.helper(`normalize`),e.body&&Ze(e.body,n);let r=n.context();e.helpers=Array.from(r.helpers)}function $e(e){let t=e.body;return t.type===2?et(t):t.cases.forEach(e=>et(e)),e}function et(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let n=0;n<e.items.length;n++){let r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Te(t);for(let t=0;t<e.items.length;t++){let n=e.items[t];(n.type===3||n.type===9)&&delete n.value}}}}var tt=`minifier`;function nt(e){switch(e.t=e.type,e.type){case 0:{let t=e;nt(t.body),t.b=t.body,delete t.body;break}case 1:{let t=e,n=t.cases;for(let e=0;e<n.length;e++)nt(n[e]);t.c=n,delete t.cases;break}case 2:{let t=e,n=t.items;for(let e=0;e<n.length;e++)nt(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{let t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{let t=e;nt(t.key),t.k=t.key,delete t.key,t.modifier&&(nt(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{let t=e;t.i=t.index,delete t.index;break}case 4:{let t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!==`production`)throw Ne(U.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:tt,args:[e.type]})}delete e.type}var rt=`parser`;function it(e,t){let{sourceMap:n,filename:r,breakLineCode:i,needIndent:a}=t,o=t.location!==!1,s={filename:r,code:``,column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:a,indentLevel:0};o&&e.loc&&(s.source=e.loc.source);let c=()=>s;function l(e,t){s.code+=e}function u(e,t=!0){let n=t?i:``;l(a?n+` `.repeat(e):n)}function d(e=!0){let t=++s.indentLevel;e&&u(t)}function f(e=!0){let t=--s.indentLevel;e&&u(t)}function p(){u(s.indentLevel)}return{context:c,push:l,indent:d,deindent:f,newline:p,helper:e=>`_${e}`,needIndent:()=>s.needIndent}}function at(e,t){let{helper:n}=e;e.push(`${n(`linked`)}(`),lt(e,t.key),t.modifier?(e.push(`, `),lt(e,t.modifier),e.push(`, _type`)):e.push(`, undefined, _type`),e.push(`)`)}function ot(e,t){let{helper:n,needIndent:r}=e;e.push(`${n(`normalize`)}([`),e.indent(r());let i=t.items.length;for(let n=0;n<i&&(lt(e,t.items[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}function st(e,t){let{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n(`plural`)}([`),e.indent(r());let i=t.cases.length;for(let n=0;n<i&&(lt(e,t.cases[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}}function ct(e,t){t.body?lt(e,t.body):e.push(`null`)}function lt(e,t){let{helper:n}=e;switch(t.type){case 0:ct(e,t);break;case 1:st(e,t);break;case 2:ot(e,t);break;case 6:at(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n(`interpolate`)}(${n(`list`)}(${t.index}))`,t);break;case 4:e.push(`${n(`interpolate`)}(${n(`named`)}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!==`production`)throw Ne(U.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:rt,args:[t.type]})}}var ut=(e,t={})=>{let n=R(t.mode)?t.mode:`normal`,r=R(t.filename)?t.filename:`message.intl`,i=!!t.sourceMap,a=t.breakLineCode==null?n===`arrow`?`;`:`
4
- `:t.breakLineCode,o=t.needIndent?t.needIndent:n!==`arrow`,s=e.helpers||[],c=it(e,{mode:n,filename:r,sourceMap:i,breakLineCode:a,needIndent:o});c.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),c.indent(o),s.length>0&&(c.push(`const { ${Te(s.map(e=>`${e}: _${e}`),`, `)} } = ctx`),c.newline()),c.push(`return `),lt(c,e),c.deindent(o),c.push(`}`),delete e.helpers;let{code:l,map:u}=c.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function dt(e,t={}){let n=M({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null?!0:n.optimize,o=Je(n).parse(e);return r?(a&&$e(o),i&&nt(o),{ast:o,code:``}):(Qe(o,n),ut(o,n))}function ft(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(P().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(P().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function q(e){return B(e)&&St(e)===0&&(F(e,`b`)||F(e,`body`))}var pt=[`b`,`body`];function mt(e){return kt(e,pt)}var ht=[`c`,`cases`];function gt(e){return kt(e,ht,[])}var _t=[`s`,`static`];function vt(e){return kt(e,_t)}var yt=[`i`,`items`];function bt(e){return kt(e,yt,[])}var xt=[`t`,`type`];function St(e){return kt(e,xt)}var Ct=[`v`,`value`];function wt(e,t){let n=kt(e,Ct);if(n!=null)return n;throw jt(t)}var Tt=[`m`,`modifier`];function Et(e){return kt(e,Tt)}var Dt=[`k`,`key`];function Ot(e){let t=kt(e,Dt);if(t)return t;throw jt(6)}function kt(e,t,n){for(let n=0;n<t.length;n++){let r=t[n];if(F(e,r)&&e[r]!=null)return e[r]}return n}var At=[...pt,...ht,..._t,...yt,...Dt,...Tt,...Ct,...xt];function jt(e){return Error(`unhandled node type: ${e}`)}function Mt(e){return t=>Nt(t,e)}function Nt(e,t){let n=mt(t);if(n==null)throw jt(0);if(St(n)===1){let t=gt(n);return e.plural(t.reduce((t,n)=>[...t,Pt(e,n)],[]))}else return Pt(e,n)}function Pt(e,t){let n=vt(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=bt(t).reduce((t,n)=>[...t,Ft(e,n)],[]);return e.normalize(n)}}function Ft(e,t){let n=St(t);switch(n){case 3:return wt(t,n);case 9:return wt(t,n);case 4:{let r=t;if(F(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(F(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw jt(n)}case 5:{let r=t;if(F(r,`i`)&&j(r.i))return e.interpolate(e.list(r.i));if(F(r,`index`)&&j(r.index))return e.interpolate(e.list(r.index));throw jt(n)}case 6:{let n=t,r=Et(n),i=Ot(n);return e.linked(Ft(e,i),r?Ft(e,r):void 0,e.type)}case 7:return wt(t,n);case 8:return wt(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var It=`Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.`;function Lt(e,t){t&&Ie(e)&&E(le(It,{source:e}))}var Rt=e=>e,zt=N();function Bt(e,t={}){let n=!1,r=t.onError||Pe;return t.onError=e=>{n=!0,r(e)},{...dt(e,t),detectError:n}}function Vt(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&R(e)){let n=z(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!==`production`&&Lt(e,n);let r=(t.onCacheKey||Rt)(e),i=zt[r];if(i)return i;let{ast:a,detectError:o}=Bt(e,{...t,location:process.env.NODE_ENV!==`production`,jit:!0}),s=Mt(a);return o?s:zt[r]=s}else{if(process.env.NODE_ENV!==`production`&&!q(e))return E(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);let n=e.cacheKey;return n?zt[n]||(zt[n]=Mt(e)):Mt(e)}}var Ht=null;function Ut(e){Ht=e}function Wt(e,t,n){Ht&&Ht.emit(`i18n:init`,{timestamp:Date.now(),i18n:e,version:t,meta:n})}var Gt=Kt(`function:translate`);function Kt(e){return t=>Ht&&Ht.emit(e,t)}var J={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function qt(e){return Ne(e,null,process.env.NODE_ENV===`production`?void 0:{messages:Jt})}var Jt={[J.INVALID_ARGUMENT]:`Invalid arguments`,[J.INVALID_DATE_ARGUMENT]:`The date provided is an invalid Date object.Make sure your Date represents a valid date.`,[J.INVALID_ISO_DATE_ARGUMENT]:`The argument provided is not a valid ISO date string`,[J.NOT_SUPPORT_NON_STRING_MESSAGE]:`Not support non-string message`,[J.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:`cannot support promise value`,[J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:`cannot support async function`,[J.NOT_SUPPORT_LOCALE_TYPE]:`cannot support locale type`};function Yt(e,t){return t.locale==null?Zt(e.locale):Zt(t.locale)}var Xt;function Zt(e){if(R(e))return e;if(L(e)){if(e.resolvedOnce&&Xt!=null)return Xt;if(e.constructor.name===`Function`){let t=e();if(xe(t))throw qt(J.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Xt=t}else throw qt(J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw qt(J.NOT_SUPPORT_LOCALE_TYPE)}function Qt(e,t,n){return[...new Set([n,...I(t)?t:B(t)?Object.keys(t):R(t)?[t]:[n]])]}function $t(e,t,n){let r=R(n)?n:_n,i=e;i.__localeChainCache||=new Map;let a=i.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;I(e);)e=en(a,e,t);let o=I(t)||!V(t)?t:t.default?t.default:null;e=R(o)?[o]:o,I(e)&&en(a,e,!1),i.__localeChainCache.set(r,a)}return a}function en(e,t,n){let r=!0;for(let i=0;i<t.length&&z(r);i++){let a=t[i];R(a)&&(r=tn(e,t[i],n))}return r}function tn(e,t,n){let r,i=t.split(`-`);do r=nn(e,i.join(`-`),n),i.splice(-1,1);while(i.length&&r===!0);return r}function nn(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!==`!`;let i=t.replace(/!/g,``);e.push(i),(I(n)||V(n))&&n[i]&&(r=n[i])}return r}var rn=[];rn[0]={w:[0],i:[3,0],"[":[4],o:[7]},rn[1]={w:[1],".":[2],"[":[4],o:[7]},rn[2]={w:[2],i:[3,0],0:[3,0]},rn[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},rn[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},rn[5]={"'":[4,0],o:8,l:[5,0]},rn[6]={'"':[4,0],o:8,l:[6,0]};var an=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function on(e){return an.test(e)}function sn(e){let t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function cn(e){if(e==null)return`o`;switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return`i`;case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return`w`}return`i`}function ln(e){let t=e.trim();return e.charAt(0)===`0`&&isNaN(parseInt(e))?!1:on(t)?sn(t):`*`+t}function un(e){let t=[],n=-1,r=0,i=0,a,o,s,c,l,u,d,f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=ln(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=cn(a),d=rn[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}var dn=new Map;function fn(e,t){return B(e)?e[t]:null}function pn(e,t){if(!B(e))return null;let n=dn.get(t);if(n||(n=un(t),n&&dn.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a<r;){let e=n[a];if(At.includes(e)&&q(i))return null;let t=i[e];if(t===void 0||L(i))return null;i=t,a++}return i}var Y={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},mn={[Y.NOT_FOUND_KEY]:`Not found '{key}' key in '{locale}' locale messages.`,[Y.FALLBACK_TO_TRANSLATE]:`Fall back to translate '{key}' key with '{target}' locale.`,[Y.CANNOT_FORMAT_NUMBER]:`Cannot format a number value due to not supported Intl.NumberFormat.`,[Y.FALLBACK_TO_NUMBER_FORMAT]:`Fall back to number format '{key}' key with '{target}' locale.`,[Y.CANNOT_FORMAT_DATE]:`Cannot format a date value due to not supported Intl.DateTimeFormat.`,[Y.FALLBACK_TO_DATE_FORMAT]:`Fall back to datetime format '{key}' key with '{target}' locale.`,[Y.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:`This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.`};function hn(e,...t){return le(mn[e],...t)}var gn=`11.2.8`,_n=`en-US`,vn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function yn(){return{upper:(e,t)=>t===`text`&&R(e)?e.toUpperCase():t===`vnode`&&B(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&R(e)?e.toLowerCase():t===`vnode`&&B(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&R(e)?vn(e):t===`vnode`&&B(e)&&`__v_isVNode`in e?vn(e.children):e}}var bn;function xn(e){bn=e}var Sn;function Cn(e){Sn=e}var wn;function Tn(e){wn=e}var En=null,Dn=()=>En,On=null,kn=e=>{On=e},An=()=>On,jn=0;function Mn(e={}){let t=L(e.onWarn)?e.onWarn:E,n=R(e.version)?e.version:gn,r=R(e.locale)||L(e.locale)?e.locale:_n,i=L(r)?_n:r,a=I(e.fallbackLocale)||V(e.fallbackLocale)||R(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=V(e.messages)?e.messages:Nn(i),s=V(e.datetimeFormats)?e.datetimeFormats:Nn(i),c=V(e.numberFormats)?e.numberFormats:Nn(i),l=M(N(),e.modifiers,yn()),u=e.pluralRules||N(),d=L(e.missing)?e.missing:null,f=z(e.missingWarn)||pe(e.missingWarn)?e.missingWarn:!0,p=z(e.fallbackWarn)||pe(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,g=L(e.postTranslation)?e.postTranslation:null,_=V(e.processor)?e.processor:null,v=z(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,b=L(e.messageCompiler)?e.messageCompiler:bn;process.env.NODE_ENV!==`production`&&L(e.messageCompiler)&&se(hn(Y.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));let x=L(e.messageResolver)?e.messageResolver:Sn||fn,S=L(e.localeFallbacker)?e.localeFallbacker:wn||Qt,C=B(e.fallbackContext)?e.fallbackContext:void 0,w=e,ee=B(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,te=B(w.__numberFormatters)?w.__numberFormatters:new Map,ne=B(w.__meta)?w.__meta:{};jn++;let T={version:n,cid:jn,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:g,processor:_,warnHtmlMessage:v,escapeParameter:y,messageCompiler:b,messageResolver:x,localeFallbacker:S,fallbackContext:C,onWarn:t,__meta:ne};return T.datetimeFormats=s,T.numberFormats=c,T.__datetimeFormatters=ee,T.__numberFormatters=te,process.env.NODE_ENV!==`production`&&(T.__v_emitter=w.__v_emitter==null?void 0:w.__v_emitter),(process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__)&&Wt(T,n,ne),T}var Nn=e=>({[e]:N()});function Pn(e,t){return e instanceof RegExp?e.test(t):e}function Fn(e,t){return e instanceof RegExp?e.test(t):e}function In(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(process.env.NODE_ENV!==`production`){let r=e.__v_emitter;r&&r.emit(`missing`,{locale:n,key:t,type:i,groupId:`${i}:${t}`})}if(a!==null){let r=a(e,n,t,i);return R(r)?r:t}else return process.env.NODE_ENV!==`production`&&Fn(r,t)&&o(hn(Y.NOT_FOUND_KEY,{key:t,locale:n})),t}function Ln(e,t,n){let r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Rn(e,t){return e===t?!1:e.split(`-`)[0]===t.split(`-`)[0]}function zn(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Rn(e,t[r]))return!0;return!1}var Bn=typeof Intl<`u`,Vn={dateTimeFormat:Bn&&Intl.DateTimeFormat!==void 0,numberFormat:Bn&&Intl.NumberFormat!==void 0};function Hn(e,...t){let{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!==`production`&&!Vn.dateTimeFormat)return a(hn(Y.CANNOT_FORMAT_DATE)),``;let[c,l,u,d]=Wn(...t),f=z(u.missingWarn)?u.missingWarn:e.missingWarn,p=z(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,m=!!u.part,h=Yt(e,u),g=o(e,i,h);if(!R(c)||c===``)return new Intl.DateTimeFormat(h,d).format(l);let _={},v,y=null,b=h,x=null,S=`datetime format`;for(let t=0;t<g.length;t++){if(v=x=g[t],process.env.NODE_ENV!==`production`&&h!==v&&Pn(p,c)&&a(hn(Y.FALLBACK_TO_DATE_FORMAT,{key:c,target:v})),process.env.NODE_ENV!==`production`&&h!==v){let t=e.__v_emitter;t&&t.emit(`fallback`,{type:S,key:c,from:b,to:x,groupId:`${S}:${c}`})}if(_=n[v]||{},y=_[c],V(y))break;In(e,c,v,f,S),b=x}if(!V(y)||!R(v))return r?-1:c;let C=`${v}__${c}`;me(d)||(C=`${C}__${JSON.stringify(d)}`);let w=s.get(C);return w||(w=new Intl.DateTimeFormat(v,M({},y,d)),s.set(C,w)),m?w.formatToParts(l):w.format(l)}var Un=[`localeMatcher`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`formatMatcher`,`hour12`,`timeZone`,`dateStyle`,`timeStyle`,`calendar`,`dayPeriod`,`numberingSystem`,`hourCycle`,`fractionalSecondDigits`];function Wn(...e){let[t,n,r,i]=e,a=N(),o=N(),s;if(R(t)){let e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw qt(J.INVALID_ISO_DATE_ARGUMENT);let n=e[3]?e[3].trim().startsWith(`T`)?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch{throw qt(J.INVALID_ISO_DATE_ARGUMENT)}}else if(fe(t)){if(isNaN(t.getTime()))throw qt(J.INVALID_DATE_ARGUMENT);s=t}else if(j(t))s=t;else throw qt(J.INVALID_ARGUMENT);return R(n)?a.key=n:V(n)&&Object.keys(n).forEach(e=>{Un.includes(e)?o[e]=n[e]:a[e]=n[e]}),R(r)?a.locale=r:V(r)&&(o=r),V(i)&&(o=i),[a.key||``,s,a,o]}function Gn(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Kn(e,...t){let{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!==`production`&&!Vn.numberFormat)return a(hn(Y.CANNOT_FORMAT_NUMBER)),``;let[c,l,u,d]=Jn(...t),f=z(u.missingWarn)?u.missingWarn:e.missingWarn,p=z(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,m=!!u.part,h=Yt(e,u),g=o(e,i,h);if(!R(c)||c===``)return new Intl.NumberFormat(h,d).format(l);let _={},v,y=null,b=h,x=null,S=`number format`;for(let t=0;t<g.length;t++){if(v=x=g[t],process.env.NODE_ENV!==`production`&&h!==v&&Pn(p,c)&&a(hn(Y.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:v})),process.env.NODE_ENV!==`production`&&h!==v){let t=e.__v_emitter;t&&t.emit(`fallback`,{type:S,key:c,from:b,to:x,groupId:`${S}:${c}`})}if(_=n[v]||{},y=_[c],V(y))break;In(e,c,v,f,S),b=x}if(!V(y)||!R(v))return r?-1:c;let C=`${v}__${c}`;me(d)||(C=`${C}__${JSON.stringify(d)}`);let w=s.get(C);return w||(w=new Intl.NumberFormat(v,M({},y,d)),s.set(C,w)),m?w.formatToParts(l):w.format(l)}var qn=[`localeMatcher`,`style`,`currency`,`currencyDisplay`,`currencySign`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`roundingMode`,`roundingPriority`,`roundingIncrement`,`trailingZeroDisplay`];function Jn(...e){let[t,n,r,i]=e,a=N(),o=N();if(!j(t))throw qt(J.INVALID_ARGUMENT);let s=t;return R(n)?a.key=n:V(n)&&Object.keys(n).forEach(e=>{qn.includes(e)?o[e]=n[e]:a[e]=n[e]}),R(r)?a.locale=r:V(r)&&(o=r),V(i)&&(o=i),[a.key||``,s,a,o]}function Yn(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}var Xn=e=>e,Zn=e=>``,Qn=`text`,$n=e=>e.length===0?``:Te(e),er=we;function tr(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function nr(e){let t=j(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(j(e.named.count)||j(e.named.n))?j(e.named.count)?e.named.count:j(e.named.n)?e.named.n:t:t}function rr(e,t){t.count||=e,t.n||=e}function ir(e={}){let t=e.locale,n=nr(e),r=B(e.pluralRules)&&R(t)&&L(e.pluralRules[t])?e.pluralRules[t]:tr,i=B(e.pluralRules)&&R(t)&&L(e.pluralRules[t])?tr:void 0,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||N();j(e.pluralIndex)&&rr(n,c);let l=e=>c[e];function u(t,n){return(L(e.messages)?e.messages(t,!!n):B(e.messages)?e.messages[t]:!1)||(e.parent?e.parent.message(t):Zn)}let d=t=>e.modifiers?e.modifiers[t]:Xn,f=V(e.processor)&&L(e.processor.normalize)?e.processor.normalize:$n,p=V(e.processor)&&L(e.processor.interpolate)?e.processor.interpolate:er,m={list:s,named:l,plural:a,linked:(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?B(n)?(a=n.modifier||a,i=n.type||i):R(n)&&(a=n||a):t.length===2&&(R(n)&&(a=n||a),R(r)&&(i=r||i));let o=u(e,!0)(m),s=i===`vnode`&&I(o)&&a?o[0]:o;return a?d(a)(s,i):s},message:u,type:V(e.processor)&&R(e.processor.type)?e.processor.type:Qn,interpolate:p,normalize:f,values:M(N(),o,c)};return m}var ar=()=>``,X=e=>L(e);function or(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=dr(...t),u=z(l.missingWarn)?l.missingWarn:e.missingWarn,d=z(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=z(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=R(l.default)||z(l.default)?z(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(R(m)||L(m)),g=Yt(e,l);f&&sr(l);let[_,v,y]=p?[c,g,s[g]||N()]:cr(e,c,g,o,d,u),b=_,x=c;if(!p&&!(R(b)||q(b)||X(b))&&h&&(b=m,x=b),!p&&(!(R(b)||q(b)||X(b))||!R(v)))return i?-1:c;if(process.env.NODE_ENV!==`production`&&R(b)&&e.messageCompiler==null)return E(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let S=!1,C=X(b)?b:lr(e,c,v,b,x,()=>{S=!0});if(S)return b;let w=ur(e,C,ir(mr(e,v,y,l))),ee=r?r(w,c):w;if(f&&R(ee)&&(ee=ye(ee)),process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__){let t={timestamp:Date.now(),key:R(c)?c:X(b)?b.key:``,locale:v||(X(b)?b.locale:``),format:R(b)?b:X(b)?b.source:``,message:ee};t.meta=M({},e.__meta,Dn()||{}),Gt(t)}return ee}function sr(e){I(e.list)?e.list=e.list.map(e=>R(e)?_e(e):e):B(e.named)&&Object.keys(e.named).forEach(t=>{R(e.named[t])&&(e.named[t]=_e(e.named[t]))})}function cr(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=N(),f,p=null,m=n,h=null,g=`translate`;for(let r=0;r<u.length;r++){if(f=h=u[r],process.env.NODE_ENV!==`production`&&n!==f&&!Rn(n,f)&&Pn(i,t)&&s(hn(Y.FALLBACK_TO_TRANSLATE,{key:t,target:f})),process.env.NODE_ENV!==`production`&&n!==f){let n=e.__v_emitter;n&&n.emit(`fallback`,{type:g,key:t,from:m,to:h,groupId:`${g}:${t}`})}d=o[f]||N();let l=null,_,v;if(process.env.NODE_ENV!==`production`&&D&&(l=window.performance.now(),_=`intlify-message-resolve-start`,v=`intlify-message-resolve-end`,O&&O(_)),(p=c(d,t))===null&&(p=d[t]),process.env.NODE_ENV!==`production`&&D){let n=window.performance.now(),r=e.__v_emitter;r&&l&&p&&r.emit(`message-resolve`,{type:`message-resolve`,key:t,message:p,time:n-l,groupId:`${g}:${t}`}),_&&v&&O&&k&&(O(v),k(`intlify message resolve`,_,v))}if(R(p)||q(p)||X(p))break;if(!zn(f,u)){let n=In(e,t,f,a,g);n!==t&&(p=n)}m=h}return[p,f,d]}function lr(e,t,n,r,i,a){let{messageCompiler:o,warnHtmlMessage:s}=e;if(X(r)){let e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(o==null){let e=(()=>r);return e.locale=n,e.key=t,e}let c=null,l,u;process.env.NODE_ENV!==`production`&&D&&(c=window.performance.now(),l=`intlify-message-compilation-start`,u=`intlify-message-compilation-end`,O&&O(l));let d=o(r,fr(e,n,i,r,s,a));if(process.env.NODE_ENV!==`production`&&D){let n=window.performance.now(),i=e.__v_emitter;i&&c&&i.emit(`message-compilation`,{type:`message-compilation`,message:r,time:n-c,groupId:`translate:${t}`}),l&&u&&O&&k&&(O(u),k(`intlify message compilation`,l,u))}return d.locale=n,d.key=t,d.source=r,d}function ur(e,t,n){let r=null,i,a;process.env.NODE_ENV!==`production`&&D&&(r=window.performance.now(),i=`intlify-message-evaluation-start`,a=`intlify-message-evaluation-end`,O&&O(i));let o=t(n);if(process.env.NODE_ENV!==`production`&&D){let n=window.performance.now(),s=e.__v_emitter;s&&r&&s.emit(`message-evaluation`,{type:`message-evaluation`,value:o,time:n-r,groupId:`translate:${t.key}`}),i&&a&&O&&k&&(O(a),k(`intlify message evaluation`,i,a))}return o}function dr(...e){let[t,n,r]=e,i=N();if(!R(t)&&!j(t)&&!X(t)&&!q(t))throw qt(J.INVALID_ARGUMENT);let a=j(t)?String(t):(X(t),t);return j(n)?i.plural=n:R(n)?i.default=n:V(n)&&!me(n)?i.named=n:I(n)&&(i.list=n),j(r)?i.plural=r:R(r)?i.default=r:V(r)&&M(i,r),[a,i]}function fr(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:t=>{if(a&&a(t),process.env.NODE_ENV!==`production`){let i=pr(r),a=`Message compilation error: ${t.message}`,o=t.location&&i&&De(i,t.location.start.offset,t.location.end.offset),s=e.__v_emitter;s&&i&&s.emit(`compile-error`,{message:i,error:t.message,start:t.location&&t.location.start.offset,end:t.location&&t.location.end.offset,groupId:`translate:${n}`}),console.error(o?`${a}\n${o}`:a)}else throw t},onCacheKey:e=>ue(t,n,e)}}function pr(e){if(R(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function mr(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:i,pluralRules:a,messages:(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[,,n]=cr(u||e,r,t,s,c,l);a=o(n,r)}if(R(a)||q(a)){let n=!1,i=lr(e,r,t,a,r,()=>{n=!0});return n?ar:i}else if(X(a))return a;else return ar}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),j(r.plural)&&(d.pluralIndex=r.plural),d}ft();function hr(){return gr().__VUE_DEVTOOLS_GLOBAL_HOOK__}function gr(){return typeof navigator<`u`&&typeof window<`u`?window:typeof globalThis<`u`?globalThis:{}}let _r=typeof Proxy==`function`;var vr,yr;function br(){return vr===void 0&&(typeof window<`u`&&window.performance?(vr=!0,yr=window.performance):typeof globalThis<`u`&&globalThis.perf_hooks?.performance?(vr=!0,yr=globalThis.perf_hooks.performance):vr=!1),vr}function xr(){return br()?yr.now():Date.now()}var Sr=class{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;let n={};if(e.settings)for(let t in e.settings)n[t]=e.settings[t].defaultValue;let r=`__vue-devtools-plugin-settings__${e.id}`,i=Object.assign({},n);try{let e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(i,t)}catch{}this.fallbacks={getSettings(){return i},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch{}i=e},now(){return xr()}},t&&t.on(`plugin:settings:set`,(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:t===`on`?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(let e of this.onQueue)this.target.on[e.method](...e.args);for(let e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}};function Cr(e,t){let n=e,r=gr(),i=hr(),a=_r&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))i.emit(`devtools-plugin:setup`,e,t);else{let e=a?new Sr(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}}var wr=`11.2.8`;function Tr(){typeof __VUE_I18N_FULL_INSTALL__!=`boolean`&&(P().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!=`boolean`&&(P().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(P().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(P().__INTLIFY_PROD_DEVTOOLS__=!1)}var Z={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Q(e,...t){return Ne(e,null,process.env.NODE_ENV===`production`?void 0:{messages:Er,args:t})}var Er={[Z.UNEXPECTED_RETURN_TYPE]:`Unexpected return type in composer`,[Z.INVALID_ARGUMENT]:`Invalid argument`,[Z.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Z.NOT_INSTALLED]:"Need to install with `app.use` function",[Z.UNEXPECTED_ERROR]:`Unexpected error`,[Z.REQUIRED_VALUE]:`Required in value: {0}`,[Z.INVALID_VALUE]:`Invalid value`,[Z.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:`Cannot setup vue-devtools plugin`,[Z.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Z.NOT_COMPATIBLE_LEGACY_VUE_I18N]:`Not compatible legacy VueI18n.`,[Z.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:`Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly`},Dr=A(`__translateVNode`),Or=A(`__datetimeParts`),kr=A(`__numberParts`),Ar=A(`__enableEmitter`),jr=A(`__disableEmitter`),Mr=A(`__setPluralRules`);A(`__intlifyMeta`);var Nr=A(`__injectWithOption`),Pr=A(`__dispose`),$={FALLBACK_TO_ROOT:8,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},Fr={[$.FALLBACK_TO_ROOT]:`Fall back to {type} '{key}' with root locale.`,[$.NOT_FOUND_PARENT_SCOPE]:`Not found parent scope. use the global scope.`,[$.IGNORE_OBJ_FLATTEN]:`Ignore object flatten: '{key}' key has an string value`,[$.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
5
- About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[$.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:`'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.`,[$.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Ir(e,...t){return le(Fr[e],...t)}function Lr(e){if(!B(e)||q(e))return e;for(let t in e)if(F(e,t))if(!t.includes(`.`))B(e[t])&&Lr(e[t]);else{let n=t.split(`.`),r=n.length-1,i=e,a=!1;for(let e=0;e<r;e++){if(n[e]===`__proto__`)throw Error(`unsafe key: ${n[e]}`);if(n[e]in i||(i[n[e]]=N()),!B(i[n[e]])){process.env.NODE_ENV!==`production`&&E(Ir($.IGNORE_OBJ_FLATTEN,{key:n[e]})),a=!0;break}i=i[n[e]]}if(a||(q(i)?At.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!q(i)){let e=i[n[r]];B(e)&&Lr(e)}}return e}function Rr(e,t){let{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,o=V(n)?n:I(r)?N():{[e]:N()};if(I(r)&&r.forEach(e=>{if(`locale`in e&&`resource`in e){let{locale:t,resource:n}=e;t?(o[t]=o[t]||N(),ke(n,o[t])):ke(n,o)}else R(e)&&ke(JSON.parse(e),o)}),i==null&&a)for(let e in o)F(o,e)&&Lr(o[e]);return o}function zr(e){return e.type}function Br(e,t,n){let r=B(t.messages)?t.messages:N();`__i18nGlobal`in n&&(r=Rr(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));let i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),B(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(B(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function Vr(t){return(0,e.createVNode)(e.Text,null,t,0)}function Hr(){let t=`currentInstance`;return t in e?e[t]:e.getCurrentInstance()}var Ur=()=>[],Wr=()=>!1,Gr=0;function Kr(e){return((t,n,r,i)=>e(n,r,Hr()||void 0,i))}function qr(t={}){let{__root:n,__injectWithOption:r}=t,i=n===void 0,a=t.flatJson,o=D?e.ref:e.shallowRef,s=z(t.inheritLocale)?t.inheritLocale:!0,c=o(n&&s?n.locale.value:R(t.locale)?t.locale:_n),l=o(n&&s?n.fallbackLocale.value:R(t.fallbackLocale)||I(t.fallbackLocale)||V(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:c.value),u=o(Rr(c.value,t)),d=o(V(t.datetimeFormats)?t.datetimeFormats:{[c.value]:{}}),f=o(V(t.numberFormats)?t.numberFormats:{[c.value]:{}}),p=n?n.missingWarn:z(t.missingWarn)||pe(t.missingWarn)?t.missingWarn:!0,m=n?n.fallbackWarn:z(t.fallbackWarn)||pe(t.fallbackWarn)?t.fallbackWarn:!0,h=n?n.fallbackRoot:z(t.fallbackRoot)?t.fallbackRoot:!0,g=!!t.fallbackFormat,_=L(t.missing)?t.missing:null,v=L(t.missing)?Kr(t.missing):null,y=L(t.postTranslation)?t.postTranslation:null,b=n?n.warnHtmlMessage:z(t.warnHtmlMessage)?t.warnHtmlMessage:!0,x=!!t.escapeParameter,S=n?n.modifiers:V(t.modifiers)?t.modifiers:{},C=t.pluralRules||n&&n.pluralRules,w;w=(()=>{i&&kn(null);let e={version:wr,locale:c.value,fallbackLocale:l.value,messages:u.value,modifiers:S,pluralRules:C,missing:v===null?void 0:v,missingWarn:p,fallbackWarn:m,fallbackFormat:g,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:b,escapeParameter:x,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:`vue`}};e.datetimeFormats=d.value,e.numberFormats=f.value,e.__datetimeFormatters=V(w)?w.__datetimeFormatters:void 0,e.__numberFormatters=V(w)?w.__numberFormatters:void 0,process.env.NODE_ENV!==`production`&&(e.__v_emitter=V(w)?w.__v_emitter:void 0);let n=Mn(e);return i&&kn(n),n})(),Ln(w,c.value,l.value);function ee(){return[c.value,l.value,u.value,d.value,f.value]}let te=(0,e.computed)({get:()=>c.value,set:e=>{w.locale=e,c.value=e}}),ne=(0,e.computed)({get:()=>l.value,set:e=>{w.fallbackLocale=e,l.value=e,Ln(w,c.value,e)}}),T=(0,e.computed)(()=>u.value),re=(0,e.computed)(()=>d.value),ie=(0,e.computed)(()=>f.value);function ae(){return L(y)?y:null}function oe(e){y=e,w.postTranslation=e}function se(){return _}function O(e){e!==null&&(v=Kr(e)),_=e,w.missing=v}function k(e,t){return e!==`translate`||!t.resolvedMessage}let ce=(e,t,r,a,o,s)=>{ee();let c;try{process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__,i||(w.fallbackContext=n?An():void 0),c=e(w)}finally{process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__,i||(w.fallbackContext=void 0)}if(r!==`translate exists`&&j(c)&&c===-1||r===`translate exists`&&!c){let[e,i]=t();if(process.env.NODE_ENV!==`production`&&n&&R(e)&&k(r,i)&&(h&&(Pn(m,e)||Fn(p,e))&&E(Ir($.FALLBACK_TO_ROOT,{key:e,type:r})),process.env.NODE_ENV!==`production`)){let{__v_emitter:t}=w;t&&h&&t.emit(`fallback`,{type:r,key:e,to:`global`,groupId:`${r}:${e}`})}return n&&h?a(n):o(e)}else if(s(c))return c;else throw Q(Z.UNEXPECTED_RETURN_TYPE)};function le(...e){return ce(t=>Reflect.apply(or,null,[t,...e]),()=>dr(...e),`translate`,t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>R(e))}function A(...e){let[t,n,r]=e;if(r&&!B(r))throw Q(Z.INVALID_ARGUMENT);return le(t,n,M({resolvedMessage:!0},r||{}))}function ue(...e){return ce(t=>Reflect.apply(Hn,null,[t,...e]),()=>Wn(...e),`datetime format`,t=>Reflect.apply(t.d,t,[...e]),()=>``,e=>R(e)||I(e))}function de(...e){return ce(t=>Reflect.apply(Kn,null,[t,...e]),()=>Jn(...e),`number format`,t=>Reflect.apply(t.n,t,[...e]),()=>``,e=>R(e)||I(e))}function fe(e){return e.map(e=>R(e)||j(e)||z(e)?Vr(String(e)):e)}let me={normalize:fe,interpolate:e=>e,type:`vnode`};function he(...e){return ce(t=>{let n,r=t;try{r.processor=me,n=Reflect.apply(or,null,[r,...e])}finally{r.processor=null}return n},()=>dr(...e),`translate`,t=>t[Dr](...e),e=>[Vr(e)],e=>I(e))}function N(...e){return ce(t=>Reflect.apply(Kn,null,[t,...e]),()=>Jn(...e),`number format`,t=>t[kr](...e),Ur,e=>R(e)||I(e))}function ge(...e){return ce(t=>Reflect.apply(Hn,null,[t,...e]),()=>Wn(...e),`datetime format`,t=>t[Or](...e),Ur,e=>R(e)||I(e))}function P(e){C=e,w.pluralRules=C}function _e(e,t){return ce(()=>{if(!e)return!1;let n=be(R(t)?t:c.value),r=w.messageResolver(n,e);return q(r)||X(r)||R(r)},()=>[e],`translate exists`,n=>Reflect.apply(n.te,n,[e,t]),Wr,e=>z(e))}function ve(e){let t=null,n=$t(w,l.value,c.value);for(let r=0;r<n.length;r++){let i=u.value[n[r]]||{},a=w.messageResolver(i,e);if(a!=null){t=a;break}}return t}function ye(e){return ve(e)??(n&&n.tm(e)||{})}function be(e){return u.value[e]||{}}function xe(e,t){if(a){let n={[e]:t};for(let e in n)F(n,e)&&Lr(n[e]);t=n[e]}u.value[e]=t,w.messages=u.value}function Se(e,t){u.value[e]=u.value[e]||{};let n={[e]:t};if(a)for(let e in n)F(n,e)&&Lr(n[e]);t=n[e],ke(t,u.value[e]),w.messages=u.value}function Ce(e){return d.value[e]||{}}function we(e,t){d.value[e]=t,w.datetimeFormats=d.value,Gn(w,e,t)}function Te(e,t){d.value[e]=M(d.value[e]||{},t),w.datetimeFormats=d.value,Gn(w,e,t)}function Ee(e){return f.value[e]||{}}function De(e,t){f.value[e]=t,w.numberFormats=f.value,Yn(w,e,t)}function Oe(e,t){f.value[e]=M(f.value[e]||{},t),w.numberFormats=f.value,Yn(w,e,t)}Gr++,n&&D&&((0,e.watch)(n.locale,e=>{s&&(c.value=e,w.locale=e,Ln(w,c.value,l.value))}),(0,e.watch)(n.fallbackLocale,e=>{s&&(l.value=e,w.fallbackLocale=e,Ln(w,c.value,l.value))}));let H={id:Gr,locale:te,fallbackLocale:ne,get inheritLocale(){return s},set inheritLocale(e){s=e,e&&n&&(c.value=n.locale.value,l.value=n.fallbackLocale.value,Ln(w,c.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:T,get modifiers(){return S},get pluralRules(){return C||{}},get isGlobal(){return i},get missingWarn(){return p},set missingWarn(e){p=e,w.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(e){m=e,w.fallbackWarn=m},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return g},set fallbackFormat(e){g=e,w.fallbackFormat=g},get warnHtmlMessage(){return b},set warnHtmlMessage(e){b=e,w.warnHtmlMessage=e},get escapeParameter(){return x},set escapeParameter(e){x=e,w.escapeParameter=e},t:le,getLocaleMessage:be,setLocaleMessage:xe,mergeLocaleMessage:Se,getPostTranslationHandler:ae,setPostTranslationHandler:oe,getMissingHandler:se,setMissingHandler:O,[Mr]:P};return H.datetimeFormats=re,H.numberFormats=ie,H.rt=A,H.te=_e,H.tm=ye,H.d=ue,H.n=de,H.getDateTimeFormat=Ce,H.setDateTimeFormat=we,H.mergeDateTimeFormat=Te,H.getNumberFormat=Ee,H.setNumberFormat=De,H.mergeNumberFormat=Oe,H[Nr]=r,H[Dr]=he,H[Or]=ge,H[kr]=N,process.env.NODE_ENV!==`production`&&(H[Ar]=e=>{w.__v_emitter=e},H[jr]=()=>{w.__v_emitter=void 0}),H}var Jr=`vue-i18n: composer properties`,Yr={"vue-devtools-plugin-vue-i18n":`Vue I18n DevTools`,"vue-i18n-resource-inspector":`Vue I18n DevTools`,"vue-i18n-timeline":`Vue I18n`},Xr={"vue-i18n-resource-inspector":`Search for scopes ...`},Zr={"vue-i18n-timeline":16764185},Qr;async function $r(e,t){return new Promise((n,r)=>{try{Cr({id:`vue-devtools-plugin-vue-i18n`,label:Yr[`vue-devtools-plugin-vue-i18n`],packageName:`vue-i18n`,homepage:`https://vue-i18n.intlify.dev`,logo:`https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png`,componentStateTypes:[Jr],app:e},r=>{Qr=r,r.on.visitComponentTree(({componentInstance:e,treeNode:n})=>{ti(e,n,t)}),r.on.inspectComponent(({componentInstance:e,instanceData:n})=>{e.__VUE_I18N__&&n&&(t.mode===`legacy`?e.__VUE_I18N__!==t.global.__composer&&ni(n,e.__VUE_I18N__):ni(n,e.__VUE_I18N__))}),r.addInspector({id:`vue-i18n-resource-inspector`,label:Yr[`vue-i18n-resource-inspector`],icon:`language`,treeFilterPlaceholder:Xr[`vue-i18n-resource-inspector`]}),r.on.getInspectorTree(n=>{n.app===e&&n.inspectorId===`vue-i18n-resource-inspector`&&ci(n,t)});let i=new Map;r.on.getInspectorState(async n=>{if(n.app===e&&n.inspectorId===`vue-i18n-resource-inspector`)if(r.unhighlightElement(),di(n,t),n.nodeId===`global`){if(!i.has(n.app)){let[e]=await r.getComponentInstances(n.app);i.set(n.app,e)}r.highlightElement(i.get(n.app))}else{let e=li(n.nodeId,t);e&&r.highlightElement(e)}}),r.on.editInspectorState(n=>{n.app===e&&n.inspectorId===`vue-i18n-resource-inspector`&&mi(n,t)}),r.addTimelineLayer({id:`vue-i18n-timeline`,label:Yr[`vue-i18n-timeline`],color:Zr[`vue-i18n-timeline`]}),n(!0)})}catch(e){console.error(e),r(!1)}})}function ei(e){return e.type.name||e.type.displayName||e.type.__file||`Anonymous`}function ti(e,t,n){let r=n.mode===`composition`?n.global:n.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){let n={label:`i18n (${ei(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(n)}}function ni(e,t){let n=Jr;e.state.push({type:n,key:`locale`,editable:!0,value:t.locale.value}),e.state.push({type:n,key:`availableLocales`,editable:!1,value:t.availableLocales}),e.state.push({type:n,key:`fallbackLocale`,editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:`inheritLocale`,editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:`messages`,editable:!1,value:ri(t.messages.value)}),e.state.push({type:n,key:`datetimeFormats`,editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:`numberFormats`,editable:!1,value:t.numberFormats.value})}function ri(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];L(r)&&`source`in r?t[n]=si(r):q(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:B(r)?t[n]=ri(r):t[n]=r}),t}var ii={"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"&":`&amp;`};function ai(e){return e.replace(/[<>"&]/g,oi)}function oi(e){return ii[e]||e}function si(e){return{_custom:{type:`function`,display:`<span>ƒ</span> ${e.source?`("${ai(e.source)}")`:`(?)`}`}}}function ci(e,t){e.rootNodes.push({id:`global`,label:`Global Scope`});let n=t.mode===`composition`?t.global:t.global.__composer;for(let[r,i]of t.__instances){let a=t.mode===`composition`?i:i.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${ei(r)} Scope`})}}function li(e,t){let n=null;if(e!==`global`){for(let[r,i]of t.__instances.entries())if(i.id.toString()===e){n=r;break}}return n}function ui(e,t){if(e===`global`)return t.mode===`composition`?t.global:t.global.__composer;{let n=Array.from(t.__instances.values()).find(t=>t.id.toString()===e);return n?t.mode===`composition`?n:n.__composer:null}}function di(e,t){let n=ui(e.nodeId,t);return n&&(e.state=fi(n)),null}function fi(e){let t={},n=`Locale related info`;t[n]=[{type:n,key:`locale`,editable:!0,value:e.locale.value},{type:n,key:`fallbackLocale`,editable:!0,value:e.fallbackLocale.value},{type:n,key:`availableLocales`,editable:!1,value:e.availableLocales},{type:n,key:`inheritLocale`,editable:!0,value:e.inheritLocale}];let r=`Locale messages info`;t[r]=[{type:r,key:`messages`,editable:!1,value:ri(e.messages.value)}];{let n=`Datetime formats info`;t[n]=[{type:n,key:`datetimeFormats`,editable:!1,value:e.datetimeFormats.value}];let r=`Datetime formats info`;t[r]=[{type:r,key:`numberFormats`,editable:!1,value:e.numberFormats.value}]}return t}function pi(e,t){if(Qr){let n;t&&`groupId`in t&&(n=t.groupId,delete t.groupId),Qr.addTimelineEvent({layerId:`vue-i18n-timeline`,event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e===`compile-error`?`error`:e===`fallback`||e===`missing`?`warning`:`default`}})}}function mi(e,t){let n=ui(e.nodeId,t);if(n){let[t]=e.path;t===`locale`&&R(e.state.value)?n.locale.value=e.state.value:t===`fallbackLocale`&&(R(e.state.value)||I(e.state.value)||B(e.state.value))?n.fallbackLocale.value=e.state.value:t===`inheritLocale`&&z(e.state.value)&&(n.inheritLocale=e.state.value)}}function hi(e){let t=R(e.locale)?e.locale:_n,n=R(e.fallbackLocale)||I(e.fallbackLocale)||V(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=L(e.missing)?e.missing:void 0,i=z(e.silentTranslationWarn)||pe(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=z(e.silentFallbackWarn)||pe(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=z(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,c=V(e.modifiers)?e.modifiers:{},l=e.pluralizationRules,u=L(e.postTranslation)?e.postTranslation:void 0,d=R(e.warnHtmlInMessage)?e.warnHtmlInMessage!==`off`:!0,f=!!e.escapeParameterHtml,p=z(e.sync)?e.sync:!0,m=e.messages;if(V(e.sharedMessages)){let t=e.sharedMessages;m=Object.keys(t).reduce((e,n)=>(M(e[n]||(e[n]={}),t[n]),e),m||{})}let{__i18n:h,__root:g,__injectWithOption:_}=e,v=e.datetimeFormats,y=e.numberFormats,b=e.flatJson;return{locale:t,fallbackLocale:n,messages:m,flatJson:b,datetimeFormats:v,numberFormats:y,missing:r,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:c,pluralRules:l,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__i18n:h,__root:g,__injectWithOption:_}}function gi(e={}){let t=qr(hi(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return z(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=z(e)?!e:e},get silentFallbackWarn(){return z(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=z(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?`warn`:`off`},set warnHtmlInMessage(e){t.warnHtmlMessage=e!==`off`},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){return Reflect.apply(t.t,t,[...e])},rt(...e){return Reflect.apply(t.rt,t,[...e])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return r.__extender=n,process.env.NODE_ENV!==`production`&&(r.__enableEmitter=e=>{let n=t;n[Ar]&&n[Ar](e)},r.__disableEmitter=()=>{let e=t;e[jr]&&e[jr]()}),r}function _i(e,t,n){return{beforeCreate(){let r=Hr();if(!r)throw Q(Z.UNEXPECTED_ERROR);let i=this.$options;if(i.i18n){let r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=vi(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=gi(r);let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=vi(e,i);else{this.$i18n=gi({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&Br(t,i,i),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!==`production`&&this.$i18n){let e=Hr();if(!e)return;let t=this.$i18n;e.__VUE_I18N__=t.__composer;let n=this.__v_emitter=Oe();t.__enableEmitter&&t.__enableEmitter(n),n.on(`*`,pi)}},unmounted(){let e=Hr();if(!e)throw Q(Z.UNEXPECTED_ERROR);let t=this.$i18n;process.env.NODE_ENV!==`production`&&e.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off(`*`,pi),delete this.__v_emitter),this.$i18n&&(t.__disableEmitter&&t.__disableEmitter(),delete e.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}function vi(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Mr](t.pluralizationRules||e.pluralizationRules);let n=Rr(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(t=>e.mergeLocaleMessage(t,n[t])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}var yi={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e===`parent`||e===`global`,default:`parent`},i18n:{type:Object}};function bi({slots:t},n){return n.length===1&&n[0]===`default`?(t.default?t.default():[]).reduce((t,n)=>[...t,...n.type===e.Fragment?n.children:[n]],[]):n.reduce((e,n)=>{let r=t[n];return r&&(e[n]=r()),e},N())}function xi(){return e.Fragment}var Si=(0,e.defineComponent)({name:`i18n-t`,props:M({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>j(e)||!isNaN(e)}},yi),setup(t,n){let{slots:r,attrs:i}=n,a=t.i18n||Ni({useScope:t.scope,__useComponent:!0});return()=>{let o=Object.keys(r).filter(e=>e[0]!==`_`),s=N();t.locale&&(s.locale=t.locale),t.plural!==void 0&&(s.plural=R(t.plural)?+t.plural:t.plural);let c=bi(n,o),l=a[Dr](t.keypath,c,s),u=M(N(),i);return(0,e.h)(R(t.tag)||B(t.tag)?t.tag:xi(),u,l)}}});function Ci(e){return I(e)&&!R(e[0])}function wi(t,n,r,i){let{slots:a,attrs:o}=n;return()=>{let n={part:!0},s=N();t.locale&&(n.locale=t.locale),R(t.format)?n.key=t.format:B(t.format)&&(R(t.format.key)&&(n.key=t.format.key),s=Object.keys(t.format).reduce((e,n)=>r.includes(n)?M(N(),e,{[n]:t.format[n]}):e,N()));let c=i(t.value,n,s),l=[n.key];I(c)?l=c.map((e,t)=>{let n=a[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];return Ci(r)&&(r[0].key=`${e.type}-${t}`),r}):R(c)&&(l=[c]);let u=M(N(),o);return(0,e.h)(R(t.tag)||B(t.tag)?t.tag:xi(),u,l)}}var Ti=(0,e.defineComponent)({name:`i18n-n`,props:M({value:{type:Number,required:!0},format:{type:[String,Object]}},yi),setup(e,t){let n=e.i18n||Ni({useScope:e.scope,__useComponent:!0});return wi(e,t,qn,(...e)=>n[kr](...e))}});function Ei(e,t){let n=e;if(e.mode===`composition`)return n.__getInstance(t)||e.global;{let r=n.__getInstance(t);return r==null?e.global.__composer:r.__composer}}function Di(t){let n=e=>{process.env.NODE_ENV!==`production`&&se(Ir($.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));let{instance:n,value:r}=e;if(!n||!n.$)throw Q(Z.UNEXPECTED_ERROR);let i=Ei(t,n.$),a=Oi(r);return[Reflect.apply(i.t,i,[...ki(a)]),i]};return{created:(r,i)=>{let[a,o]=n(i);D&&t.global===o&&(r.__i18nWatcher=(0,e.watch)(o.locale,()=>{i.instance&&i.instance.$forceUpdate()})),r.__composer=o,r.textContent=a},unmounted:e=>{D&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){let n=e.__composer,r=Oi(t);e.textContent=Reflect.apply(n.t,n,[...ki(r)])}},getSSRProps:e=>{let[t]=n(e);return{textContent:t}}}}function Oi(e){if(R(e))return{path:e};if(V(e)){if(!(`path`in e))throw Q(Z.REQUIRED_VALUE,`path`);return e}else throw Q(Z.INVALID_VALUE)}function ki(e){let{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return R(n)&&(o.locale=n),j(i)&&(o.plural=i),j(a)&&(o.plural=a),[t,s,o]}function Ai(e,t,...n){let r=V(n[0])?n[0]:{};(!z(r.globalInstall)||r.globalInstall)&&([Si.name,`I18nT`].forEach(t=>e.component(t,Si)),[Ti.name,`I18nN`].forEach(t=>e.component(t,Ti)),[Wi.name,`I18nD`].forEach(t=>e.component(t,Wi))),e.directive(`t`,Di(t))}var ji=A(`global-vue-i18n`);function Mi(e={}){let t=__VUE_I18N_LEGACY_API__&&z(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!==`production`&&t&&se(Ir($.DEPRECATE_LEGACY_MODE));let n=z(e.globalInjection)?e.globalInjection:!0,r=new Map,[i,a]=Pi(e,t),o=A(process.env.NODE_ENV===`production`?``:`vue-i18n`);function s(e){return r.get(e)||null}function c(e,t){r.set(e,t)}function l(e){r.delete(e)}let u={get mode(){return __VUE_I18N_LEGACY_API__&&t?`legacy`:`composition`},async install(e,...r){if(process.env.NODE_ENV!==`production`&&(e.__VUE_I18N__=u),e.__VUE_I18N_SYMBOL__=o,e.provide(e.__VUE_I18N_SYMBOL__,u),V(r[0])){let e=r[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let i=null;!t&&n&&(i=Ui(e,u.global)),__VUE_I18N_FULL_INSTALL__&&Ai(e,u,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin(_i(a,a.__composer,u));let s=e.unmount;if(e.unmount=()=>{i&&i(),u.dispose(),s()},process.env.NODE_ENV!==`production`){if(!await $r(e,u))throw Q(Z.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);let n=Oe();if(t){let e=a;e.__enableEmitter&&e.__enableEmitter(n)}else{let e=a;e[Ar]&&e[Ar](n)}n.on(`*`,pi)}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:s,__setInstance:c,__deleteInstance:l};return u}function Ni(e={}){let t=Hr();if(t==null)throw Q(Z.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Q(Z.NOT_INSTALLED);let n=Fi(t),r=Li(n),i=zr(t),a=Ii(e,i);if(a===`global`)return Br(r,e,i),r;if(a===`parent`){let i=Ri(n,t,e.__useComponent);return i??=(process.env.NODE_ENV!==`production`&&E(Ir($.NOT_FOUND_PARENT_SCOPE)),r),i}let o=n,s=o.__getInstance(t);if(s==null){let n=M({},e);`__i18n`in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),s=qr(n),o.__composerExtend&&(s[Pr]=o.__composerExtend(s)),Bi(o,t,s),o.__setInstance(t,s)}else process.env.NODE_ENV!==`production`&&a===`local`&&E(Ir($.DUPLICATE_USE_I18N_CALLING));return s}function Pi(t,n){let r=(0,e.effectScope)(),i=__VUE_I18N_LEGACY_API__&&n?r.run(()=>gi(t)):r.run(()=>qr(t));if(i==null)throw Q(Z.UNEXPECTED_ERROR);return[r,i]}function Fi(t){let n=(0,e.inject)(t.isCE?ji:t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Q(t.isCE?Z.NOT_INSTALLED_WITH_PROVIDE:Z.UNEXPECTED_ERROR);return n}function Ii(e,t){return me(e)?`__i18n`in t?`local`:`global`:e.useScope?e.useScope:`local`}function Li(e){return e.mode===`composition`?e.global:e.global.__composer}function Ri(e,t,n=!1){let r=null,i=t.root,a=zi(t,n);for(;a!=null;){let t=e;if(e.mode===`composition`)r=t.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){let e=t.__getInstance(a);e!=null&&(r=e.__composer,n&&r&&!r[Nr]&&(r=null))}if(r!=null||i===a)break;a=a.parent}return r}function zi(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Bi(t,n,r){let i=null;(0,e.onMounted)(()=>{if(process.env.NODE_ENV!==`production`){n.__VUE_I18N__=r,i=Oe();let e=r;e[Ar]&&e[Ar](i),i.on(`*`,pi)}},n),(0,e.onUnmounted)(()=>{let e=r;process.env.NODE_ENV!==`production`&&(i&&i.off(`*`,pi),e[jr]&&e[jr](),delete n.__VUE_I18N__),t.__deleteInstance(n);let a=e[Pr];a&&(a(),delete e[Pr])},n)}var Vi=[`locale`,`fallbackLocale`,`availableLocales`],Hi=[`t`,`rt`,`d`,`n`,`tm`,`te`];function Ui(t,n){let r=Object.create(null);return Vi.forEach(t=>{let i=Object.getOwnPropertyDescriptor(n,t);if(!i)throw Q(Z.UNEXPECTED_ERROR);let a=(0,e.isRef)(i.value)?{get(){return i.value.value},set(e){i.value.value=e}}:{get(){return i.get&&i.get()}};Object.defineProperty(r,t,a)}),t.config.globalProperties.$i18n=r,Hi.forEach(e=>{let r=Object.getOwnPropertyDescriptor(n,e);if(!r||!r.value)throw Q(Z.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${e}`,r)}),()=>{delete t.config.globalProperties.$i18n,Hi.forEach(e=>{delete t.config.globalProperties[`$${e}`]})}}var Wi=(0,e.defineComponent)({name:`i18n-d`,props:M({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},yi),setup(e,t){let n=e.i18n||Ni({useScope:e.scope,__useComponent:!0});return wi(e,t,Un,(...e)=>n[Or](...e))}});if(Tr(),xn(Vt),Cn(pn),Tn($t),process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__){let e=P();e.__INTLIFY__=!0,Ut(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;var Gi={unsaved:{tips:`UNSAVED CHANGES`,save:`SAVE`,cancel:`CANCEL`}},Ki={unsaved:{tips:`未保存的更改`,save:`保存`,cancel:`取消`}},qi=Mi({fallbackLocale:`en`,globalInjection:!0,locale:(()=>{let e=localStorage.getItem(`ogaLocale`);return e||=navigator.language,e!=null&&(e=`en|zh-CN`.indexOf(e)>-1?e:`en`),localStorage.setItem(`ogaLocale`,e),e})(),messages:{"zh-CN":{...Ki,main:{}},en:{...Gi,main:{}}}}),Ji={class:`oga-unsaved-label`},Yi={class:`oga-unsaved-button`},Xi=u((0,e.defineComponent)({__name:`index`,props:{tips:{type:String,default:()=>qi.global.t(`unsaved.tips`)},unsaved:{type:Boolean,default:()=>!1},offset:{type:String,default:()=>`200`},height:{type:Number,default:()=>60},top:{type:Number,default:()=>0},loading:{type:Boolean,default:()=>!1},round:{type:Boolean,default:()=>!1}},emits:[`cancel`,`update:unsaved`,`confirmed`],setup(t,{emit:n}){let r=t,i=(0,e.useAttrs)();i={...i,...r};let a=``,o=``,s=``;(()=>{a=qi.global.t(`unsaved.cancel`),o=qi.global.t(`unsaved.save`);let e=[],t=r.offset;/^[0-9]*[1-9][0-9]$/.test(t)&&(t+=`px`),t!==`200px`&&e.push(`width: calc(100% - ${t})`),r.height!==60&&e.push(`height: ${r.height}px`),r.top&&r.top!==60&&r.top>-1&&e.push(`top: ${r.top}px`),s=e.join(`;`)})();let c=n,l=()=>{c(`cancel`),c(`update:unsaved`,!1)},u=()=>{c(`confirmed`)};return(n,r)=>{let i=(0,e.resolveComponent)(`el-button`);return(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:`oga-unsaved`,style:(0,e.normalizeStyle)((0,e.unref)(s))},[(0,e.createElementVNode)(`div`,Ji,(0,e.toDisplayString)(t.tips),1),(0,e.createElementVNode)(`div`,Yi,[(0,e.createVNode)(i,{type:`info`,round:t.round,onClick:l,disabled:t.loading},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(a)),1)]),_:1},8,[`round`,`disabled`]),(0,e.createVNode)(i,{type:`primary`,round:t.round,onClick:u,loading:t.loading},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(o)),1)]),_:1},8,[`round`,`loading`])])],4)),[[e.vShow,t.unsaved]])}}}),[[`__scopeId`,`data-v-0dfcd4f8`]]),Zi=[f,v,S,ne,re,ae,{install(e){e.component(`OgaUnsaved`,Xi)}}];return{install(e){Zi.map(t=>e.use(t))}}});
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t(require(`vue`)):typeof define==`function`&&define.amd?define([`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,e.index=t(e.Vue))})(this,function(e){var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e};e=((e,r,i)=>(i=e==null?{}:t(a(e)),s(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)))(e);let c=e=>!e||Array.isArray(e)&&e.length===0,l=e=>typeof e==`function`&&/\{\s*\[native code]\s*}/.test(e.toString()),u=e=>!l(e),d=e=>e==null||e.trim().length===0,f=e=>!d(e),p=e=>typeof e==`number`?Number.isInteger(e)&&e>0:typeof e==`string`?/^[1-9]\d*$/.test(e):!1;var m=(0,e.defineComponent)({__name:`index`,props:{modelValue:{type:String,default:``},placeholder:{type:String,default:``},size:{type:String,default:``},label:{type:String,default:``},borderless:{type:Boolean,default:!1},shrink:{type:Boolean,default:!0},errorTips:{type:Boolean,default:!0},round:{type:Boolean,default:!1}},setup(t){let n=(0,e.ref)(``),r=(0,e.ref)(!1),i=t,a=(0,e.useAttrs)();return a={...a,...i},n.value=i.modelValue,r.value=d(n.value),(0,e.onMounted)(()=>{r.value=d(i.modelValue)}),(0,e.watch)(()=>i.modelValue,(e,t)=>{r.value=d(e),e!==t&&(n.value=i.modelValue)}),(i,o)=>{let s=(0,e.resolveComponent)(`el-input`);return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`el-input-material`,`${t.borderless?`borderless`:``}${t.errorTips?``:` no-tips`}`])},[t.borderless?(0,e.createCommentVNode)(`v-if`,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`label`,{key:0,class:(0,e.normalizeClass)([`el-input-material-label`,t.shrink||r.value?`active`:``])},(0,e.toDisplayString)(t.label),3)),(0,e.createVNode)(s,(0,e.mergeProps)((0,e.unref)(a),{modelValue:(0,e.unref)(n),"onUpdate:modelValue":o[0]||=t=>(0,e.isRef)(n)?n.value=t:n=t,class:t.round?`is-round`:``,placeholder:t.shrink?t.placeholder||``:t.label}),(0,e.createSlots)({_:2},[(0,e.useSlots)().append?{name:`append`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(i.$slots,`append`,{},void 0,!0)]),key:`0`}:void 0,(0,e.useSlots)().prepend?{name:`prepend`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(i.$slots,`prepend`,{},void 0,!0)]),key:`1`}:void 0,(0,e.useSlots)().default?{name:`default`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(i.$slots,`default`,{},void 0,!0)]),key:`2`}:void 0,(0,e.useSlots)().suffix?{name:`suffix`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(i.$slots,`suffix`,{},void 0,!0)]),key:`3`}:void 0,(0,e.useSlots)().suffix?{name:`suffix`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(i.$slots,`suffix`,{},void 0,!0)]),key:`4`}:void 0]),1040,[`modelValue`,`class`,`placeholder`])],2)}}}),h=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},g=h(m,[[`__scopeId`,`data-v-5df2784c`]]),_={install(e){e.component(`OgaInput`,g)}},v=h((0,e.defineComponent)({__name:`tag`,props:{modelValue:{type:Array,default:()=>[]},placeholder:{type:String,default:``},size:{type:String,default:``},label:{type:String,default:``},borderless:{type:Boolean,default:!1},shrink:{type:Boolean,default:!0},errorTips:{type:Boolean,default:!0},round:{type:Boolean,default:!1}},setup(t){let n=(0,e.ref)([]),r=(0,e.ref)(!1),i=t,a=(0,e.useAttrs)();return a={...a,...i},n.value=i.modelValue,r.value=c(n.value),(0,e.onMounted)(()=>{r.value=!i.modelValue}),(0,e.watch)(()=>i.modelValue,(e,t)=>{r.value=c(e),e!==t&&(n.value=i.modelValue)}),(i,o)=>{let s=(0,e.resolveComponent)(`el-input-tag`);return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:(0,e.normalizeClass)([`el-input-material`,`${t.borderless?`borderless`:``}${t.errorTips?``:` no-tips`}`])},[t.borderless?(0,e.createCommentVNode)(`v-if`,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`label`,{key:0,class:(0,e.normalizeClass)([`el-input-material-label`,t.shrink||r.value?`active`:``])},(0,e.toDisplayString)(t.label),3)),(0,e.createVNode)(s,(0,e.mergeProps)((0,e.unref)(a),{modelValue:(0,e.unref)(n),"onUpdate:modelValue":o[0]||=t=>(0,e.isRef)(n)?n.value=t:n=t,class:t.round?`is-round`:``,placeholder:t.shrink?t.placeholder||``:t.label}),(0,e.createSlots)({_:2},[(0,e.useSlots)().tag?{name:`tag`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(i.$slots,`tag`,{},void 0,!0)]),key:`0`}:void 0,(0,e.useSlots)().default?{name:`default`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(i.$slots,`default`,{},void 0,!0)]),key:`1`}:void 0,(0,e.useSlots)().prefix?{name:`prefix`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(i.$slots,`prefix`,{},void 0,!0)]),key:`2`}:void 0,(0,e.useSlots)().suffix?{name:`suffix`,fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(i.$slots,`suffix`,{},void 0,!0)]),key:`3`}:void 0]),1040,[`modelValue`,`class`,`placeholder`])],2)}}}),[[`__scopeId`,`data-v-2600c64e`]]),y={install(e){e.component(`OgaInputTag`,v)}},b={key:0},x={key:1,class:`oga-section-action`},S={key:2,class:`oga-section-description`},C={key:3,class:`oga-section-content`},w=(0,e.defineComponent)({__name:`index`,props:{heading:{type:String,default:``},description:{type:String,default:``},borderRadius:{type:Number,default:0}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`fieldset`,{class:(0,e.normalizeClass)([`oga-section`,t.description?`has-description`:``]),style:(0,e.normalizeStyle)(t.borderRadius>0?`border-radius: ${t.borderRadius}px`:``)},[t.heading?((0,e.openBlock)(),(0,e.createElementBlock)(`legend`,b,(0,e.toDisplayString)(t.heading),1)):(0,e.createCommentVNode)(`v-if`,!0),n.$slots.header?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,x,[(0,e.renderSlot)(n.$slots,`header`)])):(0,e.createCommentVNode)(`v-if`,!0),t.description?((0,e.openBlock)(),(0,e.createElementBlock)(`p`,S,(0,e.toDisplayString)(t.description),1)):(0,e.createCommentVNode)(`v-if`,!0),n.$slots.default?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,C,[(0,e.renderSlot)(n.$slots,`default`)])):(0,e.createCommentVNode)(`v-if`,!0)],6))}}),T={install(e){e.component(`OgaSection`,w)}},E={class:`oga-layout`},D={key:0,class:`oga-layout-aside-header`},O={class:`oga-layout-aside-content`},ee={key:1,class:`oga-layout-aside-footer`},te=(0,e.defineComponent)({__name:`index`,props:{isRouterView:{type:Boolean,default:()=>!0},copyright:{type:String,default:()=>``},asideCss:{type:String,default:()=>``},asideTop:{type:Number,default:()=>0},asideBottom:{type:Number,default:()=>0},asideWidth:{type:Number,default:()=>200},foldIcon:{type:String,default:()=>`el-icon-s-fold`},foldIconHeight:{type:Number,default:()=>60},maskBackground:{type:String,default:()=>``},headerColor:{type:String,default:()=>`#030b2c`},footerIndent:{type:Number,default:()=>200}},emits:[`aside`],setup(t,{emit:n}){let r=(0,e.ref)(new Date().getFullYear()),i=(0,e.ref)({}),a=(0,e.ref)(``),o=(0,e.ref)(``),s=(0,e.ref)(``),c=(0,e.ref)(``),l=(0,e.ref)({}),u=(0,e.useSlots)(),f=(0,e.ref)(!1),p=t,m={};p.asideTop>0&&(m.top=`${p.asideTop}px`),(p.asideBottom>0||p.asideTop>0)&&(m.height=`calc(100% - ${p.asideTop+p.asideBottom}px)`),i.value={"--asideWidth":p.asideWidth,...m},l.value={"--asideWidth":p.asideWidth},a.value=d(p.maskBackground)?``:`background-color: ${p.maskBackground}`,o.value=p.foldIconHeight!==60&&p.foldIconHeight>0?`width: ${p.foldIconHeight}px;height:${p.foldIconHeight}px`:``,s.value=p.foldIconHeight!==60&&p.foldIconHeight>0?`font-size: ${p.foldIconHeight/2}px`:``,c.value=p.footerIndent>0&&p.footerIndent!==200?`text-indent:${p.footerIndent}px`:``;let h=n,g=()=>{h(`aside`)};return(n,o)=>{let s=(0,e.resolveComponent)(`router-view`);return(0,e.openBlock)(),(0,e.createElementBlock)(`section`,E,[(0,e.unref)(u).aside?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,style:(0,e.normalizeStyle)((0,e.unref)(i)),class:(0,e.normalizeClass)([`oga-layout-aside`,`${f.value?`active `:``}${t.asideCss}${n.$slots.asideFooter?` has-footer`:``}`]),onClick:g},[n.$slots.asideHeader?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,D,[(0,e.renderSlot)(n.$slots,`asideHeader`)])):(0,e.createCommentVNode)(`v-if`,!0),(0,e.createElementVNode)(`div`,O,[(0,e.renderSlot)(n.$slots,`aside`)]),n.$slots.asideFooter?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,ee,[(0,e.renderSlot)(n.$slots,`asideFooter`)])):(0,e.createCommentVNode)(`v-if`,!0)],6)):(0,e.createCommentVNode)(`v-if`,!0),n.$slots.header?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:`oga-header`,style:(0,e.normalizeStyle)((0,e.unref)(l))},[(0,e.renderSlot)(n.$slots,`header`)],4)):(0,e.createCommentVNode)(`v-if`,!0),t.isRouterView?((0,e.openBlock)(),(0,e.createBlock)(s,{key:2})):(0,e.createCommentVNode)(`v-if`,!0),(0,e.renderSlot)(n.$slots,`default`),n.$slots.footer?(0,e.renderSlot)(n.$slots,`footer`,{key:3}):(0,e.createCommentVNode)(`v-if`,!0),t.copyright?((0,e.openBlock)(),(0,e.createElementBlock)(`footer`,{key:4,class:`oga-layout-footer`,style:(0,e.normalizeStyle)((0,e.unref)(c))},`© `+(0,e.toDisplayString)(r.value)+` `+(0,e.toDisplayString)(t.copyright),5)):(0,e.createCommentVNode)(`v-if`,!0),(0,e.createElementVNode)(`div`,{class:(0,e.normalizeClass)([`oga-layout-mask`,f.value?`active`:``]),style:(0,e.normalizeStyle)(`width: calc(100% - ${(0,e.unref)(l)}px);${(0,e.unref)(a)}`),onClick:o[0]||=e=>f.value=!1},null,6)])}}}),ne={install(e){e.component(`OgaLayout`,te)}},k={ref:`refLayoutPage`,class:`oga-page`},re=(0,e.defineComponent)({__name:`index`,props:{offset:{type:Number,default:()=>240},contentWidth:{type:Number,default:()=>90},fullscreen:{type:Boolean,default:()=>!1},loading:{type:Boolean,default:()=>!1},padding:{type:Boolean,default:()=>!0},loadingText:{type:String,default:()=>`i18n.t('pageAborted.loading')`},loadingBackgroundColor:String,googleStyle:{type:Boolean,default:()=>!1},percentage:{type:Number,default:()=>0}},setup(t){let n=(0,e.ref)({}),r=t;return n.value={"--offset":r.offset},(r,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(`main`,{class:`oga-layout-main`,style:(0,e.normalizeStyle)((0,e.unref)(n))},[r.$slots.header?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:0,class:(0,e.normalizeClass)([`oga-page-header`,t.padding?`has-padding`:``])},[(0,e.renderSlot)(r.$slots,`header`)],2)):(0,e.createCommentVNode)(`v-if`,!0),(0,e.createElementVNode)(`section`,k,[(0,e.createElementVNode)(`section`,{class:(0,e.normalizeClass)([`oga-page-content`,t.padding?`has-padding`:``])},[(0,e.renderSlot)(r.$slots,`default`)],2)],512),r.$slots.footer?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{key:1,class:(0,e.normalizeClass)([`oga-page-footer`,t.padding?`has-padding`:``])},[(0,e.renderSlot)(r.$slots,`footer`)],2)):(0,e.createCommentVNode)(`v-if`,!0)],4))}}),ie={install(e){e.component(`OgaPage`,re)}},ae=h((0,e.defineComponent)({__name:`index`,props:{borderless:{type:Boolean,default:()=>!0}},setup(t){let n=t,r=(0,e.useAttrs)();return r={...r,...n},(n,i)=>{let a=(0,e.resolveComponent)(`el-form`);return(0,e.openBlock)(),(0,e.createBlock)(a,(0,e.mergeProps)({class:[`oga-form`,t.borderless?`borderless`:``]},(0,e.unref)(r)),{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`,{},void 0,!0)]),_:3},16,[`class`])}}}),[[`__scopeId`,`data-v-1f902fa8`]]),oe={install(e){e.component(`OgaForm`,ae)}},se=h((0,e.defineComponent)({__name:`index`,props:{showMessage:{type:Boolean,default:()=>!1}},setup(t){let n=t,r=(0,e.useAttrs)();return r={...r,...n},(n,i)=>{let a=(0,e.resolveComponent)(`el-form-item`);return(0,e.openBlock)(),(0,e.createBlock)(a,(0,e.mergeProps)({class:t.showMessage?``:`gutter-less`},(0,e.unref)(r)),{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,`default`,{},void 0,!0)]),_:3},16,[`class`])}}}),[[`__scopeId`,`data-v-d900973a`]]),ce={install(e){e.component(`OgaFormItem`,se)}};function le(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}var ue={};function de(e){ue[e]||(ue[e]=!0,le(e))}var fe=typeof window<`u`,pe,me;if(process.env.NODE_ENV!==`production`){let e=fe&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(pe=t=>{e.mark(t)},me=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}var he=/\{([0-9a-zA-Z]+)\}/g;function ge(e,...t){return t.length===1&&j(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(he,(e,n)=>t.hasOwnProperty(n)?t[n]:``)}var _e=(e,t=!1)=>t?Symbol.for(e):Symbol(e),ve=(e,t,n)=>ye({l:e,k:t,s:n}),ye=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),be=e=>typeof e==`number`&&isFinite(e),xe=e=>ze(e)===`[object Date]`,Se=e=>ze(e)===`[object RegExp]`,Ce=e=>Be(e)&&Object.keys(e).length===0,we=Object.assign,Te=Object.create,Ee=(e=null)=>Te(e),De,Oe=()=>De||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:Ee();function ke(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`).replace(/\//g,`&#x2F;`).replace(/=/g,`&#x3D;`)}function Ae(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function je(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${Ae(n)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${Ae(n)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!==`production`&&le(`Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages.`),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,`$1&#111;n$3`)),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(t=>{e=e.replace(t,`$1javascript&#58;`)}),e}var Me=Object.prototype.hasOwnProperty;function Ne(e,t){return Me.call(e,t)}var Pe=Array.isArray,Fe=e=>typeof e==`function`,A=e=>typeof e==`string`,Ie=e=>typeof e==`boolean`,j=e=>typeof e==`object`&&!!e,Le=e=>j(e)&&Fe(e.then)&&Fe(e.catch),Re=Object.prototype.toString,ze=e=>Re.call(e),Be=e=>ze(e)===`[object Object]`,Ve=e=>e==null?``:Pe(e)||Be(e)&&e.toString===Re?JSON.stringify(e,null,2):String(e);function He(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}var Ue=2;function We(e,t=0,n=e.length){let r=e.split(/\r?\n/),i=0,a=[];for(let e=0;e<r.length;e++)if(i+=r[e].length+1,i>=t){for(let o=e-Ue;o<=e+Ue||n>i;o++){if(o<0||o>=r.length)continue;let s=o+1;a.push(`${s}${` `.repeat(3-String(s).length)}| ${r[o]}`);let c=r[o].length;if(o===e){let e=t-(i-c)+1,r=Math.max(1,n>i?c-e:n-t);a.push(` | `+` `.repeat(e)+`^`.repeat(r))}else if(o>e){if(n>i){let e=Math.max(Math.min(n-i,c),1);a.push(` | `+`^`.repeat(e))}i+=c+1}}break}return a.join(`
2
+ `)}function Ge(){let e=new Map;return{events:e,on(t,n){let r=e.get(t);r&&r.push(n)||e.set(t,[n])},off(t,n){let r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map(e=>e(n)),(e.get(`*`)||[]).slice().map(e=>e(t,n))}}}var Ke=e=>!j(e)||Pe(e);function qe(e,t){if(Ke(e)||Ke(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{r!==`__proto__`&&(j(e[r])&&!j(t[r])&&(t[r]=Array.isArray(e[r])?[]:Ee()),Ke(t[r])||Ke(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}function Je(e,t,n){return{line:e,column:t,offset:n}}function Ye(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var M={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},Xe={[M.EXPECTED_TOKEN]:`Expected token: '{0}'`,[M.INVALID_TOKEN_IN_PLACEHOLDER]:`Invalid token in placeholder: '{0}'`,[M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:`Unterminated single quote in placeholder`,[M.UNKNOWN_ESCAPE_SEQUENCE]:`Unknown escape sequence: \\{0}`,[M.INVALID_UNICODE_ESCAPE_SEQUENCE]:`Invalid unicode escape sequence: {0}`,[M.UNBALANCED_CLOSING_BRACE]:`Unbalanced closing brace`,[M.UNTERMINATED_CLOSING_BRACE]:`Unterminated closing brace`,[M.EMPTY_PLACEHOLDER]:`Empty placeholder`,[M.NOT_ALLOW_NEST_PLACEHOLDER]:`Not allowed nest placeholder`,[M.INVALID_LINKED_FORMAT]:`Invalid linked format`,[M.MUST_HAVE_MESSAGES_IN_PLURAL]:`Plural must have messages`,[M.UNEXPECTED_EMPTY_LINKED_MODIFIER]:`Unexpected empty linked modifier`,[M.UNEXPECTED_EMPTY_LINKED_KEY]:`Unexpected empty linked key`,[M.UNEXPECTED_LEXICAL_ANALYSIS]:`Unexpected lexical analysis in token: '{0}'`,[M.UNHANDLED_CODEGEN_NODE_TYPE]:`unhandled codegen node type: '{0}'`,[M.UNHANDLED_MINIFIER_NODE_TYPE]:`unhandled mimifier node type: '{0}'`};function Ze(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=process.env.NODE_ENV===`production`?e:ge((i||Xe)[e]||``,...a||[]),s=SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}function Qe(e){throw e}var $e=/<\/?[\w\s="/.':;#-\/]+>/,et=e=>$e.test(e),tt=` `,nt=`\r`,rt=`
3
+ `,it=`\u2028`,at=`\u2029`;function ot(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===nt&&t[e+1]===rt,s=e=>t[e]===rt,c=e=>t[e]===at,l=e=>t[e]===it,u=e=>o(e)||s(e)||c(e)||l(e),d=()=>n,f=()=>r,p=()=>i,m=()=>a,h=e=>o(e)||c(e)||l(e)?rt:t[e],g=()=>h(n),_=()=>h(n+a);function v(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function x(e=0){a=e}function S(){let e=n+a;for(;e!==n;)v();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:_,next:v,peek:y,reset:b,resetPeek:x,skipToPeek:S}}var st=void 0,ct=`'`,lt=`tokenizer`;function ut(e,t={}){let n=t.location!==!1,r=ot(e),i=()=>r.index(),a=()=>Je(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();t.column+=r,t.offset+=r,u&&u(Ze(e,n?Ye(a.startLoc,t):null,{domain:lt,args:i}))}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=Ye(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(M.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===tt||e.currentPeek()===rt;)t+=e.currentPeek(),e.peek();return t}function g(e){let t=h(e);return e.skipToPeek(),t}function _(e){if(e===st)return!1;let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function v(e){if(e===st)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57}function y(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function b(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=v(e.currentPeek()===`-`?e.peek():e.currentPeek());return e.resetPeek(),r}function x(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===ct;return e.resetPeek(),r}function S(e,t){let{currentType:n}=t;if(n!==7)return!1;h(e);let r=e.currentPeek()===`.`;return e.resetPeek(),r}function C(e,t){let{currentType:n}=t;if(n!==8)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function w(e,t){let{currentType:n}=t;if(!(n===7||n===11))return!1;h(e);let r=e.currentPeek()===`:`;return e.resetPeek(),r}function T(e,t){let{currentType:n}=t;if(n!==9)return!1;let r=()=>{let t=e.currentPeek();return t===`{`?_(e.peek()):t===`@`||t===`|`||t===`:`||t===`.`||t===tt||!t?!1:t===rt?(e.peek(),r()):D(e,!1)},i=r();return e.resetPeek(),i}function E(e){h(e);let t=e.currentPeek()===`|`;return e.resetPeek(),t}function D(e,t=!0){let n=(t=!1,r=``)=>{let i=e.currentPeek();return i===`{`||i===`@`||!i?t:i===`|`?!(r===tt||r===rt):i===tt?(e.peek(),n(!0,tt)):i===rt?(e.peek(),n(!0,rt)):!0},r=n();return t&&e.resetPeek(),r}function O(e,t){let n=e.currentChar();return n===st?st:t(n)?(e.next(),n):null}function ee(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function te(e){return O(e,ee)}function ne(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function k(e){return O(e,ne)}function re(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function ie(e){return O(e,re)}function ae(e){let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function oe(e){return O(e,ae)}function se(e){let t=``,n=``;for(;t=ie(e);)n+=t;return n}function ce(e){let t=``;for(;;){let n=e.currentChar();if(n===`{`||n===`}`||n===`@`||n===`|`||!n)break;if(n===tt||n===rt)if(D(e))t+=n,e.next();else if(E(e))break;else t+=n,e.next();else t+=n,e.next()}return t}function le(e){g(e);let t=``,n=``;for(;t=k(e);)n+=t;let r=e.currentChar();if(r&&r!==`}`&&r!==st&&r!==tt&&r!==rt&&r!==` `){let t=ge(e);return d(M.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n+t),n+t}return e.currentChar()===st&&d(M.UNTERMINATED_CLOSING_BRACE,a(),0),n}function ue(e){g(e);let t=``;return e.currentChar()===`-`?(e.next(),t+=`-${se(e)}`):t+=se(e),e.currentChar()===st&&d(M.UNTERMINATED_CLOSING_BRACE,a(),0),t}function de(e){return e!==ct&&e!==rt}function fe(e){g(e),m(e,`'`);let t=``,n=``;for(;t=O(e,de);)t===`\\`?n+=pe(e):n+=t;let r=e.currentChar();return r===rt||r===st?(d(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===rt&&(e.next(),m(e,`'`)),n):(m(e,`'`),n)}function pe(e){let t=e.currentChar();switch(t){case`\\`:case`'`:return e.next(),`\\${t}`;case`u`:return me(e,t,4);case`U`:return me(e,t,6);default:return d(M.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),``}}function me(e,t,n){m(e,t);let r=``;for(let i=0;i<n;i++){let n=oe(e);if(!n){d(M.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function he(e){return e!==`{`&&e!==`}`&&e!==tt&&e!==rt}function ge(e){g(e);let t=``,n=``;for(;t=O(e,he);)n+=t;return n}function _e(e){let t=``,n=``;for(;t=te(e);)n+=t;return n}function ve(e){let t=n=>{let r=e.currentChar();return r===`{`||r===`@`||r===`|`||r===`(`||r===`)`||!r||r===tt?n:(n+=r,e.next(),t(n))};return t(``)}function ye(e){g(e);let t=m(e,`|`);return g(e),t}function be(e,t){let n=null;switch(e.currentChar()){case`{`:return t.braceNest>=1&&d(M.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=f(t,2,`{`),g(e),t.braceNest++,n;case`}`:return t.braceNest>0&&t.currentType===2&&d(M.EMPTY_PLACEHOLDER,a(),0),e.next(),n=f(t,3,`}`),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),n;case`@`:return t.braceNest>0&&d(M.UNTERMINATED_CLOSING_BRACE,a(),0),n=xe(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(E(e))return t.braceNest>0&&d(M.UNTERMINATED_CLOSING_BRACE,a(),0),n=f(t,1,ye(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(t.currentType===4||t.currentType===5||t.currentType===6))return d(M.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,Se(e,t);if(r=y(e,t))return n=f(t,4,le(e)),g(e),n;if(i=b(e,t))return n=f(t,5,ue(e)),g(e),n;if(o=x(e,t))return n=f(t,6,fe(e)),g(e),n;if(!r&&!i&&!o)return n=f(t,12,ge(e)),d(M.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function xe(e,t){let{currentType:n}=t,r=null,i=e.currentChar();switch((n===7||n===8||n===11||n===9)&&(i===rt||i===tt)&&d(M.INVALID_LINKED_FORMAT,a(),0),i){case`@`:return e.next(),r=f(t,7,`@`),t.inLinked=!0,r;case`.`:return g(e),e.next(),f(t,8,`.`);case`:`:return g(e),e.next(),f(t,9,`:`);default:return E(e)?(r=f(t,1,ye(e)),t.braceNest=0,t.inLinked=!1,r):S(e,t)||w(e,t)?(g(e),xe(e,t)):C(e,t)?(g(e),f(t,11,_e(e))):T(e,t)?(g(e),i===`{`?be(e,t)||r:f(t,10,ve(e))):(n===7&&d(M.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,Se(e,t))}}function Se(e,t){let n={type:13};if(t.braceNest>0)return be(e,t)||p(t);if(t.inLinked)return xe(e,t)||p(t);switch(e.currentChar()){case`{`:return be(e,t)||p(t);case`}`:return d(M.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),f(t,3,`}`);case`@`:return xe(e,t)||p(t);default:if(E(e))return n=f(t,1,ye(e)),t.braceNest=0,t.inLinked=!1,n;if(D(e))return f(t,0,ce(e));break}return n}function Ce(){let{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=i(),c.startLoc=a(),r.currentChar()===st?f(c,13):Se(r,c)}return{nextToken:Ce,currentOffset:i,currentPosition:a,context:l}}var dt=`parser`,ft=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function pt(e,t,n){switch(e){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):`�`}}}function mt(e={}){let t=e.location!==!1,{onError:n}=e;function r(e,r,i,a,...o){let s=e.currentPosition();s.offset+=a,s.column+=a,n&&n(Ze(r,t?Ye(i,s):null,{domain:dt,args:o}))}function i(e,n,r){let i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){let n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(5,n,r);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function c(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(4,n,r);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function l(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(9,n,r);return o.value=t.replace(ft,pt),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function u(e){let t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,c=i(8,o,s);return t.type===11?(t.value??r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,ht(t)),c.value=t.value||``,a(c,e.currentOffset(),e.currentPosition()),{node:c}):(r(e,M.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value=``,a(c,o,s),{nextConsumeToken:t,node:c})}function d(e,t){let n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function f(e){let t=e.context(),n=i(6,t.offset,t.startLoc),o=e.nextToken();if(o.type===8){let t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(o.type!==9&&r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ht(o)),o=e.nextToken(),o.type===2&&(o=e.nextToken()),o.type){case 10:o.value??r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ht(o)),n.key=d(e,o.value||``);break;case 4:o.value??r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ht(o)),n.key=c(e,o.value||``);break;case 5:o.value??r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ht(o)),n.key=s(e,o.value||``);break;case 6:o.value??r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ht(o)),n.key=l(e,o.value||``);break;default:{r(e,M.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);let s=e.context(),c=i(7,s.offset,s.startLoc);return c.value=``,a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){let t=e.context(),n=i(2,t.currentType===1?e.currentOffset():t.offset,t.currentType===1?t.endLoc:t.startLoc);n.items=[];let u=null;do{let i=u||e.nextToken();switch(u=null,i.type){case 0:i.value??r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ht(i)),n.items.push(o(e,i.value||``));break;case 5:i.value??r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ht(i)),n.items.push(s(e,i.value||``));break;case 4:i.value??r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ht(i)),n.items.push(c(e,i.value||``));break;case 6:i.value??r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ht(i)),n.items.push(l(e,i.value||``));break;case 7:{let t=f(e);n.items.push(t.node),u=t.nextConsumeToken||null;break}}}while(t.currentType!==13&&t.currentType!==1);return a(n,t.currentType===1?t.lastOffset:e.currentOffset(),t.currentType===1?t.lastEndLoc:e.currentPosition()),n}function m(e,t,n,o){let s=e.context(),c=o.items.length===0,l=i(1,t,n);l.cases=[],l.cases.push(o);do{let t=p(e);c||=t.items.length===0,l.cases.push(t)}while(s.currentType!==13);return c&&r(e,M.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}function h(e){let t=e.context(),{offset:n,startLoc:r}=t,i=p(e);return t.currentType===13?i:m(e,n,r,i)}function g(n){let o=ut(n,we({},e)),s=o.context(),c=i(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=h(o),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),s.currentType!==13&&r(o,M.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||``),a(c,o.currentOffset(),o.currentPosition()),c}return{parse:g}}function ht(e){if(e.type===13)return`EOF`;let t=(e.value||``).replace(/\r?\n/gu,`\\n`);return t.length>10?t.slice(0,9)+`…`:t}function eee(e,t={}){let n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function gt(e,t){for(let n=0;n<e.length;n++)_t(e[n],t)}function _t(e,t){switch(e.type){case 1:gt(e.cases,t),t.helper(`plural`);break;case 2:gt(e.items,t);break;case 6:_t(e.key,t),t.helper(`linked`),t.helper(`type`);break;case 5:t.helper(`interpolate`),t.helper(`list`);break;case 4:t.helper(`interpolate`),t.helper(`named`);break}}function vt(e,t={}){let n=eee(e);n.helper(`normalize`),e.body&&_t(e.body,n);let r=n.context();e.helpers=Array.from(r.helpers)}function tee(e){let t=e.body;return t.type===2?yt(t):t.cases.forEach(e=>yt(e)),e}function yt(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let n=0;n<e.items.length;n++){let r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=He(t);for(let t=0;t<e.items.length;t++){let n=e.items[t];(n.type===3||n.type===9)&&delete n.value}}}}var nee=`minifier`;function bt(e){switch(e.t=e.type,e.type){case 0:{let t=e;bt(t.body),t.b=t.body,delete t.body;break}case 1:{let t=e,n=t.cases;for(let e=0;e<n.length;e++)bt(n[e]);t.c=n,delete t.cases;break}case 2:{let t=e,n=t.items;for(let e=0;e<n.length;e++)bt(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{let t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{let t=e;bt(t.key),t.k=t.key,delete t.key,t.modifier&&(bt(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{let t=e;t.i=t.index,delete t.index;break}case 4:{let t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!==`production`)throw Ze(M.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:nee,args:[e.type]})}delete e.type}var ree=`parser`;function iee(e,t){let{sourceMap:n,filename:r,breakLineCode:i,needIndent:a}=t,o=t.location!==!1,s={filename:r,code:``,column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:a,indentLevel:0};o&&e.loc&&(s.source=e.loc.source);let c=()=>s;function l(e,t){s.code+=e}function u(e,t=!0){let n=t?i:``;l(a?n+` `.repeat(e):n)}function d(e=!0){let t=++s.indentLevel;e&&u(t)}function f(e=!0){let t=--s.indentLevel;e&&u(t)}function p(){u(s.indentLevel)}return{context:c,push:l,indent:d,deindent:f,newline:p,helper:e=>`_${e}`,needIndent:()=>s.needIndent}}function aee(e,t){let{helper:n}=e;e.push(`${n(`linked`)}(`),wt(e,t.key),t.modifier?(e.push(`, `),wt(e,t.modifier),e.push(`, _type`)):e.push(`, undefined, _type`),e.push(`)`)}function xt(e,t){let{helper:n,needIndent:r}=e;e.push(`${n(`normalize`)}([`),e.indent(r());let i=t.items.length;for(let n=0;n<i&&(wt(e,t.items[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}function St(e,t){let{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n(`plural`)}([`),e.indent(r());let i=t.cases.length;for(let n=0;n<i&&(wt(e,t.cases[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}}function Ct(e,t){t.body?wt(e,t.body):e.push(`null`)}function wt(e,t){let{helper:n}=e;switch(t.type){case 0:Ct(e,t);break;case 1:St(e,t);break;case 2:xt(e,t);break;case 6:aee(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n(`interpolate`)}(${n(`list`)}(${t.index}))`,t);break;case 4:e.push(`${n(`interpolate`)}(${n(`named`)}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!==`production`)throw Ze(M.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ree,args:[t.type]})}}var Tt=(e,t={})=>{let n=A(t.mode)?t.mode:`normal`,r=A(t.filename)?t.filename:`message.intl`,i=!!t.sourceMap,a=t.breakLineCode==null?n===`arrow`?`;`:`
4
+ `:t.breakLineCode,o=t.needIndent?t.needIndent:n!==`arrow`,s=e.helpers||[],c=iee(e,{mode:n,filename:r,sourceMap:i,breakLineCode:a,needIndent:o});c.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),c.indent(o),s.length>0&&(c.push(`const { ${He(s.map(e=>`${e}: _${e}`),`, `)} } = ctx`),c.newline()),c.push(`return `),wt(c,e),c.deindent(o),c.push(`}`),delete e.helpers;let{code:l,map:u}=c.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function oee(e,t={}){let n=we({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null?!0:n.optimize,o=mt(n).parse(e);return r?(a&&tee(o),i&&bt(o),{ast:o,code:``}):(vt(o,n),Tt(o,n))}function see(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(Oe().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(Oe().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Et(e){return j(e)&&Pt(e)===0&&(Ne(e,`b`)||Ne(e,`body`))}var Dt=[`b`,`body`];function Ot(e){return zt(e,Dt)}var kt=[`c`,`cases`];function cee(e){return zt(e,kt,[])}var At=[`s`,`static`];function lee(e){return zt(e,At)}var jt=[`i`,`items`];function Mt(e){return zt(e,jt,[])}var Nt=[`t`,`type`];function Pt(e){return zt(e,Nt)}var Ft=[`v`,`value`];function It(e,t){let n=zt(e,Ft);if(n!=null)return n;throw Vt(t)}var Lt=[`m`,`modifier`];function uee(e){return zt(e,Lt)}var Rt=[`k`,`key`];function dee(e){let t=zt(e,Rt);if(t)return t;throw Vt(6)}function zt(e,t,n){for(let n=0;n<t.length;n++){let r=t[n];if(Ne(e,r)&&e[r]!=null)return e[r]}return n}var Bt=[...Dt,...kt,...At,...jt,...Rt,...Lt,...Ft,...Nt];function Vt(e){return Error(`unhandled node type: ${e}`)}function Ht(e){return t=>fee(t,e)}function fee(e,t){let n=Ot(t);if(n==null)throw Vt(0);if(Pt(n)===1){let t=cee(n);return e.plural(t.reduce((t,n)=>[...t,Ut(e,n)],[]))}else return Ut(e,n)}function Ut(e,t){let n=lee(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=Mt(t).reduce((t,n)=>[...t,Wt(e,n)],[]);return e.normalize(n)}}function Wt(e,t){let n=Pt(t);switch(n){case 3:return It(t,n);case 9:return It(t,n);case 4:{let r=t;if(Ne(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(Ne(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw Vt(n)}case 5:{let r=t;if(Ne(r,`i`)&&be(r.i))return e.interpolate(e.list(r.i));if(Ne(r,`index`)&&be(r.index))return e.interpolate(e.list(r.index));throw Vt(n)}case 6:{let n=t,r=uee(n),i=dee(n);return e.linked(Wt(e,i),r?Wt(e,r):void 0,e.type)}case 7:return It(t,n);case 8:return It(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var pee=`Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.`;function mee(e,t){t&&et(e)&&le(ge(pee,{source:e}))}var hee=e=>e,Gt=Ee();function gee(e,t={}){let n=!1,r=t.onError||Qe;return t.onError=e=>{n=!0,r(e)},{...oee(e,t),detectError:n}}function _ee(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&A(e)){let n=Ie(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!==`production`&&mee(e,n);let r=(t.onCacheKey||hee)(e),i=Gt[r];if(i)return i;let{ast:a,detectError:o}=gee(e,{...t,location:process.env.NODE_ENV!==`production`,jit:!0}),s=Ht(a);return o?s:Gt[r]=s}else{if(process.env.NODE_ENV!==`production`&&!Et(e))return le(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);let n=e.cacheKey;return n?Gt[n]||(Gt[n]=Ht(e)):Ht(e)}}var Kt=null;function vee(e){Kt=e}function yee(e,t,n){Kt&&Kt.emit(`i18n:init`,{timestamp:Date.now(),i18n:e,version:t,meta:n})}var bee=qt(`function:translate`);function qt(e){return t=>Kt&&Kt.emit(e,t)}var Jt={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Yt(e){return Ze(e,null,process.env.NODE_ENV===`production`?void 0:{messages:Xt})}var Xt={[Jt.INVALID_ARGUMENT]:`Invalid arguments`,[Jt.INVALID_DATE_ARGUMENT]:`The date provided is an invalid Date object.Make sure your Date represents a valid date.`,[Jt.INVALID_ISO_DATE_ARGUMENT]:`The argument provided is not a valid ISO date string`,[Jt.NOT_SUPPORT_NON_STRING_MESSAGE]:`Not support non-string message`,[Jt.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:`cannot support promise value`,[Jt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:`cannot support async function`,[Jt.NOT_SUPPORT_LOCALE_TYPE]:`cannot support locale type`};function Zt(e,t){return t.locale==null?$t(e.locale):$t(t.locale)}var Qt;function $t(e){if(A(e))return e;if(Fe(e)){if(e.resolvedOnce&&Qt!=null)return Qt;if(e.constructor.name===`Function`){let t=e();if(Le(t))throw Yt(Jt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Qt=t}else throw Yt(Jt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Yt(Jt.NOT_SUPPORT_LOCALE_TYPE)}function xee(e,t,n){return[...new Set([n,...Pe(t)?t:j(t)?Object.keys(t):A(t)?[t]:[n]])]}function en(e,t,n){let r=A(n)?n:un,i=e;i.__localeChainCache||=new Map;let a=i.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;Pe(e);)e=tn(a,e,t);let o=Pe(t)||!Be(t)?t:t.default?t.default:null;e=A(o)?[o]:o,Pe(e)&&tn(a,e,!1),i.__localeChainCache.set(r,a)}return a}function tn(e,t,n){let r=!0;for(let i=0;i<t.length&&Ie(r);i++){let a=t[i];A(a)&&(r=nn(e,t[i],n))}return r}function nn(e,t,n){let r,i=t.split(`-`);do r=rn(e,i.join(`-`),n),i.splice(-1,1);while(i.length&&r===!0);return r}function rn(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!==`!`;let i=t.replace(/!/g,``);e.push(i),(Pe(n)||Be(n))&&n[i]&&(r=n[i])}return r}var an=[];an[0]={w:[0],i:[3,0],"[":[4],o:[7]},an[1]={w:[1],".":[2],"[":[4],o:[7]},an[2]={w:[2],i:[3,0],0:[3,0]},an[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},an[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},an[5]={"'":[4,0],o:8,l:[5,0]},an[6]={'"':[4,0],o:8,l:[6,0]};var on=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function See(e){return on.test(e)}function Cee(e){let t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function wee(e){if(e==null)return`o`;switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return`i`;case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return`w`}return`i`}function Tee(e){let t=e.trim();return e.charAt(0)===`0`&&isNaN(parseInt(e))?!1:See(t)?Cee(t):`*`+t}function Eee(e){let t=[],n=-1,r=0,i=0,a,o,s,c,l,u,d,f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=Tee(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=wee(a),d=an[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}var sn=new Map;function Dee(e,t){return j(e)?e[t]:null}function Oee(e,t){if(!j(e))return null;let n=sn.get(t);if(n||(n=Eee(t),n&&sn.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a<r;){let e=n[a];if(Bt.includes(e)&&Et(i))return null;let t=i[e];if(t===void 0||Fe(i))return null;i=t,a++}return i}var cn={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},kee={[cn.NOT_FOUND_KEY]:`Not found '{key}' key in '{locale}' locale messages.`,[cn.FALLBACK_TO_TRANSLATE]:`Fall back to translate '{key}' key with '{target}' locale.`,[cn.CANNOT_FORMAT_NUMBER]:`Cannot format a number value due to not supported Intl.NumberFormat.`,[cn.FALLBACK_TO_NUMBER_FORMAT]:`Fall back to number format '{key}' key with '{target}' locale.`,[cn.CANNOT_FORMAT_DATE]:`Cannot format a date value due to not supported Intl.DateTimeFormat.`,[cn.FALLBACK_TO_DATE_FORMAT]:`Fall back to datetime format '{key}' key with '{target}' locale.`,[cn.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:`This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.`};function ln(e,...t){return ge(kee[e],...t)}var Aee=`11.2.8`,un=`en-US`,dn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function jee(){return{upper:(e,t)=>t===`text`&&A(e)?e.toUpperCase():t===`vnode`&&j(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&A(e)?e.toLowerCase():t===`vnode`&&j(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&A(e)?dn(e):t===`vnode`&&j(e)&&`__v_isVNode`in e?dn(e.children):e}}var fn;function Mee(e){fn=e}var pn;function Nee(e){pn=e}var mn;function hn(e){mn=e}var gn=null,_n=()=>gn,vn=null,yn=e=>{vn=e},bn=()=>vn,xn=0;function Sn(e={}){let t=Fe(e.onWarn)?e.onWarn:le,n=A(e.version)?e.version:Aee,r=A(e.locale)||Fe(e.locale)?e.locale:un,i=Fe(r)?un:r,a=Pe(e.fallbackLocale)||Be(e.fallbackLocale)||A(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=Be(e.messages)?e.messages:Cn(i),s=Be(e.datetimeFormats)?e.datetimeFormats:Cn(i),c=Be(e.numberFormats)?e.numberFormats:Cn(i),l=we(Ee(),e.modifiers,jee()),u=e.pluralRules||Ee(),d=Fe(e.missing)?e.missing:null,f=Ie(e.missingWarn)||Se(e.missingWarn)?e.missingWarn:!0,p=Ie(e.fallbackWarn)||Se(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,g=Fe(e.postTranslation)?e.postTranslation:null,_=Be(e.processor)?e.processor:null,v=Ie(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,b=Fe(e.messageCompiler)?e.messageCompiler:fn;process.env.NODE_ENV!==`production`&&Fe(e.messageCompiler)&&de(ln(cn.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));let x=Fe(e.messageResolver)?e.messageResolver:pn||Dee,S=Fe(e.localeFallbacker)?e.localeFallbacker:mn||xee,C=j(e.fallbackContext)?e.fallbackContext:void 0,w=e,T=j(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,E=j(w.__numberFormatters)?w.__numberFormatters:new Map,D=j(w.__meta)?w.__meta:{};xn++;let O={version:n,cid:xn,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:g,processor:_,warnHtmlMessage:v,escapeParameter:y,messageCompiler:b,messageResolver:x,localeFallbacker:S,fallbackContext:C,onWarn:t,__meta:D};return O.datetimeFormats=s,O.numberFormats=c,O.__datetimeFormatters=T,O.__numberFormatters=E,process.env.NODE_ENV!==`production`&&(O.__v_emitter=w.__v_emitter==null?void 0:w.__v_emitter),(process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__)&&yee(O,n,D),O}var Cn=e=>({[e]:Ee()});function wn(e,t){return e instanceof RegExp?e.test(t):e}function Tn(e,t){return e instanceof RegExp?e.test(t):e}function En(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(process.env.NODE_ENV!==`production`){let r=e.__v_emitter;r&&r.emit(`missing`,{locale:n,key:t,type:i,groupId:`${i}:${t}`})}if(a!==null){let r=a(e,n,t,i);return A(r)?r:t}else return process.env.NODE_ENV!==`production`&&Tn(r,t)&&o(ln(cn.NOT_FOUND_KEY,{key:t,locale:n})),t}function Dn(e,t,n){let r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function On(e,t){return e===t?!1:e.split(`-`)[0]===t.split(`-`)[0]}function Pee(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(On(e,t[r]))return!0;return!1}var kn=typeof Intl<`u`,An={dateTimeFormat:kn&&Intl.DateTimeFormat!==void 0,numberFormat:kn&&Intl.NumberFormat!==void 0};function jn(e,...t){let{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!==`production`&&!An.dateTimeFormat)return a(ln(cn.CANNOT_FORMAT_DATE)),``;let[c,l,u,d]=Nn(...t),f=Ie(u.missingWarn)?u.missingWarn:e.missingWarn,p=Ie(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,m=!!u.part,h=Zt(e,u),g=o(e,i,h);if(!A(c)||c===``)return new Intl.DateTimeFormat(h,d).format(l);let _={},v,y=null,b=h,x=null,S=`datetime format`;for(let t=0;t<g.length;t++){if(v=x=g[t],process.env.NODE_ENV!==`production`&&h!==v&&wn(p,c)&&a(ln(cn.FALLBACK_TO_DATE_FORMAT,{key:c,target:v})),process.env.NODE_ENV!==`production`&&h!==v){let t=e.__v_emitter;t&&t.emit(`fallback`,{type:S,key:c,from:b,to:x,groupId:`${S}:${c}`})}if(_=n[v]||{},y=_[c],Be(y))break;En(e,c,v,f,S),b=x}if(!Be(y)||!A(v))return r?-1:c;let C=`${v}__${c}`;Ce(d)||(C=`${C}__${JSON.stringify(d)}`);let w=s.get(C);return w||(w=new Intl.DateTimeFormat(v,we({},y,d)),s.set(C,w)),m?w.formatToParts(l):w.format(l)}var Mn=[`localeMatcher`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`formatMatcher`,`hour12`,`timeZone`,`dateStyle`,`timeStyle`,`calendar`,`dayPeriod`,`numberingSystem`,`hourCycle`,`fractionalSecondDigits`];function Nn(...e){let[t,n,r,i]=e,a=Ee(),o=Ee(),s;if(A(t)){let e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Yt(Jt.INVALID_ISO_DATE_ARGUMENT);let n=e[3]?e[3].trim().startsWith(`T`)?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch{throw Yt(Jt.INVALID_ISO_DATE_ARGUMENT)}}else if(xe(t)){if(isNaN(t.getTime()))throw Yt(Jt.INVALID_DATE_ARGUMENT);s=t}else if(be(t))s=t;else throw Yt(Jt.INVALID_ARGUMENT);return A(n)?a.key=n:Be(n)&&Object.keys(n).forEach(e=>{Mn.includes(e)?o[e]=n[e]:a[e]=n[e]}),A(r)?a.locale=r:Be(r)&&(o=r),Be(i)&&(o=i),[a.key||``,s,a,o]}function Pn(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Fn(e,...t){let{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!==`production`&&!An.numberFormat)return a(ln(cn.CANNOT_FORMAT_NUMBER)),``;let[c,l,u,d]=Ln(...t),f=Ie(u.missingWarn)?u.missingWarn:e.missingWarn,p=Ie(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,m=!!u.part,h=Zt(e,u),g=o(e,i,h);if(!A(c)||c===``)return new Intl.NumberFormat(h,d).format(l);let _={},v,y=null,b=h,x=null,S=`number format`;for(let t=0;t<g.length;t++){if(v=x=g[t],process.env.NODE_ENV!==`production`&&h!==v&&wn(p,c)&&a(ln(cn.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:v})),process.env.NODE_ENV!==`production`&&h!==v){let t=e.__v_emitter;t&&t.emit(`fallback`,{type:S,key:c,from:b,to:x,groupId:`${S}:${c}`})}if(_=n[v]||{},y=_[c],Be(y))break;En(e,c,v,f,S),b=x}if(!Be(y)||!A(v))return r?-1:c;let C=`${v}__${c}`;Ce(d)||(C=`${C}__${JSON.stringify(d)}`);let w=s.get(C);return w||(w=new Intl.NumberFormat(v,we({},y,d)),s.set(C,w)),m?w.formatToParts(l):w.format(l)}var In=[`localeMatcher`,`style`,`currency`,`currencyDisplay`,`currencySign`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`roundingMode`,`roundingPriority`,`roundingIncrement`,`trailingZeroDisplay`];function Ln(...e){let[t,n,r,i]=e,a=Ee(),o=Ee();if(!be(t))throw Yt(Jt.INVALID_ARGUMENT);let s=t;return A(n)?a.key=n:Be(n)&&Object.keys(n).forEach(e=>{In.includes(e)?o[e]=n[e]:a[e]=n[e]}),A(r)?a.locale=r:Be(r)&&(o=r),Be(i)&&(o=i),[a.key||``,s,a,o]}function Rn(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}var Fee=e=>e,Iee=e=>``,Lee=`text`,Ree=e=>e.length===0?``:He(e),zee=Ve;function zn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Bee(e){let t=be(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(be(e.named.count)||be(e.named.n))?be(e.named.count)?e.named.count:be(e.named.n)?e.named.n:t:t}function Bn(e,t){t.count||=e,t.n||=e}function Vn(e={}){let t=e.locale,n=Bee(e),r=j(e.pluralRules)&&A(t)&&Fe(e.pluralRules[t])?e.pluralRules[t]:zn,i=j(e.pluralRules)&&A(t)&&Fe(e.pluralRules[t])?zn:void 0,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||Ee();be(e.pluralIndex)&&Bn(n,c);let l=e=>c[e];function u(t,n){return(Fe(e.messages)?e.messages(t,!!n):j(e.messages)?e.messages[t]:!1)||(e.parent?e.parent.message(t):Iee)}let d=t=>e.modifiers?e.modifiers[t]:Fee,f=Be(e.processor)&&Fe(e.processor.normalize)?e.processor.normalize:Ree,p=Be(e.processor)&&Fe(e.processor.interpolate)?e.processor.interpolate:zee,m={list:s,named:l,plural:a,linked:(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?j(n)?(a=n.modifier||a,i=n.type||i):A(n)&&(a=n||a):t.length===2&&(A(n)&&(a=n||a),A(r)&&(i=r||i));let o=u(e,!0)(m),s=i===`vnode`&&Pe(o)&&a?o[0]:o;return a?d(a)(s,i):s},message:u,type:Be(e.processor)&&A(e.processor.type)?e.processor.type:Lee,interpolate:p,normalize:f,values:we(Ee(),o,c)};return m}var Hn=()=>``,Un=e=>Fe(e);function Wn(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=Yn(...t),u=Ie(l.missingWarn)?l.missingWarn:e.missingWarn,d=Ie(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=Ie(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=A(l.default)||Ie(l.default)?Ie(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(A(m)||Fe(m)),g=Zt(e,l);f&&Gn(l);let[_,v,y]=p?[c,g,s[g]||Ee()]:Kn(e,c,g,o,d,u),b=_,x=c;if(!p&&!(A(b)||Et(b)||Un(b))&&h&&(b=m,x=b),!p&&(!(A(b)||Et(b)||Un(b))||!A(v)))return i?-1:c;if(process.env.NODE_ENV!==`production`&&A(b)&&e.messageCompiler==null)return le(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let S=!1,C=Un(b)?b:qn(e,c,v,b,x,()=>{S=!0});if(S)return b;let w=Jn(e,C,Vn(Qn(e,v,y,l))),T=r?r(w,c):w;if(f&&A(T)&&(T=je(T)),process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__){let t={timestamp:Date.now(),key:A(c)?c:Un(b)?b.key:``,locale:v||(Un(b)?b.locale:``),format:A(b)?b:Un(b)?b.source:``,message:T};t.meta=we({},e.__meta,_n()||{}),bee(t)}return T}function Gn(e){Pe(e.list)?e.list=e.list.map(e=>A(e)?ke(e):e):j(e.named)&&Object.keys(e.named).forEach(t=>{A(e.named[t])&&(e.named[t]=ke(e.named[t]))})}function Kn(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=Ee(),f,p=null,m=n,h=null,g=`translate`;for(let r=0;r<u.length;r++){if(f=h=u[r],process.env.NODE_ENV!==`production`&&n!==f&&!On(n,f)&&wn(i,t)&&s(ln(cn.FALLBACK_TO_TRANSLATE,{key:t,target:f})),process.env.NODE_ENV!==`production`&&n!==f){let n=e.__v_emitter;n&&n.emit(`fallback`,{type:g,key:t,from:m,to:h,groupId:`${g}:${t}`})}d=o[f]||Ee();let l=null,_,v;if(process.env.NODE_ENV!==`production`&&fe&&(l=window.performance.now(),_=`intlify-message-resolve-start`,v=`intlify-message-resolve-end`,pe&&pe(_)),(p=c(d,t))===null&&(p=d[t]),process.env.NODE_ENV!==`production`&&fe){let n=window.performance.now(),r=e.__v_emitter;r&&l&&p&&r.emit(`message-resolve`,{type:`message-resolve`,key:t,message:p,time:n-l,groupId:`${g}:${t}`}),_&&v&&pe&&me&&(pe(v),me(`intlify message resolve`,_,v))}if(A(p)||Et(p)||Un(p))break;if(!Pee(f,u)){let n=En(e,t,f,a,g);n!==t&&(p=n)}m=h}return[p,f,d]}function qn(e,t,n,r,i,a){let{messageCompiler:o,warnHtmlMessage:s}=e;if(Un(r)){let e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(o==null){let e=(()=>r);return e.locale=n,e.key=t,e}let c=null,l,u;process.env.NODE_ENV!==`production`&&fe&&(c=window.performance.now(),l=`intlify-message-compilation-start`,u=`intlify-message-compilation-end`,pe&&pe(l));let d=o(r,Xn(e,n,i,r,s,a));if(process.env.NODE_ENV!==`production`&&fe){let n=window.performance.now(),i=e.__v_emitter;i&&c&&i.emit(`message-compilation`,{type:`message-compilation`,message:r,time:n-c,groupId:`translate:${t}`}),l&&u&&pe&&me&&(pe(u),me(`intlify message compilation`,l,u))}return d.locale=n,d.key=t,d.source=r,d}function Jn(e,t,n){let r=null,i,a;process.env.NODE_ENV!==`production`&&fe&&(r=window.performance.now(),i=`intlify-message-evaluation-start`,a=`intlify-message-evaluation-end`,pe&&pe(i));let o=t(n);if(process.env.NODE_ENV!==`production`&&fe){let n=window.performance.now(),s=e.__v_emitter;s&&r&&s.emit(`message-evaluation`,{type:`message-evaluation`,value:o,time:n-r,groupId:`translate:${t.key}`}),i&&a&&pe&&me&&(pe(a),me(`intlify message evaluation`,i,a))}return o}function Yn(...e){let[t,n,r]=e,i=Ee();if(!A(t)&&!be(t)&&!Un(t)&&!Et(t))throw Yt(Jt.INVALID_ARGUMENT);let a=be(t)?String(t):(Un(t),t);return be(n)?i.plural=n:A(n)?i.default=n:Be(n)&&!Ce(n)?i.named=n:Pe(n)&&(i.list=n),be(r)?i.plural=r:A(r)?i.default=r:Be(r)&&we(i,r),[a,i]}function Xn(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:t=>{if(a&&a(t),process.env.NODE_ENV!==`production`){let i=Zn(r),a=`Message compilation error: ${t.message}`,o=t.location&&i&&We(i,t.location.start.offset,t.location.end.offset),s=e.__v_emitter;s&&i&&s.emit(`compile-error`,{message:i,error:t.message,start:t.location&&t.location.start.offset,end:t.location&&t.location.end.offset,groupId:`translate:${n}`}),console.error(o?`${a}\n${o}`:a)}else throw t},onCacheKey:e=>ve(t,n,e)}}function Zn(e){if(A(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Qn(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:i,pluralRules:a,messages:(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[,,n]=Kn(u||e,r,t,s,c,l);a=o(n,r)}if(A(a)||Et(a)){let n=!1,i=qn(e,r,t,a,r,()=>{n=!0});return n?Hn:i}else if(Un(a))return a;else return Hn}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),be(r.plural)&&(d.pluralIndex=r.plural),d}see();function $n(){return er().__VUE_DEVTOOLS_GLOBAL_HOOK__}function er(){return typeof navigator<`u`&&typeof window<`u`?window:typeof globalThis<`u`?globalThis:{}}let tr=typeof Proxy==`function`;var nr,rr;function ir(){return nr===void 0&&(typeof window<`u`&&window.performance?(nr=!0,rr=window.performance):typeof globalThis<`u`&&globalThis.perf_hooks?.performance?(nr=!0,rr=globalThis.perf_hooks.performance):nr=!1),nr}function ar(){return ir()?rr.now():Date.now()}var Vee=class{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;let n={};if(e.settings)for(let t in e.settings)n[t]=e.settings[t].defaultValue;let r=`__vue-devtools-plugin-settings__${e.id}`,i=Object.assign({},n);try{let e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(i,t)}catch{}this.fallbacks={getSettings(){return i},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch{}i=e},now(){return ar()}},t&&t.on(`plugin:settings:set`,(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:t===`on`?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(let e of this.onQueue)this.target.on[e.method](...e.args);for(let e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}};function Hee(e,t){let n=e,r=er(),i=$n(),a=tr&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))i.emit(`devtools-plugin:setup`,e,t);else{let e=a?new Vee(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}}var Uee=`11.2.8`;function Wee(){typeof __VUE_I18N_FULL_INSTALL__!=`boolean`&&(Oe().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!=`boolean`&&(Oe().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(Oe().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(Oe().__INTLIFY_PROD_DEVTOOLS__=!1)}var or={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function sr(e,...t){return Ze(e,null,process.env.NODE_ENV===`production`?void 0:{messages:Gee,args:t})}var Gee={[or.UNEXPECTED_RETURN_TYPE]:`Unexpected return type in composer`,[or.INVALID_ARGUMENT]:`Invalid argument`,[or.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[or.NOT_INSTALLED]:"Need to install with `app.use` function",[or.UNEXPECTED_ERROR]:`Unexpected error`,[or.REQUIRED_VALUE]:`Required in value: {0}`,[or.INVALID_VALUE]:`Invalid value`,[or.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:`Cannot setup vue-devtools plugin`,[or.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[or.NOT_COMPATIBLE_LEGACY_VUE_I18N]:`Not compatible legacy VueI18n.`,[or.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:`Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly`},cr=_e(`__translateVNode`),lr=_e(`__datetimeParts`),ur=_e(`__numberParts`),dr=_e(`__enableEmitter`),fr=_e(`__disableEmitter`),pr=_e(`__setPluralRules`);_e(`__intlifyMeta`);var mr=_e(`__injectWithOption`),hr=_e(`__dispose`),gr={FALLBACK_TO_ROOT:8,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},Kee={[gr.FALLBACK_TO_ROOT]:`Fall back to {type} '{key}' with root locale.`,[gr.NOT_FOUND_PARENT_SCOPE]:`Not found parent scope. use the global scope.`,[gr.IGNORE_OBJ_FLATTEN]:`Ignore object flatten: '{key}' key has an string value`,[gr.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
5
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[gr.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:`'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.`,[gr.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function _r(e,...t){return ge(Kee[e],...t)}function vr(e){if(!j(e)||Et(e))return e;for(let t in e)if(Ne(e,t))if(!t.includes(`.`))j(e[t])&&vr(e[t]);else{let n=t.split(`.`),r=n.length-1,i=e,a=!1;for(let e=0;e<r;e++){if(n[e]===`__proto__`)throw Error(`unsafe key: ${n[e]}`);if(n[e]in i||(i[n[e]]=Ee()),!j(i[n[e]])){process.env.NODE_ENV!==`production`&&le(_r(gr.IGNORE_OBJ_FLATTEN,{key:n[e]})),a=!0;break}i=i[n[e]]}if(a||(Et(i)?Bt.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!Et(i)){let e=i[n[r]];j(e)&&vr(e)}}return e}function yr(e,t){let{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,o=Be(n)?n:Pe(r)?Ee():{[e]:Ee()};if(Pe(r)&&r.forEach(e=>{if(`locale`in e&&`resource`in e){let{locale:t,resource:n}=e;t?(o[t]=o[t]||Ee(),qe(n,o[t])):qe(n,o)}else A(e)&&qe(JSON.parse(e),o)}),i==null&&a)for(let e in o)Ne(o,e)&&vr(o[e]);return o}function qee(e){return e.type}function br(e,t,n){let r=j(t.messages)?t.messages:Ee();`__i18nGlobal`in n&&(r=yr(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));let i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),j(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(j(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function xr(t){return(0,e.createVNode)(e.Text,null,t,0)}function Sr(){let t=`currentInstance`;return t in e?e[t]:e.getCurrentInstance()}var Cr=()=>[],Jee=()=>!1,wr=0;function Tr(e){return((t,n,r,i)=>e(n,r,Sr()||void 0,i))}function Er(t={}){let{__root:n,__injectWithOption:r}=t,i=n===void 0,a=t.flatJson,o=fe?e.ref:e.shallowRef,s=Ie(t.inheritLocale)?t.inheritLocale:!0,c=o(n&&s?n.locale.value:A(t.locale)?t.locale:un),l=o(n&&s?n.fallbackLocale.value:A(t.fallbackLocale)||Pe(t.fallbackLocale)||Be(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:c.value),u=o(yr(c.value,t)),d=o(Be(t.datetimeFormats)?t.datetimeFormats:{[c.value]:{}}),f=o(Be(t.numberFormats)?t.numberFormats:{[c.value]:{}}),p=n?n.missingWarn:Ie(t.missingWarn)||Se(t.missingWarn)?t.missingWarn:!0,m=n?n.fallbackWarn:Ie(t.fallbackWarn)||Se(t.fallbackWarn)?t.fallbackWarn:!0,h=n?n.fallbackRoot:Ie(t.fallbackRoot)?t.fallbackRoot:!0,g=!!t.fallbackFormat,_=Fe(t.missing)?t.missing:null,v=Fe(t.missing)?Tr(t.missing):null,y=Fe(t.postTranslation)?t.postTranslation:null,b=n?n.warnHtmlMessage:Ie(t.warnHtmlMessage)?t.warnHtmlMessage:!0,x=!!t.escapeParameter,S=n?n.modifiers:Be(t.modifiers)?t.modifiers:{},C=t.pluralRules||n&&n.pluralRules,w;w=(()=>{i&&yn(null);let e={version:Uee,locale:c.value,fallbackLocale:l.value,messages:u.value,modifiers:S,pluralRules:C,missing:v===null?void 0:v,missingWarn:p,fallbackWarn:m,fallbackFormat:g,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:b,escapeParameter:x,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:`vue`}};e.datetimeFormats=d.value,e.numberFormats=f.value,e.__datetimeFormatters=Be(w)?w.__datetimeFormatters:void 0,e.__numberFormatters=Be(w)?w.__numberFormatters:void 0,process.env.NODE_ENV!==`production`&&(e.__v_emitter=Be(w)?w.__v_emitter:void 0);let n=Sn(e);return i&&yn(n),n})(),Dn(w,c.value,l.value);function T(){return[c.value,l.value,u.value,d.value,f.value]}let E=(0,e.computed)({get:()=>c.value,set:e=>{w.locale=e,c.value=e}}),D=(0,e.computed)({get:()=>l.value,set:e=>{w.fallbackLocale=e,l.value=e,Dn(w,c.value,e)}}),O=(0,e.computed)(()=>u.value),ee=(0,e.computed)(()=>d.value),te=(0,e.computed)(()=>f.value);function ne(){return Fe(y)?y:null}function k(e){y=e,w.postTranslation=e}function re(){return _}function ie(e){e!==null&&(v=Tr(e)),_=e,w.missing=v}function ae(e,t){return e!==`translate`||!t.resolvedMessage}let oe=(e,t,r,a,o,s)=>{T();let c;try{process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__,i||(w.fallbackContext=n?bn():void 0),c=e(w)}finally{process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__,i||(w.fallbackContext=void 0)}if(r!==`translate exists`&&be(c)&&c===-1||r===`translate exists`&&!c){let[e,i]=t();if(process.env.NODE_ENV!==`production`&&n&&A(e)&&ae(r,i)&&(h&&(wn(m,e)||Tn(p,e))&&le(_r(gr.FALLBACK_TO_ROOT,{key:e,type:r})),process.env.NODE_ENV!==`production`)){let{__v_emitter:t}=w;t&&h&&t.emit(`fallback`,{type:r,key:e,to:`global`,groupId:`${r}:${e}`})}return n&&h?a(n):o(e)}else if(s(c))return c;else throw sr(or.UNEXPECTED_RETURN_TYPE)};function se(...e){return oe(t=>Reflect.apply(Wn,null,[t,...e]),()=>Yn(...e),`translate`,t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>A(e))}function ce(...e){let[t,n,r]=e;if(r&&!j(r))throw sr(or.INVALID_ARGUMENT);return se(t,n,we({resolvedMessage:!0},r||{}))}function ue(...e){return oe(t=>Reflect.apply(jn,null,[t,...e]),()=>Nn(...e),`datetime format`,t=>Reflect.apply(t.d,t,[...e]),()=>``,e=>A(e)||Pe(e))}function de(...e){return oe(t=>Reflect.apply(Fn,null,[t,...e]),()=>Ln(...e),`number format`,t=>Reflect.apply(t.n,t,[...e]),()=>``,e=>A(e)||Pe(e))}function pe(e){return e.map(e=>A(e)||be(e)||Ie(e)?xr(String(e)):e)}let me={normalize:pe,interpolate:e=>e,type:`vnode`};function he(...e){return oe(t=>{let n,r=t;try{r.processor=me,n=Reflect.apply(Wn,null,[r,...e])}finally{r.processor=null}return n},()=>Yn(...e),`translate`,t=>t[cr](...e),e=>[xr(e)],e=>Pe(e))}function ge(...e){return oe(t=>Reflect.apply(Fn,null,[t,...e]),()=>Ln(...e),`number format`,t=>t[ur](...e),Cr,e=>A(e)||Pe(e))}function _e(...e){return oe(t=>Reflect.apply(jn,null,[t,...e]),()=>Nn(...e),`datetime format`,t=>t[lr](...e),Cr,e=>A(e)||Pe(e))}function ve(e){C=e,w.pluralRules=C}function ye(e,t){return oe(()=>{if(!e)return!1;let n=Te(A(t)?t:c.value),r=w.messageResolver(n,e);return Et(r)||Un(r)||A(r)},()=>[e],`translate exists`,n=>Reflect.apply(n.te,n,[e,t]),Jee,e=>Ie(e))}function xe(e){let t=null,n=en(w,l.value,c.value);for(let r=0;r<n.length;r++){let i=u.value[n[r]]||{},a=w.messageResolver(i,e);if(a!=null){t=a;break}}return t}function Ce(e){return xe(e)??(n&&n.tm(e)||{})}function Te(e){return u.value[e]||{}}function Ee(e,t){if(a){let n={[e]:t};for(let e in n)Ne(n,e)&&vr(n[e]);t=n[e]}u.value[e]=t,w.messages=u.value}function De(e,t){u.value[e]=u.value[e]||{};let n={[e]:t};if(a)for(let e in n)Ne(n,e)&&vr(n[e]);t=n[e],qe(t,u.value[e]),w.messages=u.value}function Oe(e){return d.value[e]||{}}function ke(e,t){d.value[e]=t,w.datetimeFormats=d.value,Pn(w,e,t)}function Ae(e,t){d.value[e]=we(d.value[e]||{},t),w.datetimeFormats=d.value,Pn(w,e,t)}function je(e){return f.value[e]||{}}function Me(e,t){f.value[e]=t,w.numberFormats=f.value,Rn(w,e,t)}function Le(e,t){f.value[e]=we(f.value[e]||{},t),w.numberFormats=f.value,Rn(w,e,t)}wr++,n&&fe&&((0,e.watch)(n.locale,e=>{s&&(c.value=e,w.locale=e,Dn(w,c.value,l.value))}),(0,e.watch)(n.fallbackLocale,e=>{s&&(l.value=e,w.fallbackLocale=e,Dn(w,c.value,l.value))}));let Re={id:wr,locale:E,fallbackLocale:D,get inheritLocale(){return s},set inheritLocale(e){s=e,e&&n&&(c.value=n.locale.value,l.value=n.fallbackLocale.value,Dn(w,c.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:O,get modifiers(){return S},get pluralRules(){return C||{}},get isGlobal(){return i},get missingWarn(){return p},set missingWarn(e){p=e,w.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(e){m=e,w.fallbackWarn=m},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return g},set fallbackFormat(e){g=e,w.fallbackFormat=g},get warnHtmlMessage(){return b},set warnHtmlMessage(e){b=e,w.warnHtmlMessage=e},get escapeParameter(){return x},set escapeParameter(e){x=e,w.escapeParameter=e},t:se,getLocaleMessage:Te,setLocaleMessage:Ee,mergeLocaleMessage:De,getPostTranslationHandler:ne,setPostTranslationHandler:k,getMissingHandler:re,setMissingHandler:ie,[pr]:ve};return Re.datetimeFormats=ee,Re.numberFormats=te,Re.rt=ce,Re.te=ye,Re.tm=Ce,Re.d=ue,Re.n=de,Re.getDateTimeFormat=Oe,Re.setDateTimeFormat=ke,Re.mergeDateTimeFormat=Ae,Re.getNumberFormat=je,Re.setNumberFormat=Me,Re.mergeNumberFormat=Le,Re[mr]=r,Re[cr]=he,Re[lr]=_e,Re[ur]=ge,process.env.NODE_ENV!==`production`&&(Re[dr]=e=>{w.__v_emitter=e},Re[fr]=()=>{w.__v_emitter=void 0}),Re}var Dr=`vue-i18n: composer properties`,Or={"vue-devtools-plugin-vue-i18n":`Vue I18n DevTools`,"vue-i18n-resource-inspector":`Vue I18n DevTools`,"vue-i18n-timeline":`Vue I18n`},Yee={"vue-i18n-resource-inspector":`Search for scopes ...`},Xee={"vue-i18n-timeline":16764185},kr;async function Zee(e,t){return new Promise((n,r)=>{try{Hee({id:`vue-devtools-plugin-vue-i18n`,label:Or[`vue-devtools-plugin-vue-i18n`],packageName:`vue-i18n`,homepage:`https://vue-i18n.intlify.dev`,logo:`https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png`,componentStateTypes:[Dr],app:e},r=>{kr=r,r.on.visitComponentTree(({componentInstance:e,treeNode:n})=>{Qee(e,n,t)}),r.on.inspectComponent(({componentInstance:e,instanceData:n})=>{e.__VUE_I18N__&&n&&(t.mode===`legacy`?e.__VUE_I18N__!==t.global.__composer&&jr(n,e.__VUE_I18N__):jr(n,e.__VUE_I18N__))}),r.addInspector({id:`vue-i18n-resource-inspector`,label:Or[`vue-i18n-resource-inspector`],icon:`language`,treeFilterPlaceholder:Yee[`vue-i18n-resource-inspector`]}),r.on.getInspectorTree(n=>{n.app===e&&n.inspectorId===`vue-i18n-resource-inspector`&&rte(n,t)});let i=new Map;r.on.getInspectorState(async n=>{if(n.app===e&&n.inspectorId===`vue-i18n-resource-inspector`)if(r.unhighlightElement(),ate(n,t),n.nodeId===`global`){if(!i.has(n.app)){let[e]=await r.getComponentInstances(n.app);i.set(n.app,e)}r.highlightElement(i.get(n.app))}else{let e=ite(n.nodeId,t);e&&r.highlightElement(e)}}),r.on.editInspectorState(n=>{n.app===e&&n.inspectorId===`vue-i18n-resource-inspector`&&ste(n,t)}),r.addTimelineLayer({id:`vue-i18n-timeline`,label:Or[`vue-i18n-timeline`],color:Xee[`vue-i18n-timeline`]}),n(!0)})}catch(e){console.error(e),r(!1)}})}function Ar(e){return e.type.name||e.type.displayName||e.type.__file||`Anonymous`}function Qee(e,t,n){let r=n.mode===`composition`?n.global:n.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){let n={label:`i18n (${Ar(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(n)}}function jr(e,t){let n=Dr;e.state.push({type:n,key:`locale`,editable:!0,value:t.locale.value}),e.state.push({type:n,key:`availableLocales`,editable:!1,value:t.availableLocales}),e.state.push({type:n,key:`fallbackLocale`,editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:`inheritLocale`,editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:`messages`,editable:!1,value:Mr(t.messages.value)}),e.state.push({type:n,key:`datetimeFormats`,editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:`numberFormats`,editable:!1,value:t.numberFormats.value})}function Mr(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];Fe(r)&&`source`in r?t[n]=nte(r):Et(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:j(r)?t[n]=Mr(r):t[n]=r}),t}var $ee={"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"&":`&amp;`};function ete(e){return e.replace(/[<>"&]/g,tte)}function tte(e){return $ee[e]||e}function nte(e){return{_custom:{type:`function`,display:`<span>ƒ</span> ${e.source?`("${ete(e.source)}")`:`(?)`}`}}}function rte(e,t){e.rootNodes.push({id:`global`,label:`Global Scope`});let n=t.mode===`composition`?t.global:t.global.__composer;for(let[r,i]of t.__instances){let a=t.mode===`composition`?i:i.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${Ar(r)} Scope`})}}function ite(e,t){let n=null;if(e!==`global`){for(let[r,i]of t.__instances.entries())if(i.id.toString()===e){n=r;break}}return n}function Nr(e,t){if(e===`global`)return t.mode===`composition`?t.global:t.global.__composer;{let n=Array.from(t.__instances.values()).find(t=>t.id.toString()===e);return n?t.mode===`composition`?n:n.__composer:null}}function ate(e,t){let n=Nr(e.nodeId,t);return n&&(e.state=ote(n)),null}function ote(e){let t={},n=`Locale related info`;t[n]=[{type:n,key:`locale`,editable:!0,value:e.locale.value},{type:n,key:`fallbackLocale`,editable:!0,value:e.fallbackLocale.value},{type:n,key:`availableLocales`,editable:!1,value:e.availableLocales},{type:n,key:`inheritLocale`,editable:!0,value:e.inheritLocale}];let r=`Locale messages info`;t[r]=[{type:r,key:`messages`,editable:!1,value:Mr(e.messages.value)}];{let n=`Datetime formats info`;t[n]=[{type:n,key:`datetimeFormats`,editable:!1,value:e.datetimeFormats.value}];let r=`Datetime formats info`;t[r]=[{type:r,key:`numberFormats`,editable:!1,value:e.numberFormats.value}]}return t}function Pr(e,t){if(kr){let n;t&&`groupId`in t&&(n=t.groupId,delete t.groupId),kr.addTimelineEvent({layerId:`vue-i18n-timeline`,event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e===`compile-error`?`error`:e===`fallback`||e===`missing`?`warning`:`default`}})}}function ste(e,t){let n=Nr(e.nodeId,t);if(n){let[t]=e.path;t===`locale`&&A(e.state.value)?n.locale.value=e.state.value:t===`fallbackLocale`&&(A(e.state.value)||Pe(e.state.value)||j(e.state.value))?n.fallbackLocale.value=e.state.value:t===`inheritLocale`&&Ie(e.state.value)&&(n.inheritLocale=e.state.value)}}function cte(e){let t=A(e.locale)?e.locale:un,n=A(e.fallbackLocale)||Pe(e.fallbackLocale)||Be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Fe(e.missing)?e.missing:void 0,i=Ie(e.silentTranslationWarn)||Se(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=Ie(e.silentFallbackWarn)||Se(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=Ie(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,c=Be(e.modifiers)?e.modifiers:{},l=e.pluralizationRules,u=Fe(e.postTranslation)?e.postTranslation:void 0,d=A(e.warnHtmlInMessage)?e.warnHtmlInMessage!==`off`:!0,f=!!e.escapeParameterHtml,p=Ie(e.sync)?e.sync:!0,m=e.messages;if(Be(e.sharedMessages)){let t=e.sharedMessages;m=Object.keys(t).reduce((e,n)=>(we(e[n]||(e[n]={}),t[n]),e),m||{})}let{__i18n:h,__root:g,__injectWithOption:_}=e,v=e.datetimeFormats,y=e.numberFormats,b=e.flatJson;return{locale:t,fallbackLocale:n,messages:m,flatJson:b,datetimeFormats:v,numberFormats:y,missing:r,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:c,pluralRules:l,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__i18n:h,__root:g,__injectWithOption:_}}function Fr(e={}){let t=Er(cte(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return Ie(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=Ie(e)?!e:e},get silentFallbackWarn(){return Ie(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=Ie(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?`warn`:`off`},set warnHtmlInMessage(e){t.warnHtmlMessage=e!==`off`},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){return Reflect.apply(t.t,t,[...e])},rt(...e){return Reflect.apply(t.rt,t,[...e])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return r.__extender=n,process.env.NODE_ENV!==`production`&&(r.__enableEmitter=e=>{let n=t;n[dr]&&n[dr](e)},r.__disableEmitter=()=>{let e=t;e[fr]&&e[fr]()}),r}function lte(e,t,n){return{beforeCreate(){let r=Sr();if(!r)throw sr(or.UNEXPECTED_ERROR);let i=this.$options;if(i.i18n){let r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=Ir(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Fr(r);let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=Ir(e,i);else{this.$i18n=Fr({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&br(t,i,i),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!==`production`&&this.$i18n){let e=Sr();if(!e)return;let t=this.$i18n;e.__VUE_I18N__=t.__composer;let n=this.__v_emitter=Ge();t.__enableEmitter&&t.__enableEmitter(n),n.on(`*`,Pr)}},unmounted(){let e=Sr();if(!e)throw sr(or.UNEXPECTED_ERROR);let t=this.$i18n;process.env.NODE_ENV!==`production`&&e.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off(`*`,Pr),delete this.__v_emitter),this.$i18n&&(t.__disableEmitter&&t.__disableEmitter(),delete e.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}function Ir(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[pr](t.pluralizationRules||e.pluralizationRules);let n=yr(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(t=>e.mergeLocaleMessage(t,n[t])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}var Lr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e===`parent`||e===`global`,default:`parent`},i18n:{type:Object}};function ute({slots:t},n){return n.length===1&&n[0]===`default`?(t.default?t.default():[]).reduce((t,n)=>[...t,...n.type===e.Fragment?n.children:[n]],[]):n.reduce((e,n)=>{let r=t[n];return r&&(e[n]=r()),e},Ee())}function Rr(){return e.Fragment}var zr=(0,e.defineComponent)({name:`i18n-t`,props:we({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>be(e)||!isNaN(e)}},Lr),setup(t,n){let{slots:r,attrs:i}=n,a=t.i18n||Wr({useScope:t.scope,__useComponent:!0});return()=>{let o=Object.keys(r).filter(e=>e[0]!==`_`),s=Ee();t.locale&&(s.locale=t.locale),t.plural!==void 0&&(s.plural=A(t.plural)?+t.plural:t.plural);let c=ute(n,o),l=a[cr](t.keypath,c,s),u=we(Ee(),i);return(0,e.h)(A(t.tag)||j(t.tag)?t.tag:Rr(),u,l)}}});function dte(e){return Pe(e)&&!A(e[0])}function Br(t,n,r,i){let{slots:a,attrs:o}=n;return()=>{let n={part:!0},s=Ee();t.locale&&(n.locale=t.locale),A(t.format)?n.key=t.format:j(t.format)&&(A(t.format.key)&&(n.key=t.format.key),s=Object.keys(t.format).reduce((e,n)=>r.includes(n)?we(Ee(),e,{[n]:t.format[n]}):e,Ee()));let c=i(t.value,n,s),l=[n.key];Pe(c)?l=c.map((e,t)=>{let n=a[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];return dte(r)&&(r[0].key=`${e.type}-${t}`),r}):A(c)&&(l=[c]);let u=we(Ee(),o);return(0,e.h)(A(t.tag)||j(t.tag)?t.tag:Rr(),u,l)}}var Vr=(0,e.defineComponent)({name:`i18n-n`,props:we({value:{type:Number,required:!0},format:{type:[String,Object]}},Lr),setup(e,t){let n=e.i18n||Wr({useScope:e.scope,__useComponent:!0});return Br(e,t,In,(...e)=>n[ur](...e))}});function fte(e,t){let n=e;if(e.mode===`composition`)return n.__getInstance(t)||e.global;{let r=n.__getInstance(t);return r==null?e.global.__composer:r.__composer}}function pte(t){let n=e=>{process.env.NODE_ENV!==`production`&&de(_r(gr.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));let{instance:n,value:r}=e;if(!n||!n.$)throw sr(or.UNEXPECTED_ERROR);let i=fte(t,n.$),a=Hr(r);return[Reflect.apply(i.t,i,[...Ur(a)]),i]};return{created:(r,i)=>{let[a,o]=n(i);fe&&t.global===o&&(r.__i18nWatcher=(0,e.watch)(o.locale,()=>{i.instance&&i.instance.$forceUpdate()})),r.__composer=o,r.textContent=a},unmounted:e=>{fe&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){let n=e.__composer,r=Hr(t);e.textContent=Reflect.apply(n.t,n,[...Ur(r)])}},getSSRProps:e=>{let[t]=n(e);return{textContent:t}}}}function Hr(e){if(A(e))return{path:e};if(Be(e)){if(!(`path`in e))throw sr(or.REQUIRED_VALUE,`path`);return e}else throw sr(or.INVALID_VALUE)}function Ur(e){let{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return A(n)&&(o.locale=n),be(i)&&(o.plural=i),be(a)&&(o.plural=a),[t,s,o]}function mte(e,t,...n){let r=Be(n[0])?n[0]:{};(!Ie(r.globalInstall)||r.globalInstall)&&([zr.name,`I18nT`].forEach(t=>e.component(t,zr)),[Vr.name,`I18nN`].forEach(t=>e.component(t,Vr)),[Kr.name,`I18nD`].forEach(t=>e.component(t,Kr))),e.directive(`t`,pte(t))}var hte=_e(`global-vue-i18n`);function gte(e={}){let t=__VUE_I18N_LEGACY_API__&&Ie(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!==`production`&&t&&de(_r(gr.DEPRECATE_LEGACY_MODE));let n=Ie(e.globalInjection)?e.globalInjection:!0,r=new Map,[i,a]=_te(e,t),o=_e(process.env.NODE_ENV===`production`?``:`vue-i18n`);function s(e){return r.get(e)||null}function c(e,t){r.set(e,t)}function l(e){r.delete(e)}let u={get mode(){return __VUE_I18N_LEGACY_API__&&t?`legacy`:`composition`},async install(e,...r){if(process.env.NODE_ENV!==`production`&&(e.__VUE_I18N__=u),e.__VUE_I18N_SYMBOL__=o,e.provide(e.__VUE_I18N_SYMBOL__,u),Be(r[0])){let e=r[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let i=null;!t&&n&&(i=Tte(e,u.global)),__VUE_I18N_FULL_INSTALL__&&mte(e,u,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin(lte(a,a.__composer,u));let s=e.unmount;if(e.unmount=()=>{i&&i(),u.dispose(),s()},process.env.NODE_ENV!==`production`){if(!await Zee(e,u))throw sr(or.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);let n=Ge();if(t){let e=a;e.__enableEmitter&&e.__enableEmitter(n)}else{let e=a;e[dr]&&e[dr](n)}n.on(`*`,Pr)}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:s,__setInstance:c,__deleteInstance:l};return u}function Wr(e={}){let t=Sr();if(t==null)throw sr(or.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw sr(or.NOT_INSTALLED);let n=vte(t),r=bte(n),i=qee(t),a=yte(e,i);if(a===`global`)return br(r,e,i),r;if(a===`parent`){let i=xte(n,t,e.__useComponent);return i??=(process.env.NODE_ENV!==`production`&&le(_r(gr.NOT_FOUND_PARENT_SCOPE)),r),i}let o=n,s=o.__getInstance(t);if(s==null){let n=we({},e);`__i18n`in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),s=Er(n),o.__composerExtend&&(s[hr]=o.__composerExtend(s)),Cte(o,t,s),o.__setInstance(t,s)}else process.env.NODE_ENV!==`production`&&a===`local`&&le(_r(gr.DUPLICATE_USE_I18N_CALLING));return s}function _te(t,n){let r=(0,e.effectScope)(),i=__VUE_I18N_LEGACY_API__&&n?r.run(()=>Fr(t)):r.run(()=>Er(t));if(i==null)throw sr(or.UNEXPECTED_ERROR);return[r,i]}function vte(t){let n=(0,e.inject)(t.isCE?hte:t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw sr(t.isCE?or.NOT_INSTALLED_WITH_PROVIDE:or.UNEXPECTED_ERROR);return n}function yte(e,t){return Ce(e)?`__i18n`in t?`local`:`global`:e.useScope?e.useScope:`local`}function bte(e){return e.mode===`composition`?e.global:e.global.__composer}function xte(e,t,n=!1){let r=null,i=t.root,a=Ste(t,n);for(;a!=null;){let t=e;if(e.mode===`composition`)r=t.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){let e=t.__getInstance(a);e!=null&&(r=e.__composer,n&&r&&!r[mr]&&(r=null))}if(r!=null||i===a)break;a=a.parent}return r}function Ste(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Cte(t,n,r){let i=null;(0,e.onMounted)(()=>{if(process.env.NODE_ENV!==`production`){n.__VUE_I18N__=r,i=Ge();let e=r;e[dr]&&e[dr](i),i.on(`*`,Pr)}},n),(0,e.onUnmounted)(()=>{let e=r;process.env.NODE_ENV!==`production`&&(i&&i.off(`*`,Pr),e[fr]&&e[fr](),delete n.__VUE_I18N__),t.__deleteInstance(n);let a=e[hr];a&&(a(),delete e[hr])},n)}var wte=[`locale`,`fallbackLocale`,`availableLocales`],Gr=[`t`,`rt`,`d`,`n`,`tm`,`te`];function Tte(t,n){let r=Object.create(null);return wte.forEach(t=>{let i=Object.getOwnPropertyDescriptor(n,t);if(!i)throw sr(or.UNEXPECTED_ERROR);let a=(0,e.isRef)(i.value)?{get(){return i.value.value},set(e){i.value.value=e}}:{get(){return i.get&&i.get()}};Object.defineProperty(r,t,a)}),t.config.globalProperties.$i18n=r,Gr.forEach(e=>{let r=Object.getOwnPropertyDescriptor(n,e);if(!r||!r.value)throw sr(or.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${e}`,r)}),()=>{delete t.config.globalProperties.$i18n,Gr.forEach(e=>{delete t.config.globalProperties[`$${e}`]})}}var Kr=(0,e.defineComponent)({name:`i18n-d`,props:we({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Lr),setup(e,t){let n=e.i18n||Wr({useScope:e.scope,__useComponent:!0});return Br(e,t,Mn,(...e)=>n[lr](...e))}});if(Wee(),Mee(_ee),Nee(Oee),hn(en),process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__){let e=Oe();e.__INTLIFY__=!0,vee(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;var Ete={unsaved:{tips:`UNSAVED CHANGES`,save:`SAVE`,cancel:`CANCEL`},notData:`No data`,select:{multiple:`Selected`,item:`items`},fileUpload:{label:`Attachment`,remove:`Remove`,placeholder:`Choose file`,maxSize:`Maximum size of attachments {size} MB`,limit:`Maximum size of attachments cannot exceed`,drag:`Drag file here, or`,fileName:`Attachment name`,pass:`Password`,setPass:`Set download password >`,confirm:`Confirm`,cancel:`Cancel`,image:`Image upload`,delete:{heading:`Delete this image?`,subheading:`Are you sure you want to delete this image? This operation cannot be undone.`},deleteFile:{heading:`Delete this file?`,subheading:`Are you sure you want to delete this file? This operation cannot be undone.`},alt:{label:`ALT`,heading:`Edit Image Alt Information`,subheading:`Add a short description to the image to improve its chances of being indexed by search engines`},entity:{coverImage:{label:`Cover Image`,tips:``,placeholder:`Cover Image`,required:`Please enter cover image`,custom:``},title:{label:`File Name`,tips:``,placeholder:`File Name`,required:`Please enter file name`,custom:``},url:{label:`File Address`,tips:``,placeholder:`File Address`,required:`Please enter file address`,custom:``},description:{label:`Brief Introduction`,tips:``,placeholder:`Brief introduction`,required:`Please enter a brief introduction`,custom:``}}},editor:{placeholder:`Type or paste your content here!`}},Dte={unsaved:{tips:`未保存的更改`,save:`保存`,cancel:`取消`},notData:`数据为空`,select:{multiple:`已选中 {0} 个`},fileUpload:{label:`附件`,remove:`移除`,placeholder:`Choose file`,maxSize:`附件最大 {size} MB`,limit:`附件最大不能超过`,drag:`Drag file here, or`,fileName:`附件名称`,pass:`密码`,setPass:`设置下载密码 >`,confirm:`确定`,cancel:`取消`,image:`图片上传`,delete:{heading:`删除此图像?`,subheading:`是否确实要删除此图像?此操作无法撤消。`},deleteFile:{heading:`删除此文件?`,subheading:`是否确实要删除此文件?此操作无法撤消。`},alt:{label:`ALT`,heading:`编辑图片 Alt 信息`,subheading:`为图片添加简短的描述,提高被搜索引擎收录机会`},entity:{coverImage:{label:`封面图片`,tips:``,placeholder:`封面图片`,required:`请输入封面图片`,custom:``},title:{label:`文件名称`,tips:``,placeholder:`文件名称`,required:`请输入文件名称`,custom:``},url:{label:`文件地址`,tips:``,placeholder:`文件地址`,required:`请输入文件地址`,custom:``},description:{label:`简要介绍`,tips:``,placeholder:`简要介绍`,required:`请输入简要介绍`,custom:``}}},editor:{placeholder:`在此处输入或粘贴您的内容!`}},qr=gte({fallbackLocale:`en`,globalInjection:!0,locale:(()=>{let e=localStorage.getItem(`ogaLocale`);return e||=navigator.language,e!=null&&(e=`en|zh-CN`.indexOf(e)>-1?e:`en`),localStorage.setItem(`ogaLocale`,e),e})(),messages:{"zh-CN":{...Dte,main:{}},en:{...Ete,main:{}}}}),Ote={class:`oga-unsaved-label`},kte={class:`oga-unsaved-button`},Ate=h((0,e.defineComponent)({__name:`index`,props:{tips:{type:String,default:()=>qr.global.t(`unsaved.tips`)},unsaved:{type:Boolean,default:()=>!1},offset:{type:String,default:()=>`200`},height:{type:Number,default:()=>60},top:{type:Number,default:()=>0},loading:{type:Boolean,default:()=>!1},round:{type:Boolean,default:()=>!1}},emits:[`cancel`,`update:unsaved`,`confirmed`],setup(t,{emit:n}){let r=t,i=(0,e.useAttrs)();i={...i,...r};let a=``,o=``,s=``;(()=>{a=qr.global.t(`unsaved.cancel`),o=qr.global.t(`unsaved.save`);let e=[],t=r.offset;/^[0-9]*[1-9][0-9]$/.test(t)&&(t+=`px`),r.height!==60&&e.push(`height: ${r.height}px`),r.top&&r.top!==60&&r.top>-1&&e.push(`top: ${r.top}px`),s=e.join(`;`)})();let c=n,l=()=>{c(`cancel`),c(`update:unsaved`,!1)},u=()=>{c(`confirmed`)};return(n,r)=>{let i=(0,e.resolveComponent)(`el-button`);return(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:`oga-unsaved`,style:(0,e.normalizeStyle)((0,e.unref)(s))},[(0,e.createElementVNode)(`div`,Ote,(0,e.toDisplayString)(t.tips),1),(0,e.createElementVNode)(`div`,kte,[(0,e.createVNode)(i,{type:`info`,round:t.round,onClick:l,disabled:t.loading},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(a)),1)]),_:1},8,[`round`,`disabled`]),(0,e.createVNode)(i,{type:`primary`,round:t.round,onClick:u,loading:t.loading},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(o)),1)]),_:1},8,[`round`,`loading`])])],4)),[[e.vShow,t.unsaved]])}}}),[[`__scopeId`,`data-v-f43044a4`]]),Jr={install(e){e.component(`OgaUnsaved`,Ate)}},Yr=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function jte(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Xr(e){var t={exports:{}};return e(t,t.exports),t.exports}var Zr,Qr,$r=function(e){return e&&e.Math==Math&&e},ei=$r(typeof globalThis==`object`&&globalThis)||$r(typeof window==`object`&&window)||$r(typeof self==`object`&&self)||$r(typeof Yr==`object`&&Yr)||function(){return this}()||Function(`return this`)(),ti=Function.prototype,ni=ti.apply,ri=ti.bind,ii=ti.call,ai=typeof Reflect==`object`&&Reflect.apply||(ri?ii.bind(ni):function(){return ii.apply(ni,arguments)}),oi=Function.prototype,si=oi.bind,ci=oi.call,Mte=si&&si.bind(ci),li=si?function(e){return e&&Mte(ci,e)}:function(e){return e&&function(){return ci.apply(e,arguments)}},ui=function(e){return typeof e==`function`},di=function(e){try{return!!e()}catch{return!0}},fi=!di((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),pi=Function.prototype.call,mi=pi.bind?pi.bind(pi):function(){return pi.apply(pi,arguments)},hi={}.propertyIsEnumerable,gi=Object.getOwnPropertyDescriptor,_i={f:gi&&!hi.call({1:2},1)?function(e){var t=gi(this,e);return!!t&&t.enumerable}:hi},vi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Nte=li({}.toString),Pte=li(``.slice),yi=function(e){return Pte(Nte(e),8,-1)},bi=ei.Object,Fte=li(``.split),xi=di((function(){return!bi(`z`).propertyIsEnumerable(0)}))?function(e){return yi(e)==`String`?Fte(e,``):bi(e)}:bi,Ite=ei.TypeError,Si=function(e){if(e==null)throw Ite(`Can't call method on `+e);return e},Ci=function(e){return xi(Si(e))},wi=function(e){return typeof e==`object`?e!==null:ui(e)},Ti={},Ei=function(e){return ui(e)?e:void 0},Di=function(e,t){return arguments.length<2?Ei(Ti[e])||Ei(ei[e]):Ti[e]&&Ti[e][t]||ei[e]&&ei[e][t]},Oi=li({}.isPrototypeOf),ki=Di(`navigator`,`userAgent`)||``,Ai=ei.process,ji=ei.Deno,Mi=Ai&&Ai.versions||ji&&ji.version,Ni=Mi&&Mi.v8;Ni&&(Qr=(Zr=Ni.split(`.`))[0]>0&&Zr[0]<4?1:+(Zr[0]+Zr[1])),!Qr&&ki&&(!(Zr=ki.match(/Edge\/(\d+)/))||Zr[1]>=74)&&(Zr=ki.match(/Chrome\/(\d+)/))&&(Qr=+Zr[1]);var Pi,Fi=Qr,Ii=!!Object.getOwnPropertySymbols&&!di((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Fi&&Fi<41})),Li=Ii&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Lte=ei.Object,Ri=Li?function(e){return typeof e==`symbol`}:function(e){var t=Di(`Symbol`);return ui(t)&&Oi(t.prototype,Lte(e))},Rte=ei.String,zi=function(e){try{return Rte(e)}catch{return`Object`}},zte=ei.TypeError,Bi=function(e){if(ui(e))return e;throw zte(zi(e)+` is not a function`)},Vi=function(e,t){var n=e[t];return n==null?void 0:Bi(n)},Bte=ei.TypeError,Hi=Object.defineProperty,Ui=ei[`__core-js_shared__`]||function(e,t){try{Hi(ei,e,{value:t,configurable:!0,writable:!0})}catch{ei[e]=t}return t}(`__core-js_shared__`,{}),Wi=Xr((function(e){(e.exports=function(e,t){return Ui[e]||(Ui[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Gi=ei.Object,Ki=function(e){return Gi(Si(e))},qi=li({}.hasOwnProperty),Ji=Object.hasOwn||function(e,t){return qi(Ki(e),t)},Yi=0,Xi=Math.random(),Zi=li(1 .toString),Qi=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Zi(++Yi+Xi,36)},$i=Wi(`wks`),ea=ei.Symbol,ta=ea&&ea.for,na=Li?ea:ea&&ea.withoutSetter||Qi,ra=function(e){if(!Ji($i,e)||!Ii&&typeof $i[e]!=`string`){var t=`Symbol.`+e;Ii&&Ji(ea,e)?$i[e]=ea[e]:$i[e]=Li&&ta?ta(t):na(t)}return $i[e]},ia=ei.TypeError,aa=ra(`toPrimitive`),oa=function(e,t){if(!wi(e)||Ri(e))return e;var n,r=Vi(e,aa);if(r){if(t===void 0&&(t=`default`),n=mi(r,e,t),!wi(n)||Ri(n))return n;throw ia(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&ui(n=e.toString)&&!wi(r=mi(n,e))||ui(n=e.valueOf)&&!wi(r=mi(n,e))||t!==`string`&&ui(n=e.toString)&&!wi(r=mi(n,e)))return r;throw Bte(`Can't convert object to primitive value`)}(e,t)},sa=function(e){var t=oa(e,`string`);return Ri(t)?t:t+``},ca=ei.document,la=wi(ca)&&wi(ca.createElement),ua=function(e){return la?ca.createElement(e):{}},da=!fi&&!di((function(){return Object.defineProperty(ua(`div`),`a`,{get:function(){return 7}}).a!=7})),fa=Object.getOwnPropertyDescriptor,pa={f:fi?fa:function(e,t){if(e=Ci(e),t=sa(t),da)try{return fa(e,t)}catch{}if(Ji(e,t))return vi(!mi(_i.f,e,t),e[t])}},ma=/#|\.prototype\./,ha=function(e,t){var n=Hte[Vte(e)];return n==Wte||n!=Ute&&(ui(t)?di(t):!!t)},Vte=ha.normalize=function(e){return String(e).replace(ma,`.`).toLowerCase()},Hte=ha.data={},Ute=ha.NATIVE=`N`,Wte=ha.POLYFILL=`P`,Gte=ha,ga=li(li.bind),_a=function(e,t){return Bi(e),t===void 0?e:ga?ga(e,t):function(){return e.apply(t,arguments)}},Kte=ei.String,qte=ei.TypeError,va=function(e){if(wi(e))return e;throw qte(Kte(e)+` is not an object`)},Jte=ei.TypeError,ya=Object.defineProperty,ba={f:fi?ya:function(e,t,n){if(va(e),t=sa(t),va(n),da)try{return ya(e,t,n)}catch{}if(`get`in n||`set`in n)throw Jte(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},xa=fi?function(e,t,n){return ba.f(e,t,vi(1,n))}:function(e,t,n){return e[t]=n,e},Yte=pa.f,Xte=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return ai(e,this,arguments)};return t.prototype=e.prototype,t},Sa=function(e,t){var n,r,i,a,o,s,c,l,u=e.target,d=e.global,f=e.stat,p=e.proto,m=d?ei:f?ei[u]:(ei[u]||{}).prototype,h=d?Ti:Ti[u]||xa(Ti,u,{})[u],g=h.prototype;for(i in t)n=!Gte(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&Ji(m,i),o=h[i],n&&(s=e.noTargetGet?(l=Yte(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?_a(a,ei):e.wrap&&n?Xte(a):p&&ui(a)?li(a):a,(e.sham||a&&a.sham||o&&o.sham)&&xa(c,`sham`,!0),xa(h,i,c),p&&(Ji(Ti,r=u+`Prototype`)||xa(Ti,r,{}),xa(Ti[r],i,a),e.real&&g&&!g[i]&&xa(g,i,a)))},Ca=Wi(`keys`),wa=function(e){return Ca[e]||(Ca[e]=Qi(e))},Zte=!di((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ta=wa(`IE_PROTO`),Ea=ei.Object,Qte=Ea.prototype,Da=Zte?Ea.getPrototypeOf:function(e){var t=Ki(e);if(Ji(t,Ta))return t[Ta];var n=t.constructor;return ui(n)&&t instanceof n?n.prototype:t instanceof Ea?Qte:null},$te=ei.String,ene=ei.TypeError,Oa=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=li(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return va(n),function(e){if(typeof e==`object`||ui(e))return e;throw ene(`Can't set `+$te(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),tne=Math.ceil,nne=Math.floor,ka=function(e){var t=+e;return t!=t||t===0?0:(t>0?nne:tne)(t)},rne=Math.max,ine=Math.min,Aa=function(e,t){var n=ka(e);return n<0?rne(n+t,0):ine(n,t)},ane=Math.min,ja=function(e){return(t=e.length)>0?ane(ka(t),9007199254740991):0;var t},Ma=function(e){return function(t,n,r){var i,a=Ci(t),o=ja(a),s=Aa(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},one={includes:Ma(!0),indexOf:Ma(!1)},Na={},sne=one.indexOf,Pa=li([].push),Fa=function(e,t){var n,r=Ci(e),i=0,a=[];for(n in r)!Ji(Na,n)&&Ji(r,n)&&Pa(a,n);for(;t.length>i;)Ji(r,n=t[i++])&&(~sne(a,n)||Pa(a,n));return a},Ia=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],cne=Ia.concat(`length`,`prototype`),La={f:Object.getOwnPropertyNames||function(e){return Fa(e,cne)}},Ra={f:Object.getOwnPropertySymbols},lne=li([].concat),une=Di(`Reflect`,`ownKeys`)||function(e){var t=La.f(va(e)),n=Ra.f;return n?lne(t,n(e)):t},za=Object.keys||function(e){return Fa(e,Ia)},dne=fi?Object.defineProperties:function(e,t){va(e);for(var n,r=Ci(t),i=za(t),a=i.length,o=0;a>o;)ba.f(e,n=i[o++],r[n]);return e},fne=Di(`document`,`documentElement`),Ba=wa(`IE_PROTO`),Va=function(){},Ha=function(e){return`<script>`+e+`<\/script>`},Ua=function(e){e.write(Ha(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Wa=function(){try{Pi=new ActiveXObject(`htmlfile`)}catch{}var e,t;Wa=typeof document<`u`?document.domain&&Pi?Ua(Pi):((t=ua(`iframe`)).style.display=`none`,fne.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Ha(`document.F=Object`)),e.close(),e.F):Ua(Pi);for(var n=Ia.length;n--;)delete Wa.prototype[Ia[n]];return Wa()};Na[Ba]=!0;var Ga=Object.create||function(e,t){var n;return e===null?n=Wa():(Va.prototype=va(e),n=new Va,Va.prototype=null,n[Ba]=e),t===void 0?n:dne(n,t)},Ka=function(e,t,n){var r=sa(t);r in e?ba.f(e,r,vi(0,n)):e[r]=n},pne=ei.Array,mne=Math.max,qa=function(e,t,n){for(var r=ja(e),i=Aa(t,r),a=Aa(n===void 0?r:n,r),o=pne(mne(a-i,0)),s=0;i<a;i++,s++)Ka(o,s,e[i]);return o.length=s,o},hne=li(``.replace),gne=li(``.split),Ja=li([].join),Ya=String(Error(`zxcasd`).stack),Xa=/\n\s*at [^:]*:[^\n]*/,Za=Xa.test(Ya),Qa=/@[^\n]*\n/.test(Ya)&&!/zxcasd/.test(Ya),$a=function(e,t){if(typeof e!=`string`)return e;if(Za)for(;t--;)e=hne(e,Xa,``);else if(Qa)return Ja(qa(gne(e,`
6
+ `),t),`
7
+ `);return e},eo=function(e,t){wi(t)&&`cause`in t&&xa(e,`cause`,t.cause)},to={},no=ra(`iterator`),ro=Array.prototype,io={};io[ra(`toStringTag`)]=`z`;var ao=String(io)===`[object z]`,oo=ra(`toStringTag`),so=ei.Object,co=yi(function(){return arguments}())==`Arguments`,lo=ao?yi:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=so(e),oo))==`string`?n:co?yi(t):(r=yi(t))==`Object`&&ui(t.callee)?`Arguments`:r},uo=ra(`iterator`),fo=function(e){if(e!=null)return Vi(e,uo)||Vi(e,`@@iterator`)||to[lo(e)]},po=ei.TypeError,mo=function(e,t,n){var r,i;va(e);try{if(!(r=Vi(e,`return`))){if(t===`throw`)throw n;return n}r=mi(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return va(r),n},ho=ei.TypeError,go=function(e,t){this.stopped=e,this.result=t},_o=go.prototype,vo=function(e,t,n){var r,i,a,o,s,c,l,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=_a(t,u),h=function(e){return r&&mo(r,`normal`,e),new go(!0,e)},g=function(e){return d?(va(e),p?m(e[0],e[1],h):m(e[0],e[1])):p?m(e,h):m(e)};if(f)r=e;else{if(!(i=fo(e)))throw ho(zi(e)+` is not iterable`);if(function(e){return e!==void 0&&(to.Array===e||ro[no]===e)}(i)){for(a=0,o=ja(e);o>a;a++)if((s=g(e[a]))&&Oi(_o,s))return s;return new go(!1)}r=function(e,t){var n=arguments.length<2?fo(e):t;if(Bi(n))return va(mi(n,e));throw po(zi(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=mi(c,r)).done;){try{s=g(l.value)}catch(e){mo(r,`throw`,e)}if(typeof s==`object`&&s&&Oi(_o,s))return s}return new go(!1)},yo=ei.String,bo=function(e){if(lo(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return yo(e)},xo=function(e,t){return e===void 0?arguments.length<2?``:t:bo(e)},So=!di((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,`stack`,vi(1,7)),e.stack!==7)})),Co=ra(`toStringTag`),wo=ei.Error,To=[].push,Eo=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=Oi(Do,this);Oa?n=Oa(new wo(void 0),i?Da(this):Do):(n=i?this:Ga(Do),xa(n,Co,`Error`)),xa(n,`message`,xo(t,``)),So&&xa(n,`stack`,$a(n.stack,1)),eo(n,r);var a=[];return vo(e,To,{that:a}),xa(n,`errors`,a),n};Oa?Oa(Eo,wo):function(e,t){for(var n=une(t),r=ba.f,i=pa.f,a=0;a<n.length;a++){var o=n[a];Ji(e,o)||r(e,o,i(t,o))}}(Eo,wo);var Do=Eo.prototype=Ga(wo.prototype,{constructor:vi(1,Eo),message:vi(1,``),name:vi(1,`AggregateError`)});Sa({global:!0},{AggregateError:Eo});var Oo=li(Function.toString);ui(Ui.inspectSource)||(Ui.inspectSource=function(e){return Oo(e)});var ko,Ao,jo,Mo=Ui.inspectSource,No=ei.WeakMap,Po=ui(No)&&/native code/.test(Mo(No)),Fo=ei.TypeError,Io=ei.WeakMap;if(Po||Ui.state){var Lo=Ui.state||=new Io,Ro=li(Lo.get),zo=li(Lo.has),Bo=li(Lo.set);ko=function(e,t){if(zo(Lo,e))throw new Fo(`Object already initialized`);return t.facade=e,Bo(Lo,e,t),t},Ao=function(e){return Ro(Lo,e)||{}},jo=function(e){return zo(Lo,e)}}else{var Vo=wa(`state`);Na[Vo]=!0,ko=function(e,t){if(Ji(e,Vo))throw new Fo(`Object already initialized`);return t.facade=e,xa(e,Vo,t),t},Ao=function(e){return Ji(e,Vo)?e[Vo]:{}},jo=function(e){return Ji(e,Vo)}}var Ho,Uo,Wo,Go={set:ko,get:Ao,has:jo,enforce:function(e){return jo(e)?Ao(e):ko(e,{})},getterFor:function(e){return function(t){var n;if(!wi(t)||(n=Ao(t)).type!==e)throw Fo(`Incompatible receiver, `+e+` required`);return n}}},Ko=Function.prototype,qo=fi&&Object.getOwnPropertyDescriptor,Jo=Ji(Ko,`name`),Yo={EXISTS:Jo,PROPER:Jo&&function(){}.name===`something`,CONFIGURABLE:Jo&&(!fi||fi&&qo(Ko,`name`).configurable)},Xo=function(e,t,n,r){r&&r.enumerable?e[t]=n:xa(e,t,n)},Zo=ra(`iterator`),Qo=!1;[].keys&&(`next`in(Wo=[].keys())?(Uo=Da(Da(Wo)))!==Object.prototype&&(Ho=Uo):Qo=!0),Ho=Ho==null||di((function(){var e={};return Ho[Zo].call(e)!==e}))?{}:Ga(Ho),ui(Ho[Zo])||Xo(Ho,Zo,(function(){return this}));var $o={IteratorPrototype:Ho,BUGGY_SAFARI_ITERATORS:Qo},es=ao?{}.toString:function(){return`[object `+lo(this)+`]`},ts=ba.f,ns=ra(`toStringTag`),rs=function(e,t,n,r){if(e){var i=n?e:e.prototype;Ji(i,ns)||ts(i,ns,{configurable:!0,value:t}),r&&!ao&&xa(i,`toString`,es)}},_ne=$o.IteratorPrototype,vne=function(){return this},yne=Yo.PROPER,is=$o.BUGGY_SAFARI_ITERATORS,as=ra(`iterator`),bne=function(){return this},os=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=Ga(_ne,{next:vi(+!r,n)}),rs(e,i,!1,!0),to[i]=vne})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!is&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[as]||p[`@@iterator`]||i&&p[i],h=!is&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=Da(g.call(new e)))!==Object.prototype&&s.next&&(rs(s,d,!0,!0),to[d]=bne),yne&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return mi(m,this)}),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(is||f||!(l in p))&&Xo(p,l,c[l]);else Sa({target:t,proto:!0,forced:is||f},c);return o&&p[as]!==h&&Xo(p,as,h,{name:i}),to[t]=h,c},xne=Go.set,Sne=Go.getterFor(`Array Iterator`);os(Array,`Array`,(function(e,t){xne(this,{type:`Array Iterator`,target:Ci(e),index:0,kind:t})}),(function(){var e=Sne(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`),to.Arguments=to.Array;var Cne=li(``.charAt),ss=li(``.charCodeAt),wne=li(``.slice),cs=function(e){return function(t,n){var r,i,a=bo(Si(t)),o=ka(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=ss(a,o))<55296||r>56319||o+1===s||(i=ss(a,o+1))<56320||i>57343?e?Cne(a,o):r:e?wne(a,o,o+2):i-56320+(r-55296<<10)+65536}},Tne={codeAt:cs(!1),charAt:cs(!0)}.charAt,Ene=Go.set,Dne=Go.getterFor(`String Iterator`);os(String,`String`,(function(e){Ene(this,{type:`String Iterator`,string:bo(e),index:0})}),(function(){var e,t=Dne(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Tne(n,r),t.index+=e.length,{value:e,done:!1})}));var One=Ti.AggregateError,ls=ra(`toStringTag`);for(var us in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var ds=ei[us],fs=ds&&ds.prototype;fs&&lo(fs)!==ls&&xa(fs,ls,us),to[us]=to.Array}var ps,ms,kne=One,hs=function(e){return e&&e.Math==Math&&e},N=hs(typeof globalThis==`object`&&globalThis)||hs(typeof window==`object`&&window)||hs(typeof self==`object`&&self)||hs(typeof Yr==`object`&&Yr)||function(){return this}()||Function(`return this`)(),gs=function(e){try{return!!e()}catch{return!0}},_s=!gs((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),vs=Function.prototype.call,ys=vs.bind?vs.bind(vs):function(){return vs.apply(vs,arguments)},bs={}.propertyIsEnumerable,xs=Object.getOwnPropertyDescriptor,Ane={f:xs&&!bs.call({1:2},1)?function(e){var t=xs(this,e);return!!t&&t.enumerable}:bs},Ss=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Cs=Function.prototype,ws=Cs.bind,Ts=Cs.call,jne=ws&&ws.bind(Ts),Es=ws?function(e){return e&&jne(Ts,e)}:function(e){return e&&function(){return Ts.apply(e,arguments)}},Mne=Es({}.toString),Nne=Es(``.slice),Ds=function(e){return Nne(Mne(e),8,-1)},Os=N.Object,Pne=Es(``.split),ks=gs((function(){return!Os(`z`).propertyIsEnumerable(0)}))?function(e){return Ds(e)==`String`?Pne(e,``):Os(e)}:Os,Fne=N.TypeError,As=function(e){if(e==null)throw Fne(`Can't call method on `+e);return e},js=function(e){return ks(As(e))},Ms=function(e){return typeof e==`function`},Ns=function(e){return typeof e==`object`?e!==null:Ms(e)},Ine=function(e){return Ms(e)?e:void 0},Ps=function(e,t){return arguments.length<2?Ine(N[e]):N[e]&&N[e][t]},Fs=Es({}.isPrototypeOf),Is=Ps(`navigator`,`userAgent`)||``,Ls=N.process,Rs=N.Deno,zs=Ls&&Ls.versions||Rs&&Rs.version,Bs=zs&&zs.v8;Bs&&(ms=(ps=Bs.split(`.`))[0]>0&&ps[0]<4?1:+(ps[0]+ps[1])),!ms&&Is&&(!(ps=Is.match(/Edge\/(\d+)/))||ps[1]>=74)&&(ps=Is.match(/Chrome\/(\d+)/))&&(ms=+ps[1]);var Vs=ms,Hs=!!Object.getOwnPropertySymbols&&!gs((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Vs&&Vs<41})),Us=Hs&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Lne=N.Object,Ws=Us?function(e){return typeof e==`symbol`}:function(e){var t=Ps(`Symbol`);return Ms(t)&&Fs(t.prototype,Lne(e))},Rne=N.String,Gs=function(e){try{return Rne(e)}catch{return`Object`}},zne=N.TypeError,Ks=function(e){if(Ms(e))return e;throw zne(Gs(e)+` is not a function`)},qs=function(e,t){var n=e[t];return n==null?void 0:Ks(n)},Bne=N.TypeError,Vne=Object.defineProperty,Js=function(e,t){try{Vne(N,e,{value:t,configurable:!0,writable:!0})}catch{N[e]=t}return t},Ys=N[`__core-js_shared__`]||Js(`__core-js_shared__`,{}),Xs=Xr((function(e){(e.exports=function(e,t){return Ys[e]||(Ys[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Hne=N.Object,Zs=function(e){return Hne(As(e))},Une=Es({}.hasOwnProperty),Qs=Object.hasOwn||function(e,t){return Une(Zs(e),t)},Wne=0,Gne=Math.random(),Kne=Es(1 .toString),$s=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Kne(++Wne+Gne,36)},ec=Xs(`wks`),tc=N.Symbol,nc=tc&&tc.for,qne=Us?tc:tc&&tc.withoutSetter||$s,rc=function(e){if(!Qs(ec,e)||!Hs&&typeof ec[e]!=`string`){var t=`Symbol.`+e;Hs&&Qs(tc,e)?ec[e]=tc[e]:ec[e]=Us&&nc?nc(t):qne(t)}return ec[e]},Jne=N.TypeError,Yne=rc(`toPrimitive`),Xne=function(e,t){if(!Ns(e)||Ws(e))return e;var n,r=qs(e,Yne);if(r){if(t===void 0&&(t=`default`),n=ys(r,e,t),!Ns(n)||Ws(n))return n;throw Jne(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&Ms(n=e.toString)&&!Ns(r=ys(n,e))||Ms(n=e.valueOf)&&!Ns(r=ys(n,e))||t!==`string`&&Ms(n=e.toString)&&!Ns(r=ys(n,e)))return r;throw Bne(`Can't convert object to primitive value`)}(e,t)},ic=function(e){var t=Xne(e,`string`);return Ws(t)?t:t+``},ac=N.document,Zne=Ns(ac)&&Ns(ac.createElement),oc=function(e){return Zne?ac.createElement(e):{}},sc=!_s&&!gs((function(){return Object.defineProperty(oc(`div`),`a`,{get:function(){return 7}}).a!=7})),cc=Object.getOwnPropertyDescriptor,lc={f:_s?cc:function(e,t){if(e=js(e),t=ic(t),sc)try{return cc(e,t)}catch{}if(Qs(e,t))return Ss(!ys(Ane.f,e,t),e[t])}},Qne=N.String,$ne=N.TypeError,uc=function(e){if(Ns(e))return e;throw $ne(Qne(e)+` is not an object`)},ere=N.TypeError,dc=Object.defineProperty,fc={f:_s?dc:function(e,t,n){if(uc(e),t=ic(t),uc(n),sc)try{return dc(e,t,n)}catch{}if(`get`in n||`set`in n)throw ere(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},pc=_s?function(e,t,n){return fc.f(e,t,Ss(1,n))}:function(e,t,n){return e[t]=n,e},tre=Es(Function.toString);Ms(Ys.inspectSource)||(Ys.inspectSource=function(e){return tre(e)});var mc,hc,gc,_c=Ys.inspectSource,vc=N.WeakMap,nre=Ms(vc)&&/native code/.test(_c(vc)),yc=Xs(`keys`),bc=function(e){return yc[e]||(yc[e]=$s(e))},xc={},Sc=N.TypeError,rre=N.WeakMap;if(nre||Ys.state){var Cc=Ys.state||=new rre,ire=Es(Cc.get),wc=Es(Cc.has),are=Es(Cc.set);mc=function(e,t){if(wc(Cc,e))throw new Sc(`Object already initialized`);return t.facade=e,are(Cc,e,t),t},hc=function(e){return ire(Cc,e)||{}},gc=function(e){return wc(Cc,e)}}else{var Tc=bc(`state`);xc[Tc]=!0,mc=function(e,t){if(Qs(e,Tc))throw new Sc(`Object already initialized`);return t.facade=e,pc(e,Tc,t),t},hc=function(e){return Qs(e,Tc)?e[Tc]:{}},gc=function(e){return Qs(e,Tc)}}var Ec={set:mc,get:hc,has:gc,enforce:function(e){return gc(e)?hc(e):mc(e,{})},getterFor:function(e){return function(t){var n;if(!Ns(t)||(n=hc(t)).type!==e)throw Sc(`Incompatible receiver, `+e+` required`);return n}}},Dc=Function.prototype,ore=_s&&Object.getOwnPropertyDescriptor,Oc=Qs(Dc,`name`),kc={EXISTS:Oc,PROPER:Oc&&function(){}.name===`something`,CONFIGURABLE:Oc&&(!_s||_s&&ore(Dc,`name`).configurable)},Ac=Xr((function(e){var t=kc.CONFIGURABLE,n=Ec.get,r=Ec.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;Ms(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!Qs(a,`name`)||t&&a.name!==d)&&pc(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===N?l?e[n]=a:Js(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:pc(e,n,a))})(Function.prototype,`toString`,(function(){return Ms(this)&&n(this).source||_c(this)}))})),sre=Math.ceil,cre=Math.floor,jc=function(e){var t=+e;return t!=t||t===0?0:(t>0?cre:sre)(t)},lre=Math.max,ure=Math.min,Mc=function(e,t){var n=jc(e);return n<0?lre(n+t,0):ure(n,t)},dre=Math.min,Nc=function(e){return e>0?dre(jc(e),9007199254740991):0},Pc=function(e){return Nc(e.length)},Fc=function(e){return function(t,n,r){var i,a=js(t),o=Pc(a),s=Mc(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},fre={includes:Fc(!0),indexOf:Fc(!1)}.indexOf,Ic=Es([].push),Lc=function(e,t){var n,r=js(e),i=0,a=[];for(n in r)!Qs(xc,n)&&Qs(r,n)&&Ic(a,n);for(;t.length>i;)Qs(r,n=t[i++])&&(~fre(a,n)||Ic(a,n));return a},Rc=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],pre=Rc.concat(`length`,`prototype`),mre={f:Object.getOwnPropertyNames||function(e){return Lc(e,pre)}},hre={f:Object.getOwnPropertySymbols},gre=Es([].concat),_re=Ps(`Reflect`,`ownKeys`)||function(e){var t=mre.f(uc(e)),n=hre.f;return n?gre(t,n(e)):t},zc=function(e,t){for(var n=_re(t),r=fc.f,i=lc.f,a=0;a<n.length;a++){var o=n[a];Qs(e,o)||r(e,o,i(t,o))}},vre=/#|\.prototype\./,Bc=function(e,t){var n=bre[yre(e)];return n==Sre||n!=xre&&(Ms(t)?gs(t):!!t)},yre=Bc.normalize=function(e){return String(e).replace(vre,`.`).toLowerCase()},bre=Bc.data={},xre=Bc.NATIVE=`N`,Sre=Bc.POLYFILL=`P`,Cre=Bc,wre=lc.f,Vc=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?N:l?N[s]||Js(s,{}):(N[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=wre(n,r))&&o.value:n[r],!Cre(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;zc(a,i)}(e.sham||i&&i.sham)&&pc(a,`sham`,!0),Ac(n,r,a,e)}},Hc={};Hc[rc(`toStringTag`)]=`z`;var Uc,Wc=String(Hc)===`[object z]`,Tre=rc(`toStringTag`),Ere=N.Object,Dre=Ds(function(){return arguments}())==`Arguments`,Gc=Wc?Ds:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=Ere(e),Tre))==`string`?n:Dre?Ds(t):(r=Ds(t))==`Object`&&Ms(t.callee)?`Arguments`:r},Ore=N.String,Kc=function(e){if(Gc(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Ore(e)},kre=function(){var e=uc(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},qc=N.RegExp,Jc=gs((function(){var e=qc(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Are=Jc||gs((function(){return!qc(`a`,`y`).sticky})),jre={BROKEN_CARET:Jc||gs((function(){var e=qc(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Are,UNSUPPORTED_Y:Jc},Mre=Object.keys||function(e){return Lc(e,Rc)},Nre=_s?Object.defineProperties:function(e,t){uc(e);for(var n,r=js(t),i=Mre(t),a=i.length,o=0;a>o;)fc.f(e,n=i[o++],r[n]);return e},Pre=Ps(`document`,`documentElement`),Yc=bc(`IE_PROTO`),Xc=function(){},Zc=function(e){return`<script>`+e+`<\/script>`},Qc=function(e){e.write(Zc(``)),e.close();var t=e.parentWindow.Object;return e=null,t},$c=function(){try{Uc=new ActiveXObject(`htmlfile`)}catch{}var e,t;$c=typeof document<`u`?document.domain&&Uc?Qc(Uc):((t=oc(`iframe`)).style.display=`none`,Pre.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Zc(`document.F=Object`)),e.close(),e.F):Qc(Uc);for(var n=Rc.length;n--;)delete $c.prototype[Rc[n]];return $c()};xc[Yc]=!0;var el,tl,nl=Object.create||function(e,t){var n;return e===null?n=$c():(Xc.prototype=uc(e),n=new Xc,Xc.prototype=null,n[Yc]=e),t===void 0?n:Nre(n,t)},Fre=N.RegExp,Ire=gs((function(){var e=Fre(`.`,`s`);return!(e.dotAll&&e.exec(`
8
+ `)&&e.flags===`s`)})),Lre=N.RegExp,Rre=gs((function(){var e=Lre(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),zre=Ec.get,Bre=Xs(`native-string-replace`,String.prototype.replace),rl=RegExp.prototype.exec,il=rl,Vre=Es(``.charAt),Hre=Es(``.indexOf),Ure=Es(``.replace),al=Es(``.slice),ol=(tl=/b*/g,ys(rl,el=/a/,`a`),ys(rl,tl,`a`),el.lastIndex!==0||tl.lastIndex!==0),sl=jre.BROKEN_CARET,cl=/()??/.exec(``)[1]!==void 0;(ol||cl||sl||Ire||Rre)&&(il=function(e){var t,n,r,i,a,o,s,c=this,l=zre(c),u=Kc(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=ys(il,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=sl&&c.sticky,m=ys(kre,c),h=c.source,g=0,_=u;if(p&&(m=Ure(m,`y`,``),Hre(m,`g`)===-1&&(m+=`g`),_=al(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Vre(u,c.lastIndex-1)!==`
9
+ `)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),cl&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),ol&&(r=c.lastIndex),i=ys(rl,p?n:c,_),p?i?(i.input=al(i.input,g),i[0]=al(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:ol&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),cl&&i&&i.length>1&&ys(Bre,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=nl(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var ll=il;Vc({target:`RegExp`,proto:!0,forced:/./.exec!==ll},{exec:ll});var ul=rc(`species`),dl=RegExp.prototype,Wre=Es(``.charAt),fl=Es(``.charCodeAt),Gre=Es(``.slice),pl=function(e){return function(t,n){var r,i,a=Kc(As(t)),o=jc(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=fl(a,o))<55296||r>56319||o+1===s||(i=fl(a,o+1))<56320||i>57343?e?Wre(a,o):r:e?Gre(a,o,o+2):i-56320+(r-55296<<10)+65536}},ml={codeAt:pl(!1),charAt:pl(!0)},hl=ml.charAt,gl=function(e,t,n){return t+(n?hl(e,t).length:1)},_l=N.TypeError,vl=function(e,t){var n=e.exec;if(Ms(n)){var r=ys(n,e,t);return r!==null&&uc(r),r}if(Ds(e)===`RegExp`)return ys(ll,e,t);throw _l(`RegExp#exec called on incompatible receiver`)};(function(e,t,n,r){var i=rc(e),a=!gs((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!gs((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[ul]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=Es(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=Es(e),c=t.exec;return c===ll||c===dl.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));Ac(String.prototype,e,c[0]),Ac(dl,i,c[1])}r&&pc(dl[i],`sham`,!0)})(`match`,(function(e,t,n){return[function(t){var n=As(this),r=t==null?void 0:qs(t,e);return r?ys(r,t,n):new RegExp(t)[e](Kc(n))},function(e){var r=uc(this),i=Kc(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return vl(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=vl(r,i))!==null;){var u=Kc(s[0]);c[l]=u,u===``&&(r.lastIndex=gl(i,Nc(r.lastIndex),o)),l++}return l===0?null:c}]})),Vc({global:!0},{globalThis:N});var Kre=!gs((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),yl=bc(`IE_PROTO`),bl=N.Object,qre=bl.prototype,xl=Kre?bl.getPrototypeOf:function(e){var t=Zs(e);if(Qs(t,yl))return t[yl];var n=t.constructor;return Ms(n)&&t instanceof n?n.prototype:t instanceof bl?qre:null},Jre=N.String,Yre=N.TypeError,Sl=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=Es(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return uc(n),function(e){if(typeof e==`object`||Ms(e))return e;throw Yre(`Can't set `+Jre(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Cl=N.Array,wl=Math.max,Tl=Es(``.replace),El=Es(``.split),Dl=Es([].join),Ol=String(Error(`zxcasd`).stack),kl=/\n\s*at [^:]*:[^\n]*/,Al=kl.test(Ol),jl=/@[^\n]*\n/.test(Ol)&&!/zxcasd/.test(Ol),Xre=function(e,t){if(typeof e!=`string`)return e;if(Al)for(;t--;)e=Tl(e,kl,``);else if(jl)return Dl(function(e,t,n){for(var r,i,a,o,s=Pc(e),c=Mc(t,s),l=Mc(n===void 0?s:n,s),u=Cl(wl(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],o=void 0,(o=ic(i))in r?fc.f(r,o,Ss(0,a)):r[o]=a;return u.length=d,u}(El(e,`
10
+ `),t),`
11
+ `);return e},Zre=function(e,t){Ns(t)&&`cause`in t&&pc(e,`cause`,t.cause)},Ml=Es(Es.bind),Nl=function(e,t){return Ks(e),t===void 0?e:Ml?Ml(e,t):function(){return e.apply(t,arguments)}},Pl={},Qre=rc(`iterator`),$re=Array.prototype,eie=rc(`iterator`),Fl=function(e){if(e!=null)return qs(e,eie)||qs(e,`@@iterator`)||Pl[Gc(e)]},tie=N.TypeError,Il=function(e,t,n){var r,i;uc(e);try{if(!(r=qs(e,`return`))){if(t===`throw`)throw n;return n}r=ys(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return uc(r),n},nie=N.TypeError,Ll=function(e,t){this.stopped=e,this.result=t},Rl=Ll.prototype,rie=function(e,t,n){var r,i,a,o,s,c,l,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=Nl(t,u),h=function(e){return r&&Il(r,`normal`,e),new Ll(!0,e)},g=function(e){return d?(uc(e),p?m(e[0],e[1],h):m(e[0],e[1])):p?m(e,h):m(e)};if(f)r=e;else{if(!(i=Fl(e)))throw nie(Gs(e)+` is not iterable`);if(function(e){return e!==void 0&&(Pl.Array===e||$re[Qre]===e)}(i)){for(a=0,o=Pc(e);o>a;a++)if((s=g(e[a]))&&Fs(Rl,s))return s;return new Ll(!1)}r=function(e,t){var n=arguments.length<2?Fl(e):t;if(Ks(n))return uc(ys(n,e));throw tie(Gs(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=ys(c,r)).done;){try{s=g(l.value)}catch(e){Il(r,`throw`,e)}if(typeof s==`object`&&s&&Fs(Rl,s))return s}return new Ll(!1)},iie=function(e,t){return e===void 0?arguments.length<2?``:t:Kc(e)},zl=!gs((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,`stack`,Ss(1,7)),e.stack!==7)})),Bl=rc(`toStringTag`),Vl=N.Error,Hl=[].push,Ul=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=Fs(Wl,this);Sl?n=Sl(new Vl(void 0),i?xl(this):Wl):(n=i?this:nl(Wl),pc(n,Bl,`Error`)),pc(n,`message`,iie(t,``)),zl&&pc(n,`stack`,Xre(n.stack,1)),Zre(n,r);var a=[];return rie(e,Hl,{that:a}),pc(n,`errors`,a),n};Sl?Sl(Ul,Vl):zc(Ul,Vl);var Wl=Ul.prototype=nl(Vl.prototype,{constructor:Ss(1,Ul),message:Ss(1,``),name:Ss(1,`AggregateError`)});Vc({global:!0},{AggregateError:Ul});var Gl=rc(`unscopables`),Kl=Array.prototype;Kl[Gl]??fc.f(Kl,Gl,{configurable:!0,value:nl(null)});var ql,Jl,Yl,Xl=function(e){Kl[Gl][e]=!0},Zl=rc(`iterator`),Ql=!1;[].keys&&(`next`in(Yl=[].keys())?(Jl=xl(xl(Yl)))!==Object.prototype&&(ql=Jl):Ql=!0),(ql==null||gs((function(){var e={};return ql[Zl].call(e)!==e})))&&(ql={}),Ms(ql[Zl])||Ac(ql,Zl,(function(){return this}));var $l={IteratorPrototype:ql,BUGGY_SAFARI_ITERATORS:Ql},eu=fc.f,tu=rc(`toStringTag`),nu=function(e,t,n){e&&!Qs(e=n?e:e.prototype,tu)&&eu(e,tu,{configurable:!0,value:t})},aie=$l.IteratorPrototype,oie=function(){return this},sie=kc.PROPER,cie=kc.CONFIGURABLE,ru=$l.IteratorPrototype,iu=$l.BUGGY_SAFARI_ITERATORS,au=rc(`iterator`),lie=function(){return this},ou=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=nl(aie,{next:Ss(+!r,n)}),nu(e,i,!1),Pl[i]=oie})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!iu&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[au]||p[`@@iterator`]||i&&p[i],h=!iu&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=xl(g.call(new e)))!==Object.prototype&&s.next&&(xl(s)!==ru&&(Sl?Sl(s,ru):Ms(s[au])||Ac(s,au,lie)),nu(s,d,!0)),sie&&i==`values`&&m&&m.name!==`values`&&(cie?pc(p,`name`,`values`):(f=!0,h=function(){return ys(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(iu||f||!(l in p))&&Ac(p,l,c[l]);else Vc({target:t,proto:!0,forced:iu||f},c);return p[au]!==h&&Ac(p,au,h,{name:i}),Pl[t]=h,c},uie=Ec.set,die=Ec.getterFor(`Array Iterator`),su=ou(Array,`Array`,(function(e,t){uie(this,{type:`Array Iterator`,target:js(e),index:0,kind:t})}),(function(){var e=die(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);Pl.Arguments=Pl.Array,Xl(`keys`),Xl(`values`),Xl(`entries`);var fie=ml.charAt,pie=Ec.set,mie=Ec.getterFor(`String Iterator`);ou(String,`String`,(function(e){pie(this,{type:`String Iterator`,string:Kc(e),index:0})}),(function(){var e,t=mie(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=fie(n,r),t.index+=e.length,{value:e,done:!1})}));var cu,lu={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},uu=oc(`span`).classList,du=uu&&uu.constructor&&uu.constructor.prototype,fu=du===Object.prototype?void 0:du,pu=rc(`iterator`),mu=rc(`toStringTag`),hu=su.values,gu=function(e,t){if(e){if(e[pu]!==hu)try{pc(e,pu,hu)}catch{e[pu]=hu}if(e[mu]||pc(e,mu,t),lu[t]){for(var n in su)if(e[n]!==su[n])try{pc(e,n,su[n])}catch{e[n]=su[n]}}}};for(var _u in lu)gu(N[_u]&&N[_u].prototype,_u);gu(fu,`DOMTokenList`),typeof global>`u`?(`ActiveXObject`in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
12
+ Sorry, wangEditor V5+ versions do not support IE browser.`),vu(),yu()):global&&(cu=global.navigator)!=null&&cu.userAgent.match(`QQBrowser`)&&(vu(),yu());function vu(){typeof globalThis>`u`&&(window.globalThis=window)}function yu(){kne===void 0&&(window.AggregateError=function(e,t){var n=Error(t);return n.errors=e,n})}var bu,xu=Array.isArray||function(e){return yi(e)==`Array`},Su=function(){},Cu=[],wu=Di(`Reflect`,`construct`),Tu=/^\s*(?:class|function)\b/,Eu=li(Tu.exec),Du=!Tu.exec(Su),Ou=function(e){if(!ui(e))return!1;try{return wu(Su,Cu,e),!0}catch{return!1}},ku=!wu||di((function(){var e;return Ou(Ou.call)||!Ou(Object)||!Ou((function(){e=!0}))||e}))?function(e){if(!ui(e))return!1;switch(lo(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Du||!!Eu(Tu,Mo(e))}:Ou,Au=ra(`species`),ju=ei.Array,Mu=function(e,t){return new(function(e){var t;return xu(e)&&(t=e.constructor,(ku(t)&&(t===ju||xu(t.prototype))||wi(t)&&(t=t[Au])===null)&&(t=void 0)),t===void 0?ju:t}(e))(t===0?0:t)},Nu=ra(`species`),Pu=ra(`isConcatSpreadable`),Fu=ei.TypeError,Iu=Fi>=51||!di((function(){var e=[];return e[Pu]=!1,e.concat()[0]!==e})),Lu=(bu=`concat`,Fi>=51||!di((function(){var e=[];return(e.constructor={})[Nu]=function(){return{foo:1}},e[bu](Boolean).foo!==1}))),hie=function(e){if(!wi(e))return!1;var t=e[Pu];return t===void 0?xu(e):!!t};Sa({target:`Array`,proto:!0,forced:!Iu||!Lu},{concat:function(e){var t,n,r,i,a,o=Ki(this),s=Mu(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(hie(a=t===-1?o:arguments[t])){if(c+(i=ja(a))>9007199254740991)throw Fu(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&Ka(s,c,a[n])}else{if(c>=9007199254740991)throw Fu(`Maximum allowed index exceeded`);Ka(s,c++,a)}return s.length=c,s}});var Ru=La.f,zu=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Bu={f:function(e){return zu&&yi(e)==`Window`?function(e){try{return Ru(e)}catch{return qa(zu)}}(e):Ru(Ci(e))}},gie=li([].slice),Vu={f:ra},_ie=ba.f,Hu=function(e){var t=Ti.Symbol||={};Ji(t,e)||_ie(t,e,{value:Vu.f(e)})},Uu=li([].push),Wu=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=Ki(c),h=xi(m),g=_a(l,u),_=ja(h),v=0,y=d||Mu,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:Uu(b,f)}else switch(e){case 4:return!1;case 7:Uu(b,f)}return a?-1:r||i?i:b}},Gu={forEach:Wu(0),map:Wu(1),filter:Wu(2),some:Wu(3),every:Wu(4),find:Wu(5),findIndex:Wu(6),filterReject:Wu(7)}.forEach,Ku=wa(`hidden`),qu=ra(`toPrimitive`),vie=Go.set,Ju=Go.getterFor(`Symbol`),Yu=Object.prototype,Xu=ei.Symbol,Zu=Xu&&Xu.prototype,Qu=ei.TypeError,$u=ei.QObject,ed=Di(`JSON`,`stringify`),td=pa.f,nd=ba.f,rd=Bu.f,yie=_i.f,id=li([].push),ad=Wi(`symbols`),od=Wi(`op-symbols`),sd=Wi(`string-to-symbol-registry`),cd=Wi(`symbol-to-string-registry`),bie=Wi(`wks`),ld=!$u||!$u.prototype||!$u.prototype.findChild,ud=fi&&di((function(){return Ga(nd({},`a`,{get:function(){return nd(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=td(Yu,t);r&&delete Yu[t],nd(e,t,n),r&&e!==Yu&&nd(Yu,t,r)}:nd,dd=function(e,t){var n=ad[e]=Ga(Zu);return vie(n,{type:`Symbol`,tag:e,description:t}),fi||(n.description=t),n},fd=function(e,t,n){e===Yu&&fd(od,t,n),va(e);var r=sa(t);return va(n),Ji(ad,r)?(n.enumerable?(Ji(e,Ku)&&e[Ku][r]&&(e[Ku][r]=!1),n=Ga(n,{enumerable:vi(0,!1)})):(Ji(e,Ku)||nd(e,Ku,vi(1,{})),e[Ku][r]=!0),ud(e,r,n)):nd(e,r,n)},pd=function(e,t){va(e);var n=Ci(t);return Gu(za(n).concat(_d(n)),(function(t){fi&&!mi(md,n,t)||fd(e,t,n[t])})),e},md=function(e){var t=sa(e),n=mi(yie,this,t);return!(this===Yu&&Ji(ad,t)&&!Ji(od,t))&&(!(n||!Ji(this,t)||!Ji(ad,t)||Ji(this,Ku)&&this[Ku][t])||n)},hd=function(e,t){var n=Ci(e),r=sa(t);if(n!==Yu||!Ji(ad,r)||Ji(od,r)){var i=td(n,r);return!i||!Ji(ad,r)||Ji(n,Ku)&&n[Ku][r]||(i.enumerable=!0),i}},gd=function(e){var t=rd(Ci(e)),n=[];return Gu(t,(function(e){Ji(ad,e)||Ji(Na,e)||id(n,e)})),n},_d=function(e){var t=e===Yu,n=rd(t?od:Ci(e)),r=[];return Gu(n,(function(e){!Ji(ad,e)||t&&!Ji(Yu,e)||id(r,ad[e])})),r};if(Ii||(Zu=(Xu=function(){if(Oi(Zu,this))throw Qu(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?bo(arguments[0]):void 0,t=Qi(e),n=function(e){this===Yu&&mi(n,od,e),Ji(this,Ku)&&Ji(this[Ku],t)&&(this[Ku][t]=!1),ud(this,t,vi(1,e))};return fi&&ld&&ud(Yu,t,{configurable:!0,set:n}),dd(t,e)}).prototype,Xo(Zu,`toString`,(function(){return Ju(this).tag})),Xo(Xu,`withoutSetter`,(function(e){return dd(Qi(e),e)})),_i.f=md,ba.f=fd,pa.f=hd,La.f=Bu.f=gd,Ra.f=_d,Vu.f=function(e){return dd(ra(e),e)},fi&&nd(Zu,`description`,{configurable:!0,get:function(){return Ju(this).description}})),Sa({global:!0,wrap:!0,forced:!Ii,sham:!Ii},{Symbol:Xu}),Gu(za(bie),(function(e){Hu(e)})),Sa({target:`Symbol`,stat:!0,forced:!Ii},{for:function(e){var t=bo(e);if(Ji(sd,t))return sd[t];var n=Xu(t);return sd[t]=n,cd[n]=t,n},keyFor:function(e){if(!Ri(e))throw Qu(e+` is not a symbol`);if(Ji(cd,e))return cd[e]},useSetter:function(){ld=!0},useSimple:function(){ld=!1}}),Sa({target:`Object`,stat:!0,forced:!Ii,sham:!fi},{create:function(e,t){return t===void 0?Ga(e):pd(Ga(e),t)},defineProperty:fd,defineProperties:pd,getOwnPropertyDescriptor:hd}),Sa({target:`Object`,stat:!0,forced:!Ii},{getOwnPropertyNames:gd,getOwnPropertySymbols:_d}),Sa({target:`Object`,stat:!0,forced:di((function(){Ra.f(1)}))},{getOwnPropertySymbols:function(e){return Ra.f(Ki(e))}}),ed&&Sa({target:`JSON`,stat:!0,forced:!Ii||di((function(){var e=Xu();return ed([e])!=`[null]`||ed({a:e})!=`{}`||ed(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=gie(arguments),i=t;if((wi(t)||e!==void 0)&&!Ri(e))return xu(t)||(t=function(e,t){if(ui(i)&&(t=mi(i,this,e,t)),!Ri(t))return t}),r[1]=t,ai(ed,null,r)}}),!Zu[qu]){var xie=Zu.valueOf;Xo(Zu,qu,(function(e){return mi(xie,this)}))}rs(Xu,`Symbol`),Na[Ku]=!0,Hu(`asyncIterator`),Hu(`hasInstance`),Hu(`isConcatSpreadable`),Hu(`iterator`),Hu(`match`),Hu(`matchAll`),Hu(`replace`),Hu(`search`),Hu(`species`),Hu(`split`),Hu(`toPrimitive`),Hu(`toStringTag`),Hu(`unscopables`),rs(ei.JSON,`JSON`,!0);var Sie=Ti.Symbol;Hu(`asyncDispose`),Hu(`dispose`),Hu(`matcher`),Hu(`metadata`),Hu(`observable`),Hu(`patternMatch`),Hu(`replaceAll`);var vd=Sie,Cie=Vu.f(`iterator`),wie=jte(Xr((function(e){function t(n){return typeof vd==`function`&&typeof Cie==`symbol`?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&typeof vd==`function`&&e.constructor===vd&&e!==vd.prototype?`symbol`:typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}))),yd=lc.f,Tie=gs((function(){yd(1)}));if(Vc({target:`Object`,stat:!0,forced:!_s||Tie,sham:!_s},{getOwnPropertyDescriptor:function(e,t){return yd(js(e),t)}}),(typeof global>`u`?`undefined`:wie(global))===`object`){var Eie=Object.getOwnPropertyDescriptor(global,`window`);global.window&&!Eie.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:``},global.location={hostname:`0.0.0.0`,port:0,protocol:`http:`},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}function bd(e){return Object.prototype.toString.call(e)===`[object Object]`}function xd(e){var t,n;return!1!==bd(e)&&((t=e.constructor)===void 0||!1!==bd(n=t.prototype)&&!1!==n.hasOwnProperty(`isPrototypeOf`))}function Sd(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error(`[Immer] minified error nr: `+e+(n.length?` `+n.map((function(e){return`'`+e+`'`})).join(`,`):``)+`. Find the full error at: https://bit.ly/3cXEKWf`)}function Cd(e){return!!e&&!!e[cf]}function wd(e){return!!e&&(function(e){if(!e||typeof e!=`object`)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;var n=Object.hasOwnProperty.call(t,`constructor`)&&t.constructor;return n===Object||typeof n==`function`&&Function.toString.call(n)===lf}(e)||Array.isArray(e)||!!e[sf]||!!e.constructor[sf]||kd(e)||Ad(e))}function Td(e,t,n){n===void 0&&(n=!1),Ed(e)===0?(n?Object.keys:uf)(e).forEach((function(r){n&&typeof r==`symbol`||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Ed(e){var t=e[cf];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:kd(e)?2:Ad(e)?3:0}function Dd(e,t){return Ed(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Od(e,t,n){var r=Ed(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function kd(e){return nf&&e instanceof Map}function Ad(e){return rf&&e instanceof Set}function jd(e){return e.o||e.t}function Md(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=df(e);delete t[cf];for(var n=uf(t),r=0;r<n.length;r++){var i=n[r],a=t[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Nd(e,t){return t===void 0&&(t=!1),Pd(e)||Cd(e)||!wd(e)||(Ed(e)>1&&(e.set=e.add=e.clear=e.delete=Die),Object.freeze(e),t&&Td(e,(function(e,t){return Nd(t,!0)}),!0)),e}function Die(){Sd(2)}function Pd(e){return typeof e!=`object`||!e||Object.isFrozen(e)}function Fd(e){var t=ff[e];return t||Sd(18,e),t}function Id(){return ef}function Ld(e,t){t&&(Fd(`Patches`),e.u=[],e.s=[],e.v=t)}function Rd(e){zd(e),e.p.forEach(Vd),e.p=null}function zd(e){e===ef&&(ef=e.l)}function Bd(e){return ef={p:[],l:ef,h:e,m:!0,_:0}}function Vd(e){var t=e[cf];t.i===0||t.i===1?t.j():t.O=!0}function Hd(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Fd(`ES5`).S(t,e,r),r?(n[cf].P&&(Rd(t),Sd(4)),wd(e)&&(e=Ud(t,e),t.l||Gd(t,e)),t.u&&Fd(`Patches`).M(n[cf],e,t.u,t.s)):e=Ud(t,n,[]),Rd(t),t.u&&t.v(t.u,t.s),e===of?void 0:e}function Ud(e,t,n){if(Pd(t))return t;var r=t[cf];if(!r)return Td(t,(function(i,a){return Wd(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Gd(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=Md(r.k):r.o;Td(r.i===3?new Set(i):i,(function(t,a){return Wd(e,r,i,t,a,n)})),Gd(e,i,!1),n&&e.u&&Fd(`Patches`).R(r,n,e.u,e.s)}return r.o}function Wd(e,t,n,r,i,a){if(Cd(i)){var o=Ud(e,i,a&&t&&t.i!==3&&!Dd(t.D,r)?a.concat(r):void 0);if(Od(n,r,o),!Cd(o))return;e.m=!1}if(wd(i)&&!Pd(i)){if(!e.h.F&&e._<1)return;Ud(e,i),t&&t.A.l||Gd(e,i)}}function Gd(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Nd(t,n)}function Kd(e,t){var n=e[cf];return(n?jd(n):e)[t]}function qd(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Jd(e){e.P||(e.P=!0,e.l&&Jd(e.l))}function Yd(e){e.o||=Md(e.t)}function Xd(e,t,n){var r=kd(t)?Fd(`MapSet`).N(t,n):Ad(t)?Fd(`MapSet`).T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Id(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,a=pf;n&&(i=[r],a=mf);var o=Proxy.revocable(i,a),s=o.revoke,c=o.proxy;return r.k=c,r.j=s,c}(t,n):Fd(`ES5`).J(t,n);return(n?n.A:Id()).p.push(r),r}function Zd(e){return Cd(e)||Sd(22,e),function e(t){if(!wd(t))return t;var n,r=t[cf],i=Ed(t);if(r){if(!r.P&&(r.i<4||!Fd(`ES5`).K(r)))return r.t;r.I=!0,n=Qd(t,i),r.I=!1}else n=Qd(t,i);return Td(n,(function(t,i){r&&function(e,t){return Ed(e)===2?e.get(t):e[t]}(r.t,t)===i||Od(n,t,e(i))})),i===3?new Set(n):n}(e)}function Qd(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Md(e)}var $d,ef,tf=typeof Symbol<`u`&&typeof Symbol(`x`)==`symbol`,nf=typeof Map<`u`,rf=typeof Set<`u`,af=typeof Proxy<`u`&&Proxy.revocable!==void 0&&typeof Reflect<`u`,of=tf?Symbol.for(`immer-nothing`):(($d={})[`immer-nothing`]=!0,$d),sf=tf?Symbol.for(`immer-draftable`):`__$immer_draftable`,cf=tf?Symbol.for(`immer-state`):`__$immer_state`,lf=``+Object.prototype.constructor,uf=typeof Reflect<`u`&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols===void 0?Object.getOwnPropertyNames:function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))},df=Object.getOwnPropertyDescriptors||function(e){var t={};return uf(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},ff={},pf={get:function(e,t){if(t===cf)return e;var n=jd(e);if(!Dd(n,t))return function(e,t,n){var r=qd(t,n);return r?`value`in r?r.value:r.get?.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!wd(r)?r:r===Kd(e.t,t)?(Yd(e),e.o[t]=Xd(e.A.h,r,e)):r},has:function(e,t){return t in jd(e)},ownKeys:function(e){return Reflect.ownKeys(jd(e))},set:function(e,t,n){var r=qd(jd(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Kd(jd(e),t),a=i?.[cf];if(a&&a.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}(n,i)&&(n!==void 0||Dd(e.t,t)))return!0;Yd(e),Jd(e)}return e.o[t]===n&&typeof n!=`number`&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return Kd(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Yd(e),Jd(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=jd(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Sd(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Sd(12)}},mf={};Td(pf,(function(e,t){mf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),mf.deleteProperty=function(e,t){return pf.deleteProperty.call(this,e[0],t)},mf.set=function(e,t,n){return pf.set.call(this,e[0],t,n,e[0])};var hf=new(function(){function e(e){var t=this;this.g=af,this.F=!0,this.produce=function(e,n,r){if(typeof e==`function`&&typeof n!=`function`){var i=n;n=e;var a=t;return function(e){var t=this;e===void 0&&(e=i);for(var r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return a.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(o))}))}}var o;if(typeof n!=`function`&&Sd(6),r!==void 0&&typeof r!=`function`&&Sd(7),wd(e)){var s=Bd(t),c=Xd(t,e,void 0),l=!0;try{o=n(c),l=!1}finally{l?Rd(s):zd(s)}return typeof Promise<`u`&&o instanceof Promise?o.then((function(e){return Ld(s,r),Hd(e,s)}),(function(e){throw Rd(s),e})):(Ld(s,r),Hd(o,s))}if(!e||typeof e!=`object`)return(o=n(e))===of?void 0:(o===void 0&&(o=e),t.F&&Nd(o,!0),o);Sd(21,e)},this.produceWithPatches=function(e,n){return typeof e==`function`?function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))}:[t.produce(e,n,(function(e,t){r=e,i=t})),r,i];var r,i},typeof e?.useProxies==`boolean`&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze==`boolean`&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){wd(e)||Sd(8),Cd(e)&&(e=Zd(e));var t=Bd(this),n=Xd(this,e,void 0);return n[cf].C=!0,zd(t),n},t.finishDraft=function(e,t){var n=(e&&e[cf]).A;return Ld(n,t),Hd(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!af&&Sd(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=Fd(`Patches`).$;return Cd(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}()),gf=hf.produce;hf.produceWithPatches.bind(hf),hf.setAutoFreeze.bind(hf),hf.setUseProxies.bind(hf),hf.applyPatches.bind(hf);var _f=hf.createDraft.bind(hf),vf=hf.finishDraft.bind(hf);function yf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bf=new WeakMap,xf=new WeakMap,Sf=new WeakMap,Cf=new WeakMap,wf=new WeakMap,Tf=new WeakMap;function Ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Df(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ef(Object(n),!0).forEach((function(t){yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ef(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Of=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of F.pathRefs(e))jie.transform(n,t);for(var r of F.pointRefs(e))Mie.transform(r,t);for(var i of F.rangeRefs(e))Pie.transform(i,t);var a=new Set,o=[],s=e=>{if(e){var t=e.join(`,`);a.has(t)||(a.add(t),o.push(e))}},c=bf.get(e)||[],l=kf(t);for(var u of c)s(L.transform(u,t));for(var d of l)s(d);bf.set(e,o),B.transform(e,t),e.operations.push(t),F.normalize(e),t.type===`set_selection`&&(e.marks=null),xf.get(e)||(xf.set(e,!0),Promise.resolve().then((()=>{xf.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;r&&(R.isExpanded(r)?B.setNodes(e,{[t]:n},{match:z.isText,split:!0}):(e.marks=Df(Df({},F.marks(e)||{}),{},{[t]:n}),xf.get(e)||e.onChange()))},deleteBackward:t=>{var{selection:n}=e;n&&R.isCollapsed(n)&&B.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&R.isCollapsed(n)&&B.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&R.isExpanded(n)&&B.delete(e,{reverse:t===`backward`})},getFragment:()=>{var{selection:t}=e;return t?I.fragment(e,t):[]},insertBreak:()=>{B.splitNodes(e,{always:!0})},insertFragment:t=>{B.insertFragment(e,t)},insertNode:t=>{B.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=Df({text:t},r);B.insertNodes(e,i)}else B.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!z.isText(n))if(P.isElement(n)&&n.children.length===0)B.insertNodes(e,{text:``},{at:r.concat(0),voids:!0});else for(var i=!F.isEditor(n)&&P.isElement(n)&&(e.isInline(n)||n.children.length===0||z.isText(n.children[0])||e.isInline(n.children[0])),a=0,o=0;o<n.children.length;o++,a++){var s=I.get(e,r);if(!z.isText(s)){var c=n.children[o],l=s.children[a-1],u=o===n.children.length-1;(z.isText(c)||P.isElement(c)&&e.isInline(c))===i?P.isElement(c)?e.isInline(c)&&(l!=null&&z.isText(l)?u&&(B.insertNodes(e,{text:``},{at:r.concat(a+1),voids:!0}),a++):(B.insertNodes(e,{text:``},{at:r.concat(a),voids:!0}),a++)):l!=null&&z.isText(l)&&(z.equals(c,l,{loose:!0})?(B.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):l.text===``?(B.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):c.text===``&&(B.removeNodes(e,{at:r.concat(a),voids:!0}),a--)):(B.removeNodes(e,{at:r.concat(a),voids:!0}),a--)}}},removeMark:t=>{var{selection:n}=e;if(n)if(R.isExpanded(n))B.unsetNodes(e,t,{match:z.isText,split:!0});else{var r=Df({},F.marks(e)||{});delete r[t],e.marks=r,xf.get(e)||e.onChange()}}};return e},kf=e=>{switch(e.type){case`insert_text`:case`remove_text`:case`set_node`:var{path:t}=e;return L.levels(t);case`insert_node`:var{node:n,path:r}=e,i=L.levels(r),a=z.isText(n)?[]:Array.from(I.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...i,...a];case`merge_node`:var{path:o}=e;return[...L.ancestors(o),L.previous(o)];case`move_node`:var{path:s,newPath:c}=e;if(L.equals(s,c))return[];var l=[],u=[];for(var d of L.ancestors(s)){var f=L.transform(d,e);l.push(f)}for(var p of L.ancestors(c)){var m=L.transform(p,e);u.push(m)}var h=u[u.length-1],g=c[c.length-1],_=h.concat(g);return[...l,...u,_];case`remove_node`:var{path:v}=e;return[...L.ancestors(v)];case`split_node`:var{path:y}=e;return[...L.levels(y),L.next(y)];default:return[]}};function Af(e,t){if(e==null)return{};var n,r,i=function(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var jf,Mf=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?Rf(e):e,i=jf.None,a=jf.None,o=0,s=null;for(var c of r){var l=c.codePointAt(0);if(!l)break;var u=Xf(c,l);if([i,a]=n?[a,u]:[u,i],Zf(i,jf.ZWJ)&&Zf(a,jf.ExtPict)&&!tp(n?e.substring(0,o):e.substring(0,e.length-o))||Zf(i,jf.RI)&&Zf(a,jf.RI)&&!(s=s===null?!!n||rp(e.substring(0,e.length-o)):!s)||i!==jf.None&&a!==jf.None&&$f(i,a))break;o+=c.length}return o||1},Nf=/\s/,Pf=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Ff=/['\u2018\u2019]/,If=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},Lf=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(Nf.test(t))return!1;if(Ff.test(t)){var[i,a]=If(n,Mf(n,r),r);if(e(i,a,r))return!0}return!Pf.test(t)},Rf=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Bf(r.charCodeAt(0))){var i=e.charAt(t-n-1);if(zf(i.charCodeAt(0))){yield i+r,n++;continue}}yield r}},zf=e=>e>=55296&&e<=56319,Bf=e=>e>=56320&&e<=57343;(function(e){e[e.None=0]=`None`,e[e.Extend=1]=`Extend`,e[e.ZWJ=2]=`ZWJ`,e[e.RI=4]=`RI`,e[e.Prepend=8]=`Prepend`,e[e.SpacingMark=16]=`SpacingMark`,e[e.L=32]=`L`,e[e.V=64]=`V`,e[e.T=128]=`T`,e[e.LV=256]=`LV`,e[e.LVT=512]=`LVT`,e[e.ExtPict=1024]=`ExtPict`,e[e.Any=2048]=`Any`})(jf||={});var Vf=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,Hf=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Uf=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,Wf=/^[\u1100-\u115F\uA960-\uA97C]$/,Gf=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Kf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,qf=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Jf=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,Yf=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Xf=(e,t)=>{var n=jf.Any;return e.search(Vf)!==-1&&(n|=jf.Extend),t===8205&&(n|=jf.ZWJ),t>=127462&&t<=127487&&(n|=jf.RI),e.search(Hf)!==-1&&(n|=jf.Prepend),e.search(Uf)!==-1&&(n|=jf.SpacingMark),e.search(Wf)!==-1&&(n|=jf.L),e.search(Gf)!==-1&&(n|=jf.V),e.search(Kf)!==-1&&(n|=jf.T),e.search(qf)!==-1&&(n|=jf.LV),e.search(Jf)!==-1&&(n|=jf.LVT),e.search(Yf)!==-1&&(n|=jf.ExtPict),n};function Zf(e,t){return(e&t)!=0}var Qf=[[jf.L,jf.L|jf.V|jf.LV|jf.LVT],[jf.LV|jf.V,jf.V|jf.T],[jf.LVT|jf.T,jf.T],[jf.Any,jf.Extend|jf.ZWJ],[jf.Any,jf.SpacingMark],[jf.Prepend,jf.Any],[jf.ZWJ,jf.ExtPict],[jf.RI,jf.RI]];function $f(e,t){return Qf.findIndex((n=>Zf(e,n[0])&&Zf(t,n[1])))===-1}var ep=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,tp=e=>e.search(ep)!==-1,np=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,rp=e=>{var t=e.match(np);return t!==null&&t[0].length/2%2==1},ip=e=>xd(e)&&I.isNodeList(e.children)&&!F.isEditor(e),P={isAncestor:e=>xd(e)&&I.isNodeList(e.children),isElement:ip,isElementList:e=>Array.isArray(e)&&e.every((e=>P.isElement(e))),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`type`;return ip(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!==`children`&&e[n]!==t[n])return!1;return!0}},ap=[`text`],op=[`text`];function sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?sp(Object(n),!0).forEach((function(t){yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lp=new WeakMap,F={above(e){var{voids:t=!1,mode:n=`lowest`,at:r=e.selection,match:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(r){var a=F.path(e,r),o=n===`lowest`;for(var[s,c]of F.levels(e,{at:a,voids:t,match:i,reverse:o}))if(!z.isText(s)&&!L.equals(a,c))return[s,c]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i={anchor:F.point(e,t,{edge:`end`}),focus:F.end(e,[])},{distance:a=1}=r,o=0;for(var s of F.positions(e,cp(cp({},r),{},{at:i}))){if(o>a)break;o!==0&&(n=s),o++}return n},before(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i={anchor:F.start(e,[]),focus:F.point(e,t,{edge:`start`})},{distance:a=1}=r,o=0;for(var s of F.positions(e,cp(cp({},r),{},{at:i,reverse:!0}))){if(o>a)break;o!==0&&(n=s),o++}return n},deleteBackward(e){var{unit:t=`character`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.deleteBackward(t)},deleteForward(e){var{unit:t=`character`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.deleteForward(t)},deleteFragment(e){var{direction:t=`forward`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.deleteFragment(t)},edges:(e,t)=>[F.start(e,t),F.end(e,t)],end:(e,t)=>F.point(e,t,{edge:`end`}),first(e,t){var n=F.path(e,t,{edge:`start`});return F.node(e,n)},fragment(e,t){var n=F.range(e,t);return I.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>F.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>z.isText(t)||F.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>z.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>P.isElement(t)&&!e.isInline(t),isEditor(e){if(!xd(e))return!1;var t=lp.get(e);if(t!==void 0)return t;var n=typeof e.addMark==`function`&&typeof e.apply==`function`&&typeof e.deleteBackward==`function`&&typeof e.deleteForward==`function`&&typeof e.deleteFragment==`function`&&typeof e.insertBreak==`function`&&typeof e.insertFragment==`function`&&typeof e.insertNode==`function`&&typeof e.insertText==`function`&&typeof e.isInline==`function`&&typeof e.isVoid==`function`&&typeof e.normalizeNode==`function`&&typeof e.onChange==`function`&&typeof e.removeMark==`function`&&(e.marks===null||xd(e.marks))&&(e.selection===null||R.isRange(e.selection))&&I.isNodeList(e.children)&&pp.isOperationList(e.operations);return lp.set(e,n),n},isEnd(e,t,n){var r=F.end(e,n);return gp.equals(t,r)},isEdge:(e,t,n)=>F.isStart(e,t,n)||F.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&z.isText(r)&&r.text===``&&!e.isVoid(t)},isInline:(e,t)=>P.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Sf.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=F.start(e,n);return gp.equals(t,r)},isVoid:(e,t)=>P.isElement(t)&&e.isVoid(t),last(e,t){var n=F.path(e,t,{edge:`end`});return F.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=F.path(e,t,n);return[I.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:a}=t;if(a??=()=>!0,n){var o=[],s=F.path(e,n);for(var[c,l]of I.levels(e,s))if(a(c,l)&&(o.push([c,l]),!i&&F.isVoid(e,c)))break;r&&o.reverse(),yield*o}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(R.isExpanded(n)){var[r]=F.nodes(e,{match:z.isText});if(r){var[i]=r;return Af(i,ap)}return{}}var{anchor:a}=n,{path:o}=a,[s]=F.leaf(e,o);if(a.offset===0){var c=F.previous(e,{at:o,match:z.isText}),l=F.above(e,{match:t=>F.isBlock(e,t)});if(c&&l){var[u,d]=c,[,f]=l;L.isAncestor(f,d)&&(s=u)}}return Af(s,op)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n=`lowest`,voids:r=!1}=t,{match:i,at:a=e.selection}=t;if(a){var o=F.after(e,a,{voids:r});if(o){var[,s]=F.last(e,[]),c=[o.path,s];if(L.isPath(a)&&a.length===0)throw Error(`Cannot get the next node from the root node!`);if(i==null)if(L.isPath(a)){var[l]=F.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0;var[u]=F.nodes(e,{at:c,match:i,mode:n,voids:r});return u}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=F.path(e,t,n);return[I.get(e,r),r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r=`all`,universal:i=!1,reverse:a=!1,voids:o=!1}=t,{match:s}=t;if(s||=()=>!0,n){var c,l;if(Oie.isSpan(n))c=n[0],l=n[1];else{var u=F.path(e,n,{edge:`start`}),d=F.path(e,n,{edge:`end`});c=a?d:u,l=a?u:d}var f,p=I.nodes(e,{reverse:a,from:c,to:l,pass:t=>{var[n]=t;return!o&&F.isVoid(e,n)}}),m=[];for(var[h,g]of p){var _=f&&L.compare(g,f[1])===0;if(r!==`highest`||!_){if(s(h,g))if(r===`lowest`&&_)f=[h,g];else{var v=r===`lowest`?f:[h,g];v&&(i?m.push(v):yield v),f=[h,g]}else if(i&&!_&&z.isText(h))return}}r===`lowest`&&f&&(i?m.push(f):yield f),i&&(yield*m)}},normalize(e){var{force:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e=>bf.get(e)||[];if(F.isNormalizing(e)){if(t){var r=Array.from(I.nodes(e),(e=>{var[,t]=e;return t}));bf.set(e,r)}n(e).length!==0&&F.withoutNormalizing(e,(()=>{for(var t of n(e))if(I.has(e,t)){var r=F.node(e,t),[i,a]=r;P.isElement(i)&&i.children.length===0&&e.normalizeNode(r)}for(var o=42*n(e).length,s=0;n(e).length!==0;){if(s>o)throw Error(`
13
+ Could not completely normalize the editor after ${o} iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
14
+ `);var c=n(e).pop();if(I.has(e,c)){var l=F.node(e,c);e.normalizeNode(l)}s++}}))}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=F.path(e,t,n),i=L.parent(r);return F.node(e,i)},path(e,t){var{depth:n,edge:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(L.isPath(t)){if(r===`start`){var[,i]=I.first(e,t);t=i}else if(r===`end`){var[,a]=I.last(e,t);t=a}}return R.isRange(t)&&(t=r===`start`?R.start(t):r===`end`?R.end(t):L.common(t.anchor.path,t.focus.path)),gp.isPoint(t)&&(t=t.path),n!=null&&(t=t.slice(0,n)),t},hasPath:(e,t)=>I.has(e,t),pathRef(e,t){var{affinity:n=`forward`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r={current:t,affinity:n,unref(){var{current:t}=r;return F.pathRefs(e).delete(r),r.current=null,t}};return F.pathRefs(e).add(r),r},pathRefs(e){var t=Cf.get(e);return t||(t=new Set,Cf.set(e,t)),t},point(e,t){var{edge:n=`start`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(L.isPath(t)){var r;if(n===`end`){var[,i]=I.last(e,t);r=i}else{var[,a]=I.first(e,t);r=a}var o=I.get(e,r);if(!z.isText(o))throw Error(`Cannot get the ${n} point in the node at path [${t}] because it has no ${n} text node.`);return{path:r,offset:n===`end`?o.text.length:0}}if(R.isRange(t)){var[s,c]=R.edges(t);return n===`start`?s:c}return t},pointRef(e,t){var{affinity:n=`forward`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r={current:t,affinity:n,unref(){var{current:t}=r;return F.pointRefs(e).delete(r),r.current=null,t}};return F.pointRefs(e).add(r),r},pointRefs(e){var t=wf.get(e);return t||(t=new Set,wf.set(e,t)),t},*positions(e){var{at:t=e.selection,unit:n=`offset`,reverse:r=!1,voids:i=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t){var a=F.range(e,t),[o,s]=R.edges(a),c=r?s:o,l=!1,u=``,d=0,f=0,p=0;for(var[m,h]of F.nodes(e,{at:t,reverse:r,voids:i})){if(P.isElement(m)){if(!i&&e.isVoid(m)){yield F.start(e,h);continue}if(e.isInline(m))continue;if(F.hasInlines(e,m)){var g=L.isAncestor(h,s.path)?s:F.end(e,h),_=L.isAncestor(h,o.path)?o:F.start(e,h);u=F.string(e,{anchor:_,focus:g},{voids:i}),l=!0}}if(z.isText(m)){var v=L.equals(h,c.path);for(v?(f=r?c.offset:m.text.length-c.offset,p=c.offset):(f=m.text.length,p=r?f:0),(v||l||n===`offset`)&&(yield{path:h,offset:p},l=!1);;){if(d===0){if(u===``)break;d=y(u,n,r),u=If(u,d,r)[1]}if(p=r?p-d:p+d,(f-=d)<0){d=-f;break}d=0,yield{path:h,offset:p}}}}}function y(e,t,n){return t===`character`?Mf(e,n):t===`word`?function(e){for(var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=0,r=!1;e.length>0;){var i=Mf(e,t),[a,o]=If(e,i,t);if(Lf(a,o,t))r=!0,n+=i;else{if(r)break;n+=i}e=o}return n}(e,n):t===`line`||t===`block`?e.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n=`lowest`,voids:r=!1}=t,{match:i,at:a=e.selection}=t;if(a){var o=F.before(e,a,{voids:r});if(o){var[,s]=F.first(e,[]),c=[o.path,s];if(L.isPath(a)&&a.length===0)throw Error(`Cannot get the previous node from the root node!`);if(i==null)if(L.isPath(a)){var[l]=F.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0;var[u]=F.nodes(e,{reverse:!0,at:c,match:i,mode:n,voids:r});return u}}},range:(e,t,n)=>R.isRange(t)&&!n?t:{anchor:F.start(e,t),focus:F.end(e,n||t)},rangeRef(e,t){var{affinity:n=`forward`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r={current:t,affinity:n,unref(){var{current:t}=r;return F.rangeRefs(e).delete(r),r.current=null,t}};return F.rangeRefs(e).add(r),r},rangeRefs(e){var t=Tf.get(e);return t||(t=new Set,Tf.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Sf.set(e,t)},start:(e,t)=>F.point(e,t,{edge:`start`}),string(e,t){var{voids:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=F.range(e,t),[i,a]=R.edges(r),o=``;for(var[s,c]of F.nodes(e,{at:r,match:z.isText,voids:n})){var l=s.text;L.equals(c,a.path)&&(l=l.slice(0,a.offset)),L.equals(c,i.path)&&(l=l.slice(i.offset)),o+=l}return o},unhangRange(e,t){var{voids:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},[r,i]=R.edges(t);if(r.offset!==0||i.offset!==0||R.isCollapsed(t))return t;var a=F.above(e,{at:i,match:t=>F.isBlock(e,t)}),o=a?a[1]:[],s={anchor:F.start(e,[]),focus:i},c=!0;for(var[l,u]of F.nodes(e,{at:s,match:z.isText,reverse:!0,voids:n}))if(c)c=!1;else if(l.text!==``||L.isBefore(u,o)){i={path:u,offset:l.text.length};break}return{anchor:r,focus:i}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return F.above(e,cp(cp({},t),{},{match:t=>F.isVoid(e,t)}))},withoutNormalizing(e,t){var n=F.isNormalizing(e);F.setNormalizing(e,!1);try{t()}finally{F.setNormalizing(e,n)}F.normalize(e)}},Oie={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(L.isPath)},kie=[`children`],Aie=[`text`],up=new WeakMap,I={ancestor(e,t){var n=I.get(e,t);if(z.isText(n))throw Error(`Cannot get the ancestor node at path [${t}] because it refers to a text node instead: ${n}`);return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of L.ancestors(t,n))yield[I.ancestor(e,r),r]},child(e,t){if(z.isText(e))throw Error(`Cannot get the child of a text node: ${JSON.stringify(e)}`);var n=e.children[t];if(n==null)throw Error(`Cannot get child at index \`${t}\` in node: ${JSON.stringify(e)}`);return n},*children(e,t){for(var{reverse:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=I.ancestor(e,t),{children:i}=r,a=n?i.length-1:0;n?a>=0:a<i.length;)yield[I.child(r,a),t.concat(a)],a=n?a-1:a+1},common(e,t,n){var r=L.common(t,n);return[I.get(e,r),r]},descendant(e,t){var n=I.get(e,t);if(F.isEditor(n))throw Error(`Cannot get the descendant node at path [${t}] because it refers to the root editor node instead: ${n}`);return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of I.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of I.nodes(e,t))P.isElement(n)&&(yield[n,r])},extractProps:e=>P.isAncestor(e)?Af(e,kie):Af(e,Aie),first(e,t){for(var n=t.slice(),r=I.get(e,n);r&&!z.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(z.isText(e))throw Error(`Cannot get a fragment starting from a root text node: ${JSON.stringify(e)}`);return gf({children:e.children},(e=>{var[n,r]=R.edges(t);for(var[,i]of I.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!R.includes(t,n)}})){if(!R.includes(t,i)){var a=I.parent(e,i),o=i[i.length-1];a.children.splice(o,1)}if(L.equals(i,r.path)){var s=I.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(L.equals(i,n.path)){var c=I.leaf(e,i);c.text=c.text.slice(n.offset)}}F.isEditor(e)&&(e.selection=null)})).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(z.isText(n)||!n.children[i])throw Error(`Cannot find a descendant at path [${t}] in node: ${JSON.stringify(e)}`);n=n.children[i]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(z.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode:e=>z.isText(e)||P.isElement(e)||F.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=up.get(e);if(t!==void 0)return t;var n=e.every((e=>I.isNode(e)));return up.set(e,n),n},last(e,t){for(var n=t.slice(),r=I.get(e,n);r&&!z.isText(r)&&r.children.length!==0;){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=I.get(e,t);if(!z.isText(n))throw Error(`Cannot get the leaf node at path [${t}] because it refers to a non-leaf node: ${n}`);return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of L.levels(t,n))yield[I.get(e,r),r]},matches:(e,t)=>P.isElement(e)&&P.isElementProps(t)&&P.matches(e,t)||z.isText(e)&&z.isTextProps(t)&&z.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:i=[],to:a}=t,o=new Set,s=[],c=e;!a||!(r?L.isBefore(s,a):L.isAfter(s,a));)if(o.has(c)||(yield[c,s]),o.has(c)||z.isText(c)||c.children.length===0||n!=null&&!1!==n([c,s])){if(s.length===0)break;if(!r){var l=L.next(s);if(I.has(e,l)){s=l,c=I.get(e,s);continue}}r&&s[s.length-1]!==0?(s=L.previous(s),c=I.get(e,s)):(s=L.parent(s),c=I.get(e,s),o.add(c))}else{o.add(c);var u=r?c.children.length-1:0;L.isAncestor(s,i)&&(u=i[s.length]),s=s.concat(u),c=I.get(e,s)}},parent(e,t){var n=L.parent(t),r=I.get(e,n);if(z.isText(r))throw Error(`Cannot get the parent of path [${t}] because it does not exist in the root.`);return r},string:e=>z.isText(e)?e.text:e.children.map(I.string).join(``),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of I.nodes(e,t))z.isText(n)&&(yield[n,r])}};function dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dp(Object(n),!0).forEach((function(t){yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pp={isNodeOperation:e=>pp.isOperation(e)&&e.type.endsWith(`_node`),isOperation(e){if(!xd(e))return!1;switch(e.type){case`insert_node`:case`remove_node`:return L.isPath(e.path)&&I.isNode(e.node);case`insert_text`:case`remove_text`:return typeof e.offset==`number`&&typeof e.text==`string`&&L.isPath(e.path);case`merge_node`:return typeof e.position==`number`&&L.isPath(e.path)&&xd(e.properties);case`move_node`:return L.isPath(e.path)&&L.isPath(e.newPath);case`set_node`:return L.isPath(e.path)&&xd(e.properties)&&xd(e.newProperties);case`set_selection`:return e.properties===null&&R.isRange(e.newProperties)||e.newProperties===null&&R.isRange(e.properties)||xd(e.properties)&&xd(e.newProperties);case`split_node`:return L.isPath(e.path)&&typeof e.position==`number`&&xd(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>pp.isOperation(e))),isSelectionOperation:e=>pp.isOperation(e)&&e.type.endsWith(`_selection`),isTextOperation:e=>pp.isOperation(e)&&e.type.endsWith(`_text`),inverse(e){switch(e.type){case`insert_node`:return fp(fp({},e),{},{type:`remove_node`});case`insert_text`:return fp(fp({},e),{},{type:`remove_text`});case`merge_node`:return fp(fp({},e),{},{type:`split_node`,path:L.previous(e.path)});case`move_node`:var{newPath:t,path:n}=e;if(L.equals(t,n))return e;if(L.isSibling(n,t))return fp(fp({},e),{},{path:t,newPath:n});var r=L.transform(n,e),i=L.transform(L.next(n),e);return fp(fp({},e),{},{path:r,newPath:i});case`remove_node`:return fp(fp({},e),{},{type:`insert_node`});case`remove_text`:return fp(fp({},e),{},{type:`insert_text`});case`set_node`:var{properties:a,newProperties:o}=e;return fp(fp({},e),{},{properties:o,newProperties:a});case`set_selection`:var{properties:s,newProperties:c}=e;return fp(fp({},e),{},s==null?{properties:c,newProperties:null}:c==null?{properties:null,newProperties:s}:{properties:c,newProperties:s});case`split_node`:return fp(fp({},e),{},{type:`merge_node`,path:L.next(e.path)})}}},L={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=L.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var i=e[r];if(i!==t[r])break;n.push(i)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),a=e[n],o=t[n];return L.equals(r,i)&&a>o},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return L.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),a=e[n],o=t[n];return L.equals(r,i)&&a<o},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>L.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&L.compare(e,t)===0,isBefore:(e,t)=>L.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&L.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&L.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&L.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&L.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]==`number`),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&L.equals(n,r)},levels(e){for(var{reverse:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=0;r<=e.length;r++)n.push(e.slice(0,r));return t&&n.reverse(),n},next(e){if(e.length===0)throw Error(`Cannot get the next path of a root path [${e}], because it has no next index.`);var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw Error(`Cannot get the parent path of the root path [${e}].`);return e.slice(0,-1)},previous(e){if(e.length===0)throw Error(`Cannot get the previous path of a root path [${e}], because it has no previous index.`);var t=e[e.length-1];if(t<=0)throw Error(`Cannot get the previous path of a first child path [${e}] because it would result in a negative index.`);return e.slice(0,-1).concat(t-1)},relative(e,t){if(!L.isAncestor(t,e)&&!L.equals(e,t))throw Error(`Cannot get the relative path of [${e}] inside ancestor [${t}], because it is not above or equal to the path.`);return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return gf(e,(r=>{var{affinity:i=`forward`}=n;if(e&&e?.length!==0){if(r===null)return null;switch(t.type){case`insert_node`:var{path:a}=t;(L.equals(a,r)||L.endsBefore(a,r)||L.isAncestor(a,r))&&(r[a.length-1]+=1);break;case`remove_node`:var{path:o}=t;if(L.equals(o,r)||L.isAncestor(o,r))return null;L.endsBefore(o,r)&&--r[o.length-1];break;case`merge_node`:var{path:s,position:c}=t;L.equals(s,r)||L.endsBefore(s,r)?--r[s.length-1]:L.isAncestor(s,r)&&(--r[s.length-1],r[s.length]+=c);break;case`split_node`:var{path:l,position:u}=t;if(L.equals(l,r)){if(i===`forward`)r[r.length-1]+=1;else if(i!==`backward`)return null}else L.endsBefore(l,r)?r[l.length-1]+=1:L.isAncestor(l,r)&&e[l.length]>=u&&(r[l.length-1]+=1,r[l.length]-=u);break;case`move_node`:var{path:d,newPath:f}=t;if(L.equals(d,f))return;if(L.isAncestor(d,r)||L.equals(d,r)){var p=f.slice();return L.endsBefore(d,f)&&d.length<f.length&&--p[d.length-1],p.concat(r.slice(d.length))}L.isSibling(d,f)&&(L.isAncestor(f,r)||L.equals(f,r))?L.endsBefore(d,r)?--r[d.length-1]:r[d.length-1]+=1:L.endsBefore(f,r)||L.equals(f,r)||L.isAncestor(f,r)?(L.endsBefore(d,r)&&--r[d.length-1],r[f.length-1]+=1):L.endsBefore(d,r)&&(L.equals(f,r)&&(r[f.length-1]+=1),--r[d.length-1])}}}))}},jie={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=L.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}};function mp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mp(Object(n),!0).forEach((function(t){yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gp={compare(e,t){var n=L.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>gp.compare(e,t)===1,isBefore:(e,t)=>gp.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&L.equals(e.path,t.path),isPoint:e=>xd(e)&&typeof e.offset==`number`&&L.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return gf(e,(e=>{if(e===null)return null;var{affinity:r=`forward`}=n,{path:i,offset:a}=e;switch(t.type){case`insert_node`:case`move_node`:e.path=L.transform(i,t,n);break;case`insert_text`:L.equals(t.path,i)&&t.offset<=a&&(e.offset+=t.text.length);break;case`merge_node`:L.equals(t.path,i)&&(e.offset+=t.position),e.path=L.transform(i,t,n);break;case`remove_text`:L.equals(t.path,i)&&t.offset<=a&&(e.offset-=Math.min(a-t.offset,t.text.length));break;case`remove_node`:if(L.equals(t.path,i)||L.isAncestor(t.path,i))return null;e.path=L.transform(i,t,n);break;case`split_node`:if(L.equals(t.path,i)){if(t.position===a&&r==null)return null;(t.position<a||t.position===a&&r===`forward`)&&(e.offset-=t.position,e.path=L.transform(i,t,hp(hp({},n),{},{affinity:`forward`})))}else e.path=L.transform(i,t,n)}}))}},Mie={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=gp.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},Nie=[`anchor`,`focus`];function _p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var R={edges(e){var{reverse:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{anchor:n,focus:r}=e;return R.isBackward(e)===t?[n,r]:[r,n]},end(e){var[,t]=R.edges(e);return t},equals:(e,t)=>gp.equals(e.anchor,t.anchor)&&gp.equals(e.focus,t.focus),includes(e,t){if(R.isRange(t)){if(R.includes(e,t.anchor)||R.includes(e,t.focus))return!0;var[n,r]=R.edges(e),[i,a]=R.edges(t);return gp.isBefore(n,i)&&gp.isAfter(r,a)}var[o,s]=R.edges(e),c=!1,l=!1;return gp.isPoint(t)?(c=gp.compare(t,o)>=0,l=gp.compare(t,s)<=0):(c=L.compare(t,o.path)>=0,l=L.compare(t,s.path)<=0),c&&l},intersection(e,t){var n=Af(e,Nie),[r,i]=R.edges(e),[a,o]=R.edges(t),s=gp.isBefore(r,a)?a:r,c=gp.isBefore(i,o)?i:o;return gp.isBefore(c,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_p(Object(n),!0).forEach((function(t){yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:c},n)},isBackward(e){var{anchor:t,focus:n}=e;return gp.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return gp.equals(t,n)},isExpanded:e=>!R.isCollapsed(e),isForward:e=>!R.isBackward(e),isRange:e=>xd(e)&&gp.isPoint(e.anchor)&&gp.isPoint(e.focus),*points(e){yield[e.anchor,`anchor`],yield[e.focus,`focus`]},start(e){var[t]=R.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return gf(e,(e=>{if(e===null)return null;var r,i,{affinity:a=`inward`}=n;if(a===`inward`){var o=R.isCollapsed(e);R.isForward(e)?(r=`forward`,i=o?r:`backward`):(r=`backward`,i=o?r:`forward`)}else a===`outward`?R.isForward(e)?(r=`backward`,i=`forward`):(r=`forward`,i=`backward`):(r=a,i=a);var s=gp.transform(e.anchor,t,{affinity:r}),c=gp.transform(e.focus,t,{affinity:i});if(!s||!c)return null;e.anchor=s,e.focus=c}))}},Pie={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=R.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},vp=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(xd(r)&&xd(i)){if(!vp(r,i))return!1}else if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var a=0;a<r.length;a++)if(r[a]!==i[a])return!1}else if(r!==i)return!1}for(var o in t)if(e[o]===void 0&&t[o]!==void 0)return!1;return!0},Fie=[`text`],Iie=[`anchor`,`focus`];function yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yp(Object(n),!0).forEach((function(t){yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var z={equals(e,t){var{loose:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};function r(e){return Af(e,Fie)}return vp(n?r(e):e,n?r(t):t)},isText:e=>xd(e)&&typeof e.text==`string`,isTextList:e=>Array.isArray(e)&&e.every((e=>z.isText(e))),isTextProps:e=>e.text!==void 0,matches(e,t){for(var n in t)if(n!==`text`&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[bp({},e)];for(var r of t){var i=Af(r,Iie),[a,o]=R.edges(r),s=[],c=0;for(var l of n){var{length:u}=l.text,d=c;if(c+=u,a.offset<=d&&o.offset>=c)Object.assign(l,i),s.push(l);else if(a.offset!==o.offset&&(a.offset===c||o.offset===d)||a.offset>c||o.offset<d||o.offset===d&&d!==0)s.push(l);else{var f=l,p=void 0,m=void 0;if(o.offset<c){var h=o.offset-d;m=bp(bp({},f),{},{text:f.text.slice(h)}),f=bp(bp({},f),{},{text:f.text.slice(0,h)})}if(a.offset>d){var g=a.offset-d;p=bp(bp({},f),{},{text:f.text.slice(0,g)}),f=bp(bp({},f),{},{text:f.text.slice(g)})}Object.assign(f,i),p&&s.push(p),s.push(f),m&&s.push(m)}}n=s}return n}};function xp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xp(Object(n),!0).forEach((function(t){yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lie={transform(e,t){e.children=_f(e.children);var n=e.selection&&_f(e.selection);try{n=((e,t,n)=>{switch(n.type){case`insert_node`:var{path:r,node:i}=n,a=I.parent(e,r),o=r[r.length-1];if(o>a.children.length)throw Error(`Cannot apply an "insert_node" operation at path [${r}] because the destination is past the end of the node.`);if(a.children.splice(o,0,i),t)for(var[s,c]of R.points(t))t[c]=gp.transform(s,n);break;case`insert_text`:var{path:l,offset:u,text:d}=n;if(d.length===0)break;var f=I.leaf(e,l),p=f.text.slice(0,u),m=f.text.slice(u);if(f.text=p+d+m,t)for(var[h,g]of R.points(t))t[g]=gp.transform(h,n);break;case`merge_node`:var{path:_}=n,v=I.get(e,_),y=L.previous(_),b=I.get(e,y),x=I.parent(e,_),S=_[_.length-1];if(z.isText(v)&&z.isText(b))b.text+=v.text;else{if(z.isText(v)||z.isText(b))throw Error(`Cannot apply a "merge_node" operation at path [${_}] to nodes of different interfaces: ${v} ${b}`);b.children.push(...v.children)}if(x.children.splice(S,1),t)for(var[C,w]of R.points(t))t[w]=gp.transform(C,n);break;case`move_node`:var{path:T,newPath:E}=n;if(L.isAncestor(T,E))throw Error(`Cannot move a path [${T}] to new path [${E}] because the destination is inside itself.`);var D=I.get(e,T),O=I.parent(e,T),ee=T[T.length-1];O.children.splice(ee,1);var te=L.transform(T,n),ne=I.get(e,L.parent(te)),k=te[te.length-1];if(ne.children.splice(k,0,D),t)for(var[re,ie]of R.points(t))t[ie]=gp.transform(re,n);break;case`remove_node`:var{path:ae}=n,oe=ae[ae.length-1];if(I.parent(e,ae).children.splice(oe,1),t)for(var[se,ce]of R.points(t)){var le=gp.transform(se,n);if(t!=null&&le!=null)t[ce]=le;else{var ue=void 0,de=void 0;for(var[fe,pe]of I.texts(e)){if(L.compare(pe,ae)!==-1){de=[fe,pe];break}ue=[fe,pe]}var me=!1;ue&&de&&(me=L.equals(de[1],ae)?!L.hasPrevious(de[1]):L.common(ue[1],ae).length<L.common(de[1],ae).length),ue&&!me?(se.path=ue[1],se.offset=ue[0].text.length):de?(se.path=de[1],se.offset=0):t=null}}break;case`remove_text`:var{path:he,offset:ge,text:_e}=n;if(_e.length===0)break;var ve=I.leaf(e,he);if(ve.text=ve.text.slice(0,ge)+ve.text.slice(ge+_e.length),t)for(var[ye,be]of R.points(t))t[be]=gp.transform(ye,n);break;case`set_node`:var{path:xe,properties:Se,newProperties:Ce}=n;if(xe.length===0)throw Error(`Cannot set properties on the root node!`);var we=I.get(e,xe);for(var Te in Ce){if(Te===`children`||Te===`text`)throw Error(`Cannot set the "${Te}" property of nodes!`);var Ee=Ce[Te];Ee==null?delete we[Te]:we[Te]=Ee}for(var De in Se)Ce.hasOwnProperty(De)||delete we[De];break;case`set_selection`:var{newProperties:Oe}=n;if(Oe==null)t=Oe;else{if(t==null){if(!R.isRange(Oe))throw Error(`Cannot apply an incomplete "set_selection" operation properties ${JSON.stringify(Oe)} when there is no current selection.`);t=Sp({},Oe)}for(var ke in Oe){var Ae=Oe[ke];if(Ae==null){if(ke===`anchor`||ke===`focus`)throw Error(`Cannot remove the "${ke}" selection property`);delete t[ke]}else t[ke]=Ae}}break;case`split_node`:var{path:je,position:Me,properties:Ne}=n;if(je.length===0)throw Error(`Cannot apply a "split_node" operation at path [${je}] because the root node cannot be split.`);var Pe,Fe=I.get(e,je),A=I.parent(e,je),Ie=je[je.length-1];if(z.isText(Fe)){var j=Fe.text.slice(0,Me),Le=Fe.text.slice(Me);Fe.text=j,Pe=Sp(Sp({},Ne),{},{text:Le})}else{var Re=Fe.children.slice(0,Me),ze=Fe.children.slice(Me);Fe.children=Re,Pe=Sp(Sp({},Ne),{},{children:ze})}if(A.children.splice(Ie+1,0,Pe),t)for(var[Be,Ve]of R.points(t))t[Ve]=gp.transform(Be,n)}return t})(e,n,t)}finally{e.children=vf(e.children),e.selection=n?Cd(n)?vf(n):n:null}}},Rie=[`text`],zie=[`children`];function Cp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Cp(Object(n),!0).forEach((function(t){yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bie={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};F.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1,mode:a=`lowest`}=n,{at:o,match:s,select:c}=n;if(I.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(o||(o=e.selection?e.selection:e.children.length>0?F.end(e,[]):[0],c=!0),c??=!1,R.isRange(o))if(r||(o=F.unhangRange(e,o)),R.isCollapsed(o))o=o.anchor;else{var[,u]=R.edges(o),d=F.pointRef(e,u);B.delete(e,{at:o}),o=d.unref()}if(gp.isPoint(o)){s??=z.isText(l)?e=>z.isText(e):e.isInline(l)?t=>z.isText(t)||F.isInline(e,t):t=>F.isBlock(e,t);var[f]=F.nodes(e,{at:o.path,match:s,mode:a,voids:i});if(!f)return;var[,p]=f,m=F.pathRef(e,p),h=F.isEnd(e,o,p);B.splitNodes(e,{at:o,match:s,mode:a,voids:i});var g=m.unref();o=h?L.next(g):g}var _=L.parent(o),v=o[o.length-1];if(i||!F.void(e,{at:_})){for(var y of t){var b=_.concat(v);v++,e.apply({type:`insert_node`,path:b,node:y}),o=L.next(o)}if(o=L.previous(o),c){var x=F.end(e,o);x&&B.select(e,x)}}}}))},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};F.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r=`lowest`,voids:i=!1}=t,{match:a}=t;if(a??=L.isPath(n)?Ep(e,n):t=>F.isBlock(e,t),n){var o=F.nodes(e,{at:n,match:a,mode:r,voids:i});for(var s of Array.from(o,(t=>{var[,n]=t;return F.pathRef(e,n)}))){var c=s.unref();if(c.length<2)throw Error(`Cannot lift node at a path [${c}] because it has a depth of less than \`2\`.`);var[l,u]=F.node(e,L.parent(c)),d=c[c.length-1],{length:f}=l.children;if(f===1){var p=L.next(u);B.moveNodes(e,{at:c,to:p,voids:i}),B.removeNodes(e,{at:u,voids:i})}else if(d===0)B.moveNodes(e,{at:c,to:u,voids:i});else if(d===f-1){var m=L.next(u);B.moveNodes(e,{at:c,to:m,voids:i})}else{var h=L.next(c),g=L.next(u);B.splitNodes(e,{at:h,voids:i}),B.moveNodes(e,{at:c,to:g,voids:i})}}}}))},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};F.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:i=!1,voids:a=!1,mode:o=`lowest`}=t;if(r){if(n==null)if(L.isPath(r)){var[s]=F.parent(e,r);n=e=>s.children.includes(e)}else n=t=>F.isBlock(e,t);if(!i&&R.isRange(r)&&(r=F.unhangRange(e,r)),R.isRange(r))if(R.isCollapsed(r))r=r.anchor;else{var[,c]=R.edges(r),l=F.pointRef(e,c);B.delete(e,{at:r}),r=l.unref(),t.at??B.select(e,r)}var[u]=F.nodes(e,{at:r,match:n,voids:a,mode:o}),d=F.previous(e,{at:r,match:n,voids:a,mode:o});if(u&&d){var[f,p]=u,[m,h]=d;if(p.length!==0&&h.length!==0){var g,_,v=L.next(h),y=L.common(p,h),b=L.isSibling(p,h),x=Array.from(F.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),S=F.above(e,{at:p,mode:`highest`,match:t=>x.includes(t)&&Tp(e,t)}),C=S&&F.pathRef(e,S[1]);if(z.isText(f)&&z.isText(m)){var w=Af(f,Rie);_=m.text.length,g=w}else{if(!P.isElement(f)||!P.isElement(m))throw Error(`Cannot merge the node at path [${p}] with the previous sibling because it is not the same kind: ${JSON.stringify(f)} ${JSON.stringify(m)}`);w=Af(f,zie),_=m.children.length,g=w}b||B.moveNodes(e,{at:p,to:v,voids:a}),C&&B.removeNodes(e,{at:C.current,voids:a}),P.isElement(m)&&F.isEmpty(e,m)||z.isText(m)&&m.text===``&&h[h.length-1]!==0?B.removeNodes(e,{at:h,voids:a}):e.apply({type:`merge_node`,path:v,position:_,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){F.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:i=`lowest`,voids:a=!1}=t,{match:o}=t;if(r){o??=L.isPath(r)?Ep(e,r):t=>F.isBlock(e,t);var s=F.pathRef(e,n),c=F.nodes(e,{at:r,match:o,mode:i,voids:a});for(var l of Array.from(c,(t=>{var[,n]=t;return F.pathRef(e,n)}))){var u=l.unref(),d=s.current;u.length!==0&&e.apply({type:`move_node`,path:u,newPath:d}),s.current&&L.isSibling(d,u)&&L.isAfter(d,u)&&(s.current=L.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};F.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:i=`lowest`}=t,{at:a=e.selection,match:o}=t;if(a){o??=L.isPath(a)?Ep(e,a):t=>F.isBlock(e,t),!n&&R.isRange(a)&&(a=F.unhangRange(e,a));var s=F.nodes(e,{at:a,match:o,mode:i,voids:r});for(var c of Array.from(s,(t=>{var[,n]=t;return F.pathRef(e,n)}))){var l=c.unref();if(l){var[u]=F.node(e,l);e.apply({type:`remove_node`,path:l,node:u})}}}}))},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};F.withoutNormalizing(e,(()=>{var{match:r,at:i=e.selection}=n,{hanging:a=!1,mode:o=`lowest`,split:s=!1,voids:c=!1}=n;if(i){if(r??=L.isPath(i)?Ep(e,i):t=>F.isBlock(e,t),!a&&R.isRange(i)&&(i=F.unhangRange(e,i)),s&&R.isRange(i)){if(R.isCollapsed(i)&&F.leaf(e,i.anchor)[0].text.length>0)return;var l=F.rangeRef(e,i,{affinity:`inward`}),[u,d]=R.edges(i),f=o===`lowest`?`lowest`:`highest`,p=F.isEnd(e,d,d.path);B.splitNodes(e,{at:d,match:r,mode:f,voids:c,always:!p});var m=F.isStart(e,u,u.path);B.splitNodes(e,{at:u,match:r,mode:f,voids:c,always:!m}),i=l.unref(),n.at??B.select(e,i)}for(var[h,g]of F.nodes(e,{at:i,match:r,mode:o,voids:c})){var _={},v={};if(g.length!==0){var y=!1;for(var b in t)b!==`children`&&b!==`text`&&t[b]!==h[b]&&(y=!0,h.hasOwnProperty(b)&&(_[b]=h[b]),t[b]!=null&&(v[b]=t[b]));y&&e.apply({type:`set_node`,path:g,properties:_,newProperties:v})}}}}))},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};F.withoutNormalizing(e,(()=>{var{mode:n=`lowest`,voids:r=!1}=t,{match:i,at:a=e.selection,height:o=0,always:s=!1}=t;if(i??=t=>F.isBlock(e,t),R.isRange(a)&&(a=Vie(e,a)),L.isPath(a)){var c=a,l=F.point(e,c),[u]=F.parent(e,c);i=e=>e===u,o=l.path.length-c.length+1,a=l,s=!0}if(a){var d=F.pointRef(e,a,{affinity:`backward`}),[f]=F.nodes(e,{at:a,match:i,mode:n,voids:r});if(f){var p=F.void(e,{at:a,mode:`highest`});if(!r&&p){var[m,h]=p;if(P.isElement(m)&&e.isInline(m)){var g=F.after(e,h);if(!g){var _=L.next(h);B.insertNodes(e,{text:``},{at:_,voids:r}),g=F.point(e,_)}a=g,s=!0}o=a.path.length-h.length+1,s=!0}var v=F.pointRef(e,a),y=a.path.length-o,[,b]=f,x=a.path.slice(0,y),S=o===0?a.offset:a.path[y]+0;for(var[C,w]of F.levels(e,{at:x,reverse:!0,voids:r})){var T=!1;if(w.length<b.length||w.length===0||!r&&F.isVoid(e,C))break;var E=d.current,D=F.isEnd(e,E,w);if(s||!d||!F.isEdge(e,E,w)){T=!0;var O=I.extractProps(C);e.apply({type:`split_node`,path:w,position:S,properties:O})}S=w[w.length-1]+(T||D?1:0)}if(t.at==null){var ee=v.current||F.end(e,[]);B.select(e,ee)}d.unref(),v.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;B.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};F.withoutNormalizing(e,(()=>{var{mode:n=`lowest`,split:r=!1,voids:i=!1}=t,{at:a=e.selection,match:o}=t;if(a){o??=L.isPath(a)?Ep(e,a):t=>F.isBlock(e,t),L.isPath(a)&&(a=F.range(e,a));var s=R.isRange(a)?F.rangeRef(e,a):null,c=F.nodes(e,{at:a,match:o,mode:n,voids:i}),l=Array.from(c,(t=>{var[,n]=t;return F.pathRef(e,n)})).reverse(),u=function(t){var n=t.unref(),[a]=F.node(e,n),o=F.range(e,n);r&&s&&(o=R.intersection(s.current,o)),B.liftNodes(e,{at:o,match:e=>P.isAncestor(a)&&a.children.includes(e),voids:i})};for(var d of l)u(d);s&&s.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};F.withoutNormalizing(e,(()=>{var{mode:r=`lowest`,split:i=!1,voids:a=!1}=n,{match:o,at:s=e.selection}=n;if(s){if(o??=L.isPath(s)?Ep(e,s):e.isInline(t)?t=>F.isInline(e,t)||z.isText(t):t=>F.isBlock(e,t),i&&R.isRange(s)){var[c,l]=R.edges(s),u=F.rangeRef(e,s,{affinity:`inward`});B.splitNodes(e,{at:l,match:o,voids:a}),B.splitNodes(e,{at:c,match:o,voids:a}),s=u.unref(),n.at??B.select(e,s)}for(var[,d]of Array.from(F.nodes(e,{at:s,match:e.isInline(t)?t=>F.isBlock(e,t):e=>F.isEditor(e),mode:`lowest`,voids:a}))){var f=R.isRange(s)?R.intersection(s,F.range(e,d)):s;if(f){var p=Array.from(F.nodes(e,{at:f,match:o,mode:r,voids:a}));if(p.length>0&&function(){var[n]=p,r=p[p.length-1],[,i]=n,[,o]=r;if(i.length===0&&o.length===0)return`continue`;var s=L.equals(i,o)?L.parent(i):L.common(i,o),c=F.range(e,i,o),[l]=F.node(e,s),u=s.length+1,d=L.next(o.slice(0,u)),f=wp(wp({},t),{},{children:[]});B.insertNodes(e,f,{at:d,voids:a}),B.moveNodes(e,{at:c,match:e=>P.isAncestor(l)&&l.children.includes(e),to:d.concat(0),voids:a})}()===`continue`)continue}}}}))}},Tp=(e,t)=>{if(P.isElement(t)){var n=t;return!!F.isVoid(e,t)||n.children.length===1&&Tp(e,n.children[0])}return!F.isEditor(t)},Vie=(e,t)=>{if(R.isCollapsed(t))return t.anchor;var[,n]=R.edges(t),r=F.pointRef(e,n);return B.delete(e,{at:t}),r.unref()},Ep=(e,t)=>{var[n]=F.node(e,t);return e=>e===n};function Dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Op(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Dp(Object(n),!0).forEach((function(t){yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hie={collapse(e){var{edge:t=`anchor`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e;if(n){if(t===`anchor`)B.select(e,n.anchor);else if(t===`focus`)B.select(e,n.focus);else if(t===`start`){var[r]=R.edges(n);B.select(e,r)}else if(t===`end`){var[,i]=R.edges(n);B.select(e,i)}}},deselect(e){var{selection:t}=e;t&&e.apply({type:`set_selection`,properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:i=`character`,reverse:a=!1}=t,{edge:o=null}=t;if(n){o===`start`&&(o=R.isBackward(n)?`focus`:`anchor`),o===`end`&&(o=R.isBackward(n)?`anchor`:`focus`);var{anchor:s,focus:c}=n,l={distance:r,unit:i},u={};if(o==null||o===`anchor`){var d=a?F.before(e,s,l):F.after(e,s,l);d&&(u.anchor=d)}if(o==null||o===`focus`){var f=a?F.before(e,c,l):F.after(e,c,l);f&&(u.focus=f)}B.setSelection(e,u)}},select(e,t){var{selection:n}=e;if(t=F.range(e,t),n)B.setSelection(e,t);else{if(!R.isRange(t))throw Error(`When setting the selection and the current selection is \`null\` you must provide at least an \`anchor\` and \`focus\`, but you passed: ${JSON.stringify(t)}`);e.apply({type:`set_selection`,properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:i=`both`}=n;if(r){i===`start`&&(i=R.isBackward(r)?`focus`:`anchor`),i===`end`&&(i=R.isBackward(r)?`anchor`:`focus`);var{anchor:a,focus:o}=r,s=i===`anchor`?a:o;B.setSelection(e,{[i===`anchor`?`anchor`:`focus`]:Op(Op({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(n){for(var a in t)(a===`anchor`&&t.anchor!=null&&!gp.equals(t.anchor,n.anchor)||a===`focus`&&t.focus!=null&&!gp.equals(t.focus,n.focus)||a!==`anchor`&&a!==`focus`&&t[a]!==n[a])&&(r[a]=n[a],i[a]=t[a]);Object.keys(r).length>0&&e.apply({type:`set_selection`,properties:r,newProperties:i})}}},Uie={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};F.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r=`character`,distance:i=1,voids:a=!1}=t,{at:o=e.selection,hanging:s=!1}=t;if(o){if(R.isRange(o)&&R.isCollapsed(o)&&(o=o.anchor),gp.isPoint(o)){var c=F.void(e,{at:o,mode:`highest`});if(!a&&c){var[,l]=c;o=l}else{var u={unit:r,distance:i};o={anchor:o,focus:n?F.before(e,o,u)||F.start(e,[]):F.after(e,o,u)||F.end(e,[])},s=!0}}if(L.isPath(o))B.removeNodes(e,{at:o,voids:a});else if(!R.isCollapsed(o)){if(!s){var[,d]=R.edges(o),f=F.end(e,[]);gp.equals(d,f)||(o=F.unhangRange(e,o,{voids:a}))}var[p,m]=R.edges(o),h=F.above(e,{match:t=>F.isBlock(e,t),at:p,voids:a}),g=F.above(e,{match:t=>F.isBlock(e,t),at:m,voids:a}),_=h&&g&&!L.equals(h[1],g[1]),v=L.equals(p.path,m.path),y=a?null:F.void(e,{at:p,mode:`highest`}),b=a?null:F.void(e,{at:m,mode:`highest`});if(y){var x=F.before(e,p);x&&h&&L.isAncestor(h[1],x.path)&&(p=x)}if(b){var S=F.after(e,m);S&&g&&L.isAncestor(g[1],S.path)&&(m=S)}var C,w=[];for(var T of F.nodes(e,{at:o,voids:a})){var[E,D]=T;C&&L.compare(D,C)===0||(!a&&F.isVoid(e,E)||!L.isCommon(D,p.path)&&!L.isCommon(D,m.path))&&(w.push(T),C=D)}var O=Array.from(w,(t=>{var[,n]=t;return F.pathRef(e,n)})),ee=F.pointRef(e,p),te=F.pointRef(e,m);if(!v&&!y){var ne=ee.current,[k]=F.leaf(e,ne),{path:re}=ne,{offset:ie}=p,ae=k.text.slice(ie);ae.length>0&&e.apply({type:`remove_text`,path:re,offset:ie,text:ae})}for(var oe of O){var se=oe.unref();B.removeNodes(e,{at:se,voids:a})}if(!b){var ce=te.current,[le]=F.leaf(e,ce),{path:ue}=ce,de=v?p.offset:0,fe=le.text.slice(de,m.offset);fe.length>0&&e.apply({type:`remove_text`,path:ue,offset:de,text:fe})}!v&&_&&te.current&&ee.current&&B.mergeNodes(e,{at:te.current,hanging:!0,voids:a});var pe=n?ee.unref()||te.unref():te.unref()||ee.unref();t.at==null&&pe&&B.select(e,pe)}}}))},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};F.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1}=n,{at:a=e.selection}=n;if(t.length&&a){if(R.isRange(a))if(r||(a=F.unhangRange(e,a)),R.isCollapsed(a))a=a.anchor;else{var[,o]=R.edges(a);if(!i&&F.void(e,{at:o}))return;var s=F.pointRef(e,o);B.delete(e,{at:a}),a=s.unref()}else L.isPath(a)&&(a=F.start(e,a));if(i||!F.void(e,{at:a})){var c=F.above(e,{at:a,match:t=>F.isInline(e,t),mode:`highest`,voids:i});if(c){var[,l]=c;F.isEnd(e,a,l)?a=F.after(e,l):F.isStart(e,a,l)&&(a=F.before(e,l))}var[,u]=F.above(e,{match:t=>F.isBlock(e,t),at:a,voids:i}),d=F.isStart(e,a,u),f=F.isEnd(e,a,u),p=d&&f,m=!d||d&&f,h=!f,[,g]=I.first({children:t},[]),[,_]=I.last({children:t},[]),v=[],y=t=>{var[n,r]=t;return r.length!==0&&(!!p||!(m&&L.isAncestor(r,g)&&P.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(h&&L.isAncestor(r,_)&&P.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var b of I.nodes({children:t},{pass:y}))y(b)&&v.push(b);var x=[],S=[],C=[],w=!0,T=!1;for(var[E]of v)P.isElement(E)&&!e.isInline(E)?(w=!1,T=!0,S.push(E)):w?x.push(E):C.push(E);var[D]=F.nodes(e,{at:a,match:t=>z.isText(t)||F.isInline(e,t),mode:`highest`,voids:i}),[,O]=D,ee=F.isStart(e,a,O),te=F.isEnd(e,a,O),ne=F.pathRef(e,f?L.next(u):u),k=F.pathRef(e,te?L.next(O):O),re=F.pathRef(e,u);B.splitNodes(e,{at:a,match:t=>T?F.isBlock(e,t):z.isText(t)||F.isInline(e,t),mode:T?`lowest`:`highest`,voids:i});var ie=F.pathRef(e,!ee||ee&&te?L.next(O):O);if(B.insertNodes(e,x,{at:ie.current,match:t=>z.isText(t)||F.isInline(e,t),mode:`highest`,voids:i}),p&&S.length&&B.delete(e,{at:re.unref(),voids:i}),B.insertNodes(e,S,{at:ne.current,match:t=>F.isBlock(e,t),mode:`lowest`,voids:i}),B.insertNodes(e,C,{at:k.current,match:t=>z.isText(t)||F.isInline(e,t),mode:`highest`,voids:i}),!n.at){var ae=C.length>0?L.previous(k.current):S.length>0?L.previous(ne.current):L.previous(ie.current),oe=F.end(e,ae);B.select(e,oe)}ie.unref(),ne.unref(),k.unref()}}}))},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};F.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(i){if(L.isPath(i)&&(i=F.range(e,i)),R.isRange(i))if(R.isCollapsed(i))i=i.anchor;else{var a=R.end(i);if(!r&&F.void(e,{at:a}))return;var o=F.pointRef(e,a);B.delete(e,{at:i,voids:r}),i=o.unref(),B.setSelection(e,{anchor:i,focus:i})}if(r||!F.void(e,{at:i})){var{path:s,offset:c}=i;t.length>0&&e.apply({type:`insert_text`,path:s,offset:c,text:t})}}}))}};function kp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ap(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?kp(Object(n),!0).forEach((function(t){yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var B=Ap(Ap(Ap(Ap({},Lie),Bie),Hie),Uie),jp=`[object Map]`,Mp=`[object Set]`,Wie=/^\[object .+?Constructor\]$/,Gie=/^(?:0|[1-9]\d*)$/,Kie=`[\\ud800-\\udfff]`,Np=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,Pp=`\\ud83c[\\udffb-\\udfff]`,Fp=`[^\\ud800-\\udfff]`,Ip=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Lp=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Rp=`(?:`+Np+`|`+Pp+`)?`,qie=`[\\ufe0e\\ufe0f]?`+Rp+(`(?:\\u200d(?:`+[Fp,Ip,Lp].join(`|`)+`)[\\ufe0e\\ufe0f]?`+Rp+`)*`),Jie=`(?:`+[Fp+Np+`?`,Np,Ip,Lp,Kie].join(`|`)+`)`,Yie=RegExp(Pp+`(?=`+Pp+`)|`+Jie+qie,`g`),Xie=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),Zie=typeof Yr==`object`&&Yr&&Yr.Object===Object&&Yr,Qie=typeof self==`object`&&self&&self.Object===Object&&self,zp=Zie||Qie||Function(`return this`)();function $ie(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(t,(function(t){return e[t]}))}function eae(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function tae(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function nae(e){return function(e){return Xie.test(e)}(e)?function(e){return e.match(Yie)||[]}(e):function(e){return e.split(``)}(e)}var Bp,Vp,rae=Function.prototype,Hp=Object.prototype,Up=zp[`__core-js_shared__`],Wp=function(){var e=/[^.]+$/.exec(Up&&Up.keys&&Up.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Gp=rae.toString,Kp=Hp.hasOwnProperty,qp=Hp.toString,iae=RegExp(`^`+Gp.call(Kp).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Jp=zp.Symbol,Yp=Jp?Jp.iterator:void 0,aae=Hp.propertyIsEnumerable,oae=(Bp=Object.keys,Vp=Object,function(e){return Bp(Vp(e))}),Xp=tm(zp,`DataView`),Zp=tm(zp,`Map`),Qp=tm(zp,`Promise`),$p=tm(zp,`Set`),em=tm(zp,`WeakMap`),sae=rm(Xp),cae=rm(Zp),lae=rm(Qp),uae=rm($p),dae=rm(em);function fae(e,t){var n=im(e)||function(e){return function(e){return cm(e)&&am(e)}(e)&&Kp.call(e,`callee`)&&(!aae.call(e,`callee`)||qp.call(e)==`[object Arguments]`)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!Kp.call(e,a)||i&&(a==`length`||hae(a,r))||n.push(a);return n}function pae(e){return!sm(e)||function(e){return!!Wp&&Wp in e}(e)?!1:(om(e)||function(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}(e)?iae:Wie).test(rm(e))}function mae(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||Hp,t!==r)return oae(e);var t,n,r,i=[];for(var a in Object(e))Kp.call(e,a)&&a!=`constructor`&&i.push(a);return i}function tm(e,t){var n=function(e,t){return e?.[t]}(e,t);return pae(n)?n:void 0}var nm=function(e){return qp.call(e)};function hae(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||Gie.test(e))&&e>-1&&e%1==0&&e<t}function rm(e){if(e!=null){try{return Gp.call(e)}catch{}try{return e+``}catch{}}return``}(Xp&&nm(new Xp(new ArrayBuffer(1)))!=`[object DataView]`||Zp&&nm(new Zp)!=jp||Qp&&nm(Qp.resolve())!=`[object Promise]`||$p&&nm(new $p)!=Mp||em&&nm(new em)!=`[object WeakMap]`)&&(nm=function(e){var t=qp.call(e),n=t==`[object Object]`?e.constructor:void 0,r=n?rm(n):void 0;if(r)switch(r){case sae:return`[object DataView]`;case cae:return jp;case lae:return`[object Promise]`;case uae:return Mp;case dae:return`[object WeakMap]`}return t});var im=Array.isArray;function am(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!om(e)}function om(e){var t=sm(e)?qp.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function sm(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function cm(e){return!!e&&typeof e==`object`}function gae(e){return e?$ie(e,function(e){return am(e)?fae(e):mae(e)}(e)):[]}var lm=function(e){if(!e)return[];if(am(e))return function(e){return typeof e==`string`||!im(e)&&cm(e)&&qp.call(e)==`[object String]`}(e)?nae(e):function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}(e);if(Yp&&e[Yp])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Yp]());var t=nm(e);return(t==jp?eae:t==Mp?tae:gae)(e)};function um(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function dm(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach((function(n){e[n]===void 0?e[n]=t[n]:um(t[n])&&um(e[n])&&Object.keys(t[n]).length>0&&dm(e[n],t[n])}))}var fm={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:``},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:``,host:``,hostname:``,href:``,origin:``,pathname:``,protocol:``,search:``}};function pm(){var e=typeof document<`u`?document:{};return dm(e,fm),e}var _ae={document:fm,navigator:{userAgent:``},location:{hash:``,host:``,hostname:``,href:``,origin:``,pathname:``,protocol:``,search:``},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return``}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return typeof setTimeout>`u`?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout<`u`&&clearTimeout(e)}};function mm(){var e=typeof window<`u`?window:{};return dm(e,_ae),e}function hm(e){return hm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hm(e)}function gm(e,t){return gm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gm(e,t)}function vae(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}}function _m(e,t,n){return _m=vae()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&gm(i,n.prototype),i},_m.apply(null,arguments)}function vm(e){var t=typeof Map==`function`?new Map:void 0;return vm=function(e){if(e===null||!function(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _m(e,arguments,hm(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),gm(n,e)},vm(e)}var ym=function(e){var t,n;function r(t){var n,r,i;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}(n),i=r.__proto__,Object.defineProperty(r,`__proto__`,{get:function(){return i},set:function(e){i.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(vm(Array));function bm(e){e===void 0&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,bm(e)):t.push(e)})),t}function xm(e,t){return Array.prototype.filter.call(e,t)}function V(e,t){var n=mm(),r=pm(),i=[];if(!t&&e instanceof ym)return e;if(!e)return new ym(i);if(typeof e==`string`){var a=e.trim();if(a.indexOf(`<`)>=0&&a.indexOf(`>`)>=0){var o=`div`;a.indexOf(`<li`)===0&&(o=`ul`),a.indexOf(`<tr`)===0&&(o=`tbody`),a.indexOf(`<td`)!==0&&a.indexOf(`<th`)!==0||(o=`tr`),a.indexOf(`<tbody`)===0&&(o=`table`),a.indexOf(`<option`)===0&&(o=`select`);var s=r.createElement(o);s.innerHTML=a;for(var c=0;c<s.childNodes.length;c+=1)i.push(s.childNodes[c])}else i=function(e,t){if(typeof e!=`string`)return[e];for(var n=[],r=t.querySelectorAll(e),i=0;i<r.length;i+=1)n.push(r[i]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof ym)return e;i=e}return new ym(function(e){for(var t=[],n=0;n<e.length;n+=1)t.indexOf(e[n])===-1&&t.push(e[n]);return t}(i))}function Sm(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=bm(t.map((function(e){return e.split(` `)})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function Cm(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=bm(t.map((function(e){return e.split(` `)})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function wm(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=bm(t.map((function(e){return e.split(` `)})));return xm(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function Tm(e,t){if(arguments.length===1&&typeof e==`string`)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Em(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Dm(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var i=0;i<e.attributes.length;i+=1){var a=e.attributes[i];a.name.indexOf(`data-`)>=0&&(n[t=a.name.split(`data-`)[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))]=a.value)}for(var o in n)n[o]===`false`?n[o]=!1:n[o]===`true`?n[o]=!0:parseFloat(n[o])===1*n[o]&&(n[o]*=1);return n}}function Om(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()===`select`){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var i=0;i<this.length;i+=1){var a=this[i];if(Array.isArray(e)&&a.multiple&&a.nodeName.toLowerCase()===`select`)for(var o=0;o<a.options.length;o+=1)a.options[o].selected=e.indexOf(a.options[o].value)>=0;else a.value=e}return this}function km(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];function s(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),V(t).is(i))a.apply(t,n);else for(var r=V(t).parents(),o=0;o<r.length;o+=1)V(r[o]).is(i)&&a.apply(r[o],n)}}function c(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),a.apply(this,t)}typeof t[1]==`function`&&(r=t[0],a=t[1],o=t[2],i=void 0),o||=!1;for(var l,u=r.split(` `),d=0;d<this.length;d+=1){var f=this[d];if(i)for(l=0;l<u.length;l+=1){var p=u[l];f.dom7LiveListeners||={},f.dom7LiveListeners[p]||(f.dom7LiveListeners[p]=[]),f.dom7LiveListeners[p].push({listener:a,proxyListener:s}),f.addEventListener(p,s,o)}else for(l=0;l<u.length;l+=1){var m=u[l];f.dom7Listeners||={},f.dom7Listeners[m]||(f.dom7Listeners[m]=[]),f.dom7Listeners[m].push({listener:a,proxyListener:c}),f.addEventListener(m,c,o)}}return this}function Am(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];typeof t[1]==`function`&&(r=t[0],a=t[1],o=t[2],i=void 0),o||=!1;for(var s=r.split(` `),c=0;c<s.length;c+=1)for(var l=s[c],u=0;u<this.length;u+=1){var d=this[u],f=void 0;if(!i&&d.dom7Listeners?f=d.dom7Listeners[l]:i&&d.dom7LiveListeners&&(f=d.dom7LiveListeners[l]),f&&f.length)for(var p=f.length-1;p>=0;--p){var m=f[p];a&&m.listener===a||a&&m.listener&&m.listener.dom7proxy&&m.listener.dom7proxy===a?(d.removeEventListener(l,m.proxyListener,o),f.splice(p,1)):a||(d.removeEventListener(l,m.proxyListener,o),f.splice(p,1))}}return this}function jm(){var e=mm();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css(`width`)):null}function Mm(){var e=mm();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css(`height`)):null}function Nm(){if(this.length>0){var e=mm(),t=pm(),n=this[0],r=n.getBoundingClientRect(),i=t.body,a=n.clientTop||i.clientTop||0,o=n.clientLeft||i.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,c=n===e?e.scrollX:n.scrollLeft;return{top:r.top+s-a,left:r.left+c-o}}return null}function Pm(){for(var e=0;e<this.length;e+=1)this[e].style.display=`none`;return this}function Fm(){for(var e=mm(),t=0;t<this.length;t+=1){var n=this[t];n.style.display===`none`&&(n.style.display=``),e.getComputedStyle(n,null).getPropertyValue(`display`)===`none`&&(n.style.display=`block`)}return this}function Im(e,t){var n,r=mm();if(arguments.length===1){if(typeof e!=`string`){for(n=0;n<this.length;n+=1)for(var i in e)this[n].style[i]=e[i];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(arguments.length===2&&typeof e==`string`){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Lm(e){return e&&this.forEach((function(t,n){e.apply(t,[t,n])})),this}function Rm(e){return V(xm(this,e))}function zm(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Bm(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function Vm(e){var t,n,r=mm(),i=pm(),a=this[0];if(!a||e===void 0)return!1;if(typeof e==`string`){if(a.matches)return a.matches(e);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(e);if(a.msMatchesSelector)return a.msMatchesSelector(e);for(t=V(e),n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}if(e===i)return a===i;if(e===r)return a===r;if(e.nodeType||e instanceof ym){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1}function Hm(){for(var e,t=pm(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof e==`string`){var i=t.createElement(`div`);for(i.innerHTML=e;i.firstChild;)this[r].appendChild(i.firstChild)}else if(e instanceof ym)for(var a=0;a<e.length;a+=1)this[r].appendChild(e[a]);else this[r].appendChild(e)}return this}function Um(e){var t,n,r=pm();for(t=0;t<this.length;t+=1)if(typeof e==`string`){var i=r.createElement(`div`);for(i.innerHTML=e,n=i.childNodes.length-1;n>=0;--n)this[t].insertBefore(i.childNodes[n],this[t].childNodes[0])}else if(e instanceof ym)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Wm(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?V(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return V(t)}function Gm(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?V(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return V(t)}function Km(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i+=1)t.push(r[i]);return V(t)}function qm(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,i=0;i<r.length;i+=1)e&&!V(r[i]).is(e)||t.push(r[i]);return V(t)}function Jm(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Ym(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=``}}return this}V.fn=ym.prototype;var Xm=`resize scroll`.split(` `);function Zm(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n[0]===void 0){for(var i=0;i<this.length;i+=1)Xm.indexOf(e)<0&&(e in this[i]?this[i][e]():V(this[i]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Qm=Zm(`click`),$m=Zm(`focus`),eh=`[object GeneratorFunction]`,th=/^(?:0|[1-9]\d*)$/;function nh(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var rh=Object.prototype,ih=rh.hasOwnProperty,ah=rh.toString,oh=rh.propertyIsEnumerable,sh=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function ch(e,t){var n=hh(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&gh(e)}(e)&&ih.call(e,`callee`)&&(!oh.call(e,`callee`)||ah.call(e)==`[object Arguments]`)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!ih.call(e,a)||i&&(a==`length`||mh(a,r))||n.push(a);return n}var lh,uh,dh=(lh=function(e,t){return e&&fh(e,t,_h)},function(e,t){if(e==null)return e;if(!gh(e))return lh(e,t);for(var n=e.length,r=uh?n:-1,i=Object(e);(uh?r--:++r<n)&&!1!==t(i[r],r,i););return e}),fh=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}();function ph(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||rh,t!==r)return sh(e);var t,n,r,i=[];for(var a in Object(e))ih.call(e,a)&&a!=`constructor`&&i.push(a);return i}function mh(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||th.test(e))&&e>-1&&e%1==0&&e<t}var hh=Array.isArray;function gh(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}(e)?ah.call(e):``;return t==`[object Function]`||t==eh}(e)}function _h(e){return gh(e)?ch(e):ph(e)}function vh(e){return e}var yh=function(e,t){return(hh(e)?nh:dh)(e,typeof t==`function`?t:vh)},bh=(e=21)=>{let t=``,n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?`_`:`-`}return t},xh=/^\s+|\s+$/g,Sh=/^[-+]0x[0-9a-f]+$/i,Ch=/^0b[01]+$/i,wh=/^0o[0-7]+$/i,Th=parseInt,Eh=typeof Yr==`object`&&Yr&&Yr.Object===Object&&Yr,Dh=typeof self==`object`&&self&&self.Object===Object&&self,Oh=Eh||Dh||Function(`return this`)(),kh=Object.prototype.toString,Ah=Math.max,jh=Math.min,Mh=function(){return Oh.Date.now()};function Nh(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n)}function m(e){return l=e,s=setTimeout(g,t),u?p(e):o}function h(e){var n=e-c;return c===void 0||n>=t||n<0||d&&e-l>=a}function g(){var e=Mh();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?jh(n,a-(e-l)):n}(e))}function _(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function v(){var e=Mh(),n=h(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return s=setTimeout(g,t),p(c)}return s===void 0&&(s=setTimeout(g,t)),o}return t=Fh(t)||0,Ph(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?Ah(Fh(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f),v.cancel=function(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0},v.flush=function(){return s===void 0?o:_(Mh())},v}function Ph(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Fh(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&kh.call(e)==`[object Symbol]`}(e))return NaN;if(Ph(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Ph(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(xh,``);var n=Ch.test(e);return n||wh.test(e)?Th(e.slice(2),n?2:8):Sh.test(e)?NaN:+e}var Ih=function(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);return Ph(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Nh(e,t,{leading:r,maxWait:t,trailing:i})},Lh={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function Rh(e,t,n,r,i){return{sel:e,data:t,children:n,text:r,elm:i,key:t===void 0?void 0:t.key}}var zh=Array.isArray;function Bh(e){return typeof e==`string`||typeof e==`number`||e instanceof String||e instanceof Number}function Vh(e){return e===void 0}function Hh(e){return e!==void 0}var Uh=Rh(``,{},[],void 0,void 0);function Wh(e,t){let n=e.key===t.key,r=e.data?.is===t.data?.is;return e.sel===t.sel&&n&&r}function Gh(e,t,n){let r={};for(let i=t;i<=n;++i){let t=e[i]?.key;t!==void 0&&(r[t]=i)}return r}var Kh=[`create`,`update`,`remove`,`destroy`,`pre`,`post`];function qh(e,t){let n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t===void 0?Lh:t;for(let t of Kh)for(let r of e){let e=r[t];e!==void 0&&n[t].push(e)}function i(e){let t=e.id?`#`+e.id:``,n=e.getAttribute(`class`),i=n?`.`+n.split(` `).join(`.`):``;return Rh(r.tagName(e).toLowerCase()+t+i,{},[],void 0,e)}function a(e,t){return function(){if(--t==0){let t=r.parentNode(e);r.removeChild(t,e)}}}function o(e,t){var i;let a,s=e.data;if(s!==void 0){let t=s.hook?.init;Hh(t)&&(t(e),s=e.data)}let c=e.children,l=e.sel;if(l===`!`)Vh(e.text)&&(e.text=``),e.elm=r.createComment(e.text);else if(l!==void 0){let u=l.indexOf(`#`),d=l.indexOf(`.`,u),f=u>0?u:l.length,p=d>0?d:l.length,m=u!==-1||d!==-1?l.slice(0,Math.min(f,p)):l,h=e.elm=Hh(s)&&Hh(a=s.ns)?r.createElementNS(a,m,s):r.createElement(m,s);for(f<p&&h.setAttribute(`id`,l.slice(f+1,p)),d>0&&h.setAttribute(`class`,l.slice(p+1).replace(/\./g,` `)),a=0;a<n.create.length;++a)n.create[a](Uh,e);if(zh(c))for(a=0;a<c.length;++a){let e=c[a];e!=null&&r.appendChild(h,o(e,t))}else Bh(e.text)&&r.appendChild(h,r.createTextNode(e.text));let g=e.data.hook;Hh(g)&&((i=g.create)==null||i.call(g,Uh,e),g.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function s(e,t,n,i,a,s){for(;i<=a;++i){let a=n[i];a!=null&&r.insertBefore(e,o(a,s),t)}}function c(e){var t,r;let i=e.data;if(i!==void 0){(r=(t=i?.hook)?.destroy)==null||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(e.children!==void 0)for(let t=0;t<e.children.length;++t){let n=e.children[t];n!=null&&typeof n!=`string`&&c(n)}}}function l(e,t,i,o){for(;i<=o;++i){let o,s,l=t[i];if(l!=null)if(Hh(l.sel)){c(l),o=n.remove.length+1,s=a(l.elm,o);for(let e=0;e<n.remove.length;++e)n.remove[e](l,s);let e=l?.data?.hook?.remove;Hh(e)?e(l,s):s()}else r.removeChild(e,l.elm)}}function u(e,t,i){var a,c,d,f;let p=t.data?.hook;(a=p?.prepatch)==null||a.call(p,e,t);let m=t.elm=e.elm,h=e.children,g=t.children;if(e!==t){if(t.data!==void 0){for(let r=0;r<n.update.length;++r)n.update[r](e,t);(d=(c=t.data.hook)?.update)==null||d.call(c,e,t)}Vh(t.text)?Hh(h)&&Hh(g)?h!==g&&function(e,t,n,i){let a,c,d,f,p=0,m=0,h=t.length-1,g=t[0],_=t[h],v=n.length-1,y=n[0],b=n[v];for(;p<=h&&m<=v;)g==null?g=t[++p]:_==null?_=t[--h]:y==null?y=n[++m]:b==null?b=n[--v]:Wh(g,y)?(u(g,y,i),g=t[++p],y=n[++m]):Wh(_,b)?(u(_,b,i),_=t[--h],b=n[--v]):Wh(g,b)?(u(g,b,i),r.insertBefore(e,g.elm,r.nextSibling(_.elm)),g=t[++p],b=n[--v]):Wh(_,y)?(u(_,y,i),r.insertBefore(e,_.elm,g.elm),_=t[--h],y=n[++m]):(a===void 0&&(a=Gh(t,p,h)),c=a[y.key],Vh(c)?r.insertBefore(e,o(y,i),g.elm):(d=t[c],d.sel===y.sel?(u(d,y,i),t[c]=void 0,r.insertBefore(e,d.elm,g.elm)):r.insertBefore(e,o(y,i),g.elm)),y=n[++m]);(p<=h||m<=v)&&(p>h?(f=n[v+1]==null?null:n[v+1].elm,s(e,f,n,m,v,i)):l(e,t,p,h))}(m,h,g,i):Hh(g)?(Hh(e.text)&&r.setTextContent(m,``),s(m,null,g,0,g.length-1,i)):Hh(h)?l(m,h,0,h.length-1):Hh(e.text)&&r.setTextContent(m,``):e.text!==t.text&&(Hh(h)&&l(m,h,0,h.length-1),r.setTextContent(m,t.text)),(f=p?.postpatch)==null||f.call(p,e,t)}}return function(e,t){let a,s,c,d=[];for(a=0;a<n.pre.length;++a)n.pre[a]();for(function(e){return e.sel!==void 0}(e)||(e=i(e)),Wh(e,t)?u(e,t,d):(s=e.elm,c=r.parentNode(s),o(t,d),c!==null&&(r.insertBefore(c,t.elm,r.nextSibling(s)),l(c,[e],0,0))),a=0;a<d.length;++a)d[a].data.hook.insert(d[a]);for(a=0;a<n.post.length;++a)n.post[a]();return t}}function Jh(e,t,n){if(e.ns=`http://www.w3.org/2000/svg`,n!==`foreignObject`&&t!==void 0)for(let e=0;e<t.length;++e){let n=t[e].data;n!==void 0&&Jh(n,t[e].children,t[e].sel)}}function Yh(e,t,n){let r,i,a,o={};if(n===void 0?t!=null&&(zh(t)?r=t:Bh(t)?i=t.toString():t&&t.sel?r=[t]:o=t):(t!==null&&(o=t),zh(n)?r=n:Bh(n)?i=n.toString():n&&n.sel&&(r=[n])),r!==void 0)for(a=0;a<r.length;++a)Bh(r[a])&&(r[a]=Rh(void 0,void 0,void 0,r[a],void 0));return e[0]!==`s`||e[1]!==`v`||e[2]!==`g`||e.length!==3&&e[3]!==`.`&&e[3]!==`#`||Jh(o,r,e),Rh(e,o,r,i,void 0)}function Xh(e,t){let n,r=t.elm,i=e.data.attrs,a=t.data.attrs;if((i||a)&&i!==a){for(n in i||={},a||={},a){let e=a[n];i[n]!==e&&(!0===e?r.setAttribute(n,``):!1===e?r.removeAttribute(n):n.charCodeAt(0)===120?n.charCodeAt(3)===58?r.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,n,e):n.charCodeAt(5)===58?r.setAttributeNS(`http://www.w3.org/1999/xlink`,n,e):r.setAttribute(n,e):r.setAttribute(n,e))}for(n in i)n in a||r.removeAttribute(n)}}var Zh={create:Xh,update:Xh};function Qh(e,t){let n,r,i=t.elm,a=e.data.class,o=t.data.class;if((a||o)&&a!==o){for(r in a||={},o||={},a)a[r]&&!Object.prototype.hasOwnProperty.call(o,r)&&i.classList.remove(r);for(r in o)n=o[r],n!==a[r]&&i.classList[n?`add`:`remove`](r)}}var $h={create:Qh,update:Qh},eg=/[A-Z]/g;function tg(e,t){let n=t.elm,r,i=e.data.dataset,a=t.data.dataset;if(!i&&!a||i===a)return;i||={},a||={};let o=n.dataset;for(r in i)a[r]||(o?r in o&&delete o[r]:n.removeAttribute(`data-`+r.replace(eg,`-$&`).toLowerCase()));for(r in a)i[r]!==a[r]&&(o?o[r]=a[r]:n.setAttribute(`data-`+r.replace(eg,`-$&`).toLowerCase(),a[r]))}var ng={create:tg,update:tg};function rg(e,t,n){if(typeof e==`function`)e.call(t,n,t);else if(typeof e==`object`)for(let r=0;r<e.length;r++)rg(e[r],t,n)}function ig(e,t){let n=e.type,r=t.data.on;r&&r[n]&&rg(r[n],t,e)}function ag(e,t){let n=e.data.on,r=e.listener,i=e.elm,a=t&&t.data.on,o=t&&t.elm,s;if(n!==a){if(n&&r)if(a)for(s in n)a[s]||i.removeEventListener(s,r,!1);else for(s in n)i.removeEventListener(s,r,!1);if(a){let r=t.listener=e.listener||function e(t){ig(t,e.vnode)};if(r.vnode=t,n)for(s in a)n[s]||o.addEventListener(s,r,!1);else for(s in a)o.addEventListener(s,r,!1)}}}var og={create:ag,update:ag,destroy:ag};function sg(e,t){let n,r,i,a=t.elm,o=e.data.props,s=t.data.props;if((o||s)&&o!==s)for(n in o||={},s||={},s)r=s[n],i=o[n],i===r||n===`value`&&a[n]===r||(a[n]=r)}var cg={create:sg,update:sg},lg=typeof window<`u`&&window.requestAnimationFrame.bind(window)||setTimeout,ug=!1;function dg(e,t,n){(function(e){lg((function(){lg(e)}))})((function(){e[t]=n}))}function fg(e,t){let n,r,i=t.elm,a=e.data.style,o=t.data.style;if(!a&&!o||a===o)return;a||={},o||={};let s=`delayed`in a;for(r in a)o[r]||(r[0]===`-`&&r[1]===`-`?i.style.removeProperty(r):i.style[r]=``);for(r in o)if(n=o[r],r===`delayed`&&o.delayed)for(let e in o.delayed)n=o.delayed[e],s&&n===a.delayed[e]||dg(i.style,e,n);else r!==`remove`&&n!==a[r]&&(r[0]===`-`&&r[1]===`-`?i.style.setProperty(r,n):i.style[r]=n)}var pg={pre:function(){ug=!1},create:fg,update:fg,destroy:function(e){let t,n,r=e.elm,i=e.data.style;if(i&&(t=i.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){let n=e.data.style;if(!n||!n.remove)return void t();let r;ug||=(e.elm.offsetLeft,!0);let i=e.elm,a=0,o=n.remove,s=0,c=[];for(r in o)c.push(r),i.style[r]=o[r];let l=getComputedStyle(i)[`transition-property`].split(`, `);for(;a<l.length;++a)c.indexOf(l[a])!==-1&&s++;i.addEventListener(`transitionend`,(function(e){e.target===i&&--s,s===0&&t()}))}};function mg(e,t){for(let n of e)n!=null&&!1!==n&&n!==``&&(Array.isArray(n)?mg(n,t):typeof n==`string`||typeof n==`number`||typeof n==`boolean`?t.push(Rh(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function H(e,t,...n){let r=mg(n,[]);return typeof e==`function`?e(t,r):r.length===1&&!r[0].sel&&r[0].text?Yh(e,t,r[0].text):Yh(e,t,r)}H||={};var hg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,gg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_g=`\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,vg=`[\\ud800-\\udfff]`,yg=`[`+_g+`]`,bg=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,xg=`\\d+`,Sg=`[\\u2700-\\u27bf]`,Cg=`[a-z\\xdf-\\xf6\\xf8-\\xff]`,wg=`[^\\ud800-\\udfff`+_g+xg+`\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]`,Tg=`\\ud83c[\\udffb-\\udfff]`,Eg=`[^\\ud800-\\udfff]`,Dg=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Og=`[\\ud800-\\udbff][\\udc00-\\udfff]`,kg=`[A-Z\\xc0-\\xd6\\xd8-\\xde]`,Ag=`(?:`+Cg+`|`+wg+`)`,jg=`(?:`+kg+`|`+wg+`)`,Mg=`(?:`+bg+`|`+Tg+`)?`,Ng=`[\\ufe0e\\ufe0f]?`+Mg+(`(?:\\u200d(?:`+[Eg,Dg,Og].join(`|`)+`)[\\ufe0e\\ufe0f]?`+Mg+`)*`),Pg=`(?:`+[Sg,Dg,Og].join(`|`)+`)`+Ng,Fg=`(?:`+[Eg+bg+`?`,bg,Dg,Og,vg].join(`|`)+`)`,Ig=RegExp(`['’]`,`g`),Lg=RegExp(bg,`g`),Rg=RegExp(Tg+`(?=`+Tg+`)|`+Fg+Ng,`g`),zg=RegExp([kg+`?`+Cg+`+(?:['’](?:d|ll|m|re|s|t|ve))?(?=`+[yg,kg,`$`].join(`|`)+`)`,jg+`+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=`+[yg,kg+Ag,`$`].join(`|`)+`)`,kg+`?`+Ag+`+(?:['’](?:d|ll|m|re|s|t|ve))?`,kg+`+(?:['’](?:D|LL|M|RE|S|T|VE))?`,xg,Pg].join(`|`),`g`),Bg=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),Vg=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Hg=typeof Yr==`object`&&Yr&&Yr.Object===Object&&Yr,Ug=typeof self==`object`&&self&&self.Object===Object&&self,Wg=Hg||Ug||Function(`return this`)(),Gg,Kg=(Gg={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`ss`},function(e){return Gg?.[e]});function qg(e){return Bg.test(e)}function Jg(e){return qg(e)?function(e){return e.match(Rg)||[]}(e):function(e){return e.split(``)}(e)}var Yg=Object.prototype.toString,Xg=Wg.Symbol,Zg=Xg?Xg.prototype:void 0,Qg=Zg?Zg.toString:void 0;function $g(e){if(typeof e==`string`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&Yg.call(e)==`[object Symbol]`}(e))return Qg?Qg.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function e_(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}(e,t,n)}function t_(e){return e==null?``:$g(e)}for(var n_,r_=(n_=function(e,t,n){return t=t.toLowerCase(),e+(n?a_(t_(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}(function(e,t,n){return e=t_(e),(t=n?void 0:t)===void 0?function(e){return Vg.test(e)}(e)?function(e){return e.match(zg)||[]}(e):function(e){return e.match(hg)||[]}(e):e.match(t)||[]}(function(e){return(e=t_(e))&&e.replace(gg,Kg).replace(Lg,``)}(e).replace(Ig,``)),n_,``)}),i_,a_=(i_=`toUpperCase`,function(e){var t=qg(e=t_(e))?Jg(e):void 0,n=t?t[0]:e.charAt(0),r=t?e_(t,1).join(``):e.slice(1);return n[i_]()+r}),o_=r_,s_=typeof window<`u`&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),c_={alt:`altKey`,control:`ctrlKey`,meta:`metaKey`,shift:`shiftKey`},l_={add:`+`,break:`pause`,cmd:`meta`,command:`meta`,ctl:`control`,ctrl:`control`,del:`delete`,down:`arrowdown`,esc:`escape`,ins:`insert`,left:`arrowleft`,mod:s_?`meta`:`control`,opt:`alt`,option:`alt`,return:`enter`,right:`arrowright`,space:` `,spacebar:` `,up:`arrowup`,win:`meta`,windows:`meta`},u_={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},d_=1;d_<20;d_++)u_[`f`+d_]=111+d_;function f_(e,t,n){t&&!(`byKey`in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},i=(e=e.replace(`++`,`+add`)).split(`+`),a=i.length;for(var o in c_)r[c_[o]]=!1;var s=!0,c=!1,l=void 0;try{for(var u,d=i[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value,p=f.endsWith(`?`)&&f.length>1;p&&(f=f.slice(0,-1));var m=m_(f),h=c_[m];if(f.length>1&&!h&&!l_[f]&&!u_[m])throw TypeError(`Unknown modifier: "`+f+`"`);a!==1&&h||(n?r.key=m:r.which=p_(f)),h&&(r[h]=!p||null)}}catch(e){c=!0,l=e}finally{try{!s&&d.return&&d.return()}finally{if(c)throw l}}return r}(e,t)})),i=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],i=void 0;if(r!=null&&((i=n===`key`&&t.key!=null?t.key.toLowerCase():n===`which`?r===91&&t.which===93?91:t.which:t[n])!=null||!1!==r)&&i!==r)return!1}return!0}(t,e)}))};return n==null?i:i(n)}function p_(e){return e=m_(e),u_[e]||e.toUpperCase().charCodeAt(0)}function m_(e){return e=e.toLowerCase(),e=l_[e]||e}var h_=f_,g_=function(e,t){return f_(e,{byKey:!0},t)},__=/^\s+|\s+$/g,v_=/^[-+]0x[0-9a-f]+$/i,y_=/^0b[01]+$/i,b_=/^0o[0-7]+$/i,x_=parseInt,S_=typeof Yr==`object`&&Yr&&Yr.Object===Object&&Yr,C_=typeof self==`object`&&self&&self.Object===Object&&self,w_=S_||C_||Function(`return this`)(),T_=Object.prototype.toString,E_=Math.max,D_=Math.min,O_=function(){return w_.Date.now()};function k_(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function A_(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&T_.call(e)==`[object Symbol]`}(e))return NaN;if(k_(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=k_(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(__,``);var n=y_.test(e);return n||b_.test(e)?x_(e.slice(2),n?2:8):v_.test(e)?NaN:+e}var j_,M_=function(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n)}function m(e){return l=e,s=setTimeout(g,t),u?p(e):o}function h(e){var n=e-c;return c===void 0||n>=t||n<0||d&&e-l>=a}function g(){var e=O_();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?D_(n,a-(e-l)):n}(e))}function _(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function v(){var e=O_(),n=h(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return s=setTimeout(g,t),p(c)}return s===void 0&&(s=setTimeout(g,t)),o}return t=A_(t)||0,k_(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?E_(A_(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f),v.cancel=function(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0},v.flush=function(){return s===void 0?o:_(O_())},v},N_=Xr((function(e,t){var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Boolean]`,o=`[object Date]`,s=`[object Function]`,c=`[object GeneratorFunction]`,l=`[object Map]`,u=`[object Number]`,d=`[object Object]`,f=`[object Promise]`,p=`[object RegExp]`,m=`[object Set]`,h=`[object String]`,g=`[object Symbol]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,ee=/\w*$/,te=/^\[object .+?Constructor\]$/,ne=/^(?:0|[1-9]\d*)$/,k={};k[i]=k[`[object Array]`]=k[v]=k[y]=k[a]=k[o]=k[b]=k[x]=k[S]=k[C]=k[w]=k[l]=k[u]=k[d]=k[p]=k[m]=k[h]=k[g]=k[T]=k[E]=k[D]=k[O]=!0,k[`[object Error]`]=k[s]=k[_]=!1;var re=typeof Yr==`object`&&Yr&&Yr.Object===Object&&Yr,ie=typeof self==`object`&&self&&self.Object===Object&&self,ae=re||ie||Function(`return this`)(),oe=t&&!t.nodeType&&t,se=oe&&e&&!e.nodeType&&e,ce=se&&se.exports===oe;function le(e,t){return e.set(t[0],t[1]),e}function ue(e,t){return e.add(t),e}function de(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function fe(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function pe(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function me(e,t){return function(n){return e(t(n))}}function he(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var ge=Array.prototype,_e=Function.prototype,ve=Object.prototype,ye=ae[`__core-js_shared__`],be=function(){var e=/[^.]+$/.exec(ye&&ye.keys&&ye.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),xe=_e.toString,Se=ve.hasOwnProperty,Ce=ve.toString,we=RegExp(`^`+xe.call(Se).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Te=ce?ae.Buffer:void 0,Ee=ae.Symbol,De=ae.Uint8Array,Oe=me(Object.getPrototypeOf,Object),ke=Object.create,Ae=ve.propertyIsEnumerable,je=ge.splice,Me=Object.getOwnPropertySymbols,Ne=Te?Te.isBuffer:void 0,Pe=me(Object.keys,Object),Fe=rt(ae,`DataView`),A=rt(ae,`Map`),Ie=rt(ae,`Promise`),j=rt(ae,`Set`),Le=rt(ae,`WeakMap`),Re=rt(Object,`create`),ze=ct(Fe),Be=ct(A),Ve=ct(Ie),He=ct(j),Ue=ct(Le),We=Ee?Ee.prototype:void 0,Ge=We?We.valueOf:void 0;function Ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Je(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ye(e){this.__data__=new qe(e)}function M(e,t){var n=ut(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&dt(e)}(e)&&Se.call(e,`callee`)&&(!Ae.call(e,`callee`)||Ce.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,a=!!r;for(var o in e)!t&&!Se.call(e,o)||a&&(o==`length`||ot(o,r))||n.push(o);return n}function Xe(e,t,n){var r=e[t];Se.call(e,t)&&lt(r,n)&&(n!==void 0||t in e)||(e[t]=n)}function Ze(e,t){for(var n=e.length;n--;)if(lt(e[n][0],t))return n;return-1}function Qe(e,t,n,r,f,_,te){var ne;if(r&&(ne=_?r(e,f,_,te):r(e)),ne!==void 0)return ne;if(!mt(e))return e;var re=ut(e);if(re){if(ne=function(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]==`string`&&Se.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}(e,ne)}else{var ie=at(e),ae=ie==s||ie==c;if(ft(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(ie==d||ie==i||ae&&!_){if(fe(e))return _?e:{};if(ne=function(e){return typeof e.constructor!=`function`||st(e)?{}:(t=Oe(e),mt(t)?ke(t):{});var t}(ae?{}:e),!t)return function(e,t){return tt(e,it(e),t)}(e,function(e,t){return e&&tt(t,ht(t),e)}(ne,e))}else{if(!k[ie])return _?e:{};ne=function(e,t,n,r){var i=e.constructor;switch(t){case v:return et(e);case a:case o:return new i(+e);case y:return function(e,t){var n=t?et(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case b:case x:case S:case C:case w:case T:case E:case D:case O:return function(e,t){var n=t?et(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return de(t?n(pe(e),!0):pe(e),le,new e.constructor)}(e,r,n);case u:case h:return new i(e);case p:return function(e){var t=new e.constructor(e.source,ee.exec(e));return t.lastIndex=e.lastIndex,t}(e);case m:return function(e,t,n){return de(t?n(he(e),!0):he(e),ue,new e.constructor)}(e,r,n);case g:return function(e){return Ge?Object(Ge.call(e)):{}}(e)}}(e,ie,Qe,t)}}te||=new Ye;var oe=te.get(e);if(oe)return oe;if(te.set(e,ne),!re)var se=n?function(e){return function(e,t,n){var r=t(e);return ut(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,ht,it)}(e):ht(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(se||e,(function(i,a){se&&(i=e[a=i]),Xe(ne,a,Qe(i,t,n,r,a,e,te))})),ne}function $e(e){return!(!mt(e)||function(e){return!!be&&be in e}(e))&&(pt(e)||fe(e)?we:te).test(ct(e))}function et(e){var t=new e.constructor(e.byteLength);return new De(t).set(new De(e)),t}function tt(e,t,n,r){n||={};for(var i=-1,a=t.length;++i<a;){var o=t[i],s=r?r(n[o],e[o],o,n,e):void 0;Xe(n,o,s===void 0?e[o]:s)}return n}function nt(e,t){var n,r,i=e.__data__;return((r=typeof(n=t))==`string`||r==`number`||r==`symbol`||r==`boolean`?n!==`__proto__`:n===null)?i[typeof t==`string`?`string`:`hash`]:i.map}function rt(e,t){var n=function(e,t){return e?.[t]}(e,t);return $e(n)?n:void 0}Ke.prototype.clear=function(){this.__data__=Re?Re(null):{}},Ke.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ke.prototype.get=function(e){var t=this.__data__;if(Re){var r=t[e];return r===n?void 0:r}return Se.call(t,e)?t[e]:void 0},Ke.prototype.has=function(e){var t=this.__data__;return Re?t[e]!==void 0:Se.call(t,e)},Ke.prototype.set=function(e,t){return this.__data__[e]=Re&&t===void 0?n:t,this},qe.prototype.clear=function(){this.__data__=[]},qe.prototype.delete=function(e){var t=this.__data__,n=Ze(t,e);return!(n<0)&&(n==t.length-1?t.pop():je.call(t,n,1),!0)},qe.prototype.get=function(e){var t=this.__data__,n=Ze(t,e);return n<0?void 0:t[n][1]},qe.prototype.has=function(e){return Ze(this.__data__,e)>-1},qe.prototype.set=function(e,t){var n=this.__data__,r=Ze(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Je.prototype.clear=function(){this.__data__={hash:new Ke,map:new(A||qe),string:new Ke}},Je.prototype.delete=function(e){return nt(this,e).delete(e)},Je.prototype.get=function(e){return nt(this,e).get(e)},Je.prototype.has=function(e){return nt(this,e).has(e)},Je.prototype.set=function(e,t){return nt(this,e).set(e,t),this},Ye.prototype.clear=function(){this.__data__=new qe},Ye.prototype.delete=function(e){return this.__data__.delete(e)},Ye.prototype.get=function(e){return this.__data__.get(e)},Ye.prototype.has=function(e){return this.__data__.has(e)},Ye.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qe){var r=n.__data__;if(!A||r.length<199)return r.push([e,t]),this;n=this.__data__=new Je(r)}return n.set(e,t),this};var it=Me?me(Me,Object):function(){return[]},at=function(e){return Ce.call(e)};function ot(e,t){return!!(t??=r)&&(typeof e==`number`||ne.test(e))&&e>-1&&e%1==0&&e<t}function st(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||ve)}function ct(e){if(e!=null){try{return xe.call(e)}catch{}try{return e+``}catch{}}return``}function lt(e,t){return e===t||e!=e&&t!=t}(Fe&&at(new Fe(new ArrayBuffer(1)))!=y||A&&at(new A)!=l||Ie&&at(Ie.resolve())!=f||j&&at(new j)!=m||Le&&at(new Le)!=_)&&(at=function(e){var t=Ce.call(e),n=t==d?e.constructor:void 0,r=n?ct(n):void 0;if(r)switch(r){case ze:return y;case Be:return l;case Ve:return f;case He:return m;case Ue:return _}return t});var ut=Array.isArray;function dt(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}(e.length)&&!pt(e)}var ft=Ne||function(){return!1};function pt(e){var t=mt(e)?Ce.call(e):``;return t==s||t==c}function mt(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function ht(e){return dt(e)?M(e):function(e){if(!st(e))return Pe(e);var t=[];for(var n in Object(e))Se.call(e,n)&&n!=`constructor`&&t.push(n);return t}(e)}e.exports=function(e){return Qe(e,!0,!0)}}));function P_(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var F_=0;function I_(e){return`__private_`+ F_+++`_`+e}function L_(e,t,n){let r=[];return e.forEach((e=>typeof e==`string`?t[Symbol.split](e).forEach(((e,t,i)=>{e!==``&&r.push(e),t<i.length-1&&r.push(n)})):r.push(e))),r}function R_(e,t){let n=/\$/g,r=[e];if(t==null)return r;for(let e of Object.keys(t))if(e!==`_`){let i=t[e];typeof i==`string`&&(i=n[Symbol.replace](i,`$$$$`)),r=L_(r,RegExp(`%\\{${e}\\}`,`g`),i)}return r}var z_=(j_=I_(`apply`),class{constructor(e){Object.defineProperty(this,j_,{value:B_}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(e)?e.forEach(P_(this,j_)[j_],this):P_(this,j_)[j_](e)}translate(e,t){return this.translateArray(e,t).join(``)}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw Error(`missing string: ${e}`);let n=this.locale.strings[e];if(typeof n==`object`){if(t&&t.smart_count!==void 0)return R_(n[this.locale.pluralize(t.smart_count)],t);throw Error(`Attempted to use a string with plural forms, but no value was given for %{smart_count}`)}return R_(n,t)}});function B_(e){if(e==null||!e.strings)return;let t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var V_=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,i,a,o,s){var c=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(`:`),i=r===-1?[e]:[e.substring(0,r),e.substring(r+1)],a=Object.keys(t),o=0,s=a.length;o<s;o++){var c=a[o];if(c===`*`&&(n=n.concat(t[c])),i.length===2&&i[0]===c){n=n.concat(t[c]);break}}return n}(e);c.length&&function(e,t,n){for(var r=0,i=t.length;r<i&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,c,[n,r,i,a,o,s])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],i=0,a=r?r.length:0;i<a;i++)r[i]!==t&&n.push(r[i]);n.length?this._fns[e]=n:delete this._fns[e]},e},{urlAlphabet:H_}={urlAlphabet:`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`},U_=e=>crypto.getRandomValues(new Uint8Array(e)),W_=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length);return()=>{let a=``;for(;;){let o=n(i),s=i;for(;s--;)if(a+=e[o[s]&r]||``,a.length===t)return a}}},G_={nanoid:(e=21)=>{let t=``,n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?`_`:`-`}return t},customAlphabet:(e,t)=>W_(e,t,U_),customRandom:W_,urlAlphabet:H_,random:U_},K_=function(e){if(typeof e!=`number`||isNaN(e))throw TypeError(`Expected a number, got `+typeof e);var t=e<0,n=[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`];if(t&&(e=-e),e<1)return(t?`-`:``)+e+` B`;var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/1024**r);var i=n[r];return e>=10||e%1==0?(t?`-`:``)+e.toFixed(0)+` `+i:(t?`-`:``)+e.toFixed(1)+` `+i};function q_(e,t){this.text=e||=``,this.hasWild=~e.indexOf(`*`),this.separator=t,this.parts=e.split(t)}q_.prototype.match=function(e){var t,n,r=!0,i=this.parts,a=i.length;if(typeof e==`string`||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||``).split(this.separator),t=0;r&&t<a;t++)i[t]!==`*`&&(r=t<n.length&&i[t]===n[t]);r&&=n}else r=!1;else if(typeof e.splice==`function`)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if(typeof e==`object`)for(var o in r={},e)this.match(o)&&(r[o]=e[o]);return r};var J_=/[\/\+\.]/,Y_=function(e,t){function n(t){var n=function(e,t,n){var r=new q_(e,n||/[\/\.]/);return t===void 0?r:r.match(t)}(t,e,J_);return n&&n.length>=2}return t?n(t.split(`;`)[0]):n},X_=0;function Z_(e){return`__private_`+ X_+++`_`+e}var Q_=Z_(`publish`),$_=class{constructor(){Object.defineProperty(this,Q_,{value:ev}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){let t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}(this,Q_)[Q_](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}};function ev(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}$_.VERSION=`2.0.3`;var tv=function(e){let t=e.lastIndexOf(`.`);return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},nv={md:`text/markdown`,markdown:`text/markdown`,mp4:`video/mp4`,mp3:`audio/mp3`,svg:`image/svg+xml`,jpg:`image/jpeg`,png:`image/png`,gif:`image/gif`,heic:`image/heic`,heif:`image/heif`,yaml:`text/yaml`,yml:`text/yaml`,csv:`text/csv`,tsv:`text/tab-separated-values`,tab:`text/tab-separated-values`,avi:`video/x-msvideo`,mks:`video/x-matroska`,mkv:`video/x-matroska`,mov:`video/quicktime`,doc:`application/msword`,docm:`application/vnd.ms-word.document.macroenabled.12`,docx:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,dot:`application/msword`,dotm:`application/vnd.ms-word.template.macroenabled.12`,dotx:`application/vnd.openxmlformats-officedocument.wordprocessingml.template`,xla:`application/vnd.ms-excel`,xlam:`application/vnd.ms-excel.addin.macroenabled.12`,xlc:`application/vnd.ms-excel`,xlf:`application/x-xliff+xml`,xlm:`application/vnd.ms-excel`,xls:`application/vnd.ms-excel`,xlsb:`application/vnd.ms-excel.sheet.binary.macroenabled.12`,xlsm:`application/vnd.ms-excel.sheet.macroenabled.12`,xlsx:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,xlt:`application/vnd.ms-excel`,xltm:`application/vnd.ms-excel.template.macroenabled.12`,xltx:`application/vnd.openxmlformats-officedocument.spreadsheetml.template`,xlw:`application/vnd.ms-excel`,txt:`text/plain`,text:`text/plain`,conf:`text/plain`,log:`text/plain`,pdf:`application/pdf`,zip:`application/zip`,"7z":`application/x-7z-compressed`,rar:`application/x-rar-compressed`,tar:`application/x-tar`,gz:`application/gzip`,dmg:`application/x-apple-diskimage`};function rv(e){let t=``;return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,`/`)))+t}var iv=function(e){if(e??=typeof navigator<`u`?navigator.userAgent:null,!e)return!0;let t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;let[n,r]=t[1].split(`.`);return n=parseInt(n,10),r=parseInt(r,10),n<15||n===15&&r<15063||n>18||n===18&&r>=18218};function av(e){return e<10?`0${e}`:e.toString()}var ov=function(){let e=new Date;return`${av(e.getHours())}:${av(e.getMinutes())}:${av(e.getSeconds())}`},sv={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${ov()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${ov()}]`,...t)},warn:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${ov()}]`,...t)},error:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${ov()}]`,...t)}}},cv={strings:{addBulkFilesFailed:{0:`Failed to add %{smart_count} file due to an internal error`,1:`Failed to add %{smart_count} files due to internal errors`},youCanOnlyUploadX:{0:`You can only upload %{smart_count} file`,1:`You can only upload %{smart_count} files`},youHaveToAtLeastSelectX:{0:`You have to select at least %{smart_count} file`,1:`You have to select at least %{smart_count} files`},exceedsSize:`%{file} exceeds maximum allowed size of %{size}`,missingRequiredMetaField:`Missing required meta fields`,missingRequiredMetaFieldOnFile:`Missing required meta fields in %{fileName}`,inferiorSize:`This file is smaller than the allowed size of %{size}`,youCanOnlyUploadFileTypes:`You can only upload: %{types}`,noMoreFilesAllowed:`Cannot add more files`,noDuplicates:`Cannot add the duplicate file '%{fileName}', it already exists`,companionError:`Connection with Companion failed`,authAborted:`Authentication aborted`,companionUnauthorizeHint:`To unauthorize to your %{provider} account, please go to %{url}`,failedToUpload:`Failed to upload %{file}`,noInternetConnection:`No Internet connection`,connectedToInternet:`Connected to the Internet`,noFilesFound:`You have no files or folders here`,selectX:{0:`Select %{smart_count}`,1:`Select %{smart_count}`},allFilesFromFolderNamed:`All files from folder %{name}`,openFolderNamed:`Open folder %{name}`,cancel:`Cancel`,logOut:`Log out`,filter:`Filter`,resetFilter:`Reset filter`,loading:`Loading...`,authenticateWithTitle:`Please authenticate with %{pluginName} to select files`,authenticateWith:`Connect to %{pluginName}`,signInWithGoogle:`Sign in with Google`,searchImages:`Search for images`,enterTextToSearch:`Enter text to search for images`,backToSearch:`Back to Search`,emptyFolderAdded:`No files were added from empty folder`,folderAlreadyAdded:`The folder "%{folder}" was already added`,folderAdded:{0:`Added %{smart_count} file from %{folder}`,1:`Added %{smart_count} files from %{folder}`}}},lv=G_,uv,dv;function U(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var fv=0;function pv(e){return`__private_`+ fv+++`_`+e}var{nanoid:mv}=lv,{justErrorsLogger:hv,debugLogger:gv}=sv,_v=class extends Error{constructor(){super(...arguments),this.isRestriction=!0}};typeof AggregateError>`u`&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});var vv=class extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}},yv=pv(`plugins`),bv=pv(`storeUnsubscribe`),xv=pv(`emitter`),Sv=pv(`preProcessors`),Cv=pv(`uploaders`),wv=pv(`postProcessors`),Tv=pv(`checkRestrictions`),Ev=pv(`checkMinNumberOfFiles`),Dv=pv(`checkRequiredMetaFieldsOnFile`),Ov=pv(`checkRequiredMetaFields`),kv=pv(`showOrLogErrorAndThrow`),Av=pv(`assertNewUploadAllowed`),jv=pv(`checkAndCreateFileStateObject`),Mv=pv(`startIfAutoProceed`),Nv=pv(`addListeners`),Pv=pv(`updateOnlineStatus`),Fv=pv(`createUpload`),Iv=pv(`getUpload`),Lv=pv(`removeUpload`),Rv=pv(`runUpload`);uv=Symbol.for(`uppy test: getPlugins`),dv=Symbol.for(`uppy test: createUpload`);var zv=class{constructor(e){Object.defineProperty(this,Rv,{value:Eae}),Object.defineProperty(this,Lv,{value:Tae}),Object.defineProperty(this,Iv,{value:wae}),Object.defineProperty(this,Fv,{value:Cae}),Object.defineProperty(this,Nv,{value:Sae}),Object.defineProperty(this,Mv,{value:xae}),Object.defineProperty(this,jv,{value:bae}),Object.defineProperty(this,Av,{value:yae}),Object.defineProperty(this,kv,{value:Wv}),Object.defineProperty(this,Ov,{value:Uv}),Object.defineProperty(this,Dv,{value:Hv}),Object.defineProperty(this,Ev,{value:Vv}),Object.defineProperty(this,Tv,{value:Bv}),Object.defineProperty(this,yv,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,bv,{writable:!0,value:void 0}),Object.defineProperty(this,xv,{writable:!0,value:V_()}),Object.defineProperty(this,Sv,{writable:!0,value:new Set}),Object.defineProperty(this,Cv,{writable:!0,value:new Set}),Object.defineProperty(this,wv,{writable:!0,value:new Set}),Object.defineProperty(this,Pv,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=cv;let t={id:`uppy`,autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new $_,logger:hv,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.",`warning`):e&&e.debug&&(this.opts.logger=gv),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Ih(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:iv(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),U(this,bv)[bv]=this.store.subscribe(((e,t,n)=>{this.emit(`state-update`,e,t,n),this.updateAll(t)})),this.opts.debug&&typeof window<`u`&&(window[this.opts.id]=this),U(this,Nv)[Nv]()}emit(e){var t=[...arguments].slice(1);U(this,xv)[xv].emit(e,...t)}on(e,t){return U(this,xv)[xv].on(e,t),this}once(e,t){return U(this,xv)[xv].once(e,t),this}off(e,t){return U(this,xv)[xv].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){let e=new z_([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){let e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{let i={...t[r]};i.progress={...i.progress,...e},n[r]=i})),this.setState({files:n,totalProgress:0}),this.emit(`reset-progress`)}addPreProcessor(e){U(this,Sv)[Sv].add(e)}removePreProcessor(e){return U(this,Sv)[Sv].delete(e)}addPostProcessor(e){U(this,wv)[wv].add(e)}removePostProcessor(e){return U(this,wv)[wv].delete(e)}addUploader(e){U(this,Cv)[Cv].add(e)}removeUploader(e){return U(this,Cv)[Cv].delete(e)}setMeta(e){let t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log(`Adding metadata:`),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){let n={...this.getState().files};if(!n[e])return void this.log(`Was trying to set metadata for a file that has been removed: `,e);let r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){let{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){let{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),i=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),a=r.filter((e=>!e.progress.uploadStarted)),o=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),s=r.filter((e=>e.progress.uploadStarted)),c=r.filter((e=>e.isPaused)),l=r.filter((e=>e.progress.uploadComplete)),u=r.filter((e=>e.error)),d=i.filter((e=>!e.isPaused)),f=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:a,startedFiles:o,uploadStartedFiles:s,pausedFiles:c,completeFiles:l,erroredFiles:u,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:f,isUploadStarted:s.length>0,isAllComplete:t===100&&l.length===r.length&&f.length===0,isAllErrored:!!n&&u.length===r.length,isAllPaused:i.length!==0&&c.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return U(this,Tv)[Tv](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){let{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){U(this,Av)[Av](e);let{files:t}=this.getState(),n=U(this,jv)[jv](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit(`file-added`,n),this.emit(`files-added`,[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),U(this,Mv)[Mv](),n.id}addFiles(e){U(this,Av)[Av]();let t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=U(this,jv)[jv](t,e[i]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit(`file-added`,e)})),this.emit(`files-added`,n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&U(this,Mv)[Mv](),r.length>0){let e=`Multiple errors occurred while adding files:
15
+ `;if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n(`addBulkFilesFailed`,{smart_count:r.length}),details:e},`error`,this.opts.infoTimeout),typeof AggregateError==`function`)throw AggregateError(r,e);{let t=Error(e);throw t.errors=r,t}}}removeFiles(e,t){let{files:n,currentUploads:r}=this.getState(),i={...n},a={...r},o=Object.create(null);function s(e){return o[e]===void 0}e.forEach((e=>{n[e]&&(o[e]=n[e],delete i[e])})),Object.keys(a).forEach((e=>{let t=r[e].fileIDs.filter(s);t.length===0?delete a[e]:a[e]={...r[e],fileIDs:t}}));let c={currentUploads:a,files:i};Object.keys(i).length===0&&(c.allowNewUpload=!0,c.error=null,c.recoveredState=null),this.setState(c),this.calculateTotalProgress();let l=Object.keys(o);l.forEach((e=>{this.emit(`file-removed`,o[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(`, `)}`)}removeFile(e,t){t===void 0&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;let t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit(`upload-pause`,e,t),t}pauseAll(){let e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{e[t]={...e[t],isPaused:!0}})),this.setState({files:e}),this.emit(`pause-all`)}resumeAll(){let e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{e[t]={...e[t],isPaused:!1,error:null}})),this.setState({files:e}),this.emit(`resume-all`)}retryAll(){let e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{e[t]={...e[t],isPaused:!1,error:null}})),this.setState({files:e,error:null}),this.emit(`retry-all`,t),t.length===0)return Promise.resolve({successful:[],failed:[]});let n=U(this,Fv)[Fv](t,{forceAllowNewUpload:!0});return U(this,Rv)[Rv](n)}cancelAll(){this.emit(`cancel-all`);let{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,`cancel-all`),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit(`upload-retry`,e);let t=U(this,Fv)[Fv]([e],{forceAllowNewUpload:!0});return U(this,Rv)[Rv](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);let n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){let e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(e.length===0)return this.emit(`progress`,0),void this.setState({totalProgress:0});let t=e.filter((e=>e.progress.bytesTotal!=null)),n=e.filter((e=>e.progress.bytesTotal==null));if(t.length===0){let t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),i=Math.round(r/t*100);this.setState({totalProgress:i});return}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0),i=r/t.length;r+=i*n.length;let a=0;t.forEach((e=>{a+=e.progress.bytesUploaded})),n.forEach((e=>{a+=i*(e.progress.percentage||0)/100}));let o=r===0?0:Math.round(a/r*100);o>100&&(o=100),this.setState({totalProgress:o}),this.emit(`progress`,o)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit(`is-online`),this.wasOffline&&=(this.emit(`back-online`),this.info(this.i18n(`connectedToInternet`),`success`,3e3),!1)):(this.emit(`is-offline`),this.info(this.i18n(`noInternetConnection`),`error`,0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if(typeof e!=`function`)throw TypeError(`Expected a plugin class, but got ${e===null?`null`:typeof e}. Please verify that the plugin was imported and spelled correctly.`);let n=new e(this,t),r=n.id;if(!r)throw Error(`Your plugin must have an id`);if(!n.type)throw Error(`Your plugin must have a type`);let i=this.getPlugin(r);if(i){let e=`Already found a plugin named '${i.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in U(this,yv)[yv]?U(this,yv)[yv][n.type].push(n):U(this,yv)[yv][n.type]=[n],n.install(),this}getPlugin(e){for(let t of Object.values(U(this,yv)[yv])){let n=t.find((t=>t.id===e));if(n!=null)return n}}[uv](e){return U(this,yv)[yv][e]}iteratePlugins(e){Object.values(U(this,yv)[yv]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit(`plugin-remove`,e),e.uninstall&&e.uninstall();let t=U(this,yv)[yv][e.type],n=t.findIndex((t=>t.id===e.id));n!==-1&&t.splice(n,1);let r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),U(this,bv)[bv](),this.iteratePlugins((e=>{this.removePlugin(e)})),typeof window<`u`&&window.removeEventListener&&(window.removeEventListener(`online`,U(this,Pv)[Pv]),window.removeEventListener(`offline`,U(this,Pv)[Pv]))}hideInfo(){let{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit(`info-hidden`)}info(e,t,n){t===void 0&&(t=`info`),n===void 0&&(n=3e3);let r=typeof e==`object`;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit(`info-visible`)}log(e,t){let{logger:n}=this.opts;switch(t){case`error`:n.error(e);break;case`warning`:n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?U(this,Rv)[Rv](e):(U(this,Lv)[Lv](e),Promise.reject(Error(`Nonexistent upload`)))}[dv](){return U(this,Fv)[Fv](...arguments)}addResultData(e,t){if(!U(this,Iv)[Iv](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);let{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;(e=U(this,yv)[yv].uploader)!=null&&e.length||this.log(`No uploader type plugins are used`,`warning`);let{files:t}=this.getState(),n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(Error(`Not starting the upload because onBeforeUpload returned false`)):(n&&typeof n==`object`&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{U(this,Ev)[Ev](t),U(this,Ov)[Ov](t)})).catch((e=>{U(this,kv)[kv](e)})).then((()=>{let{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{let t=this.getFile(e);t.progress.uploadStarted||n.indexOf(e)!==-1||r.push(t.id)}));let i=U(this,Fv)[Fv](r);return U(this,Rv)[Rv](i)})).catch((e=>{U(this,kv)[kv](e,{showInformer:!1})})))}};function Bv(e,t){t===void 0&&(t=this.getFiles());let{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:a,allowedFileTypes:o}=this.opts.restrictions;if(a&&t.length+1>a)throw new _v(`${this.i18n(`youCanOnlyUploadX`,{smart_count:a})}`);if(o&&!o.some((t=>t.indexOf(`/`)>-1?!!e.type&&Y_(e.type.replace(/;.*?$/,``),t):!(t[0]!==`.`||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){let e=o.join(`, `);throw new _v(this.i18n(`youCanOnlyUploadFileTypes`,{types:e}))}if(i&&e.size!=null){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>i)throw new _v(this.i18n(`exceedsSize`,{size:K_(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new _v(this.i18n(`exceedsSize`,{size:K_(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new _v(this.i18n(`inferiorSize`,{size:K_(r)}))}function Vv(e){let{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new _v(`${this.i18n(`youHaveToAtLeastSelectX`,{smart_count:t})}`)}function Hv(e){let{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],i=[];for(let a=0;a<t.length;a++)if(!n.call(e.meta,t[a])||e.meta[t[a]]===``){let n=new _v(`${this.i18n(`missingRequiredMetaFieldOnFile`,{fileName:e.name})}`);r.push(n),i.push(t[a]),U(this,kv)[kv](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function Uv(e){let t=Object.keys(e).flatMap((e=>{let t=this.getFile(e);return U(this,Dv)[Dv](t)}));if(t.length)throw new vv(t,`${this.i18n(`missingRequiredMetaField`)}`)}function Wv(e,t){let{showInformer:n=!0,file:r=null,throwErr:i=!0}=t===void 0?{}:t,a=typeof e==`object`?e.message:e,o=typeof e==`object`&&e.details?e.details:``,s=a;if(o&&(s+=` ${o}`),e.isRestriction?(this.log(s),this.emit(`restriction-failed`,r,e)):this.log(s,`error`),n&&this.info({message:a,details:o},`error`,this.opts.infoTimeout),i)throw typeof e==`object`?e:Error(e)}function yae(e){let{allowNewUpload:t}=this.getState();!1===t&&U(this,kv)[kv](new _v(this.i18n(`noMoreFilesAllowed`)),{file:e})}function bae(e,t){let n=function(e){if(e.type)return e.type;let t=e.name?tv(e.name).extension?.toLowerCase():null;return t&&t in nv?nv[t]:`application/octet-stream`}(t),r=function(e,t){return t.name?t.name:e.split(`/`)[0]===`image`?`${e.split(`/`)[0]}.${e.split(`/`)[1]}`:`noname`}(n,t),i=tv(r).extension,a=!!t.isRemote,o=function(e){let t=`uppy`;return typeof e.name==`string`&&(t+=`-${rv(e.name.toLowerCase())}`),e.type!==void 0&&(t+=`-${e.type}`),e.meta&&typeof e.meta.relativePath==`string`&&(t+=`-${rv(e.meta.relativePath.toLowerCase())}`),e.data.size!==void 0&&(t+=`-${e.data.size}`),e.data.lastModified!==void 0&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});if(this.checkIfFileAlreadyExists(o)){let e=new _v(this.i18n(`noDuplicates`,{fileName:r}));U(this,kv)[kv](e,{file:t})}let s=t.meta||{};s.name=r,s.type=n;let c=Number.isFinite(t.data.size)?t.data.size:null,l={source:t.source||``,id:o,name:r,extension:i||``,meta:{...this.getState().meta,...s},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:c,uploadComplete:!1,uploadStarted:null},size:c,isRemote:a,remote:t.remote||``,preview:t.preview},u=this.opts.onBeforeFileAdded(l,e);!1===u?U(this,kv)[kv](new _v(`Cannot add the file because onBeforeFileAdded returned false.`),{showInformer:!1,fileDescriptor:t}):typeof u==`object`&&u&&(l=u);try{let t=Object.keys(e).map((t=>e[t]));U(this,Tv)[Tv](l,t)}catch(e){U(this,kv)[kv](e,{file:l})}return l}function xae(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function Sae(){let e=(e,t,n)=>{let r=e.message||`Unknown error`;e.details&&(r+=` ${e.details}`),this.setState({error:r}),t!=null&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on(`error`,e),this.on(`upload-error`,((t,n,r)=>{if(e(n,t,r),typeof n==`object`&&n.message){let e=Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n(`failedToUpload`,{file:t.name}),U(this,kv)[kv](e,{throwErr:!1})}else U(this,kv)[kv](n,{throwErr:!1})})),this.on(`upload`,(()=>{this.setState({error:null})})),this.on(`upload-started`,(e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on(`upload-progress`,this.calculateProgress),this.on(`upload-success`,((e,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);let n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:U(this,wv)[wv].size>0?{mode:`indeterminate`}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),e.size??this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on(`preprocess-progress`,((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on(`preprocess-complete`,(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on(`postprocess-progress`,((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on(`postprocess-complete`,(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on(`restored`,(()=>{this.calculateTotalProgress()})),this.on(`dashboard:file-edit-complete`,(e=>{e&&U(this,Dv)[Dv](e)})),typeof window<`u`&&window.addEventListener&&(window.addEventListener(`online`,U(this,Pv)[Pv]),window.addEventListener(`offline`,U(this,Pv)[Pv]),setTimeout(U(this,Pv)[Pv],3e3))}function Cae(e,t){t===void 0&&(t={});let{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:i}=this.getState();if(!r&&!n)throw Error(`Cannot create a new upload: already uploading.`);let a=mv();return this.emit(`upload`,{id:a,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...i,[a]:{fileIDs:e,step:0,result:{}}}}),a}function wae(e){let{currentUploads:t}=this.getState();return t[e]}function Tae(e){let t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Eae(e){let{currentUploads:t}=this.getState(),n=t[e],r=n.step||0,i=[...U(this,Sv)[Sv],...U(this,Cv)[Cv],...U(this,wv)[wv]];try{for(let a=r;a<i.length&&n;a++){let r=i[a],o={...n,step:a};this.setState({currentUploads:{...t,[e]:o}}),await r(o.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit(`error`,t),U(this,Lv)[Lv](e),t}if(n){n.fileIDs.forEach((e=>{let t=this.getFile(e);t&&t.progress.postprocess&&this.emit(`postprocess-complete`,t)}));let r=n.fileIDs.map((e=>this.getFile(e))),i=r.filter((e=>!e.error)),a=r.filter((e=>e.error));await this.addResultData(e,{successful:i,failed:a,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let a;return n&&(a=n.result,this.emit(`complete`,a),U(this,Lv)[Lv](e)),a??this.log(`Not setting result for an upload that has been removed: ${e}`),a}zv.VERSION=`2.1.3`;var Gv=zv,Dae=Xr((function(e,t){var n,r,i,a,o,s,c,l,u={},d=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function m(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,r){var i,a,o,s={};for(o in t)o==`key`?i=t[o]:o==`ref`?a=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),typeof e==`function`&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return g(e,s,i,a,null)}function g(e,t,n,a,o){var s={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++i};return o==null&&r.vnode!=null&&r.vnode(s),s}function _(e){return e.children}function v(e,t){this.props=e,this.context=t}function y(e,t){if(t==null)return e.__?y(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?y(e):null}function b(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return b(e)}}function x(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!S.__r++||c!==r.debounceRendering)&&((c=r.debounceRendering)||s)(S)}function S(){for(var e;S.__r=o.length;)e=o.sort((function(e,t){return e.__v.__b-t.__v.__b})),o=[],e.some((function(e){var t,n,r,i,a,o;e.__d&&(a=(i=(t=e).__v).__e,(o=t.__P)&&(n=[],(r=p({},i)).__v=i.__v+1,te(o,i,r,t.__n,o.ownerSVGElement!==void 0,i.__h==null?null:[a],n,a??y(i),i.__h),ne(n,i),i.__e!=a&&b(i)))}))}function C(e,t,n,r,i,a,o,s,c,l){var f,p,m,h,v,b,x,S=r&&r.__k||d,C=S.length;for(n.__k=[],f=0;f<t.length;f++)if((h=n.__k[f]=(h=t[f])==null||typeof h==`boolean`?null:typeof h==`string`||typeof h==`number`||typeof h==`bigint`?g(null,h,null,null,h):Array.isArray(h)?g(_,{children:h},null,null,null):h.__b>0?g(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(m=S[f])===null||m&&h.key==m.key&&h.type===m.type)S[f]=void 0;else for(p=0;p<C;p++){if((m=S[p])&&h.key==m.key&&h.type===m.type){S[p]=void 0;break}m=null}te(e,h,m||=u,i,a,o,s,c,l),v=h.__e,(p=h.ref)&&m.ref!=p&&(x||=[],m.ref&&x.push(m.ref,null,h),x.push(p,h.__c||v,h)),v==null?c&&m.__e==c&&c.parentNode!=e&&(c=y(m)):(b??=v,typeof h.type==`function`&&h.__k===m.__k?h.__d=c=w(h,c,e):c=T(e,h,m,S,v,c),typeof n.type==`function`&&(n.__d=c))}for(n.__e=b,f=C;f--;)S[f]!=null&&(typeof n.type==`function`&&S[f].__e!=null&&S[f].__e==n.__d&&(n.__d=y(r,f+1)),ie(S[f],S[f]));if(x)for(f=0;f<x.length;f++)re(x[f],x[++f],x[++f])}function w(e,t,n){for(var r,i=e.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=e,t=typeof r.type==`function`?w(r,t,n):T(n,r,r,i,r.__e,t));return t}function T(e,t,n,r,i,a){var o,s,c;if(t.__d!==void 0)o=t.__d,t.__d=void 0;else if(n==null||i!=a||i.parentNode==null)e:if(a==null||a.parentNode!==e)e.appendChild(i),o=null;else{for(s=a,c=0;(s=s.nextSibling)&&c<r.length;c+=2)if(s==i)break e;e.insertBefore(i,a),o=a}return o===void 0?i.nextSibling:o}function E(e,t,n){t[0]===`-`?e.setProperty(t,n):e[t]=n==null?``:typeof n!=`number`||f.test(t)?n:n+`px`}function D(e,t,n,r,i){var a;e:if(t===`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||E(e.style,t,``);if(n)for(t in n)r&&n[t]===r[t]||E(e.style,t,n[t])}else if(t[0]===`o`&&t[1]===`n`)a=t!==(t=t.replace(/Capture$/,``)),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r||e.addEventListener(t,a?ee:O,a):e.removeEventListener(t,a?ee:O,a);else if(t!==`dangerouslySetInnerHTML`){if(i)t=t.replace(/xlink[H:h]/,`h`).replace(/sName$/,`s`);else if(t!==`href`&&t!==`list`&&t!==`form`&&t!==`tabIndex`&&t!==`download`&&t in e)try{e[t]=n??``;break e}catch{}typeof n==`function`||(n!=null&&(!1!==n||t[0]===`a`&&t[1]===`r`)?e.setAttribute(t,n):e.removeAttribute(t))}}function O(e){this.l[e.type+!1](r.event?r.event(e):e)}function ee(e){this.l[e.type+!0](r.event?r.event(e):e)}function te(e,t,n,i,a,o,s,c,l){var u,d,f,m,h,g,y,b,x,S,w,T=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,c=t.__e=n.__e,t.__h=null,o=[c]),(u=r.__b)&&u(t);try{e:if(typeof T==`function`){if(b=t.props,x=(u=T.contextType)&&i[u.__c],S=u?x?x.props.value:u.__:i,n.__c?y=(d=t.__c=n.__c).__=d.__E:(`prototype`in T&&T.prototype.render?t.__c=d=new T(b,S):(t.__c=d=new v(b,S),d.constructor=T,d.render=ae),x&&x.sub(d),d.props=b,d.state||={},d.context=S,d.__n=i,f=d.__d=!0,d.__h=[]),d.__s??=d.state,T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=p({},d.__s)),p(d.__s,T.getDerivedStateFromProps(b,d.__s))),m=d.props,h=d.state,f)T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(T.getDerivedStateFromProps==null&&b!==m&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(b,S),!d.__e&&d.shouldComponentUpdate!=null&&!1===d.shouldComponentUpdate(b,d.__s,S)||t.__v===n.__v){d.props=b,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(b,d.__s,S),d.componentDidUpdate!=null&&d.__h.push((function(){d.componentDidUpdate(m,h,g)}))}d.context=S,d.props=b,d.state=d.__s,(u=r.__r)&&u(t),d.__d=!1,d.__v=t,d.__P=e,u=d.render(d.props,d.state,d.context),d.state=d.__s,d.getChildContext!=null&&(i=p(p({},i),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(g=d.getSnapshotBeforeUpdate(m,h)),w=u!=null&&u.type===_&&u.key==null?u.props.children:u,C(e,Array.isArray(w)?w:[w],t,n,i,a,o,s,c,l),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),y&&(d.__E=d.__=null),d.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=k(n.__e,t,n,i,a,o,s,l);(u=r.diffed)&&u(t)}catch(e){t.__v=null,(l||o!=null)&&(t.__e=c,t.__h=!!l,o[o.indexOf(c)]=null),r.__e(e,t,n)}}function ne(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function k(e,t,r,i,a,o,s,c){var l,d,f,p=r.props,h=t.props,g=t.type,_=0;if(g===`svg`&&(a=!0),o!=null){for(;_<o.length;_++)if((l=o[_])&&`setAttribute`in l==!!g&&(g?l.localName===g:l.nodeType===3)){e=l,o[_]=null;break}}if(e==null){if(g===null)return document.createTextNode(h);e=a?document.createElementNS(`http://www.w3.org/2000/svg`,g):document.createElement(g,h.is&&h),o=null,c=!1}if(g===null)p===h||c&&e.data===h||(e.data=h);else{if(o&&=n.call(e.childNodes),d=(p=r.props||u).dangerouslySetInnerHTML,f=h.dangerouslySetInnerHTML,!c){if(o!=null)for(p={},_=0;_<e.attributes.length;_++)p[e.attributes[_].name]=e.attributes[_].value;(f||d)&&(f&&(d&&f.__html==d.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||``))}if(function(e,t,n,r,i){for(var a in n)a===`children`||a===`key`||a in t||D(e,a,null,n[a],r);for(a in t)i&&typeof t[a]!=`function`||a===`children`||a===`key`||a===`value`||a===`checked`||n[a]===t[a]||D(e,a,t[a],n[a],r)}(e,h,p,a,c),f)t.__k=[];else if(_=t.props.children,C(e,Array.isArray(_)?_:[_],t,r,i,a&&g!==`foreignObject`,o,s,o?o[0]:r.__k&&y(r,0),c),o!=null)for(_=o.length;_--;)o[_]!=null&&m(o[_]);c||(`value`in h&&(_=h.value)!==void 0&&(_!==p.value||_!==e.value||g===`progress`&&!_)&&D(e,`value`,_,p.value,!1),`checked`in h&&(_=h.checked)!==void 0&&_!==e.checked&&D(e,`checked`,_,p.checked,!1))}return e}function re(e,t,n){try{typeof e==`function`?e(t):e.current=t}catch(e){r.__e(e,n)}}function ie(e,t,n){var i,a;if(r.unmount&&r.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||re(i,null,t)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){r.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&ie(i[a],t,typeof e.type!=`function`);n||e.__e==null||m(e.__e),e.__e=e.__d=void 0}function ae(e,t,n){return this.constructor(e,n)}function oe(e,t,i){var a,o,s;r.__&&r.__(e,t),o=(a=typeof i==`function`)?null:i&&i.__k||t.__k,s=[],te(t,e=(!a&&i||t).__k=h(_,null,[e]),o||u,u,t.ownerSVGElement!==void 0,!a&&i?[i]:o?null:t.firstChild?n.call(t.childNodes):null,s,!a&&i?i:o?o.__e:t.firstChild,a),ne(s,e)}n=d.slice,r={__e:function(e,t){for(var n,r,i;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(e)),i=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e),i=n.__d),i)return n.__E=n}catch(t){e=t}throw e}},i=0,a=function(e){return e!=null&&e.constructor===void 0},v.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state);typeof e==`function`&&(e=e(p({},n),this.props)),e&&p(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),x(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},v.prototype.render=_,o=[],s=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,t.Component=v,t.Fragment=_,t.cloneElement=function(e,t,r){var i,a,o,s=p({},e.props);for(o in t)o==`key`?i=t[o]:o==`ref`?a=t[o]:s[o]=t[o];return arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),g(e.type,s,i||e.key,a||e.ref,null)},t.createContext=function(e,t){var n={__c:t=`__cC`+ l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(x)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=h,t.createRef=function(){return{current:null}},t.h=h,t.hydrate=function e(t,n){oe(t,n,e)},t.isValidElement=a,t.options=r,t.render=oe,t.toChildArray=function e(t,n){return n||=[],t==null||typeof t==`boolean`||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Oae=function(e,t){return t===void 0&&(t=document),typeof e==`string`?t.querySelector(e):(n=e)?.nodeType===Node.ELEMENT_NODE?e:null;var n},Kv=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){let{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){let{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){let e=new z_([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw Error(`Extend the addTarget method to add your plugin to another plugin's target`)}install(){}uninstall(){}render(){throw Error(`Extend the render method to add your plugin to a DOM element`)}update(){}afterUpdate(){}};function qv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var kae=0;function Aae(e){return`__private_`+ kae+++`_`+e}var{render:Jv}=Dae,Yv=Aae(`updateUI`),jae=class e extends Kv{constructor(){super(...arguments),Object.defineProperty(this,Yv,{writable:!0,value:void 0})}mount(t,n){let r=n.id,i=Oae(t);if(i){this.isTargetDOMEl=!0;let e=document.createDocumentFragment();return qv(this,Yv)[Yv]=function(e){let t=null,n=null;return function(){return n=[...arguments],t||=Promise.resolve().then((()=>(t=null,e(...n)))),t}}((t=>{this.uppy.getPlugin(this.id)&&(Jv(this.render(t),e),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=``),Jv(this.render(this.uppy.getState()),e),this.el=e.firstElementChild,i.appendChild(e),this.onMount(),this.el}let a;if(typeof t==`object`&&t instanceof e)a=t;else if(typeof t==`function`){let e=t;this.uppy.iteratePlugins((t=>{if(t instanceof e)return a=t,!1}))}if(a)return this.uppy.log(`Installing ${r} to ${a.id}`),this.parent=a,this.el=a.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let o=`Invalid target option given to ${r}.`;throw o+=typeof t==`function`?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",Error(o)}update(e){var t,n;this.el!=null&&((t=(n=qv(this,Yv))[Yv])==null||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}},{debugLogger:Mae}=sv,Xv=Gv,Nae=Gv,Pae=jae,Fae=Kv,Iae=Mae;Xv.Uppy=Nae,Xv.UIPlugin=Pae,Xv.BasePlugin=Fae,Xv.debugLogger=Iae;var Zv=class extends Error{constructor(e,t){t===void 0&&(t=null),super(`This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.`),this.cause=e,this.isNetworkError=!0,this.request=t}},Qv=function(){return fetch(...arguments).catch((e=>{throw e.name===`AbortError`?e:new Zv(e)}))},Lae=class extends Error{constructor(){super(`Authorization required`),this.name=`AuthError`,this.isAuthError=!0}},$v,ey,ty,ny,ry,Rae=Lae;function iy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var zae=0;function ay(e){return`__private_`+ zae+++`_`+e}async function oy(e){if(e.status===401)throw new Rae;let t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{let e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw Error(n)}}return t}var sy=(ey=ay(`getPostResponseFunc`),ty=ay(`getUrl`),ny=ay(`errorHandler`),ry=$v=class e{constructor(e,t){Object.defineProperty(this,ny,{value:Vae}),Object.defineProperty(this,ty,{value:Bae}),Object.defineProperty(this,ey,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=[`accept`,`content-type`,`uppy-auth-token`],this.preflightDone=!1}get hostname(){let{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,``)}headers(){let t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){let t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has(`i-am`)&&r.get(`i-am`)!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get(`i-am`)}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(iy(this,ty)[ty](e),{method:`OPTIONS`}).then((e=>(e.headers.has(`access-control-allow-headers`)&&(this.allowedHeaders=e.headers.get(`access-control-allow-headers`).split(`,`).map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,`warning`),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>Qv(iy(this,ty)[ty](e),{method:`get`,headers:t,credentials:this.opts.companionCookiesRule||`same-origin`}))).then(iy(this,ey)[ey](t)).then(oy).catch(iy(this,ny)[ny](`get`,e))}post(e,t,n){let r=`post`;return this.preflightAndHeaders(e).then((n=>Qv(iy(this,ty)[ty](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:JSON.stringify(t)}))).then(iy(this,ey)[ey](n)).then(oy).catch(iy(this,ny)[ny](r,e))}delete(e,t,n){let r=`delete`;return this.preflightAndHeaders(e).then((n=>Qv(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:t?JSON.stringify(t):null}))).then(iy(this,ey)[ey](n)).then(oy).catch(iy(this,ny)[ny](r,e))}},$v.VERSION=`2.0.4`,$v.defaultHeaders={Accept:`application/json`,"Content-Type":`application/json`,"Uppy-Versions":`@uppy/companion-client=${$v.VERSION}`},ry);function Bae(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Vae(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){let r=Error(`Could not ${e} ${iy(this,ty)[ty](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var Hae={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))},cy,ly,uy,dy,fy,py,my;function hy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Uae=0;function gy(e){return`__private_`+ Uae+++`_`+e}var Wae=(cy=gy(`queued`),ly=gy(`emitter`),uy=gy(`isOpen`),dy=gy(`socket`),fy=gy(`handleMessage`),py=Symbol.for(`uppy test: getSocket`),my=Symbol.for(`uppy test: getQueued`),class{constructor(e){Object.defineProperty(this,cy,{writable:!0,value:[]}),Object.defineProperty(this,ly,{writable:!0,value:V_()}),Object.defineProperty(this,uy,{writable:!0,value:!1}),Object.defineProperty(this,dy,{writable:!0,value:void 0}),Object.defineProperty(this,fy,{writable:!0,value:e=>{try{let t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return hy(this,uy)[uy]}[py](){return hy(this,dy)[dy]}[my](){return hy(this,cy)[cy]}open(){hy(this,dy)[dy]=new WebSocket(this.opts.target),hy(this,dy)[dy].onopen=()=>{for(hy(this,uy)[uy]=!0;hy(this,cy)[cy].length>0&&hy(this,uy)[uy];){let e=hy(this,cy)[cy].shift();this.send(e.action,e.payload)}},hy(this,dy)[dy].onclose=()=>{hy(this,uy)[uy]=!1},hy(this,dy)[dy].onmessage=hy(this,fy)[fy]}close(){var e;(e=hy(this,dy)[dy])==null||e.close()}send(e,t){hy(this,uy)[uy]?hy(this,dy)[dy].send(JSON.stringify({action:e,payload:t})):hy(this,cy)[cy].push({action:e,payload:t})}on(e,t){hy(this,ly)[ly].on(e,t)}emit(e,t){hy(this,ly)[ly].emit(e,t)}once(e,t){hy(this,ly)[ly].once(e,t)}}),Gae={RequestClient:sy,Provider:class extends sy{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split(`-`).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(` `))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,n]=e,r={};return n&&(r[`uppy-auth-token`]=n),this.companionKeysParams&&(r[`uppy-credentials-params`]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);let t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return e===void 0&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,`warning`)})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||``}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type=`acquirer`,e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){let n=t.companionAllowedHosts;if(!(typeof n==`string`||Array.isArray(n)||n instanceof RegExp))throw TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else /^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,``)}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||Hae}},SearchProvider:class extends sy{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split(`-`).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(` `))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:``,this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:Wae},_y,vy,Kae=Ih((function(e,t,n){let{progress:r,bytesUploaded:i,bytesTotal:a}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit(`upload-progress`,n,{uploader:e,bytesUploaded:i,bytesTotal:a}))}),300,{leading:!0,trailing:!0});function yy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var qae=0;function by(e){return`__private_`+ qae+++`_`+e}var xy=(_y=by(`emitter`),vy=by(`events`),class{constructor(e){Object.defineProperty(this,_y,{writable:!0,value:void 0}),Object.defineProperty(this,vy,{writable:!0,value:[]}),yy(this,_y)[_y]=e}on(e,t){return yy(this,vy)[vy].push([e,t]),yy(this,_y)[_y].on(e,t)}remove(){for(let[e,t]of yy(this,vy)[vy].splice(0))yy(this,_y)[_y].off(e,t)}});function Sy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Jae=0;function Cy(e){return`__private_`+ Jae+++`_`+e}var wy=Cy(`aliveTimer`),Ty=Cy(`isDone`),Ey=Cy(`onTimedOut`),Dy=Cy(`timeout`),Oy=class{constructor(e,t){Object.defineProperty(this,wy,{writable:!0,value:void 0}),Object.defineProperty(this,Ty,{writable:!0,value:!1}),Object.defineProperty(this,Ey,{writable:!0,value:void 0}),Object.defineProperty(this,Dy,{writable:!0,value:void 0}),Sy(this,Dy)[Dy]=e,Sy(this,Ey)[Ey]=t}progress(){Sy(this,Ty)[Ty]||Sy(this,Dy)[Dy]>0&&(clearTimeout(Sy(this,wy)[wy]),Sy(this,wy)[wy]=setTimeout(Sy(this,Ey)[Ey],Sy(this,Dy)[Dy]))}done(){Sy(this,Ty)[Ty]||(clearTimeout(Sy(this,wy)[wy]),Sy(this,wy)[wy]=null,Sy(this,Ty)[Ty]=!0)}};function ky(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Yae=0;function Ay(e){return`__private_`+ Yae+++`_`+e}function Xae(){return Error(`Cancelled`)}var jy=Ay(`activeRequests`),My=Ay(`queuedHandlers`),Ny=Ay(`call`),Py=Ay(`queueNext`),Fy=Ay(`next`),Iy=Ay(`queue`),Ly=Ay(`dequeue`);function Zae(e){ky(this,jy)[jy]+=1;let t,n=!1;try{t=e()}catch(e){throw--ky(this,jy)[jy],e}return{abort:()=>{n||(n=!0,--ky(this,jy)[jy],t(),ky(this,Py)[Py]())},done:()=>{n||(n=!0,--ky(this,jy)[jy],ky(this,Py)[Py]())}}}function Qae(){queueMicrotask((()=>ky(this,Fy)[Fy]()))}function $ae(){if(ky(this,jy)[jy]>=this.limit||ky(this,My)[My].length===0)return;let e=ky(this,My)[My].shift(),t=ky(this,Ny)[Ny](e.fn);e.abort=t.abort,e.done=t.done}function eoe(e,t){t===void 0&&(t={});let n={fn:e,priority:t.priority||0,abort:()=>{ky(this,Ly)[Ly](n)},done:()=>{throw Error(`Cannot mark a queued request as done: this indicates a bug`)}},r=ky(this,My)[My].findIndex((e=>n.priority>e.priority));return r===-1?ky(this,My)[My].push(n):ky(this,My)[My].splice(r,0,n),n}function toe(e){let t=ky(this,My)[My].indexOf(e);t!==-1&&ky(this,My)[My].splice(t,1)}var noe={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,Ly,{value:toe}),Object.defineProperty(this,Iy,{value:eoe}),Object.defineProperty(this,Fy,{value:$ae}),Object.defineProperty(this,Py,{value:Qae}),Object.defineProperty(this,Ny,{value:Zae}),Object.defineProperty(this,jy,{writable:!0,value:0}),Object.defineProperty(this,My,{writable:!0,value:[]}),this.limit=typeof e!=`number`||e===0?1/0:e}run(e,t){return ky(this,jy)[jy]<this.limit?ky(this,Ny)[Ny](e):ky(this,Iy)[Iy](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){var r=[...arguments];let i,a=new Promise(((a,o)=>{i=n.run((()=>{let t,n;try{n=Promise.resolve(e(...r))}catch(e){n=Promise.reject(e)}return n.then((e=>{t?o(t):(i.done(),a(e))}),(e=>{t?o(t):(i.done(),o(e))})),()=>{t=Xae()}}),t)}));return a.abort=()=>{i.abort()},a}}},internalRateLimitedQueue:Symbol(`__queue`)},Ry,zy,By=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},roe={strings:{timedOut:`Upload stalled for %{seconds} seconds, aborting.`}},{nanoid:ioe}=lv,{Provider:aoe,RequestClient:ooe,Socket:soe}=Gae,{RateLimitedQueue:coe,internalRateLimitedQueue:Vy}=noe;function Hy(e,t){let n=t;return n||=Error(`Upload error`),typeof n==`string`&&(n=Error(n)),n instanceof Error||(n=Object.assign(Error(`Upload error`),{data:n})),By(e)?(n=new Zv(n,e),n):(n.request=e,n)}function Uy(e){return e.data.slice(0,e.data.size,e.meta.type)}var loe=(zy=Ry=class extends Kv{constructor(e,t){if(super(e,t),this.type=`uploader`,this.id=this.opts.id||`XHRUpload`,this.title=`XHRUpload`,this.defaultLocale=roe,this.opts={formData:!0,fieldName:t.bundle?`files[]`:`file`,method:`post`,metaFields:null,responseUrlFieldName:`url`,bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:``,getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=Error(`Upload error`);return By(t)&&(n=new Zv(n,t)),n},validateStatus:e=>e>=200&&e<300,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Vy in this.opts?this.requests=this.opts[Vy]:this.requests=new coe(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){let t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return typeof n==`function`?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){let n=new FormData;this.addMetadata(n,e.meta,t);let r=Uy(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){let n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{let t=this.getOptions(e),r=Uy(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){let r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit(`upload-started`,e);let i=r.formData?this.createFormDataUpload(e,r):e.data,a=new XMLHttpRequest;this.uploaderEvents[e.id]=new xy(this.uppy);let o=new Oy(r.timeout,(()=>{a.abort(),c.done();let t=Error(this.i18n(`timedOut`,{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit(`upload-error`,e,t),n(t)})),s=ioe();a.upload.addEventListener(`loadstart`,(()=>{this.uppy.log(`[XHRUpload] ${s} started`)})),a.upload.addEventListener(`progress`,(t=>{this.uppy.log(`[XHRUpload] ${s} progress: ${t.loaded} / ${t.total}`),o.progress(),t.lengthComputable&&this.uppy.emit(`upload-progress`,e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),a.addEventListener(`load`,(i=>{if(this.uppy.log(`[XHRUpload] ${s} finished`),o.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(i.target.status,a.responseText,a)){let n=r.getResponseData(a.responseText,a),o=n[r.responseUrlFieldName],s={status:i.target.status,body:n,uploadURL:o};return this.uppy.emit(`upload-success`,e,s),o&&this.uppy.log(`Download ${e.name} from ${o}`),t(e)}let l=r.getResponseData(a.responseText,a),u=Hy(a,r.getResponseError(a.responseText,a)),d={status:i.target.status,body:l};return this.uppy.emit(`upload-error`,e,u,d),n(u)})),a.addEventListener(`error`,(()=>{this.uppy.log(`[XHRUpload] ${s} errored`),o.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);let t=Hy(a,r.getResponseError(a.responseText,a));return this.uppy.emit(`upload-error`,e,t),n(t)})),a.open(r.method.toUpperCase(),r.endpoint,!0),a.withCredentials=r.withCredentials,r.responseType!==``&&(a.responseType=r.responseType);let c=this.requests.run((()=>{this.uppy.emit(`upload-started`,e);let t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{a.setRequestHeader(e,t.headers[e])})),a.send(i),()=>{o.done(),a.abort()}}));this.onFileRemove(e.id,(()=>{c.abort(),n(Error(`File removed`))})),this.onCancelAll(e.id,(()=>{c.abort(),n(Error(`Upload cancelled`))}))}))}uploadRemote(e){let t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit(`upload-started`,e);let i={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{i[t]=e.meta[t]})),new(e.remote.providerOptions.provider?aoe:ooe)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:i,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((i=>{let{token:a}=i,o=new soe({target:`${function(e){let t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?`ws`:`wss`}://${t}`}(e.remote.companionUrl)}/api/${a}`,autoOpen:!1});this.uploaderEvents[e.id]=new xy(this.uppy),this.onFileRemove(e.id,(()=>{o.send(`cancel`,{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{o.send(`cancel`,{}),s.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{o.send(`pause`,{}),o.send(`resume`,{})})),this.onRetryAll(e.id,(()=>{o.send(`pause`,{}),o.send(`resume`,{})})),o.on(`progress`,(t=>Kae(this,t,e))),o.on(`success`,(r=>{let i=t.getResponseData(r.response.responseText,r.response),a=i[t.responseUrlFieldName],o={status:r.response.status,body:i,uploadURL:a};return this.uppy.emit(`upload-success`,e,o),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),o.on(`error`,(n=>{let i=n.response,a=i?t.getResponseError(i.responseText,i):Object.assign(Error(n.error.message),{cause:n.error});this.uppy.emit(`upload-error`,e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(a)}));let s=this.requests.run((()=>(o.open(),e.isPaused&&o.send(`pause`,{}),()=>o.close())))})).catch((t=>{this.uppy.emit(`upload-error`,e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{let{endpoint:r}=this.opts,{method:i}=this.opts,a=this.uppy.getState().xhrUpload,o=this.createBundledUpload(e,{...this.opts,...a||{}}),s=new XMLHttpRequest,c=new Oy(this.opts.timeout,(()=>{s.abort();let e=Error(this.i18n(`timedOut`,{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)})),l=t=>{e.forEach((e=>{this.uppy.emit(`upload-error`,e,t)}))};s.upload.addEventListener(`loadstart`,(()=>{this.uppy.log(`[XHRUpload] started uploading bundle`),c.progress()})),s.upload.addEventListener(`progress`,(t=>{c.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit(`upload-progress`,e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),s.addEventListener(`load`,(r=>{if(c.done(),this.opts.validateStatus(r.target.status,s.responseText,s)){let n=this.opts.getResponseData(s.responseText,s),i={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit(`upload-success`,e,i)})),t()}let i=this.opts.getResponseError(s.responseText,s)||Error(`Upload error`);return i.request=s,l(i),n(i)})),s.addEventListener(`error`,(()=>{c.done();let e=this.opts.getResponseError(s.responseText,s)||Error(`Upload error`);return l(e),n(e)})),this.uppy.on(`cancel-all`,(()=>{c.done(),s.abort()})),s.open(i.toUpperCase(),r,!0),s.withCredentials=this.opts.withCredentials,this.opts.responseType!==``&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{s.setRequestHeader(e,this.opts.headers[e])})),s.send(o),e.forEach((e=>{this.uppy.emit(`upload-started`,e)}))}))}uploadFiles(e){return function(e){let t=[],n=[];function r(e){t.push(e)}function i(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,i)))).then((()=>({successful:t,failed:n})))}(e.map(((t,n)=>{let r=parseInt(n,10)+1,i=e.length;return t.error?Promise.reject(Error(t.error)):t.isRemote?this.uploadRemote(t,r,i):this.upload(t,r,i)})))}onFileRemove(e,t){this.uploaderEvents[e].on(`file-removed`,(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on(`upload-retry`,(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on(`retry-all`,(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on(`cancel-all`,(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(e.length===0)return this.uppy.log(`[XHRUpload] No files to upload!`),Promise.resolve();this.opts.limit!==0||this.opts[Vy]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0",`warning`),this.uppy.log(`[XHRUpload] Uploading...`);let t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers==`function`)throw TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){let{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){let{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Ry.VERSION=`2.0.6`,zy),Wy=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Gy(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ky,qy,Jy=function(e){return e&&e.Math==Math&&e},W=Jy(typeof globalThis==`object`&&globalThis)||Jy(typeof window==`object`&&window)||Jy(typeof self==`object`&&self)||Jy(typeof Wy==`object`&&Wy)||function(){return this}()||Function(`return this`)(),uoe=Object.defineProperty,Yy=function(e,t){try{uoe(W,e,{value:t,configurable:!0,writable:!0})}catch{W[e]=t}return t},Xy=W[`__core-js_shared__`]||Yy(`__core-js_shared__`,{}),Zy=Gy((function(e){(e.exports=function(e,t){return Xy[e]||(Xy[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Qy=Function.prototype,$y=Qy.bind,eb=Qy.call,doe=$y&&$y.bind(eb),G=$y?function(e){return e&&doe(eb,e)}:function(e){return e&&function(){return eb.apply(e,arguments)}},foe=W.TypeError,tb=function(e){if(e==null)throw foe(`Can't call method on `+e);return e},poe=W.Object,nb=function(e){return poe(tb(e))},moe=G({}.hasOwnProperty),rb=Object.hasOwn||function(e,t){return moe(nb(e),t)},hoe=0,goe=Math.random(),_oe=G(1 .toString),ib=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+_oe(++hoe+goe,36)},ab=function(e){return typeof e==`function`},voe=function(e){return ab(e)?e:void 0},ob=function(e,t){return arguments.length<2?voe(W[e]):W[e]&&W[e][t]},sb=ob(`navigator`,`userAgent`)||``,cb=W.process,lb=W.Deno,ub=cb&&cb.versions||lb&&lb.version,db=ub&&ub.v8;db&&(qy=(Ky=db.split(`.`))[0]>0&&Ky[0]<4?1:+(Ky[0]+Ky[1])),!qy&&sb&&(!(Ky=sb.match(/Edge\/(\d+)/))||Ky[1]>=74)&&(Ky=sb.match(/Chrome\/(\d+)/))&&(qy=+Ky[1]);var fb=qy,pb=function(e){try{return!!e()}catch{return!0}},mb=!!Object.getOwnPropertySymbols&&!pb((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&fb&&fb<41})),hb=mb&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,gb=Zy(`wks`),_b=W.Symbol,vb=_b&&_b.for,yoe=hb?_b:_b&&_b.withoutSetter||ib,yb=function(e){if(!rb(gb,e)||!mb&&typeof gb[e]!=`string`){var t=`Symbol.`+e;mb&&rb(_b,e)?gb[e]=_b[e]:gb[e]=hb&&vb?vb(t):yoe(t)}return gb[e]},bb={};bb[yb(`toStringTag`)]=`z`;var xb=String(bb)===`[object z]`,Sb=!pb((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Cb=function(e){return typeof e==`object`?e!==null:ab(e)},wb=W.document,boe=Cb(wb)&&Cb(wb.createElement),Tb=function(e){return boe?wb.createElement(e):{}},Eb=!Sb&&!pb((function(){return Object.defineProperty(Tb(`div`),`a`,{get:function(){return 7}}).a!=7})),xoe=W.String,Soe=W.TypeError,Db=function(e){if(Cb(e))return e;throw Soe(xoe(e)+` is not an object`)},Ob=Function.prototype.call,kb=Ob.bind?Ob.bind(Ob):function(){return Ob.apply(Ob,arguments)},Ab=G({}.isPrototypeOf),Coe=W.Object,jb=hb?function(e){return typeof e==`symbol`}:function(e){var t=ob(`Symbol`);return ab(t)&&Ab(t.prototype,Coe(e))},woe=W.String,Mb=function(e){try{return woe(e)}catch{return`Object`}},Toe=W.TypeError,Nb=function(e){if(ab(e))return e;throw Toe(Mb(e)+` is not a function`)},Pb=function(e,t){var n=e[t];return n==null?void 0:Nb(n)},Eoe=W.TypeError,Doe=W.TypeError,Ooe=yb(`toPrimitive`),Fb=function(e){var t=function(e,t){if(!Cb(e)||jb(e))return e;var n,r=Pb(e,Ooe);if(r){if(t===void 0&&(t=`default`),n=kb(r,e,t),!Cb(n)||jb(n))return n;throw Doe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&ab(n=e.toString)&&!Cb(r=kb(n,e))||ab(n=e.valueOf)&&!Cb(r=kb(n,e))||t!==`string`&&ab(n=e.toString)&&!Cb(r=kb(n,e)))return r;throw Eoe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return jb(t)?t:t+``},koe=W.TypeError,Ib=Object.defineProperty,Lb={f:Sb?Ib:function(e,t,n){if(Db(e),t=Fb(t),Db(n),Eb)try{return Ib(e,t,n)}catch{}if(`get`in n||`set`in n)throw koe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},Rb=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},zb=Sb?function(e,t,n){return Lb.f(e,t,Rb(1,n))}:function(e,t,n){return e[t]=n,e},Aoe=G(Function.toString);ab(Xy.inspectSource)||(Xy.inspectSource=function(e){return Aoe(e)});var Bb,Vb,Hb,Ub=Xy.inspectSource,Wb=W.WeakMap,Gb=ab(Wb)&&/native code/.test(Ub(Wb)),Kb=Zy(`keys`),qb=function(e){return Kb[e]||(Kb[e]=ib(e))},Jb={},Yb=W.TypeError,joe=W.WeakMap;if(Gb||Xy.state){var Xb=Xy.state||=new joe,Moe=G(Xb.get),Zb=G(Xb.has),Noe=G(Xb.set);Bb=function(e,t){if(Zb(Xb,e))throw new Yb(`Object already initialized`);return t.facade=e,Noe(Xb,e,t),t},Vb=function(e){return Moe(Xb,e)||{}},Hb=function(e){return Zb(Xb,e)}}else{var Qb=qb(`state`);Jb[Qb]=!0,Bb=function(e,t){if(rb(e,Qb))throw new Yb(`Object already initialized`);return t.facade=e,zb(e,Qb,t),t},Vb=function(e){return rb(e,Qb)?e[Qb]:{}},Hb=function(e){return rb(e,Qb)}}var $b={set:Bb,get:Vb,has:Hb,enforce:function(e){return Hb(e)?Vb(e):Bb(e,{})},getterFor:function(e){return function(t){var n;if(!Cb(t)||(n=Vb(t)).type!==e)throw Yb(`Incompatible receiver, `+e+` required`);return n}}},ex=Function.prototype,Poe=Sb&&Object.getOwnPropertyDescriptor,tx=rb(ex,`name`),nx={EXISTS:tx,PROPER:tx&&function(){}.name===`something`,CONFIGURABLE:tx&&(!Sb||Sb&&Poe(ex,`name`).configurable)},rx=Gy((function(e){var t=nx.CONFIGURABLE,n=$b.get,r=$b.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;ab(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!rb(a,`name`)||t&&a.name!==d)&&zb(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===W?l?e[n]=a:Yy(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:zb(e,n,a))})(Function.prototype,`toString`,(function(){return ab(this)&&n(this).source||Ub(this)}))})),Foe=G({}.toString),Ioe=G(``.slice),ix=function(e){return Ioe(Foe(e),8,-1)},Loe=yb(`toStringTag`),Roe=W.Object,zoe=ix(function(){return arguments}())==`Arguments`,ax=xb?ix:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=Roe(e),Loe))==`string`?n:zoe?ix(t):(r=ix(t))==`Object`&&ab(t.callee)?`Arguments`:r},Boe=xb?{}.toString:function(){return`[object `+ax(this)+`]`};xb||rx(Object.prototype,`toString`,Boe,{unsafe:!0});var ox={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},sx=Tb(`span`).classList,cx=sx&&sx.constructor&&sx.constructor.prototype,lx=cx===Object.prototype?void 0:cx,ux=G(G.bind),dx=function(e,t){return Nb(e),t===void 0?e:ux?ux(e,t):function(){return e.apply(t,arguments)}},fx=W.Object,Voe=G(``.split),px=pb((function(){return!fx(`z`).propertyIsEnumerable(0)}))?function(e){return ix(e)==`String`?Voe(e,``):fx(e)}:fx,Hoe=Math.ceil,Uoe=Math.floor,mx=function(e){var t=+e;return t!=t||t===0?0:(t>0?Uoe:Hoe)(t)},Woe=Math.min,hx=function(e){return e>0?Woe(mx(e),9007199254740991):0},gx=function(e){return hx(e.length)},_x=Array.isArray||function(e){return ix(e)==`Array`},vx=function(){},Goe=[],yx=ob(`Reflect`,`construct`),bx=/^\s*(?:class|function)\b/,Koe=G(bx.exec),qoe=!bx.exec(vx),xx=function(e){if(!ab(e))return!1;try{return yx(vx,Goe,e),!0}catch{return!1}},Sx=!yx||pb((function(){var e;return xx(xx.call)||!xx(Object)||!xx((function(){e=!0}))||e}))?function(e){if(!ab(e))return!1;switch(ax(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return qoe||!!Koe(bx,Ub(e))}:xx,Joe=yb(`species`),Cx=W.Array,wx=function(e,t){return new(function(e){var t;return _x(e)&&(t=e.constructor,(Sx(t)&&(t===Cx||_x(t.prototype))||Cb(t)&&(t=t[Joe])===null)&&(t=void 0)),t===void 0?Cx:t}(e))(t===0?0:t)},Tx=G([].push),Ex=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=nb(c),h=px(m),g=dx(l,u),_=gx(h),v=0,y=d||wx,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:Tx(b,f)}else switch(e){case 4:return!1;case 7:Tx(b,f)}return a?-1:r||i?i:b}},Dx={forEach:Ex(0),map:Ex(1),filter:Ex(2),some:Ex(3),every:Ex(4),find:Ex(5),findIndex:Ex(6),filterReject:Ex(7)},Ox=function(e,t){var n=[][e];return!!n&&pb((function(){n.call(null,t||function(){throw 1},1)}))},Yoe=Dx.forEach,kx=Ox(`forEach`)?[].forEach:function(e){return Yoe(this,e,arguments.length>1?arguments[1]:void 0)},Ax=function(e){if(e&&e.forEach!==kx)try{zb(e,`forEach`,kx)}catch{e.forEach=kx}};for(var jx in ox)ox[jx]&&Ax(W[jx]&&W[jx].prototype);Ax(lx);var Mx={}.propertyIsEnumerable,Nx=Object.getOwnPropertyDescriptor,Px={f:Nx&&!Mx.call({1:2},1)?function(e){var t=Nx(this,e);return!!t&&t.enumerable}:Mx},Fx=function(e){return px(tb(e))},Ix=Object.getOwnPropertyDescriptor,Lx={f:Sb?Ix:function(e,t){if(e=Fx(e),t=Fb(t),Eb)try{return Ix(e,t)}catch{}if(rb(e,t))return Rb(!kb(Px.f,e,t),e[t])}},Xoe=Math.max,Zoe=Math.min,Rx=function(e,t){var n=mx(e);return n<0?Xoe(n+t,0):Zoe(n,t)},zx=function(e){return function(t,n,r){var i,a=Fx(t),o=gx(a),s=Rx(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},Bx={includes:zx(!0),indexOf:zx(!1)},Qoe=Bx.indexOf,Vx=G([].push),Hx=function(e,t){var n,r=Fx(e),i=0,a=[];for(n in r)!rb(Jb,n)&&rb(r,n)&&Vx(a,n);for(;t.length>i;)rb(r,n=t[i++])&&(~Qoe(a,n)||Vx(a,n));return a},Ux=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],$oe=Ux.concat(`length`,`prototype`),Wx={f:Object.getOwnPropertyNames||function(e){return Hx(e,$oe)}},Gx={f:Object.getOwnPropertySymbols},ese=G([].concat),tse=ob(`Reflect`,`ownKeys`)||function(e){var t=Wx.f(Db(e)),n=Gx.f;return n?ese(t,n(e)):t},nse=function(e,t){for(var n=tse(t),r=Lb.f,i=Lx.f,a=0;a<n.length;a++){var o=n[a];rb(e,o)||r(e,o,i(t,o))}},rse=/#|\.prototype\./,Kx=function(e,t){var n=ase[ise(e)];return n==sse||n!=ose&&(ab(t)?pb(t):!!t)},ise=Kx.normalize=function(e){return String(e).replace(rse,`.`).toLowerCase()},ase=Kx.data={},ose=Kx.NATIVE=`N`,sse=Kx.POLYFILL=`P`,qx=Kx,cse=Lx.f,Jx=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?W:l?W[s]||Yy(s,{}):(W[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=cse(n,r))&&o.value:n[r],!qx(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;nse(a,i)}(e.sham||i&&i.sham)&&zb(a,`sham`,!0),rx(n,r,a,e)}},Yx=Object.keys||function(e){return Hx(e,Ux)},lse=pb((function(){Yx(1)}));function Xx(e){return Object.prototype.toString.call(e)===`[object Object]`}Jx({target:`Object`,stat:!0,forced:lse},{keys:function(e){return Yx(nb(e))}});var use={isHistory(e){return!1!==Xx(t=e)&&((n=t.constructor)===void 0||!1!==Xx(r=n.prototype)&&!1!==r.hasOwnProperty(`isPrototypeOf`))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||pp.isOperationList(e.redos[0]))&&(e.undos.length===0||pp.isOperationList(e.undos[0]));var t,n,r}},Zx=new WeakMap,Qx=new WeakMap,$x={isHistoryEditor:e=>use.isHistory(e.history)&&F.isEditor(e),isMerging:e=>Qx.get(e),isSaving:e=>Zx.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=$x.isMerging(e);Qx.set(e,!1),t(),Qx.set(e,n)},withoutSaving(e,t){var n=$x.isSaving(e);Zx.set(e,!1),t(),Zx.set(e,n)}},dse=W.String,eS=function(e){if(ax(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return dse(e)},tS=function(){var e=Db(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},fse=nx.PROPER,nS=RegExp.prototype,rS=nS.toString,pse=G(tS),mse=pb((function(){return rS.call({source:`a`,flags:`b`})!=`/a/b`})),hse=fse&&rS.name!=`toString`;(mse||hse)&&rx(RegExp.prototype,`toString`,(function(){var e=Db(this),t=eS(e.source),n=e.flags;return`/`+t+`/`+eS(n===void 0&&Ab(nS,e)&&!(`flags`in nS)?pse(e):n)}),{unsafe:!0});var iS,gse=Sb?Object.defineProperties:function(e,t){Db(e);for(var n,r=Fx(t),i=Yx(t),a=i.length,o=0;a>o;)Lb.f(e,n=i[o++],r[n]);return e},aS=ob(`document`,`documentElement`),oS=qb(`IE_PROTO`),sS=function(){},cS=function(e){return`<script>`+e+`<\/script>`},lS=function(e){e.write(cS(``)),e.close();var t=e.parentWindow.Object;return e=null,t},uS=function(){try{iS=new ActiveXObject(`htmlfile`)}catch{}var e,t;uS=typeof document<`u`?document.domain&&iS?lS(iS):((t=Tb(`iframe`)).style.display=`none`,aS.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(cS(`document.F=Object`)),e.close(),e.F):lS(iS);for(var n=Ux.length;n--;)delete uS.prototype[Ux[n]];return uS()};Jb[oS]=!0;var dS=Object.create||function(e,t){var n;return e===null?n=uS():(sS.prototype=Db(e),n=new sS,sS.prototype=null,n[oS]=e),t===void 0?n:gse(n,t)},fS=yb(`unscopables`),pS=Array.prototype;pS[fS]??Lb.f(pS,fS,{configurable:!0,value:dS(null)});var mS=function(e){pS[fS][e]=!0},_se=Bx.includes;Jx({target:`Array`,proto:!0},{includes:function(e){return _se(this,e,arguments.length>1?arguments[1]:void 0)}}),mS(`includes`);var vse=yb(`match`),hS=function(e){var t;return Cb(e)&&((t=e[vse])===void 0?ix(e)==`RegExp`:!!t)},yse=W.TypeError,gS=function(e){if(hS(e))throw yse(`The method doesn't accept regular expressions`);return e},bse=yb(`match`),_S=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[bse]=!1,`/./`[e](t)}catch{}}return!1},xse=G(``.indexOf);Jx({target:`String`,proto:!0,forced:!_S(`includes`)},{includes:function(e){return!!~xse(eS(tb(this)),eS(gS(e)),arguments.length>1?arguments[1]:void 0)}});var Sse=/"/g,Cse=G(``.replace);Jx({target:`String`,proto:!0,forced:pb((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=eS(tb(this)),r=`<a`,(r+=` name="`+Cse(eS(t),Sse,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var vS=function(e,t,n){var r,i;Db(e);try{if(!(r=Pb(e,`return`))){if(t===`throw`)throw n;return n}r=kb(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Db(r),n},wse=function(e,t,n,r){try{return r?t(Db(n)[0],n[1]):t(n)}catch(t){vS(e,`throw`,t)}},yS={},Tse=yb(`iterator`),Ese=Array.prototype,bS=function(e){return e!==void 0&&(yS.Array===e||Ese[Tse]===e)},xS=function(e,t,n){var r=Fb(t);r in e?Lb.f(e,r,Rb(0,n)):e[r]=n},Dse=yb(`iterator`),SS=function(e){if(e!=null)return Pb(e,Dse)||Pb(e,`@@iterator`)||yS[ax(e)]},Ose=W.TypeError,CS=function(e,t){var n=arguments.length<2?SS(e):t;if(Nb(n))return Db(kb(n,e));throw Ose(Mb(e)+` is not iterable`)},wS=W.Array,TS=yb(`iterator`),ES=!1;try{var kse=0,DS={next:function(){return{done:!!kse++}},return:function(){ES=!0}};DS[TS]=function(){return this},Array.from(DS,(function(){throw 2}))}catch{}var OS=function(e,t){if(!t&&!ES)return!1;var n=!1;try{var r={};r[TS]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n};Jx({target:`Array`,stat:!0,forced:!OS((function(e){Array.from(e)}))},{from:function(e){var t=nb(e),n=Sx(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=i!==void 0;a&&(i=dx(i,r>2?arguments[2]:void 0));var o,s,c,l,u,d,f=SS(t),p=0;if(!f||this==wS&&bS(f))for(o=gx(t),s=n?new this(o):wS(o);o>p;p++)d=a?i(t[p],p):t[p],xS(s,p,d);else for(u=(l=CS(t,f)).next,s=n?new this:[];!(c=kb(u,l)).done;p++)d=a?wse(l,i,[c.value,p],!0):c.value,xS(s,p,d);return s.length=p,s}});var kS,AS,jS,Ase=G(``.charAt),MS=G(``.charCodeAt),jse=G(``.slice),NS=function(e){return function(t,n){var r,i,a=eS(tb(t)),o=mx(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=MS(a,o))<55296||r>56319||o+1===s||(i=MS(a,o+1))<56320||i>57343?e?Ase(a,o):r:e?jse(a,o,o+2):i-56320+(r-55296<<10)+65536}},PS={codeAt:NS(!1),charAt:NS(!0)},Mse=!pb((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),FS=qb(`IE_PROTO`),IS=W.Object,Nse=IS.prototype,LS=Mse?IS.getPrototypeOf:function(e){var t=nb(e);if(rb(t,FS))return t[FS];var n=t.constructor;return ab(n)&&t instanceof n?n.prototype:t instanceof IS?Nse:null},RS=yb(`iterator`),zS=!1;[].keys&&(`next`in(jS=[].keys())?(AS=LS(LS(jS)))!==Object.prototype&&(kS=AS):zS=!0),(kS==null||pb((function(){var e={};return kS[RS].call(e)!==e})))&&(kS={}),ab(kS[RS])||rx(kS,RS,(function(){return this}));var BS={IteratorPrototype:kS,BUGGY_SAFARI_ITERATORS:zS},Pse=Lb.f,VS=yb(`toStringTag`),HS=function(e,t,n){e&&!rb(e=n?e:e.prototype,VS)&&Pse(e,VS,{configurable:!0,value:t})},Fse=BS.IteratorPrototype,Ise=function(){return this},Lse=W.String,Rse=W.TypeError,US=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=G(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Db(n),function(e){if(typeof e==`object`||ab(e))return e;throw Rse(`Can't set `+Lse(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),zse=nx.PROPER,Bse=nx.CONFIGURABLE,WS=BS.IteratorPrototype,GS=BS.BUGGY_SAFARI_ITERATORS,KS=yb(`iterator`),Vse=function(){return this},qS=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=dS(Fse,{next:Rb(1,n)}),HS(e,i,!1),yS[i]=Ise})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!GS&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[KS]||p[`@@iterator`]||i&&p[i],h=!GS&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=LS(g.call(new e)))!==Object.prototype&&s.next&&(LS(s)!==WS&&(US?US(s,WS):ab(s[KS])||rx(s,KS,Vse)),HS(s,d,!0)),zse&&i==`values`&&m&&m.name!==`values`&&(Bse?zb(p,`name`,`values`):(f=!0,h=function(){return kb(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(GS||f||!(l in p))&&rx(p,l,c[l]);else Jx({target:t,proto:!0,forced:GS||f},c);return p[KS]!==h&&rx(p,KS,h,{name:i}),yS[t]=h,c},Hse=PS.charAt,Use=$b.set,Wse=$b.getterFor(`String Iterator`);qS(String,`String`,(function(e){Use(this,{type:`String Iterator`,string:eS(e),index:0})}),(function(){var e,t=Wse(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Hse(n,r),t.index+=e.length,{value:e,done:!1})}));var JS,Gse=Lx.f,YS=G(``.endsWith),Kse=G(``.slice),qse=Math.min,XS=_S(`endsWith`);Jx({target:`String`,proto:!0,forced:!!(XS||(JS=Gse(String.prototype,`endsWith`),!JS||JS.writable))&&!XS},{endsWith:function(e){var t=eS(tb(this));gS(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:qse(hx(n),r),a=eS(e);return YS?YS(t,a,i):Kse(t,i-a.length,i)===a}});var Jse=G([].join),Yse=px!=Object,Xse=Ox(`join`,`,`);Jx({target:`Array`,proto:!0,forced:Yse||!Xse},{join:function(e){return Jse(Fx(this),e===void 0?`,`:e)}});var Zse=yb(`species`),ZS=function(e){return fb>=51||!pb((function(){var t=[];return(t.constructor={})[Zse]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},Qse=Dx.map;Jx({target:`Array`,proto:!0,forced:!ZS(`map`)},{map:function(e){return Qse(this,e,arguments.length>1?arguments[1]:void 0)}});var QS=W.RegExp,$S=pb((function(){var e=QS(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),$se=$S||pb((function(){return!QS(`a`,`y`).sticky})),eC={BROKEN_CARET:$S||pb((function(){var e=QS(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:$se,UNSUPPORTED_Y:$S},ece=W.RegExp,tC=pb((function(){var e=ece(`.`,`s`);return!(e.dotAll&&e.exec(`
16
+ `)&&e.flags===`s`)})),tce=W.RegExp,nC=pb((function(){var e=tce(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),nce=$b.get,rce=Zy(`native-string-replace`,String.prototype.replace),rC=RegExp.prototype.exec,iC=rC,ice=G(``.charAt),ace=G(``.indexOf),oce=G(``.replace),aC=G(``.slice),oC=function(){var e=/a/,t=/b*/g;return kb(rC,e,`a`),kb(rC,t,`a`),e.lastIndex!==0||t.lastIndex!==0}(),sC=eC.BROKEN_CARET,cC=/()??/.exec(``)[1]!==void 0;(oC||cC||sC||tC||nC)&&(iC=function(e){var t,n,r,i,a,o,s,c=this,l=nce(c),u=eS(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=kb(iC,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=sC&&c.sticky,m=kb(tS,c),h=c.source,g=0,_=u;if(p&&(m=oce(m,`y`,``),ace(m,`g`)===-1&&(m+=`g`),_=aC(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&ice(u,c.lastIndex-1)!==`
17
+ `)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),cC&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),oC&&(r=c.lastIndex),i=kb(rC,p?n:c,_),p?i?(i.input=aC(i.input,g),i[0]=aC(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:oC&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),cC&&i&&i.length>1&&kb(rce,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=dS(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var lC=iC;Jx({target:`RegExp`,proto:!0,forced:/./.exec!==lC},{exec:lC});var uC=Function.prototype,dC=uC.apply,sce=uC.bind,fC=uC.call,pC=typeof Reflect==`object`&&Reflect.apply||(sce?fC.bind(dC):function(){return fC.apply(dC,arguments)}),cce=yb(`species`),mC=RegExp.prototype,hC=function(e,t,n,r){var i=yb(e),a=!pb((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!pb((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[cce]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=G(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=G(e),c=t.exec;return c===lC||c===mC.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));rx(String.prototype,e,c[0]),rx(mC,i,c[1])}r&&zb(mC[i],`sham`,!0)},lce=PS.charAt,gC=function(e,t,n){return t+(n?lce(e,t).length:1)},uce=Math.floor,_C=G(``.charAt),dce=G(``.replace),vC=G(``.slice),fce=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,pce=/\$([$&'`]|\d{1,2})/g,mce=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=pce;return i!==void 0&&(i=nb(i),c=fce),dce(a,c,(function(a,c){var l;switch(_C(c,0)){case`$`:return`$`;case`&`:return e;case"`":return vC(t,0,n);case`'`:return vC(t,o);case`<`:l=i[vC(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=uce(u/10);return d===0?a:d<=s?r[d-1]===void 0?_C(c,1):r[d-1]+_C(c,1):a}l=r[u-1]}return l===void 0?``:l}))},hce=W.TypeError,yC=function(e,t){var n=e.exec;if(ab(n)){var r=kb(n,e,t);return r!==null&&Db(r),r}if(ix(e)===`RegExp`)return kb(lC,e,t);throw hce(`RegExp#exec called on incompatible receiver`)},bC=yb(`replace`),gce=Math.max,_ce=Math.min,vce=G([].concat),xC=G([].push),SC=G(``.indexOf),CC=G(``.slice),yce=`a`.replace(/./,`$0`)===`$0`,wC=!!/./[bC]&&/./[bC](`a`,`$0`)===``;hC(`replace`,(function(e,t,n){var r=wC?`$`:`$0`;return[function(e,n){var r=tb(this),i=e==null?void 0:Pb(e,bC);return i?kb(i,e,r,n):kb(t,eS(r),e,n)},function(e,i){var a=Db(this),o=eS(e);if(typeof i==`string`&&SC(i,r)===-1&&SC(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=ab(i);c||(i=eS(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=yC(a,o);if(f===null||(xC(d,f),!l))break;eS(f[0])===``&&(a.lastIndex=gC(o,hx(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=eS((f=d[g])[0]),v=gce(_ce(mx(f.index),o.length),0),y=[],b=1;b<f.length;b++)xC(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=vce([_],y,v,o);x!==void 0&&xC(S,x);var C=eS(pC(i,void 0,S))}else C=mce(_,o,v,y,x,i);v>=h&&(m+=CC(o,h,v)+C,h=v+_.length)}return m+CC(o,h)}]}),!!pb((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!yce||wC);var TC=function(e,t){return TC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},TC(e,t)};function EC(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}TC(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var DC=function(){return DC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},DC.apply(this,arguments)};function OC(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function kC(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function AC(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var bce=0,jC=function(){this.id=``+ bce++},xce=$b.set,Sce=$b.getterFor(`Array Iterator`),MC=qS(Array,`Array`,(function(e,t){xce(this,{type:`Array Iterator`,target:Fx(e),index:0,kind:t})}),(function(){var e=Sce(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);yS.Arguments=yS.Array,mS(`keys`),mS(`values`),mS(`entries`);var NC=function(e,t,n){for(var r in t)rx(e,r,t[r],n);return e},Cce=W.Array,wce=Math.max,PC=function(e,t,n){for(var r=gx(e),i=Rx(t,r),a=Rx(n===void 0?r:n,r),o=Cce(wce(a-i,0)),s=0;i<a;i++,s++)xS(o,s,e[i]);return o.length=s,o},FC=Wx.f,IC=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Tce={f:function(e){return IC&&ix(e)==`Window`?function(e){try{return FC(e)}catch{return PC(IC)}}(e):FC(Fx(e))}},LC=pb((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),RC=Object.isExtensible,zC=pb((function(){RC(1)}))||LC?function(e){return!!Cb(e)&&(!LC||ix(e)!=`ArrayBuffer`)&&(!RC||RC(e))}:RC,Ece=!pb((function(){return Object.isExtensible(Object.preventExtensions({}))})),BC=Gy((function(e){var t=Lb.f,n=!1,r=ib(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+ i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=Wx.f,t=G([].splice),i={};i[r]=1,e(i).length&&(Wx.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},Jx({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:Tce.f}))},fastKey:function(e,t){if(!Cb(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!rb(e,r)){if(!zC(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!rb(e,r)){if(!zC(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return Ece&&n&&zC(e)&&!rb(e,r)&&a(e),e}};Jb[r]=!0})),Dce=W.TypeError,VC=function(e,t){this.stopped=e,this.result=t},HC=VC.prototype,UC=function(e,t,n){var r,i,a,o,s,c,l,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=dx(t,u),h=function(e){return r&&vS(r,`normal`,e),new VC(!0,e)},g=function(e){return d?(Db(e),p?m(e[0],e[1],h):m(e[0],e[1])):p?m(e,h):m(e)};if(f)r=e;else{if(!(i=SS(e)))throw Dce(Mb(e)+` is not iterable`);if(bS(i)){for(a=0,o=gx(e);o>a;a++)if((s=g(e[a]))&&Ab(HC,s))return s;return new VC(!1)}r=CS(e,i)}for(c=r.next;!(l=kb(c,r)).done;){try{s=g(l.value)}catch(e){vS(r,`throw`,e)}if(typeof s==`object`&&s&&Ab(HC,s))return s}return new VC(!1)},Oce=W.TypeError,WC=function(e,t){if(Ab(t,e))return e;throw Oce(`Incorrect invocation`)},GC=function(e,t,n){var r,i;return US&&ab(r=t.constructor)&&r!==n&&Cb(i=r.prototype)&&i!==n.prototype&&US(e,i),e},KC=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=W[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=G(s[e]);rx(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!Cb(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!Cb(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!Cb(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(qx(e,!ab(o)||!(i||s.forEach&&!pb((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),BC.enable();else if(qx(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=pb((function(){d.has(1)})),m=OS((function(e){new o(e)})),h=!i&&pb((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){WC(e,s);var n=GC(new o,e,c);return t!=null&&UC(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,Jx({global:!0,forced:c!=o},l),HS(c,e),i||n.setStrong(c,e,r),c},qC=BC.getWeakData,kce=$b.set,Ace=$b.getterFor,jce=Dx.find,Mce=Dx.findIndex,Nce=G([].splice),Pce=0,JC=function(e){return e.frozen||=new YC},YC=function(){this.entries=[]},XC=function(e,t){return jce(e.entries,(function(e){return e[0]===t}))};YC.prototype={get:function(e){var t=XC(this,e);if(t)return t[1]},has:function(e){return!!XC(this,e)},set:function(e,t){var n=XC(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Mce(this.entries,(function(t){return t[0]===e}));return~t&&Nce(this.entries,t,1),!!~t}};var ZC,QC={getConstructor:function(e,t,n,r){var i=e((function(e,i){WC(e,a),kce(e,{type:t,id:Pce++,frozen:void 0}),i!=null&&UC(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=Ace(t),s=function(e,t,n){var r=o(e),i=qC(Db(t),!0);return!0===i?JC(r).set(t,n):i[r.id]=n,e};return NC(a,{delete:function(e){var t=o(this);if(!Cb(e))return!1;var n=qC(e);return!0===n?JC(t).delete(e):n&&rb(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!Cb(e))return!1;var n=qC(e);return!0===n?JC(t).has(e):n&&rb(n,t.id)}}),NC(a,n?{get:function(e){var t=o(this);if(Cb(e)){var n=qC(e);return!0===n?JC(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},$C=$b.enforce,ew=!W.ActiveXObject&&`ActiveXObject`in W,tw=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Fce=KC(`WeakMap`,tw,QC);if(Gb&&ew){ZC=QC.getConstructor(tw,`WeakMap`,!0),BC.enable();var nw=Fce.prototype,rw=G(nw.delete),iw=G(nw.has),aw=G(nw.get),ow=G(nw.set);NC(nw,{delete:function(e){if(Cb(e)&&!zC(e)){var t=$C(this);return t.frozen||=new ZC,rw(this,e)||t.frozen.delete(e)}return rw(this,e)},has:function(e){if(Cb(e)&&!zC(e)){var t=$C(this);return t.frozen||=new ZC,iw(this,e)||t.frozen.has(e)}return iw(this,e)},get:function(e){if(Cb(e)&&!zC(e)){var t=$C(this);return t.frozen||=new ZC,iw(this,e)?aw(this,e):t.frozen.get(e)}return aw(this,e)},set:function(e,t){if(Cb(e)&&!zC(e)){var n=$C(this);n.frozen||=new ZC,iw(this,e)?ow(this,e,t):n.frozen.set(e,t)}else ow(this,e,t);return this}})}var sw=yb(`iterator`),cw=yb(`toStringTag`),lw=MC.values,uw=function(e,t){if(e){if(e[sw]!==lw)try{zb(e,sw,lw)}catch{e[sw]=lw}if(e[cw]||zb(e,cw,t),ox[t]){for(var n in MC)if(e[n]!==MC[n])try{zb(e,n,MC[n])}catch{e[n]=MC[n]}}}};for(var dw in ox)uw(W[dw]&&W[dw].prototype,dw);uw(lx,`DOMTokenList`);var fw=new WeakMap,pw=new WeakMap,mw=new WeakMap,hw=new WeakMap,gw=new WeakMap,_w=new WeakMap,vw=new WeakMap,yw=new WeakMap,bw=new WeakMap,xw=new WeakMap,Sw=new WeakMap,Cw=new WeakMap,ww=new WeakMap,Tw=new WeakMap,Ew=new WeakMap,Dw=new WeakMap,Ow=new WeakMap,kw=new WeakMap,Aw=new WeakMap,jw=new WeakMap,Mw=new WeakMap,Nw=new WeakMap,Pw=new WeakMap,Fw=new WeakMap,Iw=new WeakMap,Lw=Dx.find,Rw=!0;`find`in[]&&[,].find((function(){Rw=!1})),Jx({target:`Array`,proto:!0,forced:Rw},{find:function(e){return Lw(this,e,arguments.length>1?arguments[1]:void 0)}}),mS(`find`),Jx({global:!0},{globalThis:W});var zw=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`isindex`,`keygen`,`link`,`menuitem`,`meta`,`nextid`,`param`,`source`,`track`,`wbr`];Im&&(V.fn.css=Im),Hm&&(V.fn.append=Hm),Sm&&(V.fn.addClass=Sm),Cm&&(V.fn.removeClass=Cm),wm&&(V.fn.hasClass=wm),km&&(V.fn.on=km),$m&&(V.fn.focus=$m),Tm&&(V.fn.attr=Tm),Em&&(V.fn.removeAttr=Em),Pm&&(V.fn.hide=Pm),Fm&&(V.fn.show=Fm),Nm&&(V.fn.offset=Nm),jm&&(V.fn.width=jm),Mm&&(V.fn.height=Mm),Wm&&(V.fn.parent=Wm),Gm&&(V.fn.parents=Gm),Vm&&(V.fn.is=Vm),Dm&&(V.fn.dataset=Dm),Om&&(V.fn.val=Om),Bm&&(V.fn.text=Bm),zm&&(V.fn.html=zm),qm&&(V.fn.children=qm),Jm&&(V.fn.remove=Jm),Km&&(V.fn.find=Km),Lm&&(V.fn.each=Lm),Ym&&(V.fn.empty=Ym);var Bw,Vw,Hw=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Uw=function(e){return Ww(e)&&e.nodeType===1},Ww=function(e){var t=Hw(e);return!!t&&e instanceof t.Node},Gw=function(e){var t=e&&e.anchorNode&&Hw(e.anchorNode);return!!t&&e instanceof t.Selection},Kw=function(e){return Ww(e)&&e.nodeType===3},qw=function(e){return window.document.getElementById(e)??((window.document.activeElement?.shadowRoot)?.getElementById(e)||null)},Jw=function(e,t,n){for(var r,i=e.childNodes,a=i[t],o=t,s=!1,c=!1;(Ww(r=a)&&r.nodeType===8||Uw(a)&&a.childNodes.length===0||Uw(a)&&a.getAttribute(`contenteditable`)===`false`)&&(!s||!c);)o>=i.length?(s=!0,o=t-1,n=`backward`):o<0?(c=!0,o=t+1,n=`forward`):(a=i[o],t=o,o+=n===`forward`?1:-1);return[a,t]},Ice=function(e,t,n){return kC(Jw(e,t,n),1)[0]},Lce=function e(t){var n,r,i=``;if(Kw(t)&&t.nodeValue)return t.nodeValue;if(Uw(t)){try{for(var a=OC(Array.from(t.childNodes)),o=a.next();!o.done;o=a.next())i+=e(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}var s=getComputedStyle(t).getPropertyValue(`display`);s!==`block`&&s!==`list`&&s!==`table-row`&&t.tagName!==`BR`||(i+=`
18
+ `)}return i};function Yw(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid===`true`))for(var n=e.childNodes,r=n.length;r--;){var i=n[r],a=i.nodeType;a==3?t(i,e):a!=1&&a!=9&&a!=11||Yw(i,t)}}function Xw(e){if(e.length===0)return``;var t=e[0];return t.nodeType===Bw.ELEMENT_NODE?t.tagName.toLowerCase():``}(Vw=Bw||={})[Vw.ELEMENT_NODE=1]=`ELEMENT_NODE`,Vw[Vw.TEXT_NODE=3]=`TEXT_NODE`,Vw[Vw.CDATA_SECTION_NODE=4]=`CDATA_SECTION_NODE`,Vw[Vw.PROCESSING_INSTRUCTION_NODE=7]=`PROCESSING_INSTRUCTION_NODE`,Vw[Vw.COMMENT_NODE=8]=`COMMENT_NODE`,Vw[Vw.DOCUMENT_NODE=9]=`DOCUMENT_NODE`,Vw[Vw.DOCUMENT_TYPE_NODE=10]=`DOCUMENT_TYPE_NODE`,Vw[Vw.DOCUMENT_FRAGMENT_NODE=11]=`DOCUMENT_FRAGMENT_NODE`,globalThis.navigator!==void 0&&globalThis.window!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var Zw=typeof navigator<`u`&&/Mac OS X/.test(navigator.userAgent),Qw=typeof navigator<`u`&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);typeof navigator<`u`&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var $w=typeof navigator<`u`&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Rce=typeof navigator<`u`&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),zce=typeof navigator<`u`&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),eT=typeof navigator<`u`&&/Chrome/i.test(navigator.userAgent);typeof navigator<`u`&&/.*QQBrowser/.test(navigator.userAgent);var tT=!zce&&!Rce&&typeof globalThis<`u`&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges==`function`,K={getWindow:function(e){var t=Mw.get(e);if(!t)throw Error(`Unable to find a host window element for this editor`);return t},findKey:function(e,t){var n=jw.get(t);return n||(n=new jC,jw.set(t,n)),n},setNewKey:function(e){var t=new jC;jw.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=Ew.get(r);if(i==null){if(F.isEditor(r))return n;break}var a=Tw.get(r);if(a==null)break;n.unshift(a),r=i}throw Error(`Unable to find the path for Slate node: `+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=K.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return Ew.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var i=K.getParentNode(e,r);if(i==null)break;n.push(i),r=i}return n},getTopNode:function(e,t){var n=[K.findPath(e,t)[0]];return I.get(e,n)},toDOMNode:function(e,t){var n;if(F.isEditor(t))n=Dw.get(e);else{var r=K.findKey(e,t);n=kw.get(r)}if(!n)throw Error(`Cannot resolve a DOM node from Slate node: `+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){n===void 0&&(n={});var r,i=n.editable,a=i!==void 0&&i,o=K.toDOMNode(e,e);try{r=Uw(t)?t:t.parentElement}catch(e){if(!e.message.includes(`Permission denied to access property "nodeType"`))throw e}return!!r&&r.closest(`[data-slate-editor]`)===o&&(!a||r.isContentEditable||!!r.getAttribute(`data-slate-zero-width`))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,i=R.isBackward(t),a=K.toDOMPoint(e,n),o=R.isCollapsed(t)?a:K.toDOMPoint(e,r),s=K.getWindow(e).document.createRange(),c=kC(i?o:a,2),l=c[0],u=c[1],d=kC(i?a:o,2),f=d[0],p=d[1],m=!!(Uw(l)?l:l.parentElement).getAttribute(`data-slate-zero-width`),h=!!(Uw(f)?f:f.parentElement).getAttribute(`data-slate-zero-width`);return s.setStart(l,m?1:u),s.setEnd(f,h?1:p),s},toDOMPoint:function(e,t){var n,r,i,a=kC(F.node(e,t.path),1)[0],o=K.toDOMNode(e,a);F.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(o.querySelectorAll(`[data-slate-string], [data-slate-zero-width]`)),c=0;try{for(var l=OC(s),u=l.next();!u.done;u=l.next()){var d=u.value,f=d.childNodes[0];if(f!=null&&f.textContent!=null){var p=f.textContent.length,m=d.getAttribute(`data-slate-length`),h=c+(m==null?p:parseInt(m,10));if(t.offset<=h){i=[f,Math.min(p,Math.max(0,t.offset-c))];break}c=h}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!i)throw Error(`Cannot resolve a DOM point from Slate point: `+JSON.stringify(t));return i},toSlateNode:function(e,t){var n=Uw(t)?t:t.parentElement;n&&!n.hasAttribute(`data-slate-node`)&&(n=n.closest(`[data-slate-node]`));var r=n?Ow.get(n):null;if(!r)throw Error(`Cannot resolve a Slate node from DOM node: `+n);return r},findEventRange:function(e,t){`nativeEvent`in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,i=t.target;if(n==null||r==null)throw Error(`Cannot resolve a Slate range from a DOM event: `+t);var a,o=K.toSlateNode(e,t.target),s=K.findPath(e,o);if(F.isVoid(e,o)){var c=i.getBoundingClientRect(),l=e.isInline(o)?n-c.left<c.left+c.width-n:r-c.top<c.top+c.height-r,u=F.point(e,s,{edge:l?`start`:`end`}),d=l?F.before(e,u):F.after(e,u);if(d)return F.range(e,d)}var f=this.getWindow(e).document;if(f.caretRangeFromPoint)a=f.caretRangeFromPoint(n,r);else{var p=f.caretPositionFromPoint(n,r);p&&((a=f.createRange()).setStart(p.offsetNode,p.offset),a.setEnd(p.offsetNode,p.offset))}if(!a)throw Error(`Cannot resolve a Slate range from a DOM event: `+t);return K.toSlateRange(e,a,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,i,a,o,s,c=n.exactMatch,l=n.suppressThrow;if((Gw(t)?t.anchorNode:t.startContainer)&&(Gw(t)?(r=t.anchorNode,i=t.anchorOffset,a=t.focusNode,o=t.focusOffset,s=eT&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,i=t.startOffset,a=t.endContainer,o=t.endOffset,s=t.collapsed)),r==null||a==null||i==null||o==null)throw Error(`Cannot resolve a Slate range from DOM range: `+t);var u=K.toSlatePoint(e,[r,i],{exactMatch:c,suppressThrow:l});if(!u)return null;var d=s?u:K.toSlatePoint(e,[a,o],{exactMatch:c,suppressThrow:l});if(!d)return null;var f={anchor:u,focus:d};return R.isExpanded(f)&&R.isForward(f)&&Uw(a)&&F.void(e,{at:f.focus,mode:`highest`})&&(f=F.unhangRange(e,f,{voids:!0})),f},toSlatePoint:function(e,t,n){var r,i=n.exactMatch,a=n.suppressThrow,o=kC(i?t:function(e){var t,n=kC(e,2),r=n[0],i=n[1];if(Uw(r)&&r.childNodes.length){var a=i===r.childNodes.length,o=a?i-1:i;for(r=(t=kC(Jw(r,o,a?`backward`:`forward`),2))[0],a=(o=t[1])<i;Uw(r)&&r.childNodes.length;){var s=a?r.childNodes.length-1:0;r=Ice(r,s,a?`backward`:`forward`)}i=a&&r.textContent!=null?r.textContent.length:0}return[r,i]}(t),2),s=o[0],c=o[1],l=s.parentNode,u=null,d=0;if(l){var f=l.closest(`[data-slate-void="true"]`),p=l.closest(`[data-slate-leaf]`),m=null;if(p){u=p.closest(`[data-slate-node="text"]`);var h=K.getWindow(e).document.createRange();h.setStart(u,0),h.setEnd(s,c);var g=h.cloneContents();AC(AC([],kC(lm(g.querySelectorAll(`[data-slate-zero-width]`)))),kC(lm(g.querySelectorAll(`[contenteditable=false]`)))).forEach((function(e){e.parentNode.removeChild(e)})),d=g.textContent.length,m=u}else f&&((p=f.querySelector(`[data-slate-leaf]`))?(u=p.closest(`[data-slate-node="text"]`),d=(m=p).textContent.length,m.querySelectorAll(`[data-slate-zero-width]`).forEach((function(e){d-=e.textContent.length}))):d=1);m&&d===m.textContent.length&&(l.hasAttribute(`data-slate-zero-width`)||Qw&&(r=m.textContent)!=null&&r.endsWith(`
19
+ `))&&d--}if(!u){if(a)return null;throw Error(`Cannot resolve a Slate point from DOM point: `+t)}var _=K.toSlateNode(e,u);return{path:K.findPath(e,_),offset:d}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return F.hasPath(e,n.path)&&F.hasPath(e,r.path)},getNodeType:function(e){return P.isElement(e)?e.type:``},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return I.string(e)})).join(``)},getSelectedElems:function(e){var t,n,r=[],i=F.nodes(e,{universal:!0});try{for(var a=OC(i),o=a.next();!o.done;o=a.next()){var s=kC(o.value,1)[0];P.isElement(s)&&r.push(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=kC(F.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1)[0];return r==null?null:r[0]},getSelectedTextNode:function(e){var t=kC(F.nodes(e,{match:function(e){return z.isText(e)},universal:!0}),1)[0];return t==null?null:t[0]},isNodeSelected:function(e,t){var n=kC(F.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return n!=null&&kC(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(F.isEnd(e,n.anchor,t)||F.isEnd(e,n.focus,t))},getTextarea:function(e){var t=fw.get(e);if(t==null)throw Error(`Cannot find textarea instance by editor`);return t},getToolbar:function(e){return hw.get(e)||null},getHoverbar:function(e){return _w.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!=`number`||n<=0)return 1/0;var i=n-e.getText().replace(/\r|\n|(\r\n)/g,``).length;return i<=0&&r&&r(e),i},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,i,a=K.getTextarea(e).$textArea?.[0].childNodes;if(a)try{for(var o=OC(Array.from(a)),s=o.next();!s.done;s=o.next()){var c=s.value;if(c.nodeType!==3)break;c.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}var l=F.nodes(e,{match:function(t){return!(!P.isElement(t)||e.isInline(t))},universal:!0});try{for(var u=OC(l),d=u.next();!d.done;d=u.next()){var f=d.value;if(f!=null){var p=f[0];Yw(K.toDOMNode(e,p),(function(e,t){var n=V(t);n.attr(`data-slate-string`)||n.attr(`data-slate-zero-width`)||n.attr(`data-w-e-reserve`)||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:`paragraph`,children:[{text:``}]}},isSelectedVoidNode:function(e){var t,n,r=F.nodes(e,{match:function(t){return e.isVoid(t)}}),i=0;try{for(var a=OC(r),o=a.next();!o.done;o=a.next())o.value,i++}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||R.isExpanded(t))return!1;var n=K.getSelectedNodeByType(e,`paragraph`);if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===``||void 0)},isEmptyPath:function(e,t){var n=F.node(e,t);if(n==null)return!1;var r=kC(n,1)[0].children;return r.length===1&&r[0].text===``}},Bce=1,nT={},rT={},Vce=Dx.filter;Jx({target:`Array`,proto:!0,forced:!ZS(`filter`)},{filter:function(e){return Vce(this,e,arguments.length>1?arguments[1]:void 0)}});var iT=`
20
+ \v\f\r \xA0               \u2028\u2029`,aT=G(``.replace),oT=`[`+iT+`]`,Hce=RegExp(`^`+oT+oT+`*`),Uce=RegExp(oT+oT+`*$`),sT=function(e){return function(t){var n=eS(tb(t));return 1&e&&(n=aT(n,Hce,``)),2&e&&(n=aT(n,Uce,``)),n}},Wce={start:sT(1),end:sT(2),trim:sT(3)},Gce=nx.PROPER,Kce=Wce.trim;Jx({target:`String`,proto:!0,forced:function(e){return pb((function(){return!!iT[e]()||`​…᠎`[e]()!==`​…᠎`||Gce&&iT[e].name!==e}))}(`trim`)},{trim:function(){return Kce(this)}});var cT=[],lT={};function qce(e,t,n){var r=n.isInline(e)?`span`:`div`;return`<`+r+`>`+t+`</`+r+`>`}var uT,dT,fT,pT,mT=W.Promise,hT=yb(`species`),gT=function(e){var t=ob(e),n=Lb.f;Sb&&t&&!t[hT]&&n(t,hT,{configurable:!0,get:function(){return this}})},_T=W.TypeError,vT=yb(`species`),yT=function(e,t){var n,r=Db(e).constructor;return r===void 0||(n=Db(r)[vT])==null?t:function(e){if(Sx(e))return e;throw _T(Mb(e)+` is not a constructor`)}(n)},bT=G([].slice),xT=/(?:ipad|iphone|ipod).*applewebkit/i.test(sb),ST=ix(W.process)==`process`,CT=W.setImmediate,wT=W.clearImmediate,TT=W.process,ET=W.Dispatch,DT=W.Function,OT=W.MessageChannel,kT=W.String,AT=0,jT={};try{uT=W.location}catch{}var MT=function(e){if(rb(jT,e)){var t=jT[e];delete jT[e],t()}},NT=function(e){return function(){MT(e)}},PT=function(e){MT(e.data)},FT=function(e){W.postMessage(kT(e),uT.protocol+`//`+uT.host)};CT&&wT||(CT=function(e){var t=bT(arguments,1);return jT[++AT]=function(){pC(ab(e)?e:DT(e),void 0,t)},dT(AT),AT},wT=function(e){delete jT[e]},ST?dT=function(e){TT.nextTick(NT(e))}:ET&&ET.now?dT=function(e){ET.now(NT(e))}:OT&&!xT?(pT=(fT=new OT).port2,fT.port1.onmessage=PT,dT=dx(pT.postMessage,pT)):W.addEventListener&&ab(W.postMessage)&&!W.importScripts&&uT&&uT.protocol!==`file:`&&!pb(FT)?(dT=FT,W.addEventListener(`message`,PT,!1)):dT=`onreadystatechange`in Tb(`script`)?function(e){aS.appendChild(Tb(`script`)).onreadystatechange=function(){aS.removeChild(this),MT(e)}}:function(e){setTimeout(NT(e),0)});var IT,LT,RT,zT,BT,VT,HT,UT,WT={set:CT,clear:wT},GT=/ipad|iphone|ipod/i.test(sb)&&W.Pebble!==void 0,KT=/web0s(?!.*chrome)/i.test(sb),qT=Lx.f,JT=WT.set,YT=W.MutationObserver||W.WebKitMutationObserver,XT=W.document,ZT=W.process,QT=W.Promise,$T=qT(W,`queueMicrotask`),eE=$T&&$T.value;eE||(IT=function(){var e,t;for(ST&&(e=ZT.domain)&&e.exit();LT;){t=LT.fn,LT=LT.next;try{t()}catch(e){throw LT?zT():RT=void 0,e}}RT=void 0,e&&e.enter()},xT||ST||KT||!YT||!XT?!GT&&QT&&QT.resolve?((HT=QT.resolve(void 0)).constructor=QT,UT=dx(HT.then,HT),zT=function(){UT(IT)}):ST?zT=function(){ZT.nextTick(IT)}:(JT=dx(JT,W),zT=function(){JT(IT)}):(BT=!0,VT=XT.createTextNode(``),new YT(IT).observe(VT,{characterData:!0}),zT=function(){VT.data=BT=!BT}));var tE,nE,rE,iE,aE=eE||function(e){var t={fn:e,next:void 0};RT&&(RT.next=t),LT||(LT=t,zT()),RT=t},Jce=function(e){var t,n;this.promise=new e((function(e,r){if(t!==void 0||n!==void 0)throw TypeError(`Bad Promise constructor`);t=e,n=r})),this.resolve=Nb(t),this.reject=Nb(n)},oE={f:function(e){return new Jce(e)}},sE=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Yce=typeof window==`object`,cE=WT.set,Xce=yb(`species`),lE=`Promise`,uE=$b.getterFor(lE),Zce=$b.set,Qce=$b.getterFor(lE),dE=mT&&mT.prototype,fE=mT,pE=dE,mE=W.TypeError,hE=W.document,gE=W.process,_E=oE.f,$ce=_E,ele=!!(hE&&hE.createEvent&&W.dispatchEvent),vE=ab(W.PromiseRejectionEvent),yE=!1,bE=qx(lE,(function(){var e=Ub(fE),t=e!==String(fE);if(!t&&fb===66)return!0;if(fb>=51&&/native code/.test(e))return!1;var n=new fE((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Xce]=r,!(yE=n.then((function(){}))instanceof r)||!t&&Yce&&!vE})),tle=bE||!OS((function(e){fE.all(e).catch((function(){}))})),xE=function(e){var t;return!(!Cb(e)||!ab(t=e.then))&&t},SE=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;aE((function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,c,l=n[a++],u=i?l.ok:l.fail,d=l.resolve,f=l.reject,p=l.domain;try{u?(i||(e.rejection===2&&rle(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(mE(`Promise-chain cycle`)):(s=xE(o))?kb(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&nle(e)}))}},CE=function(e,t,n){var r,i;ele?((r=hE.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),W.dispatchEvent(r)):r={promise:t,reason:n},!vE&&(i=W[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=W.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},nle=function(e){kb(cE,W,(function(){var t,n=e.facade,r=e.value;if(wE(e)&&(t=sE((function(){ST?gE.emit(`unhandledRejection`,r,n):CE(`unhandledrejection`,n,r)})),e.rejection=ST||wE(e)?2:1,t.error))throw t.value}))},wE=function(e){return e.rejection!==1&&!e.parent},rle=function(e){kb(cE,W,(function(){var t=e.facade;ST?gE.emit(`rejectionHandled`,t):CE(`rejectionhandled`,t,e.value)}))},TE=function(e,t,n){return function(r){e(t,r,n)}},EE=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,SE(e,!0))},DE=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw mE(`Promise can't be resolved itself`);var r=xE(t);r?aE((function(){var n={done:!1};try{kb(r,t,TE(DE,n,e),TE(EE,n,e))}catch(t){EE(n,t,e)}})):(e.value=t,e.state=1,SE(e,!1))}catch(t){EE({done:!1},t,e)}}};if(bE&&(pE=(fE=function(e){WC(this,pE),Nb(e),kb(tE,this);var t=uE(this);try{e(TE(DE,t),TE(EE,t))}catch(e){EE(t,e)}}).prototype,(tE=function(e){Zce(this,{type:lE,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=NC(pE,{then:function(e,t){var n=Qce(this),r=n.reactions,i=_E(yT(this,fE));return i.ok=!ab(e)||e,i.fail=ab(t)&&t,i.domain=ST?gE.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&SE(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),nE=function(){var e=new tE,t=uE(e);this.promise=e,this.resolve=TE(DE,t),this.reject=TE(EE,t)},oE.f=_E=function(e){return e===fE||e===rE?new nE(e):$ce(e)},ab(mT)&&dE!==Object.prototype)){iE=dE.then,yE||(rx(dE,`then`,(function(e,t){var n=this;return new fE((function(e,t){kb(iE,n,e,t)})).then(e,t)}),{unsafe:!0}),rx(dE,`catch`,pE.catch,{unsafe:!0}));try{delete dE.constructor}catch{}US&&US(dE,pE)}Jx({global:!0,wrap:!0,forced:bE},{Promise:fE}),HS(fE,lE,!1),gT(lE),rE=ob(lE),Jx({target:lE,stat:!0,forced:bE},{reject:function(e){var t=_E(this);return kb(t.reject,void 0,e),t.promise}}),Jx({target:lE,stat:!0,forced:bE},{resolve:function(e){return function(e,t){if(Db(e),Cb(t)&&t.constructor===e)return t;var n=oE.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Jx({target:lE,stat:!0,forced:tle},{all:function(e){var t=this,n=_E(t),r=n.resolve,i=n.reject,a=sE((function(){var n=Nb(t.resolve),a=[],o=0,s=1;UC(e,(function(e){var c=o++,l=!1;s++,kb(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=_E(t),r=n.reject,i=sE((function(){var i=Nb(t.resolve);UC(e,(function(e){kb(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var OE=eC.UNSUPPORTED_Y,ile=Math.min,kE=[].push,ale=G(/./.exec),AE=G(kE),jE=G(``.slice);function ME(e){Promise.resolve().then(e)}function NE(e,t){return P.isElement(e)?function(e,t){var n=e.type,r=n===void 0?``:n,i=e.children,a=i===void 0?[]:i,o=F.isVoid(t,e),s=``;o||(s=a.map((function(e){return NE(e,t)})).join(``));var c=function(e){return lT[e]||qce}(r)(e,s,t),l=``;if(l=typeof c==`string`?c:c.html||``,o||cT.forEach((function(t){return l=t(e,l)})),typeof c==`string`)return l;var u=c.prefix,d=u===void 0?``:u,f=c.suffix,p=f===void 0?``:f;return d&&(l=d+l),p&&(l+=p),l}(e,t):function(e,t){var n=e.text;if(n==null)throw Error(`Current node is not slate Text `+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g,` &nbsp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/®/g,`&reg;`).replace(/©/g,`&copy;`).replace(/™/g,`&trade;`)}(r);var i=K.getParentsNodes(t,e).some((function(e){return K.getNodeType(e)===`pre`}));if(i||(r=r.replace(/\r\n|\r|\n/g,`<br>`)),i&&(r=r.replace(/&nbsp;/g,` `)),r===``){var a=K.getParentNode(null,e);if(!a||a.children.length!==0)return r;r=`<br>`}return cT.forEach((function(t){return r=t(e,r)})),r}(e,t)}function PE(e){return`w-e-element-`+e}hC(`split`,(function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r=eS(tb(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!hS(e))return kb(t,r,e,i);for(var a,o,s,c=[],l=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),u=0,d=new RegExp(e.source,l+`g`);(a=kb(lC,d,r))&&!((o=d.lastIndex)>u&&(AE(c,jE(r,u,a.index)),a.length>1&&a.index<r.length&&pC(kE,c,PC(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&ale(d,``)||AE(c,``):AE(c,jE(r,u)),c.length>i?PC(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:kb(t,this,e,n)}:t,[function(t,n){var i=tb(this),a=t==null?void 0:Pb(t,e);return a?kb(a,t,i,n):kb(r,eS(i),t,n)},function(e,i){var a=Db(this),o=eS(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=yT(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(OE?`g`:`y`),d=new c(OE?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return yC(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=OE?0:m;var g,_=yC(d,OE?jE(o,m):o);if(_===null||(g=ile(hx(d.lastIndex+(OE?m:0)),o.length))===p)m=gC(o,m,l);else{if(AE(h,jE(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(AE(h,_[v]),h.length===f)return h;m=p=g}}return AE(h,jE(o,p)),h}]}),!!pb((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),OE);var FE=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},IE=function(e,t,n){var r=K.toDOMRange(e,t).getBoundingClientRect(),i=K.toDOMRange(e,n).getBoundingClientRect();return FE(r,i)&&FE(i,r)},LE=[`span`,`b`,`strong`,`i`,`em`,`s`,`strike`,`u`,`font`,`sub`,`sup`],RE=[],zE=[],BE={},ole=Lb.f,sle=Wx.f,cle=$b.enforce,lle=yb(`match`),VE=W.RegExp,HE=VE.prototype,ule=W.SyntaxError,dle=G(tS),fle=G(HE.exec),UE=G(``.charAt),WE=G(``.replace),GE=G(``.indexOf),KE=G(``.slice),qE=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,JE=/a/g,YE=/a/g,XE=new VE(JE)!==JE,ZE=eC.MISSED_STICKY,QE=eC.UNSUPPORTED_Y;if(qx(`RegExp`,Sb&&(!XE||ZE||tC||nC||pb((function(){return YE[lle]=!1,VE(JE)!=JE||VE(YE)==YE||VE(JE,`i`)!=`/a/i`}))))){for(var $E=function(e,t){var n,r,i,a,o,s,c=Ab(HE,this),l=hS(e),u=t===void 0,d=[],f=e;if(!c&&l&&u&&e.constructor===$E)return e;if((l||Ab(HE,e))&&(e=e.source,u&&(t=`flags`in f?f.flags:dle(f))),e=e===void 0?``:eS(e),t=t===void 0?``:eS(t),f=e,tC&&`dotAll`in JE&&(r=!!t&&GE(t,`s`)>-1)&&(t=WE(t,/s/g,``)),n=t,ZE&&`sticky`in JE&&(i=!!t&&GE(t,`y`)>-1)&&QE&&(t=WE(t,/y/g,``)),nC&&(a=function(e){for(var t,n=e.length,r=0,i=``,a=[],o={},s=!1,c=!1,l=0,u=``;r<=n;r++){if((t=UE(e,r))===`\\`)t+=UE(e,++r);else if(t===`]`)s=!1;else if(!s)switch(!0){case t===`[`:s=!0;break;case t===`(`:fle(qE,KE(e,r+1))&&(r+=2,c=!0),i+=t,l++;continue;case t===`>`&&c:if(u===``||rb(o,u))throw new ule(`Invalid capture group name`);o[u]=!0,a[a.length]=[u,l],c=!1,u=``;continue}c?u+=t:i+=t}return[i,a]}(e),e=a[0],d=a[1]),o=GC(VE(e,t),c?this:HE,$E),(r||i||d.length)&&(s=cle(o),r&&(s.dotAll=!0,s.raw=$E(function(e){for(var t,n=e.length,r=0,i=``,a=!1;r<=n;r++)(t=UE(e,r))===`\\`?i+=t+UE(e,++r):a||t!==`.`?(t===`[`?a=!0:t===`]`&&(a=!1),i+=t):i+=`[\\s\\S]`;return i}(e),n)),i&&(s.sticky=!0),d.length&&(s.groups=d)),e!==f)try{zb(o,`source`,f===``?`(?:)`:f)}catch{}return o},eD=function(e){e in $E||ole($E,e,{configurable:!0,get:function(){return VE[e]},set:function(t){VE[e]=t}})},tD=sle(VE),nD=0;tD.length>nD;)eD(tD[nD++]);HE.constructor=$E,$E.prototype=HE,rx(W,`RegExp`,$E)}gT(`RegExp`);var rD=RegExp(`\xA0`,`g`);function iD(e){return e.replace(rD,` `)}function aD(e,t){var n=e.length;if(n){var r=e[n-1];if(z.isText(r)){var i=Object.keys(r);if(i.length===1&&i[0]===`text`)return r.text+=t,!0}}return!1}function oD(e,t,n){return{type:`paragraph`,children:[{text:V(e).text().replace(/\s+/gm,` `)}]}}function sD(e,t){var n=function(e,t){var n=[];if(e.attr(`data-w-e-is-void`)!=null)return n;var r=e[0].childNodes;return r.length===1&&r[0].nodeName===`BR`?(n.push({text:``}),n):(r.forEach((function(e){if(e.nodeType!==Bw.ELEMENT_NODE){if(e.nodeType===Bw.TEXT_NODE){var r=e.textContent||``;if(r.trim()===``&&r.indexOf(`
21
+ `)>=0)return;r&&(r=iD(r),aD(n,r)||n.push({text:r}))}}else{if(e.nodeName===`BR`)return void(aD(n,`
22
+ `)||n.push({text:`
23
+ `}));var i=lD(V(e),t);Array.isArray(i)?i.forEach((function(e){return n.push(e)})):n.push(i)}})),n)}(e,t),r=function(e){for(var t in BE)if(e[0].matches(t))return BE[t];return oD}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){F.isVoid(t,r)||(n.length===0&&(r.children=[{text:e.text().replace(/\s+/gm,` `)}]),zE.forEach((function(n){r=n(e[0],r,t)})))})),r}function cD(e,t){e.parents(`pre`).length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm,` `).replace(/<br>/g,`
24
+ `));var n=e[0].textContent||``;n=function(e){return e.replace(/&nbsp;/g,` `).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`).replace(/&reg;/g,`®`).replace(/&copy;/g,`©`).replace(/&trade;/g,`™`).replace(/&quot;/g,`"`)}(n);var r={text:n=iD(n)};return zE.forEach((function(n){r=n(e[0],r,t)})),r}function lD(e,t){RE.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=V(r(e[0])))}));var n=Xw(e);return n===`span`?e.attr(`data-w-e-type`)?sD(e,t):cD(e,t):n===`code`?Xw(e.parent())===`pre`?sD(e,t):cD(e,t):LE.includes(n)?cD(e,t):sD(e,t)}function uD(e,t,n){var r=V(n);return!!r.attr(t)||(r.attr(t,`true`),e.on(`destroyed`,(function(){r.removeAttr(t)})),!1)}function dD(e,t){t===void 0&&(t=``);var n=[];t===``&&(t=`<p><br></p>`),t.indexOf(`<`)!==0&&(t=t.split(/\n/).map((function(e){return`<p>`+e+`</p>`})).join(``));var r=V(`<div>`+t+`</div>`);return Array.from(r.children()).forEach((function(t){var r=lD(V(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var fD=Lb.f,pD=BC.fastKey,mD=$b.set,hD=$b.getterFor;KC(`Set`,(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,n,r){var i=e((function(e,i){WC(e,a),mD(e,{type:t,index:dS(null),first:void 0,last:void 0,size:0}),Sb||(e.size=0),i!=null&&UC(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=hD(t),s=function(e,t,n){var r,i,a=o(e),s=c(e,t);return s?s.value=n:(a.last=s={index:i=pD(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||=s,r&&(r.next=s),Sb?a.size++:e.size++,i!==`F`&&(a.index[i]=s)),e},c=function(e,t){var n,r=o(e),i=pD(t);if(i!==`F`)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return NC(a,{clear:function(){for(var e=o(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&=n.previous.next=void 0,delete t[n.index],n=n.next;e.first=e.last=void 0,Sb?e.size=0:this.size=0},delete:function(e){var t=this,n=o(t),r=c(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),Sb?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=o(this),r=dx(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!c(this,e)}}),NC(a,n?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return s(this,e===0?0:e,t)}}:{add:function(e){return s(this,e=e===0?0:e,e)}}),Sb&&fD(a,`size`,{get:function(){return o(this).size}}),i},setStrong:function(e,t,n){var r=t+` Iterator`,i=hD(t),a=hD(r);qS(e,t,(function(e,t){mD(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?t==`keys`?{value:n.key,done:!1}:t==`values`?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?`entries`:`values`,!n,!0),gT(t)}});var gD=new Set([`doctype`,`!doctype`,`meta`,`script`,`style`,`link`,`frame`,`iframe`,`title`,`svg`]);function _D(e,t){e.isInline(t)?(e.insertNode(t),t.type===`link`&&e.insertFragment([{text:``}])):B.insertNodes(e,t,{mode:`highest`})}var vD=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=kC(R.edges(n),2),i=r[0],a=r[1],o=F.void(t,{at:i.path}),s=F.void(t,{at:a.path});if(!R.isCollapsed(n)||o){var c=K.toDOMRange(t,n),l=c.cloneContents(),u=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&e.textContent.trim()!==``&&(u=e)})),s){var d=kC(s,1)[0],f=c.cloneRange(),p=K.toDOMNode(t,d);f.setEndAfter(p),l=f.cloneContents()}if(o&&(u=l.querySelector(`[data-slate-spacer]`)),Array.from(l.querySelectorAll(`[data-slate-zero-width]`)).forEach((function(e){e.textContent=e.getAttribute(`data-slate-zero-width`)===`n`?`
25
+ `:``})),Kw(u)){var m=u.ownerDocument.createElement(`span`);m.style.whiteSpace=`pre`,m.appendChild(u),l.appendChild(m),u=m}var h=t.getFragment(),g=JSON.stringify(h),_=window.btoa(encodeURIComponent(g));u.setAttribute(`data-slate-fragment`,_),e.setData(`application/x-slate-fragment`,_);var v=l.ownerDocument.createElement(`div`);return v.appendChild(l),v.setAttribute(`hidden`,`true`),l.ownerDocument.body.appendChild(v),e.setData(`text/html`,v.innerHTML),e.setData(`text/plain`,Lce(v)),l.ownerDocument.body.removeChild(v),e}}},t.insertData=function(e){var r,i,a=e.getData(`application/x-slate-fragment`);if(a){var o=decodeURIComponent(window.atob(a)),s=JSON.parse(o);t.insertFragment(s)}else{var c=e.getData(`text/plain`),l=e.getData(`text/html`);if(l)t.dangerouslyInsertHtml(l);else if(c){var u=c.split(/\r\n|\r|\n/),d=!1;try{for(var f=OC(u),p=f.next();!p.done;p=f.next()){var m=p.value;d&&B.splitNodes(t,{always:!0}),n(m),d=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}}},t},yD=function(e){return e!=null},bD={object:!0,function:!0,undefined:!0},xD=/^\s*class[\s{/}]/,SD=Function.prototype.toString,CD=function(e){return!!function(e){if(typeof e!=`function`||!hasOwnProperty.call(e,`length`))return!1;try{if(typeof e.length!=`number`||typeof e.call!=`function`||typeof e.apply!=`function`)return!1}catch{return!1}return!function(e){if(!function(e){return!!yD(e)&&hasOwnProperty.call(bD,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch{return!1}}(e)}(e)&&!xD.test(SD.call(e))},wD=function(e){return e!=null},TD=Object.keys,ED=function(){try{return!0}catch{return!1}}()?Object.keys:function(e){return TD(wD(e)?Object(e):e)},DD=function(e){if(!wD(e))throw TypeError(`Cannot use null or undefined`);return e},OD=Math.max,kD=function(){var e,t=Object.assign;return typeof t==`function`&&(t(e={foo:`raz`},{bar:`dwa`},{trzy:`trzy`}),e.foo+e.bar+e.trzy===`razdwatrzy`)}()?Object.assign:function(e,t){var n,r,i,a=OD(arguments.length,2);for(e=Object(DD(e)),i=function(r){try{e[r]=t[r]}catch(e){n||=e}},r=1;r<a;++r)ED(t=arguments[r]).forEach(i);if(n!==void 0)throw n;return e},AD=Array.prototype.forEach,jD=Object.create,MD=function(e,t){for(var n in e)t[n]=e[n]},ND=function(e){var t=jD(null);return AD.call(arguments,(function(e){wD(e)&&MD(Object(e),t)})),t},PD=`razdwatrzy`,FD=String.prototype.indexOf,ID=typeof PD.contains==`function`&&!0===PD.contains(`dwa`)&&!1===PD.contains(`foo`)?String.prototype.contains:function(e){return FD.call(this,e,arguments[1])>-1},LD=Gy((function(e){var t=e.exports=function(e,t){var n,r,i,a,o;return arguments.length<2||typeof e!=`string`?(a=t,t=e,e=null):a=arguments[2],yD(e)?(n=ID.call(e,`c`),r=ID.call(e,`e`),i=ID.call(e,`w`)):(n=i=!0,r=!1),o={value:t,configurable:n,enumerable:r,writable:i},a?kD(ND(a),o):o};t.gs=function(e,t,n){var r,i,a,o;return typeof e==`string`?a=arguments[3]:(a=n,n=t,t=e,e=null),yD(t)?CD(t)?yD(n)?CD(n)||(a=n,n=void 0):n=void 0:(a=t,t=n=void 0):t=void 0,yD(e)?(r=ID.call(e,`c`),i=ID.call(e,`e`)):(r=!0,i=!1),o={get:t,set:n,configurable:r,enumerable:i},a?kD(ND(a),o):o}})),RD=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function`);return e},zD=Gy((function(e,t){var n,r,i,a,o,s,c,l=Function.prototype.apply,u=Function.prototype.call,d=Object.create,f=Object.defineProperty,p=Object.defineProperties,m=Object.prototype.hasOwnProperty,h={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return RD(t),m.call(this,`__ee__`)?n=this.__ee__:(n=h.value=d(null),f(this,`__ee__`,h),h.value=null),n[e]?typeof n[e]==`object`?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,a;return RD(t),a=this,n.call(this,e,r=function(){i.call(a,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},i=function(e,t){var n,r,i,a;if(RD(t),!m.call(this,`__ee__`)||!(n=this.__ee__)[e])return this;if(typeof(r=n[e])==`object`)for(a=0;i=r[a];++a)i!==t&&i.__eeOnceListener__!==t||(r.length===2?n[e]=r[a?0:1]:r.splice(a,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},a=function(e){var t,n,r,i,a;if(m.call(this,`__ee__`)&&(i=this.__ee__[e]))if(typeof i==`object`){for(n=arguments.length,a=Array(n-1),t=1;t<n;++t)a[t-1]=arguments[t];for(i=i.slice(),t=0;r=i[t];++t)l.call(r,this,a)}else switch(arguments.length){case 1:u.call(i,this);break;case 2:u.call(i,this,arguments[1]);break;case 3:u.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,a=Array(n-1),t=1;t<n;++t)a[t-1]=arguments[t];l.call(i,this,a)}},o={on:n,once:r,off:i,emit:a},s={on:LD(n),once:LD(r),off:LD(i),emit:LD(a)},c=p({},s),e.exports=t=function(e){return e==null?d(c):p(Object(e),s)},t.methods=o}));function BD(e){var t=Fw.get(e);return t??(t=zD(),Fw.set(e,t)),t}var VD=new WeakMap;function HD(e,t){var n=VD.get(e);n??(n=new Set,VD.set(e,n)),n.add(t)}function UD(e){return VD.get(e)||new Set}function WD(e){VD.set(e,new Set)}function GD(e){var t=K.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),i=t.offset();return{top:i.top,left:i.left,width:n,height:r}}function KD(e){var t={top:`0`,left:`0`},n=e.selection;if(n==null)return t;var r=GD(e);if(r==null)return t;var i=r.top,a=r.left,o=r.width,s=r.height,c=K.toDOMRange(e,n).getClientRects()[0];if(c==null)return t;c.width;var l=c.height,u={},d=c.top-i,f=c.left-a;if(f>o/2?u.right=o-f+5+`px`:u.left=f+5+`px`,d>s/2)u.bottom=s-d+5+`px`;else{var p=d+l;p<0&&(p=0),u.top=p+5+`px`}return u}function qD(e,t,n){n===void 0&&(n=`modal`);var r={top:`0`,left:`0`};if(e.selection==null)return r;var i=P.isElement(t)&&e.isVoid(t),a=P.isElement(t)&&e.isInline(t),o=Aw.get(t);if(o==null)return r;var s=o.getBoundingClientRect(),c=s.top,l=s.left,u=s.height,d=s.width;if(i){var f=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(r==null||++n>1e4)break;var i=r.nodeName;if(r.nodeType===1){var a=i.toLowerCase();if(zw.includes(a)||a===`iframe`||a===`video`)return r;var o=r.children||[],s=o.length;if(s)for(var c=s-1;c>=0;c--)t.push(o[c])}}return null}(o);if(f!=null){var p=f.getBoundingClientRect();c=p.top,u=p.height}}var m=GD(e);if(m==null)return r;var h,g=m.top,_=m.left,v=m.width,y=m.height,b={},x=c-g,S=l-_;if(n===`bar`)return b.left=S+`px`,x>40?b.bottom=y-x+5+`px`:b.top=x+u+5+`px`,b;if(n===`modal`)return i?a?S>(v-d)/2?b.right=v-S+5+`px`:b.left=S+d+5+`px`:b.left=`20px`:b.left=S+`px`,i?((h=x)<0&&(h=0),b.top=h+`px`):x>(y-u)/2?b.bottom=y-x+5+`px`:((h=x+u)<0&&(h=0),b.top=h+5+`px`),b;throw Error(`type '`+n+`' is invalid`)}function JD(e,t){ME((function(){var n=GD(e);if(n!=null){var r,i=n.top,a=n.left,o=n.width,s=n.height,c=t.offset(),l=c.top,u=c.left,d=t.width(),f=t.height(),p=l-i,m=u-a,h=t.attr(`style`);if(h.indexOf(`top`)>=0&&(r=p+f-s)>0){var g=t.css(`top`),_=parseInt(g.toString())-r;_<0&&(_=0),t.css(`top`,_+`px`)}if(h.indexOf(`bottom`)>=0&&l<0){var v=t.css(`bottom`),y=parseInt(v.toString())-Math.abs(l);t.css(`bottom`,y+`px`)}if(h.indexOf(`left`)>=0&&(r=m+d-o)>0){var b=t.css(`left`),x=parseInt(b.toString())-r;x<0&&(x=0),t.css(`left`,x+`px`)}if(h.indexOf(`right`)>=0&&u<0){var S=t.css(`right`),C=parseInt(S.toString())-Math.abs(u);t.css(`right`,C+`px`)}}}))}var YD=ZS(`slice`),XD=yb(`species`),ZD=W.Array,QD=Math.max;Jx({target:`Array`,proto:!0,forced:!YD},{slice:function(e,t){var n,r,i,a=Fx(this),o=gx(a),s=Rx(e,o),c=Rx(t===void 0?o:t,o);if(_x(a)&&(n=a.constructor,(Sx(n)&&(n===ZD||_x(n.prototype))||Cb(n)&&(n=n[XD])===null)&&(n=void 0),n===ZD||n===void 0))return bT(a,s,c);for(r=new(n===void 0?ZD:n)(QD(c-s,0)),i=0;s<c;s++,i++)s in a&&xS(r,i,a[s]);return r.length=i,r}});var $D=Lx.f,eO=G(``.startsWith),tO=G(``.slice),nO=Math.min,rO=_S(`startsWith`);Jx({target:`String`,proto:!0,forced:!(!rO&&function(){var e=$D(String.prototype,`startsWith`);return e&&!e.writable}())&&!rO},{startsWith:function(e){var t=eS(tb(this));gS(e);var n=hx(nO(arguments.length>1?arguments[1]:void 0,t.length)),r=eS(e);return eO?eO(t,r,n):tO(t,n,n+r.length)===r}});var iO=Object.assign,aO=Object.defineProperty,oO=G([].concat),sO=!iO||pb((function(){if(Sb&&iO({b:1},iO(aO({},`a`,{enumerable:!0,get:function(){aO(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r=`abcdefghijklmnopqrst`;return e[n]=7,r.split(``).forEach((function(e){t[e]=e})),iO({},e)[n]!=7||Yx(iO({},t)).join(``)!=r}))?function(e,t){for(var n=nb(e),r=arguments.length,i=1,a=Gx.f,o=Px.f;r>i;)for(var s,c=px(arguments[i++]),l=a?oO(Yx(c),a(c)):Yx(c),u=l.length,d=0;u>d;)s=l[d++],Sb&&!kb(o,c,s)||(n[s]=c[s]);return n}:iO;Jx({target:`Object`,stat:!0,forced:Object.assign!==sO},{assign:sO});var cO=[`props`,`attrs`,`style`,`dataset`,`on`,`hook`];function lO(e){var t=e.data,n=t===void 0?{}:t,r=e.children,i=r===void 0?[]:r;Object.keys(n).forEach((function(t){var r,i,a=n[t];if(t!==`key`){if(!cO.includes(t)){if(t.startsWith(`data-`)){var o=t.slice(5);o=o_(o),function(e,t){e.data??={};var n=e.data;n.dataset??={},Object.assign(n.dataset,t)}(e,((r={})[o]=a,r)),delete n[t];return}(function(e,t){e.data??={};var n=e.data;n.props??={},Object.assign(n.props,t)})(e,(i={},i[t]=a,i)),delete n[t]}}else e.key=a})),i.length>0&&i.forEach((function(e){typeof e!=`string`&&lO(e)}))}var uO=[],dO={};function fO(e,t,n){return H(n.isInline(e)?`span`:`div`,null,t)}function pO(e,t){return t===void 0&&(t=!1),H(`span`,{"data-slate-string":!0},t?e+`
26
+ `:e)}function mO(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),H(`span`,{"data-slate-zero-width":t?`n`:`z`,"data-slate-length":e},``,t?H(`br`,null):null)}function hO(e,t,n,r){return Tw.set(e,t),Ew.set(e,n),P.isElement(e)?function(e,t){var n,r=K.findKey(t,e),i=t.isInline(e),a=F.isVoid(t,e),o=PE(r.id),s={id:o,key:r.id,"data-slate-node":`element`,"data-slate-inline":i},c=e.type,l=e.children,u=l===void 0?[]:l,d=function(e){return dO[e]||fO}(c);n=a?null:u.map((function(n,r){return hO(n,r,e,t)}));var f=d(e,n,t);if(a){s[`data-slate-void`]=!0;var p=i?`span`:`div`,m=kC(kC(I.texts(e),1)[0],1)[0],h=H(p,{"data-slate-spacer":!0,style:{height:`0`,color:`transparent`,outline:`none`,position:`absolute`}},hO(m,0,e,t));f=H(p,{style:{position:`relative`}},f,h),Tw.set(m,0),Ew.set(m,e)}return f.data??={},Object.assign(f.data,s),a||i||(f=function(e,t){var n=t;return uO.forEach((function(r){n=r(e,t)})),n}(e,f)),ME((function(){var t=qw(o);t!=null&&(kw.set(r,t),Aw.set(e,t),Ow.set(t,e))})),f}(e,r):function(e,t,n){if(e.text==null)throw Error(`Current node is not slate Text `+JSON.stringify(e));var r=K.findKey(n,e),i=n.getConfig().decorate;if(i==null)throw Error(`Can not get config.decorate`);var a=i([e,K.findPath(n,e)]),o=z.decorations(e,a),s=o.map((function(r,i){var a=function(e,t,n,r,i){t===void 0&&(t=!1);var a=e.text,o=K.findPath(i,n),s=L.parent(o);if(F.isEditor(r))throw Error(`Text node `+JSON.stringify(n)+` parent is Editor`);return i.isVoid(r)?mO(I.string(r).length):a!==``||r.children[r.children.length-1]!==n||i.isInline(r)||F.string(i,s)!==``?a===``?mO():t&&a.slice(-1)===`
27
+ `?pO(a,!0):pO(a):mO(0,!0)}(r,i===o.length-1,e,t,n);return a=function(e,t){var n=t;return uO.forEach((function(t){n=t(e,n)})),n}(r,a),H(`span`,{"data-slate-leaf":!0},a)})),c=function(e){return`w-e-text-`+e}(r.id),l=H(`span`,{"data-slate-node":`text`,id:c,key:r.id},s);return ME((function(){var t=qw(c);t!=null&&(kw.set(r,t),Aw.set(e,t),Ow.set(t,e))})),l}(e,n,r)}function ple(e,t){var n,r=e.$scroll,i=function(e){return`w-e-textarea-`+e}(e.id),a=t.getConfig(),o=a.readOnly,s=a.autoFocus,c=function(e,t){return t===void 0&&(t=!1),Yh(`div#`+e,{props:{contentEditable:!t}})}(i,o);c.children=(t.children||[]).map((function(e,n){var r=hO(e,n,t,t);return lO(r),r}));var l=Sw.get(e);if(l??=!0,l){var u=function(e,t){return V(`<div
28
+ id="`+e+`"
29
+ data-slate-editor
30
+ data-slate-node="value"
31
+ suppressContentEditableWarning
32
+ role="textarea"
33
+ spellCheck="true"
34
+ autoCorrect="true"
35
+ autoCapitalize="true"
36
+ ></div>`)}(i);r.append(u),e.$textArea=u,n=u[0],(f=qh([$h,cg,pg,ng,og,Zh]))(n,c),Sw.set(e,!1),Cw.set(e,f)}else{var d=ww.get(e),f=Cw.get(e);if(d==null||f==null)return;n=d.elm,f(d,c)}if(n!=null||(n=qw(i))!=null){if((l?s:t.isFocused())&&n.focus({preventScroll:!0}),l){var p=Hw(n);p&&Mw.set(t,p)}Dw.set(t,n),Aw.set(t,n),Ow.set(n,t),ww.set(e,c)}}function gO(e){return typeof e==`object`&&!!e&&e.nodeType===1}function _O(e,t){return(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`}function vO(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return _O(n.overflowY,t)||_O(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function yO(e,t,n,r,i,a,o,s){return a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0}function bO(e,t){var n=window,r=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,c=typeof o==`function`?o:function(e){return e!==o};if(!gO(e))throw TypeError(`Invalid target`);for(var l=document.scrollingElement||document.documentElement,u=[],d=e;gO(d)&&c(d);){if((d=d.parentElement)===l){u.push(d);break}d!=null&&d===document.body&&vO(d)&&!vO(document.documentElement)||d!=null&&vO(d,s)&&u.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),_=g.height,v=g.width,y=g.top,b=g.right,x=g.bottom,S=g.left,C=i===`start`||i===`nearest`?y:i===`end`?x:y+_/2,w=a===`center`?S+v/2:a===`end`?b:S,T=[],E=0;E<u.length;E++){var D=u[E],O=D.getBoundingClientRect(),ee=O.height,te=O.width,ne=O.top,k=O.right,re=O.bottom,ie=O.left;if(r===`if-needed`&&y>=0&&S>=0&&x<=p&&b<=f&&y>=ne&&x<=re&&S>=ie&&b<=k)return T;var ae=getComputedStyle(D),oe=parseInt(ae.borderLeftWidth,10),se=parseInt(ae.borderTopWidth,10),ce=parseInt(ae.borderRightWidth,10),le=parseInt(ae.borderBottomWidth,10),ue=0,de=0,fe=`offsetWidth`in D?D.offsetWidth-D.clientWidth-oe-ce:0,pe=`offsetHeight`in D?D.offsetHeight-D.clientHeight-se-le:0;if(l===D)ue=i===`start`?C:i===`end`?C-p:i===`nearest`?yO(h,h+p,p,se,le,h+C,h+C+_,_):C-p/2,de=a===`start`?w:a===`center`?w-f/2:a===`end`?w-f:yO(m,m+f,f,oe,ce,m+w,m+w+v,v),ue=Math.max(0,ue+h),de=Math.max(0,de+m);else{ue=i===`start`?C-ne-se:i===`end`?C-re+le+pe:i===`nearest`?yO(ne,re,ee,se,le+pe,C,C+_,_):C-(ne+ee/2)+pe/2,de=a===`start`?w-ie-oe:a===`center`?w-(ie+te/2)+fe/2:a===`end`?w-k+ce+fe:yO(ie,k,te,oe,ce+fe,w,w+v,v);var me=D.scrollLeft,he=D.scrollTop;C+=he-(ue=Math.max(0,Math.min(he+ue,D.scrollHeight-ee+pe))),w+=me-(de=Math.max(0,Math.min(me+de,D.scrollWidth-te+fe)))}T.push({el:D,top:ue,left:de})}return T}function xO(e){return e===Object(e)&&Object.keys(e).length!==0}function SO(e,t){return Ww(t)&&K.hasDOMNode(e,t,{editable:!0})}function CO(e,t){if(e.getConfig().readOnly)return!1;var n=wO(e,t)&&K.toSlateNode(e,t);return F.isVoid(e,n)}function wO(e,t){return Ww(t)&&K.hasDOMNode(e,t)}function TO(e,t,n){n===void 0&&(n=!1);var r=t.selection,i=t.getConfig(),a=K.findDocumentOrShadowRoot(t).getSelection();if(a&&(!e.isComposing||n)&&t.isFocused()){var o=a.type!==`None`;if(r||o){var s=Dw.get(t),c=!1;if(s.contains(a.anchorNode)&&s.contains(a.focusNode)&&(c=!0),o&&c&&r){var l=K.toSlateRange(t,a,{exactMatch:!0,suppressThrow:!0});if(l&&R.equals(l,r)){var u=!0;if(R.isCollapsed(r)){var d=a.anchorNode,f=a.anchorOffset;if(d===s){var p=s.childNodes,m=void 0;(m=p[f])&&m.matches(`table`)&&(u=!1),(m=p[f-1])&&m.matches(`table`)&&(u=!1)}}if(u)return}}if(!r||K.hasRange(t,r)){e.isUpdatingSelection=!0;var h=r&&K.toDOMRange(t,r);if(h){R.isBackward(r)?a.setBaseAndExtent(h.endContainer,h.endOffset,h.startContainer,h.startOffset):a.setBaseAndExtent(h.startContainer,h.startOffset,h.endContainer,h.endOffset);var g=h.startContainer.parentElement;if(!g.closest(`[data-slate-spacer]`)){g.getBoundingClientRect=h.getBoundingClientRect.bind(h);var _=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(xO(t)&&typeof t.behavior==`function`)return t.behavior(n?[]:bO(e,t));if(!n){var r=function(e){return!1===e?{block:`end`,inline:`nearest`}:xO(e)?e:{block:`start`,inline:`nearest`}}(t);(function(e,t){t===void 0&&(t=`auto`);var n=`scrollBehavior`in document.body.style;e.forEach((function(e){var r=e.el,i=e.top,a=e.left;r.scroll&&n?r.scroll({top:i,left:a,behavior:t}):(r.scrollTop=i,r.scrollLeft=a)}))})(bO(e,r),r.behavior)}})(g,{scrollMode:`if-needed`,boundary:i.scroll?s.parentElement:_,block:`end`,behavior:`smooth`}),delete g.getBoundingClientRect}}else a.removeAllRanges();setTimeout((function(){h&&Qw&&s.focus(),e.isUpdatingSelection=!1}))}else t.selection=K.toSlateRange(t,a,{exactMatch:!1,suppressThrow:!1})}}}var EO=new WeakMap,DO=new WeakMap,mle={bold:`mod+b`,compose:[`down`,`left`,`right`,`up`,`backspace`,`enter`],moveBackward:`left`,moveForward:`right`,moveWordBackward:`ctrl+left`,moveWordForward:`ctrl+right`,deleteBackward:`shift?+backspace`,deleteForward:`shift?+delete`,extendBackward:`shift+left`,extendForward:`shift+right`,italic:`mod+i`,splitBlock:`shift?+enter`,undo:`mod+z`,tab:`tab`,selectAll:`mod+a`},hle={moveLineBackward:`opt+up`,moveLineForward:`opt+down`,moveWordBackward:`opt+left`,moveWordForward:`opt+right`,deleteBackward:[`ctrl+backspace`,`ctrl+h`],deleteForward:[`ctrl+delete`,`ctrl+d`],deleteLineBackward:`cmd+shift?+backspace`,deleteLineForward:[`cmd+shift?+delete`,`ctrl+k`],deleteWordBackward:`opt+shift?+backspace`,deleteWordForward:`opt+shift?+delete`,extendLineBackward:`opt+shift+up`,extendLineForward:`opt+shift+down`,redo:`cmd+shift+z`,transposeCharacter:`ctrl+t`},gle={deleteWordBackward:`ctrl+shift?+backspace`,deleteWordForward:`ctrl+shift?+delete`,redo:[`ctrl+y`,`ctrl+shift+z`]},OO=function(e){var t=mle[e],n=hle[e],r=gle[e],i=t&&g_(t),a=n&&g_(n),o=r&&g_(r);return function(e){return!(!i||!i(e))||!!(Zw&&a&&a(e))||!(Zw||!o||!o(e))}},kO={isBold:OO(`bold`),isCompose:OO(`compose`),isMoveBackward:OO(`moveBackward`),isMoveForward:OO(`moveForward`),isDeleteBackward:OO(`deleteBackward`),isDeleteForward:OO(`deleteForward`),isDeleteLineBackward:OO(`deleteLineBackward`),isDeleteLineForward:OO(`deleteLineForward`),isDeleteWordBackward:OO(`deleteWordBackward`),isDeleteWordForward:OO(`deleteWordForward`),isExtendBackward:OO(`extendBackward`),isExtendForward:OO(`extendForward`),isExtendLineBackward:OO(`extendLineBackward`),isExtendLineForward:OO(`extendLineForward`),isItalic:OO(`italic`),isMoveLineBackward:OO(`moveLineBackward`),isMoveLineForward:OO(`moveLineForward`),isMoveWordBackward:OO(`moveWordBackward`),isMoveWordForward:OO(`moveWordForward`),isRedo:OO(`redo`),isSplitBlock:OO(`splitBlock`),isTransposeCharacter:OO(`transposeCharacter`),isUndo:OO(`undo`),isTab:OO(`tab`),isSelectAll:OO(`selectAll`)};function AO(e){e.preventDefault()}var _le={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(tT&&!i&&SO(n,r.target)){var a=n.selection,o=r.inputType,s=r.dataTransfer||r.data||void 0;if(o!==`insertCompositionText`&&o!==`deleteCompositionText`){if(r.preventDefault(),!o.startsWith(`delete`)||o.startsWith(`deleteBy`)){var c=kC(r.getTargetRanges(),1)[0];if(c){var l=K.toSlateRange(n,c,{exactMatch:!1,suppressThrow:!1});a&&R.equals(a,l)||B.select(n,l)}}if(a&&R.isExpanded(a)&&o.startsWith(`delete`)){var u=o.endsWith(`Backward`)?`backward`:`forward`;F.deleteFragment(n,{direction:u})}else switch(o){case`deleteByComposition`:case`deleteByCut`:case`deleteByDrag`:F.deleteFragment(n);break;case`deleteContent`:case`deleteContentForward`:F.deleteForward(n);break;case`deleteContentBackward`:F.deleteBackward(n);break;case`deleteEntireSoftLine`:F.deleteBackward(n,{unit:`line`}),F.deleteForward(n,{unit:`line`});break;case`deleteHardLineBackward`:F.deleteBackward(n,{unit:`block`});break;case`deleteSoftLineBackward`:F.deleteBackward(n,{unit:`line`});break;case`deleteHardLineForward`:F.deleteForward(n,{unit:`block`});break;case`deleteSoftLineForward`:F.deleteForward(n,{unit:`line`});break;case`deleteWordBackward`:F.deleteBackward(n,{unit:`word`});break;case`deleteWordForward`:F.deleteForward(n,{unit:`word`});break;case`insertLineBreak`:case`insertParagraph`:F.insertBreak(n);break;case`insertFromDrop`:case`insertFromPaste`:case`insertFromYank`:case`insertReplacementText`:case`insertText`:if(o===`insertFromPaste`&&!Iw.get(n))break;s instanceof DataTransfer?n.insertData(s):typeof s==`string`&&F.insertText(n,s)}}}},blur:function(e,t,n){var r=e,i=t.isUpdatingSelection,a=t.latestElement;if(!n.getConfig().readOnly&&!i&&SO(n,r.target)){var o=K.findDocumentOrShadowRoot(n);if(a!==o.activeElement){var s=r.relatedTarget;if(!(s===K.toDOMNode(n,n)||Uw(s)&&s.hasAttribute(`data-slate-spacer`))){if(s!=null&&Ww(s)&&K.hasDOMNode(n,s)){var c=K.toSlateNode(n,s);if(P.isElement(c)&&!n.isVoid(c))return}$w&&o.getSelection()?.removeAllRanges(),Nw.delete(n)}}}},focus:function(e,t,n){var r=K.toDOMNode(n,n);t.latestElement=K.findDocumentOrShadowRoot(n).activeElement,Qw&&e.target!==r?r.focus():Nw.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&wO(n,e.target)&&Ww(e.target)){var r=K.toSlateNode(n,e.target),i=K.findPath(n,r);if(F.hasPath(n,i)&&I.get(n,i)===r){var a=F.start(n,i),o=F.end(n,i),s=F.void(n,{at:a}),c=F.void(n,{at:o});if(s&&c&&L.equals(s[1],c[1])){var l=F.range(n,a);B.select(n,l)}}}},compositionstart:function(e,t,n){if(SO(n,e.target)){var r=n.selection;if(r&&R.isExpanded(r)&&(F.deleteFragment(n),Promise.resolve().then((function(){TO(t,n,!0)}))),r&&R.isCollapsed(r)){var i=K.toDOMRange(n,r).startContainer,a=i.textContent||``;EO.set(n,a),DO.set(n,i)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&((n=e.$placeholder)==null||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(SO(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(eT||Qw)&&K.cleanExposedTexNodeInSelectionBlock(n);for(var a=R.isBackward(i)?i.focus:i.anchor,o=kC(F.node(n,[a.path[0]]),1)[0],s=0;s<a.path.length;s++){var c=kC(F.node(n,a.path.slice(0,s+1)),1)[0];if(P.isElement(c)&&(($w||Qw)&&c.type===`link`||c.type===`code`)){K.setNewKey(o);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var u=K.getLeftLengthOfMaxLength(n);u<l.length?(K.toDOMRange(n,i).startContainer.textContent=EO.get(n)||``,u>0&&F.insertText(n,l.slice(0,u)),t.changeViewState()):F.insertText(n,l)}else F.insertText(n,l);$w||setTimeout((function(){var e=n.selection;if(e!=null){var t=DO.get(n);t!=null&&K.toDOMRange(n,e).startContainer!==t&&(t.textContent=EO.get(n)||``)}}))}}}},compositionupdate:function(e,t,n){SO(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&SO(n,r.target)){if(function(e,t){var n=hw.get(e),r=n&&n.getMenus(),i=_w.get(e),a=i&&i.getMenus(),o=DC(DC({},r),a);for(var s in o){var c=o[s],l=c.hotkey;if(l&&h_(l,t)&&!c.isDisabled(e)){var u=c.getValue(e);c.exec(e,u)}}}(n,r),kO.isTab(r))return AO(r),void n.handleTab();if(kO.isRedo(r))return AO(r),void(typeof n.redo==`function`&&n.redo());if(kO.isUndo(r))return AO(r),void(typeof n.undo==`function`&&n.undo());if(kO.isMoveLineBackward(r))return AO(r),void B.move(n,{unit:`line`,reverse:!0});if(kO.isMoveLineForward(r))return AO(r),void B.move(n,{unit:`line`});if(kO.isExtendLineBackward(r))return AO(r),void B.move(n,{unit:`line`,edge:`focus`,reverse:!0});if(kO.isExtendLineForward(r))return AO(r),void B.move(n,{unit:`line`,edge:`focus`});if(kO.isMoveBackward(r))return AO(r),void(i&&R.isCollapsed(i)?B.move(n,{reverse:!0}):B.collapse(n,{edge:`start`}));if(kO.isMoveForward(r))return AO(r),void(i&&R.isCollapsed(i)?B.move(n):B.collapse(n,{edge:`end`}));if(kO.isMoveWordBackward(r))return AO(r),i&&R.isExpanded(i)&&B.collapse(n,{edge:`focus`}),void B.move(n,{unit:`word`,reverse:!0});if(kO.isMoveWordForward(r))return AO(r),i&&R.isExpanded(i)&&B.collapse(n,{edge:`focus`}),void B.move(n,{unit:`word`});if(kO.isSelectAll(r))return AO(r),void n.selectAll();if(tT){if((eT||$w)&&i&&(kO.isDeleteBackward(r)||kO.isDeleteForward(r))&&R.isCollapsed(i)){var a=I.parent(n,i.anchor.path);if(P.isElement(a)&&F.isVoid(n,a)&&F.isInline(n,a))return r.preventDefault(),void B.delete(n,{unit:`block`})}}else{if(kO.isBold(r)||kO.isItalic(r)||kO.isTransposeCharacter(r))return void AO(r);if(kO.isSplitBlock(r))return AO(r),void F.insertBreak(n);if(kO.isDeleteBackward(r))return AO(r),void(i&&R.isExpanded(i)?F.deleteFragment(n,{direction:`backward`}):F.deleteBackward(n));if(kO.isDeleteForward(r))return AO(r),void(i&&R.isExpanded(i)?F.deleteFragment(n,{direction:`forward`}):F.deleteForward(n));if(kO.isDeleteLineBackward(r))return AO(r),void(i&&R.isExpanded(i)?F.deleteFragment(n,{direction:`backward`}):F.deleteBackward(n,{unit:`line`}));if(kO.isDeleteLineForward(r))return AO(r),void(i&&R.isExpanded(i)?F.deleteFragment(n,{direction:`forward`}):F.deleteForward(n,{unit:`line`}));if(kO.isDeleteWordBackward(r))return AO(r),void(i&&R.isExpanded(i)?F.deleteFragment(n,{direction:`backward`}):F.deleteBackward(n,{unit:`word`}));if(kO.isDeleteWordForward(r))return AO(r),void(i&&R.isExpanded(i)?F.deleteFragment(n,{direction:`forward`}):F.deleteForward(n,{unit:`word`}))}}},keypress:function(e,t,n){if(!tT&&!n.getConfig().readOnly&&SO(n,e.target)){e.preventDefault();var r=e.key;F.insertText(n,r)}},copy:function(e,t,n){var r=e;if(SO(n,r.target)){r.preventDefault();var i=r.clipboardData;i!=null&&n.setFragmentData(i)}},cut:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&SO(n,r.target)){r.preventDefault();var a=r.clipboardData;if(a!=null&&(n.setFragmentData(a),i))if(R.isExpanded(i))F.deleteFragment(n);else{var o=I.parent(n,i.anchor.path);F.isVoid(n,o)&&B.delete(n)}}},paste:function(e,t,n){Iw.set(n,!0);var r=e;if(!n.getConfig().readOnly&&SO(n,r.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,r))return void Iw.set(n,!1);if(!tT||function(e){return e.clipboardData&&e.clipboardData.getData(`text/plain`)!==``&&e.clipboardData.types.length===1}(r)){r.preventDefault();var a=r.clipboardData;a!=null&&n.insertData(a)}}},dragover:function(e,t,n){if(wO(n,e.target)){var r=K.toSlateNode(n,e.target);F.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(wO(n,r.target)&&!n.getConfig().readOnly){var i=K.toSlateNode(n,r.target),a=K.findPath(n,i);if(F.isVoid(n,i)||F.void(n,{at:a,voids:!0})){var o=F.range(n,a);B.select(n,o)}var s=r.dataTransfer;s!=null&&(t.isDraggingInternally=!0,n.setFragmentData(s))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&wO(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&wO(n,r.target)&&i!=null&&!(tT&&$w&&i.files.length>0)){r.preventDefault();var a=n.selection,o=K.findEventRange(n,r);B.select(n,o),t.isDraggingInternally&&=(a&&B.delete(n,{at:a}),!1),n.insertData(i),n.isFocused()||n.focus()}}},vle=1,yle=function(){function e(e){var t=this;this.id=vle++,this.$textArea=null,this.$progressBar=V(`<div class="w-e-progress-bar"></div>`),this.$maxLengthInfo=V(`<div class="w-e-max-length-info"></div>`),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Ih((function(){(function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,i=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||i)){var a=K.findDocumentOrShadowRoot(t),o=a.activeElement,s=K.toDOMNode(t,t),c=a.getSelection();if(o===s?(e.latestElement=o,Nw.set(t,!0)):Nw.delete(t),!c)return B.deselect(t);var l=c.anchorNode,u=c.focusNode,d=SO(t,l)||CO(t,l),f=SO(t,u)||CO(t,u);if(d&&f){var p=K.toSlateRange(t,c,{exactMatch:!1,suppressThrow:!1});B.select(t,p)}else B.deselect(t)}})(t,t.editorInstance)}),100);var n=V(e);if(n.length===0)throw Error(`Cannot find textarea DOM by selector '`+e+`'`);this.$box=n;var r=V(`<div class="w-e-text-container"></div>`);r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var i=V(`<div class="w-e-scroll"></div>`);r.append(i),this.$scroll=i,this.$textAreaContainer=r,ME((function(){var e=t.editorInstance,n=K.getWindow(e);n.document.addEventListener(`selectionchange`,t.onDOMSelectionChange),e.on(`destroyed`,(function(){n.document.removeEventListener(`selectionchange`,t.onDOMSelectionChange)})),r.on(`click`,(function(){return e.hidePanelOrModal()})),e.on(`change`,t.changeViewState.bind(t));var i=e.getConfig().onChange;i&&e.on(`change`,(function(){return i(e)})),t.onFocusAndOnBlur(),e.on(`change`,t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,`editorInstance`,{get:function(){var e=pw.get(this);if(e==null)throw Error(`Can not get editor instance`);return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;t!=null&&(yh(_le,(function(n,i){t.on(i,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css(`overflow-y`,`auto`),n.on(`scroll`,Ih((function(){r.emit(`scroll`)}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,i=n.onFocus;this.latestEditorSelection=t.selection,t.on(`change`,(function(){e.latestEditorSelection==null&&t.selection!=null?setTimeout((function(){return i&&i(t)})):e.latestEditorSelection!=null&&t.selection==null&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-K.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+`/`+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css(`width`,e+`%`),e>=100&&setTimeout((function(){t.hide(),t.css(`width`,`0`),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;ple(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var i=t.isEmpty();if(i&&!e.showPlaceholder&&!e.isComposing){if(e.$placeholder==null){var a=V(`<div class="w-e-text-placeholder">`+r+`</div>`);e.$textAreaContainer.append(a),e.$placeholder=a}e.$placeholder.show(),e.showPlaceholder=!0;return}!i&&e.showPlaceholder&&((n=e.$placeholder)==null||n.hide(),e.showPlaceholder=!1)}}(this,t),ME((function(){TO(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function jO(e){e.removeAttr(`width`),e.removeAttr(`height`),e.removeAttr(`fill`),e.removeAttr(`class`),e.removeAttr(`t`),e.removeAttr(`p-id`);var t=e.children();t.length&&jO(t)}function MO(){return V(`<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>`)}function NO(){return V(`<div class="w-e-bar-divider"></div>`)}function PO(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var a=Zw?`cmd`:`ctrl`;r=r.replace(`mod`,a)}if(i)r&&(e.attr(`data-tooltip`,r),e.addClass(`w-e-menu-tooltip-v5`),e.addClass(`tooltip-right`));else{var o=r?n+`
37
+ `+r:n;e.attr(`data-tooltip`,o),e.addClass(`w-e-menu-tooltip-v5`)}}}hC(`match`,(function(e,t,n){return[function(t){var n=tb(this),r=t==null?void 0:Pb(t,e);return r?kb(r,t,n):new RegExp(t)[e](eS(n))},function(e){var r=Db(this),i=eS(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return yC(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=yC(r,i))!==null;){var u=eS(s[0]);c[l]=u,u===``&&(r.lastIndex=gC(i,hx(r.lastIndex),o)),l++}return l===0?null:c}]}));var FO=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=V(`<div class="w-e-bar-item"></div>`),this.$button=V(`<button type="button"></button>`),this.disabled=!1,this.menu=t;var i=t.tag,a=t.width;if(i!==`button`)throw Error(`Invalid tag '`+i+`', expected 'button'`);var o=t.title,s=t.hotkey,c=s===void 0?``:s,l=t.iconSvg,u=l===void 0?``:l,d=this.$button;if(u){var f=V(u);jO(f),d.append(f)}else d.text(o);PO(d,u,o,c,n),n&&u&&d.append(V(`<span class="title">`+o+`</span>`)),a&&d.css(`width`,a+`px`),d.attr(`data-menu-key`,e),this.$elem.append(d),ME((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on(`click`,(function(t){t.preventDefault(),VO(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=VO(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=VO(this),t=this.$button,n=`active`;this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=VO(this),t=this.$button,n=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r=`disabled`;n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),ble=function(e){function t(t,n,r){return r===void 0&&(r=!1),e.call(this,t,n,r)||this}return EC(t,e),t.prototype.onButtonClick=function(){},t}(FO),IO=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=yw.get(e);t??(t=new Set,yw.set(e,t)),t.add(this),bw.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=bw.get(this);e&&e.emit(`modalOrPanelShow`,this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=bw.get(this);e&&e.emit(`modalOrPanelHide`)}},e}(),xle=function(e){function t(t){var n=e.call(this,t)||this;return n.type=`dropPanel`,n.$elem=V(`<div class="w-e-drop-panel"></div>`),n}return EC(t,e),t.prototype.genSelfElem=function(){return null},t}(IO),Sle=function(e){function t(t,n,r){r===void 0&&(r=!1);var i=e.call(this,t,n,r)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var a=MO();i.$button.append(a)}return i}return EC(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(e.getPanelContentElem!=null){var t=VO(this);if(this.dropPanel==null){var n=new xle(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var i=this.dropPanel;i.isShow?i.hide():(r=e.getPanelContentElem(t),i.renderContent(r),i.show())}var a=this.dropPanel;if(a.isShow){var o=this.$elem,s=o.offset().left,c=o.parents(`.w-e-bar`);s-c.offset().left>=c.width()/2?a.$elem.css({left:`none`,right:`0`}):a.$elem.css({left:`0`,right:`none`})}}},t}(FO),Cle=function(e){function t(t,n){n===void 0&&(n=0);var r=e.call(this,t)||this;r.type=`modal`,r.$elem=V(`<div class="w-e-modal"></div>`),r.width=0,n&&(r.width=n);var i=r.$elem;return i.on(`click`,(function(e){return e.stopPropagation()})),i.on(`keyup`,(function(e){e.code===`Escape`&&(r.hide(),t.restoreSelection())})),r}return EC(t,e),t.prototype.genSelfElem=function(){var e=this,t=V(`<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>`),n=bw.get(this);return t.on(`click`,(function(){e.hide(),n?.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr(`style`,``),t&&n.css(`width`,t+`px`),n.css(e)},t}(IO);function LO(e,t,n){var r=V(`<label class="babel-container"></label>`);r.append(`<span>`+e+`</span>`);var i=V(`<input type="text" id="`+t+`" placeholder="`+(n||``)+`">`);return r.append(i),[r[0],i[0]]}function RO(e,t){var n=V(`<div class="button-container"></div>`),r=V(`<button type="button" id="`+e+`">`+t+`</button>`);return n.append(r),[n[0],r[0]]}var wle=function(e){function t(t,n,r){r===void 0&&(r=!1);var i=e.call(this,t,n,r)||this;return i.$body=V(`body`),i.modal=null,i.menu=n,i}return EC(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=VO(this),t=this.menu.getModalPositionNode(e);return P.isElement(t)?qD(e,t,`modal`):KD(e)},t.prototype.handleModal=function(){var e=VO(this),t=this.menu;if(this.modal==null){var n=new Cle(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else (n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){t===void 0&&(t=!1);var n=VO(this),r=this.menu;if(r.getModalContentElem!=null){var i=K.getTextarea(n),a=(K.getToolbar(n)?.getConfig()||{}).modalAppendToBody,o=r.getModalContentElem(n);if(e.renderContent(o),a)e.setStyle({left:`0`,right:`0`});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(i.$textAreaContainer)),e.show(),a||JD(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(FO),Tle=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type=`selectList`,r.$elem=V(`<div class="w-e-select-list"></div>`),n&&r.$elem.css(`width`,n+`px`),r.$elem.on(`click`,(function(e){e.stopPropagation()})),r}return EC(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=V(`<ul></ul>`);e.forEach((function(e){var t=e.value,r=e.text,i=e.selected,a=e.styleForRenderMenuList,o=V(`<li data-value="`+t+`"></li>`);if(a&&o.css(a),i){var s=V(`<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>`);o.append(s),o.addClass(`selected`)}o.append(V(`<span data-value="`+t+`">`+r+`</span>`)),o.attr(`title`,r),n.append(o)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(IO),Ele=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=V(`<div class="w-e-bar-item"></div>`),this.$button=V(`<button type="button" class="select-button"></button>`),this.disabled=!1,this.selectList=null;var i=t.tag,a=t.title,o=t.width,s=t.iconSvg,c=s===void 0?``:s,l=t.hotkey,u=l===void 0?``:l;if(i!==`select`)throw Error(`Invalid tag '`+i+`', expected 'select'`);var d=this.$button;o&&d.css(`width`,o+`px`),d.attr(`data-menu-key`,e),PO(d,c,a,u,n),this.$elem.append(d),this.menu=t,ME((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on(`click`,(function(t){t.preventDefault(),VO(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=VO(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new Tle(t,n.selectPanelWidth);var r=this.selectList,i=n.getOptions(t);r.renderList(i),r.appendTo(this.$elem),r.show(),r.$elem.on(`click`,`li`,(function(t){var n=t.target;if(n!=null){t.preventDefault();var r=V(n).attr(`data-value`);e.onChange(r)}}))}else (r=this.selectList).isShow?r.hide():(i=n.getOptions(t),r.renderList(i),r.show())}},e.prototype.onChange=function(e){var t=VO(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=VO(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r=``,i=0;i<n;i++){var a=e[i];if(a.value===t){r=a.text;break}}return r}(t.getOptions(e),n.toString()),i=this.$button,a=MO();i.empty(),i.text(r),i.append(a)},e.prototype.setDisabled=function(){var e=VO(this),t=this.menu.isDisabled(e),n=this.$button;(e.selection==null||e.isDisabled())&&(t=!0);var r=`disabled`;t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),zO=function(){function e(e){this.$elem=V(`<div class="w-e-bar-item w-e-bar-item-group"></div>`),this.$container=V(`<div class="w-e-bar-item-menus-container"></div>`),this.$button=V(`<button type="button"></button>`);var t=e.key,n=e.iconSvg,r=e.title,i=this.$elem,a=this.$button;if(n){var o=V(n);jO(o),a.append(o)}else a.text(r);a.attr(`data-menu-key`,t);var s=MO();a.append(s),i.append(a);var c=this.$container;i.append(c);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var i=t.find(`button`),a=i.length;if(a!==0){var o=0;i.each((function(e){V(e).hasClass(`disabled`)&&o++})),r.disconnect(),o===a?n.addClass(`disabled`):n.removeClass(`disabled`),e.observe(r)}}));return r},e}(),BO=new WeakMap;function VO(e){var t=vw.get(e);if(t==null)throw Error(`Can not get editor instance`);return t}function HO(e,t,n){n===void 0&&(n=!1);var r=BO.get(t);if(r)return r;var i=t.tag;if(i===`button`){var a=t.showDropPanel,o=t.showModal;r=a?new Sle(e,t,n):o?new wle(e,t,n):new ble(e,t,n)}if(i===`select`&&(r=new Ele(e,t,n)),r==null)throw Error(`Invalid tag in menu `+JSON.stringify(t));return BO.set(t,r),r}function Dle(e,t){var n=e.selection;return n!=null&&!R.isCollapsed(n)&&!K.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!![`pre`,`code`,`table`].includes(n)||void 0}))&&!!z.isText(t)}var Ole=function(){function e(){var e=this;this.$elem=V(`<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>`),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=M_((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,i=r===void 0?null:r,a=n.menuKeys,o=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&P.isElement(i)&&t&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(o),e.setPosition(i),e.show()),e.prevSelectedNode=i)}),200),ME((function(){var t=e.getEditorInstance(),n=e.$elem;n.on(`mousedown`,(function(e){return e.preventDefault()}),{passive:!1}),K.getTextarea(t).$textAreaContainer.append(n),t.on(`change`,e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on(`scroll`,r),t.on(`fullScreen`,r),t.on(`unFullScreen`,r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass(`w-e-bar-show`).addClass(`w-e-bar-hidden`),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass(`w-e-bar-bottom`):e.removeClass(`w-e-bar-bottom`)},e.prototype.show=function(){this.$elem.removeClass(`w-e-bar-hidden`).addClass(`w-e-bar-show`),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;ME((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if(e!==`|`)t.registerSingleItem(e);else{var r=NO();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(r==null){var i=rT[e];if(i==null)throw Error(`Not found menu item factory by key '`+e+`'`);if(typeof i!=`function`)throw Error(`Menu item factory (key='`+e+`') is not a function`);r=i(),n[e]=r}var a=HO(e,r);this.hoverbarItems.push(a),vw.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr(`style`,``),P.isElement(e)){var r=qD(t,e,`bar`);n.css(r),JD(t,n);return}if(z.isText(e))return r=KD(t),n.css(r),void JD(t,n);throw Error(`hoverbar.setPosition error, current selected node is not elem nor text`)},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],i=function(i){var a=t[i],o=a.match,s=a.menuKeys,c=s===void 0?[]:s,l=o||function(e,t){return K.checkNodeType(t,i)},u=kC(F.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1)[0];if(u!=null)return n=u[0],r=c,`break`};for(var a in t)if(i(a)===`break`)break;return n==null||r.length===0?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=gw.get(this);if(e==null)throw Error(`Can not get editor instance`);return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=e===void 0?{}:e,n=t.text;return n&&n.match==null&&(n.match=Dle),t},e.prototype.isSamePath=function(e,t){if(e==null||t==null)return!1;var n=K.findPath(null,e),r=K.findPath(null,t);return L.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function UO(e,t,n,r){if(Tw.set(e,t),Ew.set(e,n),P.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach((function(t,n){return UO(t,n,e,r)})),F.isVoid(r,e)){var a=kC(kC(I.texts(e),1)[0],1)[0];Tw.set(a,0),Ew.set(a,e)}}}function kle(e){var t=e.selector,n=t===void 0?``:t,r=e.config,i=r===void 0?{}:r,a=e.content,o=e.html,s=e.plugins,c=s===void 0?[]:s,l=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];$x.withoutSaving(t,(()=>{F.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];$x.withoutSaving(t,(()=>{F.withoutNormalizing(t,(()=>{for(var e of r.map(pp.inverse).reverse())t.apply(e)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:i}=t,{undos:a}=i,o=a[a.length-1],s=o&&o[o.length-1],c=((e,t)=>!(!t||e.type!==`set_selection`||t.type!==`set_selection`))(e,s),l=$x.isSaving(t),u=$x.isMerging(t);if(l??=((e,t)=>e.type!==`set_selection`||e.properties!=null&&e.newProperties!=null)(e),l){if(u??=o!=null&&(r.length!==0||((e,t)=>e.type===`set_selection`||!(!t||e.type!==`insert_text`||t.type!==`insert_text`||e.offset!==t.offset+t.text.length||!L.equals(e.path,t.path))||!(!t||e.type!==`remove_text`||t.type!==`remove_text`||e.offset+e.text.length!==t.offset||!L.equals(e.path,t.path)))(e,s)||c),o&&u)c&&o.pop(),o.push(e);else{var d=[e];a.push(d)}for(;a.length>100;)a.shift();(e=>e.type!==`set_selection`)(e)&&(i.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,i=t.insertFragment,a=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=K.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=K.getLeftLengthOfMaxLength(t);n<=0||n<I.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(e.length!==1)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(K.getLeftLengthOfMaxLength(t)<I.string(n).length)return;i(e)}else i(e)},t.dangerouslyInsertHtml=function(e,n){if(e===void 0&&(e=``),n===void 0&&(n=!1),e)if(t.getConfig().maxLength){var r=K.getLeftLengthOfMaxLength(t);if(!(r<=0)){var i=document.createElement(`div`);i.innerHTML=e,r<Array.from(i.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===Bw.TEXT_NODE?e+(t.textContent||``):n===Bw.ELEMENT_NODE?gD.has(r.toLowerCase())?e:e+(t.textContent||``):e:e}),``).length||a(e,n)}}else a(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=BD(t);if(r.on(e,n),e===`destroyed`&&HD(t,n),e!==`destroyed`){var i=function(){return r.off(e,n)};r.on(`destroyed`,i),HD(t,i)}},t.once=function(e,n){BD(t).once(e,n)},t.off=function(e,n){BD(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=BD(t);i.emit.apply(i,AC([e],kC(n))),e===`destroyed`&&(UD(t).forEach((function(e){return i.off(`destroyed`,e)})),WD(t))},t}(function(e){var t=e;return t.select=function(e){B.select(t,e)},t.deselect=function(){var n=t.selection,r=K.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&B.deselect(e)},t.move=function(t,n){n===void 0&&(n=!1),t&&(t<0||B.move(e,{distance:t,unit:`character`,reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=Pw.get(t);e!=null&&(t.focus(),B.select(t,e))},t.getSelectionPosition=function(){return KD(t)},t.getNodePosition=function(e){return qD(t,e)},t.isSelectedAll=function(){var e=t.selection;if(e==null)return!1;var n=kC(R.edges(e),2),r=n[0],i=n[1],a=kC(F.edges(t,[]),2),o=a[0],s=a[1];return!(!gp.equals(r,o)||!gp.equals(i,s))},t.selectAll=function(){var e=F.start(t,[]),n=F.end(t,[]);B.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,i=t.apply,a=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,a,o,s,c,l,u,d=[];switch(e.type){case`insert_text`:case`remove_text`:case`set_node`:try{for(var f=OC(F.levels(t,{at:e.path})),p=f.next();!p.done;p=f.next()){var m=kC(p.value,2),h=m[0],g=m[1],_=K.findKey(t,h);d.push([g,_])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}break;case`insert_node`:case`remove_node`:case`merge_node`:case`split_node`:try{for(var v=OC(F.levels(t,{at:L.parent(e.path)})),y=v.next();!y.done;y=v.next()){var b=kC(y.value,2);h=b[0],g=b[1],_=K.findKey(t,h),d.push([g,_])}}catch(e){a={error:e}}finally{try{y&&!y.done&&(o=v.return)&&o.call(v)}finally{if(a)throw a.error}}break;case`move_node`:try{for(var x=OC(F.levels(t,{at:L.common(L.parent(e.path),L.parent(e.newPath))})),S=x.next();!S.done;S=x.next()){var C=kC(S.value,2);h=C[0],g=C[1],_=K.findKey(t,h),d.push([g,_])}}catch(e){s={error:e}}finally{try{S&&!S.done&&(c=x.return)&&c.call(x)}finally{if(s)throw s.error}}}i(e);try{for(var w=OC(d),T=w.next();!T.done;T=w.next()){var E=kC(T.value,2);g=E[0],_=E[1],h=kC(F.node(t,g),1)[0],jw.set(h,_)}}catch(e){l={error:e}}finally{try{T&&!T.done&&(u=w.return)&&u.call(w)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if(n!==`line`)return a(n);if(e.selection&&R.isCollapsed(e.selection)){var r=F.above(e,{match:function(t){return F.isBlock(e,t)},at:e.selection});if(r){var i=kC(r,2)[1],o=function(e,t){var n=F.range(e,R.end(t)),r=Array.from(F.positions(e,{at:t})),i=0,a=r.length,o=Math.floor(a/2);if(IE(e,F.range(e,r[i]),n))return F.range(e,r[i],n);if(r.length<2)return F.range(e,r[r.length-1],n);for(;o!==r.length&&o!==i;)IE(e,F.range(e,r[o]),n)?a=o:i=o,o=Math.floor((i+a)/2);return F.range(e,r[a],n)}(t,F.range(e,i,e.selection.anchor));R.isCollapsed(o)||B.delete(e,{at:o})}}},t.onChange=function(){var e=t.selection;e!=null&&Pw.set(t,e),t.emit(`change`),n()},t.handleTab=function(){t.insertText(` `)},t.getHtml=function(){var e=t.children;return(e===void 0?[]:e).map((function(e){return NE(e,t)})).join(``)},t.getText=function(){var e=t.children;return(e===void 0?[]:e).map((function(e){return I.string(e)})).join(`
38
+ `)},t.getSelectionText=function(){var n=t.selection;return n==null?``:F.string(e,n)},t.getElemsByType=function(e,n){var r,i;n===void 0&&(n=!1);var a=[],o=F.nodes(t,{at:[],universal:!0});try{for(var s=OC(o),c=s.next();!c.done;c=s.next()){var l=kC(c.value,1)[0];if(P.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var u=PE(K.findKey(t,l).id);a.push(DC(DC({},l),{id:u}))}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=e===void 0?[]:e;if(n.length>1)return!1;var r=n[0];if(r==null)return!0;if(P.isElement(r)&&r.type===`paragraph`){var i=r.children,a=i===void 0?[]:i;if(a.length>1)return!1;var o=a[0];if(o==null||z.isText(o)&&o.text===``)return!0}return!1},t.clear=function(){B.delete(t,{at:{anchor:F.start(t,[]),focus:F.end(t,[])}}),t.children.length===0&&B.insertNodes(t,[{type:`paragraph`,children:[{text:``}]}])},t.getParentNode=function(e){return K.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(e===void 0&&(e=``),n===void 0&&(n=!1),e){var r=document.createElement(`div`);r.innerHTML=e;var i=Array.from(r.childNodes);if(i=i.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===Bw.TEXT_NODE||t===Bw.ELEMENT_NODE&&!gD.has(n.toLowerCase())})),i.length!==0){var a=t.selection;if(a!=null){var o=null;K.isSelectedEmptyParagraph(t)&&!n&&(o=[a.focus.path[0]]),r.setAttribute(`hidden`,`true`),document.body.appendChild(r);var s=0;i.forEach((function(e){var n=e.nodeType,r=e.nodeName,i=e.textContent,a=i===void 0?``:i;if(n!==Bw.TEXT_NODE)if(r!==`BR`){var o=e,c=!1;if(LE.includes(r.toLowerCase()))c=!0;else for(var l in BE)if(o.matches(l)){c=!0;break}if(c){var u=lD(V(o),t);Array.isArray(u)?(u.forEach((function(e){return _D(t,e)})),s++):(_D(t,u),s++),K.isSelectedVoidNode(t)&&t.move(1);return}var d=window.getComputedStyle(o).display;K.isSelectedEmptyParagraph(t)||d.indexOf(`inline`)<0&&t.insertBreak(),t.dangerouslyInsertHtml(o.innerHTML,!0)}else t.insertText(`
39
+ `);else{if(!a||!a.trim())return;t.insertNode({text:a})}})),s&&o&&K.isEmptyPath(t,o)&&B.removeNodes(t,{at:o}),r.remove()}}}},t.setHtml=function(e){e===void 0&&(e=``);var n=t.isDisabled(),r=t.isFocused(),i=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var a=dD(t,e);if(B.insertFragment(t,a),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(i))}catch{t.select(F.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in rT)e.push(t);return e},t.getConfig=function(){var e=xw.get(t);if(e==null)throw Error(`Can not get editor config`);return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(n===void 0?{}:n)[e]||{}},t.alert=function(e,n){n===void 0&&(n=`info`);var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=vD(Of());return t.id=`wangEditor-`+ Bce++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(K.toDOMNode(t,t).focus({preventScroll:!0}),Nw.set(t,!0),e){var n=F.end(t,[]);B.select(t,n)}else{var r=Pw.get(t);r?B.select(t,r):B.select(t,F.start(t,[]))}},t.isFocused=function(){return!!Nw.get(t)},t.blur=function(){K.toDOMNode(t,t).blur(),B.deselect(t),Nw.set(t,!1)},t.updateView=function(){K.getTextarea(t).changeViewState();var e=K.getToolbar(t);e&&e.changeToolbarState();var n=K.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=K.getTextarea(t);e.destroy(),fw.delete(t),pw.delete(e);var n=K.getToolbar(t);n&&(n.destroy(),hw.delete(t),mw.delete(n));var r=K.getHoverbar(t);r&&(r.destroy(),_w.delete(t),gw.delete(r)),t.isDestroyed=!0,t.emit(`destroyed`)}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n=`编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能`;n+=`
40
+ You has disabled editor scroll, please do this yourself`,console.warn(n);return}var r=V(`#`+e);if(r.length!==0){var i=r[0];if(!K.hasDOMNode(t,i))return n=`Element (found by id is '`+e+`') is not in editor DOM`,n+=`
41
+ 通过 id '`+e+`' 找到的 element 不在 editor DOM 之内`,void console.error(n,i);var a=K.getTextarea(t),o=a.$textAreaContainer,s=a.$scroll,c=r.offset().top,l=o.offset().top;s[0].scrollBy({top:c-l,behavior:`smooth`})}},t.showProgressBar=function(e){e<1||K.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){yw.get(t)?.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return K.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=K.getToolbar(t);n&&(e=n.$box);var r=K.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
42
+ 不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);r.addClass(`w-e-full-screen-container`);var i=r.css(`z-index`);r.attr(`data-z-index`,i.toString()),t.isFullScreen=!0,t.emit(`fullScreen`)}},t.unFullScreen=function(){if(t.isFullScreen){var e=K.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass(`w-e-full-screen-container`),t.isFullScreen=!1,t.emit(`unFullScreen`)}),200)}},t.getEditableContainer=function(){return K.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return uD(e,`data-w-e-textarea`,t)}(l,n))throw Error(`Repeated create editor by selector '`+n+`'`);var u=function(e){e===void 0&&(e={});var t=N_(nT),n={},r=e.MENU_CONF,i=r===void 0?{}:r;return yh(t,(function(e,t){n[t]=DC(DC({},e),i[t]||{})})),delete e.MENU_CONF,DC({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+`:
43
+ `+e)}},e)}(i);xw.set(l,u);var d=u.hoverbarKeys,f=d===void 0?{}:d;if(c.forEach((function(e){l=e(l)})),o!=null&&(l.children=dD(l,o)),a&&a.length&&(l.children=a),l.children.length===0&&(l.children=[{type:`paragraph`,children:[{text:``}]}]),K.normalizeContent(l),n){var p=new yle(n);fw.set(l,p),pw.set(p,l),p.changeViewState(),ME((function(){var e=p.$scroll;e!=null&&e.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
44
+ Textarea height < 300px . This may be cause modal and hoverbar position error`,e)}));var m=void 0;Object.keys(f).length>0&&(m=new Ole,gw.set(m,l),_w.set(l,m)),l.on(`change`,(function(){l.hidePanelOrModal()})),l.on(`scroll`,(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return UO(e,t,l,l)}));var h=u.onCreated,g=u.onDestroyed;return h&&l.on(`created`,(function(){return h(l)})),g&&l.on(`destroyed`,(function(){return g(l)})),ME((function(){return l.emit(`created`)})),l}var Ale=ZS(`splice`),jle=W.TypeError,Mle=Math.max,Nle=Math.min;Jx({target:`Array`,proto:!0,forced:!Ale},{splice:function(e,t){var n,r,i,a,o,s,c=nb(this),l=gx(c),u=Rx(e,l),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=l-u):(n=d-2,r=Nle(Mle(mx(t),0),l-u)),l+n-r>9007199254740991)throw jle(`Maximum allowed length exceeded`);for(i=wx(c,r),a=0;a<r;a++)(o=u+a)in c&&xS(i,a,c[o]);if(i.length=r,n<r){for(a=u;a<l-r;a++)s=a+n,(o=a+r)in c?c[s]=c[o]:delete c[s];for(a=l;a>l-r+n;a--)delete c[a-1]}else if(n>r)for(a=l-r;a>u;a--)s=a+n-1,(o=a+r-1)in c?c[s]=c[o]:delete c[s];for(a=0;a<n;a++)c[a+u]=arguments[a+2];return c.length=l-r+n,i}});var Ple=function(){function e(e,t){var n=this;this.$toolbar=V(`<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>`),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=M_((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=V(e);if(r.length===0)throw Error(`Cannot find toolbar DOM by selector '`+e+`'`);this.$box=r;var i=this.$toolbar;i.on(`mousedown`,(function(e){return e.preventDefault()}),{passive:!1}),r.append(i),ME((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on(`change`,n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t=``,n=this.$toolbar,r=this.config,i=r.toolbarKeys,a=i===void 0?[]:i,o=r.insertKeys,s=o===void 0?{index:0,keys:[]}:o,c=r.excludeKeys,l=c===void 0?[]:c,u=N_(a);s.keys.length>0&&(typeof s.keys==`string`&&(s.keys=[s.keys]),s.keys.forEach((function(e,t){u.splice(s.index+t,0,e)})));var d=u.filter((function(e){if(typeof e==`string`){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),f=d.length;d.forEach((function(r,i){if(r===`|`){if(i===0||i+1===f||t===`|`)return;var a=NO();n.append(a),t=r;return}if(typeof r==`string`)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t=`group`}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new zO(e)}(e),i=e.menuKeys,a=i===void 0?[]:i,o=this.config.excludeKeys,s=o===void 0?[]:o;a.forEach((function(e){s.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof zO,i=this.menus,a=i[e];if(a==null){var o=rT[e];if(o==null)throw Error(`Not found menu item factory by key '`+e+`'`);if(typeof o!=`function`)throw Error(`Menu item factory (key='`+e+`') is not a function`);a=o(),i[e]=a}else console.warn(`Duplicated toolbar menu key '`+e+`'
45
+ 重复注册了菜单栏 menu '`+e+`'`);var s=HO(e,a,r);this.toolbarItems.push(s),vw.set(s,n),r?t.appendBarItem(s):t.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var e=mw.get(this);if(e==null)throw Error(`Can not get editor instance`);return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),Fle=nx.EXISTS,Ile=Lb.f,WO=Function.prototype,Lle=G(WO.toString),GO=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Rle=G(GO.exec);function KO(e){var t=e.server,n=t===void 0?``:t,r=e.fieldName,i=r===void 0?``:r,a=e.maxFileSize,o=a===void 0?10485760:a,s=e.maxNumberOfFiles,c=s===void 0?100:s,l=e.meta,u=l===void 0?{}:l,d=e.metaWithUrl,f=d!==void 0&&d,p=e.headers,m=p===void 0?{}:p,h=e.withCredentials,g=h!==void 0&&h,_=e.timeout,v=_===void 0?1e4:_,y=e.onBeforeUpload,b=y===void 0?function(e){return e}:y,x=e.onSuccess,S=x===void 0?function(e,t){}:x,C=e.onError,w=C===void 0?function(e,t,n){console.error(e.name+` upload error`,t,n)}:C,T=e.onProgress,E=T===void 0?function(e){}:T;if(!n)throw Error(`Cannot get upload server address
46
+ 没有配置上传地址`);if(!i)throw Error(`Cannot get fieldName
47
+ 没有配置 fieldName`);var D=n;f&&(D=function(e,t){var n=kC(e.split(`#`),2),r=n[0],i=n[1],a=[];yh(t,(function(e,t){a.push(t+`=`+e)}));var o=a.join(`&`);return r=r.indexOf(`?`)>0?r+`&`+o:r+`?`+o,i?r+`#`+i:r}(D,u));var O=new Xv({onBeforeUpload:b,restrictions:{maxFileSize:o,maxNumberOfFiles:c},meta:u}).use(loe,{endpoint:D,headers:m,formData:!0,fieldName:i,bundle:!0,withCredentials:g,timeout:v});return O.on(`upload-success`,(function(e,t){var n=t.body,r=n===void 0?{}:n;try{S(e,r)}catch(e){console.error(`wangEditor upload file - onSuccess error`,e)}O.removeFile(e.id)})),O.on(`progress`,(function(e){e<1||E(e)})),O.on(`upload-error`,(function(e,t,n){try{w(e,t,n)}catch(e){console.error(`wangEditor upload file - onError error`,e)}O.removeFile(e.id)})),O.on(`restriction-failed`,(function(e,t){try{w(e,t)}catch(e){console.error(`wangEditor upload file - onError error`,e)}O.removeFile(e.id)})),O}function qO(e){return qO=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},qO(e)}function zle(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:Object(arguments[t]),r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){zle(e,t,n[t])}))}return e}function YO(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function XO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ZO(e,t,n){return t&&XO(e.prototype,t),n&&XO(e,n),e}function QO(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function $O(e,t){if(t&&(qO(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return QO(e)}function ek(e){return ek=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ek(e)}function tk(e,t){return tk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tk(e,t)}function nk(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tk(e,t)}Sb&&!Fle&&Ile(WO,`name`,{configurable:!0,get:function(){try{return Rle(GO,Lle(this))[1]}catch{return``}}});var Ble={type:`logger`,log:function(e){this.output(`log`,e)},warn:function(e){this.output(`warn`,e)},error:function(e){this.output(`error`,e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},rk=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};YO(this,e),this.init(t,n)}return ZO(e,[{key:`init`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||`i18next:`,this.logger=e||Ble,this.options=t,this.debug=t.debug}},{key:`setDebug`,value:function(e){this.debug=e}},{key:`log`,value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,`log`,``,!0)}},{key:`warn`,value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,`warn`,``,!0)}},{key:`error`,value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,`error`,``)}},{key:`deprecate`,value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,`warn`,`WARNING DEPRECATED: `,!0)}},{key:`forward`,value:function(e,t,n,r){return r&&!this.debug?null:(typeof e[0]==`string`&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}},{key:`create`,value:function(t){return new e(this.logger,JO({},{prefix:`${this.prefix}:${t}:`},this.options))}}]),e}()),ik=function(){function e(){YO(this,e),this.observers={}}return ZO(e,[{key:`on`,value:function(e,t){var n=this;return e.split(` `).forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:`off`,value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:`emit`,value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)})),this.observers[`*`]&&[].concat(this.observers[`*`]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function ak(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function ok(e){return e==null?``:``+e}function Vle(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function sk(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}function i(){return!e||typeof e==`string`}for(var a=typeof t==`string`?t.split(`.`):[].concat(t);a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return i()?{}:{obj:e,k:r(a.shift())}}function ck(e,t,n){var r=sk(e,t,Object);r.obj[r.k]=n}function lk(e,t){var n=sk(e,t),r=n.obj,i=n.k;if(r)return r[i]}function uk(e,t,n){var r=lk(e,n);return r===void 0?lk(t,n):r}function dk(e,t,n){for(var r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?typeof e[r]==`string`||e[r]instanceof String||typeof t[r]==`string`||t[r]instanceof String?n&&(e[r]=t[r]):dk(e[r],t[r],n):e[r]=t[r]);return e}function fk(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`)}var Hle={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`};function Ule(e){return typeof e==`string`?e.replace(/[&<>"'\/]/g,(function(e){return Hle[e]})):e}var pk=typeof window<`u`&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf(`MSIE`)>-1;function mk(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`.`;if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,a=0;a<r.length;++a){if(!i||typeof i[r[a]]==`string`&&a+1<r.length)return;if(i[r[a]]===void 0){for(var o=2,s=r.slice(a,a+o).join(n),c=i[s];c===void 0&&r.length>a+o;)o++,c=i[s=r.slice(a,a+o).join(n)];if(c===void 0)return;if(typeof c==`string`)return c;if(s&&typeof c[s]==`string`)return c[s];var l=r.slice(a+o).join(n);return l?mk(c,l,n):void 0}i=i[r[a]]}return i}}var Wle=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};return YO(this,t),n=$O(this,ek(t).call(this)),pk&&ik.call(QO(n)),n.data=e||{},n.options=r,n.options.keySeparator===void 0&&(n.options.keySeparator=`.`),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return nk(t,ik),ZO(t,[{key:`addNamespaces`,value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:`removeNamespaces`,value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:`getResource`,value:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o=[e,t];n&&typeof n!=`string`&&(o=o.concat(n)),n&&typeof n==`string`&&(o=o.concat(i?n.split(i):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`));var s=lk(this.data,o);return s||!a||typeof n!=`string`?s:mk(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:`addResource`,value:function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},a=this.options.keySeparator;a===void 0&&(a=`.`);var o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(r=t,t=(o=e.split(`.`))[1]),this.addNamespaces(t),ck(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}},{key:`addResources`,value:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var i in n)typeof n[i]!=`string`&&Object.prototype.toString.apply(n[i])!==`[object Array]`||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit(`added`,e,t,n)}},{key:`addResourceBundle`,value:function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},o=[e,t];e.indexOf(`.`)>-1&&(r=n,n=t,t=(o=e.split(`.`))[1]),this.addNamespaces(t);var s=lk(this.data,o)||{};r?dk(s,n,i):s=JO({},s,n),ck(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}},{key:`removeResourceBundle`,value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}},{key:`hasResourceBundle`,value:function(e,t){return this.getResource(e,t)!==void 0}},{key:`getResourceBundle`,value:function(e,t){return t||=this.options.defaultNS,this.options.compatibilityAPI===`v1`?JO({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:`getDataByLanguage`,value:function(e){return this.data[e]}},{key:`toJSON`,value:function(){return this.data}}]),t}(),hk={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var a=this;return e.forEach((function(e){a.processors[e]&&(t=a.processors[e].process(t,n,r,i))})),t}},gk={},_k=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return YO(this,t),n=$O(this,ek(t).call(this)),pk&&ik.call(QO(n)),Vle([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,QO(n)),n.options=r,n.options.keySeparator===void 0&&(n.options.keySeparator=`.`),n.logger=rk.create(`translator`),n}return nk(t,ik),ZO(t,[{key:`changeLanguage`,value:function(e){e&&(this.language=e)}},{key:`exists`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;var n=this.resolve(e,t);return n&&n.res!==void 0}},{key:`extractFromKey`,value:function(e,t){var n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);var r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:i};var o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return typeof i==`string`&&(i=[i]),{key:e,namespaces:i}}},{key:`translate`,value:function(e,n,r){var i=this;if(qO(n)!==`object`&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||={},e==null)return``;Array.isArray(e)||(e=[String(e)]);var a=n.keySeparator===void 0?this.options.keySeparator:n.keySeparator,o=this.extractFromKey(e[e.length-1],n),s=o.key,c=o.namespaces,l=c[c.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()===`cimode`)return d?l+(n.nsSeparator||this.options.nsSeparator)+s:s;var f=this.resolve(e,n),p=f&&f.res,m=f&&f.usedKey||s,h=f&&f.exactUsedKey||s,g=Object.prototype.toString.apply(p),_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=n.joinArrays===void 0?this.options.joinArrays:n.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject;if(y&&p&&typeof p!=`string`&&typeof p!=`boolean`&&typeof p!=`number`&&_.indexOf(g)<0&&(typeof v!=`string`||g!==`[object Array]`)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,p,JO({},n,{ns:c})):`key '${s} (${this.language})' returned an object instead of string.`;if(a){var b=g===`[object Array]`,x=b?[]:{},S=b?h:m;for(var C in p)if(Object.prototype.hasOwnProperty.call(p,C)){var w=`${S}${a}${C}`;x[C]=this.translate(w,JO({},n,{joinArrays:!1,ns:c})),x[C]===w&&(x[C]=p[C])}p=x}}else if(y&&typeof v==`string`&&g===`[object Array]`)(p=p.join(v))&&(p=this.extendTranslation(p,e,n,r));else{var T=!1,E=!1,D=n.count!==void 0&&typeof n.count!=`string`,O=t.hasDefaultValue(n),ee=D?this.pluralResolver.getSuffix(u,n.count):``,te=n[`defaultValue${ee}`]||n.defaultValue;!this.isValidLookup(p)&&O&&(T=!0,p=te),this.isValidLookup(p)||(E=!0,p=s);var ne=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:p,k=O&&te!==p&&this.options.updateMissing;if(E||T||k){if(this.logger.log(k?`updateKey`:`missingKey`,u,l,s,k?te:p),a){var re=this.resolve(s,JO({},n,{keySeparator:!1}));re&&re.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}var ie=[],ae=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo===`fallback`&&ae&&ae[0])for(var oe=0;oe<ae.length;oe++)ie.push(ae[oe]);else this.options.saveMissingTo===`all`?ie=this.languageUtils.toResolveHierarchy(n.lng||this.language):ie.push(n.lng||this.language);var se=function(e,t,r){i.options.missingKeyHandler?i.options.missingKeyHandler(e,l,t,k?r:ne,k,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,l,t,k?r:ne,k,n),i.emit(`missingKey`,e,l,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&D?ie.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){se([e],s+t,n[`defaultValue${t}`]||te)}))})):se(ie,s,te))}p=this.extendTranslation(p,e,n,f,r),E&&p===s&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${s}`),(E||T)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(p))}return p}},{key:`extendTranslation`,value:function(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(JO({},n,{interpolation:JO({},this.options.interpolation,n.interpolation)}));var o,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var c=e.match(this.interpolator.nestingRegexp);o=c&&c.length}var l=n.replace&&typeof n.replace!=`string`?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=JO({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){var u=e.match(this.interpolator.nestingRegexp);o<(u&&u.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return i&&i[0]===r[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):a.translate.apply(a,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,f=typeof d==`string`?[d]:d;return e!=null&&f&&f.length&&!1!==n.applyPostProcessor&&(e=hk.handle(f,e,t,this.options&&this.options.postProcessPassResolved?JO({i18nResolved:r},n):n,this)),e}},{key:`resolve`,value:function(e){var t,n,r,i,a,o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof e==`string`&&(e=[e]),e.forEach((function(e){if(!o.isValidLookup(t)){var c=o.extractFromKey(e,s),l=c.key;n=l;var u=c.namespaces;o.options.fallbackNS&&(u=u.concat(o.options.fallbackNS));var d=s.count!==void 0&&typeof s.count!=`string`,f=s.context!==void 0&&(typeof s.context==`string`||typeof s.context==`number`)&&s.context!==``,p=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);u.forEach((function(e){o.isValidLookup(t)||(a=e,!gk[`${p[0]}-${e}`]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(a)&&(gk[`${p[0]}-${e}`]=!0,o.logger.warn(`key "${n}" for languages "${p.join(`, `)}" won't get resolved as namespace "${a}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach((function(n){if(!o.isValidLookup(t)){i=n;var a,c,u=l,p=[u];for(o.i18nFormat&&o.i18nFormat.addLookupKeys?o.i18nFormat.addLookupKeys(p,l,n,e,s):(d&&(a=o.pluralResolver.getSuffix(n,s.count)),d&&f&&p.push(u+a),f&&p.push(u+=`${o.options.contextSeparator}${s.context}`),d&&p.push(u+=a));c=p.pop();)o.isValidLookup(t)||(r=c,t=o.getResource(n,e,c,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:a}}},{key:`isValidLookup`,value:function(e){return!(e===void 0||!this.options.returnNull&&e===null||!this.options.returnEmptyString&&e===``)}},{key:`getResource`,value:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:`hasDefaultValue`,value:function(e){var t=`defaultValue`;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}]),t}();function vk(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Gle=function(){function e(t){YO(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=rk.create(`languageUtils`)}return ZO(e,[{key:`getScriptPartFromCode`,value:function(e){if(!e||e.indexOf(`-`)<0)return null;var t=e.split(`-`);return t.length===2?null:(t.pop(),t[t.length-1].toLowerCase()===`x`?null:this.formatLanguageCode(t.join(`-`)))}},{key:`getLanguagePartFromCode`,value:function(e){if(!e||e.indexOf(`-`)<0)return e;var t=e.split(`-`);return this.formatLanguageCode(t[0])}},{key:`formatLanguageCode`,value:function(e){if(typeof e==`string`&&e.indexOf(`-`)>-1){var t=[`hans`,`hant`,`latn`,`cyrl`,`cans`,`mong`,`arab`],n=e.split(`-`);return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=vk(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!==`sgn`&&n[2].length===2&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=vk(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=vk(n[2].toLowerCase()))),n.join(`-`)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:`isWhitelisted`,value:function(e){return this.logger.deprecate(`languageUtils.isWhitelisted`,`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(e)}},{key:`isSupportedCode`,value:function(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:`getBestMatchFromCodes`,value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(e.indexOf(r)===0)return e}))}})),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t):null}},{key:`getFallbackCodes`,value:function(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),typeof e==`string`&&(e=[e]),Object.prototype.toString.apply(e)===`[object Array]`)return e;if(!t)return e.default||[];var n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}},{key:`toResolveHierarchy`,value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],a=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return typeof e==`string`&&e.indexOf(`-`)>-1?(this.options.load!==`languageOnly`&&a(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&a(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&a(this.getLanguagePartFromCode(e))):typeof e==`string`&&a(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&a(n.formatLanguageCode(e))})),i}}]),e}(),Kle=[{lngs:[`ach`,`ak`,`am`,`arn`,`br`,`fil`,`gun`,`ln`,`mfe`,`mg`,`mi`,`oc`,`pt`,`pt-BR`,`tg`,`tl`,`ti`,`tr`,`uz`,`wa`],nr:[1,2],fc:1},{lngs:`af.an.ast.az.bg.bn.ca.da.de.dev.el.en.eo.es.et.eu.fi.fo.fur.fy.gl.gu.ha.hi.hu.hy.ia.it.kk.kn.ku.lb.mai.ml.mn.mr.nah.nap.nb.ne.nl.nn.no.nso.pa.pap.pms.ps.pt-PT.rm.sco.se.si.so.son.sq.sv.sw.ta.te.tk.ur.yo`.split(`.`),nr:[1,2],fc:2},{lngs:[`ay`,`bo`,`cgg`,`fa`,`ht`,`id`,`ja`,`jbo`,`ka`,`km`,`ko`,`ky`,`lo`,`ms`,`sah`,`su`,`th`,`tt`,`ug`,`vi`,`wo`,`zh`],nr:[1],fc:3},{lngs:[`be`,`bs`,`cnr`,`dz`,`hr`,`ru`,`sr`,`uk`],nr:[1,2,5],fc:4},{lngs:[`ar`],nr:[0,1,2,3,11,100],fc:5},{lngs:[`cs`,`sk`],nr:[1,2,5],fc:6},{lngs:[`csb`,`pl`],nr:[1,2,5],fc:7},{lngs:[`cy`],nr:[1,2,3,8],fc:8},{lngs:[`fr`],nr:[1,2],fc:9},{lngs:[`ga`],nr:[1,2,3,7,11],fc:10},{lngs:[`gd`],nr:[1,2,3,20],fc:11},{lngs:[`is`],nr:[1,2],fc:12},{lngs:[`jv`],nr:[0,1],fc:13},{lngs:[`kw`],nr:[1,2,3,4],fc:14},{lngs:[`lt`],nr:[1,2,10],fc:15},{lngs:[`lv`],nr:[1,2,0],fc:16},{lngs:[`mk`],nr:[1,2],fc:17},{lngs:[`mnk`],nr:[0,1,2],fc:18},{lngs:[`mt`],nr:[1,2,11,20],fc:19},{lngs:[`or`],nr:[2,1],fc:2},{lngs:[`ro`],nr:[1,2,20],fc:20},{lngs:[`sl`],nr:[5,1,2,3],fc:21},{lngs:[`he`,`iw`],nr:[1,2,20,21],fc:22}],qle={1:function(e){return Number(e>1)},2:function(e){return Number(e!=1)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(e==1?0:e>=2&&e<=4?1:2)},7:function(e){return Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(e==1?0:e==2?1:e!=8&&e!=11?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(e==1?0:e==2?1:e<7?2:e<11?3:4)},11:function(e){return Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(e!==0)},14:function(e){return Number(e==1?0:e==2?1:e==3?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:e===0?2:1)},17:function(e){return Number(e==1||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(e==0?0:e==1?1:2)},19:function(e){return Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(e==1?0:e==0||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)}};function Jle(){var e={};return Kle.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:qle[t.fc]}}))})),e}var Yle=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};YO(this,e),this.languageUtils=t,this.options=n,this.logger=rk.create(`pluralResolver`),this.rules=Jle()}return ZO(e,[{key:`addRule`,value:function(e,t){this.rules[e]=t}},{key:`getRule`,value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:`needsPlural`,value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:`getPluralFormsOfKey`,value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:`getSuffixes`,value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:`getSuffix`,value:function(e,t){var n=this,r=this.getRule(e);if(r){var i=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),a=r.numbers[i];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(a===2?a=`plural`:a===1&&(a=``));var o=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON===`v1`?a===1?``:typeof a==`number`?`_plural_${a.toString()}`:o():this.options.compatibilityJSON===`v2`||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn(`no plural rule found for: ${e}`),``}}]),e}(),Xle=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};YO(this,e),this.logger=rk.create(`interpolator`),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return ZO(e,[{key:`init`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||={escapeValue:!0};var t=e.interpolation;this.escape=t.escape===void 0?Ule:t.escape,this.escapeValue=t.escapeValue===void 0||t.escapeValue,this.useRawValueToEscape=t.useRawValueToEscape!==void 0&&t.useRawValueToEscape,this.prefix=t.prefix?fk(t.prefix):t.prefixEscaped||`{{`,this.suffix=t.suffix?fk(t.suffix):t.suffixEscaped||`}}`,this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||`,`,this.unescapePrefix=t.unescapeSuffix?``:t.unescapePrefix||`-`,this.unescapeSuffix=this.unescapePrefix?``:t.unescapeSuffix||``,this.nestingPrefix=t.nestingPrefix?fk(t.nestingPrefix):t.nestingPrefixEscaped||fk(`$t(`),this.nestingSuffix=t.nestingSuffix?fk(t.nestingSuffix):t.nestingSuffixEscaped||fk(`)`),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||`,`,this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=t.alwaysFormat!==void 0&&t.alwaysFormat,this.resetRegExp()}},{key:`reset`,value:function(){this.options&&this.init(this.options)}},{key:`resetRegExp`,value:function(){var e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,`g`);var t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,`g`);var n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(n,`g`)}},{key:`interpolate`,value:function(e,t,n,r){var i,a,o,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,`$$$$`)}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var i=uk(t,c,e);return s.alwaysFormat?s.format(i,void 0,n,JO({},r,t,{interpolationkey:e})):i}var a=e.split(s.formatSeparator),o=a.shift().trim(),l=a.join(s.formatSeparator).trim();return s.format(uk(t,c,o),l,n,JO({},r,t,{interpolationkey:o}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?l(s.escape(e)):l(e)}}].forEach((function(t){for(o=0;i=t.regex.exec(e);){if((a=u(i[1].trim()))===void 0)if(typeof d==`function`){var n=d(e,i,r);a=typeof n==`string`?n:``}else{if(f){a=i[0];continue}s.logger.warn(`missed to pass in variable ${i[1]} for interpolating ${e}`),a=``}else typeof a==`string`||s.useRawValueToEscape||(a=ok(a));var c=t.safeValue(a);if(e=e.replace(i[0],c),f?(t.regex.lastIndex+=c.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++o>=s.maxReplaces)break}})),e}},{key:`nest`,value:function(e,t){var n,r,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=JO({},a);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=(i=this.interpolate(i,o)).replace(/'/g,`"`);try{o=JSON.parse(i),t&&(o=JO({},t,o))}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return delete o.defaultValue,e}for(o.applyPostProcessor=!1,delete o.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],l=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),c=u,l=!0}if((r=t(s.call(this,n[1].trim(),o),o))&&n[0]===e&&typeof r!=`string`)return r;typeof r!=`string`&&(r=ok(r)),r||=(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),``),l&&(r=c.reduce((function(e,t){return i.format(e,t,a.lng,JO({},a,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),Zle=function(e){function t(e,n,r){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return YO(this,t),i=$O(this,ek(t).call(this)),pk&&ik.call(QO(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=rk.create(`backendConnector`),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return nk(t,ik),ZO(t,[{key:`queueLoad`,value:function(e,t,n,r){var i=this,a=[],o=[],s=[],c=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s=`${e}|${t}`;!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(i.state[s]===1?o.indexOf(s)<0&&o.push(s):(i.state[s]=1,r=!1,o.indexOf(s)<0&&o.push(s),a.indexOf(s)<0&&a.push(s),c.indexOf(t)<0&&c.push(t)))})),r||s.push(e)})),(a.length||o.length)&&this.queue.push({pending:o,loaded:{},errors:[],callback:r}),{toLoad:a,pending:o,toLoadLanguages:s,toLoadNamespaces:c}}},{key:`loaded`,value:function(e,t,n){var r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),n&&this.store.addResourceBundle(i,a,n),this.state[e]=t?-1:2;var o={};this.queue.forEach((function(n){(function(e,t,n,r){var i=sk(e,t,Object),a=i.obj,o=i.k;a[o]=a[o]||[],a[o].push(n)})(n.loaded,[i],a),function(e,t){for(var n=e.indexOf(t);n!==-1;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),n.pending.length!==0||n.done||(Object.keys(n.loaded).forEach((function(e){o[e]||(o[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){o[e].indexOf(t)<0&&o[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit(`loaded`,o),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:`read`,value:function(e,t,n){var r=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,o=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,c){s&&c&&i<5?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*a,o)}),a):o(s,c)})):o(null,{})}},{key:`prepareLoading`,value:function(e,t){var n=this,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),i&&i();typeof e==`string`&&(e=this.languageUtils.toResolveHierarchy(e)),typeof t==`string`&&(t=[t]);var a=this.queueLoad(e,t,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:`load`,value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:`reload`,value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:`loadOne`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,r=e.split(`|`),i=r[0],a=r[1];this.read(i,a,`read`,void 0,void 0,(function(r,o){r&&t.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,r),!r&&o&&t.logger.log(`${n}loaded namespace ${a} for language ${i}`,o),t.loaded(e,r,o)}))}},{key:`saveMissing`,value:function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`):n!=null&&n!==``&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,JO({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function Qle(){return{debug:!1,initImmediate:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(qO(e[1])===`object`&&(t=e[1]),typeof e[1]==`string`&&(t.defaultValue=e[1]),typeof e[2]==`string`&&(t.tDescription=e[2]),qO(e[2])===`object`||qO(e[3])===`object`){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!1}}}function yk(e){return typeof e.ns==`string`&&(e.ns=[e.ns]),typeof e.fallbackLng==`string`&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS==`string`&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf(`cimode`)<0&&(e.whitelist=e.whitelist.concat([`cimode`])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e}function bk(){}var xk=new(function(e){function t(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(YO(this,t),e=$O(this,ek(t).call(this)),pk&&ik.call(QO(e)),e.options=yk(n),e.services={},e.logger=rk,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),$O(e,QO(e));setTimeout((function(){e.init(n,r)}),0)}return e}return nk(t,ik),ZO(t,[{key:`init`,value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?typeof e==`function`?new e:e:null}if(typeof t==`function`&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate(`whitelist`,`option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.`),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate(`whitelist`,`options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.`),this.options=JO({},Qle(),this.options,yk(t)),this.format=this.options.interpolation.format,n||=bk,!this.options.isClone){this.modules.logger?rk.init(r(this.modules.logger),this.options):rk.init(null,this.options);var i=new Gle(this.options);this.store=new Wle(this.options.resources,this.options);var a=this.services;a.logger=rk,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new Yle(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new Xle(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Zle(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on(`*`,(function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new _k(this.services,this.options),this.translator.on(`*`,(function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var o=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);o.length>0&&o[0]!==`dev`&&(this.options.lng=o[0])}this.services.languageDetector||this.options.lng||this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var s=ak(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn(`init: i18next is already initialized. You should call init just once!`),e.isInitialized=!0,e.options.isClone||e.logger.log(`initialized`,e.options),e.emit(`initialized`,e.options),s.resolve(r),n(t,r)};if(e.languages&&e.options.compatibilityAPI!==`v1`&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),s}},{key:`loadResources`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bk,r=typeof e==`string`?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()===`cimode`)return n();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return a(e)})),this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,n)}else n(null)}},{key:`reloadResources`,value:function(e,t,n){var r=ak();return e||=this.languages,t||=this.options.ns,n||=bk,this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:`use`,value:function(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&hk.addPostProcessor(e),e.type===`3rdParty`&&this.modules.external.push(e),this}},{key:`changeLanguage`,value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=ak();this.emit(`languageChanging`,e);var i=function(i){e||i||!n.services.languageDetector||(i=[]);var a=typeof i==`string`?i:n.services.languageUtils.getBestMatchFromCodes(i);a&&(n.language||(n.language=a,n.languages=n.services.languageUtils.toResolveHierarchy(a)),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){(function(e,i){i?(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit(`languageChanged`,i),n.logger.log(`languageChanged`,i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))})(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:`getFixedT`,value:function(e,t,n){var r=this,i=function e(t,i){var a;if(qO(i)!==`object`){for(var o=arguments.length,s=Array(o>2?o-2:0),c=2;c<o;c++)s[c-2]=arguments[c];a=r.options.overloadTranslationOptionHandler([t,i].concat(s))}else a=JO({},i);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns;var l=r.options.keySeparator||`.`,u=n?`${n}${l}${t}`:t;return r.t(u,a)};return typeof e==`string`?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:`t`,value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:`exists`,value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:`setDefaultNamespace`,value:function(e){this.options.defaultNS=e}},{key:`hasLoadedNamespace`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;var r=this.languages[0],i=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if(r.toLowerCase()===`cimode`)return!0;var o=function(e,n){var r=t.services.backendConnector.state[`${e}|${n}`];return r===-1||r===2};if(n.precheck){var s=n.precheck(this,o);if(s!==void 0)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!o(r,e)||i&&!o(a,e))}},{key:`loadNamespaces`,value:function(e,t){var n=this,r=ak();return this.options.ns?(typeof e==`string`&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:`loadLanguages`,value:function(e,t){var n=ak();typeof e==`string`&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:`dir`,value:function(e){return e||=this.languages&&this.languages.length>0?this.languages[0]:this.language,e?`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam`.split(`.`).indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?`rtl`:`ltr`:`rtl`}},{key:`createInstance`,value:function(){return new t(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:`cloneInstance`,value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bk,i=JO({},this.options,n,{isClone:!0}),a=new t(i);return[`store`,`services`,`language`].forEach((function(t){a[t]=e[t]})),a.services=JO({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new _k(a.services,a.options),a.translator.on(`*`,(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.emit.apply(a,[e].concat(n))})),a.init(i,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:`toJSON`,value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}());function Sk(e,t){xk.addResourceBundle(e,`translation`,t,!0,!0)}function $le(e){xk.changeLanguage(e)}xk.init({lng:`zh-CN`,resources:{}});var q=xk.t.bind(xk);Sk(`en`,{editor:{more:`More`,justify:`Justify`,indent:`Indent`,image:`Image`,video:`Video`}}),Sk(`zh-CN`,{editor:{more:`更多`,justify:`对齐`,indent:`缩进`,image:`图片`,video:`视频`}});var eue=Wc?{}.toString:function(){return`[object `+Gc(this)+`]`};Wc||Ac(Object.prototype,`toString`,eue,{unsafe:!0});var Ck=Array.isArray||function(e){return Ds(e)==`Array`},wk=function(){},tue=[],Tk=Ps(`Reflect`,`construct`),Ek=/^\s*(?:class|function)\b/,nue=Es(Ek.exec),rue=!Ek.exec(wk),Dk=function(e){if(!Ms(e))return!1;try{return Tk(wk,tue,e),!0}catch{return!1}},iue=!Tk||gs((function(){var e;return Dk(Dk.call)||!Dk(Object)||!Dk((function(){e=!0}))||e}))?function(e){if(!Ms(e))return!1;switch(Gc(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return rue||!!nue(Ek,_c(e))}:Dk,aue=rc(`species`),Ok=N.Array,oue=function(e,t){return new(function(e){var t;return Ck(e)&&(t=e.constructor,(iue(t)&&(t===Ok||Ck(t.prototype))||Ns(t)&&(t=t[aue])===null)&&(t=void 0)),t===void 0?Ok:t}(e))(t===0?0:t)},kk=Es([].push),Ak=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=Zs(c),h=ks(m),g=Nl(l,u),_=Pc(h),v=0,y=d||oue,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:kk(b,f)}else switch(e){case 4:return!1;case 7:kk(b,f)}return a?-1:r||i?i:b}},sue={forEach:Ak(0),map:Ak(1),filter:Ak(2),some:Ak(3),every:Ak(4),find:Ak(5),findIndex:Ak(6),filterReject:Ak(7)}.forEach,jk=function(e,t){var n=[][e];return!!n&&gs((function(){n.call(null,t||function(){throw 1},1)}))}(`forEach`)?[].forEach:function(e){return sue(this,e,arguments.length>1?arguments[1]:void 0)},Mk=function(e){if(e&&e.forEach!==jk)try{pc(e,`forEach`,jk)}catch{e.forEach=jk}};for(var Nk in lu)lu[Nk]&&Mk(N[Nk]&&N[Nk].prototype);Mk(fu),Sk(`en`,{common:{ok:`OK`,delete:`Delete`,enter:`Enter`},blockQuote:{title:`Quote`},codeBlock:{title:`Code block`},color:{color:`Font color`,bgColor:`Back color`,default:`Default color`,clear:`Clear back color`},divider:{title:`Divider`},emotion:{title:`Emotion`},fontSize:{title:`Font size`,default:`Default`},fontFamily:{title:`Font family`,default:`Default`},fullScreen:{title:`Full screen`},header:{title:`Header`,text:`Text`},image:{netImage:`Net image`,delete:`Delete image`,edit:`Edit image`,viewLink:`View link`,src:`Image src`,desc:`Description`,link:`Image link`},indent:{decrease:`Decrease`,increase:`Increase`},justify:{left:`Left`,right:`Right`,center:`Center`,justify:`Justify`},lineHeight:{title:`Line height`,default:`Default`},link:{insert:`Insert link`,text:`Link text`,url:`Link source`,unLink:`Unlink`,edit:`Edit link`,view:`View link`},textStyle:{bold:`Bold`,clear:`Clear styles`,code:`Inline code`,italic:`Italic`,sub:`Sub`,sup:`Sup`,through:`Through`,underline:`Underline`},undo:{undo:`undo`,redo:`Redo`},todo:{todo:`Todo`}}),Sk(`zh-CN`,{common:{ok:`确定`,delete:`删除`,enter:`回车`},blockQuote:{title:`引用`},codeBlock:{title:`代码块`},color:{color:`文字颜色`,bgColor:`背景色`,default:`默认颜色`,clear:`清除背景色`},divider:{title:`分割线`},emotion:{title:`表情`},fontSize:{title:`字号`,default:`默认字号`},fontFamily:{title:`字体`,default:`默认字体`},fullScreen:{title:`全屏`},header:{title:`标题`,text:`正文`},image:{netImage:`网络图片`,delete:`删除图片`,edit:`编辑图片`,viewLink:`查看链接`,src:`图片地址`,desc:`图片描述`,link:`图片链接`},indent:{decrease:`减少缩进`,increase:`增加缩进`},justify:{left:`左对齐`,right:`右对齐`,center:`居中对齐`,justify:`两端对齐`},lineHeight:{title:`行高`,default:`默认行高`},link:{insert:`插入链接`,text:`链接文本`,url:`链接地址`,unLink:`取消链接`,edit:`修改链接`,view:`查看链接`},textStyle:{bold:`粗体`,clear:`清除格式`,code:`行内代码`,italic:`斜体`,sub:`下标`,sup:`上标`,through:`删除线`,underline:`下划线`},undo:{undo:`撤销`,redo:`重做`},todo:{todo:`待办`}});var cue={type:`paragraph`,renderElem:function(e,t,n){return H(`p`,null,t)}},Pk=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Fk(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ik,Lk,Rk=function(e){return e&&e.Math==Math&&e},J=Rk(typeof globalThis==`object`&&globalThis)||Rk(typeof window==`object`&&window)||Rk(typeof self==`object`&&self)||Rk(typeof Pk==`object`&&Pk)||function(){return this}()||Function(`return this`)(),zk=function(e){try{return!!e()}catch{return!0}},Bk=!zk((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Vk=Function.prototype.call,Hk=Vk.bind?Vk.bind(Vk):function(){return Vk.apply(Vk,arguments)},Uk={}.propertyIsEnumerable,Wk=Object.getOwnPropertyDescriptor,Gk={f:Wk&&!Uk.call({1:2},1)?function(e){var t=Wk(this,e);return!!t&&t.enumerable}:Uk},Kk=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},qk=Function.prototype,Jk=qk.bind,Yk=qk.call,lue=Jk&&Jk.bind(Yk),Y=Jk?function(e){return e&&lue(Yk,e)}:function(e){return e&&function(){return Yk.apply(e,arguments)}},uue=Y({}.toString),due=Y(``.slice),Xk=function(e){return due(uue(e),8,-1)},Zk=J.Object,fue=Y(``.split),Qk=zk((function(){return!Zk(`z`).propertyIsEnumerable(0)}))?function(e){return Xk(e)==`String`?fue(e,``):Zk(e)}:Zk,pue=J.TypeError,$k=function(e){if(e==null)throw pue(`Can't call method on `+e);return e},eA=function(e){return Qk($k(e))},tA=function(e){return typeof e==`function`},nA=function(e){return typeof e==`object`?e!==null:tA(e)},mue=function(e){return tA(e)?e:void 0},rA=function(e,t){return arguments.length<2?mue(J[e]):J[e]&&J[e][t]},iA=Y({}.isPrototypeOf),aA=rA(`navigator`,`userAgent`)||``,oA=J.process,sA=J.Deno,cA=oA&&oA.versions||sA&&sA.version,lA=cA&&cA.v8;lA&&(Lk=(Ik=lA.split(`.`))[0]>0&&Ik[0]<4?1:+(Ik[0]+Ik[1])),!Lk&&aA&&(!(Ik=aA.match(/Edge\/(\d+)/))||Ik[1]>=74)&&(Ik=aA.match(/Chrome\/(\d+)/))&&(Lk=+Ik[1]);var uA=Lk,dA=!!Object.getOwnPropertySymbols&&!zk((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&uA&&uA<41})),fA=dA&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,pA=J.Object,mA=fA?function(e){return typeof e==`symbol`}:function(e){var t=rA(`Symbol`);return tA(t)&&iA(t.prototype,pA(e))},hA=J.String,gA=function(e){try{return hA(e)}catch{return`Object`}},_A=J.TypeError,vA=function(e){if(tA(e))return e;throw _A(gA(e)+` is not a function`)},yA=function(e,t){var n=e[t];return n==null?void 0:vA(n)},bA=J.TypeError,xA=Object.defineProperty,SA=function(e,t){try{xA(J,e,{value:t,configurable:!0,writable:!0})}catch{J[e]=t}return t},CA=J[`__core-js_shared__`]||SA(`__core-js_shared__`,{}),wA=Fk((function(e){(e.exports=function(e,t){return CA[e]||(CA[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),TA=J.Object,EA=function(e){return TA($k(e))},DA=Y({}.hasOwnProperty),OA=Object.hasOwn||function(e,t){return DA(EA(e),t)},kA=0,AA=Math.random(),jA=Y(1 .toString),MA=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+jA(++kA+AA,36)},NA=wA(`wks`),PA=J.Symbol,FA=PA&&PA.for,IA=fA?PA:PA&&PA.withoutSetter||MA,LA=function(e){if(!OA(NA,e)||!dA&&typeof NA[e]!=`string`){var t=`Symbol.`+e;dA&&OA(PA,e)?NA[e]=PA[e]:NA[e]=fA&&FA?FA(t):IA(t)}return NA[e]},RA=J.TypeError,zA=LA(`toPrimitive`),BA=function(e){var t=function(e,t){if(!nA(e)||mA(e))return e;var n,r=yA(e,zA);if(r){if(t===void 0&&(t=`default`),n=Hk(r,e,t),!nA(n)||mA(n))return n;throw RA(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&tA(n=e.toString)&&!nA(r=Hk(n,e))||tA(n=e.valueOf)&&!nA(r=Hk(n,e))||t!==`string`&&tA(n=e.toString)&&!nA(r=Hk(n,e)))return r;throw bA(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return mA(t)?t:t+``},VA=J.document,HA=nA(VA)&&nA(VA.createElement),UA=function(e){return HA?VA.createElement(e):{}},WA=!Bk&&!zk((function(){return Object.defineProperty(UA(`div`),`a`,{get:function(){return 7}}).a!=7})),GA=Object.getOwnPropertyDescriptor,KA={f:Bk?GA:function(e,t){if(e=eA(e),t=BA(t),WA)try{return GA(e,t)}catch{}if(OA(e,t))return Kk(!Hk(Gk.f,e,t),e[t])}},qA=J.String,JA=J.TypeError,YA=function(e){if(nA(e))return e;throw JA(qA(e)+` is not an object`)},XA=J.TypeError,ZA=Object.defineProperty,QA={f:Bk?ZA:function(e,t,n){if(YA(e),t=BA(t),YA(n),WA)try{return ZA(e,t,n)}catch{}if(`get`in n||`set`in n)throw XA(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},$A=Bk?function(e,t,n){return QA.f(e,t,Kk(1,n))}:function(e,t,n){return e[t]=n,e},ej=Y(Function.toString);tA(CA.inspectSource)||(CA.inspectSource=function(e){return ej(e)});var tj,nj,rj,ij=CA.inspectSource,aj=J.WeakMap,oj=tA(aj)&&/native code/.test(ij(aj)),sj=wA(`keys`),cj=function(e){return sj[e]||(sj[e]=MA(e))},lj={},uj=J.TypeError,dj=J.WeakMap;if(oj||CA.state){var fj=CA.state||=new dj,pj=Y(fj.get),mj=Y(fj.has),hj=Y(fj.set);tj=function(e,t){if(mj(fj,e))throw new uj(`Object already initialized`);return t.facade=e,hj(fj,e,t),t},nj=function(e){return pj(fj,e)||{}},rj=function(e){return mj(fj,e)}}else{var gj=cj(`state`);lj[gj]=!0,tj=function(e,t){if(OA(e,gj))throw new uj(`Object already initialized`);return t.facade=e,$A(e,gj,t),t},nj=function(e){return OA(e,gj)?e[gj]:{}},rj=function(e){return OA(e,gj)}}var _j={set:tj,get:nj,has:rj,enforce:function(e){return rj(e)?nj(e):tj(e,{})},getterFor:function(e){return function(t){var n;if(!nA(t)||(n=nj(t)).type!==e)throw uj(`Incompatible receiver, `+e+` required`);return n}}},vj=Function.prototype,yj=Bk&&Object.getOwnPropertyDescriptor,bj=OA(vj,`name`),xj={EXISTS:bj,PROPER:bj&&function(){}.name===`something`,CONFIGURABLE:bj&&(!Bk||Bk&&yj(vj,`name`).configurable)},Sj=Fk((function(e){var t=xj.CONFIGURABLE,n=_j.get,r=_j.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;tA(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!OA(a,`name`)||t&&a.name!==d)&&$A(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===J?l?e[n]=a:SA(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:$A(e,n,a))})(Function.prototype,`toString`,(function(){return tA(this)&&n(this).source||ij(this)}))})),Cj=Math.ceil,wj=Math.floor,Tj=function(e){var t=+e;return t!=t||t===0?0:(t>0?wj:Cj)(t)},Ej=Math.max,Dj=Math.min,Oj=function(e,t){var n=Tj(e);return n<0?Ej(n+t,0):Dj(n,t)},kj=Math.min,Aj=function(e){return e>0?kj(Tj(e),9007199254740991):0},jj=function(e){return Aj(e.length)},Mj=function(e){return function(t,n,r){var i,a=eA(t),o=jj(a),s=Oj(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},Nj={includes:Mj(!0),indexOf:Mj(!1)},Pj=Nj.indexOf,Fj=Y([].push),Ij=function(e,t){var n,r=eA(e),i=0,a=[];for(n in r)!OA(lj,n)&&OA(r,n)&&Fj(a,n);for(;t.length>i;)OA(r,n=t[i++])&&(~Pj(a,n)||Fj(a,n));return a},Lj=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Rj=Lj.concat(`length`,`prototype`),zj={f:Object.getOwnPropertyNames||function(e){return Ij(e,Rj)}},Bj={f:Object.getOwnPropertySymbols},Vj=Y([].concat),Hj=rA(`Reflect`,`ownKeys`)||function(e){var t=zj.f(YA(e)),n=Bj.f;return n?Vj(t,n(e)):t},Uj=function(e,t){for(var n=Hj(t),r=QA.f,i=KA.f,a=0;a<n.length;a++){var o=n[a];OA(e,o)||r(e,o,i(t,o))}},Wj=/#|\.prototype\./,Gj=function(e,t){var n=qj[Kj(e)];return n==Yj||n!=Jj&&(tA(t)?zk(t):!!t)},Kj=Gj.normalize=function(e){return String(e).replace(Wj,`.`).toLowerCase()},qj=Gj.data={},Jj=Gj.NATIVE=`N`,Yj=Gj.POLYFILL=`P`,Xj=Gj,Zj=KA.f,Qj=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?J:l?J[s]||SA(s,{}):(J[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Zj(n,r))&&o.value:n[r],!Xj(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Uj(a,i)}(e.sham||i&&i.sham)&&$A(a,`sham`,!0),Sj(n,r,a,e)}},$j=Y(Y.bind),eM=Array.isArray||function(e){return Xk(e)==`Array`},tM={};tM[LA(`toStringTag`)]=`z`;var nM=String(tM)===`[object z]`,rM=LA(`toStringTag`),iM=J.Object,aM=Xk(function(){return arguments}())==`Arguments`,oM=nM?Xk:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=iM(e),rM))==`string`?n:aM?Xk(t):(r=Xk(t))==`Object`&&tA(t.callee)?`Arguments`:r},sM=function(){},cM=[],lM=rA(`Reflect`,`construct`),uM=/^\s*(?:class|function)\b/,dM=Y(uM.exec),fM=!uM.exec(sM),pM=function(e){if(!tA(e))return!1;try{return lM(sM,cM,e),!0}catch{return!1}},mM=!lM||zk((function(){var e;return pM(pM.call)||!pM(Object)||!pM((function(){e=!0}))||e}))?function(e){if(!tA(e))return!1;switch(oM(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return fM||!!dM(uM,ij(e))}:pM,hM=LA(`species`),gM=J.Array,_M=function(e,t){return new(function(e){var t;return eM(e)&&(t=e.constructor,(mM(t)&&(t===gM||eM(t.prototype))||nA(t)&&(t=t[hM])===null)&&(t=void 0)),t===void 0?gM:t}(e))(t===0?0:t)},vM=Y([].push),yM=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=EA(c),h=Qk(m),g=function(e,t){return vA(e),t===void 0?e:$j?$j(e,t):function(){return e.apply(t,arguments)}}(l,u),_=jj(h),v=0,y=d||_M,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:vM(b,f)}else switch(e){case 4:return!1;case 7:vM(b,f)}return a?-1:r||i?i:b}},bM={forEach:yM(0),map:yM(1),filter:yM(2),some:yM(3),every:yM(4),find:yM(5),findIndex:yM(6),filterReject:yM(7)},xM=LA(`species`),SM=function(e){return uA>=51||!zk((function(){var t=[];return(t.constructor={})[xM]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},CM=bM.filter;Qj({target:`Array`,proto:!0,forced:!SM(`filter`)},{filter:function(e){return CM(this,e,arguments.length>1?arguments[1]:void 0)}});var wM=nM?{}.toString:function(){return`[object `+oM(this)+`]`};nM||Sj(Object.prototype,`toString`,wM,{unsafe:!0});var TM,EM=J.String,DM=function(e){if(oM(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return EM(e)},OM=function(){var e=YA(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},kM=J.RegExp,AM=zk((function(){var e=kM(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),jM=AM||zk((function(){return!kM(`a`,`y`).sticky})),MM={BROKEN_CARET:AM||zk((function(){var e=kM(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:jM,UNSUPPORTED_Y:AM},NM=Object.keys||function(e){return Ij(e,Lj)},PM=Bk?Object.defineProperties:function(e,t){YA(e);for(var n,r=eA(t),i=NM(t),a=i.length,o=0;a>o;)QA.f(e,n=i[o++],r[n]);return e},FM=rA(`document`,`documentElement`),IM=cj(`IE_PROTO`),LM=function(){},RM=function(e){return`<script>`+e+`<\/script>`},zM=function(e){e.write(RM(``)),e.close();var t=e.parentWindow.Object;return e=null,t},BM=function(){try{TM=new ActiveXObject(`htmlfile`)}catch{}var e,t;BM=typeof document<`u`?document.domain&&TM?zM(TM):((t=UA(`iframe`)).style.display=`none`,FM.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(RM(`document.F=Object`)),e.close(),e.F):zM(TM);for(var n=Lj.length;n--;)delete BM.prototype[Lj[n]];return BM()};lj[IM]=!0;var VM,HM,UM=Object.create||function(e,t){var n;return e===null?n=BM():(LM.prototype=YA(e),n=new LM,LM.prototype=null,n[IM]=e),t===void 0?n:PM(n,t)},WM=J.RegExp,GM=zk((function(){var e=WM(`.`,`s`);return!(e.dotAll&&e.exec(`
48
+ `)&&e.flags===`s`)})),KM=J.RegExp,qM=zk((function(){var e=KM(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),JM=_j.get,YM=wA(`native-string-replace`,String.prototype.replace),XM=RegExp.prototype.exec,ZM=XM,QM=Y(``.charAt),$M=Y(``.indexOf),eN=Y(``.replace),tN=Y(``.slice),nN=(HM=/b*/g,Hk(XM,VM=/a/,`a`),Hk(XM,HM,`a`),VM.lastIndex!==0||HM.lastIndex!==0),rN=MM.BROKEN_CARET,iN=/()??/.exec(``)[1]!==void 0;(nN||iN||rN||GM||qM)&&(ZM=function(e){var t,n,r,i,a,o,s,c=this,l=JM(c),u=DM(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=Hk(ZM,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=rN&&c.sticky,m=Hk(OM,c),h=c.source,g=0,_=u;if(p&&(m=eN(m,`y`,``),$M(m,`g`)===-1&&(m+=`g`),_=tN(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&QM(u,c.lastIndex-1)!==`
49
+ `)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),iN&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),nN&&(r=c.lastIndex),i=Hk(XM,p?n:c,_),p?i?(i.input=tN(i.input,g),i[0]=tN(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:nN&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),iN&&i&&i.length>1&&Hk(YM,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=UM(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var aN=ZM;Qj({target:`RegExp`,proto:!0,forced:/./.exec!==aN},{exec:aN});var oN=Function.prototype,sN=oN.apply,cN=oN.bind,lN=oN.call,uN=typeof Reflect==`object`&&Reflect.apply||(cN?lN.bind(sN):function(){return lN.apply(sN,arguments)}),dN=LA(`species`),fN=RegExp.prototype,pN=function(e,t,n,r){var i=LA(e),a=!zk((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!zk((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[dN]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=Y(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=Y(e),c=t.exec;return c===aN||c===fN.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));Sj(String.prototype,e,c[0]),Sj(fN,i,c[1])}r&&$A(fN[i],`sham`,!0)},mN=Y(``.charAt),hN=Y(``.charCodeAt),gN=Y(``.slice),_N=function(e){return function(t,n){var r,i,a=DM($k(t)),o=Tj(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=hN(a,o))<55296||r>56319||o+1===s||(i=hN(a,o+1))<56320||i>57343?e?mN(a,o):r:e?gN(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),vN=function(e,t,n){return t+(n?_N(e,t).length:1)},yN=Math.floor,bN=Y(``.charAt),xN=Y(``.replace),SN=Y(``.slice),CN=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,wN=/\$([$&'`]|\d{1,2})/g,TN=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=wN;return i!==void 0&&(i=EA(i),c=CN),xN(a,c,(function(a,c){var l;switch(bN(c,0)){case`$`:return`$`;case`&`:return e;case"`":return SN(t,0,n);case`'`:return SN(t,o);case`<`:l=i[SN(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=yN(u/10);return d===0?a:d<=s?r[d-1]===void 0?bN(c,1):r[d-1]+bN(c,1):a}l=r[u-1]}return l===void 0?``:l}))},EN=J.TypeError,DN=function(e,t){var n=e.exec;if(tA(n)){var r=Hk(n,e,t);return r!==null&&YA(r),r}if(Xk(e)===`RegExp`)return Hk(aN,e,t);throw EN(`RegExp#exec called on incompatible receiver`)},ON=LA(`replace`),kN=Math.max,AN=Math.min,jN=Y([].concat),MN=Y([].push),NN=Y(``.indexOf),PN=Y(``.slice),FN=`a`.replace(/./,`$0`)===`$0`,IN=!!/./[ON]&&/./[ON](`a`,`$0`)===``;pN(`replace`,(function(e,t,n){var r=IN?`$`:`$0`;return[function(e,n){var r=$k(this),i=e==null?void 0:yA(e,ON);return i?Hk(i,e,r,n):Hk(t,DM(r),e,n)},function(e,i){var a=YA(this),o=DM(e);if(typeof i==`string`&&NN(i,r)===-1&&NN(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=tA(i);c||(i=DM(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=DN(a,o);if(f===null||(MN(d,f),!l))break;DM(f[0])===``&&(a.lastIndex=vN(o,Aj(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=DM((f=d[g])[0]),v=kN(AN(Tj(f.index),o.length),0),y=[],b=1;b<f.length;b++)MN(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=jN([_],y,v,o);x!==void 0&&MN(S,x);var C=DM(uN(i,void 0,S))}else C=TN(_,o,v,y,x,i);v>=h&&(m+=PN(o,h,v)+C,h=v+_.length)}return m+PN(o,h)}]}),!!zk((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!FN||IN);var LN=LA(`unscopables`),RN=Array.prototype;RN[LN]??QA.f(RN,LN,{configurable:!0,value:UM(null)});var zN=function(e){RN[LN][e]=!0},BN=bM.find,VN=!0;`find`in[]&&[,].find((function(){VN=!1})),Qj({target:`Array`,proto:!0,forced:VN},{find:function(e){return BN(this,e,arguments.length>1?arguments[1]:void 0)}}),zN(`find`);var HN=LA(`match`),UN=function(e){var t;return nA(e)&&((t=e[HN])===void 0?Xk(e)==`RegExp`:!!t)},WN=J.TypeError,GN=LA(`species`),KN=function(e,t,n){var r=BA(t);r in e?QA.f(e,r,Kk(0,n)):e[r]=n},qN=J.Array,JN=Math.max,YN=function(e,t,n){for(var r=jj(e),i=Oj(t,r),a=Oj(n===void 0?r:n,r),o=qN(JN(a-i,0)),s=0;i<a;i++,s++)KN(o,s,e[i]);return o.length=s,o},XN=MM.UNSUPPORTED_Y,ZN=Math.min,QN=[].push,$N=Y(/./.exec),eP=Y(QN),tP=Y(``.slice);pN(`split`,(function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r=DM($k(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!UN(e))return Hk(t,r,e,i);for(var a,o,s,c=[],l=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),u=0,d=new RegExp(e.source,l+`g`);(a=Hk(aN,d,r))&&!((o=d.lastIndex)>u&&(eP(c,tP(r,u,a.index)),a.length>1&&a.index<r.length&&uN(QN,c,YN(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&$N(d,``)||eP(c,``):eP(c,tP(r,u)),c.length>i?YN(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:Hk(t,this,e,n)}:t,[function(t,n){var i=$k(this),a=t==null?void 0:yA(t,e);return a?Hk(a,t,i,n):Hk(r,DM(i),t,n)},function(e,i){var a=YA(this),o=DM(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=YA(e).constructor;return r===void 0||(n=YA(r)[GN])==null?t:function(e){if(mM(e))return e;throw WN(gA(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(XN?`g`:`y`),d=new c(XN?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return DN(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=XN?0:m;var g,_=DN(d,XN?tP(o,m):o);if(_===null||(g=ZN(Aj(d.lastIndex+(XN?m:0)),o.length))===p)m=vN(o,m,l);else{if(eP(h,tP(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(eP(h,_[v]),h.length===f)return h;m=p=g}}return eP(h,tP(o,p)),h}]}),!!zk((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),XN);var nP=`
50
+ \v\f\r \xA0               \u2028\u2029`,rP=Y(``.replace),iP=`[`+nP+`]`,hue=RegExp(`^`+iP+iP+`*`),gue=RegExp(iP+iP+`*$`),aP=function(e){return function(t){var n=DM($k(t));return 1&e&&(n=rP(n,hue,``)),2&e&&(n=rP(n,gue,``)),n}},_ue={start:aP(1),end:aP(2),trim:aP(3)},vue=xj.PROPER,yue=_ue.trim;function oP(e){return V(`<div>`+e+`</div>`).children().filter((function(e){return e.tagName!==`BR`})).length===0}function sP(e){return e.length===0?``:e[0].outerHTML}function cP(e){return e.length?e[0].tagName.toLowerCase():``}function lP(e,t){for(var n=``,r=(e.attr(`style`)||``).split(`;`),i=r.length,a=0;a<i;a++){var o=r[a];if(o){var s=o.split(`:`);s[0].trim()===t&&(n=s[1].trim())}}return n}Qj({target:`String`,proto:!0,forced:zk((function(){return!!nP.trim()||vue&&nP.trim.name!==`trim`}))},{trim:function(){return yue(this)}}),Qj({global:!0},{globalThis:J}),Im&&(V.fn.css=Im),Hm&&(V.fn.append=Hm),Um&&(V.fn.prepend=Um),Sm&&(V.fn.addClass=Sm),Cm&&(V.fn.removeClass=Cm),wm&&(V.fn.hasClass=wm),km&&(V.fn.on=km),Am&&(V.fn.off=Am),$m&&(V.fn.focus=$m),Tm&&(V.fn.attr=Tm),Em&&(V.fn.removeAttr=Em),Pm&&(V.fn.hide=Pm),Fm&&(V.fn.show=Fm),Gm&&(V.fn.parents=Gm),Dm&&(V.fn.dataset=Dm),Om&&(V.fn.val=Om),Bm&&(V.fn.text=Bm),zm&&(V.fn.html=zm),qm&&(V.fn.children=qm),Jm&&(V.fn.remove=Jm),Km&&(V.fn.find=Km),jm&&(V.fn.width=jm),Mm&&(V.fn.height=Mm),Rm&&(V.fn.filter=Rm),Ym&&(V.fn.empty=Ym);var bue={selector:`p:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=V(e);return(t=t.filter((function(e){return!!z.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`paragraph`,children:t}}},uP=function(e,t){return uP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},uP(e,t)};function dP(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}uP(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var fP=function(){return fP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},fP.apply(this,arguments)};function pP(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function mP(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError(`Generator is already executing.`);for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||a[0]!==6&&a[0]!==2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function hP(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function gP(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function _P(e){var t=gP(F.nodes(e,{match:function(t){return e.children[0]===t},mode:`highest`}),1)[0];if(t==null)return!1;var n=t[0];if(!P.isElement(n)||n.type===`paragraph`||I.string(n)!==``)return!1;var r=n.children,i=r===void 0?[]:r;return!!z.isText(i[0])&&(B.setNodes(e,{type:`paragraph`}),!0)}var xue={renderElems:[cue],elemsToHtml:[{type:`paragraph`,elemToHtml:function(e,t){return t===``?`<p><br></p>`:`<p>`+t+`</p>`}}],parseElemsHtml:[bue],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){_P(r)||t(e)},r.deleteForward=function(e){_P(r)||n(e)},r}},Sue=/"/g,Cue=Y(``.replace),vP=function(e,t,n,r){var i=DM($k(e)),a=`<`+t;return n!==``&&(a+=` `+n+`="`+Cue(DM(r),Sue,`&quot;`)+`"`),a+`>`+i+`</`+t+`>`},yP=function(e){return zk((function(){var t=``[e](`"`);return t!==t.toLowerCase()||t.split(`"`).length>3}))};function bP(e,t){var n=t,r=e,i=r.bold,a=r.italic,o=r.underline;return i&&(n=`<strong>`+n+`</strong>`),r.code&&(n=`<code>`+n+`</code>`),a&&(n=`<em>`+n+`</em>`),o&&(n=`<u>`+n+`</u>`),r.through&&(n=`<s>`+n+`</s>`),r.sub&&(n=`<sub>`+n+`</sub>`),r.sup&&(n=`<sup>`+n+`</sup>`),n}function xP(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}Qj({target:`String`,proto:!0,forced:yP(`bold`)},{bold:function(){return vP(this,`b`,``,``)}}),Qj({target:`String`,proto:!0,forced:yP(`italics`)},{italics:function(){return vP(this,`i`,``,``)}}),Qj({target:`String`,proto:!0,forced:yP(`sub`)},{sub:function(){return vP(this,`sub`,``,``)}}),Qj({target:`String`,proto:!0,forced:yP(`sup`)},{sup:function(){return vP(this,`sup`,``,``)}});var SP={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},CP=UA(`span`).classList,wP=CP&&CP.constructor&&CP.constructor.prototype,wue=wP===Object.prototype?void 0:wP,TP=function(e,t){var n=[][e];return!!n&&zk((function(){n.call(null,t||function(){throw 1},1)}))},Tue=bM.forEach,EP=TP(`forEach`)?[].forEach:function(e){return Tue(this,e,arguments.length>1?arguments[1]:void 0)},DP=function(e){if(e&&e.forEach!==EP)try{$A(e,`forEach`,EP)}catch{e.forEach=EP}};for(var OP in SP)SP[OP]&&DP(J[OP]&&J[OP].prototype);function kP(e,t){return e.selection==null||!!gP(F.nodes(e,{match:function(t){return K.getNodeType(t)===`pre`||!!F.isVoid(e,t)},universal:!0}),1)[0]}function Eue(e,t){Object.keys(t).forEach((function(t){t!==`text`&&F.removeMark(e,t)}))}DP(wue),Qj({target:`Object`,stat:!0,forced:zk((function(){NM(1)}))},{keys:function(e){return NM(EA(e))}});var AP=function(){function e(){this.marksNeedToRemove=[],this.tag=`button`}return e.prototype.getValue=function(e){var t=this.mark,n=F.marks(e);return n?n[t]:!!gP(F.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return kP(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),Due=`<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>`,Oue=`<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>`,kue=`<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>`,Aue=`<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>`,jue=`<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>`,jP=`<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>`,MP=`<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>`,Mue=`<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>`,Nue=`<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>`,Pue=`<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>`,Fue=`<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>`,Iue=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>`,Lue=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>`,Rue=`<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>`,zue=`<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>`,Bue=`<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>`,Vue=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>`,Hue=`<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>`,Uue=`<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>`,Wue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`bold`,t.title=q(`textStyle.bold`),t.iconSvg=Due,t.hotkey=`mod+b`,t}return dP(t,e),t}(AP),Gue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`code`,t.title=q(`textStyle.code`),t.iconSvg=jue,t.hotkey=`mod+e`,t}return dP(t,e),t}(AP),Kue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`italic`,t.title=q(`textStyle.italic`),t.iconSvg=kue,t.hotkey=`mod+i`,t}return dP(t,e),t}(AP),que=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`through`,t.title=q(`textStyle.through`),t.iconSvg=Aue,t.hotkey=`mod+shift+x`,t}return dP(t,e),t}(AP),Jue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`underline`,t.title=q(`textStyle.underline`),t.iconSvg=Oue,t.hotkey=`mod+u`,t}return dP(t,e),t}(AP),Yue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`sub`,t.marksNeedToRemove=[`sup`],t.title=q(`textStyle.sub`),t.iconSvg=Uue,t.hotkey=``,t}return dP(t,e),t}(AP),Xue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`sup`,t.marksNeedToRemove=[`sub`],t.title=q(`textStyle.sup`),t.iconSvg=Hue,t.hotkey=``,t}return dP(t,e),t}(AP),Zue=function(){function e(){this.title=q(`textStyle.clear`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return kP(e)},e.prototype.exec=function(e,t){var n,r,i=F.nodes(e,{match:function(e){return z.isText(e)},universal:!0});try{for(var a=hP(i),o=a.next();!o.done;o=a.next())Eue(e,o.value[0])}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e}(),Que={renderStyle:function(e,t){var n=e,r=n.bold,i=n.italic,a=n.underline,o=n.code,s=n.through,c=n.sub,l=n.sup,u=t;return r&&(u=H(`strong`,null,u)),o&&(u=H(`code`,null,u)),i&&(u=H(`em`,null,u)),a&&(u=H(`u`,null,u)),s&&(u=H(`s`,null,u)),c&&(u=H(`sub`,null,u)),l&&(u=H(`sup`,null,u)),u},menus:[{key:`bold`,factory:function(){return new Wue}},{key:`underline`,factory:function(){return new Jue}},{key:`italic`,factory:function(){return new Kue}},{key:`through`,factory:function(){return new que}},{key:`code`,factory:function(){return new Gue}},{key:`sub`,factory:function(){return new Yue}},{key:`sup`,factory:function(){return new Xue}},{key:`clearStyle`,factory:function(){return new Zue}}],styleToHtml:function(e,t){if(!z.isText(e))return t;if(oP(t))return bP(e,t);var n=V(t);if(cP(n)===`br`)return bP(e,`<br>`);var r=n.html();return r=bP(e,r),n.html(r),sP(n)},parseStyleHtml:function(e,t,n){var r=V(e);if(!z.isText(t))return t;var i=t;return xP(r,`b,strong`)&&(i.bold=!0),xP(r,`i,em`)&&(i.italic=!0),xP(r,`u`)&&(i.underline=!0),xP(r,`s,strike`)&&(i.through=!0),xP(r,`sub`)&&(i.sub=!0),xP(r,`sup`)&&(i.sup=!0),xP(r,`code`)&&(i.code=!0),i}};function NP(e){return function(t,n,r){return H(`h`+e,null,n)}}var $ue={type:`header1`,renderElem:NP(1)},ede={type:`header2`,renderElem:NP(2)},tde={type:`header3`,renderElem:NP(3)},nde={type:`header4`,renderElem:NP(4)},rde={type:`header5`,renderElem:NP(5)},ide=xj.PROPER,PP=RegExp.prototype,FP=PP.toString,ade=Y(OM),ode=zk((function(){return FP.call({source:`a`,flags:`b`})!=`/a/b`})),sde=ide&&FP.name!=`toString`;(ode||sde)&&Sj(RegExp.prototype,`toString`,(function(){var e=YA(this),t=DM(e.source),n=e.flags;return`/`+t+`/`+DM(n===void 0&&iA(PP,e)&&!(`flags`in PP)?ade(e):n)}),{unsafe:!0});var IP,cde=J.TypeError,LP=function(e){if(UN(e))throw cde(`The method doesn't accept regular expressions`);return e},lde=LA(`match`),RP=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[lde]=!1,`/./`[e](t)}catch{}}return!1},ude=KA.f,zP=Y(``.startsWith),dde=Y(``.slice),fde=Math.min,BP=RP(`startsWith`);function VP(e){var t=gP(F.nodes(e,{match:function(e){return K.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];if(t==null)return`paragraph`;var n=gP(t,1)[0];return K.getNodeType(n)}function HP(e){return e.selection==null||!gP(F.nodes(e,{match:function(e){var t=K.getNodeType(e);return t===`paragraph`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0]}function UP(e,t){t&&B.setNodes(e,{type:t})}Qj({target:`String`,proto:!0,forced:!(!BP&&(IP=ude(String.prototype,`startsWith`),IP&&!IP.writable)||BP)},{startsWith:function(e){var t=DM($k(this));LP(e);var n=Aj(fde(arguments.length>1?arguments[1]:void 0,t.length)),r=DM(e);return zP?zP(t,r,n):dde(t,n,n+r.length)===r}});var pde=function(){function e(){this.title=q(`header.title`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>`,this.tag=`select`,this.width=60}return e.prototype.getOptions=function(e){var t=[{value:`header1`,text:`H1`,styleForRenderMenuList:{"font-size":`32px`,"font-weight":`bold`}},{value:`header2`,text:`H2`,styleForRenderMenuList:{"font-size":`24px`,"font-weight":`bold`}},{value:`header3`,text:`H3`,styleForRenderMenuList:{"font-size":`18px`,"font-weight":`bold`}},{value:`header4`,text:`H4`,styleForRenderMenuList:{"font-size":`16px`,"font-weight":`bold`}},{value:`header5`,text:`H5`,styleForRenderMenuList:{"font-size":`13px`,"font-weight":`bold`}},{value:`paragraph`,text:q(`header.text`)}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return VP(e)},e.prototype.isDisabled=function(e){return HP(e)},e.prototype.exec=function(e,t){UP(e,t.toString())},e}(),WP=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){return VP(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return HP(e)},e.prototype.exec=function(e,t){var n=this.type;UP(e,t===n?`paragraph`:n)},e}(),mde=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H1`,t.type=`header1`,t}return dP(t,e),t}(WP),hde=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H2`,t.type=`header2`,t}return dP(t,e),t}(WP),gde=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H3`,t.type=`header3`,t}return dP(t,e),t}(WP),_de=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H4`,t.type=`header4`,t}return dP(t,e),t}(WP),vde=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H5`,t.type=`header5`,t}return dP(t,e),t}(WP),yde={key:`headerSelect`,factory:function(){return new pde}},bde={key:`header1`,factory:function(){return new mde}},xde={key:`header2`,factory:function(){return new hde}},Sde={key:`header3`,factory:function(){return new gde}},Cde={key:`header4`,factory:function(){return new _de}},wde={key:`header5`,factory:function(){return new vde}};function GP(e){return function(t,n){return`<h`+e+`>`+n+`</h`+e+`>`}}function KP(e){return function(t,n,r){var i=V(t);return(n=n.filter((function(e){return!!z.isText(e)||!!r.isInline(e)}))).length===0&&(n=[{text:i.text().replace(/\s+/gm,` `)}]),{type:`header`+e,children:n}}}var Tde={renderElems:[$ue,ede,tde,nde,rde],elemsToHtml:[{type:`header1`,elemToHtml:GP(1)},{type:`header2`,elemToHtml:GP(2)},{type:`header3`,elemToHtml:GP(3)},{type:`header4`,elemToHtml:GP(4)},{type:`header5`,elemToHtml:GP(5)}],parseElemsHtml:[{selector:`h1:not([data-w-e-type])`,parseElemHtml:KP(1)},{selector:`h2:not([data-w-e-type])`,parseElemHtml:KP(2)},{selector:`h3:not([data-w-e-type])`,parseElemHtml:KP(3)},{selector:`h4:not([data-w-e-type])`,parseElemHtml:KP(4)},{selector:`h5:not([data-w-e-type])`,parseElemHtml:KP(5)}],menus:[yde,bde,xde,Sde,Cde,wde],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=gP(F.nodes(n,{match:function(e){return K.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];r&&K.isSelectionAtLineEnd(e,r[1])?B.insertNodes(n,{type:`paragraph`,children:[{text:``}]},{mode:`highest`}):t()},n}},qP=Object.assign,JP=Object.defineProperty,Ede=Y([].concat),YP=!qP||zk((function(){if(Bk&&qP({b:1},qP(JP({},`a`,{enumerable:!0,get:function(){JP(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r=`abcdefghijklmnopqrst`;return e[n]=7,r.split(``).forEach((function(e){t[e]=e})),qP({},e)[n]!=7||NM(qP({},t)).join(``)!=r}))?function(e,t){for(var n=EA(e),r=arguments.length,i=1,a=Bj.f,o=Gk.f;r>i;)for(var s,c=Qk(arguments[i++]),l=a?Ede(NM(c),a(c)):NM(c),u=l.length,d=0;u>d;)s=l[d++],Bk&&!Hk(o,c,s)||(n[s]=c[s]);return n}:qP;function XP(e,t){e.data??={};var n=e.data;n.style??={},Object.assign(n.style,t)}Qj({target:`Object`,stat:!0,forced:Object.assign!==YP},{assign:YP});var Dde={selector:`font`,preParseHtml:function(e){var t=V(e);if(cP(t)!==`font`)return e;var n=t.attr(`color`)||``;return n&&(t.removeAttr(`color`),t.css(`color`,n)),t[0]}},ZP=function(){function e(){this.tag=`button`,this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=F.marks(e);return n&&n[t]?n[t]:``},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return e.selection==null||!!gP(F.nodes(e,{match:function(t){return K.getNodeType(t)===`pre`||!!F.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(this.$content==null){var n=V(`<ul class="w-e-panel-content-color"></ul>`);n.on(`click`,`li`,(function(n){var r=n.target;if(r!=null&&(n.preventDefault(),e.selection!=null)){var i=V(r).attr(`data-value`);i===`0`?F.removeMark(e,t):F.addMark(e,t,i)}})),this.$content=n}var r=this.$content;if(r==null)return document.createElement(`ul`);r.empty();var i=this.getValue(e),a=e.getMenuConfig(t).colors;(a===void 0?[]:a).forEach((function(e){var t=V(`<div class="color-block" data-value="`+e+`"></div>`);t.css(`background-color`,e);var n=V(`<li data-value="`+e+`"></li>`);i===e&&n.addClass(`active`),n.append(t),r.append(n)}));var o=``;t===`color`&&(o=q(`color.default`)),t===`bgColor`&&(o=q(`color.clear`));var s=V(`
51
+ <li data-value="0" class="clear">
52
+ <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
53
+ `+o+`
54
+ </li>
55
+ `);return r.prepend(s),r[0]},e}(),Ode=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`color.color`),t.iconSvg=Mue,t.mark=`color`,t}return dP(t,e),t}(ZP),kde=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`color.bgColor`),t.iconSvg=Nue,t.mark=`bgColor`,t}return dP(t,e),t}(ZP),QP=`rgb(0, 0, 0).rgb(38, 38, 38).rgb(89, 89, 89).rgb(140, 140, 140).rgb(191, 191, 191).rgb(217, 217, 217).rgb(233, 233, 233).rgb(245, 245, 245).rgb(250, 250, 250).rgb(255, 255, 255).rgb(225, 60, 57).rgb(231, 95, 51).rgb(235, 144, 58).rgb(245, 219, 77).rgb(114, 192, 64).rgb(89, 191, 192).rgb(66, 144, 247).rgb(54, 88, 226).rgb(106, 57, 201).rgb(216, 68, 147).rgb(251, 233, 230).rgb(252, 237, 225).rgb(252, 239, 212).rgb(252, 251, 207).rgb(231, 246, 213).rgb(218, 244, 240).rgb(217, 237, 250).rgb(224, 232, 250).rgb(237, 225, 248).rgb(246, 226, 234).rgb(255, 163, 158).rgb(255, 187, 150).rgb(255, 213, 145).rgb(255, 251, 143).rgb(183, 235, 143).rgb(135, 232, 222).rgb(145, 213, 255).rgb(173, 198, 255).rgb(211, 173, 247).rgb(255, 173, 210).rgb(255, 77, 79).rgb(255, 122, 69).rgb(255, 169, 64).rgb(255, 236, 61).rgb(115, 209, 61).rgb(54, 207, 201).rgb(64, 169, 255).rgb(89, 126, 247).rgb(146, 84, 222).rgb(247, 89, 171).rgb(207, 19, 34).rgb(212, 56, 13).rgb(212, 107, 8).rgb(212, 177, 6).rgb(56, 158, 13).rgb(8, 151, 156).rgb(9, 109, 217).rgb(29, 57, 196).rgb(83, 29, 171).rgb(196, 29, 127).rgb(130, 0, 20).rgb(135, 20, 0).rgb(135, 56, 0).rgb(97, 71, 0).rgb(19, 82, 0).rgb(0, 71, 79).rgb(0, 58, 140).rgb(6, 17, 120).rgb(34, 7, 94).rgb(120, 6, 80)`.split(`.`),Ade={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,a=t;return r&&XP(a,{color:r}),i&&XP(a,{backgroundColor:i}),a},styleToHtml:function(e,t){if(!z.isText(e))return t;var n,r=e,i=r.color,a=r.bgColor;return i||a?((oP(t)||cP(n=V(t))!==`span`)&&(n=V(`<span>`+t+`</span>`)),i&&n.css(`color`,i),a&&n.css(`background-color`,a),sP(n)):t},preParseHtml:[Dde],parseStyleHtml:function(e,t,n){var r=V(e);if(!z.isText(t))return t;var i=t,a=lP(r,`color`);a&&(i.color=a);var o=lP(r,`background-color`);return o||=lP(r,`background`),o&&(i.bgColor=o),i},menus:[{key:`color`,factory:function(){return new Ode},config:{colors:QP}},{key:`bgColor`,factory:function(){return new kde},config:{colors:QP}}]},jde=/^(?:\w+:)?\/\/(\S+)$/,Mde=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Nde=/^[^\s\.]+\.\S{2,}$/,Pde=Nj.includes;function $P(e){return e===void 0&&(e=`r`),e+`-`+bh()}function eF(e){return e.replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function tF(e,t,n,r){return pP(this,void 0,void 0,(function(){var i,a;return mP(this,(function(o){switch(o.label){case 0:return(i=t.getMenuConfig(e).checkLink)?[4,i(n,r)]:[3,2];case 1:if(typeof(a=o.sent())==`string`)return t.alert(a,`error`),[2,!1];if(a==null)return[2,!1];o.label=2;case 2:return[2,!0]}}))}))}function nF(e,t,n){return pP(this,void 0,void 0,(function(){var r;return mP(this,(function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}}))}))}function rF(e){return e.selection==null||!!K.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!![`pre`,`code`,`link`].includes(n)||void 0}))}function iF(e,t){return{type:`link`,url:eF(e),children:t?[{text:t}]:[]}}function aF(e,t,n){return pP(this,void 0,void 0,(function(){var r,i,a;return mP(this,(function(o){switch(o.label){case 0:return n?(t||=n,e.restoreSelection(),rF(e)?[2]:[4,tF(`insertLink`,e,t,n)]):[2];case 1:return o.sent()?[4,nF(`insertLink`,e,n)]:[2];case 2:return r=o.sent(),(i=e.selection)==null||(R.isCollapsed(i)?(e.insertText(` `),a=iF(r,t),B.insertNodes(e,a),e.insertFragment([{text:` `}])):F.string(e,i)===t?(a=iF(r),B.wrapNodes(e,a,{split:!0}),B.collapse(e,{edge:`end`})):(e.deleteFragment(),a=iF(r,t),B.insertNodes(e,a))),[2]}}))}))}Qj({target:`Array`,proto:!0},{includes:function(e){return Pde(this,e,arguments.length>1?arguments[1]:void 0)}}),zN(`includes`);var Fde={type:`link`,renderElem:function(e,t,n){var r=e,i=r.url,a=r.target;return H(`a`,{href:i,target:a===void 0?`_blank`:a},t)}},Ide={selector:`a:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=V(e);return(t=t.filter((function(e){return!!z.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`link`,url:r.attr(`href`)||``,target:r.attr(`target`)||``,children:t}}};function oF(){return $P(`w-e-insert-link`)}var Lde=function(){function e(){this.title=q(`link.insert`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>`,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=oF(),this.urlInputId=oF(),this.buttonId=oF()}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return rF(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,i=n.urlInputId,a=n.buttonId,o=gP(LO(q(`link.text`),r),2),s=o[0],c=V(o[1]),l=gP(LO(q(`link.url`),i),2),u=l[0],d=V(l[1]),f=gP(RO(a,q(`common.ok`)),1)[0];if(this.$content==null){var p=V(`<div></div>`);p.on(`click`,`#`+a,(function(t){t.preventDefault(),aF(e,p.find(`#`+r).val(),p.find(`#`+i).val()),e.hidePanelOrModal()})),this.$content=p}var m=this.$content;if(m.empty(),m.append(s),m.append(u),m.append(f),t==null||R.isCollapsed(t))c.val(``);else{var h=F.string(e,t);c.val(h)}return d.val(``),setTimeout((function(){c.focus()})),m[0]},e}();function sF(){return $P(`w-e-update-link`)}var Rde=function(){function e(){this.title=q(`link.edit`),this.iconSvg=jP,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=sF(),this.buttonId=sF()}return e.prototype.getSelectedLinkElem=function(e){return K.getSelectedNodeByType(e,`link`)??null},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},e.prototype.getModalPositionNode=function(e){return K.getSelectedNodeByType(e,`link`)},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=gP(LO(q(`link.url`),t),2),i=r[0],a=V(r[1]),o=gP(RO(n,q(`common.ok`)),1)[0];if(this.$content==null){var s=V(`<div></div>`);s.on(`click`,`button`,(function(n){n.preventDefault(),e.restoreSelection();var r=K.getSelectedNodeByType(e,`link`);(function(e,t,n){pP(this,void 0,void 0,(function(){var r,i;return mP(this,(function(a){switch(a.label){case 0:return n?[4,tF(`editLink`,e,t,n)]:[2];case 1:return a.sent()?[4,nF(`editLink`,e,n)]:[2];case 2:return r=a.sent(),i={url:eF(r)},B.setNodes(e,i,{match:function(e){return K.checkNodeType(e,`link`)}}),[2]}}))}))})(e,r?I.string(r):``,s.find(`#`+t).val()),e.hidePanelOrModal()})),this.$content=s}var c=this.$content;c.empty(),c.append(i),c.append(o);var l=this.getValue(e);return a.val(l),setTimeout((function(){a.focus()})),c[0]},e}(),zde=function(){function e(){this.title=q(`link.unLink`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||K.getSelectedNodeByType(e,`link`)==null},e.prototype.exec=function(e,t){this.isDisabled(e)||B.unwrapNodes(e,{match:function(e){return K.checkNodeType(e,`link`)}})},e}(),Bde=function(){function e(){this.title=q(`link.view`),this.iconSvg=MP,this.tag=`button`}return e.prototype.getSelectedLinkElem=function(e){return K.getSelectedNodeByType(e,`link`)??null},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||typeof t!=`string`)throw Error(`View link failed, link url is '`+t+`'`);window.open(t,`_blank`)}},e}(),cF={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Vde={renderElems:[Fde],elemsToHtml:[{type:`link`,elemToHtml:function(e,t){var n=e,r=n.url,i=n.target;return`<a href="`+r+`" target="`+(i===void 0?`_blank`:i)+`">`+t+`</a>`}}],parseElemsHtml:[Ide],menus:[{key:`insertLink`,factory:function(){return new Lde},config:cF},{key:`editLink`,factory:function(){return new Rde},config:cF},{key:`unLink`,factory:function(){return new zde}},{key:`viewLink`,factory:function(){return new Bde}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var i=e;return i.isInline=function(e){return e.type===`link`||t(e)},i.insertData=function(e){var t=e.getData(`text/plain`);if(function(e){if(typeof e!=`string`)return!1;var t=e.match(jde);if(!t)return!1;var n=t[1];return!(!n||!Mde.test(n)&&!Nde.test(n))}(t)){if(!rF(i)){var r=i.selection;r!=null&&aF(i,F.string(i,r),t)}}else n(e)},i.normalizeNode=function(e){var t=gP(e,2),n=t[0],a=t[1];return K.getNodeType(n)===`link`&&I.string(n)===``?B.removeNodes(i,{at:a}):r([n,a])},i}},Hde=Y(1 .valueOf),Ude=J.RangeError,Wde=J.RangeError,lF=J.String,uF=Math.floor,dF=Y((function(e){var t=DM($k(this)),n=``,r=Tj(e);if(r<0||r==1/0)throw Ude(`Wrong number of repetitions`);for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),fF=Y(``.slice),pF=Y(1 .toFixed),mF=function(e,t,n){return t===0?n:t%2==1?mF(e,t-1,n*e):mF(e*e,t/2,n)},hF=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=uF(i/1e7)},gF=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=uF(r/t),r=r%t*1e7},_F=function(e){for(var t=6,n=``;--t>=0;)if(n!==``||t===0||e[t]!==0){var r=lF(e[t]);n=n===``?r:n+dF(`0`,7-r.length)+r}return n};function vF(e,t){return`w-e-image-container-`+K.findKey(e,t).id}Qj({target:`Number`,proto:!0,forced:zk((function(){return pF(8e-5,3)!==`0.000`||pF(.9,0)!==`1`||pF(1.255,2)!==`1.25`||pF(0xde0b6b3a7640080,0)!==`1000000000000000128`}))||!zk((function(){pF({})}))},{toFixed:function(e){var t,n,r,i,a=Hde(this),o=Tj(e),s=[0,0,0,0,0,0],c=``,l=`0`;if(o<0||o>20)throw Wde(`Incorrect fraction digits`);if(a!=a)return`NaN`;if(a<=-1e21||a>=1e21)return lF(a);if(a<0&&(c=`-`,a=-a),a>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(a*mF(2,69,1))-69)<0?a*mF(2,-t,1):a/mF(2,t,1),n*=4503599627370496,(t=52-t)>0){for(hF(s,0,n),r=o;r>=7;)hF(s,1e7,0),r-=7;for(hF(s,mF(10,r,1),0),r=t-1;r>=23;)gF(s,1<<23),r-=23;gF(s,1<<r),hF(s,1,1),gF(s,2),l=_F(s)}else hF(s,0,n),hF(s,1<<-t,0),l=_F(s)+dF(`0`,o);return o>0?c+((i=l.length)<=o?`0.`+dF(`0`,o-i)+l:fF(l,0,i-o)+`.`+fF(l,i-o)):c+l}});var Gde={type:`image`,renderElem:function(e,t,n){var r=e,i=r.src,a=r.alt,o=a===void 0?``:a,s=r.href,c=s===void 0?``:s,l=r.style,u=l===void 0?{}:l,d=u.width,f=d===void 0?``:d,p=u.height,m=p===void 0?``:p,h=K.isNodeSelected(n,e),g={};f&&(g.width=`100%`),m&&(g.height=`100%`);var _=H(`img`,{style:g,src:i,alt:o,"data-href":c}),v=n.isDisabled();return h&&!v?function(e,t,n,r){var i=V(`body`),a=vF(e,t),o=r.width,s=r.height,c=0,l=0,u=0,d=!1,f=null;function p(t){f=function(){var e=V(`#`+a);if(e.length===0)throw Error(`Cannot find image container elem`);return e}(),c=t;var n=f.find(`img`);if(n.length===0)throw Error(`Cannot find image elem`);l=n.width(),u=n.height(),i.on(`mousemove`,m),i.on(`mouseup`,h);var r=K.getHoverbar(e);r&&r.hideAndClean()}var m=Ih((function(e){e.preventDefault();var t=e.clientX,n=l+(d?c-t:t-c),r=n/l*u;f!=null&&(n<=15||r<=15||(f.css(`width`,n+`px`),f.css(`height`,r+`px`)))}),100);function h(n){if(i.off(`mousemove`,m),f!=null){var r=f.width().toFixed(2),a=f.height().toFixed(2),o={style:fP(fP({},t.style),{width:r+`px`,height:a+`px`})};B.setNodes(e,o,{at:K.findPath(e,t)}),i.off(`mouseup`,h)}}var g={};return o&&(g.width=o),s&&(g.height=s),H(`div`,{id:a,style:g,className:`w-e-image-container w-e-selected-image-container`,on:{mousedown:function(e){var t=V(e.target);t.hasClass(`w-e-image-dragger`)&&(e.preventDefault(),(t.hasClass(`left-top`)||t.hasClass(`left-bottom`))&&(d=!0),p(e.clientX))}}},n,H(`div`,{className:`w-e-image-dragger left-top`}),H(`div`,{className:`w-e-image-dragger right-top`}),H(`div`,{className:`w-e-image-dragger left-bottom`}),H(`div`,{className:`w-e-image-dragger right-bottom`}))}(n,e,_,{width:f,height:m}):function(e,t,n,r){var i=r.width,a=r.height,o={};return i&&(o.width=i),a&&(o.height=a),H(`div`,{id:vF(e,t),style:o,className:`w-e-image-container`},n)}(n,e,_,{width:f,height:m})}},Kde={selector:`img:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=V(e),i=r.attr(`data-href`)||``;return i=decodeURIComponent(i),{type:`image`,src:r.attr(`src`)||``,alt:r.attr(`alt`)||``,href:i,style:{width:lP(r,`width`),height:lP(r,`height`)},children:[{text:``}]}}};function yF(e,t,n,r,i){return r===void 0&&(r=``),i===void 0&&(i=``),pP(this,void 0,void 0,(function(){var a,o;return mP(this,(function(s){switch(s.label){case 0:return(a=t.getMenuConfig(e).checkImage)?[4,a(n,r,i)]:[3,2];case 1:if(typeof(o=s.sent())==`string`)return t.alert(o,`error`),[2,!1];if(o==null)return[2,!1];s.label=2;case 2:return[2,!0]}}))}))}function bF(e,t,n){return pP(this,void 0,void 0,(function(){var r;return mP(this,(function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}}))}))}function xF(e,t,n,r){return n===void 0&&(n=``),r===void 0&&(r=``),pP(this,void 0,void 0,(function(){var i,a,o;return mP(this,(function(s){switch(s.label){case 0:return[4,yF(`insertImage`,e,t,n,r)];case 1:return s.sent()?[4,bF(`insertImage`,e,t)]:[2];case 2:return i=s.sent(),a={type:`image`,src:eF(i),href:r,alt:n,style:{},children:[{text:``}]},e.selection===null&&e.restoreSelection(),K.getSelectedNodeByType(e,`image`)&&e.move(1),SF(e)||(B.insertNodes(e,a),(o=e.getMenuConfig(`insertImage`).onInsertedImage)&&o(a)),[2]}}))}))}function SF(e){var t=e.selection;return t==null||!R.isCollapsed(t)||!!gP(F.nodes(e,{match:function(t){var n=K.getNodeType(t);return n===`code`||n===`pre`||n===`link`||n===`list-item`||!!n.startsWith(`header`)||n===`blockquote`||!!F.isVoid(e,t)},universal:!0}),1)[0]}function CF(){return $P(`w-e-insert-image`)}var qde=function(){function e(){this.title=q(`image.netImage`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>`,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=CF(),this.altInputId=CF(),this.hrefInputId=CF(),this.buttonId=CF()}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return SF(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,i=n.altInputId,a=n.hrefInputId,o=n.buttonId,s=gP(LO(q(`image.src`),r),2),c=s[0],l=V(s[1]),u=gP(LO(q(`image.desc`),i),2),d=u[0],f=V(u[1]),p=gP(LO(q(`image.link`),a),2),m=p[0],h=V(p[1]),g=gP(RO(o,q(`common.ok`)),1)[0];if(this.$content==null){var _=V(`<div></div>`);_.on(`click`,`#`+o,(function(n){n.preventDefault();var o=_.find(`#`+r).val().trim(),s=_.find(`#`+i).val().trim(),c=_.find(`#`+a).val().trim();t.insertImage(e,o,s,c),e.hidePanelOrModal()})),this.$content=_}var v=this.$content;return v.empty(),v.append(c),v.append(d),v.append(m),v.append(g),l.val(``),f.val(``),h.val(``),setTimeout((function(){l.focus()})),v[0]},e.prototype.insertImage=function(e,t,n,r){n===void 0&&(n=``),r===void 0&&(r=``),t&&(e.restoreSelection(),this.isDisabled(e)||xF(e,t,n,r))},e}(),Jde=function(){function e(){this.title=q(`image.delete`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||K.getSelectedNodeByType(e,`image`)==null},e.prototype.exec=function(e,t){this.isDisabled(e)||B.removeNodes(e,{match:function(e){return K.checkNodeType(e,`image`)}})},e}();function wF(){return $P(`w-e-edit-image`)}var Yde=function(){function e(){this.title=q(`image.edit`),this.iconSvg=jP,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=wF(),this.altInputId=wF(),this.hrefInputId=wF(),this.buttonId=wF()}return e.prototype.getValue=function(e){return``},e.prototype.getImageNode=function(e){return K.getSelectedNodeByType(e,`image`)},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||K.getSelectedNodeByType(e,`image`)==null},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,i=n.altInputId,a=n.hrefInputId,o=n.buttonId,s=this.getImageNode(e);if(s==null)throw Error(`Not found selected image node`);var c=gP(LO(q(`image.src`),r),2),l=c[0],u=V(c[1]),d=gP(LO(q(`image.desc`),i),2),f=d[0],p=V(d[1]),m=gP(LO(q(`image.link`),a),2),h=m[0],g=V(m[1]),_=gP(RO(o,q(`common.ok`)),1)[0];if(this.$content==null){var v=V(`<div></div>`);v.on(`click`,`#`+o,(function(n){n.preventDefault();var o=v.find(`#`+r).val(),s=v.find(`#`+i).val(),c=v.find(`#`+a).val();t.updateImage(e,o,s,c),e.hidePanelOrModal()})),this.$content=v}var y=this.$content;y.empty(),y.append(l),y.append(f),y.append(h),y.append(_);var b=s,x=b.src,S=b.alt,C=S===void 0?``:S,w=b.href,T=w===void 0?``:w;return u.val(x),p.val(C),g.val(T),setTimeout((function(){u.focus()})),y[0]},e.prototype.updateImage=function(e,t,n,r,i){n===void 0&&(n=``),r===void 0&&(r=``),i===void 0&&(i={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,i){n===void 0&&(n=``),r===void 0&&(r=``),i===void 0&&(i={}),pP(this,void 0,void 0,(function(){var a,o,s,c,l,u;return mP(this,(function(d){switch(d.label){case 0:return[4,yF(`editImage`,e,t,n,r)];case 1:return d.sent()?[4,bF(`editImage`,e,t)]:[2];case 2:return a=d.sent(),(o=K.getSelectedNodeByType(e,`image`))==null||(s=o.style,c={src:a,alt:n,href:r,style:fP(fP({},s===void 0?{}:s),i)},B.setNodes(e,c,{match:function(e){return K.checkNodeType(e,`image`)}}),l=K.getSelectedNodeByType(e,`image`),(u=e.getMenuConfig(`editImage`).onUpdatedImage)&&u(l)),[2]}}))}))}(e,t,n,r,i))},e}(),Xde=function(){function e(){this.title=q(`image.viewLink`),this.iconSvg=MP,this.tag=`button`}return e.prototype.getValue=function(e){var t=K.getSelectedNodeByType(e,`image`);return t&&t.href||``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||typeof t!=`string`)throw Error(`View image link failed, image.href is '`+t+`'`);window.open(t,`_blank`)}},e}(),TF=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return K.getSelectedNodeByType(e,`image`)},e.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(n!=null){var r=K.getHoverbar(e);r&&r.hideAndClean();var i=n.style,a={style:fP(fP({},i===void 0?{}:i),{width:this.value,height:``})};B.setNodes(e,a,{match:function(e){return K.checkNodeType(e,`image`)}})}}},e}(),Zde=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`30%`,t.value=`30%`,t}return dP(t,e),t}(TF),Qde=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`50%`,t.value=`50%`,t}return dP(t,e),t}(TF),$de=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`100%`,t.value=`100%`,t}return dP(t,e),t}(TF),EF={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},efe={renderElems:[Gde],elemsToHtml:[{type:`image`,elemToHtml:function(e,t){var n=e,r=n.src,i=n.alt,a=i===void 0?``:i,o=n.href,s=o===void 0?``:o,c=n.style,l=c===void 0?{}:c,u=l.width,d=u===void 0?``:u,f=l.height,p=f===void 0?``:f,m=``;return d&&(m+=`width: `+d+`;`),p&&(m+=`height: `+p+`;`),`<img src="`+r+`" alt="`+a+`" data-href="`+s+`" style="`+m+`"/>`}}],parseElemsHtml:[Kde],menus:[{key:`insertImage`,factory:function(){return new qde},config:EF},{key:`deleteImage`,factory:function(){return new Jde}},{key:`editImage`,factory:function(){return new Yde},config:EF},{key:`viewImageLink`,factory:function(){return new Xde}},{key:`imageWidth30`,factory:function(){return new Zde}},{key:`imageWidth50`,factory:function(){return new Qde}},{key:`imageWidth100`,factory:function(){return new $de}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return e.type===`image`||t(e)},r.isVoid=function(e){return e.type===`image`||n(e)},r}},tfe={type:`todo`,renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),H(`div`,{style:{margin:`5px 0`}},H(`span`,{contentEditable:!1,style:{marginRight:`0.5em`}},H(`input`,{type:`checkbox`,checked:e.checked,disabled:r,on:{change:function(t){var r=K.findPath(n,e),i={checked:t.target.checked};B.setNodes(n,i,{at:r})}}})),H(`span`,null,t))}},nfe=function(){function e(){this.title=q(`todo.todo`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!!K.getSelectedNodeByType(e,`todo`)},e.prototype.isDisabled=function(e){return e.selection==null||!!K.getSelectedElems(e).some((function(t){if(F.isVoid(e,t)&&F.isBlock(e,t))return!0;var n=t.type;return!![`pre`,`table`,`list-item`].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);B.setNodes(e,{type:n?`paragraph`:`todo`})},e}(),rfe={renderElems:[tfe],elemsToHtml:[{type:`todo`,elemToHtml:function(e,t){return`<div data-w-e-type="todo"><input type="checkbox" disabled `+(e.checked?`checked`:``)+`>`+t+`</div>`}}],preParseHtml:[{selector:`ul.w-e-todo`,preParseHtml:function(e){var t=V(e).find(`li`),n=V(`<div data-w-e-type="todo"></div>`),r=t.find(`input[type]`);return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[{selector:`div[data-w-e-type="todo"]`,parseElemHtml:function(e,t,n){var r=V(e);(t=t.filter((function(e){return!!z.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]);var i=!1;return r.find(`input[type="checkbox"]`).attr(`checked`)!=null&&(i=!0),{type:`todo`,checked:i,children:t}}}],menus:[{key:`todo`,factory:function(){return new nfe}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&R.isCollapsed(r)){var i=K.getSelectedNodeByType(e,`todo`);if(i&&I.string(i).length===0)return void B.setNodes(e,{type:`paragraph`},{mode:`highest`})}t(n)},n}},ife={type:`blockquote`,renderElem:function(e,t,n){return H(`blockquote`,null,t)}},afe={selector:`blockquote:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=V(e);return(t=t.filter((function(e){return!!z.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`blockquote`,children:t}}},ofe=function(){function e(){this.title=q(`blockQuote.title`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!!K.getSelectedNodeByType(e,`blockquote`)},e.prototype.isDisabled=function(e){return e.selection==null||!gP(F.nodes(e,{match:function(e){var t=K.getNodeType(e);return t===`paragraph`||t===`blockquote`},universal:!0,mode:`highest`}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?`paragraph`:`blockquote`;B.setNodes(e,{type:n},{mode:`highest`})}},e}(),sfe={key:`blockquote`,factory:function(){return new ofe}},cfe=Y([].slice),lfe=SM(`slice`),ufe=LA(`species`),DF=J.Array,dfe=Math.max;Qj({target:`Array`,proto:!0,forced:!lfe},{slice:function(e,t){var n,r,i,a=eA(this),o=jj(a),s=Oj(e,o),c=Oj(t===void 0?o:t,o);if(eM(a)&&(n=a.constructor,(mM(n)&&(n===DF||eM(n.prototype))||nA(n)&&(n=n[ufe])===null)&&(n=void 0),n===DF||n===void 0))return cfe(a,s,c);for(r=new(n===void 0?DF:n)(dfe(c-s,0)),i=0;s<c;s++,i++)s in a&&KN(r,i,a[s]);return r.length=i,r}});var ffe={renderElems:[ife],elemsToHtml:[{type:`blockquote`,elemToHtml:function(e,t){return`<blockquote>`+t+`</blockquote>`}}],parseElemsHtml:[afe],menus:[sfe],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var i=r.selection;if(i==null)return t();var a=gP(F.nodes(e,{match:function(e){return K.checkNodeType(e,`blockquote`)},universal:!0}),1)[0];if(!a)return t();var o=a[0],s=K.findPath(e,o),c=F.end(e,s);if(gp.equals(c,i.focus)){var l=I.string(o);if(l&&l.slice(-1)===`
56
+ `)return e.deleteBackward(`character`),void B.insertNodes(r,{type:`paragraph`,children:[{text:``}]},{mode:`highest`})}n(`
57
+ `)},r}},pfe=function(){function e(){this.title=q(`emotion.title`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>`,this.tag=`button`,this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||!!gP(F.nodes(e,{match:function(t){return K.getNodeType(t)===`pre`||!!F.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(this.$content==null){var t=V(`<ul class="w-e-panel-content-emotion"></ul>`);t.on(`click`,`li`,(function(t){var n=t.target;if(n!=null){t.preventDefault();var r=V(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(n==null)return document.createElement(`ul`);n.empty();var r=e.getMenuConfig(`emotion`).emotions;return(r===void 0?[]:r).forEach((function(e){var t=V(`<li>`+e+`</li>`);n.append(t)})),n[0]},e}(),mfe={menus:[{key:`emotion`,factory:function(){return new pfe},config:{emotions:`😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏`.split(` `)}}]},hfe={1:`12px`,2:`14px`,3:`16px`,4:`19px`,5:`24px`,6:`32px`,7:`48px`},gfe={selector:`font`,preParseHtml:function(e){var t=V(e);if(cP(t)!==`font`)return e;var n=t.attr(`size`)||``;n&&(t.removeAttr(`size`),t.css(`font-size`,hfe[n]));var r=t.attr(`face`)||``;return r&&(t.removeAttr(`face`),t.css(`font-family`,r)),t[0]}},_fe=Y(``.indexOf);Qj({target:`String`,proto:!0,forced:!RP(`includes`)},{includes:function(e){return!!~_fe(DM($k(this)),DM(LP(e)),arguments.length>1?arguments[1]:void 0)}});var OF,kF,AF=function(e){return e&&e.Math==Math&&e},jF=AF(typeof globalThis==`object`&&globalThis)||AF(typeof window==`object`&&window)||AF(typeof self==`object`&&self)||AF(typeof Pk==`object`&&Pk)||function(){return this}()||Function(`return this`)(),MF=Function.prototype,NF=MF.apply,vfe=MF.bind,PF=MF.call,FF=typeof Reflect==`object`&&Reflect.apply||(vfe?PF.bind(NF):function(){return PF.apply(NF,arguments)}),IF=Function.prototype,LF=IF.bind,RF=IF.call,yfe=LF&&LF.bind(RF),zF=LF?function(e){return e&&yfe(RF,e)}:function(e){return e&&function(){return RF.apply(e,arguments)}},BF=function(e){return typeof e==`function`},VF=function(e){try{return!!e()}catch{return!0}},HF=!VF((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),UF=Function.prototype.call,WF=UF.bind?UF.bind(UF):function(){return UF.apply(UF,arguments)},GF={}.propertyIsEnumerable,KF=Object.getOwnPropertyDescriptor,qF={f:KF&&!GF.call({1:2},1)?function(e){var t=KF(this,e);return!!t&&t.enumerable}:GF},JF=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},bfe=zF({}.toString),xfe=zF(``.slice),YF=function(e){return xfe(bfe(e),8,-1)},XF=jF.Object,Sfe=zF(``.split),ZF=VF((function(){return!XF(`z`).propertyIsEnumerable(0)}))?function(e){return YF(e)==`String`?Sfe(e,``):XF(e)}:XF,Cfe=jF.TypeError,QF=function(e){if(e==null)throw Cfe(`Can't call method on `+e);return e},$F=function(e){return ZF(QF(e))},eI=function(e){return typeof e==`object`?e!==null:BF(e)},tI={},nI=function(e){return BF(e)?e:void 0},rI=function(e,t){return arguments.length<2?nI(tI[e])||nI(jF[e]):tI[e]&&tI[e][t]||jF[e]&&jF[e][t]},iI=zF({}.isPrototypeOf),aI=rI(`navigator`,`userAgent`)||``,oI=jF.process,sI=jF.Deno,cI=oI&&oI.versions||sI&&sI.version,lI=cI&&cI.v8;lI&&(kF=(OF=lI.split(`.`))[0]>0&&OF[0]<4?1:+(OF[0]+OF[1])),!kF&&aI&&(!(OF=aI.match(/Edge\/(\d+)/))||OF[1]>=74)&&(OF=aI.match(/Chrome\/(\d+)/))&&(kF=+OF[1]);var uI=kF,dI=!!Object.getOwnPropertySymbols&&!VF((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&uI&&uI<41})),fI=dI&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,wfe=jF.Object,pI=fI?function(e){return typeof e==`symbol`}:function(e){var t=rI(`Symbol`);return BF(t)&&iI(t.prototype,wfe(e))},Tfe=jF.String,Efe=jF.TypeError,mI=function(e){if(BF(e))return e;throw Efe(function(e){try{return Tfe(e)}catch{return`Object`}}(e)+` is not a function`)},Dfe=jF.TypeError,Ofe=Object.defineProperty,hI=jF[`__core-js_shared__`]||function(e,t){try{Ofe(jF,e,{value:t,configurable:!0,writable:!0})}catch{jF[e]=t}return t}(`__core-js_shared__`,{}),gI=Fk((function(e){(e.exports=function(e,t){return hI[e]||(hI[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),kfe=jF.Object,_I=function(e){return kfe(QF(e))},Afe=zF({}.hasOwnProperty),vI=Object.hasOwn||function(e,t){return Afe(_I(e),t)},jfe=0,Mfe=Math.random(),Nfe=zF(1 .toString),yI=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Nfe(++jfe+Mfe,36)},bI=gI(`wks`),xI=jF.Symbol,SI=xI&&xI.for,Pfe=fI?xI:xI&&xI.withoutSetter||yI,CI=function(e){if(!vI(bI,e)||!dI&&typeof bI[e]!=`string`){var t=`Symbol.`+e;dI&&vI(xI,e)?bI[e]=xI[e]:bI[e]=fI&&SI?SI(t):Pfe(t)}return bI[e]},Ffe=jF.TypeError,Ife=CI(`toPrimitive`),wI=function(e){var t=function(e,t){if(!eI(e)||pI(e))return e;var n,r,i=(n=e[Ife])==null?void 0:mI(n);if(i){if(t===void 0&&(t=`default`),r=WF(i,e,t),!eI(r)||pI(r))return r;throw Ffe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&BF(n=e.toString)&&!eI(r=WF(n,e))||BF(n=e.valueOf)&&!eI(r=WF(n,e))||t!==`string`&&BF(n=e.toString)&&!eI(r=WF(n,e)))return r;throw Dfe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return pI(t)?t:t+``},TI=jF.document,Lfe=eI(TI)&&eI(TI.createElement),EI=function(e){return Lfe?TI.createElement(e):{}},DI=!HF&&!VF((function(){return Object.defineProperty(EI(`div`),`a`,{get:function(){return 7}}).a!=7})),OI=Object.getOwnPropertyDescriptor,kI={f:HF?OI:function(e,t){if(e=$F(e),t=wI(t),DI)try{return OI(e,t)}catch{}if(vI(e,t))return JF(!WF(qF.f,e,t),e[t])}},Rfe=/#|\.prototype\./,AI=function(e,t){var n=Bfe[zfe(e)];return n==Hfe||n!=Vfe&&(BF(t)?VF(t):!!t)},zfe=AI.normalize=function(e){return String(e).replace(Rfe,`.`).toLowerCase()},Bfe=AI.data={},Vfe=AI.NATIVE=`N`,Hfe=AI.POLYFILL=`P`,Ufe=AI,jI=zF(zF.bind),MI=function(e,t){return mI(e),t===void 0?e:jI?jI(e,t):function(){return e.apply(t,arguments)}},Wfe=jF.String,Gfe=jF.TypeError,NI=function(e){if(eI(e))return e;throw Gfe(Wfe(e)+` is not an object`)},Kfe=jF.TypeError,PI=Object.defineProperty,FI={f:HF?PI:function(e,t,n){if(NI(e),t=wI(t),NI(n),DI)try{return PI(e,t,n)}catch{}if(`get`in n||`set`in n)throw Kfe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},II=HF?function(e,t,n){return FI.f(e,t,JF(1,n))}:function(e,t,n){return e[t]=n,e},qfe=kI.f,Jfe=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return FF(e,this,arguments)};return t.prototype=e.prototype,t},LI=function(e,t){var n,r,i,a,o,s,c,l,u=e.target,d=e.global,f=e.stat,p=e.proto,m=d?jF:f?jF[u]:(jF[u]||{}).prototype,h=d?tI:tI[u]||II(tI,u,{})[u],g=h.prototype;for(i in t)n=!Ufe(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&vI(m,i),o=h[i],n&&(s=e.noTargetGet?(l=qfe(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?MI(a,jF):e.wrap&&n?Jfe(a):p&&BF(a)?zF(a):a,(e.sham||a&&a.sham||o&&o.sham)&&II(c,`sham`,!0),II(h,i,c),p&&(vI(tI,r=u+`Prototype`)||II(tI,r,{}),II(tI[r],i,a),e.real&&g&&!g[i]&&II(g,i,a)))},RI=Array.isArray||function(e){return YF(e)==`Array`},Yfe=Math.ceil,Xfe=Math.floor,zI=function(e){var t=+e;return t!=t||t===0?0:(t>0?Xfe:Yfe)(t)},Zfe=Math.min,BI=function(e){return(t=e.length)>0?Zfe(zI(t),9007199254740991):0;var t},VI=function(e,t,n){var r=wI(t);r in e?FI.f(e,r,JF(0,n)):e[r]=n},HI={};HI[CI(`toStringTag`)]=`z`;var UI=String(HI)===`[object z]`,Qfe=CI(`toStringTag`),$fe=jF.Object,epe=YF(function(){return arguments}())==`Arguments`,WI=UI?YF:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=$fe(e),Qfe))==`string`?n:epe?YF(t):(r=YF(t))==`Object`&&BF(t.callee)?`Arguments`:r},tpe=zF(Function.toString);BF(hI.inspectSource)||(hI.inspectSource=function(e){return tpe(e)});var GI=hI.inspectSource,KI=function(){},npe=[],qI=rI(`Reflect`,`construct`),JI=/^\s*(?:class|function)\b/,rpe=zF(JI.exec),ipe=!JI.exec(KI),YI=function(e){if(!BF(e))return!1;try{return qI(KI,npe,e),!0}catch{return!1}},ape=!qI||VF((function(){var e;return YI(YI.call)||!YI(Object)||!YI((function(){e=!0}))||e}))?function(e){if(!BF(e))return!1;switch(WI(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return ipe||!!rpe(JI,GI(e))}:YI,ope=CI(`species`),XI=jF.Array,ZI=function(e,t){return new(function(e){var t;return RI(e)&&(t=e.constructor,(ape(t)&&(t===XI||RI(t.prototype))||eI(t)&&(t=t[ope])===null)&&(t=void 0)),t===void 0?XI:t}(e))(t===0?0:t)},spe=CI(`species`),QI=CI(`isConcatSpreadable`),$I=jF.TypeError,cpe=uI>=51||!VF((function(){var e=[];return e[QI]=!1,e.concat()[0]!==e})),lpe=uI>=51||!VF((function(){var e=[];return(e.constructor={})[spe]=function(){return{foo:1}},e.concat(Boolean).foo!==1})),upe=function(e){if(!eI(e))return!1;var t=e[QI];return t===void 0?RI(e):!!t};LI({target:`Array`,proto:!0,forced:!cpe||!lpe},{concat:function(e){var t,n,r,i,a,o=_I(this),s=ZI(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(upe(a=t===-1?o:arguments[t])){if(c+(i=BI(a))>9007199254740991)throw $I(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&VI(s,c,a[n])}else{if(c>=9007199254740991)throw $I(`Maximum allowed index exceeded`);VI(s,c++,a)}return s.length=c,s}});var eL,dpe=jF.String,tL=function(e){if(WI(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return dpe(e)},fpe=Math.max,ppe=Math.min,nL=function(e,t){var n=zI(e);return n<0?fpe(n+t,0):ppe(n,t)},rL=function(e){return function(t,n,r){var i,a=$F(t),o=BI(a),s=nL(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},mpe={includes:rL(!0),indexOf:rL(!1)},iL={},hpe=mpe.indexOf,aL=zF([].push),oL=function(e,t){var n,r=$F(e),i=0,a=[];for(n in r)!vI(iL,n)&&vI(r,n)&&aL(a,n);for(;t.length>i;)vI(r,n=t[i++])&&(~hpe(a,n)||aL(a,n));return a},sL=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],cL=Object.keys||function(e){return oL(e,sL)},gpe=HF?Object.defineProperties:function(e,t){NI(e);for(var n,r=$F(t),i=cL(t),a=i.length,o=0;a>o;)FI.f(e,n=i[o++],r[n]);return e},_pe=rI(`document`,`documentElement`),lL=gI(`keys`),uL=function(e){return lL[e]||(lL[e]=yI(e))},dL=uL(`IE_PROTO`),fL=function(){},pL=function(e){return`<script>`+e+`<\/script>`},mL=function(e){e.write(pL(``)),e.close();var t=e.parentWindow.Object;return e=null,t},hL=function(){try{eL=new ActiveXObject(`htmlfile`)}catch{}var e,t;hL=typeof document<`u`?document.domain&&eL?mL(eL):((t=EI(`iframe`)).style.display=`none`,_pe.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(pL(`document.F=Object`)),e.close(),e.F):mL(eL);for(var n=sL.length;n--;)delete hL.prototype[sL[n]];return hL()};iL[dL]=!0;var gL,_L,vL,yL=Object.create||function(e,t){var n;return e===null?n=hL():(fL.prototype=NI(e),n=new fL,fL.prototype=null,n[dL]=e),t===void 0?n:gpe(n,t)},vpe=sL.concat(`length`,`prototype`),bL={f:Object.getOwnPropertyNames||function(e){return oL(e,vpe)}},ype=jF.Array,bpe=Math.max,xL=bL.f,SL=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],CL={f:function(e){return SL&&YF(e)==`Window`?function(e){try{return xL(e)}catch{return function(e,t,n){for(var r=BI(e),i=nL(void 0,r),a=nL(r,r),o=ype(bpe(a-i,0)),s=0;i<a;i++,s++)VI(o,s,e[i]);return o.length=s,o}(SL)}}(e):xL($F(e))}},wL={f:Object.getOwnPropertySymbols},xpe=zF([].slice),TL=function(e,t,n,r){r&&r.enumerable?e[t]=n:II(e,t,n)},EL={f:CI},Spe=FI.f,DL=function(e){var t=tI.Symbol||={};vI(t,e)||Spe(t,e,{value:EL.f(e)})},Cpe=UI?{}.toString:function(){return`[object `+WI(this)+`]`},wpe=FI.f,OL=CI(`toStringTag`),kL=function(e,t,n,r){if(e){var i=n?e:e.prototype;vI(i,OL)||wpe(i,OL,{configurable:!0,value:t}),r&&!UI&&II(i,`toString`,Cpe)}},AL=jF.WeakMap,Tpe=BF(AL)&&/native code/.test(GI(AL)),jL=jF.TypeError,Epe=jF.WeakMap;if(Tpe||hI.state){var ML=hI.state||=new Epe,Dpe=zF(ML.get),NL=zF(ML.has),Ope=zF(ML.set);gL=function(e,t){if(NL(ML,e))throw new jL(`Object already initialized`);return t.facade=e,Ope(ML,e,t),t},_L=function(e){return Dpe(ML,e)||{}},vL=function(e){return NL(ML,e)}}else{var PL=uL(`state`);iL[PL]=!0,gL=function(e,t){if(vI(e,PL))throw new jL(`Object already initialized`);return t.facade=e,II(e,PL,t),t},_L=function(e){return vI(e,PL)?e[PL]:{}},vL=function(e){return vI(e,PL)}}var FL={set:gL,get:_L,has:vL,enforce:function(e){return vL(e)?_L(e):gL(e,{})},getterFor:function(e){return function(t){var n;if(!eI(t)||(n=_L(t)).type!==e)throw jL(`Incompatible receiver, `+e+` required`);return n}}},IL=zF([].push),LL=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=_I(c),h=ZF(m),g=MI(l,u),_=BI(h),v=0,y=d||ZI,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:IL(b,f)}else switch(e){case 4:return!1;case 7:IL(b,f)}return a?-1:r||i?i:b}},RL=[LL(0),LL(1),LL(2),LL(3),LL(4),LL(5),LL(6),LL(7)][0],zL=uL(`hidden`),BL=CI(`toPrimitive`),kpe=FL.set,VL=FL.getterFor(`Symbol`),HL=Object.prototype,UL=jF.Symbol,WL=UL&&UL.prototype,GL=jF.TypeError,KL=jF.QObject,qL=rI(`JSON`,`stringify`),JL=kI.f,YL=FI.f,XL=CL.f,Ape=qF.f,ZL=zF([].push),QL=gI(`symbols`),$L=gI(`op-symbols`),eR=gI(`string-to-symbol-registry`),tR=gI(`symbol-to-string-registry`),jpe=gI(`wks`),nR=!KL||!KL.prototype||!KL.prototype.findChild,rR=HF&&VF((function(){return yL(YL({},`a`,{get:function(){return YL(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=JL(HL,t);r&&delete HL[t],YL(e,t,n),r&&e!==HL&&YL(HL,t,r)}:YL,iR=function(e,t){var n=QL[e]=yL(WL);return kpe(n,{type:`Symbol`,tag:e,description:t}),HF||(n.description=t),n},aR=function(e,t,n){e===HL&&aR($L,t,n),NI(e);var r=wI(t);return NI(n),vI(QL,r)?(n.enumerable?(vI(e,zL)&&e[zL][r]&&(e[zL][r]=!1),n=yL(n,{enumerable:JF(0,!1)})):(vI(e,zL)||YL(e,zL,JF(1,{})),e[zL][r]=!0),rR(e,r,n)):YL(e,r,n)},oR=function(e,t){NI(e);var n=$F(t);return RL(cL(n).concat(uR(n)),(function(t){HF&&!WF(sR,n,t)||aR(e,t,n[t])})),e},sR=function(e){var t=wI(e),n=WF(Ape,this,t);return!(this===HL&&vI(QL,t)&&!vI($L,t))&&(!(n||!vI(this,t)||!vI(QL,t)||vI(this,zL)&&this[zL][t])||n)},cR=function(e,t){var n=$F(e),r=wI(t);if(n!==HL||!vI(QL,r)||vI($L,r)){var i=JL(n,r);return!i||!vI(QL,r)||vI(n,zL)&&n[zL][r]||(i.enumerable=!0),i}},lR=function(e){var t=XL($F(e)),n=[];return RL(t,(function(e){vI(QL,e)||vI(iL,e)||ZL(n,e)})),n},uR=function(e){var t=e===HL,n=XL(t?$L:$F(e)),r=[];return RL(n,(function(e){!vI(QL,e)||t&&!vI(HL,e)||ZL(r,QL[e])})),r};if(dI||(WL=(UL=function(){if(iI(WL,this))throw GL(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?tL(arguments[0]):void 0,t=yI(e),n=function(e){this===HL&&WF(n,$L,e),vI(this,zL)&&vI(this[zL],t)&&(this[zL][t]=!1),rR(this,t,JF(1,e))};return HF&&nR&&rR(HL,t,{configurable:!0,set:n}),iR(t,e)}).prototype,TL(WL,`toString`,(function(){return VL(this).tag})),TL(UL,`withoutSetter`,(function(e){return iR(yI(e),e)})),qF.f=sR,FI.f=aR,kI.f=cR,bL.f=CL.f=lR,wL.f=uR,EL.f=function(e){return iR(CI(e),e)},HF&&YL(WL,`description`,{configurable:!0,get:function(){return VL(this).description}})),LI({global:!0,wrap:!0,forced:!dI,sham:!dI},{Symbol:UL}),RL(cL(jpe),(function(e){DL(e)})),LI({target:`Symbol`,stat:!0,forced:!dI},{for:function(e){var t=tL(e);if(vI(eR,t))return eR[t];var n=UL(t);return eR[t]=n,tR[n]=t,n},keyFor:function(e){if(!pI(e))throw GL(e+` is not a symbol`);if(vI(tR,e))return tR[e]},useSetter:function(){nR=!0},useSimple:function(){nR=!1}}),LI({target:`Object`,stat:!0,forced:!dI,sham:!HF},{create:function(e,t){return t===void 0?yL(e):oR(yL(e),t)},defineProperty:aR,defineProperties:oR,getOwnPropertyDescriptor:cR}),LI({target:`Object`,stat:!0,forced:!dI},{getOwnPropertyNames:lR,getOwnPropertySymbols:uR}),LI({target:`Object`,stat:!0,forced:VF((function(){wL.f(1)}))},{getOwnPropertySymbols:function(e){return wL.f(_I(e))}}),qL&&LI({target:`JSON`,stat:!0,forced:!dI||VF((function(){var e=UL();return qL([e])!=`[null]`||qL({a:e})!=`{}`||qL(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=xpe(arguments),i=t;if((eI(t)||e!==void 0)&&!pI(e))return RI(t)||(t=function(e,t){if(BF(i)&&(t=WF(i,this,e,t)),!pI(t))return t}),r[1]=t,FF(qL,null,r)}}),!WL[BL]){var Mpe=WL.valueOf;TL(WL,BL,(function(e){return WF(Mpe,this)}))}kL(UL,`Symbol`),iL[zL]=!0,DL(`asyncIterator`),DL(`hasInstance`),DL(`isConcatSpreadable`),DL(`iterator`),DL(`match`),DL(`matchAll`),DL(`replace`),DL(`search`),DL(`species`),DL(`split`),DL(`toPrimitive`),DL(`toStringTag`),DL(`unscopables`),kL(jF.JSON,`JSON`,!0);var dR,fR,pR,Npe=tI.Symbol,mR={},hR=Function.prototype,Ppe=HF&&Object.getOwnPropertyDescriptor,gR=vI(hR,`name`),Fpe={EXISTS:gR,PROPER:gR&&function(){}.name===`something`,CONFIGURABLE:gR&&(!HF||HF&&Ppe(hR,`name`).configurable)},Ipe=!VF((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),_R=uL(`IE_PROTO`),vR=jF.Object,Lpe=vR.prototype,yR=Ipe?vR.getPrototypeOf:function(e){var t=_I(e);if(vI(t,_R))return t[_R];var n=t.constructor;return BF(n)&&t instanceof n?n.prototype:t instanceof vR?Lpe:null},bR=CI(`iterator`),xR=!1;[].keys&&(`next`in(pR=[].keys())?(fR=yR(yR(pR)))!==Object.prototype&&(dR=fR):xR=!0),dR=dR==null||VF((function(){var e={};return dR[bR].call(e)!==e}))?{}:yL(dR),BF(dR[bR])||TL(dR,bR,(function(){return this}));var SR={IteratorPrototype:dR,BUGGY_SAFARI_ITERATORS:xR},Rpe=SR.IteratorPrototype,zpe=function(){return this};jF.String,jF.TypeError,Object.setPrototypeOf||`__proto__`in{}&&function(){var e={};try{zF(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set)(e,[]),e instanceof Array}catch{}}();var Bpe=Fpe.PROPER,CR=SR.BUGGY_SAFARI_ITERATORS,wR=CI(`iterator`),Vpe=function(){return this},TR=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=yL(Rpe,{next:JF(1,n)}),kL(e,i,!1,!0),mR[i]=zpe})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!CR&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[wR]||p[`@@iterator`]||i&&p[i],h=!CR&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=yR(g.call(new e)))!==Object.prototype&&s.next&&(kL(s,d,!0,!0),mR[d]=Vpe),Bpe&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return WF(m,this)}),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(CR||f||!(l in p))&&TL(p,l,c[l]);else LI({target:t,proto:!0,forced:CR||f},c);return o&&p[wR]!==h&&TL(p,wR,h,{name:i}),mR[t]=h,c},Hpe=FL.set,Upe=FL.getterFor(`Array Iterator`);TR(Array,`Array`,(function(e,t){Hpe(this,{type:`Array Iterator`,target:$F(e),index:0,kind:t})}),(function(){var e=Upe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`),mR.Arguments=mR.Array;var ER=CI(`toStringTag`);for(var DR in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var OR=jF[DR],kR=OR&&OR.prototype;kR&&WI(kR)!==ER&&II(kR,ER,DR),mR[DR]=mR.Array}var Wpe=Npe;DL(`asyncDispose`),DL(`dispose`),DL(`matcher`),DL(`metadata`),DL(`observable`),DL(`patternMatch`),DL(`replaceAll`);var AR=Wpe,Gpe=zF(``.charAt),jR=zF(``.charCodeAt),MR=zF(``.slice),NR=function(e){return function(t,n){var r,i,a=tL(QF(t)),o=zI(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=jR(a,o))<55296||r>56319||o+1===s||(i=jR(a,o+1))<56320||i>57343?e?Gpe(a,o):r:e?MR(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),PR=FL.set,FR=FL.getterFor(`String Iterator`);TR(String,`String`,(function(e){PR(this,{type:`String Iterator`,string:tL(e),index:0})}),(function(){var e,t=FR(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=NR(n,r),t.index+=e.length,{value:e,done:!1})}));var IR=EL.f(`iterator`),LR=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}(Fk((function(e){function t(n){return typeof AR==`function`&&typeof IR==`symbol`?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&typeof AR==`function`&&e.constructor===AR&&e!==AR.prototype?`symbol`:typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}))),RR=xj.EXISTS,zR=QA.f,BR=Function.prototype,VR=Y(BR.toString),HR=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,UR=Y(HR.exec);Bk&&!RR&&zR(BR,`name`,{configurable:!0,get:function(){try{return UR(HR,VR(this))[1]}catch{return``}}});var WR=function(){function e(){this.tag=`select`,this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=F.marks(e);return n&&n[t]?n[t]:``},e.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!gP(F.nodes(e,{match:function(t){return K.getNodeType(t)===`pre`||!!F.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),GR=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`fontSize.title`),t.iconSvg=Pue,t.mark=`fontSize`,t}return dP(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=n===void 0?[]:n;t.push({text:q(`fontSize.default`),value:``}),r.forEach((function(e){if(typeof e==`string`)t.push({text:e,value:e});else if(LR(e)===`object`){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},t}(WR),KR=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`fontFamily.title`),t.iconSvg=Fue,t.mark=`fontFamily`,t.selectPanelWidth=150,t}return dP(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=n===void 0?[]:n;t.push({text:q(`fontFamily.default`),value:``}),r.forEach((function(e){if(typeof e==`string`)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if(LR(e)===`object`){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},t}(WR),qR={renderStyle:function(e,t){var n=e,r=n.fontSize,i=n.fontFamily,a=t;return r&&XP(a,{fontSize:r}),i&&XP(a,{fontFamily:i}),a},styleToHtml:function(e,t){if(!z.isText(e))return t;var n,r=e,i=r.fontSize,a=r.fontFamily;return i||a?((oP(t)||cP(n=V(t))!==`span`)&&(n=V(`<span>`+t+`</span>`)),i&&n.css(`font-size`,i),a&&n.css(`font-family`,a),sP(n)):t},preParseHtml:[gfe],parseStyleHtml:function(e,t,n){var r=V(e);if(!z.isText(t))return t;var i=t,a=n.getMenuConfig(`fontSize`).fontSizeList,o=a===void 0?[]:a,s=lP(r,`font-size`),c=o.find((function(e){return e.value&&e.value===s}))||o.includes(s);s&&c&&(i.fontSize=s);var l=n.getMenuConfig(`fontFamily`).fontFamilyList,u=l===void 0?[]:l,d=lP(r,`font-family`).replace(/"/g,``),f=u.find((function(e){return e.value&&e.value===d}))||u.includes(d);return d&&f&&(i.fontFamily=d),i},menus:[{key:`fontSize`,factory:function(){return new GR},config:{fontSizeList:[`12px`,{name:`13px`,value:`13px`},`14px`,`15px`,`16px`,`19px`,{name:`22px`,value:`22px`},`24px`,`29px`,`32px`,`40px`,`48px`]}},{key:`fontFamily`,factory:function(){return new KR},config:{fontFamilyList:[`黑体`,{name:`仿宋`,value:`仿宋`},`楷体`,`标楷体`,`华文仿宋`,`华文楷体`,{name:`宋体`,value:`宋体`},`微软雅黑`,`Arial`,`Tahoma`,`Verdana`,`Times New Roman`,`Courier New`]}}]},JR={selector:`p,h1,h2,h3,h4,h5`,preParseHtml:function(e){var t=V(e),n=lP(t,`padding-left`);return/\dem/.test(n)&&t.css(`text-indent`,`2em`),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css(`text-indent`,`2em`),t[0]}},YR=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){var t=gP(F.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return t==null?``:gP(t,1)[0].indent||``},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=gP(F.nodes(e,{match:function(e){var t=K.getNodeType(e);return t===`paragraph`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0];return t==null?null:t[0]},e}(),XR=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`indent.decrease`),t.iconSvg=Iue,t}return dP(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!t.indent},t.prototype.exec=function(e,t){B.setNodes(e,{indent:null},{match:function(e){return P.isElement(e)}})},t}(YR),ZR=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`indent.increase`),t.iconSvg=Lue,t}return dP(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!!t.indent},t.prototype.exec=function(e,t){B.setNodes(e,{indent:`2em`},{match:function(e){return P.isElement(e)},mode:`highest`})},t}(YR),QR={renderStyle:function(e,t){if(!P.isElement(e))return t;var n=e.indent,r=t;return n&&XP(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!P.isElement(e))return t;var n=e.indent;if(!n)return t;var r=V(t);return r.css(`text-indent`,n),sP(r)},preParseHtml:[JR],parseStyleHtml:function(e,t,n){var r=V(e);if(!P.isElement(t))return t;var i=t,a=lP(r,`text-indent`);return a&&parseInt(a,10)>0&&(i.indent=a),i},menus:[{key:`indent`,factory:function(){return new ZR}},{key:`delIndent`,factory:function(){return new XR}}]},$R=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=gP(F.nodes(e,{match:function(e){var t=K.getNodeType(e);return t===`paragraph`||t===`blockquote`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0];return t==null?null:t[0]},e.prototype.isDisabled=function(e){return e.selection==null||!!K.getSelectedElems(e).some((function(t){if(F.isVoid(e,t)&&F.isBlock(e,t))return!0;var n=t.type;return!![`pre`,`code`].includes(n)||void 0}))},e}(),ez=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`justify.left`),t.iconSvg=Rue,t}return dP(t,e),t.prototype.exec=function(e,t){B.setNodes(e,{textAlign:`left`},{match:function(t){return P.isElement(t)&&!e.isInline(t)}})},t}($R),tz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`justify.right`),t.iconSvg=zue,t}return dP(t,e),t.prototype.exec=function(e,t){B.setNodes(e,{textAlign:`right`},{match:function(t){return P.isElement(t)&&!e.isInline(t)}})},t}($R),nz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`justify.center`),t.iconSvg=Bue,t}return dP(t,e),t.prototype.exec=function(e,t){B.setNodes(e,{textAlign:`center`},{match:function(t){return P.isElement(t)&&!e.isInline(t)}})},t}($R),rz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`justify.justify`),t.iconSvg=Vue,t}return dP(t,e),t.prototype.exec=function(e,t){B.setNodes(e,{textAlign:`justify`},{match:function(t){return P.isElement(t)&&!e.isInline(t)}})},t}($R),iz={renderStyle:function(e,t){if(!P.isElement(e))return t;var n=e.textAlign,r=t;return n&&XP(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!P.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=V(t);return r.css(`text-align`,n),sP(r)},parseStyleHtml:function(e,t,n){var r=V(e);if(!P.isElement(t))return t;var i=t,a=lP(r,`text-align`);return a&&(i.textAlign=a),i},menus:[{key:`justifyLeft`,factory:function(){return new ez}},{key:`justifyRight`,factory:function(){return new tz}},{key:`justifyCenter`,factory:function(){return new nz}},{key:`justifyJustify`,factory:function(){return new rz}}]},az=function(){function e(){this.title=q(`lineHeight.title`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>`,this.tag=`select`,this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(`lineHeight`).lineHeightList,r=n===void 0?[]:n;t.push({text:q(`lineHeight.default`),value:``}),r.forEach((function(e){t.push({text:e,value:e})}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=gP(F.nodes(e,{match:function(e){var t=K.getNodeType(e);return!!t.startsWith(`header`)||!![`paragraph`,`blockquote`,`list-item`].includes(t)},universal:!0,mode:`highest`}),1)[0];return t==null?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return t==null?``:P.isElement(t)&&t.lineHeight||``},e.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},e.prototype.exec=function(e,t){B.setNodes(e,{lineHeight:t.toString()},{mode:`highest`})},e}(),oz={renderStyle:function(e,t){if(!P.isElement(e))return t;var n=e.lineHeight,r=t;return n&&XP(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!P.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=V(t);return r.css(`line-height`,n),sP(r)},parseStyleHtml:function(e,t,n){var r=V(e);if(!P.isElement(t))return t;var i=t,a=n.getMenuConfig(`lineHeight`).lineHeightList,o=a===void 0?[]:a,s=lP(r,`line-height`);return s&&o.includes(s)&&(i.lineHeight=s),i},menus:[{key:`lineHeight`,factory:function(){return new az},config:{lineHeightList:[`1`,`1.15`,`1.5`,`2`,`2.5`,`3`]}}]},sz=function(){function e(){this.title=q(`undo.redo`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null},e.prototype.exec=function(e,t){typeof e.redo==`function`&&e.redo()},e}(),cz=function(){function e(){this.title=q(`undo.undo`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null},e.prototype.exec=function(e,t){typeof e.undo==`function`&&e.undo()},e}(),lz={menus:[{key:`redo`,factory:function(){return new sz}},{key:`undo`,factory:function(){return new cz}}]},uz={type:`divider`,renderElem:function(e,t,n){return Yh(`div`,{props:{contentEditable:!1,className:`w-e-textarea-divider`},dataset:{selected:K.isNodeSelected(n,e)?`true`:``},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Yh(`hr`)])}},dz=function(){function e(){this.title=q(`divider.title`),this.iconSvg=`<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||!!K.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=K.getNodeType(t);return n===`table`||n===`pre`||void 0}))},e.prototype.exec=function(e,t){B.insertNodes(e,{type:`divider`,children:[{text:``}]},{mode:`highest`})},e}(),fz={renderElems:[uz],elemsToHtml:[{type:`divider`,elemToHtml:function(e,t){return`<hr/>`}}],parseElemsHtml:[{selector:`hr:not([data-w-e-type])`,parseElemHtml:function(e,t,n){return{type:`divider`,children:[{text:``}]}}}],menus:[{key:`divider`,factory:function(){return new dz}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return e.type===`divider`||t(e)},r.normalizeNode=function(e){var t=gP(e,2),i=t[0],a=t[1];if(K.getNodeType(i)!==`divider`)return n([i,a]);K.isLastNode(r,i)&&B.insertNodes(r,K.genEmptyParagraph(),{at:[a[0]+1]})},r}},pz=bM.map;Qj({target:`Array`,proto:!0,forced:!SM(`map`)},{map:function(e){return pz(this,e,arguments.length>1?arguments[1]:void 0)}});var mz=Y([].join),hz=Qk!=Object,gz=TP(`join`,`,`);Qj({target:`Array`,proto:!0,forced:hz||!gz},{join:function(e){return mz(eA(this),e===void 0?`,`:e)}});var _z=function(){function e(){this.title=q(`codeBlock.title`),this.iconSvg=`<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>`,this.tag=`button`}return e.prototype.getSelectCodeElem=function(e){var t=K.getSelectedNodeByType(e,`code`);if(t==null)return null;var n=K.getParentNode(e,t);return n==null||K.getNodeType(n)!==`pre`?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return t==null?``:t.language||``},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(e.selection==null)return!0;var t=K.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=K.getNodeType(e);if(t===`pre`||t===`paragraph`)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(t!=null){var n=I.string(t);B.removeNodes(e,{mode:`highest`});var r=n.split(`
58
+ `).map((function(e){return{type:`paragraph`,children:[{text:e}]}}));B.insertNodes(e,r,{mode:`highest`})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,i=[],a=F.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var o=hP(a),s=o.next();!s.done;s=o.next()){var c=gP(s.value,1)[0];c&&i.push(I.string(c))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}B.removeNodes(e,{mode:`highest`});var l={type:`pre`,children:[{type:`code`,language:t,children:[{text:i.join(`
59
+ `)}]}]};B.insertNodes(e,l,{mode:`highest`})},e}(),vz={key:`codeBlock`,factory:function(){return new _z}};Qj({target:`String`,proto:!0,forced:yP(`anchor`)},{anchor:function(e){return vP(this,`a`,`name`,e)}}),pN(`match`,(function(e,t,n){return[function(t){var n=$k(this),r=t==null?void 0:yA(t,e);return r?Hk(r,t,n):new RegExp(t)[e](DM(n))},function(e){var r=YA(this),i=DM(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return DN(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=DN(r,i))!==null;){var u=DM(s[0]);c[l]=u,u===``&&(r.lastIndex=vN(i,Aj(r.lastIndex),o)),l++}return l===0?null:c}]}));var yz={menus:[vz],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var i=e;return i.insertBreak=function(){var e=K.getSelectedNodeByType(i,`code`);if(e!=null){var n=function(e,t){var n=t.selection;if(n==null)return``;var r=I.string(e),i=n.anchor.offset,a=r.slice(0,i).split(`
60
+ `),o=a.length;return o===0?``:a[o-1]}(e,i);if(n){var r=n.match(/^\s+/);if(r!=null&&r[0]!=null){var a=r[0];i.insertText(`
61
+ `+a);return}}i.insertText(`
62
+ `)}else t()},i.normalizeNode=function(e){var t=gP(e,2),r=t[0],a=t[1],o=K.getNodeType(r);return o===`code`&&a.length<=1&&B.setNodes(i,{type:`paragraph`},{at:a}),o===`pre`&&(K.isLastNode(i,r)&&B.insertNodes(i,K.genEmptyParagraph(),{at:[a[0]+1]}),K.getNodeType(r.children[0])!==`code`&&(B.unwrapNodes(i),B.setNodes(i,{type:`paragraph`},{mode:`highest`}))),n([r,a])},i.insertData=function(e){if(K.getSelectedNodeByType(i,`code`)!=null){var t=e.getData(`text/plain`);F.insertText(i,t)}else r(e)},i},renderElems:[{type:`pre`,renderElem:function(e,t,n){return H(`pre`,null,t)}},{type:`code`,renderElem:function(e,t,n){return H(`code`,null,t)}}],elemsToHtml:[{type:`code`,elemToHtml:function(e,t){return`<code>`+t+`</code>`}},{type:`pre`,elemToHtml:function(e,t){return`<pre>`+t+`</pre>`}}],preParseHtml:[{selector:`pre>code`,preParseHtml:function(e){var t=V(e);if(cP(t)!==`code`)return e;var n=t.find(`xmp`);if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:`pre:not([data-w-e-type])>code`,parseElemHtml:function(e,t,n){return{type:`code`,language:``,children:[{text:V(e)[0].textContent||``}]}}},{selector:`pre:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=V(e);return(t=t.filter((function(e){return K.getNodeType(e)===`code`}))).length===0&&(t=[{type:`code`,language:``,children:[{text:r[0].textContent||``}]}]),{type:`pre`,children:t.filter((function(e){return K.getNodeType(e)===`code`}))}}}]},bz=function(){function e(){this.title=q(`fullScreen.title`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>`,this.tag=`button`,this.alwaysEnable=!0}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),xz={menus:[{key:`fullScreen`,factory:function(){return new bz}}]},Sz=function(){function e(){this.title=q(`common.enter`),this.iconSvg=`<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!!R.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(n!=null){var r=[n.anchor.path[0]];B.insertNodes(e,{type:`paragraph`,children:[{text:``}]},{at:r}),e.select(F.start(e,r))}},e}(),Cz=[Que,Ade,qR,QR,iz,oz,efe,fz,mfe,Vde,yz,ffe,Tde,xue,rfe,lz,xz,{menus:[{key:`enter`,factory:function(){return new Sz}}]}];Sk(`en`,{listModule:{unOrderedList:`Unordered list`,orderedList:`Ordered list`}}),Sk(`zh-CN`,{listModule:{unOrderedList:`无序列表`,orderedList:`有序列表`}});var wz=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Tz(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ez,Dz,Oz=function(e){return e&&e.Math==Math&&e},X=Oz(typeof globalThis==`object`&&globalThis)||Oz(typeof window==`object`&&window)||Oz(typeof self==`object`&&self)||Oz(typeof wz==`object`&&wz)||function(){return this}()||Function(`return this`)(),kz=Function.prototype,Az=kz.bind,jz=kz.call,Mz=Az&&Az.bind(jz),Nz=Az?function(e){return e&&Mz(jz,e)}:function(e){return e&&function(){return jz.apply(e,arguments)}},Pz=function(e){try{return!!e()}catch{return!0}},Fz=Nz({}.toString),Iz=Nz(``.slice),Lz=function(e){return Iz(Fz(e),8,-1)},Rz=X.Object,zz=Nz(``.split),Bz=Pz((function(){return!Rz(`z`).propertyIsEnumerable(0)}))?function(e){return Lz(e)==`String`?zz(e,``):Rz(e)}:Rz,Vz=X.TypeError,Hz=function(e){if(e==null)throw Vz(`Can't call method on `+e);return e},Uz=function(e){return Bz(Hz(e))},Wz=Object.defineProperty,Gz=function(e,t){try{Wz(X,e,{value:t,configurable:!0,writable:!0})}catch{X[e]=t}return t},Kz=X[`__core-js_shared__`]||Gz(`__core-js_shared__`,{}),qz=Tz((function(e){(e.exports=function(e,t){return Kz[e]||(Kz[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Jz=X.Object,Yz=function(e){return Jz(Hz(e))},Xz=Nz({}.hasOwnProperty),Zz=Object.hasOwn||function(e,t){return Xz(Yz(e),t)},Qz=0,$z=Math.random(),eB=Nz(1 .toString),tB=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+eB(++Qz+$z,36)},nB=function(e){return typeof e==`function`},rB=function(e){return nB(e)?e:void 0},iB=function(e,t){return arguments.length<2?rB(X[e]):X[e]&&X[e][t]},aB=iB(`navigator`,`userAgent`)||``,oB=X.process,sB=X.Deno,cB=oB&&oB.versions||sB&&sB.version,lB=cB&&cB.v8;lB&&(Dz=(Ez=lB.split(`.`))[0]>0&&Ez[0]<4?1:+(Ez[0]+Ez[1])),!Dz&&aB&&(!(Ez=aB.match(/Edge\/(\d+)/))||Ez[1]>=74)&&(Ez=aB.match(/Chrome\/(\d+)/))&&(Dz=+Ez[1]);var uB,dB=Dz,fB=!!Object.getOwnPropertySymbols&&!Pz((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&dB&&dB<41})),pB=fB&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,mB=qz(`wks`),hB=X.Symbol,gB=hB&&hB.for,_B=pB?hB:hB&&hB.withoutSetter||tB,vB=function(e){if(!Zz(mB,e)||!fB&&typeof mB[e]!=`string`){var t=`Symbol.`+e;fB&&Zz(hB,e)?mB[e]=hB[e]:mB[e]=pB&&gB?gB(t):_B(t)}return mB[e]},yB=function(e){return typeof e==`object`?e!==null:nB(e)},bB=X.String,xB=X.TypeError,SB=function(e){if(yB(e))return e;throw xB(bB(e)+` is not an object`)},CB=!Pz((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),wB=X.document,TB=yB(wB)&&yB(wB.createElement),EB=function(e){return TB?wB.createElement(e):{}},DB=!CB&&!Pz((function(){return Object.defineProperty(EB(`div`),`a`,{get:function(){return 7}}).a!=7})),OB=Function.prototype.call,kB=OB.bind?OB.bind(OB):function(){return OB.apply(OB,arguments)},AB=Nz({}.isPrototypeOf),jB=X.Object,MB=pB?function(e){return typeof e==`symbol`}:function(e){var t=iB(`Symbol`);return nB(t)&&AB(t.prototype,jB(e))},NB=X.String,PB=function(e){try{return NB(e)}catch{return`Object`}},FB=X.TypeError,IB=function(e){if(nB(e))return e;throw FB(PB(e)+` is not a function`)},LB=function(e,t){var n=e[t];return n==null?void 0:IB(n)},RB=X.TypeError,zB=X.TypeError,BB=vB(`toPrimitive`),VB=function(e){var t=function(e,t){if(!yB(e)||MB(e))return e;var n,r=LB(e,BB);if(r){if(t===void 0&&(t=`default`),n=kB(r,e,t),!yB(n)||MB(n))return n;throw zB(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&nB(n=e.toString)&&!yB(r=kB(n,e))||nB(n=e.valueOf)&&!yB(r=kB(n,e))||t!==`string`&&nB(n=e.toString)&&!yB(r=kB(n,e)))return r;throw RB(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return MB(t)?t:t+``},HB=X.TypeError,UB=Object.defineProperty,WB={f:CB?UB:function(e,t,n){if(SB(e),t=VB(t),SB(n),DB)try{return UB(e,t,n)}catch{}if(`get`in n||`set`in n)throw HB(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},GB=Math.ceil,KB=Math.floor,qB=function(e){var t=+e;return t!=t||t===0?0:(t>0?KB:GB)(t)},JB=Math.max,YB=Math.min,XB=function(e,t){var n=qB(e);return n<0?JB(n+t,0):YB(n,t)},ZB=Math.min,QB=function(e){return e>0?ZB(qB(e),9007199254740991):0},$B=function(e){return QB(e.length)},eV=function(e){return function(t,n,r){var i,a=Uz(t),o=$B(a),s=XB(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},tV={includes:eV(!0),indexOf:eV(!1)},nV={},rV=tV.indexOf,iV=Nz([].push),aV=function(e,t){var n,r=Uz(e),i=0,a=[];for(n in r)!Zz(nV,n)&&Zz(r,n)&&iV(a,n);for(;t.length>i;)Zz(r,n=t[i++])&&(~rV(a,n)||iV(a,n));return a},oV=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],sV=Object.keys||function(e){return aV(e,oV)},cV=CB?Object.defineProperties:function(e,t){SB(e);for(var n,r=Uz(t),i=sV(t),a=i.length,o=0;a>o;)WB.f(e,n=i[o++],r[n]);return e},lV=iB(`document`,`documentElement`),uV=qz(`keys`),dV=function(e){return uV[e]||(uV[e]=tB(e))},fV=dV(`IE_PROTO`),pV=function(){},mV=function(e){return`<script>`+e+`<\/script>`},hV=function(e){e.write(mV(``)),e.close();var t=e.parentWindow.Object;return e=null,t},gV=function(){try{uB=new ActiveXObject(`htmlfile`)}catch{}var e,t;gV=typeof document<`u`?document.domain&&uB?hV(uB):((t=EB(`iframe`)).style.display=`none`,lV.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(mV(`document.F=Object`)),e.close(),e.F):hV(uB);for(var n=oV.length;n--;)delete gV.prototype[oV[n]];return gV()};nV[fV]=!0;var _V=Object.create||function(e,t){var n;return e===null?n=gV():(pV.prototype=SB(e),n=new pV,pV.prototype=null,n[fV]=e),t===void 0?n:cV(n,t)},vV=vB(`unscopables`),yV=Array.prototype;yV[vV]??WB.f(yV,vV,{configurable:!0,value:_V(null)});var bV=function(e){yV[vV][e]=!0},xV={},SV=Nz(Function.toString);nB(Kz.inspectSource)||(Kz.inspectSource=function(e){return SV(e)});var CV,wV,TV,EV=Kz.inspectSource,DV=X.WeakMap,OV=nB(DV)&&/native code/.test(EV(DV)),kV=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},AV=CB?function(e,t,n){return WB.f(e,t,kV(1,n))}:function(e,t,n){return e[t]=n,e},jV=X.TypeError,MV=X.WeakMap;if(OV||Kz.state){var NV=Kz.state||=new MV,PV=Nz(NV.get),FV=Nz(NV.has),IV=Nz(NV.set);CV=function(e,t){if(FV(NV,e))throw new jV(`Object already initialized`);return t.facade=e,IV(NV,e,t),t},wV=function(e){return PV(NV,e)||{}},TV=function(e){return FV(NV,e)}}else{var LV=dV(`state`);nV[LV]=!0,CV=function(e,t){if(Zz(e,LV))throw new jV(`Object already initialized`);return t.facade=e,AV(e,LV,t),t},wV=function(e){return Zz(e,LV)?e[LV]:{}},TV=function(e){return Zz(e,LV)}}var RV,zV,BV,VV={set:CV,get:wV,has:TV,enforce:function(e){return TV(e)?wV(e):CV(e,{})},getterFor:function(e){return function(t){var n;if(!yB(t)||(n=wV(t)).type!==e)throw jV(`Incompatible receiver, `+e+` required`);return n}}},HV={}.propertyIsEnumerable,UV=Object.getOwnPropertyDescriptor,WV={f:UV&&!HV.call({1:2},1)?function(e){var t=UV(this,e);return!!t&&t.enumerable}:HV},GV=Object.getOwnPropertyDescriptor,KV={f:CB?GV:function(e,t){if(e=Uz(e),t=VB(t),DB)try{return GV(e,t)}catch{}if(Zz(e,t))return kV(!kB(WV.f,e,t),e[t])}},qV=Function.prototype,JV=CB&&Object.getOwnPropertyDescriptor,YV=Zz(qV,`name`),XV={EXISTS:YV,PROPER:YV&&function(){}.name===`something`,CONFIGURABLE:YV&&(!CB||CB&&JV(qV,`name`).configurable)},ZV=Tz((function(e){var t=XV.CONFIGURABLE,n=VV.get,r=VV.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;nB(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!Zz(a,`name`)||t&&a.name!==d)&&AV(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===X?l?e[n]=a:Gz(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:AV(e,n,a))})(Function.prototype,`toString`,(function(){return nB(this)&&n(this).source||EV(this)}))})),QV=oV.concat(`length`,`prototype`),$V={f:Object.getOwnPropertyNames||function(e){return aV(e,QV)}},eH={f:Object.getOwnPropertySymbols},tH=Nz([].concat),nH=iB(`Reflect`,`ownKeys`)||function(e){var t=$V.f(SB(e)),n=eH.f;return n?tH(t,n(e)):t},rH=function(e,t){for(var n=nH(t),r=WB.f,i=KV.f,a=0;a<n.length;a++){var o=n[a];Zz(e,o)||r(e,o,i(t,o))}},iH=/#|\.prototype\./,aH=function(e,t){var n=sH[oH(e)];return n==lH||n!=cH&&(nB(t)?Pz(t):!!t)},oH=aH.normalize=function(e){return String(e).replace(iH,`.`).toLowerCase()},sH=aH.data={},cH=aH.NATIVE=`N`,lH=aH.POLYFILL=`P`,uH=aH,dH=KV.f,fH=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?X:l?X[s]||Gz(s,{}):(X[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=dH(n,r))&&o.value:n[r],!uH(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;rH(a,i)}(e.sham||i&&i.sham)&&AV(a,`sham`,!0),ZV(n,r,a,e)}},pH=!Pz((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),mH=dV(`IE_PROTO`),hH=X.Object,gH=hH.prototype,_H=pH?hH.getPrototypeOf:function(e){var t=Yz(e);if(Zz(t,mH))return t[mH];var n=t.constructor;return nB(n)&&t instanceof n?n.prototype:t instanceof hH?gH:null},vH=vB(`iterator`),yH=!1;[].keys&&(`next`in(BV=[].keys())?(zV=_H(_H(BV)))!==Object.prototype&&(RV=zV):yH=!0),(RV==null||Pz((function(){var e={};return RV[vH].call(e)!==e})))&&(RV={}),nB(RV[vH])||ZV(RV,vH,(function(){return this}));var bH={IteratorPrototype:RV,BUGGY_SAFARI_ITERATORS:yH},xH=WB.f,SH=vB(`toStringTag`),CH=function(e,t,n){e&&!Zz(e=n?e:e.prototype,SH)&&xH(e,SH,{configurable:!0,value:t})},wH=bH.IteratorPrototype,TH=function(){return this},EH=X.String,DH=X.TypeError,OH=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=Nz(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return SB(n),function(e){if(typeof e==`object`||nB(e))return e;throw DH(`Can't set `+EH(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),kH=XV.PROPER,AH=XV.CONFIGURABLE,jH=bH.IteratorPrototype,MH=bH.BUGGY_SAFARI_ITERATORS,NH=vB(`iterator`),PH=function(){return this},FH=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=_V(wH,{next:kV(1,n)}),CH(e,i,!1),xV[i]=TH})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!MH&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[NH]||p[`@@iterator`]||i&&p[i],h=!MH&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=_H(g.call(new e)))!==Object.prototype&&s.next&&(_H(s)!==jH&&(OH?OH(s,jH):nB(s[NH])||ZV(s,NH,PH)),CH(s,d,!0)),kH&&i==`values`&&m&&m.name!==`values`&&(AH?AV(p,`name`,`values`):(f=!0,h=function(){return kB(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(MH||f||!(l in p))&&ZV(p,l,c[l]);else fH({target:t,proto:!0,forced:MH||f},c);return p[NH]!==h&&ZV(p,NH,h,{name:i}),xV[t]=h,c},IH=VV.set,LH=VV.getterFor(`Array Iterator`),RH=FH(Array,`Array`,(function(e,t){IH(this,{type:`Array Iterator`,target:Uz(e),index:0,kind:t})}),(function(){var e=LH(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);xV.Arguments=xV.Array,bV(`keys`),bV(`values`),bV(`entries`);var zH={};zH[vB(`toStringTag`)]=`z`;var BH=String(zH)===`[object z]`,VH=vB(`toStringTag`),HH=X.Object,UH=Lz(function(){return arguments}())==`Arguments`,WH=BH?Lz:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=HH(e),VH))==`string`?n:UH?Lz(t):(r=Lz(t))==`Object`&&nB(t.callee)?`Arguments`:r},GH=BH?{}.toString:function(){return`[object `+WH(this)+`]`};BH||ZV(Object.prototype,`toString`,GH,{unsafe:!0});var KH=X.String,qH=function(e){if(WH(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return KH(e)},JH=Nz(``.charAt),YH=Nz(``.charCodeAt),XH=Nz(``.slice),ZH=function(e){return function(t,n){var r,i,a=qH(Hz(t)),o=qB(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=YH(a,o))<55296||r>56319||o+1===s||(i=YH(a,o+1))<56320||i>57343?e?JH(a,o):r:e?XH(a,o,o+2):i-56320+(r-55296<<10)+65536}},QH={codeAt:ZH(!1),charAt:ZH(!0)},$H=QH.charAt,eU=VV.set,tU=VV.getterFor(`String Iterator`);FH(String,`String`,(function(e){eU(this,{type:`String Iterator`,string:qH(e),index:0})}),(function(){var e,t=tU(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=$H(n,r),t.index+=e.length,{value:e,done:!1})}));var nU=function(e,t,n){for(var r in t)ZV(e,r,t[r],n);return e},rU=X.Array,iU=Math.max,aU=$V.f,oU=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],sU={f:function(e){return oU&&Lz(e)==`Window`?function(e){try{return aU(e)}catch{return function(e,t,n){for(var r,i,a,o,s=$B(e),c=XB(void 0,s),l=XB(s,s),u=rU(iU(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=VB(i))in r?WB.f(r,o,kV(0,a)):r[o]=a;return u.length=d,u}(oU)}}(e):aU(Uz(e))}},cU=Pz((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),lU=Object.isExtensible,uU=Pz((function(){lU(1)}))||cU?function(e){return!!yB(e)&&(!cU||Lz(e)!=`ArrayBuffer`)&&(!lU||lU(e))}:lU,dU=!Pz((function(){return Object.isExtensible(Object.preventExtensions({}))})),fU=Tz((function(e){var t=WB.f,n=!1,r=tB(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+ i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=$V.f,t=Nz([].splice),i={};i[r]=1,e(i).length&&($V.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},fH({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:sU.f}))},fastKey:function(e,t){if(!yB(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!Zz(e,r)){if(!uU(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!Zz(e,r)){if(!uU(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return dU&&n&&uU(e)&&!Zz(e,r)&&a(e),e}};nV[r]=!0})),pU=Nz(Nz.bind),mU=function(e,t){return IB(e),t===void 0?e:pU?pU(e,t):function(){return e.apply(t,arguments)}},hU=vB(`iterator`),gU=Array.prototype,_U=vB(`iterator`),vU=function(e){if(e!=null)return LB(e,_U)||LB(e,`@@iterator`)||xV[WH(e)]},yU=X.TypeError,bU=function(e,t,n){var r,i;SB(e);try{if(!(r=LB(e,`return`))){if(t===`throw`)throw n;return n}r=kB(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return SB(r),n},xU=X.TypeError,SU=function(e,t){this.stopped=e,this.result=t},CU=SU.prototype,wU=function(e,t,n){var r,i,a,o,s,c,l,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=mU(t,d),g=function(e){return r&&bU(r,`normal`,e),new SU(!0,e)},_=function(e){return f?(SB(e),m?h(e[0],e[1],g):h(e[0],e[1])):m?h(e,g):h(e)};if(p)r=e;else{if(!(i=vU(e)))throw xU(PB(e)+` is not iterable`);if((u=i)!==void 0&&(xV.Array===u||gU[hU]===u)){for(a=0,o=$B(e);o>a;a++)if((s=_(e[a]))&&AB(CU,s))return s;return new SU(!1)}r=function(e,t){var n=arguments.length<2?vU(e):t;if(IB(n))return SB(kB(n,e));throw yU(PB(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=kB(c,r)).done;){try{s=_(l.value)}catch(e){bU(r,`throw`,e)}if(typeof s==`object`&&s&&AB(CU,s))return s}return new SU(!1)},TU=X.TypeError,EU=function(e,t){if(AB(t,e))return e;throw TU(`Incorrect invocation`)},DU=vB(`iterator`),OU=!1;try{var kU=0,AU={next:function(){return{done:!!kU++}},return:function(){OU=!0}};AU[DU]=function(){return this},Array.from(AU,(function(){throw 2}))}catch{}var jU=Array.isArray||function(e){return Lz(e)==`Array`},MU=function(){},NU=[],PU=iB(`Reflect`,`construct`),FU=/^\s*(?:class|function)\b/,IU=Nz(FU.exec),LU=!FU.exec(MU),RU=function(e){if(!nB(e))return!1;try{return PU(MU,NU,e),!0}catch{return!1}},zU=!PU||Pz((function(){var e;return RU(RU.call)||!RU(Object)||!RU((function(){e=!0}))||e}))?function(e){if(!nB(e))return!1;switch(WH(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return LU||!!IU(FU,EV(e))}:RU,BU=vB(`species`),VU=X.Array,HU=function(e,t){return new(function(e){var t;return jU(e)&&(t=e.constructor,(zU(t)&&(t===VU||jU(t.prototype))||yB(t)&&(t=t[BU])===null)&&(t=void 0)),t===void 0?VU:t}(e))(t===0?0:t)},UU=Nz([].push),WU=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=Yz(c),h=Bz(m),g=mU(l,u),_=$B(h),v=0,y=d||HU,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:UU(b,f)}else switch(e){case 4:return!1;case 7:UU(b,f)}return a?-1:r||i?i:b}},GU={forEach:WU(0),map:WU(1),filter:WU(2),some:WU(3),every:WU(4),find:WU(5),findIndex:WU(6),filterReject:WU(7)},KU=fU.getWeakData,qU=VV.set,JU=VV.getterFor,YU=GU.find,XU=GU.findIndex,ZU=Nz([].splice),QU=0,$U=function(e){return e.frozen||=new eW},eW=function(){this.entries=[]},tW=function(e,t){return YU(e.entries,(function(e){return e[0]===t}))};eW.prototype={get:function(e){var t=tW(this,e);if(t)return t[1]},has:function(e){return!!tW(this,e)},set:function(e,t){var n=tW(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=XU(this.entries,(function(t){return t[0]===e}));return~t&&ZU(this.entries,t,1),!!~t}};var nW,rW={getConstructor:function(e,t,n,r){var i=e((function(e,i){EU(e,a),qU(e,{type:t,id:QU++,frozen:void 0}),i!=null&&wU(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=JU(t),s=function(e,t,n){var r=o(e),i=KU(SB(t),!0);return!0===i?$U(r).set(t,n):i[r.id]=n,e};return nU(a,{delete:function(e){var t=o(this);if(!yB(e))return!1;var n=KU(e);return!0===n?$U(t).delete(e):n&&Zz(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!yB(e))return!1;var n=KU(e);return!0===n?$U(t).has(e):n&&Zz(n,t.id)}}),nU(a,n?{get:function(e){var t=o(this);if(yB(e)){var n=KU(e);return!0===n?$U(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},iW=VV.enforce,aW=!X.ActiveXObject&&`ActiveXObject`in X,oW=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},sW=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=X[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=Nz(s[e]);ZV(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!yB(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!yB(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!yB(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(uH(e,!nB(o)||!(i||s.forEach&&!Pz((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),fU.enable();else if(uH(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=Pz((function(){d.has(1)})),m=function(e,t){if(!OU)return!1;var n=!1;try{var r={};r[DU]=function(){return{next:function(){return{done:n=!0}}}},function(e){new o(e)}(r)}catch{}return n}(),h=!i&&Pz((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){EU(e,s);var n=function(e,t,n){var r,i;return OH&&nB(r=t.constructor)&&r!==n&&yB(i=r.prototype)&&i!==n.prototype&&OH(e,i),e}(new o,e,c);return t!=null&&wU(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,fH({global:!0,forced:c!=o},l),CH(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,oW,rW);if(OV&&aW){nW=rW.getConstructor(oW,`WeakMap`,!0),fU.enable();var cW=sW.prototype,lW=Nz(cW.delete),uW=Nz(cW.has),dW=Nz(cW.get),fW=Nz(cW.set);nU(cW,{delete:function(e){if(yB(e)&&!uU(e)){var t=iW(this);return t.frozen||=new nW,lW(this,e)||t.frozen.delete(e)}return lW(this,e)},has:function(e){if(yB(e)&&!uU(e)){var t=iW(this);return t.frozen||=new nW,uW(this,e)||t.frozen.has(e)}return uW(this,e)},get:function(e){if(yB(e)&&!uU(e)){var t=iW(this);return t.frozen||=new nW,uW(this,e)?dW(this,e):t.frozen.get(e)}return dW(this,e)},set:function(e,t){if(yB(e)&&!uU(e)){var n=iW(this);n.frozen||=new nW,uW(this,e)?fW(this,e,t):n.frozen.set(e,t)}else fW(this,e,t);return this}})}var pW={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},mW=EB(`span`).classList,hW=mW&&mW.constructor&&mW.constructor.prototype,gW=hW===Object.prototype?void 0:hW,_W=vB(`iterator`),vW=vB(`toStringTag`),yW=RH.values,bW=function(e,t){if(e){if(e[_W]!==yW)try{AV(e,_W,yW)}catch{e[_W]=yW}if(e[vW]||AV(e,vW,t),pW[t]){for(var n in RH)if(e[n]!==RH[n])try{AV(e,n,RH[n])}catch{e[n]=RH[n]}}}};for(var xW in pW)bW(X[xW]&&X[xW].prototype,xW);bW(gW,`DOMTokenList`);var SW=new WeakMap,CW={type:`list-item`,renderElem:function(e,t,n){SW.set(e,n);var r=e,i=r.level,a=i===void 0?0:i,o=r.ordered,s={margin:`5px 0 5px `+20*a+`px`},c=``;c=o!==void 0&&o?function(e,t){var n=t,r=n.type,i=n.level,a=i===void 0?0:i,o=n.ordered,s=o!==void 0&&o;if(!s)return-1;var c=1,l=t,u=K.findPath(e,l);if(u[0]===0)return 1;for(;u[0]>0;){var d=L.previous(u),f=F.node(e,d);if(f==null)break;var p=f[0],m=p.level,h=m===void 0?0:m,g=p.type,_=p.ordered;if(g!==r||h<a)break;if(h===a){if(_!==s)break;c++}l=p,u=d}return c}(n,e)+`.`:function(e){e===void 0&&(e=0);var t=``;switch(e){case 0:t=`•`;break;case 1:t=`◦`;break;default:t=`▪`}return t}(a);var l=function(e){var t,n=e.children||[],r=n.length;if(r===0)return``;for(var i=0;i<r&&!t;i++){var a=n[i];z.isText(a)&&(t=a)}return t==null?``:t.color||``}(e);return H(`div`,{style:s},H(`span`,{contentEditable:!1,style:{marginRight:`0.5em`,color:l},"data-w-e-reserve":!0},c),H(`span`,null,t))}},wW=function(e,t){return wW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},wW(e,t)};function TW(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}wW(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function EW(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function DW(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function OW(e){return F.nodes(e,{at:e.selection||void 0,match:function(t){return K.findPath(e,t).length===1}})}var kW=tV.includes;fH({target:`Array`,proto:!0},{includes:function(e){return kW(this,e,arguments.length>1?arguments[1]:void 0)}}),bV(`includes`);var AW,jW,MW=function(){var e=SB(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},NW=X.RegExp,PW=Pz((function(){var e=NW(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),FW=PW||Pz((function(){return!NW(`a`,`y`).sticky})),IW={BROKEN_CARET:PW||Pz((function(){var e=NW(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:FW,UNSUPPORTED_Y:PW},LW=X.RegExp,RW=Pz((function(){var e=LW(`.`,`s`);return!(e.dotAll&&e.exec(`
63
+ `)&&e.flags===`s`)})),zW=X.RegExp,BW=Pz((function(){var e=zW(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),VW=VV.get,HW=qz(`native-string-replace`,String.prototype.replace),UW=RegExp.prototype.exec,WW=UW,GW=Nz(``.charAt),KW=Nz(``.indexOf),qW=Nz(``.replace),JW=Nz(``.slice),YW=(jW=/b*/g,kB(UW,AW=/a/,`a`),kB(UW,jW,`a`),AW.lastIndex!==0||jW.lastIndex!==0),XW=IW.BROKEN_CARET,ZW=/()??/.exec(``)[1]!==void 0;(YW||ZW||XW||RW||BW)&&(WW=function(e){var t,n,r,i,a,o,s,c=this,l=VW(c),u=qH(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=kB(WW,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=XW&&c.sticky,m=kB(MW,c),h=c.source,g=0,_=u;if(p&&(m=qW(m,`y`,``),KW(m,`g`)===-1&&(m+=`g`),_=JW(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&GW(u,c.lastIndex-1)!==`
64
+ `)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),ZW&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),YW&&(r=c.lastIndex),i=kB(UW,p?n:c,_),p?i?(i.input=JW(i.input,g),i[0]=JW(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:YW&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),ZW&&i&&i.length>1&&kB(HW,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=_V(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var QW=WW;fH({target:`RegExp`,proto:!0,forced:/./.exec!==QW},{exec:QW});var $W=function(){function e(){this.type=`list-item`,this.tag=`button`}return e.prototype.getListNode=function(e){var t=this.type;return K.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){var t=this.getListNode(e);if(t==null)return!1;var n=t.ordered;return(n!==void 0&&n)===this.ordered},e.prototype.isDisabled=function(e){return e.selection==null||!!K.getSelectedElems(e).some((function(t){if(F.isVoid(e,t)&&F.isBlock(e,t))return!0;var n=t.type;return!![`pre`,`code`,`table`].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?B.setNodes(e,{type:`paragraph`,ordered:void 0,level:void 0}):B.setNodes(e,{type:`list-item`,ordered:this.ordered,indent:void 0})},e}(),eG=`<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>`,tG=`<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>`,nG=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=q(`listModule.unOrderedList`),t.iconSvg=eG,t}return TW(t,e),t}($W),rG=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=q(`listModule.orderedList`),t.iconSvg=tG,t}return TW(t,e),t}($W),iG={key:`bulletedList`,factory:function(){return new nG}},aG={key:`numberedList`,factory:function(){return new rG}},oG=[],sG={type:`list-item`,elemToHtml:function(e,t){var n=``,r=``,i=e.ordered,a=i!==void 0&&i?`ol`:`ul`,o=function(e){var t=SW.get(e);if(t==null)return 0;var n=e,r=n.type,i=n.ordered,a=i!==void 0&&i,o=n.level,s=o===void 0?0:o,c=K.findPath(t,e);if(c[0]===0)return s+1;var l=L.previous(c),u=F.node(t,l);if(!u)return 0;var d=DW(u,1)[0];if(K.getNodeType(d)!==r)return s+1;var f=d,p=f.ordered,m=p!==void 0&&p,h=f.level,g=h===void 0?0:h;return g<s?s-g:g>s?0:g===s?m===a?0:1:0}(e);if(o>0)for(var s=0;s<o;s++)n+=`<`+a+`>`,oG.push(a);var c=function(e){var t=SW.get(e);if(t==null)return 0;var n=e,r=n.type,i=n.ordered,a=i!==void 0&&i,o=n.level,s=o===void 0?0:o,c=K.findPath(t,e);if(c[0]===t.children.length-1)return s+1;var l=L.next(c),u=F.node(t,l);if(!u)return 0;var d=DW(u,1)[0];if(K.getNodeType(d)!==r)return s+1;var f=d,p=f.ordered,m=p!==void 0&&p,h=f.level,g=h===void 0?0:h;return g<s?s-g:g>s?0:g===s?m===a?0:1:0}(e);if(c>0)for(s=0;s<c;s++)r+=`</`+oG.pop()+`>`;return{html:`<li>`+t+`</li>`,prefix:n,suffix:r}}},cG=vB(`species`),lG=GU.filter;fH({target:`Array`,proto:!0,forced:!(dB>=51||!Pz((function(){var e=[];return(e.constructor={})[cG]=function(){return{foo:1}},e.filter(Boolean).foo!==1})))},{filter:function(e){return lG(this,e,arguments.length>1?arguments[1]:void 0)}});var uG=Function.prototype,dG=uG.apply,fG=uG.bind,pG=uG.call,mG=typeof Reflect==`object`&&Reflect.apply||(fG?pG.bind(dG):function(){return pG.apply(dG,arguments)}),hG=(vB(`species`),RegExp.prototype),gG=QH.charAt,_G=function(e,t,n){return t+(n?gG(e,t).length:1)},vG=Math.floor,yG=Nz(``.charAt),bG=Nz(``.replace),xG=Nz(``.slice),SG=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,CG=/\$([$&'`]|\d{1,2})/g,wG=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=CG;return i!==void 0&&(i=Yz(i),c=SG),bG(a,c,(function(a,c){var l;switch(yG(c,0)){case`$`:return`$`;case`&`:return e;case"`":return xG(t,0,n);case`'`:return xG(t,o);case`<`:l=i[xG(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=vG(u/10);return d===0?a:d<=s?r[d-1]===void 0?yG(c,1):r[d-1]+yG(c,1):a}l=r[u-1]}return l===void 0?``:l}))},TG=X.TypeError,EG=function(e,t){var n=e.exec;if(nB(n)){var r=kB(n,e,t);return r!==null&&SB(r),r}if(Lz(e)===`RegExp`)return kB(QW,e,t);throw TG(`RegExp#exec called on incompatible receiver`)},DG=vB(`replace`),OG=Math.max,kG=Math.min,AG=Nz([].concat),jG=Nz([].push),MG=Nz(``.indexOf),NG=Nz(``.slice),PG=`a`.replace(/./,`$0`)===`$0`,FG=!!/./[DG]&&/./[DG](`a`,`$0`)===``;(function(e,t,n,r){var i=vB(e),a=!Pz((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!Pz((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=Nz(/./[i]),c=function(e,t,n){var r=FG?`$`:`$0`;return[function(e,n){var r=Hz(this),i=e==null?void 0:LB(e,DG);return i?kB(i,e,r,n):kB(t,qH(r),e,n)},function(e,i){var a=SB(this),o=qH(e);if(typeof i==`string`&&MG(i,r)===-1&&MG(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=nB(i);c||(i=qH(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=EG(a,o);if(f===null||(jG(d,f),!l))break;qH(f[0])===``&&(a.lastIndex=_G(o,QB(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=qH((f=d[g])[0]),v=OG(kG(qB(f.index),o.length),0),y=[],b=1;b<f.length;b++)jG(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=AG([_],y,v,o);x!==void 0&&jG(S,x);var C=qH(mG(i,void 0,S))}else C=wG(_,o,v,y,x,i);v>=h&&(m+=NG(o,h,v)+C,h=v+_.length)}return m+NG(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=Nz(e),c=t.exec;return c===QW||c===hG.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));ZV(String.prototype,e,c[0]),ZV(hG,i,c[1])}})(`replace`,0,!!Pz((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!PG||FG);var IG=X.TypeError,LG=function(e,t,n,r,i,a,o,s){for(var c,l,u=i,d=0,f=!!o&&mU(o,s);d<r;){if(d in n){if(c=f?f(n[d],d,t):n[d],a>0&&jU(c))l=$B(c),u=LG(e,t,c,l,u,a-1)-1;else{if(u>=9007199254740991)throw IG(`Exceed the acceptable array length`);e[u]=c}u++}d++}return u},RG=LG;function zG(e){return e.length?e[0].tagName.toLowerCase():``}fH({target:`Array`,proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Yz(this),n=$B(t),r=HU(t,0);return r.length=RG(r,t,t,n,0,e===void 0?1:qB(e)),r}}),bV(`flat`),fH({global:!0},{globalThis:X}),Hm&&(V.fn.append=Hm),Tm&&(V.fn.attr=Tm),Wm&&(V.fn.parent=Wm);var BG={renderElems:[CW],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,i=e;return i.deleteBackward=function(e){var n=i.selection;if(n!=null)if(R.isExpanded(n))t(e);else{var r=K.getSelectedNodeByType(i,`list-item`);if(r!=null)if(n.focus.offset!==0)t(e);else{var a=r.level,o=a===void 0?0:a;o>0?B.setNodes(i,{level:o-1}):B.setNodes(i,{type:`paragraph`,ordered:void 0,level:void 0})}else t(e)}else t(e)},i.handleTab=function(){var e,t,r,a,o=i.selection;if(o!=null){if(R.isCollapsed(o)){var s=K.getSelectedNodeByType(i,`list-item`);if(s==null)return void n();if(o.focus.offset===0){var c=s.level,l=c===void 0?0:c;B.setNodes(i,{level:l+1});return}}if(R.isExpanded(o)){var u=0,d=!1;try{for(var f=EW(OW(i)),p=f.next();!p.done;p=f.next()){var m=DW(p.value,1)[0];K.getNodeType(m)===`list-item`?u++:d=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}if(d||u<=1)return void n();try{for(var h=EW(OW(i)),g=h.next();!g.done;g=h.next()){var _=DW(g.value,2),v=(m=_[0],_[1]),y=m.level;l=y===void 0?0:y,B.setNodes(i,{level:l+1},{at:v})}}catch(e){r={error:e}}finally{try{g&&!g.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}}else n()}else n()},i.normalizeNode=function(e){var t=DW(e,2),n=t[0],a=t[1],o=K.getNodeType(n);return o!==`bulleted-list`&&o!==`numbered-list`||B.unwrapNodes(i,{at:a}),r([n,a])},i},menus:[iG,aG],elemsToHtml:[sG],parseElemsHtml:[{selector:`ul:not([data-w-e-type]),ol:not([data-w-e-type])`,parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:`li:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=V(e);return(t=t.filter((function(e){return!!z.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`list-item`,ordered:function(e){return zG(e.parent())===`ol`}(r),level:function(e){for(var t=0,n=e.parent(),r=zG(n);r===`ul`||r===`ol`;)r=zG(n=n.parent()),t++;return t-1}(r),children:t}}}]},VG=Xr((function(e,t){var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object Promise]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object Symbol]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,C={};C[`[object Float32Array]`]=C[`[object Float64Array]`]=C[`[object Int8Array]`]=C[`[object Int16Array]`]=C[`[object Int32Array]`]=C[`[object Uint8Array]`]=C[`[object Uint8ClampedArray]`]=C[`[object Uint16Array]`]=C[`[object Uint32Array]`]=!0,C[i]=C[a]=C[y]=C[o]=C[b]=C[s]=C[c]=C[l]=C[u]=C[d]=C[f]=C[m]=C[h]=C[g]=C[v]=!1;var w=typeof Yr==`object`&&Yr&&Yr.Object===Object&&Yr,T=typeof self==`object`&&self&&self.Object===Object&&self,E=w||T||Function(`return this`)(),D=t&&!t.nodeType&&t,O=D&&e&&!e.nodeType&&e,ee=O&&O.exports===D,te=ee&&w.process,ne=function(){try{return te&&te.binding&&te.binding(`util`)}catch{}}(),k=ne&&ne.isTypedArray;function re(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function ie(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ae(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var oe=Array.prototype,se=Function.prototype,ce=Object.prototype,le=E[`__core-js_shared__`],ue=se.toString,de=ce.hasOwnProperty,fe=function(){var e=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),pe=ce.toString,me=RegExp(`^`+ue.call(de).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),he=ee?E.Buffer:void 0,ge=E.Symbol,_e=E.Uint8Array,ve=ce.propertyIsEnumerable,ye=oe.splice,be=ge?ge.toStringTag:void 0,xe=Object.getOwnPropertySymbols,Se=he?he.isBuffer:void 0,Ce=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),we=M(E,`DataView`),Te=M(E,`Map`),Ee=M(E,`Promise`),De=M(E,`Set`),Oe=M(E,`WeakMap`),ke=M(Object,`create`),Ae=$e(we),je=$e(Te),Me=$e(Ee),Ne=$e(De),Pe=$e(Oe),Fe=ge?ge.prototype:void 0,A=Fe?Fe.valueOf:void 0;function Ie(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function j(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Le(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Re(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Le;++t<n;)this.add(e[t])}function ze(e){this.size=(this.__data__=new j(e)).size}function Be(e,t){var n=nt(e),r=!n&&tt(e),i=!n&&!r&&rt(e),a=!n&&!r&&!i&&ct(e),o=n||r||i||a,s=o?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)!t&&!de.call(e,l)||o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Qe(l,c))||s.push(l);return s}function Ve(e,t){for(var n=e.length;n--;)if(et(e[n][0],t))return n;return-1}function He(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:be&&be in Object(e)?function(e){var t=de.call(e,be),n=e[be];try{e[be]=void 0;var r=!0}catch{}var i=pe.call(e);return r&&(t?e[be]=n:delete e[be]),i}(e):function(e){return pe.call(e)}(e)}function Ue(e){return st(e)&&He(e)==i}function We(e,t,n,r,l){return e===t||(e==null||t==null||!st(e)&&!st(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var v=nt(e),x=nt(t),S=v?a:Ze(e),C=x?a:Ze(t),w=(S=S==i?f:S)==f,T=(C=C==i?f:C)==f,E=S==C;if(E&&rt(e)){if(!rt(t))return!1;v=!0,w=!1}if(E&&!w)return p||=new ze,v||ct(e)?qe(e,t,n,r,l,p):function(e,t,n,r,i,a,l){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!a(new _e(e),new _e(t)));case o:case s:case d:return et(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+``;case u:var f=ie;case h:var p=1&r;if(f||=ae,e.size!=t.size&&!p)return!1;var v=l.get(e);if(v)return v==t;r|=2,l.set(e,t);var x=qe(f(e),f(t),r,i,a,l);return l.delete(e),x;case _:if(A)return A.call(e)==A.call(t)}return!1}(e,t,S,n,r,l,p);if(!(1&n)){var D=w&&de.call(e,`__wrapped__`),O=T&&de.call(t,`__wrapped__`);if(D||O){var ee=D?e.value():e,te=O?t.value():t;return p||=new ze,l(ee,te,n,r,p)}}return E?(p||=new ze,function(e,t,n,r,i,a){var o=1&n,s=Je(e),c=s.length;if(c!=Je(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:de.call(t,u)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var p=o;++l<c;){var m=e[u=s[l]],h=t[u];if(r)var g=o?r(h,m,u,t,e,a):r(m,h,u,e,t,a);if(!(g===void 0?m===h||i(m,h,n,r,a):g)){f=!1;break}p||=u==`constructor`}if(f&&!p){var _=e.constructor,v=t.constructor;_==v||!(`constructor`in e)||!(`constructor`in t)||typeof _==`function`&&_ instanceof _&&typeof v==`function`&&v instanceof v||(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,r,l,p)):!1}(e,t,n,r,We,l))}function Ge(e){return!(!ot(e)||function(e){return!!fe&&fe in e}(e))&&(it(e)?me:x).test($e(e))}function Ke(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||ce,t!==r)return Ce(e);var t,n,r,i=[];for(var a in Object(e))de.call(e,a)&&a!=`constructor`&&i.push(a);return i}function qe(e,t,n,r,i,a){var o=1&n,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=2&n?new Re:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var p=e[u],m=t[u];if(r)var h=o?r(m,p,u,t,e,a):r(p,m,u,e,t,a);if(h!==void 0){if(h)continue;d=!1;break}if(f){if(!re(t,(function(e,t){if(o=t,!f.has(o)&&(p===e||i(p,e,n,r,a)))return f.push(t);var o}))){d=!1;break}}else if(p!==m&&!i(p,m,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function Je(e){return function(e,t,n){var r=t(e);return nt(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,lt,Xe)}function Ye(e,t){var n,r,i=e.__data__;return((r=typeof(n=t))==`string`||r==`number`||r==`symbol`||r==`boolean`?n!==`__proto__`:n===null)?i[typeof t==`string`?`string`:`hash`]:i.map}function M(e,t){var n=function(e,t){return e?.[t]}(e,t);return Ge(n)?n:void 0}Ie.prototype.clear=function(){this.__data__=ke?ke(null):{},this.size=0},Ie.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ie.prototype.get=function(e){var t=this.__data__;if(ke){var r=t[e];return r===n?void 0:r}return de.call(t,e)?t[e]:void 0},Ie.prototype.has=function(e){var t=this.__data__;return ke?t[e]!==void 0:de.call(t,e)},Ie.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ke&&t===void 0?n:t,this},j.prototype.clear=function(){this.__data__=[],this.size=0},j.prototype.delete=function(e){var t=this.__data__,n=Ve(t,e);return!(n<0)&&(n==t.length-1?t.pop():ye.call(t,n,1),--this.size,!0)},j.prototype.get=function(e){var t=this.__data__,n=Ve(t,e);return n<0?void 0:t[n][1]},j.prototype.has=function(e){return Ve(this.__data__,e)>-1},j.prototype.set=function(e,t){var n=this.__data__,r=Ve(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Le.prototype.clear=function(){this.size=0,this.__data__={hash:new Ie,map:new(Te||j),string:new Ie}},Le.prototype.delete=function(e){var t=Ye(this,e).delete(e);return this.size-=t?1:0,t},Le.prototype.get=function(e){return Ye(this,e).get(e)},Le.prototype.has=function(e){return Ye(this,e).has(e)},Le.prototype.set=function(e,t){var n=Ye(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Re.prototype.add=Re.prototype.push=function(e){return this.__data__.set(e,n),this},Re.prototype.has=function(e){return this.__data__.has(e)},ze.prototype.clear=function(){this.__data__=new j,this.size=0},ze.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ze.prototype.get=function(e){return this.__data__.get(e)},ze.prototype.has=function(e){return this.__data__.has(e)},ze.prototype.set=function(e,t){var n=this.__data__;if(n instanceof j){var r=n.__data__;if(!Te||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Le(r)}return n.set(e,t),this.size=n.size,this};var Xe=xe?function(e){return e==null?[]:(e=Object(e),function(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}(xe(e),(function(t){return ve.call(e,t)})))}:function(){return[]},Ze=He;function Qe(e,t){return!!(t??=r)&&(typeof e==`number`||S.test(e))&&e>-1&&e%1==0&&e<t}function $e(e){if(e!=null){try{return ue.call(e)}catch{}try{return e+``}catch{}}return``}function et(e,t){return e===t||e!=e&&t!=t}(we&&Ze(new we(new ArrayBuffer(1)))!=b||Te&&Ze(new Te)!=u||Ee&&Ze(Ee.resolve())!=p||De&&Ze(new De)!=h||Oe&&Ze(new Oe)!=v)&&(Ze=function(e){var t=He(e),n=t==f?e.constructor:void 0,r=n?$e(n):``;if(r)switch(r){case Ae:return b;case je:return u;case Me:return p;case Ne:return h;case Pe:return v}return t});var tt=Ue(function(){return arguments}())?Ue:function(e){return st(e)&&de.call(e,`callee`)&&!ve.call(e,`callee`)},nt=Array.isArray,rt=Se||function(){return!1};function it(e){if(!ot(e))return!1;var t=He(e);return t==l||t==`[object GeneratorFunction]`||t==`[object AsyncFunction]`||t==`[object Proxy]`}function at(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function ot(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function st(e){return typeof e==`object`&&!!e}var ct=k?function(e){return function(t){return e(t)}}(k):function(e){return st(e)&&at(e.length)&&!!C[He(e)]};function lt(e){return(t=e)!=null&&at(t.length)&&!it(t)?Be(e):Ke(e);var t}e.exports=function(e,t){return We(e,t)}}));Sk(`en`,{tableModule:{deleteCol:`Delete column`,deleteRow:`Delete row`,deleteTable:`Delete table`,widthAuto:`Width auto`,insertCol:`Insert column`,insertRow:`Insert row`,insertTable:`Insert table`,header:`Header`}}),Sk(`zh-CN`,{tableModule:{deleteCol:`删除列`,deleteRow:`删除行`,deleteTable:`删除表格`,widthAuto:`宽度自适应`,insertCol:`插入列`,insertRow:`插入行`,insertTable:`插入表格`,header:`表头`}});var HG=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function UG(e){var t={exports:{}};return e(t,t.exports),t.exports}var WG,GG,KG=function(e){return e&&e.Math==Math&&e},qG=KG(typeof globalThis==`object`&&globalThis)||KG(typeof window==`object`&&window)||KG(typeof self==`object`&&self)||KG(typeof HG==`object`&&HG)||function(){return this}()||Function(`return this`)(),JG=function(e){try{return!!e()}catch{return!0}},YG=!JG((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),XG=Function.prototype.call,ZG=XG.bind?XG.bind(XG):function(){return XG.apply(XG,arguments)},QG={}.propertyIsEnumerable,$G=Object.getOwnPropertyDescriptor,eK={f:$G&&!QG.call({1:2},1)?function(e){var t=$G(this,e);return!!t&&t.enumerable}:QG},tK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},nK=Function.prototype,rK=nK.bind,iK=nK.call,aK=rK&&rK.bind(iK),oK=rK?function(e){return e&&aK(iK,e)}:function(e){return e&&function(){return iK.apply(e,arguments)}},sK=oK({}.toString),cK=oK(``.slice),lK=function(e){return cK(sK(e),8,-1)},uK=qG.Object,dK=oK(``.split),fK=JG((function(){return!uK(`z`).propertyIsEnumerable(0)}))?function(e){return lK(e)==`String`?dK(e,``):uK(e)}:uK,pK=qG.TypeError,mK=function(e){if(e==null)throw pK(`Can't call method on `+e);return e},hK=function(e){return fK(mK(e))},gK=function(e){return typeof e==`function`},_K=function(e){return typeof e==`object`?e!==null:gK(e)},vK=function(e){return gK(e)?e:void 0},yK=function(e,t){return arguments.length<2?vK(qG[e]):qG[e]&&qG[e][t]},bK=oK({}.isPrototypeOf),xK=yK(`navigator`,`userAgent`)||``,SK=qG.process,CK=qG.Deno,wK=SK&&SK.versions||CK&&CK.version,TK=wK&&wK.v8;TK&&(GG=(WG=TK.split(`.`))[0]>0&&WG[0]<4?1:+(WG[0]+WG[1])),!GG&&xK&&(!(WG=xK.match(/Edge\/(\d+)/))||WG[1]>=74)&&(WG=xK.match(/Chrome\/(\d+)/))&&(GG=+WG[1]);var EK=GG,DK=!!Object.getOwnPropertySymbols&&!JG((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&EK&&EK<41})),OK=DK&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,kK=qG.Object,AK=OK?function(e){return typeof e==`symbol`}:function(e){var t=yK(`Symbol`);return gK(t)&&bK(t.prototype,kK(e))},jK=qG.String,MK=function(e){try{return jK(e)}catch{return`Object`}},NK=qG.TypeError,PK=function(e){if(gK(e))return e;throw NK(MK(e)+` is not a function`)},FK=function(e,t){var n=e[t];return n==null?void 0:PK(n)},IK=qG.TypeError,LK=Object.defineProperty,RK=function(e,t){try{LK(qG,e,{value:t,configurable:!0,writable:!0})}catch{qG[e]=t}return t},zK=qG[`__core-js_shared__`]||RK(`__core-js_shared__`,{}),BK=UG((function(e){(e.exports=function(e,t){return zK[e]||(zK[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),VK=qG.Object,HK=function(e){return VK(mK(e))},UK=oK({}.hasOwnProperty),WK=Object.hasOwn||function(e,t){return UK(HK(e),t)},GK=0,KK=Math.random(),qK=oK(1 .toString),JK=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+qK(++GK+KK,36)},YK=BK(`wks`),XK=qG.Symbol,ZK=XK&&XK.for,QK=OK?XK:XK&&XK.withoutSetter||JK,$K=function(e){if(!WK(YK,e)||!DK&&typeof YK[e]!=`string`){var t=`Symbol.`+e;DK&&WK(XK,e)?YK[e]=XK[e]:YK[e]=OK&&ZK?ZK(t):QK(t)}return YK[e]},eq=qG.TypeError,tq=$K(`toPrimitive`),nq=function(e){var t=function(e,t){if(!_K(e)||AK(e))return e;var n,r=FK(e,tq);if(r){if(t===void 0&&(t=`default`),n=ZG(r,e,t),!_K(n)||AK(n))return n;throw eq(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&gK(n=e.toString)&&!_K(r=ZG(n,e))||gK(n=e.valueOf)&&!_K(r=ZG(n,e))||t!==`string`&&gK(n=e.toString)&&!_K(r=ZG(n,e)))return r;throw IK(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return AK(t)?t:t+``},rq=qG.document,iq=_K(rq)&&_K(rq.createElement),aq=function(e){return iq?rq.createElement(e):{}},oq=!YG&&!JG((function(){return Object.defineProperty(aq(`div`),`a`,{get:function(){return 7}}).a!=7})),sq=Object.getOwnPropertyDescriptor,cq={f:YG?sq:function(e,t){if(e=hK(e),t=nq(t),oq)try{return sq(e,t)}catch{}if(WK(e,t))return tK(!ZG(eK.f,e,t),e[t])}},lq=qG.String,uq=qG.TypeError,dq=function(e){if(_K(e))return e;throw uq(lq(e)+` is not an object`)},fq=qG.TypeError,pq=Object.defineProperty,mq={f:YG?pq:function(e,t,n){if(dq(e),t=nq(t),dq(n),oq)try{return pq(e,t,n)}catch{}if(`get`in n||`set`in n)throw fq(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},hq=YG?function(e,t,n){return mq.f(e,t,tK(1,n))}:function(e,t,n){return e[t]=n,e},gq=oK(Function.toString);gK(zK.inspectSource)||(zK.inspectSource=function(e){return gq(e)});var _q,vq,yq,bq=zK.inspectSource,xq=qG.WeakMap,Sq=gK(xq)&&/native code/.test(bq(xq)),Cq=BK(`keys`),wq=function(e){return Cq[e]||(Cq[e]=JK(e))},Tq={},Eq=qG.TypeError,Dq=qG.WeakMap;if(Sq||zK.state){var Oq=zK.state||=new Dq,kq=oK(Oq.get),Aq=oK(Oq.has),jq=oK(Oq.set);_q=function(e,t){if(Aq(Oq,e))throw new Eq(`Object already initialized`);return t.facade=e,jq(Oq,e,t),t},vq=function(e){return kq(Oq,e)||{}},yq=function(e){return Aq(Oq,e)}}else{var Mq=wq(`state`);Tq[Mq]=!0,_q=function(e,t){if(WK(e,Mq))throw new Eq(`Object already initialized`);return t.facade=e,hq(e,Mq,t),t},vq=function(e){return WK(e,Mq)?e[Mq]:{}},yq=function(e){return WK(e,Mq)}}var Nq={set:_q,get:vq,has:yq,enforce:function(e){return yq(e)?vq(e):_q(e,{})},getterFor:function(e){return function(t){var n;if(!_K(t)||(n=vq(t)).type!==e)throw Eq(`Incompatible receiver, `+e+` required`);return n}}},Pq=Function.prototype,Fq=YG&&Object.getOwnPropertyDescriptor,Iq=WK(Pq,`name`),Lq={EXISTS:Iq,PROPER:Iq&&function(){}.name===`something`,CONFIGURABLE:Iq&&(!YG||YG&&Fq(Pq,`name`).configurable)},Rq=UG((function(e){var t=Lq.CONFIGURABLE,n=Nq.get,r=Nq.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;gK(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!WK(a,`name`)||t&&a.name!==d)&&hq(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===qG?l?e[n]=a:RK(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:hq(e,n,a))})(Function.prototype,`toString`,(function(){return gK(this)&&n(this).source||bq(this)}))})),zq=Math.ceil,Bq=Math.floor,Vq=function(e){var t=+e;return t!=t||t===0?0:(t>0?Bq:zq)(t)},Hq=Math.max,Uq=Math.min,Wq=function(e,t){var n=Vq(e);return n<0?Hq(n+t,0):Uq(n,t)},Gq=Math.min,Kq=function(e){return e>0?Gq(Vq(e),9007199254740991):0},qq=function(e){return Kq(e.length)},Jq=function(e){return function(t,n,r){var i,a=hK(t),o=qq(a),s=Wq(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}}(!1),Yq=oK([].push),Xq=function(e,t){var n,r=hK(e),i=0,a=[];for(n in r)!WK(Tq,n)&&WK(r,n)&&Yq(a,n);for(;t.length>i;)WK(r,n=t[i++])&&(~Jq(a,n)||Yq(a,n));return a},Zq=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Qq=Zq.concat(`length`,`prototype`),$q={f:Object.getOwnPropertyNames||function(e){return Xq(e,Qq)}},eJ={f:Object.getOwnPropertySymbols},tJ=oK([].concat),nJ=yK(`Reflect`,`ownKeys`)||function(e){var t=$q.f(dq(e)),n=eJ.f;return n?tJ(t,n(e)):t},rJ=function(e,t){for(var n=nJ(t),r=mq.f,i=cq.f,a=0;a<n.length;a++){var o=n[a];WK(e,o)||r(e,o,i(t,o))}},iJ=/#|\.prototype\./,aJ=function(e,t){var n=sJ[oJ(e)];return n==lJ||n!=cJ&&(gK(t)?JG(t):!!t)},oJ=aJ.normalize=function(e){return String(e).replace(iJ,`.`).toLowerCase()},sJ=aJ.data={},cJ=aJ.NATIVE=`N`,lJ=aJ.POLYFILL=`P`,uJ=aJ,dJ=cq.f,fJ=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?qG:l?qG[s]||RK(s,{}):(qG[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=dJ(n,r))&&o.value:n[r],!uJ(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;rJ(a,i)}(e.sham||i&&i.sham)&&hq(a,`sham`,!0),Rq(n,r,a,e)}},pJ={};pJ[$K(`toStringTag`)]=`z`;var mJ=String(pJ)===`[object z]`,hJ=$K(`toStringTag`),gJ=qG.Object,_J=lK(function(){return arguments}())==`Arguments`,vJ=mJ?lK:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=gJ(e),hJ))==`string`?n:_J?lK(t):(r=lK(t))==`Object`&&gK(t.callee)?`Arguments`:r},yJ=qG.String,bJ=function(e){if(vJ(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return yJ(e)},xJ=/"/g,SJ=oK(``.replace);fJ({target:`String`,proto:!0,forced:JG((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=bJ(mK(this)),r=`<a`,(r+=` name="`+SJ(bJ(t),xJ,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var CJ,wJ=function(){var e=dq(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},TJ=qG.RegExp,EJ=JG((function(){var e=TJ(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),DJ=EJ||JG((function(){return!TJ(`a`,`y`).sticky})),OJ={BROKEN_CARET:EJ||JG((function(){var e=TJ(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:DJ,UNSUPPORTED_Y:EJ},kJ=Object.keys||function(e){return Xq(e,Zq)},AJ=YG?Object.defineProperties:function(e,t){dq(e);for(var n,r=hK(t),i=kJ(t),a=i.length,o=0;a>o;)mq.f(e,n=i[o++],r[n]);return e},jJ=yK(`document`,`documentElement`),MJ=wq(`IE_PROTO`),NJ=function(){},PJ=function(e){return`<script>`+e+`<\/script>`},FJ=function(e){e.write(PJ(``)),e.close();var t=e.parentWindow.Object;return e=null,t},IJ=function(){try{CJ=new ActiveXObject(`htmlfile`)}catch{}var e,t;IJ=typeof document<`u`?document.domain&&CJ?FJ(CJ):((t=aq(`iframe`)).style.display=`none`,jJ.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(PJ(`document.F=Object`)),e.close(),e.F):FJ(CJ);for(var n=Zq.length;n--;)delete IJ.prototype[Zq[n]];return IJ()};Tq[MJ]=!0;var LJ,RJ,zJ=Object.create||function(e,t){var n;return e===null?n=IJ():(NJ.prototype=dq(e),n=new NJ,NJ.prototype=null,n[MJ]=e),t===void 0?n:AJ(n,t)},BJ=qG.RegExp,VJ=JG((function(){var e=BJ(`.`,`s`);return!(e.dotAll&&e.exec(`
65
+ `)&&e.flags===`s`)})),HJ=qG.RegExp,UJ=JG((function(){var e=HJ(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),WJ=Nq.get,GJ=BK(`native-string-replace`,String.prototype.replace),KJ=RegExp.prototype.exec,qJ=KJ,JJ=oK(``.charAt),YJ=oK(``.indexOf),XJ=oK(``.replace),ZJ=oK(``.slice),QJ=(RJ=/b*/g,ZG(KJ,LJ=/a/,`a`),ZG(KJ,RJ,`a`),LJ.lastIndex!==0||RJ.lastIndex!==0),$J=OJ.BROKEN_CARET,eY=/()??/.exec(``)[1]!==void 0;(QJ||eY||$J||VJ||UJ)&&(qJ=function(e){var t,n,r,i,a,o,s,c=this,l=WJ(c),u=bJ(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=ZG(qJ,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=$J&&c.sticky,m=ZG(wJ,c),h=c.source,g=0,_=u;if(p&&(m=XJ(m,`y`,``),YJ(m,`g`)===-1&&(m+=`g`),_=ZJ(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&JJ(u,c.lastIndex-1)!==`
66
+ `)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),eY&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),QJ&&(r=c.lastIndex),i=ZG(KJ,p?n:c,_),p?i?(i.input=ZJ(i.input,g),i[0]=ZJ(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:QJ&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),eY&&i&&i.length>1&&ZG(GJ,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=zJ(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var tY=qJ;fJ({target:`RegExp`,proto:!0,forced:/./.exec!==tY},{exec:tY});var nY=Array.isArray||function(e){return lK(e)==`Array`},rY=function(){},iY=[],aY=yK(`Reflect`,`construct`),oY=/^\s*(?:class|function)\b/,sY=oK(oY.exec),cY=!oY.exec(rY),lY=function(e){if(!gK(e))return!1;try{return aY(rY,iY,e),!0}catch{return!1}},uY=!aY||JG((function(){var e;return lY(lY.call)||!lY(Object)||!lY((function(){e=!0}))||e}))?function(e){if(!gK(e))return!1;switch(vJ(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return cY||!!sY(oY,bq(e))}:lY,dY=function(e,t,n){var r=nq(t);r in e?mq.f(e,r,tK(0,n)):e[r]=n},fY=$K(`species`),pY=function(e){return EK>=51||!JG((function(){var t=[];return(t.constructor={})[fY]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},mY=oK([].slice),hY=pY(`slice`),gY=$K(`species`),_Y=qG.Array,vY=Math.max;function yY(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function bY(e){var t=e.selection;if(t==null)return!1;var n=yY(F.nodes(e,{match:function(e){return K.checkNodeType(e,`table-cell`)}}),1)[0];if(n){var r=yY(n,2)[1],i=F.start(e,r);if(gp.equals(t.anchor,i))return!0}return!1}function xY(e,t){var n,r,i=F.nodes(e,{at:t,match:function(e){return K.getNodeType(e)===`table`}}),a=!1;try{for(var o=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(i),s=o.next();!s.done;s=o.next())s.value,a=!0}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}fJ({target:`Array`,proto:!0,forced:!hY},{slice:function(e,t){var n,r,i,a=hK(this),o=qq(a),s=Wq(e,o),c=Wq(t===void 0?o:t,o);if(nY(a)&&(n=a.constructor,(uY(n)&&(n===_Y||nY(n.prototype))||_K(n)&&(n=n[gY])===null)&&(n=void 0),n===_Y||n===void 0))return mY(a,s,c);for(r=new(n===void 0?_Y:n)(vY(c-s,0)),i=0;s<c;s++,i++)s in a&&dY(r,i,a[s]);return r.length=i,r}});var SY=oK(oK.bind),CY=$K(`species`),wY=qG.Array,TY=function(e,t){return new(function(e){var t;return nY(e)&&(t=e.constructor,(uY(t)&&(t===wY||nY(t.prototype))||_K(t)&&(t=t[CY])===null)&&(t=void 0)),t===void 0?wY:t}(e))(t===0?0:t)},EY=oK([].push),DY=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=HK(c),h=fK(m),g=function(e,t){return PK(e),t===void 0?e:SY?SY(e,t):function(){return e.apply(t,arguments)}}(l,u),_=qq(h),v=0,y=d||TY,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:EY(b,f)}else switch(e){case 4:return!1;case 7:EY(b,f)}return a?-1:r||i?i:b}},OY={forEach:DY(0),map:DY(1),filter:DY(2),some:DY(3),every:DY(4),find:DY(5),findIndex:DY(6),filterReject:DY(7)},kY=OY.map;fJ({target:`Array`,proto:!0,forced:!pY(`map`)},{map:function(e){return kY(this,e,arguments.length>1?arguments[1]:void 0)}});var AY=mJ?{}.toString:function(){return`[object `+vJ(this)+`]`};function jY(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function MY(e){return jY(e).every((function(e){return!!e.isHeader}))}mJ||Rq(Object.prototype,`toString`,AY,{unsafe:!0});var NY=Lq.PROPER,PY=RegExp.prototype,FY=PY.toString,IY=oK(wJ),LY=JG((function(){return FY.call({source:`a`,flags:`b`})!=`/a/b`})),RY=NY&&FY.name!=`toString`;(LY||RY)&&Rq(RegExp.prototype,`toString`,(function(){var e=dq(this),t=bJ(e.source),n=e.flags;return`/`+t+`/`+bJ(n===void 0&&bK(PY,e)&&!(`flags`in PY)?IY(e):n)}),{unsafe:!0});var zY=$K(`unscopables`),BY=Array.prototype;BY[zY]??mq.f(BY,zY,{configurable:!0,value:zJ(null)});var VY=OY.find,HY=!0;`find`in[]&&[,].find((function(){HY=!1})),fJ({target:`Array`,proto:!0,forced:HY},{find:function(e){return VY(this,e,arguments.length>1?arguments[1]:void 0)}}),BY[zY].find=!0;var UY=Function.prototype,WY=UY.apply,GY=UY.bind,KY=UY.call,qY=typeof Reflect==`object`&&Reflect.apply||(GY?KY.bind(WY):function(){return KY.apply(WY,arguments)}),JY=$K(`species`),YY=RegExp.prototype,XY=function(e,t,n,r){var i=$K(e),a=!JG((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!JG((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[JY]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=oK(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=oK(e),c=t.exec;return c===tY||c===YY.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));Rq(String.prototype,e,c[0]),Rq(YY,i,c[1])}r&&hq(YY[i],`sham`,!0)},ZY=$K(`match`),QY=qG.TypeError,$Y=$K(`species`),eX=oK(``.charAt),tX=oK(``.charCodeAt),nX=oK(``.slice),rX=function(e){return function(t,n){var r,i,a=bJ(mK(t)),o=Vq(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=tX(a,o))<55296||r>56319||o+1===s||(i=tX(a,o+1))<56320||i>57343?e?eX(a,o):r:e?nX(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),iX=function(e,t,n){return t+(n?rX(e,t).length:1)},aX=qG.Array,oX=Math.max,sX=function(e,t,n){for(var r=qq(e),i=Wq(t,r),a=Wq(n===void 0?r:n,r),o=aX(oX(a-i,0)),s=0;i<a;i++,s++)dY(o,s,e[i]);return o.length=s,o},cX=qG.TypeError,lX=function(e,t){var n=e.exec;if(gK(n)){var r=ZG(n,e,t);return r!==null&&dq(r),r}if(lK(e)===`RegExp`)return ZG(tY,e,t);throw cX(`RegExp#exec called on incompatible receiver`)},uX=OJ.UNSUPPORTED_Y,dX=Math.min,fX=[].push,Kpe=oK(/./.exec),pX=oK(fX),mX=oK(``.slice);XY(`split`,(function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r,i,a=bJ(mK(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!_K(r=e)||!((i=r[ZY])===void 0?lK(r)==`RegExp`:i))return ZG(t,a,e,o);for(var s,c,l,u=[],d=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),f=0,p=new RegExp(e.source,d+`g`);(s=ZG(tY,p,a))&&!((c=p.lastIndex)>f&&(pX(u,mX(a,f,s.index)),s.length>1&&s.index<a.length&&qY(fX,u,sX(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&Kpe(p,``)||pX(u,``):pX(u,mX(a,f)),u.length>o?sX(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:ZG(t,this,e,n)}:t,[function(t,n){var i=mK(this),a=t==null?void 0:FK(t,e);return a?ZG(a,t,i,n):ZG(r,bJ(i),t,n)},function(e,i){var a=dq(this),o=bJ(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=dq(e).constructor;return r===void 0||(n=dq(r)[$Y])==null?t:function(e){if(uY(e))return e;throw QY(MK(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(uX?`g`:`y`),d=new c(uX?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return lX(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=uX?0:m;var g,_=lX(d,uX?mX(o,m):o);if(_===null||(g=dX(Kq(d.lastIndex+(uX?m:0)),o.length))===p)m=iX(o,m,l);else{if(pX(h,mX(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(pX(h,_[v]),h.length===f)return h;m=p=g}}return pX(h,mX(o,p)),h}]}),!!JG((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),uX);var hX=`
67
+ \v\f\r \xA0               \u2028\u2029`,gX=oK(``.replace),_X=`[`+hX+`]`,qpe=RegExp(`^`+_X+_X+`*`),Jpe=RegExp(_X+_X+`*$`),vX=function(e){return function(t){var n=bJ(mK(t));return 1&e&&(n=gX(n,qpe,``)),2&e&&(n=gX(n,Jpe,``)),n}},Ype={start:vX(1),end:vX(2),trim:vX(3)},Xpe=Lq.PROPER,Zpe=Ype.trim;function yX(e){return e.length?e[0].tagName.toLowerCase():``}fJ({target:`String`,proto:!0,forced:function(e){return JG((function(){return!!hX[e]()||`​…᠎`[e]()!==`​…᠎`||Xpe&&hX[e].name!==e}))}(`trim`)},{trim:function(){return Zpe(this)}}),fJ({global:!0},{globalThis:qG}),Hm&&(V.fn.append=Hm),km&&(V.fn.on=km),$m&&(V.fn.focus=$m),Tm&&(V.fn.attr=Tm),Om&&(V.fn.val=Om),zm&&(V.fn.html=zm),Dm&&(V.fn.dataset=Dm),Sm&&(V.fn.addClass=Sm),Cm&&(V.fn.removeClass=Cm),qm&&(V.fn.children=qm),Lm&&(V.fn.each=Lm),Km&&(V.fn.find=Km);var bX=!1,xX=0,SX=0,CX=null,wX=null,TX=V(`body`);function EX(e){bX=!1,wX=null,CX=null,TX.off(`mousemove`,DX),TX.off(`mouseup`,EX)}TX.on(`mousedown`,(function(e){var t=e.target;(t.tagName===`TH`||t.tagName===`TD`)&&t.style.cursor===`col-resize`&&(t.style.cursor=`auto`,e.preventDefault(),bX=!0,xX=e.clientX,SX=t.getBoundingClientRect().width,TX.on(`mousemove`,DX),TX.on(`mouseup`,EX))}));var DX=Ih((function(e){if(bX&&wX!=null&&CX!=null){e.preventDefault();var t=e.clientX,n=SX+(t-xX);(n=Math.floor(100*n)/100)<30&&(n=30),B.setNodes(wX,{width:n.toString()},{at:CX})}}),100),Qpe={type:`table`,renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(n==null||R.isCollapsed(n))return!0;var r=n.anchor,i=n.focus,a=K.findPath(e,t),o=F.start(e,a),s=F.end(e,a),c=gp.compare(r,s)<=0&&gp.compare(r,o)>=0,l=gp.compare(i,s)<=0&&gp.compare(i,o)>=0;return!!(c&&l&&L.equals(r.path.slice(0,3),i.path.slice(0,3)))}(n,e),i=e.width,a=i===void 0?`auto`:i;return H(`div`,{className:`table-container`,"data-selected":K.isNodeSelected(n,e),on:{mousedown:function(t){if(t.target.tagName===`DIV`&&t.preventDefault(),!n.isDisabled()){var r=K.findPath(n,e),i=F.start(n,r),a=n.selection;(a==null||a.anchor.path[0]!==r[0])&&n.select(i)}}}},H(`table`,{width:a,contentEditable:r},H(`colgroup`,null,jY(e).map((function(e){var t=e.width;return H(`col`,{width:t===void 0?`auto`:t})}))),H(`tbody`,null,t)))}},$pe={type:`table-row`,renderElem:function(e,t,n){return H(`tr`,null,t)}},eme={type:`table-cell`,renderElem:function(e,t,n){var r=function(e,t){var n=K.getParentNode(e,t);if(n==null)return!1;var r=K.getParentNode(e,n);return r!=null&&jY(r).some((function(e){return e===t}))}(n,e),i=e,a=i.colSpan,o=a===void 0?1:a,s=i.rowSpan,c=s===void 0?1:s,l=i.isHeader;return r?H(l!==void 0&&l?`th`:`td`,{colSpan:o,rowSpan:c,style:{borderRightWidth:`3px`},on:{mousemove:Ih((function(t){var r=this.elm;if(r!=null){var i=r.getBoundingClientRect(),a=i.left,o=i.width,s=i.top,c=i.height,l=t.clientX,u=t.clientY;bX||(l>a+o-5&&l<a+o&&u>s&&u<s+c?(r.style.cursor=`col-resize`,wX=n,CX=K.findPath(n,e)):bX||(r.style.cursor=`auto`,wX=null,CX=null))}}),100)}},t):H(`td`,{colSpan:o,rowSpan:c},t)}},tme={selector:`table`,preParseHtml:function(e){var t=V(e);if(yX(t)!==`table`)return e;var n=t.find(`tbody`);if(n.length===0)return e;var r=t.find(`tr`);return t.append(r),n.remove(),t[0]}},nme=OY.filter;fJ({target:`Array`,proto:!0,forced:!pY(`filter`)},{filter:function(e){return nme(this,e,arguments.length>1?arguments[1]:void 0)}});var rme=Math.floor,OX=oK(``.charAt),ime=oK(``.replace),kX=oK(``.slice),ame=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ome=/\$([$&'`]|\d{1,2})/g,sme=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=ome;return i!==void 0&&(i=HK(i),c=ame),ime(a,c,(function(a,c){var l;switch(OX(c,0)){case`$`:return`$`;case`&`:return e;case"`":return kX(t,0,n);case`'`:return kX(t,o);case`<`:l=i[kX(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=rme(u/10);return d===0?a:d<=s?r[d-1]===void 0?OX(c,1):r[d-1]+OX(c,1):a}l=r[u-1]}return l===void 0?``:l}))},AX=$K(`replace`),cme=Math.max,lme=Math.min,ume=oK([].concat),jX=oK([].push),MX=oK(``.indexOf),NX=oK(``.slice),dme=`a`.replace(/./,`$0`)===`$0`,PX=!!/./[AX]&&/./[AX](`a`,`$0`)===``;XY(`replace`,(function(e,t,n){var r=PX?`$`:`$0`;return[function(e,n){var r=mK(this),i=e==null?void 0:FK(e,AX);return i?ZG(i,e,r,n):ZG(t,bJ(r),e,n)},function(e,i){var a=dq(this),o=bJ(e);if(typeof i==`string`&&MX(i,r)===-1&&MX(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=gK(i);c||(i=bJ(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=lX(a,o);if(f===null||(jX(d,f),!l))break;bJ(f[0])===``&&(a.lastIndex=iX(o,Kq(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=bJ((f=d[g])[0]),v=cme(lme(Vq(f.index),o.length),0),y=[],b=1;b<f.length;b++)jX(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=ume([_],y,v,o);x!==void 0&&jX(S,x);var C=bJ(qY(i,void 0,S))}else C=sme(_,o,v,y,x,i);v>=h&&(m+=NX(o,h,v)+C,h=v+_.length)}return m+NX(o,h)}]}),!!JG((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!dme||PX);var fme={selector:`td:not([data-w-e-type]),th:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=V(e);(t=t.filter((function(e){return!!z.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]);var i=parseInt(r.attr(`colSpan`)||`1`),a=parseInt(r.attr(`rowSpan`)||`1`),o=r.attr(`width`)||`auto`;return{type:`table-cell`,isHeader:yX(r)===`th`,colSpan:i,rowSpan:a,width:o,children:t}}},pme={selector:`tr:not([data-w-e-type])`,parseElemHtml:function(e,t,n){return{type:`table-row`,children:t.filter((function(e){return K.getNodeType(e)===`table-cell`}))}}},mme={selector:`table:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=V(e),i=`auto`;return function(e,t){for(var n=``,r=(e.attr(`style`)||``).split(`;`),i=r.length,a=0;a<i;a++){var o=r[a];if(o){var s=o.split(`:`);s[0].trim()===`width`&&(n=s[1].trim())}}return n}(r)===`100%`&&(i=`100%`),r.attr(`width`)===`100%`&&(i=`100%`),{type:`table`,width:i,children:t.filter((function(e){return K.getNodeType(e)===`table-row`}))}}},hme=function(){function e(){this.title=q(`tableModule.insertTable`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>`,this.tag=`button`,this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||!!K.getSelectedElems(e).some((function(t){var n=K.getNodeType(t);return n===`pre`||n===`table`||n===`list-item`||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=V(`<div class="w-e-panel-content-table"></div>`),r=V(`<span>0 &times; 0</span>`),i=V(`<table></table>`),a=0;a<10;a++){for(var o=V(`<tr></tr>`),s=0;s<10;s++){var c=V(`<td></td>`);c.attr(`data-x`,s.toString()),c.attr(`data-y`,a.toString()),o.append(c),c.on(`mouseenter`,(function(e){var t=e.target;if(t!=null){var n=V(t).dataset(),a=n.x,o=n.y;r[0].innerHTML=a+1+` &times; `+(o+1),i.children().each((function(e){V(e).children().each((function(e){var t=V(e),n=t.dataset(),r=n.x,i=n.y;r<=a&&i<=o?t.addClass(`active`):t.removeClass(`active`)}))}))}})),c.on(`click`,(function(n){n.preventDefault();var r=n.target;if(r!=null){var i=V(r).dataset(),a=i.x,o=i.y;t.insertTable(e,o+1,a+1)}}))}i.append(o)}return n.append(i),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),i=parseInt(n,10);if(r&&i&&!(r<=0||i<=0)){K.isSelectedEmptyParagraph(e)&&B.removeNodes(e,{mode:`highest`});var a=function(e,t){for(var n=[],r=0;r<e;r++){for(var i=[],a=0;a<t;a++){var o={type:`table-cell`,children:[{text:``}]};r===0&&(o.isHeader=!0),i.push(o)}n.push({type:`table-row`,children:i})}return{type:`table`,width:`auto`,children:n}}(r,i);B.insertNodes(e,a,{mode:`highest`})}},e}(),gme=function(){function e(){this.title=q(`tableModule.deleteTable`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||K.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){this.isDisabled(e)||B.removeNodes(e,{mode:`highest`})},e}(),_me=function(){function e(){this.title=q(`tableModule.insertRow`),this.iconSvg=`<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||K.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=yY(yY(F.nodes(e,{match:function(e){return K.checkNodeType(e,`table-cell`)},universal:!0}),1)[0],2),r=n[0],i=n[1],a=K.getParentNode(e,r)?.children.length||0;if(a!==0){for(var o={type:`table-row`,children:[]},s=0;s<a;s++)o.children.push({type:`table-cell`,children:[{text:``}]});var c=L.parent(i),l=L.next(c);B.insertNodes(e,o,{at:l})}}},e}(),vme=function(){function e(){this.title=q(`tableModule.deleteRow`),this.iconSvg=`<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||K.getSelectedNodeByType(e,`table-row`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=yY(yY(F.nodes(e,{match:function(e){return K.checkNodeType(e,`table-row`)},universal:!0}),1)[0],2),r=n[0],i=n[1];(K.getParentNode(e,r)?.children.length||0)<=1?B.removeNodes(e,{mode:`highest`}):B.removeNodes(e,{at:i})}},e}(),FX={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},IX=aq(`span`).classList,LX=IX&&IX.constructor&&IX.constructor.prototype,yme=LX===Object.prototype?void 0:LX,bme=OY.forEach,RX=function(e,t){var n=[].forEach;return!!n&&JG((function(){n.call(null,(function(){throw 1}),1)}))}()?[].forEach:function(e){return bme(this,e,arguments.length>1?arguments[1]:void 0)},zX=function(e){if(e&&e.forEach!==RX)try{hq(e,`forEach`,RX)}catch{e.forEach=RX}};for(var BX in FX)FX[BX]&&zX(qG[BX]&&qG[BX].prototype);zX(yme);var xme=function(){function e(){this.title=q(`tableModule.insertCol`),this.iconSvg=`<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||K.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=yY(yY(F.nodes(e,{match:function(e){return K.checkNodeType(e,`table-cell`)},universal:!0}),1)[0],2),r=n[0],i=n[1],a=K.getParentNode(e,r);if(a!=null){var o=K.getParentNode(e,a);o!=null&&(o.children||[]).forEach((function(t,n){P.isElement(t)&&(t.children||[]).forEach((function(t){var r=K.findPath(e,t);if(r.length===i.length&&VG(r.slice(-1),i.slice(-1))){var a={type:`table-cell`,children:[{text:``}]};n===0&&MY(o)&&(a.isHeader=!0),B.insertNodes(e,a,{at:r})}}))}))}}},e}(),Sme=function(){function e(){this.title=q(`tableModule.deleteCol`),this.iconSvg=`<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||K.getSelectedNodeByType(e,`table-cell`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=yY(yY(F.nodes(e,{match:function(e){return K.checkNodeType(e,`table-cell`)},universal:!0}),1)[0],2),r=n[0],i=n[1],a=K.getParentNode(e,r),o=a?.children.length||0;if(!a||o<=1)B.removeNodes(e,{mode:`highest`});else{var s=K.getParentNode(e,a);s!=null&&(s.children||[]).forEach((function(t){P.isElement(t)&&(t.children||[]).forEach((function(t){var n=K.findPath(e,t);n.length===i.length&&VG(n.slice(-1),i.slice(-1))&&B.removeNodes(e,{at:n})}))}))}}},e}(),Cme=function(){function e(){this.title=q(`tableModule.header`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){var t=K.getSelectedNodeByType(e,`table`);return t!=null&&MY(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||K.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=K.getSelectedNodeByType(e,`table`);r!=null&&jY(r).forEach((function(t){return B.setNodes(e,{isHeader:n},{at:K.findPath(e,t)})}))}},e}(),wme=function(){function e(){this.title=q(`tableModule.widthAuto`),this.iconSvg=`<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){var t=K.getSelectedNodeByType(e,`table`);return t!=null&&t.width===`100%`},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||K.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?`auto`:`100%`};B.setNodes(e,n,{mode:`highest`})}},e}(),Tme={renderElems:[Qpe,$pe,eme],elemsToHtml:[{type:`table`,elemToHtml:function(e,t){var n=e.width;return`<table style="width: `+(n===void 0?`auto`:n)+`;"><tbody>`+t+`</tbody></table>`}},{type:`table-row`,elemToHtml:function(e,t){return`<tr>`+t+`</tr>`}},{type:`table-cell`,elemToHtml:function(e,t){var n=e,r=n.colSpan,i=r===void 0?1:r,a=n.rowSpan,o=a===void 0?1:a,s=n.isHeader,c=s!==void 0&&s,l=n.width,u=c?`th`:`td`;return`<`+u+` colSpan="`+i+`" rowSpan="`+o+`" width="`+(l===void 0?`auto`:l)+`">`+t+`</`+u+`>`}}],preParseHtml:[tme],parseElemsHtml:[fme,pme,mme],menus:[{key:`insertTable`,factory:function(){return new hme}},{key:`deleteTable`,factory:function(){return new gme}},{key:`insertTableRow`,factory:function(){return new _me}},{key:`deleteTableRow`,factory:function(){return new vme}},{key:`insertTableCol`,factory:function(){return new xme}},{key:`deleteTableCol`,factory:function(){return new Sme}},{key:`tableHeader`,factory:function(){return new Cme}},{key:`tableFullWidth`,factory:function(){return new wme}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,i=e.normalizeNode,a=e.insertData,o=e.handleTab,s=e.selectAll,c=e;return c.insertBreak=function(){K.getSelectedNodeByType(c,`table`)==null?t():c.insertText(`
68
+ `)},c.deleteBackward=function(e){if(!bY(c)){var t=c.selection;if(t){var r=F.before(c,t);if(r){var i=xY(c,r),a=xY(c,t);if(i&&!a)return}}n(e)}},c.handleTab=function(){if(K.getSelectedNodeByType(c,`table`)){var t=F.above(e);K.checkNodeType(t[0],`table-cell`)&&B.select(e,t[1]);var n=F.next(e);if(n)n[0]&&n[0].text&&(n=F.above(e,{at:n[1]})??n),B.select(e,n[1]);else{var r=c.children||[],i=r.length;if(K.checkNodeType(r[i-1],`table`)){var a=K.genEmptyParagraph();B.insertNodes(c,a,{at:[i]}),c.handleTab()}}}else o()},c.deleteForward=function(e){bY(c)||r(e)},c.normalizeNode=function(e){var t=yY(e,2),n=t[0],r=t[1];if(K.getNodeType(n)!==`table`)return i([n,r]);if(K.isLastNode(c,n)){var a=K.genEmptyParagraph();B.insertNodes(c,a,{at:[r[0]+1]})}},c.insertData=function(e){if(K.getSelectedNodeByType(c,`table`)!=null){var t=e.getData(`text/plain`);t===`
69
+ `||/<img[^>]+>/.test(e.getData(`text/html`))?a(e):F.insertText(c,t)}else a(e)},c.selectAll=function(){var e=c.selection;if(e!=null){var t=K.getSelectedNodeByType(c,`table-cell`);if(t!=null){var n=e.anchor,r=e.focus;if(L.equals(n.path.slice(0,3),r.path.slice(0,3)))if(I.string(t).length!==0){var i=K.findPath(c,t),a={anchor:F.start(c,i),focus:F.end(c,i)};c.select(a)}else s();else s()}else s()}else s()},c}};Sk(`en`,{videoModule:{delete:`Delete`,uploadVideo:`Upload video`,insertVideo:`Insert video`,videoSrc:`Video source`,videoSrcPlaceHolder:`Video file url, or third-party <iframe>`,videoPoster:`Video poster`,videoPosterPlaceHolder:`Poster image url`,ok:`Ok`,editSize:`Edit size`,width:`Width`,height:`Height`}}),Sk(`zh-CN`,{videoModule:{delete:`删除视频`,uploadVideo:`上传视频`,insertVideo:`插入视频`,videoSrc:`视频地址`,videoSrcPlaceHolder:`视频文件 url 或第三方 <iframe>`,videoPoster:`视频封面`,videoPosterPlaceHolder:`封面图片 url`,ok:`确定`,editSize:`修改尺寸`,width:`宽度`,height:`高度`}});var VX=function(){return VX=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},VX.apply(this,arguments)};function HX(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function UX(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError(`Generator is already executing.`);for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||a[0]!==6&&a[0]!==2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function WX(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function Eme(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(e),t={},r(`next`),r(`throw`),r(`return`),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}var GX=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function KX(e){var t={exports:{}};return e(t,t.exports),t.exports}var qX,JX,YX=function(e){return e&&e.Math==Math&&e},Z=YX(typeof globalThis==`object`&&globalThis)||YX(typeof window==`object`&&window)||YX(typeof self==`object`&&self)||YX(typeof GX==`object`&&GX)||function(){return this}()||Function(`return this`)(),XX=function(e){try{return!!e()}catch{return!0}},ZX=!XX((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),QX=Function.prototype.call,$X=QX.bind?QX.bind(QX):function(){return QX.apply(QX,arguments)},eZ={}.propertyIsEnumerable,tZ=Object.getOwnPropertyDescriptor,Dme={f:tZ&&!eZ.call({1:2},1)?function(e){var t=tZ(this,e);return!!t&&t.enumerable}:eZ},nZ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},rZ=Function.prototype,iZ=rZ.bind,aZ=rZ.call,Ome=iZ&&iZ.bind(aZ),Q=iZ?function(e){return e&&Ome(aZ,e)}:function(e){return e&&function(){return aZ.apply(e,arguments)}},kme=Q({}.toString),Ame=Q(``.slice),oZ=function(e){return Ame(kme(e),8,-1)},sZ=Z.Object,jme=Q(``.split),cZ=XX((function(){return!sZ(`z`).propertyIsEnumerable(0)}))?function(e){return oZ(e)==`String`?jme(e,``):sZ(e)}:sZ,Mme=Z.TypeError,lZ=function(e){if(e==null)throw Mme(`Can't call method on `+e);return e},uZ=function(e){return cZ(lZ(e))},dZ=function(e){return typeof e==`function`},fZ=function(e){return typeof e==`object`?e!==null:dZ(e)},Nme=function(e){return dZ(e)?e:void 0},pZ=function(e,t){return arguments.length<2?Nme(Z[e]):Z[e]&&Z[e][t]},mZ=Q({}.isPrototypeOf),hZ=pZ(`navigator`,`userAgent`)||``,gZ=Z.process,_Z=Z.Deno,vZ=gZ&&gZ.versions||_Z&&_Z.version,yZ=vZ&&vZ.v8;yZ&&(JX=(qX=yZ.split(`.`))[0]>0&&qX[0]<4?1:+(qX[0]+qX[1])),!JX&&hZ&&(!(qX=hZ.match(/Edge\/(\d+)/))||qX[1]>=74)&&(qX=hZ.match(/Chrome\/(\d+)/))&&(JX=+qX[1]);var bZ=JX,xZ=!!Object.getOwnPropertySymbols&&!XX((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bZ&&bZ<41})),SZ=xZ&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Pme=Z.Object,CZ=SZ?function(e){return typeof e==`symbol`}:function(e){var t=pZ(`Symbol`);return dZ(t)&&mZ(t.prototype,Pme(e))},Fme=Z.String,wZ=function(e){try{return Fme(e)}catch{return`Object`}},TZ=Z.TypeError,EZ=function(e){if(dZ(e))return e;throw TZ(wZ(e)+` is not a function`)},DZ=function(e,t){var n=e[t];return n==null?void 0:EZ(n)},Ime=Z.TypeError,Lme=Object.defineProperty,OZ=function(e,t){try{Lme(Z,e,{value:t,configurable:!0,writable:!0})}catch{Z[e]=t}return t},kZ=Z[`__core-js_shared__`]||OZ(`__core-js_shared__`,{}),AZ=KX((function(e){(e.exports=function(e,t){return kZ[e]||(kZ[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Rme=Z.Object,jZ=function(e){return Rme(lZ(e))},zme=Q({}.hasOwnProperty),MZ=Object.hasOwn||function(e,t){return zme(jZ(e),t)},Bme=0,Vme=Math.random(),Hme=Q(1 .toString),NZ=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Hme(++Bme+Vme,36)},PZ=AZ(`wks`),FZ=Z.Symbol,IZ=FZ&&FZ.for,Ume=SZ?FZ:FZ&&FZ.withoutSetter||NZ,LZ=function(e){if(!MZ(PZ,e)||!xZ&&typeof PZ[e]!=`string`){var t=`Symbol.`+e;xZ&&MZ(FZ,e)?PZ[e]=FZ[e]:PZ[e]=SZ&&IZ?IZ(t):Ume(t)}return PZ[e]},Wme=Z.TypeError,Gme=LZ(`toPrimitive`),RZ=function(e){var t=function(e,t){if(!fZ(e)||CZ(e))return e;var n,r=DZ(e,Gme);if(r){if(t===void 0&&(t=`default`),n=$X(r,e,t),!fZ(n)||CZ(n))return n;throw Wme(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&dZ(n=e.toString)&&!fZ(r=$X(n,e))||dZ(n=e.valueOf)&&!fZ(r=$X(n,e))||t!==`string`&&dZ(n=e.toString)&&!fZ(r=$X(n,e)))return r;throw Ime(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return CZ(t)?t:t+``},zZ=Z.document,Kme=fZ(zZ)&&fZ(zZ.createElement),BZ=function(e){return Kme?zZ.createElement(e):{}},VZ=!ZX&&!XX((function(){return Object.defineProperty(BZ(`div`),`a`,{get:function(){return 7}}).a!=7})),HZ=Object.getOwnPropertyDescriptor,UZ={f:ZX?HZ:function(e,t){if(e=uZ(e),t=RZ(t),VZ)try{return HZ(e,t)}catch{}if(MZ(e,t))return nZ(!$X(Dme.f,e,t),e[t])}},qme=Z.String,Jme=Z.TypeError,WZ=function(e){if(fZ(e))return e;throw Jme(qme(e)+` is not an object`)},Yme=Z.TypeError,GZ=Object.defineProperty,KZ={f:ZX?GZ:function(e,t,n){if(WZ(e),t=RZ(t),WZ(n),VZ)try{return GZ(e,t,n)}catch{}if(`get`in n||`set`in n)throw Yme(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},qZ=ZX?function(e,t,n){return KZ.f(e,t,nZ(1,n))}:function(e,t,n){return e[t]=n,e},Xme=Q(Function.toString);dZ(kZ.inspectSource)||(kZ.inspectSource=function(e){return Xme(e)});var JZ,YZ,XZ,ZZ=kZ.inspectSource,QZ=Z.WeakMap,$Z=dZ(QZ)&&/native code/.test(ZZ(QZ)),eQ=AZ(`keys`),tQ=function(e){return eQ[e]||(eQ[e]=NZ(e))},nQ={},rQ=Z.TypeError,Zme=Z.WeakMap;if($Z||kZ.state){var iQ=kZ.state||=new Zme,Qme=Q(iQ.get),aQ=Q(iQ.has),$me=Q(iQ.set);JZ=function(e,t){if(aQ(iQ,e))throw new rQ(`Object already initialized`);return t.facade=e,$me(iQ,e,t),t},YZ=function(e){return Qme(iQ,e)||{}},XZ=function(e){return aQ(iQ,e)}}else{var oQ=tQ(`state`);nQ[oQ]=!0,JZ=function(e,t){if(MZ(e,oQ))throw new rQ(`Object already initialized`);return t.facade=e,qZ(e,oQ,t),t},YZ=function(e){return MZ(e,oQ)?e[oQ]:{}},XZ=function(e){return MZ(e,oQ)}}var sQ={set:JZ,get:YZ,has:XZ,enforce:function(e){return XZ(e)?YZ(e):JZ(e,{})},getterFor:function(e){return function(t){var n;if(!fZ(t)||(n=YZ(t)).type!==e)throw rQ(`Incompatible receiver, `+e+` required`);return n}}},cQ=Function.prototype,ehe=ZX&&Object.getOwnPropertyDescriptor,lQ=MZ(cQ,`name`),uQ={EXISTS:lQ,PROPER:lQ&&function(){}.name===`something`,CONFIGURABLE:lQ&&(!ZX||ZX&&ehe(cQ,`name`).configurable)},dQ=KX((function(e){var t=uQ.CONFIGURABLE,n=sQ.get,r=sQ.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;dZ(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!MZ(a,`name`)||t&&a.name!==d)&&qZ(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Z?l?e[n]=a:OZ(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:qZ(e,n,a))})(Function.prototype,`toString`,(function(){return dZ(this)&&n(this).source||ZZ(this)}))})),the=Math.ceil,nhe=Math.floor,fQ=function(e){var t=+e;return t!=t||t===0?0:(t>0?nhe:the)(t)},rhe=Math.max,ihe=Math.min,pQ=function(e,t){var n=fQ(e);return n<0?rhe(n+t,0):ihe(n,t)},ahe=Math.min,mQ=function(e){return e>0?ahe(fQ(e),9007199254740991):0},hQ=function(e){return mQ(e.length)},gQ=function(e){return function(t,n,r){var i,a=uZ(t),o=hQ(a),s=pQ(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},_Q={includes:gQ(!0),indexOf:gQ(!1)},ohe=_Q.indexOf,vQ=Q([].push),yQ=function(e,t){var n,r=uZ(e),i=0,a=[];for(n in r)!MZ(nQ,n)&&MZ(r,n)&&vQ(a,n);for(;t.length>i;)MZ(r,n=t[i++])&&(~ohe(a,n)||vQ(a,n));return a},bQ=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],she=bQ.concat(`length`,`prototype`),xQ={f:Object.getOwnPropertyNames||function(e){return yQ(e,she)}},che={f:Object.getOwnPropertySymbols},lhe=Q([].concat),uhe=pZ(`Reflect`,`ownKeys`)||function(e){var t=xQ.f(WZ(e)),n=che.f;return n?lhe(t,n(e)):t},dhe=function(e,t){for(var n=uhe(t),r=KZ.f,i=UZ.f,a=0;a<n.length;a++){var o=n[a];MZ(e,o)||r(e,o,i(t,o))}},fhe=/#|\.prototype\./,SQ=function(e,t){var n=mhe[phe(e)];return n==ghe||n!=hhe&&(dZ(t)?XX(t):!!t)},phe=SQ.normalize=function(e){return String(e).replace(fhe,`.`).toLowerCase()},mhe=SQ.data={},hhe=SQ.NATIVE=`N`,ghe=SQ.POLYFILL=`P`,CQ=SQ,_he=UZ.f,wQ=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Z:l?Z[s]||OZ(s,{}):(Z[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=_he(n,r))&&o.value:n[r],!CQ(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;dhe(a,i)}(e.sham||i&&i.sham)&&qZ(a,`sham`,!0),dQ(n,r,a,e)}},TQ={};TQ[LZ(`toStringTag`)]=`z`;var EQ=String(TQ)===`[object z]`,vhe=LZ(`toStringTag`),yhe=Z.Object,bhe=oZ(function(){return arguments}())==`Arguments`,DQ=EQ?oZ:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=yhe(e),vhe))==`string`?n:bhe?oZ(t):(r=oZ(t))==`Object`&&dZ(t.callee)?`Arguments`:r},xhe=Z.String,OQ=function(e){if(DQ(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return xhe(e)},kQ=`
70
+ \v\f\r \xA0               \u2028\u2029`,AQ=Q(``.replace),jQ=`[`+kQ+`]`,She=RegExp(`^`+jQ+jQ+`*`),Che=RegExp(jQ+jQ+`*$`),MQ=function(e){return function(t){var n=OQ(lZ(t));return 1&e&&(n=AQ(n,She,``)),2&e&&(n=AQ(n,Che,``)),n}},whe={start:MQ(1),end:MQ(2),trim:MQ(3)},The=uQ.PROPER,Ehe=whe.trim;function NQ(e){return e.length?e[0].tagName.toLowerCase():``}function PQ(e,t,n){t===void 0&&(t=`auto`),n===void 0&&(n=`auto`);var r=V(e);return r.attr(`width`,t),r.attr(`height`,n),r[0].outerHTML}wQ({target:`String`,proto:!0,forced:XX((function(){return!!kQ.trim()||The&&kQ.trim.name!==`trim`}))},{trim:function(){return Ehe(this)}}),wQ({global:!0},{globalThis:Z}),Hm&&(V.fn.append=Hm),km&&(V.fn.on=km),$m&&(V.fn.focus=$m),Tm&&(V.fn.attr=Tm),Om&&(V.fn.val=Om),zm&&(V.fn.html=zm),Wm&&(V.fn.parent=Wm),wm&&(V.fn.hasClass=wm),Ym&&(V.fn.empty=Ym);var FQ,Dhe={type:`video`,renderElem:function(e,t,n){var r,i=e,a=i.src,o=a===void 0?``:a,s=i.poster,c=s===void 0?``:s,l=i.width,u=l===void 0?`auto`:l,d=i.height,f=d===void 0?`auto`:d,p=K.isNodeSelected(n,e);if(o.trim().indexOf(`<iframe `)===0)r=H(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``,innerHTML:PQ(o,u,f)});else{var m=H(`video`,{poster:c,controls:!0},H(`source`,{src:o,type:`video/mp4`}),`Sorry, your browser doesn't support embedded videos.
71
+ 抱歉,浏览器不支持 video 视频`);u!==`auto`&&(m.data.width=u),f!==`auto`&&(m.data.height=f),r=H(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``},m)}return Yh(`div`,{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},Ohe={type:`video`,elemToHtml:function(e,t){var n=e,r=n.src,i=r===void 0?``:r,a=n.poster,o=a===void 0?``:a,s=n.width,c=s===void 0?`auto`:s,l=n.height,u=l===void 0?`auto`:l,d=`<div data-w-e-type="video" data-w-e-is-void>
72
+ `;return i.trim().indexOf(`<iframe `)===0?d+=PQ(i,c,u):d+=`<video poster="`+o+`" controls="true" width="`+c+`" height="`+u+`"><source src="`+i+`" type="video/mp4"/></video>`,d+`
73
+ </div>`}},khe=Object.keys||function(e){return yQ(e,bQ)},Ahe=ZX?Object.defineProperties:function(e,t){WZ(e);for(var n,r=uZ(t),i=khe(t),a=i.length,o=0;a>o;)KZ.f(e,n=i[o++],r[n]);return e},IQ=pZ(`document`,`documentElement`),LQ=tQ(`IE_PROTO`),RQ=function(){},zQ=function(e){return`<script>`+e+`<\/script>`},BQ=function(e){e.write(zQ(``)),e.close();var t=e.parentWindow.Object;return e=null,t},VQ=function(){try{FQ=new ActiveXObject(`htmlfile`)}catch{}var e,t;VQ=typeof document<`u`?document.domain&&FQ?BQ(FQ):((t=BZ(`iframe`)).style.display=`none`,IQ.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(zQ(`document.F=Object`)),e.close(),e.F):BQ(FQ);for(var n=bQ.length;n--;)delete VQ.prototype[bQ[n]];return VQ()};nQ[LQ]=!0;var HQ=Object.create||function(e,t){var n;return e===null?n=VQ():(RQ.prototype=WZ(e),n=new RQ,RQ.prototype=null,n[LQ]=e),t===void 0?n:Ahe(n,t)},UQ=LZ(`unscopables`),WQ=Array.prototype;WQ[UQ]??KZ.f(WQ,UQ,{configurable:!0,value:HQ(null)});var GQ=function(e){WQ[UQ][e]=!0},jhe=_Q.includes;wQ({target:`Array`,proto:!0},{includes:function(e){return jhe(this,e,arguments.length>1?arguments[1]:void 0)}}),GQ(`includes`);var Mhe={selector:`iframe,video,p`,preParseHtml:function(e){var t=V(e),n=t;if(NQ(t)===`p`){var r=t.children();if(r.length===1){var i=r[0],a=i.tagName.toLowerCase();[`iframe`,`video`].includes(a)&&(n=V(i))}}var o=NQ(n);if(o!==`iframe`&&o!==`video`||n.parent().attr(`data-w-e-type`)===`video`)return n[0];var s=V(`<div data-w-e-type="video" data-w-e-is-void></div>`);return s.append(n),s[0]}},KQ=Q(Q.bind),qQ=function(e,t){return EZ(e),t===void 0?e:KQ?KQ(e,t):function(){return e.apply(t,arguments)}},JQ=Array.isArray||function(e){return oZ(e)==`Array`},YQ=function(){},Nhe=[],XQ=pZ(`Reflect`,`construct`),ZQ=/^\s*(?:class|function)\b/,Phe=Q(ZQ.exec),Fhe=!ZQ.exec(YQ),QQ=function(e){if(!dZ(e))return!1;try{return XQ(YQ,Nhe,e),!0}catch{return!1}},$Q=!XQ||XX((function(){var e;return QQ(QQ.call)||!QQ(Object)||!QQ((function(){e=!0}))||e}))?function(e){if(!dZ(e))return!1;switch(DQ(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Fhe||!!Phe(ZQ,ZZ(e))}:QQ,Ihe=LZ(`species`),e$=Z.Array,Lhe=function(e,t){return new(function(e){var t;return JQ(e)&&(t=e.constructor,($Q(t)&&(t===e$||JQ(t.prototype))||fZ(t)&&(t=t[Ihe])===null)&&(t=void 0)),t===void 0?e$:t}(e))(t===0?0:t)},t$=Q([].push),n$=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=jZ(c),h=cZ(m),g=qQ(l,u),_=hQ(h),v=0,y=d||Lhe,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:t$(b,f)}else switch(e){case 4:return!1;case 7:t$(b,f)}return a?-1:r||i?i:b}},r$={forEach:n$(0),map:n$(1),filter:n$(2),some:n$(3),every:n$(4),find:n$(5),findIndex:n$(6),filterReject:n$(7)},Rhe=r$.find,i$=!0;`find`in[]&&[,].find((function(){i$=!1})),wQ({target:`Array`,proto:!0,forced:i$},{find:function(e){return Rhe(this,e,arguments.length>1?arguments[1]:void 0)}}),GQ(`find`);var zhe=EQ?{}.toString:function(){return`[object `+DQ(this)+`]`};function a$(e,t,n,r){return t===void 0&&(t=``),n===void 0&&(n=`auto`),r===void 0&&(r=`auto`),{type:`video`,src:e,poster:t,width:n,height:r,children:[{text:``}]}}EQ||dQ(Object.prototype,`toString`,zhe,{unsafe:!0});var o$,s$,Bhe={selector:`div[data-w-e-type="video"]`,parseElemHtml:function(e,t,n){var r=V(e),i=``,a=``,o=`auto`,s=`auto`,c=r.find(`iframe`);if(c.length>0)return o=c.attr(`width`)||`auto`,s=c.attr(`height`)||`auto`,a$(i=c[0].outerHTML,a,o,s);var l=r.find(`video`);return(i=l.attr(`src`)||``)||l.length>0&&(i=l.find(`source`).attr(`src`)||``),o=l.attr(`width`)||`auto`,s=l.attr(`height`)||`auto`,a$(i,a=l.attr(`poster`)||``,o,s)}},c$=function(){var e=WZ(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},l$=Z.RegExp,u$=XX((function(){var e=l$(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Vhe=u$||XX((function(){return!l$(`a`,`y`).sticky})),Hhe={BROKEN_CARET:u$||XX((function(){var e=l$(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Vhe,UNSUPPORTED_Y:u$},Uhe=Z.RegExp,Whe=XX((function(){var e=Uhe(`.`,`s`);return!(e.dotAll&&e.exec(`
74
+ `)&&e.flags===`s`)})),Ghe=Z.RegExp,Khe=XX((function(){var e=Ghe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),qhe=sQ.get,Jhe=AZ(`native-string-replace`,String.prototype.replace),d$=RegExp.prototype.exec,f$=d$,Yhe=Q(``.charAt),Xhe=Q(``.indexOf),Zhe=Q(``.replace),p$=Q(``.slice),m$=(s$=/b*/g,$X(d$,o$=/a/,`a`),$X(d$,s$,`a`),o$.lastIndex!==0||s$.lastIndex!==0),h$=Hhe.BROKEN_CARET,g$=/()??/.exec(``)[1]!==void 0;(m$||g$||h$||Whe||Khe)&&(f$=function(e){var t,n,r,i,a,o,s,c=this,l=qhe(c),u=OQ(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=$X(f$,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=h$&&c.sticky,m=$X(c$,c),h=c.source,g=0,_=u;if(p&&(m=Zhe(m,`y`,``),Xhe(m,`g`)===-1&&(m+=`g`),_=p$(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Yhe(u,c.lastIndex-1)!==`
75
+ `)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),g$&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),m$&&(r=c.lastIndex),i=$X(d$,p?n:c,_),p?i?(i.input=p$(i.input,g),i[0]=p$(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:m$&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),g$&&i&&i.length>1&&$X(Jhe,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=HQ(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var _$=f$;wQ({target:`RegExp`,proto:!0,forced:/./.exec!==_$},{exec:_$});var v$=Function.prototype,y$=v$.apply,Qhe=v$.bind,b$=v$.call,x$=typeof Reflect==`object`&&Reflect.apply||(Qhe?b$.bind(y$):function(){return b$.apply(y$,arguments)}),S$=(LZ(`species`),RegExp.prototype),$he=Q(``.charAt),C$=Q(``.charCodeAt),ege=Q(``.slice),w$=function(e){return function(t,n){var r,i,a=OQ(lZ(t)),o=fQ(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=C$(a,o))<55296||r>56319||o+1===s||(i=C$(a,o+1))<56320||i>57343?e?$he(a,o):r:e?ege(a,o,o+2):i-56320+(r-55296<<10)+65536}},T$={codeAt:w$(!1),charAt:w$(!0)},tge=T$.charAt,nge=function(e,t,n){return t+(n?tge(e,t).length:1)},rge=Math.floor,E$=Q(``.charAt),ige=Q(``.replace),D$=Q(``.slice),age=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,oge=/\$([$&'`]|\d{1,2})/g,sge=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=oge;return i!==void 0&&(i=jZ(i),c=age),ige(a,c,(function(a,c){var l;switch(E$(c,0)){case`$`:return`$`;case`&`:return e;case"`":return D$(t,0,n);case`'`:return D$(t,o);case`<`:l=i[D$(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=rge(u/10);return d===0?a:d<=s?r[d-1]===void 0?E$(c,1):r[d-1]+E$(c,1):a}l=r[u-1]}return l===void 0?``:l}))},cge=Z.TypeError,lge=function(e,t){var n=e.exec;if(dZ(n)){var r=$X(n,e,t);return r!==null&&WZ(r),r}if(oZ(e)===`RegExp`)return $X(_$,e,t);throw cge(`RegExp#exec called on incompatible receiver`)},O$=LZ(`replace`),uge=Math.max,dge=Math.min,fge=Q([].concat),k$=Q([].push),A$=Q(``.indexOf),j$=Q(``.slice),pge=`a`.replace(/./,`$0`)===`$0`,M$=!!/./[O$]&&/./[O$](`a`,`$0`)===``;function N$(e){return e===void 0&&(e=`r`),e+`-`+bh()}(function(e,t,n,r){var i=LZ(e),a=!XX((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!XX((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=Q(/./[i]),c=function(e,t,n){var r=M$?`$`:`$0`;return[function(e,n){var r=lZ(this),i=e==null?void 0:DZ(e,O$);return i?$X(i,e,r,n):$X(t,OQ(r),e,n)},function(e,i){var a=WZ(this),o=OQ(e);if(typeof i==`string`&&A$(i,r)===-1&&A$(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=dZ(i);c||(i=OQ(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=lge(a,o);if(f===null||(k$(d,f),!l))break;OQ(f[0])===``&&(a.lastIndex=nge(o,mQ(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=OQ((f=d[g])[0]),v=uge(dge(fQ(f.index),o.length),0),y=[],b=1;b<f.length;b++)k$(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=fge([_],y,v,o);x!==void 0&&k$(S,x);var C=OQ(x$(i,void 0,S))}else C=sge(_,o,v,y,x,i);v>=h&&(m+=j$(o,h,v)+C,h=v+_.length)}return m+j$(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=Q(e),c=t.exec;return c===_$||c===S$.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));dQ(String.prototype,e,c[0]),dQ(S$,i,c[1])}})(`replace`,0,!!XX((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!pge||M$);var P$=Z.Promise,F$=function(e,t,n){for(var r in t)dQ(e,r,t[r],n);return e},mge=Z.String,hge=Z.TypeError,I$=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=Q(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return WZ(n),function(e){if(typeof e==`object`||dZ(e))return e;throw hge(`Can't set `+mge(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),gge=KZ.f,L$=LZ(`toStringTag`),R$=function(e,t,n){e&&!MZ(e=n?e:e.prototype,L$)&&gge(e,L$,{configurable:!0,value:t})},z$=LZ(`species`),_ge=Z.TypeError,B$=function(e,t){if(mZ(t,e))return e;throw _ge(`Incorrect invocation`)},V$={},vge=LZ(`iterator`),yge=Array.prototype,bge=LZ(`iterator`),H$=function(e){if(e!=null)return DZ(e,bge)||DZ(e,`@@iterator`)||V$[DQ(e)]},xge=Z.TypeError,U$=function(e,t,n){var r,i;WZ(e);try{if(!(r=DZ(e,`return`))){if(t===`throw`)throw n;return n}r=$X(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return WZ(r),n},Sge=Z.TypeError,W$=function(e,t){this.stopped=e,this.result=t},G$=W$.prototype,K$=function(e,t,n){var r,i,a,o,s,c,l,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=qQ(t,d),g=function(e){return r&&U$(r,`normal`,e),new W$(!0,e)},_=function(e){return f?(WZ(e),m?h(e[0],e[1],g):h(e[0],e[1])):m?h(e,g):h(e)};if(p)r=e;else{if(!(i=H$(e)))throw Sge(wZ(e)+` is not iterable`);if((u=i)!==void 0&&(V$.Array===u||yge[vge]===u)){for(a=0,o=hQ(e);o>a;a++)if((s=_(e[a]))&&mZ(G$,s))return s;return new W$(!1)}r=function(e,t){var n=arguments.length<2?H$(e):t;if(EZ(n))return WZ($X(n,e));throw xge(wZ(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=$X(c,r)).done;){try{s=_(l.value)}catch(e){U$(r,`throw`,e)}if(typeof s==`object`&&s&&mZ(G$,s))return s}return new W$(!1)},q$=LZ(`iterator`),J$=!1;try{var Cge=0,Y$={next:function(){return{done:!!Cge++}},return:function(){J$=!0}};Y$[q$]=function(){return this},Array.from(Y$,(function(){throw 2}))}catch{}var X$,Z$,Q$,$$,e1=function(e,t){if(!t&&!J$)return!1;var n=!1;try{var r={};r[q$]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},wge=Z.TypeError,Tge=LZ(`species`),t1=Q([].slice),n1=/(?:ipad|iphone|ipod).*applewebkit/i.test(hZ),r1=oZ(Z.process)==`process`,i1=Z.setImmediate,a1=Z.clearImmediate,Ege=Z.process,o1=Z.Dispatch,Dge=Z.Function,s1=Z.MessageChannel,Oge=Z.String,c1=0,l1={};try{X$=Z.location}catch{}var u1=function(e){if(MZ(l1,e)){var t=l1[e];delete l1[e],t()}},d1=function(e){return function(){u1(e)}},f1=function(e){u1(e.data)},p1=function(e){Z.postMessage(Oge(e),X$.protocol+`//`+X$.host)};i1&&a1||(i1=function(e){var t=t1(arguments,1);return l1[++c1]=function(){x$(dZ(e)?e:Dge(e),void 0,t)},Z$(c1),c1},a1=function(e){delete l1[e]},r1?Z$=function(e){Ege.nextTick(d1(e))}:o1&&o1.now?Z$=function(e){o1.now(d1(e))}:s1&&!n1?($$=(Q$=new s1).port2,Q$.port1.onmessage=f1,Z$=qQ($$.postMessage,$$)):Z.addEventListener&&dZ(Z.postMessage)&&!Z.importScripts&&X$&&X$.protocol!==`file:`&&!XX(p1)?(Z$=p1,Z.addEventListener(`message`,f1,!1)):Z$=`onreadystatechange`in BZ(`script`)?function(e){IQ.appendChild(BZ(`script`)).onreadystatechange=function(){IQ.removeChild(this),u1(e)}}:function(e){setTimeout(d1(e),0)});var m1,h1,g1,_1,v1,y1,b1,x1,S1={set:i1,clear:a1},kge=/ipad|iphone|ipod/i.test(hZ)&&Z.Pebble!==void 0,Age=/web0s(?!.*chrome)/i.test(hZ),jge=UZ.f,C1=S1.set,w1=Z.MutationObserver||Z.WebKitMutationObserver,T1=Z.document,E1=Z.process,D1=Z.Promise,O1=jge(Z,`queueMicrotask`),k1=O1&&O1.value;k1||(m1=function(){var e,t;for(r1&&(e=E1.domain)&&e.exit();h1;){t=h1.fn,h1=h1.next;try{t()}catch(e){throw h1?_1():g1=void 0,e}}g1=void 0,e&&e.enter()},n1||r1||Age||!w1||!T1?!kge&&D1&&D1.resolve?((b1=D1.resolve(void 0)).constructor=D1,x1=qQ(b1.then,b1),_1=function(){x1(m1)}):r1?_1=function(){E1.nextTick(m1)}:(C1=qQ(C1,Z),_1=function(){C1(m1)}):(v1=!0,y1=T1.createTextNode(``),new w1(m1).observe(y1,{characterData:!0}),_1=function(){y1.data=v1=!v1}));var A1,j1,M1,N1,P1=k1||function(e){var t={fn:e,next:void 0};g1&&(g1.next=t),h1||(h1=t,_1()),g1=t},Mge=function(e){var t,n;this.promise=new e((function(e,r){if(t!==void 0||n!==void 0)throw TypeError(`Bad Promise constructor`);t=e,n=r})),this.resolve=EZ(t),this.reject=EZ(n)},F1={f:function(e){return new Mge(e)}},I1=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Nge=typeof window==`object`,L1=S1.set,Pge=LZ(`species`),R1=`Promise`,z1=sQ.getterFor(R1),Fge=sQ.set,Ige=sQ.getterFor(R1),B1=P$&&P$.prototype,V1=P$,H1=B1,U1=Z.TypeError,W1=Z.document,G1=Z.process,K1=F1.f,Lge=K1,Rge=!!(W1&&W1.createEvent&&Z.dispatchEvent),q1=dZ(Z.PromiseRejectionEvent),J1=!1,Y1=CQ(R1,(function(){var e=ZZ(V1),t=e!==String(V1);if(!t&&bZ===66)return!0;if(bZ>=51&&/native code/.test(e))return!1;var n=new V1((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Pge]=r,!(J1=n.then((function(){}))instanceof r)||!t&&Nge&&!q1})),zge=Y1||!e1((function(e){V1.all(e).catch((function(){}))})),X1=function(e){var t;return!(!fZ(e)||!dZ(t=e.then))&&t},Z1=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;P1((function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,c,l=n[a++],u=i?l.ok:l.fail,d=l.resolve,f=l.reject,p=l.domain;try{u?(i||(e.rejection===2&&Vge(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(U1(`Promise-chain cycle`)):(s=X1(o))?$X(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Bge(e)}))}},Q1=function(e,t,n){var r,i;Rge?((r=W1.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),Z.dispatchEvent(r)):r={promise:t,reason:n},!q1&&(i=Z[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=Z.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},Bge=function(e){$X(L1,Z,(function(){var t,n=e.facade,r=e.value;if($1(e)&&(t=I1((function(){r1?G1.emit(`unhandledRejection`,r,n):Q1(`unhandledrejection`,n,r)})),e.rejection=r1||$1(e)?2:1,t.error))throw t.value}))},$1=function(e){return e.rejection!==1&&!e.parent},Vge=function(e){$X(L1,Z,(function(){var t=e.facade;r1?G1.emit(`rejectionHandled`,t):Q1(`rejectionhandled`,t,e.value)}))},e0=function(e,t,n){return function(r){e(t,r,n)}},t0=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Z1(e,!0))},n0=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw U1(`Promise can't be resolved itself`);var r=X1(t);r?P1((function(){var n={done:!1};try{$X(r,t,e0(n0,n,e),e0(t0,n,e))}catch(t){t0(n,t,e)}})):(e.value=t,e.state=1,Z1(e,!1))}catch(t){t0({done:!1},t,e)}}};if(Y1&&(H1=(V1=function(e){B$(this,H1),EZ(e),$X(A1,this);var t=z1(this);try{e(e0(n0,t),e0(t0,t))}catch(e){t0(t,e)}}).prototype,(A1=function(e){Fge(this,{type:R1,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=F$(H1,{then:function(e,t){var n=Ige(this),r=n.reactions,i=K1(function(e,t){var n,r=WZ(e).constructor;return r===void 0||(n=WZ(r)[Tge])==null?t:function(e){if($Q(e))return e;throw wge(wZ(e)+` is not a constructor`)}(n)}(this,V1));return i.ok=!dZ(e)||e,i.fail=dZ(t)&&t,i.domain=r1?G1.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&Z1(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),j1=function(){var e=new A1,t=z1(e);this.promise=e,this.resolve=e0(n0,t),this.reject=e0(t0,t)},F1.f=K1=function(e){return e===V1||e===M1?new j1(e):Lge(e)},dZ(P$)&&B1!==Object.prototype)){N1=B1.then,J1||(dQ(B1,`then`,(function(e,t){var n=this;return new V1((function(e,t){$X(N1,n,e,t)})).then(e,t)}),{unsafe:!0}),dQ(B1,`catch`,H1.catch,{unsafe:!0}));try{delete B1.constructor}catch{}I$&&I$(B1,H1)}function r0(e,t,n){return n===void 0&&(n=``),HX(this,void 0,void 0,(function(){var r,i,a,o,s,c,l;return UX(this,(function(u){switch(u.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig(`insertVideo`),i=r.onInsertedVideo,a=r.checkVideo,o=r.parseVideoSrc,[4,a(t,n)]):[2];case 1:return typeof(s=u.sent())==`string`?(e.alert(s,`error`),[2]):s==null?[2]:[4,o(t)];case 2:return(c=u.sent()).trim().indexOf(`<iframe `)!==0&&(c=c.replace(/</g,`&lt;`).replace(/>/g,`&gt;`)),l={type:`video`,src:c,poster:n,children:[{text:``}]},Promise.resolve().then((function(){B.insertNodes(e,l)})),i(l),[2]}}))}))}function i0(){return N$(`w-e-insert-video`)}wQ({global:!0,wrap:!0,forced:Y1},{Promise:V1}),R$(V1,R1,!1),function(e){var t=pZ(`Promise`),n=KZ.f;ZX&&t&&!t[z$]&&n(t,z$,{configurable:!0,get:function(){return this}})}(),M1=pZ(R1),wQ({target:R1,stat:!0,forced:Y1},{reject:function(e){var t=K1(this);return $X(t.reject,void 0,e),t.promise}}),wQ({target:R1,stat:!0,forced:Y1},{resolve:function(e){return function(e,t){if(WZ(e),fZ(t)&&t.constructor===e)return t;var n=F1.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),wQ({target:R1,stat:!0,forced:zge},{all:function(e){var t=this,n=K1(t),r=n.resolve,i=n.reject,a=I1((function(){var n=EZ(t.resolve),a=[],o=0,s=1;K$(e,(function(e){var c=o++,l=!1;s++,$X(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=K1(t),r=n.reject,i=I1((function(){var i=EZ(t.resolve);K$(e,(function(e){$X(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Hge=function(){function e(){this.title=q(`videoModule.insertVideo`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>`,this.tag=`button`,this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=i0(),this.posterInputId=i0(),this.buttonId=i0()}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||!!K.getSelectedElems(e).some((function(t){var n=K.getNodeType(t);return n===`pre`||n===`list-item`||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,i=n.posterInputId,a=n.buttonId,o=WX(LO(q(`videoModule.videoSrc`),r,q(`videoModule.videoSrcPlaceHolder`)),2),s=o[0],c=o[1],l=WX(LO(q(`videoModule.videoPoster`),i,q(`videoModule.videoPosterPlaceHolder`)),2),u=l[0],d=l[1],f=V(c),p=V(d),m=WX(RO(a,q(`videoModule.ok`)),1)[0];if(this.$content==null){var h=V(`<div></div>`);h.on(`click`,`#`+a,(function(n){return HX(t,void 0,void 0,(function(){var t,a;return UX(this,(function(o){switch(o.label){case 0:return n.preventDefault(),t=h.find(`#`+r).val().trim(),a=h.find(`#`+i).val().trim(),[4,r0(e,t,a)];case 1:return o.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=h}var g=this.$content;return g.empty(),g.append(s),g.append(u),g.append(m),f.val(``),p.val(``),setTimeout((function(){f.focus()})),g[0]},e}(),Uge=Q([].join),Wge=cZ!=Object,Gge=function(e,t){var n=[].join;return!!n&&XX((function(){n.call(null,`,`,1)}))}();wQ({target:`Array`,proto:!0,forced:Wge||!Gge},{join:function(e){return Uge(uZ(this),e===void 0?`,`:e)}});var a0,o0,s0,Kge=!XX((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),c0=tQ(`IE_PROTO`),l0=Z.Object,qge=l0.prototype,u0=Kge?l0.getPrototypeOf:function(e){var t=jZ(e);if(MZ(t,c0))return t[c0];var n=t.constructor;return dZ(n)&&t instanceof n?n.prototype:t instanceof l0?qge:null},d0=LZ(`iterator`),f0=!1;[].keys&&(`next`in(s0=[].keys())?(o0=u0(u0(s0)))!==Object.prototype&&(a0=o0):f0=!0),(a0==null||XX((function(){var e={};return a0[d0].call(e)!==e})))&&(a0={}),dZ(a0[d0])||dQ(a0,d0,(function(){return this}));var p0={IteratorPrototype:a0,BUGGY_SAFARI_ITERATORS:f0},Jge=p0.IteratorPrototype,Yge=function(){return this},Xge=uQ.PROPER,Zge=uQ.CONFIGURABLE,m0=p0.IteratorPrototype,h0=p0.BUGGY_SAFARI_ITERATORS,g0=LZ(`iterator`),Qge=function(){return this},_0=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=HQ(Jge,{next:nZ(1,n)}),R$(e,i,!1),V$[i]=Yge})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!h0&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[g0]||p[`@@iterator`]||i&&p[i],h=!h0&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=u0(g.call(new e)))!==Object.prototype&&s.next&&(u0(s)!==m0&&(I$?I$(s,m0):dZ(s[g0])||dQ(s,g0,Qge)),R$(s,d,!0)),Xge&&i==`values`&&m&&m.name!==`values`&&(Zge?qZ(p,`name`,`values`):(f=!0,h=function(){return $X(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(h0||f||!(l in p))&&dQ(p,l,c[l]);else wQ({target:t,proto:!0,forced:h0||f},c);return p[g0]!==h&&dQ(p,g0,h,{name:i}),V$[t]=h,c},$ge=sQ.set,e_e=sQ.getterFor(`Array Iterator`),v0=_0(Array,`Array`,(function(e,t){$ge(this,{type:`Array Iterator`,target:uZ(e),index:0,kind:t})}),(function(){var e=e_e(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);V$.Arguments=V$.Array,GQ(`keys`),GQ(`values`),GQ(`entries`);var t_e=T$.charAt,n_e=sQ.set,r_e=sQ.getterFor(`String Iterator`);_0(String,`String`,(function(e){n_e(this,{type:`String Iterator`,string:OQ(e),index:0})}),(function(){var e,t=r_e(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=t_e(n,r),t.index+=e.length,{value:e,done:!1})}));var y0=function(e,t,n){var r=RZ(t);r in e?KZ.f(e,r,nZ(0,n)):e[r]=n},i_e=Z.Array,a_e=Math.max,b0=xQ.f,x0=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],o_e={f:function(e){return x0&&oZ(e)==`Window`?function(e){try{return b0(e)}catch{return function(e,t,n){for(var r=hQ(e),i=pQ(void 0,r),a=pQ(r,r),o=i_e(a_e(a-i,0)),s=0;i<a;i++,s++)y0(o,s,e[i]);return o.length=s,o}(x0)}}(e):b0(uZ(e))}},S0=XX((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),C0=Object.isExtensible,w0=XX((function(){C0(1)}))||S0?function(e){return!!fZ(e)&&(!S0||oZ(e)!=`ArrayBuffer`)&&(!C0||C0(e))}:C0,s_e=!XX((function(){return Object.isExtensible(Object.preventExtensions({}))})),T0=KX((function(e){var t=KZ.f,n=!1,r=NZ(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+ i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=xQ.f,t=Q([].splice),i={};i[r]=1,e(i).length&&(xQ.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},wQ({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:o_e.f}))},fastKey:function(e,t){if(!fZ(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!MZ(e,r)){if(!w0(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!MZ(e,r)){if(!w0(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return s_e&&n&&w0(e)&&!MZ(e,r)&&a(e),e}};nQ[r]=!0})),E0=T0.getWeakData,c_e=sQ.set,l_e=sQ.getterFor,u_e=r$.find,d_e=r$.findIndex,f_e=Q([].splice),p_e=0,D0=function(e){return e.frozen||=new O0},O0=function(){this.entries=[]},k0=function(e,t){return u_e(e.entries,(function(e){return e[0]===t}))};O0.prototype={get:function(e){var t=k0(this,e);if(t)return t[1]},has:function(e){return!!k0(this,e)},set:function(e,t){var n=k0(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=d_e(this.entries,(function(t){return t[0]===e}));return~t&&f_e(this.entries,t,1),!!~t}};var A0,j0={getConstructor:function(e,t,n,r){var i=e((function(e,i){B$(e,a),c_e(e,{type:t,id:p_e++,frozen:void 0}),i!=null&&K$(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=l_e(t),s=function(e,t,n){var r=o(e),i=E0(WZ(t),!0);return!0===i?D0(r).set(t,n):i[r.id]=n,e};return F$(a,{delete:function(e){var t=o(this);if(!fZ(e))return!1;var n=E0(e);return!0===n?D0(t).delete(e):n&&MZ(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!fZ(e))return!1;var n=E0(e);return!0===n?D0(t).has(e):n&&MZ(n,t.id)}}),F$(a,n?{get:function(e){var t=o(this);if(fZ(e)){var n=E0(e);return!0===n?D0(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},M0=sQ.enforce,m_e=!Z.ActiveXObject&&`ActiveXObject`in Z,N0=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},h_e=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=Z[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=Q(s[e]);dQ(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!fZ(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!fZ(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!fZ(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(CQ(e,!dZ(o)||!(i||s.forEach&&!XX((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),T0.enable();else if(CQ(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=XX((function(){d.has(1)})),m=e1((function(e){new o(e)})),h=!i&&XX((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){B$(e,s);var n=function(e,t,n){var r,i;return I$&&dZ(r=t.constructor)&&r!==n&&fZ(i=r.prototype)&&i!==n.prototype&&I$(e,i),e}(new o,e,c);return t!=null&&K$(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,wQ({global:!0,forced:c!=o},l),R$(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,N0,j0);if($Z&&m_e){A0=j0.getConstructor(N0,`WeakMap`,!0),T0.enable();var P0=h_e.prototype,F0=Q(P0.delete),I0=Q(P0.has),L0=Q(P0.get),R0=Q(P0.set);F$(P0,{delete:function(e){if(fZ(e)&&!w0(e)){var t=M0(this);return t.frozen||=new A0,F0(this,e)||t.frozen.delete(e)}return F0(this,e)},has:function(e){if(fZ(e)&&!w0(e)){var t=M0(this);return t.frozen||=new A0,I0(this,e)||t.frozen.has(e)}return I0(this,e)},get:function(e){if(fZ(e)&&!w0(e)){var t=M0(this);return t.frozen||=new A0,I0(this,e)?L0(this,e):t.frozen.get(e)}return L0(this,e)},set:function(e,t){if(fZ(e)&&!w0(e)){var n=M0(this);n.frozen||=new A0,I0(this,e)?R0(this,e,t):n.frozen.set(e,t)}else R0(this,e,t);return this}})}var z0={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},B0=BZ(`span`).classList,V0=B0&&B0.constructor&&B0.constructor.prototype,g_e=V0===Object.prototype?void 0:V0,H0=LZ(`iterator`),U0=LZ(`toStringTag`),W0=v0.values,G0=function(e,t){if(e){if(e[H0]!==W0)try{qZ(e,H0,W0)}catch{e[H0]=W0}if(e[U0]||qZ(e,U0,t),z0[t]){for(var n in v0)if(e[n]!==v0[n])try{qZ(e,n,v0[n])}catch{e[n]=v0[n]}}}};for(var K0 in z0)G0(Z[K0]&&Z[K0].prototype,K0);G0(g_e,`DOMTokenList`);var __e=uQ.EXISTS,v_e=KZ.f,q0=Function.prototype,y_e=Q(q0.toString),J0=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,b_e=Q(J0.exec);ZX&&!__e&&v_e(q0,`name`,{configurable:!0,get:function(){try{return b_e(J0,y_e(this))[1]}catch{return``}}});var x_e=LZ(`species`),S_e=bZ>=51||!XX((function(){var e=[];return(e.constructor={})[x_e]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),C_e=LZ(`species`),Y0=Z.Array,w_e=Math.max;function X0(e){return e.getMenuConfig(`uploadVideo`)}wQ({target:`Array`,proto:!0,forced:!S_e},{slice:function(e,t){var n,r,i,a=uZ(this),o=hQ(a),s=pQ(e,o),c=pQ(t===void 0?o:t,o);if(JQ(a)&&(n=a.constructor,($Q(n)&&(n===Y0||JQ(n.prototype))||fZ(n)&&(n=n[C_e])===null)&&(n=void 0),n===Y0||n===void 0))return t1(a,s,c);for(r=new(n===void 0?Y0:n)(w_e(c-s,0)),i=0;s<c;s++,i++)s in a&&y0(r,i,a[s]);return r.length=i,r}});var Z0=new WeakMap;function T_e(e,t){return HX(this,void 0,void 0,(function(){var n,r,i,a;return UX(this,(function(o){switch(o.label){case 0:return n=function(e){var t=Z0.get(e);if(t!=null)return t;var n=X0(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=KO(VX(VX({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(o)return o(n,(function(t,n){return r0(e,t,n)})),void r(t,n);var i=n.errno,s=i===void 0?1:i,c=n.data,l=c===void 0?{}:c;if(s===0){var u=l.url,d=u===void 0?``:u,f=l.poster;r0(e,d,f===void 0?``:f),r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),Z0.set(e,t),t}(e),r=t.name,i=t.type,a=t.size,n.addFile({name:r,type:i,size:a,data:t}),[4,n.upload()];case 1:return o.sent(),[2]}}))}))}var E_e=function(){function e(){this.title=q(`videoModule.uploadVideo`),this.iconSvg=`<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,i=r===void 0?[]:r,a=n.customBrowseAndUpload;if(a)a((function(t,n){return r0(e,t,n)}));else{var o=``;i.length>0&&(o=`accept="`+i.join(`, `)+`"`);var s=V(`body`),c=V(`<input type="file" `+o+` multiple/>`);c.hide(),s.append(c),c.click(),c.on(`change`,(function(){(function(e,t){var n,r;HX(this,void 0,void 0,(function(){var i,a,o,s,c,l;return UX(this,(function(u){switch(u.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),a=X0(e).customUpload,u.label=1;case 1:u.trys.push([1,9,10,15]),o=Eme(i),u.label=2;case 2:return[4,o.next()];case 3:return(s=u.sent()).done?[3,8]:(c=s.value,a?[4,a(c,(function(t,n){return r0(e,t,n)}))]:[3,5]);case 4:return u.sent(),[3,7];case 5:return[4,T_e(e,c)];case 6:u.sent(),u.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=u.sent(),n={error:l},[3,15];case 10:return u.trys.push([10,,13,14]),s&&!s.done&&(r=o.return)?[4,r.call(o)]:[3,12];case 11:u.sent(),u.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))})(e,c[0].files)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||!!K.getSelectedElems(e).some((function(t){var n=K.getNodeType(t);return n===`pre`||n===`list-item`||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig(`uploadVideo`)},e}(),D_e=uQ.PROPER,Q0=RegExp.prototype,$0=Q0.toString,O_e=Q(c$),k_e=XX((function(){return $0.call({source:`a`,flags:`b`})!=`/a/b`})),A_e=D_e&&$0.name!=`toString`;function e2(){return N$(`w-e-insert-video`)}(k_e||A_e)&&dQ(RegExp.prototype,`toString`,(function(){var e=WZ(this),t=OQ(e.source),n=e.flags;return`/`+t+`/`+OQ(n===void 0&&mZ(Q0,e)&&!(`flags`in Q0)?O_e(e):n)}),{unsafe:!0});var j_e=function(){function e(){this.title=q(`videoModule.editSize`),this.tag=`button`,this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=e2(),this.heightInputId=e2(),this.buttonId=e2()}return e.prototype.getSelectedVideoNode=function(e){return K.getSelectedNodeByType(e,`video`)},e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedVideoNode(e)==null},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,i=t.buttonId,a=WX(LO(q(`videoModule.width`),n,`auto`),2),o=a[0],s=V(a[1]),c=WX(LO(q(`videoModule.height`),r,`auto`),2),l=c[0],u=V(c[1]),d=WX(RO(i,q(`videoModule.ok`)),1)[0];if(this.$content==null){var f=V(`<div></div>`);f.on(`click`,`#`+i,(function(t){t.preventDefault();var i=f.find(`#`+n).val().trim(),a=f.find(`#`+r).val().trim(),o=parseInt(i),s=parseInt(a),c=o?o.toString():`auto`,l=s?s.toString():`auto`;e.restoreSelection(),B.setNodes(e,{width:c,height:l},{match:function(e){return K.checkNodeType(e,`video`)}}),e.hidePanelOrModal()})),this.$content=f}var p=this.$content;p.empty(),p.append(o),p.append(l),p.append(d);var m=this.getSelectedVideoNode(e);if(m==null)return p[0];var h=m.width,g=h===void 0?`auto`:h,_=m.height,v=_===void 0?`auto`:_;return s.val(g),u.val(v),setTimeout((function(){s.focus()})),p[0]},e}(),M_e={renderElems:[Dhe],elemsToHtml:[Ohe],preParseHtml:[Mhe],parseElemsHtml:[Bhe],menus:[{key:`insertVideo`,factory:function(){return new Hge},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:`uploadVideo`,factory:function(){return new E_e},config:{server:``,fieldName:`wangeditor-uploaded-video`,maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:[`video/*`],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error(`'`+e.name+`' upload failed`,t)},onError:function(e,t,n){console.error(`'`+e.name+` upload error`,t,n)}}},{key:`editVideoSize`,factory:function(){return new j_e}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return e.type===`video`||t(e)},r.normalizeNode=function(e){var t=WX(e,2),i=t[0],a=t[1];return K.getNodeType(i)===`video`&&K.isLastNode(r,i)&&B.insertNodes(r,K.genEmptyParagraph(),{at:[a[0]+1]}),n([i,a])},r}};Sk(`en`,{uploadImgModule:{uploadImage:`Upload Image`,uploadError:`{{fileName}} upload error`}}),Sk(`zh-CN`,{uploadImgModule:{uploadImage:`上传图片`,uploadError:`{{fileName}} 上传出错`}});var t2=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function n2(e){var t={exports:{}};return e(t,t.exports),t.exports}var r2,i2,a2=function(e){return e&&e.Math==Math&&e},$=a2(typeof globalThis==`object`&&globalThis)||a2(typeof window==`object`&&window)||a2(typeof self==`object`&&self)||a2(typeof t2==`object`&&t2)||function(){return this}()||Function(`return this`)(),o2=function(e){try{return!!e()}catch{return!0}},s2=!o2((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),c2=Function.prototype.call,l2=c2.bind?c2.bind(c2):function(){return c2.apply(c2,arguments)},u2={}.propertyIsEnumerable,d2=Object.getOwnPropertyDescriptor,N_e={f:d2&&!u2.call({1:2},1)?function(e){var t=d2(this,e);return!!t&&t.enumerable}:u2},f2=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},p2=Function.prototype,m2=p2.bind,h2=p2.call,P_e=m2&&m2.bind(h2),g2=m2?function(e){return e&&P_e(h2,e)}:function(e){return e&&function(){return h2.apply(e,arguments)}},F_e=g2({}.toString),I_e=g2(``.slice),_2=function(e){return I_e(F_e(e),8,-1)},v2=$.Object,L_e=g2(``.split),y2=o2((function(){return!v2(`z`).propertyIsEnumerable(0)}))?function(e){return _2(e)==`String`?L_e(e,``):v2(e)}:v2,R_e=$.TypeError,b2=function(e){if(e==null)throw R_e(`Can't call method on `+e);return e},x2=function(e){return y2(b2(e))},S2=function(e){return typeof e==`function`},C2=function(e){return typeof e==`object`?e!==null:S2(e)},z_e=function(e){return S2(e)?e:void 0},w2=function(e,t){return arguments.length<2?z_e($[e]):$[e]&&$[e][t]},T2=g2({}.isPrototypeOf),E2=w2(`navigator`,`userAgent`)||``,D2=$.process,O2=$.Deno,k2=D2&&D2.versions||O2&&O2.version,A2=k2&&k2.v8;A2&&(i2=(r2=A2.split(`.`))[0]>0&&r2[0]<4?1:+(r2[0]+r2[1])),!i2&&E2&&(!(r2=E2.match(/Edge\/(\d+)/))||r2[1]>=74)&&(r2=E2.match(/Chrome\/(\d+)/))&&(i2=+r2[1]);var j2=i2,M2=!!Object.getOwnPropertySymbols&&!o2((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&j2&&j2<41})),N2=M2&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,B_e=$.Object,P2=N2?function(e){return typeof e==`symbol`}:function(e){var t=w2(`Symbol`);return S2(t)&&T2(t.prototype,B_e(e))},V_e=$.String,F2=function(e){try{return V_e(e)}catch{return`Object`}},H_e=$.TypeError,I2=function(e){if(S2(e))return e;throw H_e(F2(e)+` is not a function`)},L2=function(e,t){var n=e[t];return n==null?void 0:I2(n)},U_e=$.TypeError,W_e=Object.defineProperty,R2=function(e,t){try{W_e($,e,{value:t,configurable:!0,writable:!0})}catch{$[e]=t}return t},z2=$[`__core-js_shared__`]||R2(`__core-js_shared__`,{}),B2=n2((function(e){(e.exports=function(e,t){return z2[e]||(z2[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),G_e=$.Object,V2=function(e){return G_e(b2(e))},K_e=g2({}.hasOwnProperty),H2=Object.hasOwn||function(e,t){return K_e(V2(e),t)},q_e=0,J_e=Math.random(),Y_e=g2(1 .toString),U2=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Y_e(++q_e+J_e,36)},W2=B2(`wks`),G2=$.Symbol,K2=G2&&G2.for,X_e=N2?G2:G2&&G2.withoutSetter||U2,q2=function(e){if(!H2(W2,e)||!M2&&typeof W2[e]!=`string`){var t=`Symbol.`+e;M2&&H2(G2,e)?W2[e]=G2[e]:W2[e]=N2&&K2?K2(t):X_e(t)}return W2[e]},Z_e=$.TypeError,Q_e=q2(`toPrimitive`),J2=function(e){var t=function(e,t){if(!C2(e)||P2(e))return e;var n,r=L2(e,Q_e);if(r){if(t===void 0&&(t=`default`),n=l2(r,e,t),!C2(n)||P2(n))return n;throw Z_e(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&S2(n=e.toString)&&!C2(r=l2(n,e))||S2(n=e.valueOf)&&!C2(r=l2(n,e))||t!==`string`&&S2(n=e.toString)&&!C2(r=l2(n,e)))return r;throw U_e(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return P2(t)?t:t+``},Y2=$.document,$_e=C2(Y2)&&C2(Y2.createElement),X2=function(e){return $_e?Y2.createElement(e):{}},Z2=!s2&&!o2((function(){return Object.defineProperty(X2(`div`),`a`,{get:function(){return 7}}).a!=7})),Q2=Object.getOwnPropertyDescriptor,$2={f:s2?Q2:function(e,t){if(e=x2(e),t=J2(t),Z2)try{return Q2(e,t)}catch{}if(H2(e,t))return f2(!l2(N_e.f,e,t),e[t])}},eve=$.String,tve=$.TypeError,e4=function(e){if(C2(e))return e;throw tve(eve(e)+` is not an object`)},nve=$.TypeError,t4=Object.defineProperty,n4={f:s2?t4:function(e,t,n){if(e4(e),t=J2(t),e4(n),Z2)try{return t4(e,t,n)}catch{}if(`get`in n||`set`in n)throw nve(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},r4=s2?function(e,t,n){return n4.f(e,t,f2(1,n))}:function(e,t,n){return e[t]=n,e},rve=g2(Function.toString);S2(z2.inspectSource)||(z2.inspectSource=function(e){return rve(e)});var i4,a4,o4,s4=z2.inspectSource,c4=$.WeakMap,l4=S2(c4)&&/native code/.test(s4(c4)),u4=B2(`keys`),d4=function(e){return u4[e]||(u4[e]=U2(e))},f4={},p4=$.TypeError,ive=$.WeakMap;if(l4||z2.state){var m4=z2.state||=new ive,ave=g2(m4.get),h4=g2(m4.has),ove=g2(m4.set);i4=function(e,t){if(h4(m4,e))throw new p4(`Object already initialized`);return t.facade=e,ove(m4,e,t),t},a4=function(e){return ave(m4,e)||{}},o4=function(e){return h4(m4,e)}}else{var g4=d4(`state`);f4[g4]=!0,i4=function(e,t){if(H2(e,g4))throw new p4(`Object already initialized`);return t.facade=e,r4(e,g4,t),t},a4=function(e){return H2(e,g4)?e[g4]:{}},o4=function(e){return H2(e,g4)}}var _4={set:i4,get:a4,has:o4,enforce:function(e){return o4(e)?a4(e):i4(e,{})},getterFor:function(e){return function(t){var n;if(!C2(t)||(n=a4(t)).type!==e)throw p4(`Incompatible receiver, `+e+` required`);return n}}},v4=Function.prototype,sve=s2&&Object.getOwnPropertyDescriptor,y4=H2(v4,`name`),b4={EXISTS:y4,PROPER:y4&&function(){}.name===`something`,CONFIGURABLE:y4&&(!s2||s2&&sve(v4,`name`).configurable)},x4=n2((function(e){var t=b4.CONFIGURABLE,n=_4.get,r=_4.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;S2(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!H2(a,`name`)||t&&a.name!==d)&&r4(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===$?l?e[n]=a:R2(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:r4(e,n,a))})(Function.prototype,`toString`,(function(){return S2(this)&&n(this).source||s4(this)}))})),cve=Math.ceil,lve=Math.floor,S4=function(e){var t=+e;return t!=t||t===0?0:(t>0?lve:cve)(t)},uve=Math.max,dve=Math.min,C4=function(e,t){var n=S4(e);return n<0?uve(n+t,0):dve(n,t)},fve=Math.min,w4=function(e){return e>0?fve(S4(e),9007199254740991):0},T4=function(e){return w4(e.length)},pve=function(e){return function(t,n,r){var i,a=x2(t),o=T4(a),s=C4(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}}(!1),E4=g2([].push),D4=function(e,t){var n,r=x2(e),i=0,a=[];for(n in r)!H2(f4,n)&&H2(r,n)&&E4(a,n);for(;t.length>i;)H2(r,n=t[i++])&&(~pve(a,n)||E4(a,n));return a},O4=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],mve=O4.concat(`length`,`prototype`),k4={f:Object.getOwnPropertyNames||function(e){return D4(e,mve)}},hve={f:Object.getOwnPropertySymbols},gve=g2([].concat),_ve=w2(`Reflect`,`ownKeys`)||function(e){var t=k4.f(e4(e)),n=hve.f;return n?gve(t,n(e)):t},vve=function(e,t){for(var n=_ve(t),r=n4.f,i=$2.f,a=0;a<n.length;a++){var o=n[a];H2(e,o)||r(e,o,i(t,o))}},yve=/#|\.prototype\./,A4=function(e,t){var n=xve[bve(e)];return n==Cve||n!=Sve&&(S2(t)?o2(t):!!t)},bve=A4.normalize=function(e){return String(e).replace(yve,`.`).toLowerCase()},xve=A4.data={},Sve=A4.NATIVE=`N`,Cve=A4.POLYFILL=`P`,j4=A4,wve=$2.f,M4=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?$:l?$[s]||R2(s,{}):($[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=wve(n,r))&&o.value:n[r],!j4(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;vve(a,i)}(e.sham||i&&i.sham)&&r4(a,`sham`,!0),x4(n,r,a,e)}},N4=Array.isArray||function(e){return _2(e)==`Array`},P4={};P4[q2(`toStringTag`)]=`z`;var F4=String(P4)===`[object z]`,Tve=q2(`toStringTag`),Eve=$.Object,Dve=_2(function(){return arguments}())==`Arguments`,I4=F4?_2:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=Eve(e),Tve))==`string`?n:Dve?_2(t):(r=_2(t))==`Object`&&S2(t.callee)?`Arguments`:r},L4=function(){},Ove=[],R4=w2(`Reflect`,`construct`),z4=/^\s*(?:class|function)\b/,kve=g2(z4.exec),Ave=!z4.exec(L4),B4=function(e){if(!S2(e))return!1;try{return R4(L4,Ove,e),!0}catch{return!1}},V4=!R4||o2((function(){var e;return B4(B4.call)||!B4(Object)||!B4((function(){e=!0}))||e}))?function(e){if(!S2(e))return!1;switch(I4(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Ave||!!kve(z4,s4(e))}:B4,H4=function(e,t,n){var r=J2(t);r in e?n4.f(e,r,f2(0,n)):e[r]=n},jve=q2(`species`),U4=g2([].slice),Mve=j2>=51||!o2((function(){var e=[];return(e.constructor={})[jve]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),Nve=q2(`species`),W4=$.Array,Pve=Math.max;M4({target:`Array`,proto:!0,forced:!Mve},{slice:function(e,t){var n,r,i,a=x2(this),o=T4(a),s=C4(e,o),c=C4(t===void 0?o:t,o);if(N4(a)&&(n=a.constructor,(V4(n)&&(n===W4||N4(n.prototype))||C2(n)&&(n=n[Nve])===null)&&(n=void 0),n===W4||n===void 0))return U4(a,s,c);for(r=new(n===void 0?W4:n)(Pve(c-s,0)),i=0;s<c;s++,i++)s in a&&H4(r,i,a[s]);return r.length=i,r}});var Fve=F4?{}.toString:function(){return`[object `+I4(this)+`]`};F4||x4(Object.prototype,`toString`,Fve,{unsafe:!0});var G4,Ive=$.String,K4=function(e){if(I4(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Ive(e)},q4=function(){var e=e4(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},J4=$.RegExp,Y4=o2((function(){var e=J4(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Lve=Y4||o2((function(){return!J4(`a`,`y`).sticky})),X4={BROKEN_CARET:Y4||o2((function(){var e=J4(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Lve,UNSUPPORTED_Y:Y4},Rve=Object.keys||function(e){return D4(e,O4)},zve=s2?Object.defineProperties:function(e,t){e4(e);for(var n,r=x2(t),i=Rve(t),a=i.length,o=0;a>o;)n4.f(e,n=i[o++],r[n]);return e},Z4=w2(`document`,`documentElement`),Q4=d4(`IE_PROTO`),$4=function(){},e3=function(e){return`<script>`+e+`<\/script>`},t3=function(e){e.write(e3(``)),e.close();var t=e.parentWindow.Object;return e=null,t},n3=function(){try{G4=new ActiveXObject(`htmlfile`)}catch{}var e,t;n3=typeof document<`u`?document.domain&&G4?t3(G4):((t=X2(`iframe`)).style.display=`none`,Z4.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(e3(`document.F=Object`)),e.close(),e.F):t3(G4);for(var n=O4.length;n--;)delete n3.prototype[O4[n]];return n3()};f4[Q4]=!0;var r3,i3,a3=Object.create||function(e,t){var n;return e===null?n=n3():($4.prototype=e4(e),n=new $4,$4.prototype=null,n[Q4]=e),t===void 0?n:zve(n,t)},Bve=$.RegExp,Vve=o2((function(){var e=Bve(`.`,`s`);return!(e.dotAll&&e.exec(`
76
+ `)&&e.flags===`s`)})),Hve=$.RegExp,Uve=o2((function(){var e=Hve(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Wve=_4.get,Gve=B2(`native-string-replace`,String.prototype.replace),o3=RegExp.prototype.exec,s3=o3,Kve=g2(``.charAt),qve=g2(``.indexOf),Jve=g2(``.replace),c3=g2(``.slice),l3=(i3=/b*/g,l2(o3,r3=/a/,`a`),l2(o3,i3,`a`),r3.lastIndex!==0||i3.lastIndex!==0),u3=X4.BROKEN_CARET,d3=/()??/.exec(``)[1]!==void 0;(l3||d3||u3||Vve||Uve)&&(s3=function(e){var t,n,r,i,a,o,s,c=this,l=Wve(c),u=K4(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=l2(s3,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=u3&&c.sticky,m=l2(q4,c),h=c.source,g=0,_=u;if(p&&(m=Jve(m,`y`,``),qve(m,`g`)===-1&&(m+=`g`),_=c3(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Kve(u,c.lastIndex-1)!==`
77
+ `)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),d3&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),l3&&(r=c.lastIndex),i=l2(o3,p?n:c,_),p?i?(i.input=c3(i.input,g),i[0]=c3(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:l3&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),d3&&i&&i.length>1&&l2(Gve,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=a3(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var f3=s3;M4({target:`RegExp`,proto:!0,forced:/./.exec!==f3},{exec:f3});var p3=Function.prototype,m3=p3.apply,Yve=p3.bind,h3=p3.call,g3=typeof Reflect==`object`&&Reflect.apply||(Yve?h3.bind(m3):function(){return h3.apply(m3,arguments)}),Xve=q2(`species`),_3=RegExp.prototype,Zve=q2(`match`),Qve=$.TypeError,$ve=q2(`species`),v3=function(e,t){var n,r=e4(e).constructor;return r===void 0||(n=e4(r)[$ve])==null?t:function(e){if(V4(e))return e;throw Qve(F2(e)+` is not a constructor`)}(n)},eye=g2(``.charAt),y3=g2(``.charCodeAt),tye=g2(``.slice),b3=function(e){return function(t,n){var r,i,a=K4(b2(t)),o=S4(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=y3(a,o))<55296||r>56319||o+1===s||(i=y3(a,o+1))<56320||i>57343?e?eye(a,o):r:e?tye(a,o,o+2):i-56320+(r-55296<<10)+65536}},x3={codeAt:b3(!1),charAt:b3(!0)},nye=x3.charAt,rye=function(e,t,n){return t+(n?nye(e,t).length:1)},iye=$.Array,aye=Math.max,S3=function(e,t,n){for(var r=T4(e),i=C4(t,r),a=C4(n===void 0?r:n,r),o=iye(aye(a-i,0)),s=0;i<a;i++,s++)H4(o,s,e[i]);return o.length=s,o},oye=$.TypeError,C3=function(e,t){var n=e.exec;if(S2(n)){var r=l2(n,e,t);return r!==null&&e4(r),r}if(_2(e)===`RegExp`)return l2(f3,e,t);throw oye(`RegExp#exec called on incompatible receiver`)},w3=X4.UNSUPPORTED_Y,sye=Math.min,T3=[].push,cye=g2(/./.exec),E3=g2(T3),D3=g2(``.slice);(function(e,t,n,r){var i=q2(e),a=!o2((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!o2((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Xve]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=g2(/./[i]),c=function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r,i,a=K4(b2(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!C2(r=e)||!((i=r[Zve])===void 0?_2(r)==`RegExp`:i))return l2(t,a,e,o);for(var s,c,l,u=[],d=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),f=0,p=new RegExp(e.source,d+`g`);(s=l2(f3,p,a))&&!((c=p.lastIndex)>f&&(E3(u,D3(a,f,s.index)),s.length>1&&s.index<a.length&&g3(T3,u,S3(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&cye(p,``)||E3(u,``):E3(u,D3(a,f)),u.length>o?S3(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:l2(t,this,e,n)}:t,[function(t,n){var i=b2(this),a=t==null?void 0:L2(t,e);return a?l2(a,t,i,n):l2(r,K4(i),t,n)},function(e,i){var a=e4(this),o=K4(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=v3(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(w3?`g`:`y`),d=new c(w3?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return C3(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=w3?0:m;var g,_=C3(d,w3?D3(o,m):o);if(_===null||(g=sye(w4(d.lastIndex+(w3?m:0)),o.length))===p)m=rye(o,m,l);else{if(E3(h,D3(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(E3(h,_[v]),h.length===f)return h;m=p=g}}return E3(h,D3(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=g2(e),c=t.exec;return c===f3||c===_3.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));x4(String.prototype,e,c[0]),x4(_3,i,c[1])}r&&r4(_3[i],`sham`,!0)})(`split`,0,!!o2((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),w3);var O3=function(){return O3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},O3.apply(this,arguments)};function k3(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function A3(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError(`Generator is already executing.`);for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||a[0]!==6&&a[0]!==2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function lye(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(e),t={},r(`next`),r(`throw`),r(`return`),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}var j3=q2(`unscopables`),M3=Array.prototype;M3[j3]??n4.f(M3,j3,{configurable:!0,value:a3(null)});var N3,P3,F3,I3=function(e){M3[j3][e]=!0},L3={},uye=!o2((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),R3=d4(`IE_PROTO`),z3=$.Object,dye=z3.prototype,B3=uye?z3.getPrototypeOf:function(e){var t=V2(e);if(H2(t,R3))return t[R3];var n=t.constructor;return S2(n)&&t instanceof n?n.prototype:t instanceof z3?dye:null},V3=q2(`iterator`),H3=!1;[].keys&&(`next`in(F3=[].keys())?(P3=B3(B3(F3)))!==Object.prototype&&(N3=P3):H3=!0),(N3==null||o2((function(){var e={};return N3[V3].call(e)!==e})))&&(N3={}),S2(N3[V3])||x4(N3,V3,(function(){return this}));var U3={IteratorPrototype:N3,BUGGY_SAFARI_ITERATORS:H3},fye=n4.f,W3=q2(`toStringTag`),G3=function(e,t,n){e&&!H2(e=n?e:e.prototype,W3)&&fye(e,W3,{configurable:!0,value:t})},pye=U3.IteratorPrototype,mye=function(){return this},hye=$.String,gye=$.TypeError,K3=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=g2(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return e4(n),function(e){if(typeof e==`object`||S2(e))return e;throw gye(`Can't set `+hye(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),_ye=b4.PROPER,vye=b4.CONFIGURABLE,q3=U3.IteratorPrototype,J3=U3.BUGGY_SAFARI_ITERATORS,Y3=q2(`iterator`),yye=function(){return this},X3=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=a3(pye,{next:f2(1,n)}),G3(e,i,!1),L3[i]=mye})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!J3&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[Y3]||p[`@@iterator`]||i&&p[i],h=!J3&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=B3(g.call(new e)))!==Object.prototype&&s.next&&(B3(s)!==q3&&(K3?K3(s,q3):S2(s[Y3])||x4(s,Y3,yye)),G3(s,d,!0)),_ye&&i==`values`&&m&&m.name!==`values`&&(vye?r4(p,`name`,`values`):(f=!0,h=function(){return l2(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(J3||f||!(l in p))&&x4(p,l,c[l]);else M4({target:t,proto:!0,forced:J3||f},c);return p[Y3]!==h&&x4(p,Y3,h,{name:i}),L3[t]=h,c},bye=_4.set,xye=_4.getterFor(`Array Iterator`),Z3=X3(Array,`Array`,(function(e,t){bye(this,{type:`Array Iterator`,target:x2(e),index:0,kind:t})}),(function(){var e=xye(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);L3.Arguments=L3.Array,I3(`keys`),I3(`values`),I3(`entries`);var Sye=x3.charAt,Cye=_4.set,wye=_4.getterFor(`String Iterator`);X3(String,`String`,(function(e){Cye(this,{type:`String Iterator`,string:K4(e),index:0})}),(function(){var e,t=wye(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Sye(n,r),t.index+=e.length,{value:e,done:!1})}));var Q3=function(e,t,n){for(var r in t)x4(e,r,t[r],n);return e},$3=k4.f,e6=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Tye={f:function(e){return e6&&_2(e)==`Window`?function(e){try{return $3(e)}catch{return S3(e6)}}(e):$3(x2(e))}},t6=o2((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),n6=Object.isExtensible,r6=o2((function(){n6(1)}))||t6?function(e){return!!C2(e)&&(!t6||_2(e)!=`ArrayBuffer`)&&(!n6||n6(e))}:n6,Eye=!o2((function(){return Object.isExtensible(Object.preventExtensions({}))})),i6=n2((function(e){var t=n4.f,n=!1,r=U2(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+ i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=k4.f,t=g2([].splice),i={};i[r]=1,e(i).length&&(k4.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},M4({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:Tye.f}))},fastKey:function(e,t){if(!C2(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!H2(e,r)){if(!r6(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!H2(e,r)){if(!r6(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return Eye&&n&&r6(e)&&!H2(e,r)&&a(e),e}};f4[r]=!0})),a6=g2(g2.bind),o6=function(e,t){return I2(e),t===void 0?e:a6?a6(e,t):function(){return e.apply(t,arguments)}},Dye=q2(`iterator`),Oye=Array.prototype,kye=q2(`iterator`),s6=function(e){if(e!=null)return L2(e,kye)||L2(e,`@@iterator`)||L3[I4(e)]},Aye=$.TypeError,c6=function(e,t,n){var r,i;e4(e);try{if(!(r=L2(e,`return`))){if(t===`throw`)throw n;return n}r=l2(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return e4(r),n},jye=$.TypeError,l6=function(e,t){this.stopped=e,this.result=t},u6=l6.prototype,d6=function(e,t,n){var r,i,a,o,s,c,l,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=o6(t,d),g=function(e){return r&&c6(r,`normal`,e),new l6(!0,e)},_=function(e){return f?(e4(e),m?h(e[0],e[1],g):h(e[0],e[1])):m?h(e,g):h(e)};if(p)r=e;else{if(!(i=s6(e)))throw jye(F2(e)+` is not iterable`);if((u=i)!==void 0&&(L3.Array===u||Oye[Dye]===u)){for(a=0,o=T4(e);o>a;a++)if((s=_(e[a]))&&T2(u6,s))return s;return new l6(!1)}r=function(e,t){var n=arguments.length<2?s6(e):t;if(I2(n))return e4(l2(n,e));throw Aye(F2(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=l2(c,r)).done;){try{s=_(l.value)}catch(e){c6(r,`throw`,e)}if(typeof s==`object`&&s&&T2(u6,s))return s}return new l6(!1)},Mye=$.TypeError,f6=function(e,t){if(T2(t,e))return e;throw Mye(`Incorrect invocation`)},p6=q2(`iterator`),m6=!1;try{var Nye=0,h6={next:function(){return{done:!!Nye++}},return:function(){m6=!0}};h6[p6]=function(){return this},Array.from(h6,(function(){throw 2}))}catch{}var g6=function(e,t){if(!t&&!m6)return!1;var n=!1;try{var r={};r[p6]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Pye=q2(`species`),_6=$.Array,Fye=function(e,t){return new(function(e){var t;return N4(e)&&(t=e.constructor,(V4(t)&&(t===_6||N4(t.prototype))||C2(t)&&(t=t[Pye])===null)&&(t=void 0)),t===void 0?_6:t}(e))(t===0?0:t)},v6=g2([].push),y6=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=V2(c),h=y2(m),g=o6(l,u),_=T4(h),v=0,y=d||Fye,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:v6(b,f)}else switch(e){case 4:return!1;case 7:v6(b,f)}return a?-1:r||i?i:b}},b6={forEach:y6(0),map:y6(1),filter:y6(2),some:y6(3),every:y6(4),find:y6(5),findIndex:y6(6),filterReject:y6(7)},x6=i6.getWeakData,Iye=_4.set,Lye=_4.getterFor,Rye=b6.find,zye=b6.findIndex,Bye=g2([].splice),Vye=0,S6=function(e){return e.frozen||=new C6},C6=function(){this.entries=[]},w6=function(e,t){return Rye(e.entries,(function(e){return e[0]===t}))};C6.prototype={get:function(e){var t=w6(this,e);if(t)return t[1]},has:function(e){return!!w6(this,e)},set:function(e,t){var n=w6(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=zye(this.entries,(function(t){return t[0]===e}));return~t&&Bye(this.entries,t,1),!!~t}};var T6,E6={getConstructor:function(e,t,n,r){var i=e((function(e,i){f6(e,a),Iye(e,{type:t,id:Vye++,frozen:void 0}),i!=null&&d6(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=Lye(t),s=function(e,t,n){var r=o(e),i=x6(e4(t),!0);return!0===i?S6(r).set(t,n):i[r.id]=n,e};return Q3(a,{delete:function(e){var t=o(this);if(!C2(e))return!1;var n=x6(e);return!0===n?S6(t).delete(e):n&&H2(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!C2(e))return!1;var n=x6(e);return!0===n?S6(t).has(e):n&&H2(n,t.id)}}),Q3(a,n?{get:function(e){var t=o(this);if(C2(e)){var n=x6(e);return!0===n?S6(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},D6=_4.enforce,Hye=!$.ActiveXObject&&`ActiveXObject`in $,O6=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Uye=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=$[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=g2(s[e]);x4(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!C2(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!C2(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!C2(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(j4(e,!S2(o)||!(i||s.forEach&&!o2((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),i6.enable();else if(j4(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=o2((function(){d.has(1)})),m=g6((function(e){new o(e)})),h=!i&&o2((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){f6(e,s);var n=function(e,t,n){var r,i;return K3&&S2(r=t.constructor)&&r!==n&&C2(i=r.prototype)&&i!==n.prototype&&K3(e,i),e}(new o,e,c);return t!=null&&d6(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,M4({global:!0,forced:c!=o},l),G3(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,O6,E6);if(l4&&Hye){T6=E6.getConstructor(O6,`WeakMap`,!0),i6.enable();var k6=Uye.prototype,A6=g2(k6.delete),j6=g2(k6.has),M6=g2(k6.get),N6=g2(k6.set);Q3(k6,{delete:function(e){if(C2(e)&&!r6(e)){var t=D6(this);return t.frozen||=new T6,A6(this,e)||t.frozen.delete(e)}return A6(this,e)},has:function(e){if(C2(e)&&!r6(e)){var t=D6(this);return t.frozen||=new T6,j6(this,e)||t.frozen.has(e)}return j6(this,e)},get:function(e){if(C2(e)&&!r6(e)){var t=D6(this);return t.frozen||=new T6,j6(this,e)?M6(this,e):t.frozen.get(e)}return M6(this,e)},set:function(e,t){if(C2(e)&&!r6(e)){var n=D6(this);n.frozen||=new T6,j6(this,e)?N6(this,e,t):n.frozen.set(e,t)}else N6(this,e,t);return this}})}var P6={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},F6=X2(`span`).classList,I6=F6&&F6.constructor&&F6.constructor.prototype,L6=I6===Object.prototype?void 0:I6,R6=q2(`iterator`),z6=q2(`toStringTag`),B6=Z3.values,V6=function(e,t){if(e){if(e[R6]!==B6)try{r4(e,R6,B6)}catch{e[R6]=B6}if(e[z6]||r4(e,z6,t),P6[t]){for(var n in Z3)if(e[n]!==Z3[n])try{r4(e,n,Z3[n])}catch{e[n]=Z3[n]}}}};for(var H6 in P6)V6($[H6]&&$[H6].prototype,H6);V6(L6,`DOMTokenList`);var U6=function(e,t){var n=[][e];return!!n&&o2((function(){n.call(null,t||function(){throw 1},1)}))},Wye=b6.forEach,W6=U6(`forEach`)?[].forEach:function(e){return Wye(this,e,arguments.length>1?arguments[1]:void 0)},G6=function(e){if(e&&e.forEach!==W6)try{r4(e,`forEach`,W6)}catch{e.forEach=W6}};for(var K6 in P6)P6[K6]&&G6($[K6]&&$[K6].prototype);G6(L6);var q6,J6,Y6,X6,Z6=$.Promise,Q6=q2(`species`),$6=/(?:ipad|iphone|ipod).*applewebkit/i.test(E2),e8=_2($.process)==`process`,t8=$.setImmediate,n8=$.clearImmediate,Gye=$.process,r8=$.Dispatch,Kye=$.Function,i8=$.MessageChannel,qye=$.String,a8=0,o8={};try{q6=$.location}catch{}var s8=function(e){if(H2(o8,e)){var t=o8[e];delete o8[e],t()}},c8=function(e){return function(){s8(e)}},l8=function(e){s8(e.data)},u8=function(e){$.postMessage(qye(e),q6.protocol+`//`+q6.host)};t8&&n8||(t8=function(e){var t=U4(arguments,1);return o8[++a8]=function(){g3(S2(e)?e:Kye(e),void 0,t)},J6(a8),a8},n8=function(e){delete o8[e]},e8?J6=function(e){Gye.nextTick(c8(e))}:r8&&r8.now?J6=function(e){r8.now(c8(e))}:i8&&!$6?(X6=(Y6=new i8).port2,Y6.port1.onmessage=l8,J6=o6(X6.postMessage,X6)):$.addEventListener&&S2($.postMessage)&&!$.importScripts&&q6&&q6.protocol!==`file:`&&!o2(u8)?(J6=u8,$.addEventListener(`message`,l8,!1)):J6=`onreadystatechange`in X2(`script`)?function(e){Z4.appendChild(X2(`script`)).onreadystatechange=function(){Z4.removeChild(this),s8(e)}}:function(e){setTimeout(c8(e),0)});var d8,f8,p8,m8,h8,g8,_8,v8,y8={set:t8,clear:n8},Jye=/ipad|iphone|ipod/i.test(E2)&&$.Pebble!==void 0,Yye=/web0s(?!.*chrome)/i.test(E2),Xye=$2.f,b8=y8.set,x8=$.MutationObserver||$.WebKitMutationObserver,S8=$.document,C8=$.process,w8=$.Promise,T8=Xye($,`queueMicrotask`),E8=T8&&T8.value;E8||(d8=function(){var e,t;for(e8&&(e=C8.domain)&&e.exit();f8;){t=f8.fn,f8=f8.next;try{t()}catch(e){throw f8?m8():p8=void 0,e}}p8=void 0,e&&e.enter()},$6||e8||Yye||!x8||!S8?!Jye&&w8&&w8.resolve?((_8=w8.resolve(void 0)).constructor=w8,v8=o6(_8.then,_8),m8=function(){v8(d8)}):e8?m8=function(){C8.nextTick(d8)}:(b8=o6(b8,$),m8=function(){b8(d8)}):(h8=!0,g8=S8.createTextNode(``),new x8(d8).observe(g8,{characterData:!0}),m8=function(){g8.data=h8=!h8}));var D8,O8,k8,A8,j8=E8||function(e){var t={fn:e,next:void 0};p8&&(p8.next=t),f8||(f8=t,m8()),p8=t},Zye=function(e){var t,n;this.promise=new e((function(e,r){if(t!==void 0||n!==void 0)throw TypeError(`Bad Promise constructor`);t=e,n=r})),this.resolve=I2(t),this.reject=I2(n)},M8={f:function(e){return new Zye(e)}},N8=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Qye=typeof window==`object`,P8=y8.set,$ye=q2(`species`),F8=`Promise`,I8=_4.getterFor(F8),ebe=_4.set,tbe=_4.getterFor(F8),L8=Z6&&Z6.prototype,R8=Z6,z8=L8,B8=$.TypeError,V8=$.document,H8=$.process,U8=M8.f,nbe=U8,rbe=!!(V8&&V8.createEvent&&$.dispatchEvent),W8=S2($.PromiseRejectionEvent),G8=!1,K8=j4(F8,(function(){var e=s4(R8),t=e!==String(R8);if(!t&&j2===66)return!0;if(j2>=51&&/native code/.test(e))return!1;var n=new R8((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[$ye]=r,!(G8=n.then((function(){}))instanceof r)||!t&&Qye&&!W8})),ibe=K8||!g6((function(e){R8.all(e).catch((function(){}))})),q8=function(e){var t;return!(!C2(e)||!S2(t=e.then))&&t},J8=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;j8((function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,c,l=n[a++],u=i?l.ok:l.fail,d=l.resolve,f=l.reject,p=l.domain;try{u?(i||(e.rejection===2&&obe(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(B8(`Promise-chain cycle`)):(s=q8(o))?l2(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&abe(e)}))}},Y8=function(e,t,n){var r,i;rbe?((r=V8.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),$.dispatchEvent(r)):r={promise:t,reason:n},!W8&&(i=$[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=$.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},abe=function(e){l2(P8,$,(function(){var t,n=e.facade,r=e.value;if(X8(e)&&(t=N8((function(){e8?H8.emit(`unhandledRejection`,r,n):Y8(`unhandledrejection`,n,r)})),e.rejection=e8||X8(e)?2:1,t.error))throw t.value}))},X8=function(e){return e.rejection!==1&&!e.parent},obe=function(e){l2(P8,$,(function(){var t=e.facade;e8?H8.emit(`rejectionHandled`,t):Y8(`rejectionhandled`,t,e.value)}))},Z8=function(e,t,n){return function(r){e(t,r,n)}},Q8=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,J8(e,!0))},$8=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw B8(`Promise can't be resolved itself`);var r=q8(t);r?j8((function(){var n={done:!1};try{l2(r,t,Z8($8,n,e),Z8(Q8,n,e))}catch(t){Q8(n,t,e)}})):(e.value=t,e.state=1,J8(e,!1))}catch(t){Q8({done:!1},t,e)}}};if(K8&&(z8=(R8=function(e){f6(this,z8),I2(e),l2(D8,this);var t=I8(this);try{e(Z8($8,t),Z8(Q8,t))}catch(e){Q8(t,e)}}).prototype,(D8=function(e){ebe(this,{type:F8,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Q3(z8,{then:function(e,t){var n=tbe(this),r=n.reactions,i=U8(v3(this,R8));return i.ok=!S2(e)||e,i.fail=S2(t)&&t,i.domain=e8?H8.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&J8(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),O8=function(){var e=new D8,t=I8(e);this.promise=e,this.resolve=Z8($8,t),this.reject=Z8(Q8,t)},M8.f=U8=function(e){return e===R8||e===k8?new O8(e):nbe(e)},S2(Z6)&&L8!==Object.prototype)){A8=L8.then,G8||(x4(L8,`then`,(function(e,t){var n=this;return new R8((function(e,t){l2(A8,n,e,t)})).then(e,t)}),{unsafe:!0}),x4(L8,`catch`,z8.catch,{unsafe:!0}));try{delete L8.constructor}catch{}K3&&K3(L8,z8)}M4({global:!0,wrap:!0,forced:K8},{Promise:R8}),G3(R8,F8,!1),function(e){var t=w2(`Promise`),n=n4.f;s2&&t&&!t[Q6]&&n(t,Q6,{configurable:!0,get:function(){return this}})}(),k8=w2(F8),M4({target:F8,stat:!0,forced:K8},{reject:function(e){var t=U8(this);return l2(t.reject,void 0,e),t.promise}}),M4({target:F8,stat:!0,forced:K8},{resolve:function(e){return function(e,t){if(e4(e),C2(t)&&t.constructor===e)return t;var n=M8.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),M4({target:F8,stat:!0,forced:ibe},{all:function(e){var t=this,n=U8(t),r=n.resolve,i=n.reject,a=N8((function(){var n=I2(t.resolve),a=[],o=0,s=1;d6(e,(function(e){var c=o++,l=!1;s++,l2(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=U8(t),r=n.reject,i=N8((function(){var i=I2(t.resolve);d6(e,(function(e){l2(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var sbe=b4.PROPER,e5=RegExp.prototype,t5=e5.toString,cbe=g2(q4),lbe=o2((function(){return t5.call({source:`a`,flags:`b`})!=`/a/b`})),ube=sbe&&t5.name!=`toString`;(lbe||ube)&&x4(RegExp.prototype,`toString`,(function(){var e=e4(this),t=K4(e.source),n=e.flags;return`/`+t+`/`+K4(n===void 0&&T2(e5,e)&&!(`flags`in e5)?cbe(e):n)}),{unsafe:!0});var dbe=b4.EXISTS,fbe=n4.f,n5=Function.prototype,pbe=g2(n5.toString),r5=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,mbe=g2(r5.exec);s2&&!dbe&&fbe(n5,`name`,{configurable:!0,get:function(){try{return mbe(r5,pbe(this))[1]}catch{return``}}});var i5=new WeakMap;function a5(e){return e.getMenuConfig(`uploadImage`)}function hbe(e,t){return k3(this,void 0,void 0,(function(){return A3(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var i=r.result;if(i){var a=i.toString(),o=a.indexOf(`data:image`)===0?``:a;xF(e,a,t.name,o),n(`ok`)}}}))]}))}))}function gbe(e,t){return k3(this,void 0,void 0,(function(){var n,r,i,a;return A3(this,(function(o){switch(o.label){case 0:return n=function(e){var t=i5.get(e);if(t!=null)return t;var n=a5(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=KO(O3(O3({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(o)return o(n,(function(t,n,r){return xF(e,t,n,r)})),void r(t,n);var i=n.errno,s=i===void 0?1:i,c=n.data,l=c===void 0?{}:c;if(s===0){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=n===void 0?``:n,i=t.alt,a=i===void 0?``:i,o=t.href;xF(e,r,a,o===void 0?``:o)}));else{var u=l.url,d=u===void 0?``:u,f=l.alt,p=f===void 0?``:f,m=l.href;xF(e,d,p,m===void 0?``:m)}r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),i5.set(e,t),t}(e),r=t.name,i=t.type,a=t.size,n.addFile({name:r,type:i,size:a,data:t}),[4,n.upload()];case 1:return o.sent(),[2]}}))}))}function o5(e,t){var n,r;return k3(this,void 0,void 0,(function(){var i,a,o,s,c,l,u,d,f;return A3(this,(function(p){switch(p.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),a=a5(e),o=a.customUpload,s=a.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),c=lye(i),p.label=2;case 2:return[4,c.next()];case 3:return(l=p.sent()).done?[3,10]:(u=l.value,d=u.size,s&&d<=s?[4,hbe(e,u)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return o?[4,o(u,(function(t,n,r){return xF(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,gbe(e,u)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return f=p.sent(),n={error:f},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=c.return)?[4,r.call(c)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var _be=g2([].join),vbe=y2!=Object,ybe=U6(`join`,`,`);M4({target:`Array`,proto:!0,forced:vbe||!ybe},{join:function(e){return _be(x2(this),e===void 0?`,`:e)}}),Hm&&(V.fn.append=Hm),km&&(V.fn.on=km),Jm&&(V.fn.remove=Jm),Om&&(V.fn.val=Om),Qm&&(V.fn.click=Qm),Pm&&(V.fn.hide=Pm);var bbe=function(){function e(){this.title=q(`uploadImgModule.uploadImage`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return SF(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig(`uploadImage`)},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,i=r===void 0?[]:r,a=n.customBrowseAndUpload;if(a)a((function(t,n,r){return xF(e,t,n,r)}));else{var o=``;i.length>0&&(o=`accept="`+i.join(`, `)+`"`);var s=V(`body`),c=V(`<input type="file" `+o+` multiple/>`);c.hide(),s.append(c),c.click(),c.on(`change`,(function(){var t=c[0].files;o5(e,t)}))}},e}(),xbe={menus:[{key:`uploadImage`,factory:function(){return new bbe},config:{server:``,fieldName:`wangeditor-uploaded-image`,maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:[`image/*`],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error(`'`+e.name+`' upload failed`,t)},onError:function(e,t,n){console.error(`'`+e.name+`' upload error`,n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(SF(n))t(r);else if(r.getData(`text/plain`))t(r);else{var i=r.files;i.length<=0?t(r):Array.prototype.slice.call(i).some((function(e){return function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}(e.type.split(`/`),1)[0]===`image`}))?o5(e,i):t(r)}},n}};Sk(`en`,{highLightModule:{selectLang:`Language`}}),Sk(`zh-CN`,{highLightModule:{selectLang:`选择语言`}});var s5=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function c5(e){var t={exports:{}};return e(t,t.exports),t.exports}var l5,u5,d5=function(e){return e&&e.Math==Math&&e},f5=d5(typeof globalThis==`object`&&globalThis)||d5(typeof window==`object`&&window)||d5(typeof self==`object`&&self)||d5(typeof s5==`object`&&s5)||function(){return this}()||Function(`return this`)(),Sbe=Object.defineProperty,p5=function(e,t){try{Sbe(f5,e,{value:t,configurable:!0,writable:!0})}catch{f5[e]=t}return t},m5=f5[`__core-js_shared__`]||p5(`__core-js_shared__`,{}),h5=c5((function(e){(e.exports=function(e,t){return m5[e]||(m5[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),g5=Function.prototype,_5=g5.bind,v5=g5.call,Cbe=_5&&_5.bind(v5),y5=_5?function(e){return e&&Cbe(v5,e)}:function(e){return e&&function(){return v5.apply(e,arguments)}},wbe=f5.TypeError,b5=function(e){if(e==null)throw wbe(`Can't call method on `+e);return e},Tbe=f5.Object,x5=function(e){return Tbe(b5(e))},Ebe=y5({}.hasOwnProperty),S5=Object.hasOwn||function(e,t){return Ebe(x5(e),t)},Dbe=0,Obe=Math.random(),kbe=y5(1 .toString),C5=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+kbe(++Dbe+Obe,36)},w5=function(e){return typeof e==`function`},Abe=function(e){return w5(e)?e:void 0},T5=function(e,t){return arguments.length<2?Abe(f5[e]):f5[e]&&f5[e][t]},E5=T5(`navigator`,`userAgent`)||``,D5=f5.process,O5=f5.Deno,k5=D5&&D5.versions||O5&&O5.version,A5=k5&&k5.v8;A5&&(u5=(l5=A5.split(`.`))[0]>0&&l5[0]<4?1:+(l5[0]+l5[1])),!u5&&E5&&(!(l5=E5.match(/Edge\/(\d+)/))||l5[1]>=74)&&(l5=E5.match(/Chrome\/(\d+)/))&&(u5=+l5[1]);var j5=u5,M5=function(e){try{return!!e()}catch{return!0}},N5=!!Object.getOwnPropertySymbols&&!M5((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&j5&&j5<41})),P5=N5&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,F5=h5(`wks`),I5=f5.Symbol,L5=I5&&I5.for,jbe=P5?I5:I5&&I5.withoutSetter||C5,R5=function(e){if(!S5(F5,e)||!N5&&typeof F5[e]!=`string`){var t=`Symbol.`+e;N5&&S5(I5,e)?F5[e]=I5[e]:F5[e]=P5&&L5?L5(t):jbe(t)}return F5[e]},z5={};z5[R5(`toStringTag`)]=`z`;var B5=String(z5)===`[object z]`,V5=!M5((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),H5=function(e){return typeof e==`object`?e!==null:w5(e)},U5=f5.document,Mbe=H5(U5)&&H5(U5.createElement),W5=function(e){return Mbe?U5.createElement(e):{}},G5=!V5&&!M5((function(){return Object.defineProperty(W5(`div`),`a`,{get:function(){return 7}}).a!=7})),Nbe=f5.String,Pbe=f5.TypeError,K5=function(e){if(H5(e))return e;throw Pbe(Nbe(e)+` is not an object`)},q5=Function.prototype.call,J5=q5.bind?q5.bind(q5):function(){return q5.apply(q5,arguments)},Y5=y5({}.isPrototypeOf),Fbe=f5.Object,X5=P5?function(e){return typeof e==`symbol`}:function(e){var t=T5(`Symbol`);return w5(t)&&Y5(t.prototype,Fbe(e))},Ibe=f5.String,Z5=function(e){try{return Ibe(e)}catch{return`Object`}},Lbe=f5.TypeError,Q5=function(e){if(w5(e))return e;throw Lbe(Z5(e)+` is not a function`)},$5=function(e,t){var n=e[t];return n==null?void 0:Q5(n)},Rbe=f5.TypeError,zbe=f5.TypeError,Bbe=R5(`toPrimitive`),e7=function(e){var t=function(e,t){if(!H5(e)||X5(e))return e;var n,r=$5(e,Bbe);if(r){if(t===void 0&&(t=`default`),n=J5(r,e,t),!H5(n)||X5(n))return n;throw zbe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&w5(n=e.toString)&&!H5(r=J5(n,e))||w5(n=e.valueOf)&&!H5(r=J5(n,e))||t!==`string`&&w5(n=e.toString)&&!H5(r=J5(n,e)))return r;throw Rbe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return X5(t)?t:t+``},Vbe=f5.TypeError,t7=Object.defineProperty,n7={f:V5?t7:function(e,t,n){if(K5(e),t=e7(t),K5(n),G5)try{return t7(e,t,n)}catch{}if(`get`in n||`set`in n)throw Vbe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},r7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},i7=V5?function(e,t,n){return n7.f(e,t,r7(1,n))}:function(e,t,n){return e[t]=n,e},Hbe=y5(Function.toString);w5(m5.inspectSource)||(m5.inspectSource=function(e){return Hbe(e)});var a7,o7,s7,c7=m5.inspectSource,l7=f5.WeakMap,Ube=w5(l7)&&/native code/.test(c7(l7)),u7=h5(`keys`),d7=function(e){return u7[e]||(u7[e]=C5(e))},f7={},p7=f5.TypeError,Wbe=f5.WeakMap;if(Ube||m5.state){var m7=m5.state||=new Wbe,Gbe=y5(m7.get),h7=y5(m7.has),Kbe=y5(m7.set);a7=function(e,t){if(h7(m7,e))throw new p7(`Object already initialized`);return t.facade=e,Kbe(m7,e,t),t},o7=function(e){return Gbe(m7,e)||{}},s7=function(e){return h7(m7,e)}}else{var g7=d7(`state`);f7[g7]=!0,a7=function(e,t){if(S5(e,g7))throw new p7(`Object already initialized`);return t.facade=e,i7(e,g7,t),t},o7=function(e){return S5(e,g7)?e[g7]:{}},s7=function(e){return S5(e,g7)}}var _7={set:a7,get:o7,has:s7,enforce:function(e){return s7(e)?o7(e):a7(e,{})},getterFor:function(e){return function(t){var n;if(!H5(t)||(n=o7(t)).type!==e)throw p7(`Incompatible receiver, `+e+` required`);return n}}},v7=Function.prototype,qbe=V5&&Object.getOwnPropertyDescriptor,y7=S5(v7,`name`),b7={EXISTS:y7,PROPER:y7&&function(){}.name===`something`,CONFIGURABLE:y7&&(!V5||V5&&qbe(v7,`name`).configurable)},x7=c5((function(e){var t=b7.CONFIGURABLE,n=_7.get,r=_7.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;w5(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!S5(a,`name`)||t&&a.name!==d)&&i7(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===f5?l?e[n]=a:p5(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:i7(e,n,a))})(Function.prototype,`toString`,(function(){return w5(this)&&n(this).source||c7(this)}))})),Jbe=y5({}.toString),Ybe=y5(``.slice),S7=function(e){return Ybe(Jbe(e),8,-1)},Xbe=R5(`toStringTag`),Zbe=f5.Object,Qbe=S7(function(){return arguments}())==`Arguments`,C7=B5?S7:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=Zbe(e),Xbe))==`string`?n:Qbe?S7(t):(r=S7(t))==`Object`&&w5(t.callee)?`Arguments`:r},$be=B5?{}.toString:function(){return`[object `+C7(this)+`]`};B5||x7(Object.prototype,`toString`,$be,{unsafe:!0});var w7,T7={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},E7=W5(`span`).classList,D7=E7&&E7.constructor&&E7.constructor.prototype,exe=D7===Object.prototype?void 0:D7,O7=y5(y5.bind),k7=f5.Object,txe=y5(``.split),A7=M5((function(){return!k7(`z`).propertyIsEnumerable(0)}))?function(e){return S7(e)==`String`?txe(e,``):k7(e)}:k7,nxe=Math.ceil,rxe=Math.floor,j7=function(e){var t=+e;return t!=t||t===0?0:(t>0?rxe:nxe)(t)},ixe=Math.min,M7=function(e){return e>0?ixe(j7(e),9007199254740991):0},N7=function(e){return M7(e.length)},P7=Array.isArray||function(e){return S7(e)==`Array`},F7=function(){},axe=[],I7=T5(`Reflect`,`construct`),L7=/^\s*(?:class|function)\b/,oxe=y5(L7.exec),sxe=!L7.exec(F7),R7=function(e){if(!w5(e))return!1;try{return I7(F7,axe,e),!0}catch{return!1}},z7=!I7||M5((function(){var e;return R7(R7.call)||!R7(Object)||!R7((function(){e=!0}))||e}))?function(e){if(!w5(e))return!1;switch(C7(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return sxe||!!oxe(L7,c7(e))}:R7,cxe=R5(`species`),B7=f5.Array,lxe=function(e,t){return new(function(e){var t;return P7(e)&&(t=e.constructor,(z7(t)&&(t===B7||P7(t.prototype))||H5(t)&&(t=t[cxe])===null)&&(t=void 0)),t===void 0?B7:t}(e))(t===0?0:t)},V7=y5([].push),H7=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=x5(c),h=A7(m),g=function(e,t){return Q5(e),t===void 0?e:O7?O7(e,t):function(){return e.apply(t,arguments)}}(l,u),_=N7(h),v=0,y=d||lxe,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:V7(b,f)}else switch(e){case 4:return!1;case 7:V7(b,f)}return a?-1:r||i?i:b}},uxe=[H7(0),H7(1),H7(2),H7(3),H7(4),H7(5),H7(6),H7(7)][0],U7=(w7=[].forEach)&&M5((function(){w7.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return uxe(this,e,arguments.length>1?arguments[1]:void 0)},W7=function(e){if(e&&e.forEach!==U7)try{i7(e,`forEach`,U7)}catch{e.forEach=U7}};for(var G7 in T7)T7[G7]&&W7(f5[G7]&&f5[G7].prototype);W7(exe);var K7={}.propertyIsEnumerable,q7=Object.getOwnPropertyDescriptor,J7={f:q7&&!K7.call({1:2},1)?function(e){var t=q7(this,e);return!!t&&t.enumerable}:K7},Y7=function(e){return A7(b5(e))},X7=Object.getOwnPropertyDescriptor,Z7={f:V5?X7:function(e,t){if(e=Y7(e),t=e7(t),G5)try{return X7(e,t)}catch{}if(S5(e,t))return r7(!J5(J7.f,e,t),e[t])}},dxe=Math.max,fxe=Math.min,Q7=function(e,t){var n=j7(e);return n<0?dxe(n+t,0):fxe(n,t)},pxe=function(e){return function(t,n,r){var i,a=Y7(t),o=N7(a),s=Q7(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}}(!1),$7=y5([].push),e9=function(e,t){var n,r=Y7(e),i=0,a=[];for(n in r)!S5(f7,n)&&S5(r,n)&&$7(a,n);for(;t.length>i;)S5(r,n=t[i++])&&(~pxe(a,n)||$7(a,n));return a},t9=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],mxe=t9.concat(`length`,`prototype`),hxe={f:Object.getOwnPropertyNames||function(e){return e9(e,mxe)}},n9={f:Object.getOwnPropertySymbols},gxe=y5([].concat),_xe=T5(`Reflect`,`ownKeys`)||function(e){var t=hxe.f(K5(e)),n=n9.f;return n?gxe(t,n(e)):t},vxe=function(e,t){for(var n=_xe(t),r=n7.f,i=Z7.f,a=0;a<n.length;a++){var o=n[a];S5(e,o)||r(e,o,i(t,o))}},yxe=/#|\.prototype\./,r9=function(e,t){var n=xxe[bxe(e)];return n==Cxe||n!=Sxe&&(w5(t)?M5(t):!!t)},bxe=r9.normalize=function(e){return String(e).replace(yxe,`.`).toLowerCase()},xxe=r9.data={},Sxe=r9.NATIVE=`N`,Cxe=r9.POLYFILL=`P`,wxe=r9,Txe=Z7.f,i9=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?f5:l?f5[s]||p5(s,{}):(f5[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Txe(n,r))&&o.value:n[r],!wxe(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;vxe(a,i)}(e.sham||i&&i.sham)&&i7(a,`sham`,!0),x7(n,r,a,e)}},a9=Object.keys||function(e){return e9(e,t9)},o9=Object.assign,s9=Object.defineProperty,Exe=y5([].concat),c9=!o9||M5((function(){if(V5&&o9({b:1},o9(s9({},`a`,{enumerable:!0,get:function(){s9(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r=`abcdefghijklmnopqrst`;return e[n]=7,r.split(``).forEach((function(e){t[e]=e})),o9({},e)[n]!=7||a9(o9({},t)).join(``)!=r}))?function(e,t){for(var n=x5(e),r=arguments.length,i=1,a=n9.f,o=J7.f;r>i;)for(var s,c=A7(arguments[i++]),l=a?Exe(a9(c),a(c)):a9(c),u=l.length,d=0;u>d;)s=l[d++],V5&&!J5(o,c,s)||(n[s]=c[s]);return n}:o9;i9({target:`Object`,stat:!0,forced:Object.assign!==c9},{assign:c9});var l9=c5((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/\u00a0/g,` `)},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,`__id`,{value:++n}),e.__id},clone:function e(t,n){var r,a;switch(n||={},i.util.type(t)){case`Object`:if(a=i.util.objId(t),n[a])return n[a];for(var o in r={},n[a]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case`Array`:return a=i.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,`none`])[1].toLowerCase():`none`},currentScript:function(){if(typeof document>`u`)return null;if(`currentScript`in document)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var a=(r||=i.languages)[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,(function(t,n){n===l&&t!=e&&(this[t]=o)})),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l!==`Object`||a[o(c)]?l!==`Array`||a[o(c)]||(a[o(c)]=!0,e(c,n,s,a)):(a[o(c)]=!0,e(c,n,null,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a,o=0;a=r.elements[o++];)i.highlightElement(a,!0===t,r.callback)},highlightElement:function(n,r,a){var o=i.util.getLanguage(n),s=i.languages[o];n.className=n.className.replace(t,``).replace(/\s+/g,` `)+` language-`+o;var c=n.parentElement;c&&c.nodeName.toLowerCase()===`pre`&&(c.className=c.className.replace(t,``).replace(/\s+/g,` `)+` language-`+o);var l={element:n,language:o,grammar:s,code:n.textContent};function u(e){l.highlightedCode=e,i.hooks.run(`before-insert`,l),l.element.innerHTML=l.highlightedCode,i.hooks.run(`after-highlight`,l),i.hooks.run(`complete`,l),a&&a.call(l.element)}if(i.hooks.run(`before-sanity-check`,l),(c=l.element.parentElement)&&c.nodeName.toLowerCase()===`pre`&&!c.hasAttribute(`tabindex`)&&c.setAttribute(`tabindex`,`0`),!l.code)return i.hooks.run(`complete`,l),void(a&&a.call(l.element));if(i.hooks.run(`before-highlight`,l),l.grammar)if(r&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){u(e.data)},d.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else u(i.highlight(l.code,l.grammar,l.language));else u(i.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return i.hooks.run(`before-tokenize`,r),r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,a=0;r=n[a++];)r(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||``).length}function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+`,`+m)return;var h=p[m],g=h.inside,_=!!h.lookbehind,v=!!h.greedy,y=h.alias;if(v&&!h.pattern.global){var b=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,b+`g`)}for(var x=h.pattern||h,S=r.next,C=c;S!==t.tail&&!(d&&C>=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof a)){var T,E=1;if(v){if(!(T=o(x,C,e,_)))break;var D=T.index,O=T.index+T[0].length,ee=C;for(ee+=S.value.length;D>=ee;)ee+=(S=S.next).value.length;if(C=ee-=S.value.length,S.value instanceof a)continue;for(var te=S;te!==t.tail&&(ee<O||typeof te.value==`string`);te=te.next)E++,ee+=te.value.length;E--,w=e.slice(C,ee),T.index-=C}else if(!(T=o(x,0,w,_)))continue;D=T.index;var ne=T[0],k=w.slice(0,D),re=w.slice(D+ne.length),ie=C+w.length;d&&ie>d.reach&&(d.reach=ie);var ae=S.prev;if(k&&(ae=l(t,ae,k),C+=k.length),u(t,ae,E),S=l(t,ae,new a(f,g?i.tokenize(ne,g):ne,y,ne)),re&&l(t,S,re),E>1){var oe={cause:f+`,`+m,reach:ie};s(e,t,n,S.prev,C,oe),d&&oe.reach>d.reach&&(d.reach=oe.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach((function(t){r+=e(t,n)})),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`&quot;`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+`</`+a.tag+`>`},!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener(`message`,(function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,o=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),o&&e.close()}),!1)),i;var d=i.util.currentScript();function f(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute(`data-manual`)&&(i.manual=!0)),!i.manual){var p=document.readyState;p===`loading`||p===`interactive`&&d&&d.defer?document.addEventListener(`DOMContentLoaded`,f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return i}(typeof window<`u`?window:typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope?self:{});e.exports&&=t,s5!==void 0&&(s5.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside[`attr-value`].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside[`internal-subset`].inside=t.languages.markup,t.hooks.add(`wrap`,(function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&amp;/,`&`))})),Object.defineProperty(t.languages.markup.tag,`addInlined`,{value:function(e,n){var r={};r[`language-`+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i[`language-`+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var a={};a[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,(function(){return e})),`i`),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(t.languages.markup.tag,`addAttribute`,{value:function(e,n){t.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,`language-`+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend(`markup`,{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend(`clike`,{"class-name":[t.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript[`class-name`][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined(`script`,`javascript`),t.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),t.languages.js=t.languages.javascript,function(){if(t!==void 0&&typeof document<`u`){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:`javascript`,py:`python`,rb:`ruby`,ps1:`powershell`,psm1:`powershell`,sh:`bash`,bat:`batch`,h:`c`,tex:`latex`},n=`data-src-status`,r=`pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])`,i=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add(`before-highlightall`,(function(e){e.selector+=`, `+r})),t.hooks.add(`before-sanity-check`,(function(i){var a=i.element;if(a.matches(r)){i.code=``,a.setAttribute(n,`loading`);var s=a.appendChild(document.createElement(`CODE`));s.textContent=`Loading…`;var c=a.getAttribute(`data-src`),l=i.language;if(l===`none`){var u=(/\.(\w+)$/.exec(c)||[,`none`])[1];l=e[u]||u}o(s,l),o(a,l);var d=t.plugins.autoloader;d&&d.loadLanguages(l);var f=new XMLHttpRequest;f.open(`GET`,c,!0),f.onreadystatechange=function(){f.readyState==4&&(f.status<400&&f.responseText?(a.setAttribute(n,`loaded`),s.textContent=f.responseText,t.highlightElement(s)):(a.setAttribute(n,`failed`),f.status>=400?s.textContent=`✖ Error `+f.status+` while fetching file: `+f.statusText:s.textContent=`✖ Error: File does not exist or is empty`))},f.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,i=(e||document).querySelectorAll(r),a=0;n=i[a++];)t.highlightElement(n)}};var a=!1;t.fileHighlight=function(){a||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function o(e,t){var n=e.className;n=n.replace(i,` `)+` language-`+t,e.className=n.replace(/\s+/g,` `).trim()}}()}));(function(e){var t=e.util.clone(e.languages.javascript),n=`(?:\\s|\\/\\/.*(?!.)|\\/\\*(?:[^*]|\\*(?!\\/))\\*\\/)`,r=`(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})`,i=`(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})`;function a(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return i})),RegExp(e,t)}i=a(i).source,e.languages.jsx=e.languages.extend(`markup`,t),e.languages.jsx.tag.pattern=a(`<\\/?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:"(?:\\\\[\\s\\S]|[^\\\\"])*"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\\/?)?>`),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside[`attr-value`].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside[`class-name`]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore(`inside`,`attr-name`,{spread:{pattern:a(`<SPREAD>`),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore(`inside`,`special-attr`,{script:{pattern:a(`=<BRACES>`),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:`punctuation`},rest:e.languages.jsx},alias:`language-javascript`}},e.languages.jsx.tag);var o=function(e){return e?typeof e==`string`?e:typeof e.content==`string`?e.content:e.content.map(o).join(``):``},s=function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r],a=!1;if(typeof i!=`string`&&(i.type===`tag`&&i.content[0]&&i.content[0].type===`tag`?i.content[0].content[0].content===`</`?n.length>0&&n[n.length-1].tagName===o(i.content[0].content[1])&&n.pop():i.content[i.content.length-1].content===`/>`||n.push({tagName:o(i.content[0].content[1]),openedBraces:0}):n.length>0&&i.type===`punctuation`&&i.content===`{`?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&i.type===`punctuation`&&i.content===`}`?n[n.length-1].openedBraces--:a=!0),(a||typeof i==`string`)&&n.length>0&&n[n.length-1].openedBraces===0){var c=o(i);r<t.length-1&&(typeof t[r+1]==`string`||t[r+1].type===`plain-text`)&&(c+=o(t[r+1]),t.splice(r+1,1)),r>0&&(typeof t[r-1]==`string`||t[r-1].type===`plain-text`)&&(c=o(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token(`plain-text`,c,null,c)}i.content&&typeof i.content!=`string`&&s(i.content)}};e.hooks.add(`after-tokenize`,(function(e){e.language!==`jsx`&&e.language!==`tsx`||s(e.tokens)}))})(Prism),function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside[`attr-value`].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside[`internal-subset`].inside=Prism.languages.markup,Prism.hooks.add(`wrap`,(function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&amp;/,`&`))})),Object.defineProperty(Prism.languages.markup.tag,`addInlined`,{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,(function(){return e})),`i`),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore(`markup`,`cdata`,i)}}),Object.defineProperty(Prism.languages.markup.tag,`addAttribute`,{value:function(e,t){Prism.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(`markup`,{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend(`clike`,{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go[`class-name`],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:`boolean`},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:`important`},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:`class-name`},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:`function`},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:`type-casting`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:`type-declaration`,greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:`type-declaration`,greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:`class-name-fully-qualified`,greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:`type-declaration`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-declaration`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:[`class-name-fully-qualified`,`static-context`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-hint`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:[`class-name-fully-qualified`,`return-type`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:`nowdoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:`backtick-quoted-string`,greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:`single-quoted-string`,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:`double-quoted-string`,greedy:!0,inside:{interpolation:o}}];e.languages.insertBefore(`php`,`variable`,{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:`class-name`,greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:[`class-name`,`class-name-fully-qualified`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:`punctuation`}}}}),e.hooks.add(`before-tokenize`,(function(t){/<\?/.test(t.code)&&e.languages[`markup-templating`].buildPlaceholders(t,`php`,/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add(`after-tokenize`,(function(t){e.languages[`markup-templating`].tokenizePlaceholders(t,`php`)}))}(Prism),Prism.languages.c=Prism.languages.extend(`clike`,{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore(`c`,`string`,{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:`property`,inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:`function`}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:`keyword`},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:`punctuation`},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:`string`},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:[`annotation`,`punctuation`],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python[`string-interpolation`].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=`(^|[^\\w.])(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*`,r={pattern:RegExp(n+`[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend(`clike`,{"class-name":[r,{pattern:RegExp(n+`[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()])`),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore(`java`,`string`,{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:`string`}}),e.languages.insertBefore(`java`,`class-name`,{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:`punctuation`},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(`(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=`\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b`.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend(`c`,{"class-name":[{pattern:RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+`.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore(`cpp`,`string`,{module:{pattern:RegExp(`(\\b(?:module|import)\\s+)(?:"(?:\\\\(?:\\r\\n|[\\s\\S])|[^"\\\\\\r\\n])*"|<[^<>\\r\\n]*>|`+`<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>`.replace(/<mod-name>/g,(function(){return n}))+`)`),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:`string`,greedy:!0}}),e.languages.insertBefore(`cpp`,`keyword`,{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:e.languages.cpp}}}}),e.languages.insertBefore(`cpp`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}}),e.languages.insertBefore(`cpp`,`class-name`,{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend(`cpp`,{})}}),e.languages.insertBefore(`inside`,`double-colon`,{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp[`base-clause`])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return`(?:`+t[+n]+`)`}))}function n(e,n,r){return RegExp(t(e,n),r||``)}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return`(?:`+e+`)`}));return e.replace(/<<self>>/g,`[^\\s\\S]`)}var i=`bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void`,a=`class enum interface record struct`,o=`add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)`,s=`abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield`;function c(e){return`\\b(?:`+e.trim().replace(/ /g,`|`)+`)\\b`}var l=c(a),u=RegExp(c(i+` `+a+` `+o+` `+s)),d=c(a+` `+o+` `+s),f=c(i+` `+a+` `+s),p=r(`<(?:[^<>;=+\\-*/%&|^]|<<self>>)*>`,2),m=r(`\\((?:[^()]|<<self>>)*\\)`,2),h=`@?\\b[A-Za-z_]\\w*\\b`,g=t(`<<0>>(?:\\s*<<1>>)?`,[h,p]),_=t(`(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*`,[d,g]),v=`\\[\\s*(?:,\\s*)*\\]`,y=t(`<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?`,[_,v]),b=t(`(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?`,[t(`\\(<<0>>+(?:,<<0>>+)+\\)`,[t(`[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>`,[p,m,v])]),_,v]),x={keyword:u,punctuation:/[<>()?,.:[\]]/},S=`'(?:[^\\r\\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'`,C=`"(?:\\\\.|[^\\\\"\\r\\n])*"`,w=`@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")`;e.languages.csharp=e.languages.extend(`clike`,{string:[{pattern:n(`(^|[^$\\\\])<<0>>`,[w]),lookbehind:!0,greedy:!0},{pattern:n(`(^|[^@$\\\\])<<0>>`,[C]),lookbehind:!0,greedy:!0},{pattern:RegExp(S),greedy:!0,alias:`character`}],"class-name":[{pattern:n(`(\\busing\\s+static\\s+)<<0>>(?=\\s*;)`,[_]),lookbehind:!0,inside:x},{pattern:n(`(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)`,[h,b]),lookbehind:!0,inside:x},{pattern:n(`(\\busing\\s+)<<0>>(?=\\s*=)`,[h]),lookbehind:!0},{pattern:n(`(\\b<<0>>\\s+)<<1>>`,[l,g]),lookbehind:!0,inside:x},{pattern:n(`(\\bcatch\\s*\\(\\s*)<<0>>`,[_]),lookbehind:!0,inside:x},{pattern:n(`(\\bwhere\\s+)<<0>>`,[h]),lookbehind:!0},{pattern:n(`(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>`,[y]),lookbehind:!0,inside:x},{pattern:n(`\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))`,[b,f,h]),inside:x}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore(`csharp`,`number`,{range:{pattern:/\.\./,alias:`operator`}}),e.languages.insertBefore(`csharp`,`punctuation`,{"named-parameter":{pattern:n(`([(,]\\s*)<<0>>(?=\\s*:)`,[h]),lookbehind:!0,alias:`punctuation`}}),e.languages.insertBefore(`csharp`,`class-name`,{namespace:{pattern:n(`(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])`,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(`(\\b(?:default|typeof|sizeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))`,[m]),lookbehind:!0,alias:`class-name`,inside:x},"return-type":{pattern:n(`<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))`,[b,_]),inside:x,alias:`class-name`},"constructor-invocation":{pattern:n(`(\\bnew\\s+)<<0>>(?=\\s*[[({])`,[b]),lookbehind:!0,inside:x,alias:`class-name`},"generic-method":{pattern:n(`<<0>>\\s*<<1>>(?=\\s*\\()`,[h,p]),inside:{function:n(`^<<0>>`,[h]),generic:{pattern:RegExp(p),alias:`class-name`,inside:x}}},"type-list":{pattern:n(`\\b((?:<<0>>\\s+<<1>>|record\\s+<<1>>\\s*<<5>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>|<<1>>\\s*<<5>>|<<6>>)(?:\\s*,\\s*(?:<<3>>|<<4>>|<<6>>))*(?=\\s*(?:where|[{;]|=>|$))`,[l,g,h,b,u.source,m,`\\bnew\\s*\\(\\s*\\)`]),lookbehind:!0,inside:{"record-arguments":{pattern:n(`(^(?!new\\s*\\()<<0>>\\s*)<<1>>`,[g,m]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(b),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:`property`,inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:`keyword`}}}});var T=C+`|`+S,E=t(`\\/(?![*/])|\\/\\/[^\\r\\n]*[\\r\\n]|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>`,[T]),D=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[E]),2),O=`\\b(?:assembly|event|field|method|module|param|property|return|type)\\b`,ee=t(`<<0>>(?:\\s*\\(<<1>>*\\))?`,[_,D]);e.languages.insertBefore(`csharp`,`class-name`,{attribute:{pattern:n(`((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])`,[O,ee]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(`^<<0>>(?=\\s*:)`,[O]),alias:`keyword`},"attribute-arguments":{pattern:n(`\\(<<0>>*\\)`,[D]),inside:e.languages.csharp},"class-name":{pattern:RegExp(_),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var te=`:[^}\\r\\n]+`,ne=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[E]),2),k=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[ne,te]),re=r(t(`[^"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)`,[T]),2),ie=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[re,te]);function ae(t,r){return{interpolation:{pattern:n(`((?:^|[^{])(?:\\{\\{)*)<<0>>`,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(`(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)`,[r,te]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:`language-csharp`,inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore(`csharp`,`string`,{"interpolation-string":[{pattern:n(`(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{"])*"`,[k]),lookbehind:!0,greedy:!0,inside:ae(k,ne)},{pattern:n(`(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"`,[ie]),lookbehind:!0,greedy:!0,inside:ae(ie,re)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages[`visual-basic`]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:`comment`,greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:`builtin`},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages[`visual-basic`],Prism.languages.vba=Prism.languages[`visual-basic`],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend(`clike`,{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:`tag`},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore(`ruby`,`keyword`,{regex:[{pattern:RegExp(`%r(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)`,`\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[\\s\\S])*\\}`,`\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\]`,`<(?:[^<>\\\\]|\\\\[\\s\\S])*>`].join(`|`)+`)[egimnosux]{0,6}`),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore(`ruby`,`number`,{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(`%[qQiIwWxs]?(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)`,`\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[\\s\\S])*\\}`,`\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\]`,`<(?:[^<>\\\\]|\\\\[\\s\\S])*>`].join(`|`)+`)`),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:`symbol`,inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:`symbol`,inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(`(^|[^"#])(?:"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^(])|[^\\\\\\r\\n"])*"|"""(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\"]|"(?!""))*""")(?!["#])`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:`punctuation`},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(`(^|[^"#])(#+)(?:"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^#])|[^\\\\\\r\\n])*?"|"""(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?""")\\2`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:`punctuation`},string:/[\s\S]+/}}],directive:{pattern:RegExp(`#(?:(?:elseif|if)\\b(?:[ ]*(?:![ \\t]*)?(?:\\b\\w+\\b(?:[ \\t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \\t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)`),alias:`property`,inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:`constant`},"other-directive":{pattern:/#\w+\b/,alias:`property`},attribute:{pattern:/@\w+/,alias:`atrule`},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:`function`},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:`important`},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:`constant`},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:`keyword`},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift[`string-literal`].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t=`\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b`,n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:`punctuation`,inside:null},r={bash:n,environment:{pattern:RegExp(`\\$`+t),alias:`constant`},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp(`(\\{)`+t),lookbehind:!0,alias:`constant`}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:`important`},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:`function`},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:`function`}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:`variable`,lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp(`(^|[\\s;|&]|[<>]\\()`+t),lookbehind:!0,alias:`constant`}},alias:`variable`,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp(`\\$?`+t),alias:`constant`},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:`class-name`},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:`important`},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:`important`}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=[`comment`,`function-name`,`for-or-select`,`assign-left`,`string`,`environment`,`function`,`keyword`,`builtin`,`boolean`,`file-descriptor`,`operator`,`punctuation`,`number`],a=r.variable[1].inside,o=0;o<i.length;o++)a[i[o]]=e.languages.bash[i[o]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var r="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",i=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,(function(){return r})),a=`\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)`;e.languages.markdown=e.languages.extend(`markup`,{}),e.languages.insertBefore(`markdown`,`prolog`,{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:[`yaml`,`language-yaml`],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:`punctuation`},table:{pattern:RegExp(`^`+i+a+`(?:`+i+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+i+a+`)(?:`+i+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+i+`)`+a+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+i+`$`),inside:{"table-header":{pattern:RegExp(r),alias:`important`,inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:`keyword`},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:`important`,inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:`important`,inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:`punctuation`},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:`punctuation`},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:`url`},bold:{pattern:n(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(`(~~?)(?:(?!~)<inner>)+\\2`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:[`code`,`keyword`]},url:{pattern:n(`!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])`),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),[`url`,`bold`,`italic`,`strike`].forEach((function(t){[`url`,`bold`,`italic`,`strike`,`code-snippet`].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add(`after-tokenize`,(function(e){e.language!==`markdown`&&e.language!==`md`||function e(t){if(t&&typeof t!=`string`)for(var n=0,r=t.length;n<r;n++){var i=t[n];if(i.type===`code`){var a=i.content[1],o=i.content[3];if(a&&o&&a.type===`code-language`&&o.type===`code-block`&&typeof a.content==`string`){var s=a.content.replace(/\b#/g,`sharp`).replace(/\b\+\+/g,`pp`),c=`language-`+(s=(/[a-z][\w-]*/i.exec(s)||[``])[0].toLowerCase());o.alias?typeof o.alias==`string`?o.alias=[o.alias,c]:o.alias.push(c):o.alias=[c]}}else e(i.content)}}(e.tokens)})),e.hooks.add(`wrap`,(function(t){if(t.type===`code-block`){for(var n=``,r=0,i=t.classes.length;r<i;r++){var a=t.classes[r],l=/language-(.+)/.exec(a);if(l){n=l[1];break}}var u=e.languages[n];if(u)t.content=e.highlight(function(e){return e.replace(o,``).replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return(t=t.toLowerCase())[0]===`#`?(n=t[1]===`x`?parseInt(t.slice(2),16):Number(t.slice(1)),c(n)):s[t]||e}))}(t.content),u,n);else if(n&&n!==`none`&&e.plugins.autoloader){var d=`md-`+new Date().valueOf()+`-`+Math.floor(0x2386f26fc10000*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var o=RegExp(e.languages.markup.tag.pattern.source,`gi`),s={amp:`&`,lt:`<`,gt:`>`,quot:`"`},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend(`clike`,{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore(`groovy`,`string`,{shebang:{pattern:/#!.+/,alias:`comment`}}),Prism.languages.insertBefore(`groovy`,`punctuation`,{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore(`groovy`,`function`,{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:`punctuation`}}),Prism.hooks.add(`wrap`,(function(e){if(e.language===`groovy`&&e.type===`string`){var t=e.content[0];if(t!=`'`){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t===`$`&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,`<`).replace(/&amp;/g,`&`),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t===`/`?`regex`:`gstring`)}}}));var Dxe=`comment.prolog.doctype.cdata.punctuation.namespace.property.tag.boolean.number.constant.symbol.deleted.selector.attr-name.string.builtin.inserted.operator.entity.url.string.atrule.attr-value.keyword.function.class-name.regex.important.variable.bold.italic.entity.char`.split(`.`);function u9(e){return typeof e==`string`?e.length:typeof e.content==`string`?e.content.length:e.content.reduce((function(e,t){return e+u9(t)}),0)}var d9,Oxe=f5.String,f9=function(e){if(C7(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Oxe(e)},p9=function(){var e=K5(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},m9=f5.RegExp,h9=M5((function(){var e=m9(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),kxe=h9||M5((function(){return!m9(`a`,`y`).sticky})),g9={BROKEN_CARET:h9||M5((function(){var e=m9(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:kxe,UNSUPPORTED_Y:h9},Axe=V5?Object.defineProperties:function(e,t){K5(e);for(var n,r=Y7(t),i=a9(t),a=i.length,o=0;a>o;)n7.f(e,n=i[o++],r[n]);return e},jxe=T5(`document`,`documentElement`),_9=d7(`IE_PROTO`),v9=function(){},y9=function(e){return`<script>`+e+`<\/script>`},b9=function(e){e.write(y9(``)),e.close();var t=e.parentWindow.Object;return e=null,t},x9=function(){try{d9=new ActiveXObject(`htmlfile`)}catch{}var e,t;x9=typeof document<`u`?document.domain&&d9?b9(d9):((t=W5(`iframe`)).style.display=`none`,jxe.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(y9(`document.F=Object`)),e.close(),e.F):b9(d9);for(var n=t9.length;n--;)delete x9.prototype[t9[n]];return x9()};f7[_9]=!0;var S9,C9,Mxe=Object.create||function(e,t){var n;return e===null?n=x9():(v9.prototype=K5(e),n=new v9,v9.prototype=null,n[_9]=e),t===void 0?n:Axe(n,t)},Nxe=f5.RegExp,Pxe=M5((function(){var e=Nxe(`.`,`s`);return!(e.dotAll&&e.exec(`
78
+ `)&&e.flags===`s`)})),Fxe=f5.RegExp,Ixe=M5((function(){var e=Fxe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Lxe=_7.get,Rxe=h5(`native-string-replace`,String.prototype.replace),w9=RegExp.prototype.exec,T9=w9,zxe=y5(``.charAt),Bxe=y5(``.indexOf),Vxe=y5(``.replace),E9=y5(``.slice),D9=(C9=/b*/g,J5(w9,S9=/a/,`a`),J5(w9,C9,`a`),S9.lastIndex!==0||C9.lastIndex!==0),O9=g9.BROKEN_CARET,k9=/()??/.exec(``)[1]!==void 0;(D9||k9||O9||Pxe||Ixe)&&(T9=function(e){var t,n,r,i,a,o,s,c=this,l=Lxe(c),u=f9(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=J5(T9,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=O9&&c.sticky,m=J5(p9,c),h=c.source,g=0,_=u;if(p&&(m=Vxe(m,`y`,``),Bxe(m,`g`)===-1&&(m+=`g`),_=E9(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&zxe(u,c.lastIndex-1)!==`
79
+ `)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),k9&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),D9&&(r=c.lastIndex),i=J5(w9,p?n:c,_),p?i?(i.input=E9(i.input,g),i[0]=E9(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:D9&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),k9&&i&&i.length>1&&J5(Rxe,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=Mxe(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var A9=T9;i9({target:`RegExp`,proto:!0,forced:/./.exec!==A9},{exec:A9});var j9=Function.prototype,M9=j9.apply,Hxe=j9.bind,N9=j9.call,Uxe=typeof Reflect==`object`&&Reflect.apply||(Hxe?N9.bind(M9):function(){return N9.apply(M9,arguments)}),Wxe=R5(`species`),P9=RegExp.prototype,Gxe=R5(`match`),Kxe=f5.TypeError,qxe=R5(`species`),Jxe=y5(``.charAt),F9=y5(``.charCodeAt),Yxe=y5(``.slice),Xxe=function(e){return function(t,n){var r,i,a=f9(b5(t)),o=j7(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=F9(a,o))<55296||r>56319||o+1===s||(i=F9(a,o+1))<56320||i>57343?e?Jxe(a,o):r:e?Yxe(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),Zxe=function(e,t,n){return t+(n?Xxe(e,t).length:1)},Qxe=f5.Array,$xe=Math.max,I9=function(e,t,n){for(var r,i,a,o,s=N7(e),c=Q7(t,s),l=Q7(n===void 0?s:n,s),u=Qxe($xe(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=e7(i))in r?n7.f(r,o,r7(0,a)):r[o]=a;return u.length=d,u},eSe=f5.TypeError,L9=function(e,t){var n=e.exec;if(w5(n)){var r=J5(n,e,t);return r!==null&&K5(r),r}if(S7(e)===`RegExp`)return J5(A9,e,t);throw eSe(`RegExp#exec called on incompatible receiver`)},R9=g9.UNSUPPORTED_Y,tSe=Math.min,z9=[].push,nSe=y5(/./.exec),B9=y5(z9),V9=y5(``.slice);(function(e,t,n,r){var i=R5(e),a=!M5((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!M5((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Wxe]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=y5(/./[i]),c=function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r,i,a=f9(b5(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!H5(r=e)||!((i=r[Gxe])===void 0?S7(r)==`RegExp`:i))return J5(t,a,e,o);for(var s,c,l,u=[],d=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),f=0,p=new RegExp(e.source,d+`g`);(s=J5(A9,p,a))&&!((c=p.lastIndex)>f&&(B9(u,V9(a,f,s.index)),s.length>1&&s.index<a.length&&Uxe(z9,u,I9(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&nSe(p,``)||B9(u,``):B9(u,V9(a,f)),u.length>o?I9(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:J5(t,this,e,n)}:t,[function(t,n){var i=b5(this),a=t==null?void 0:$5(t,e);return a?J5(a,t,i,n):J5(r,f9(i),t,n)},function(e,i){var a=K5(this),o=f9(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=K5(e).constructor;return r===void 0||(n=K5(r)[qxe])==null?t:function(e){if(z7(e))return e;throw Kxe(Z5(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(R9?`g`:`y`),d=new c(R9?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return L9(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=R9?0:m;var g,_=L9(d,R9?V9(o,m):o);if(_===null||(g=tSe(M7(d.lastIndex+(R9?m:0)),o.length))===p)m=Zxe(o,m,l);else{if(B9(h,V9(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(B9(h,_[v]),h.length===f)return h;m=p=g}}return B9(h,V9(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=y5(e),c=t.exec;return c===A9||c===P9.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));x7(String.prototype,e,c[0]),x7(P9,i,c[1])}r&&i7(P9[i],`sham`,!0)})(`split`,0,!!M5((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),R9),i9({global:!0},{globalThis:f5}),Tm&&(V.fn.attr=Tm);var rSe=b7.PROPER,H9=RegExp.prototype,U9=H9.toString,iSe=y5(p9),aSe=M5((function(){return U9.call({source:`a`,flags:`b`})!=`/a/b`})),oSe=rSe&&U9.name!=`toString`;(aSe||oSe)&&x7(RegExp.prototype,`toString`,(function(){var e=K5(this),t=f9(e.source),n=e.flags;return`/`+t+`/`+f9(n===void 0&&Y5(H9,e)&&!(`flags`in H9)?iSe(e):n)}),{unsafe:!0});var sSe=function(){function e(){this.title=q(`highLightModule.selectLang`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>`,this.tag=`select`,this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(`codeSelectLang`).codeLangs,r=n===void 0?[]:n;t.push({text:`plain text`,value:``}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(t==null||!P.isElement(t))return``;var n=t.language.toString(),r=e.getMenuConfig(`codeSelectLang`).codeLangs;return(r===void 0?[]:r).some((function(e){return e.value===n}))?n:``},e.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(this.getSelectCodeElem(e)!=null){var n={language:t.toString()};B.setNodes(e,n,{match:function(e){return K.checkNodeType(e,`code`)}})}},e.prototype.getSelectCodeElem=function(e){var t=K.getSelectedNodeByType(e,`code`);if(t==null)return null;var n=K.getParentNode(e,t);return P.isElement(n)&&n.type===`pre`?t:null},e}(),cSe={renderStyle:function(e,t){var n=e,r=t,i=``;return Dxe.forEach((function(e){n[e]&&(i=e)})),i&&function(e,t){e.data??={};var n=e.data;n.props??={},Object.assign(n.props,{className:t})}(r,i=`token `+i),r},parseStyleHtml:function(e,t,n){var r=V(e);if(!P.isElement(t)||K.getNodeType(t)!==`code`)return t;var i=t,a=r.attr(`class`)||``;return a.indexOf(`language-`)===0?i.language=a.split(`-`)[1]||``:i.language=a.toLowerCase(),i},menus:[{key:`codeSelectLang`,factory:function(){return new sSe},config:{codeLangs:[{text:`CSS`,value:`css`},{text:`HTML`,value:`html`},{text:`XML`,value:`xml`},{text:`Javascript`,value:`javascript`},{text:`Typescript`,value:`typescript`},{text:`JSX`,value:`jsx`},{text:`Go`,value:`go`},{text:`PHP`,value:`php`},{text:`C`,value:`c`},{text:`Python`,value:`python`},{text:`Java`,value:`java`},{text:`C++`,value:`cpp`},{text:`C#`,value:`csharp`},{text:`Visual Basic`,value:`visual-basic`},{text:`SQL`,value:`sql`},{text:`Ruby`,value:`ruby`},{text:`Swift`,value:`swift`},{text:`Bash`,value:`bash`},{text:`Lua`,value:`lua`},{text:`Groovy`,value:`groovy`},{text:`Markdown`,value:`markdown`}]}}],elemsToHtml:[{type:`code`,elemToHtml:function(e,t){var n=e.language,r=n===void 0?``:n;return`<code `+(r?`class="language-`+r+`"`:``)+`>`+t+`</code>`}}]},lSe=/"/g,uSe=y5(``.replace);i9({target:`String`,proto:!0,forced:M5((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=f9(b5(this)),r=`<a`,(r+=` name="`+uSe(f9(t),lSe,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var W9=function(e){var t,n,r,i=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}(e,2),a=i[0],o=i[1],s=[],c=function(e){if(!z.isText(e))return null;var t=K.getParentNode(null,e);if(t&&K.getNodeType(t)===`code`){var n=K.getParentNode(null,t);if(n&&K.getNodeType(n)===`pre`)return t}return null}(a);if(c==null)return s;var l=c.language,u=l===void 0?``:l;if(!u)return s;var d=function(e,t){if(!t)return[];var n=l9.languages[t];return n?l9.tokenize(e.text,n):[]}(a,u),f=0;try{for(var p=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(d),m=p.next();!m.done;m=p.next()){var h=m.value,g=f+u9(h);typeof h!=`string`&&s.push(((r={})[h.type]=!0,r.anchor={path:o,offset:f},r.focus={path:o,offset:g},r)),f=g}}catch(e){t={error:e}}finally{try{m&&!m.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return s},G9=function(){return G9=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},G9.apply(this,arguments)},K9=function(){function e(){throw Error(`不能实例化
80
+ Can not construct a instance`)}return e.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=G9(G9({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=G9(G9({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=G9(G9({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=G9(G9({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){(function(e,t){var n=e.key,r=e.factory,i=e.config,a=DC(DC({},i),t||{});if(rT[n]!=null)throw Error(`Duplicated key '`+n+`' in menu items`);rT[n]=r,function(e,t){t!=null&&(nT[e]=t)}(n,a)})(e,t)},e.registerRenderElem=function(e){(function(e){var t=e.type;dO[t||``]=e.renderElem})(e)},e.registerRenderStyle=function(e){(function(e){uO.push(e)})(e)},e.registerElemToHtml=function(e){(function(e){var t=e.type;lT[t||``]=e.elemToHtml})(e)},e.registerStyleToHtml=function(e){(function(e){cT.push(e)})(e)},e.registerPreParseHtml=function(e){(function(e){RE.push(e)})(e)},e.registerParseElemHtml=function(e){(function(e){var t=e.selector;BE[t]=e.parseElemHtml})(e)},e.registerParseStyleHtml=function(e){(function(e){zE.push(e)})(e)},e.registerModule=function(e){q9(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function q9(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,i=e.elemsToHtml,a=e.styleToHtml,o=e.preParseHtml,s=e.parseElemsHtml,c=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return K9.registerMenu(e)})),n&&n.forEach((function(e){return K9.registerRenderElem(e)})),r&&K9.registerRenderStyle(r),i&&i.forEach((function(e){return K9.registerElemToHtml(e)})),a&&K9.registerStyleToHtml(a),o&&o.forEach((function(e){return K9.registerPreParseHtml(e)})),s&&s.forEach((function(e){return K9.registerParseElemHtml(e)})),c&&K9.registerParseStyleHtml(c),l&&K9.registerPlugin(l)}Cz.forEach((function(e){return q9(e)})),q9(BG),q9(Tme),q9(M_e),q9(xbe),q9(cSe);var J9=`<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>`,Y9={link:{menuKeys:[`editLink`,`unLink`,`viewLink`]},image:{menuKeys:[`imageWidth30`,`imageWidth50`,`imageWidth100`,`editImage`,`viewImageLink`,`deleteImage`]},pre:{menuKeys:[`enter`,`codeBlock`,`codeSelectLang`]},table:{menuKeys:[`enter`,`tableHeader`,`tableFullWidth`,`insertTableRow`,`deleteTableRow`,`insertTableCol`,`deleteTableCol`,`deleteTable`]},divider:{menuKeys:[`enter`]},video:{menuKeys:[`enter`,`editVideoSize`]}},dSe={hoverbarKeys:G9(G9({},Y9),{text:{menuKeys:[`headerSelect`,`insertLink`,`bulletedList`,`|`,`bold`,`through`,`color`,`bgColor`,`clearStyle`]}})};K9.setEditorConfig(G9(G9({},dSe),{decorate:W9}));var fSe={hoverbarKeys:Y9};K9.setSimpleEditorConfig(G9(G9({},fSe),{decorate:W9}));var pSe={toolbarKeys:[`headerSelect`,`blockquote`,`|`,`bold`,`underline`,`italic`,{key:`group-more-style`,title:q(`editor.more`),iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>`,menuKeys:[`through`,`code`,`sup`,`sub`,`clearStyle`]},`color`,`bgColor`,`|`,`fontSize`,`fontFamily`,`lineHeight`,`|`,`bulletedList`,`numberedList`,`todo`,{key:`group-justify`,title:q(`editor.justify`),iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>`,menuKeys:[`justifyLeft`,`justifyRight`,`justifyCenter`,`justifyJustify`]},{key:`group-indent`,title:q(`editor.indent`),iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>`,menuKeys:[`indent`,`delIndent`]},`|`,`emotion`,`insertLink`,{key:`group-image`,title:q(`editor.image`),iconSvg:J9,menuKeys:[`insertImage`,`uploadImage`]},{key:`group-video`,title:q(`editor.video`),iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>`,menuKeys:[`insertVideo`,`uploadVideo`]},`insertTable`,`codeBlock`,`divider`,`|`,`undo`,`redo`,`|`,`fullScreen`]};K9.setToolbarConfig(pSe);var mSe={toolbarKeys:[`blockquote`,`header1`,`header2`,`header3`,`|`,`bold`,`underline`,`italic`,`through`,`color`,`bgColor`,`clearStyle`,`|`,`bulletedList`,`numberedList`,`todo`,`justifyLeft`,`justifyRight`,`justifyCenter`,`|`,`insertLink`,{key:`group-image`,title:q(`editor.image`),iconSvg:J9,menuKeys:[`insertImage`,`uploadImage`]},`insertVideo`,`insertTable`,`codeBlock`,`|`,`undo`,`redo`,`|`,`fullScreen`]};function hSe(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?``:t,r=e.content,i=r===void 0?[]:r,a=e.html,o=e.config,s=o===void 0?{}:o,c=e.mode,l=(c===void 0?`default`:c)===`simple`?K9.simpleEditorConfig:K9.editorConfig,u=G9(G9({},l.hoverbarKeys||{}),s.hoverbarKeys||{});return kle({selector:n,config:G9(G9(G9({},l),s),{hoverbarKeys:u}),content:i,html:a,plugins:K9.plugins})}function gSe(e){var t=e.selector,n=e.editor,r=e.config,i=r===void 0?{}:r,a=e.mode,o=a===void 0?`default`:a;if(!t)throw Error(`Cannot find 'selector' when create toolbar`);var s=o===`simple`?K9.simpleToolbarConfig:K9.toolbarConfig;return function(e,t){if(e==null)throw Error(`Cannot create toolbar, because editor is null`);var n=t.selector,r=t.config,i=r===void 0?{}:r;if(function(e,t){return uD(e,`data-w-e-toolbar`,t)}(e,n))throw Error(`Repeated create toolbar by selector '`+n+`'`);var a=new Ple(n,DC({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}));return mw.set(a,e),hw.set(e,a),a}(n,{selector:t,config:G9(G9({},s),i)})}K9.setSimpleToolbarConfig(mSe);var _Se=Object.defineProperty,vSe=Object.defineProperties,ySe=Object.getOwnPropertyDescriptors,X9=Object.getOwnPropertySymbols,bSe=Object.prototype.hasOwnProperty,xSe=Object.prototype.propertyIsEnumerable,Z9=(e,t,n)=>t in e?_Se(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SSe=(e,t)=>{for(var n in t||={})bSe.call(t,n)&&Z9(e,n,t[n]);if(X9)for(var n of X9(t))xSe.call(t,n)&&Z9(e,n,t[n]);return e},CSe=(e,t)=>vSe(e,ySe(t));function Q9(e){let t=`\u8BF7\u4F7F\u7528 '@${e}' \u4E8B\u4EF6\uFF0C\u4E0D\u8981\u653E\u5728 props \u4E2D`;return t+=`
81
+ Please use '@${e}' event instead of props`,t}var $9=(e,t)=>{for(let[n,r]of t)e[n]=r;return e},wSe=(0,e.defineComponent)({props:{mode:{type:String,default:`default`},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:``},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:``}},setup(t,n){let r=(0,e.ref)(null),i=(0,e.shallowRef)(null),a=(0,e.ref)(``),o=()=>{if(!r.value)return;let o=(0,e.toRaw)(t.defaultContent);hSe({selector:r.value,mode:t.mode,content:o||[],html:t.defaultHtml||t.modelValue||``,config:CSe(SSe({},t.defaultConfig),{onCreated(e){if(i.value=e,n.emit(`onCreated`,e),t.defaultConfig.onCreated){let e=Q9(`onCreated`);throw Error(e)}},onChange(e){let r=e.getHtml();if(a.value=r,n.emit(`update:modelValue`,r),n.emit(`onChange`,e),t.defaultConfig.onChange){let e=Q9(`onChange`);throw Error(e)}},onDestroyed(e){if(n.emit(`onDestroyed`,e),t.defaultConfig.onDestroyed){let e=Q9(`onDestroyed`);throw Error(e)}},onMaxLength(e){if(n.emit(`onMaxLength`,e),t.defaultConfig.onMaxLength){let e=Q9(`onMaxLength`);throw Error(e)}},onFocus(e){if(n.emit(`onFocus`,e),t.defaultConfig.onFocus){let e=Q9(`onFocus`);throw Error(e)}},onBlur(e){if(n.emit(`onBlur`,e),t.defaultConfig.onBlur){let e=Q9(`onBlur`);throw Error(e)}},customAlert(e,r){if(n.emit(`customAlert`,e,r),t.defaultConfig.customAlert){let e=Q9(`customAlert`);throw Error(e)}},customPaste:(e,r)=>{if(t.defaultConfig.customPaste){let e=Q9(`customPaste`);throw Error(e)}let i;return n.emit(`customPaste`,e,r,e=>{i=e}),i}})})};function s(e){i.value?.setHtml(e)}return(0,e.onMounted)(()=>{o()}),(0,e.watch)(()=>t.modelValue,e=>{e!==a.value&&s(e)}),{box:r}}}),TSe={ref:`box`,style:{height:`100%`}};function ESe(t,n,r,i,a,o){return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,TSe,null,512)}var DSe=$9(wSe,[[`render`,ESe]]),OSe=(0,e.defineComponent)({props:{editor:{type:Object},mode:{type:String,default:`default`},defaultConfig:{type:Object,default:{}}},setup(t){let n=(0,e.ref)(null),r=e=>{if(n.value){if(e==null)throw Error(`Not found instance of Editor when create <Toolbar/> component`);K.getToolbar(e)||gSe({editor:e,selector:n.value||`<div></div>`,mode:t.mode,config:t.defaultConfig})}};return(0,e.watchEffect)(()=>{let{editor:e}=t;e!=null&&r(e)}),{selector:n}}}),kSe={ref:`selector`};function ASe(t,n,r,i,a,o){return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,kSe,null,512)}var jSe=$9(OSe,[[`render`,ASe]]),MSe=(0,e.defineComponent)({__name:`index`,props:{modelValue:{type:String,default:``},disabled:{type:Boolean,default:!1},mode:{type:String,default:`default`},height:{type:Number,default:400},action:{type:String,default:``},folder:{type:String,default:``},radius:{type:Number,default:0},headers:{type:String,token:``}},emits:[`update:modelValue`],setup(t,{emit:n}){$le(qr.global.locale);let r=(0,e.ref)({}),i=n,a=(0,e.shallowRef)(),o=(0,e.ref)(``),s=t,c=()=>{p(s.height)&&(r.value[`--height`]=`${s.height}`),p(s.radius)&&(r.value[`--radius`]=`${s.radius}`)},l={toolbarKeys:[`headerSelect`,`blockquote`,`|`,`bold`,`underline`,`italic`,{key:`group-more-style`,title:`更多`,iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>`,menuKeys:[`through`,`code`,`sup`,`sub`,`undo`,`redo`,`clearStyle`]},`color`,`bgColor`,`|`,`fontSize`,`fontFamily`,`lineHeight`,`|`,`bulletedList`,`numberedList`,`todo`,{key:`group-justify`,title:`对齐`,iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>`,menuKeys:[`justifyLeft`,`justifyRight`,`justifyCenter`,`justifyJustify`]},{key:`group-indent`,title:`缩进`,iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>`,menuKeys:[`indent`,`delIndent`]},`|`,`emotion`,{key:`group-image`,title:`图片`,iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>`,menuKeys:[`insertImage`,`uploadImage`]},{key:`group-video`,title:`视频`,iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>`,menuKeys:[`insertVideo`,`uploadVideo`]},`insertTable`,`codeBlock`,`divider`,`|`,`fullScreen`]};s.mode===`sample`&&(l.toolbarKeys=[`bold`,`italic`,`underline`,`headerSelect`,`color`,`bgColor`,`uploadImage`,`insertTable`,`codeBlock`,`fullScreen`]);let u={placeholder:qr.global.t(`editor.placeholder`),MENU_CONF:{uploadImage:{base64LimitSize:10*1024*1024,server:s.action,headers:s.headers,withCredentials:!0,timeout:30*1e3,maxFileSize:10*1024*1024,fieldName:`file`,meta:{source:`sys_user_guide`},customInsert(e,t,n){t(e.data.url,``,``)}},uploadVideo:{base64LimitSize:40*1024*1024,server:s.action,headers:s.headers,withCredentials:!0,timeout:30*1e3,maxFileSize:40*1024*1024,fieldName:`file`,meta:{source:`sys_user_guide`},customInsert(e,t,n){t(e.data.url,``,``)}}}},d=t=>{a.value=t,(0,e.nextTick)(()=>{})};return(0,e.onBeforeUnmount)(()=>{a.value?.destroy()}),(0,e.watch)(o,e=>{i(`update:modelValue`,e)},{deep:!0}),o.value=s.modelValue,c(),(n,i)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:`oga-editor`,style:(0,e.normalizeStyle)((0,e.unref)(r))},[(0,e.createVNode)((0,e.unref)(jSe),{class:`oga-editor-toolbar`,editor:a.value,defaultConfig:l,mode:t.mode},null,8,[`editor`,`mode`]),(0,e.createVNode)((0,e.unref)(DSe),{class:`oga-editor-container`,modelValue:o.value,"onUpdate:modelValue":i[0]||=e=>o.value=e,defaultConfig:u,mode:t.mode,onOnCreated:d},null,8,[`modelValue`,`mode`])],4))}}),NSe={install(e){e.component(`OgaEditor`,MSe)}},PSe=(0,e.defineComponent)({name:`ArrowDown`,__name:`arrow-down`,setup(t){return(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[(0,e.createElementVNode)(`path`,{fill:`currentColor`,d:`M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z`})]))}}),FSe=(0,e.defineComponent)({name:`ogaIcon`,props:{type:{type:String,default:`svg`},name:{type:String,default:``,required:!0},prefix:{type:String,default:`icon`}},setup(t){return{name:(0,e.computed)(()=>`${t.type===`svg`?`#`:``}${t.prefix}-${t.name}`),useSvg:(0,e.computed)(()=>t.type===`svg`),msg:`Invalid icon`}}}),ISe={key:0,class:`oga-icon`,"aria-hidden":`true`},LSe=[`href`];function RSe(t,n,r,i,a,o){return t.useSvg?((0,e.openBlock)(),(0,e.createElementBlock)(`svg`,ISe,[(0,e.createElementVNode)(`use`,{href:t.name},null,8,LSe)])):((0,e.openBlock)(),(0,e.createElementBlock)(`i`,{key:1,class:(0,e.normalizeClass)([`oga-icon-font`,t.name])},null,2))}var zSe=h(FSe,[[`render`,RSe],[`__scopeId`,`data-v-4b378c8c`]]),BSe={class:`oga-table`},VSe={class:`oga-table-content`},HSe=[`innerHTML`],USe={class:`el-dropdown-link`},WSe=h((0,e.defineComponent)({__name:`index`,props:{modelValue:{},modelModifiers:{}},emits:(0,e.mergeModels)([`update:modelValue`,`paging`],[`update:modelValue`]),setup(t,{emit:n}){let r=(0,e.ref)([]),i=(0,e.useModel)(t,`modelValue`),a=(0,e.ref)(null),o=(0,e.ref)(null),s=n,c=({row:e,rowIndex:t})=>``,l=({row:e,column:t})=>f(t.label)&&t.label.indexOf(`-`)>-1?`el-table__layers`:``,d=e=>e.split(`-`).join(`<br/>`),p=e=>{if(a.value!==null&&o.value!==null){let t=a.value.$refs.headerWrapper;o.value.style.height=t.offsetHeight-1+`px`,r.value=e}},m=(e,t,n)=>{if(n.cancelBubble=!0,i.value!==void 0){if(i.value.actionList&&i.value.actionList.update){let n=i.value.actionList.update.onClick;u(n)&&n.call(this,e,t)}i.value.actionList.rowClick&&u(i.value.actionList.rowClick)&&i.value.actionList.rowClick.call(this,e,t)}},h=({row:e,rowIndex:t})=>{let n=!1;if(r.value.forEach(t=>{t===e&&(n=!0)}),n)return{"background-color":`#edf5fe`}},g=e=>{if(i.value.actionList[e]&&r.value.length>0){let t=i.value.actionList[e].onClick;t&&typeof t==`function`&&t.call(this,e===`update`?r.value[0]:r)}},_=()=>{i.value!==void 0&&i.value.empty&&i.value.empty.onClick&&typeof i.value.empty.onClick==`function`&&i.value.empty.onClick.call(this)},v=e=>{i.value!==void 0&&(i.value.pageIndex=e,s(`update:modelValue`,i),s(`paging`,!1))},y=t=>{i.value!==void 0&&(i.value.pageSize=t,i.value.pageIndex=1,s(`update:modelValue`,i),s(`paging`,(0,e.ref)(t)))};return(t,n)=>{let s=(0,e.resolveComponent)(`el-button`),u=(0,e.resolveComponent)(`el-empty`),b=(0,e.resolveComponent)(`el-table-column`),x=(0,e.resolveComponent)(`el-table`),S=(0,e.resolveComponent)(`el-icon`),C=(0,e.resolveComponent)(`el-dropdown-item`),w=(0,e.resolveComponent)(`el-dropdown`),T=(0,e.resolveComponent)(`el-pagination`),E=(0,e.resolveDirective)(`loading`);return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,BSe,[i.value.dataset.length===0&&i.value.empty&&i.value.empty.content&&i.value.firstLoading?((0,e.openBlock)(),(0,e.createBlock)(u,{key:0,description:(0,e.unref)(qr).global.t(`notData`)},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)(i.value.empty.content)+` `,1),(0,e.createVNode)(s,{type:`text`,onClick:_},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)(i.value.empty.buttonLabel),1)]),_:1})]),_:1},8,[`description`])):((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:1},[(0,e.createElementVNode)(`div`,VSe,[(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createBlock)(x,{ref_key:`ogaTable`,ref:a,data:i.value.dataset,stripe:i.value.stripe,border:i.value.border,"row-class-name":c,"header-cell-class-name":l,onSelectionChange:p,onRowClick:m,"row-style":h},{default:(0,e.withCtx)(()=>[i.value.multiSelect?((0,e.openBlock)(),(0,e.createBlock)(b,{key:0,type:`selection`,width:`55`})):(0,e.createCommentVNode)(`v-if`,!0),i.value.index?((0,e.openBlock)(),(0,e.createBlock)(b,{key:1,label:`NO.`,type:`index`,width:`50`,align:`center`})):(0,e.createCommentVNode)(`v-if`,!0),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(i.value.columnList,(t,n)=>((0,e.openBlock)(),(0,e.createBlock)(b,{prop:t.prop,align:t.align||`left`,"header-align":t.headerAlign||``,"label-class-name":t.labelClassName||``,width:t.width,label:t.label,"class-name":t.className||``,sortable:t.sortable,fixed:t.fixed},{header:(0,e.withCtx)(n=>[(0,e.createElementVNode)(`span`,{innerHTML:d(t.label)},null,8,HSe)]),default:(0,e.withCtx)(n=>[(0,e.createTextVNode)((0,e.toDisplayString)(n.row[t.prop]),1)]),_:2},1032,[`prop`,`align`,`header-align`,`label-class-name`,`width`,`label`,`class-name`,`sortable`,`fixed`]))),256))]),_:1},8,[`data`,`stripe`,`border`])),[[E,i.value.loading]]),(0,e.withDirectives)((0,e.createElementVNode)(`div`,{class:`oga-table-batch-operation`,ref_key:`bulkOperation`,ref:o},[(0,e.createVNode)(w,{onCommand:g,size:`large`,placement:`bottom-start`},{dropdown:(0,e.withCtx)(()=>[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(i.value.actionList,(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,null,[!t.invisible&&typeof t!=`function`?((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:0},[n===`update`?((0,e.openBlock)(),(0,e.createBlock)(C,{command:n,size:`large`,key:`action-${n}`,disabled:(0,e.unref)(r).length!==1,divided:t.divided},{default:(0,e.withCtx)(()=>[t.icon?((0,e.openBlock)(),(0,e.createElementBlock)(`i`,{key:0,class:(0,e.normalizeClass)(t.icon)},null,2)):(0,e.createCommentVNode)(`v-if`,!0),(0,e.createTextVNode)(` `+(0,e.toDisplayString)(t.label),1)]),_:2},1032,[`command`,`disabled`,`divided`])):n===`delete`?((0,e.openBlock)(),(0,e.createBlock)(C,{size:`large`,command:n,key:`action-${n}`,disabled:(0,e.unref)(r).length<1,divided:t.divided},{default:(0,e.withCtx)(()=>[(0,e.unref)(f)(t.icon)?((0,e.openBlock)(),(0,e.createBlock)(zSe,{key:0,name:t.icon},null,8,[`name`])):(0,e.createCommentVNode)(`v-if`,!0),(0,e.createTextVNode)(` `+(0,e.toDisplayString)(t.label),1)]),_:2},1032,[`command`,`disabled`,`divided`])):((0,e.openBlock)(),(0,e.createBlock)(C,{size:`large`,command:n,key:`actions-${n}`,divided:t.divided},{default:(0,e.withCtx)(()=>[t.icon?((0,e.openBlock)(),(0,e.createElementBlock)(`i`,{key:0,class:(0,e.normalizeClass)(t.icon)},null,2)):(0,e.createCommentVNode)(`v-if`,!0),(0,e.createTextVNode)(` `+(0,e.toDisplayString)(t.label),1)]),_:2},1032,[`command`,`divided`]))],64)):(0,e.createCommentVNode)(`v-if`,!0)],64))),256))]),default:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`div`,USe,[(0,e.createElementVNode)(`div`,null,[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(qr).global.t(`select.multiple`))+` `,1),(0,e.createElementVNode)(`b`,null,(0,e.toDisplayString)((0,e.unref)(r).length),1),(0,e.createTextVNode)(` `+(0,e.toDisplayString)((0,e.unref)(qr).global.t(`select.item`))+` `,1),(0,e.createVNode)(S,{class:`el-icon--right`},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(PSe))]),_:1})])])]),_:1})],512),[[e.vShow,(0,e.unref)(r).length>0]])]),i.value.paginationSection&&i.value.recordCount>i.value.pageSize?((0,e.openBlock)(),(0,e.createBlock)(T,{key:0,background:!1,"current-page":i.value.pageIndex,"page-size":i.value.pageSize,layout:i.value.pageLayout,"page-sizes":i.value.pageSizes,total:i.value.recordCount,onCurrentChange:v,onSizeChange:y},null,8,[`current-page`,`page-size`,`layout`,`page-sizes`,`total`])):(0,e.createCommentVNode)(`v-if`,!0)],64))])}}}),[[`__scopeId`,`data-v-3eeadc5f`]]),GSe=[_,T,ne,ie,oe,ce,Jr,y,NSe,{install(e){e.component(`OgaTable`,WSe)}}];return{install(e){GSe.map(t=>e.use(t))}}});