@speed-sheet/vue3-antd 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SpeedSheet.vue.d.ts +18 -0
- package/dist/SpeedSheet.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/BubbleContainer.vue.d.ts +25 -0
- package/dist/bubbleMenus/BubbleContainer.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/dropdownConfigMenu/DropdownListPanel.vue.d.ts +16 -0
- package/dist/bubbleMenus/dropdownConfigMenu/DropdownListPanel.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/dropdownConfigMenu/index.vue.d.ts +9 -0
- package/dist/bubbleMenus/dropdownConfigMenu/index.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/dropdownMenus/index.vue.d.ts +9 -0
- package/dist/bubbleMenus/dropdownMenus/index.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/dropdownPickMenu/index.vue.d.ts +9 -0
- package/dist/bubbleMenus/dropdownPickMenu/index.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/filterConfigMenu/FilterConditionPanel.vue.d.ts +7 -0
- package/dist/bubbleMenus/filterConfigMenu/FilterConditionPanel.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/filterConfigMenu/FilterConfigPanel.vue.d.ts +13 -0
- package/dist/bubbleMenus/filterConfigMenu/FilterConfigPanel.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/filterConfigMenu/index.vue.d.ts +9 -0
- package/dist/bubbleMenus/filterConfigMenu/index.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/imageMenu/index.vue.d.ts +7 -0
- package/dist/bubbleMenus/imageMenu/index.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/index.d.ts +5 -0
- package/dist/bubbleMenus/index.d.ts.map +1 -0
- package/dist/bubbleMenus/linkConfigMenu/LinkConfigPanel.vue.d.ts +19 -0
- package/dist/bubbleMenus/linkConfigMenu/LinkConfigPanel.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/linkConfigMenu/index.vue.d.ts +9 -0
- package/dist/bubbleMenus/linkConfigMenu/index.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/linkMenus/index.vue.d.ts +9 -0
- package/dist/bubbleMenus/linkMenus/index.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/linkToolbarMenu/index.vue.d.ts +9 -0
- package/dist/bubbleMenus/linkToolbarMenu/index.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/noteConfigMenu/NoteConfigPanel.vue.d.ts +19 -0
- package/dist/bubbleMenus/noteConfigMenu/NoteConfigPanel.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/noteConfigMenu/index.vue.d.ts +9 -0
- package/dist/bubbleMenus/noteConfigMenu/index.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/noteMenus/NoteHoverTracker.vue.d.ts +7 -0
- package/dist/bubbleMenus/noteMenus/NoteHoverTracker.vue.d.ts.map +1 -0
- package/dist/bubbleMenus/noteMenus/index.vue.d.ts +9 -0
- package/dist/bubbleMenus/noteMenus/index.vue.d.ts.map +1 -0
- package/dist/components/FormulaFunctionHelp.vue.d.ts +11 -0
- package/dist/components/FormulaFunctionHelp.vue.d.ts.map +1 -0
- package/dist/components/SheetFormulaBar.vue.d.ts +10 -0
- package/dist/components/SheetFormulaBar.vue.d.ts.map +1 -0
- package/dist/components/SheetTabBar.vue.d.ts +28 -0
- package/dist/components/SheetTabBar.vue.d.ts.map +1 -0
- package/dist/components/SheetToolbarHost.vue.d.ts +13 -0
- package/dist/components/SheetToolbarHost.vue.d.ts.map +1 -0
- package/dist/composables/sheetBuiltin.d.ts +12 -0
- package/dist/composables/sheetBuiltin.d.ts.map +1 -0
- package/dist/composables/useContextMenuFloating.d.ts +16 -0
- package/dist/composables/useContextMenuFloating.d.ts.map +1 -0
- package/dist/composables/useDropdownConfigPanel.d.ts +17 -0
- package/dist/composables/useDropdownConfigPanel.d.ts.map +1 -0
- package/dist/composables/useDropdownPickPanel.d.ts +22 -0
- package/dist/composables/useDropdownPickPanel.d.ts.map +1 -0
- package/dist/composables/useFilterConfigPanel.d.ts +17 -0
- package/dist/composables/useFilterConfigPanel.d.ts.map +1 -0
- package/dist/composables/useInsertMenuContext.d.ts +9 -0
- package/dist/composables/useInsertMenuContext.d.ts.map +1 -0
- package/dist/composables/useLinkConfigPanel.d.ts +18 -0
- package/dist/composables/useLinkConfigPanel.d.ts.map +1 -0
- package/dist/composables/useLinkToolbarPanel.d.ts +21 -0
- package/dist/composables/useLinkToolbarPanel.d.ts.map +1 -0
- package/dist/composables/useNoteConfigPanel.d.ts +27 -0
- package/dist/composables/useNoteConfigPanel.d.ts.map +1 -0
- package/dist/composables/useSheetLocale.d.ts +5 -0
- package/dist/composables/useSheetLocale.d.ts.map +1 -0
- package/dist/composables/useSheetToolbar.d.ts +25 -0
- package/dist/composables/useSheetToolbar.d.ts.map +1 -0
- package/dist/composables/useSheetToolbarContext.d.ts +15 -0
- package/dist/composables/useSheetToolbarContext.d.ts.map +1 -0
- package/dist/composables/useSpeedSheet.d.ts +12 -0
- package/dist/composables/useSpeedSheet.d.ts.map +1 -0
- package/dist/composables/useSpeedSheetProvider.d.ts +14 -0
- package/dist/composables/useSpeedSheetProvider.d.ts.map +1 -0
- package/dist/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/extensions/dropdown/index.d.ts +4 -0
- package/dist/extensions/dropdown/index.d.ts.map +1 -0
- package/dist/extensions/dropdown/selection.d.ts +5 -0
- package/dist/extensions/dropdown/selection.d.ts.map +1 -0
- package/dist/extensions/filter/index.d.ts +4 -0
- package/dist/extensions/filter/index.d.ts.map +1 -0
- package/dist/extensions/image/Layer.vue.d.ts +8 -0
- package/dist/extensions/image/Layer.vue.d.ts.map +1 -0
- package/dist/extensions/image/index.d.ts +3 -0
- package/dist/extensions/image/index.d.ts.map +1 -0
- package/dist/extensions/image/insert.d.ts +18 -0
- package/dist/extensions/image/insert.d.ts.map +1 -0
- package/dist/extensions/link/index.d.ts +4 -0
- package/dist/extensions/link/index.d.ts.map +1 -0
- package/dist/extensions/link/selection.d.ts +3 -0
- package/dist/extensions/link/selection.d.ts.map +1 -0
- package/dist/extensions/note/index.d.ts +4 -0
- package/dist/extensions/note/index.d.ts.map +1 -0
- package/dist/extensions/note/selection.d.ts +3 -0
- package/dist/extensions/note/selection.d.ts.map +1 -0
- package/dist/helpers/registKeyMap.d.ts +77 -0
- package/dist/helpers/registKeyMap.d.ts.map +1 -0
- package/dist/helpers/sheetPreviewImage.d.ts +19 -0
- package/dist/helpers/sheetPreviewImage.d.ts.map +1 -0
- package/dist/i18n/index.d.ts +152 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/index.cjs +358 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm-C9sEwyHF--WZIfkZ-.js +20785 -0
- package/dist/index.esm-C9sEwyHF-CggrFfY9.cjs +186 -0
- package/dist/index.js +49404 -0
- package/dist/install.d.ts +11 -0
- package/dist/install.d.ts.map +1 -0
- package/dist/menus/contextMenu/buildItems.d.ts +30 -0
- package/dist/menus/contextMenu/buildItems.d.ts.map +1 -0
- package/dist/menus/contextMenu/format.d.ts +8 -0
- package/dist/menus/contextMenu/format.d.ts.map +1 -0
- package/dist/menus/contextMenu/index.vue.d.ts +31 -0
- package/dist/menus/contextMenu/index.vue.d.ts.map +1 -0
- package/dist/menus/contextMenu/keys.d.ts +4 -0
- package/dist/menus/contextMenu/keys.d.ts.map +1 -0
- package/dist/menus/contextMenu/registry.d.ts +13 -0
- package/dist/menus/contextMenu/registry.d.ts.map +1 -0
- package/dist/menus/index.d.ts +16 -0
- package/dist/menus/index.d.ts.map +1 -0
- package/dist/menus/insert/InsertMenu.vue.d.ts +3 -0
- package/dist/menus/insert/InsertMenu.vue.d.ts.map +1 -0
- package/dist/menus/insert/builtins.d.ts +4 -0
- package/dist/menus/insert/builtins.d.ts.map +1 -0
- package/dist/menus/insert/index.d.ts +4 -0
- package/dist/menus/insert/index.d.ts.map +1 -0
- package/dist/menus/insert/keys.d.ts +4 -0
- package/dist/menus/insert/keys.d.ts.map +1 -0
- package/dist/menus/insert/types.d.ts +50 -0
- package/dist/menus/insert/types.d.ts.map +1 -0
- package/dist/menus/insert/useInsertActions.d.ts +37 -0
- package/dist/menus/insert/useInsertActions.d.ts.map +1 -0
- package/dist/menus/insert/useInsertMenu.d.ts +11 -0
- package/dist/menus/insert/useInsertMenu.d.ts.map +1 -0
- package/dist/menus/sheetTabMenu/index.vue.d.ts +24 -0
- package/dist/menus/sheetTabMenu/index.vue.d.ts.map +1 -0
- package/dist/menus/sheetTabMenu/keys.d.ts +4 -0
- package/dist/menus/sheetTabMenu/keys.d.ts.map +1 -0
- package/dist/menus/sheetTabMenu/registry.d.ts +25 -0
- package/dist/menus/sheetTabMenu/registry.d.ts.map +1 -0
- package/dist/menus/sheetTabMenu/types.d.ts +20 -0
- package/dist/menus/sheetTabMenu/types.d.ts.map +1 -0
- package/dist/menus/toolbar/align.d.ts +15 -0
- package/dist/menus/toolbar/align.d.ts.map +1 -0
- package/dist/menus/toolbar/backgroundColor.vue.d.ts +3 -0
- package/dist/menus/toolbar/backgroundColor.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/bold.vue.d.ts +3 -0
- package/dist/menus/toolbar/bold.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/clearFormat.vue.d.ts +3 -0
- package/dist/menus/toolbar/clearFormat.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/colorPicker/ColorBoard.vue.d.ts +20 -0
- package/dist/menus/toolbar/colorPicker/ColorBoard.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/colorPicker/data.d.ts +5 -0
- package/dist/menus/toolbar/colorPicker/data.d.ts.map +1 -0
- package/dist/menus/toolbar/colorPicker/index.vue.d.ts +59 -0
- package/dist/menus/toolbar/colorPicker/index.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/filter.vue.d.ts +3 -0
- package/dist/menus/toolbar/filter.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/findAndReplace.vue.d.ts +3 -0
- package/dist/menus/toolbar/findAndReplace.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/fontSize.vue.d.ts +3 -0
- package/dist/menus/toolbar/fontSize.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/formatPainter.vue.d.ts +3 -0
- package/dist/menus/toolbar/formatPainter.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/formula/FormulaFunctionBrowser.vue.d.ts +10 -0
- package/dist/menus/toolbar/formula/FormulaFunctionBrowser.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/formula/FormulaMenu.vue.d.ts +3 -0
- package/dist/menus/toolbar/formula/FormulaMenu.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/formula/FormulaMenuHintPopover.vue.d.ts +17 -0
- package/dist/menus/toolbar/formula/FormulaMenuHintPopover.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/index.d.ts +26 -0
- package/dist/menus/toolbar/index.d.ts.map +1 -0
- package/dist/menus/toolbar/italic.vue.d.ts +3 -0
- package/dist/menus/toolbar/italic.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/keys.d.ts +4 -0
- package/dist/menus/toolbar/keys.d.ts.map +1 -0
- package/dist/menus/toolbar/link/index.vue.d.ts +3 -0
- package/dist/menus/toolbar/link/index.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/redo.vue.d.ts +3 -0
- package/dist/menus/toolbar/redo.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/textColor.vue.d.ts +3 -0
- package/dist/menus/toolbar/textColor.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/types.d.ts +5 -0
- package/dist/menus/toolbar/types.d.ts.map +1 -0
- package/dist/menus/toolbar/underline.vue.d.ts +3 -0
- package/dist/menus/toolbar/underline.vue.d.ts.map +1 -0
- package/dist/menus/toolbar/undo.vue.d.ts +3 -0
- package/dist/menus/toolbar/undo.vue.d.ts.map +1 -0
- package/dist/types.d.ts +76 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/vue3-antd.css +9 -0
- package/package.json +69 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ln=require("vue");var at=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qu(e){var t={exports:{}};return e(t,t.exports),t.exports}var mi,Sg,mh=function(e){return e&&e.Math==Math&&e},Be=mh(typeof globalThis=="object"&&globalThis)||mh(typeof window=="object"&&window)||mh(typeof self=="object"&&self)||mh(typeof at=="object"&&at)||(function(){return this})()||Function("return this")(),O3=Function.prototype,$x=O3.apply,_z=O3.bind,Hx=O3.call,j_=typeof Reflect=="object"&&Reflect.apply||(_z?Hx.bind($x):function(){return Hx.apply($x,arguments)}),P_=Function.prototype,Gw=P_.bind,qw=P_.call,jz=Gw&&Gw.bind(qw),pt=Gw?function(e){return e&&jz(qw,e)}:function(e){return e&&function(){return qw.apply(e,arguments)}},pn=function(e){return typeof e=="function"},Gn=function(e){try{return!!e()}catch{return!0}},Hn=!Gn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),mc=Function.prototype.call,tr=mc.bind?mc.bind(mc):function(){return mc.apply(mc,arguments)},Vx={}.propertyIsEnumerable,Ux=Object.getOwnPropertyDescriptor,Pz=Ux&&!Vx.call({1:2},1)?function(e){var t=Ux(this,e);return!!t&&t.enumerable}:Vx,B3={f:Pz},Wr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Nz=pt({}.toString),Iz=pt("".slice),pu=function(e){return Iz(Nz(e),8,-1)},Sm=Be.Object,Lz=pt("".split),N_=Gn(function(){return!Sm("z").propertyIsEnumerable(0)})?function(e){return pu(e)=="String"?Lz(e,""):Sm(e)}:Sm,Rz=Be.TypeError,k3=function(e){if(e==null)throw Rz("Can't call method on "+e);return e},_o=function(e){return N_(k3(e))},Er=function(e){return typeof e=="object"?e!==null:pn(e)},Qn={},Wx=function(e){return pn(e)?e:void 0},Kl=function(e,t){return arguments.length<2?Wx(Qn[e])||Wx(Be[e]):Qn[e]&&Qn[e][t]||Be[e]&&Be[e][t]},wd=pt({}.isPrototypeOf),Am=Kl("navigator","userAgent")||"",Gx=Be.process,qx=Be.Deno,Kx=Gx&&Gx.versions||qx&&qx.version,Xx=Kx&&Kx.v8;Xx&&(Sg=(mi=Xx.split("."))[0]>0&&mi[0]<4?1:+(mi[0]+mi[1])),!Sg&&Am&&(!(mi=Am.match(/Edge\/(\d+)/))||mi[1]>=74)&&(mi=Am.match(/Chrome\/(\d+)/))&&(Sg=+mi[1]);var bh,iv=Sg,so=!!Object.getOwnPropertySymbols&&!Gn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&iv&&iv<41}),F3=so&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Mz=Be.Object,al=F3?function(e){return typeof e=="symbol"}:function(e){var t=Kl("Symbol");return pn(t)&&wd(t.prototype,Mz(e))},zz=Be.String,Kw=function(e){try{return zz(e)}catch{return"Object"}},$z=Be.TypeError,T3=function(e){if(pn(e))return e;throw $z(Kw(e)+" is not a function")},av=function(e,t){var n=e[t];return n==null?void 0:T3(n)},Hz=Be.TypeError,Vz=Object.defineProperty,qi=Be["__core-js_shared__"]||(function(e,t){try{Vz(Be,e,{value:t,configurable:!0,writable:!0})}catch{Be[e]=t}return t})("__core-js_shared__",{}),es=Qu(function(e){(e.exports=function(t,n){return qi[t]||(qi[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Uz=Be.Object,mp=function(e){return Uz(k3(e))},Wz=pt({}.hasOwnProperty),Ve=Object.hasOwn||function(e,t){return Wz(mp(e),t)},Gz=0,qz=Math.random(),Kz=pt(1 .toString),uv=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Kz(++Gz+qz,36)},bc=es("wks"),hu=Be.Symbol,Zx=hu&&hu.for,Xz=F3?hu:hu&&hu.withoutSetter||uv,Bn=function(e){if(!Ve(bc,e)||!so&&typeof bc[e]!="string"){var t="Symbol."+e;so&&Ve(hu,e)?bc[e]=hu[e]:bc[e]=F3&&Zx?Zx(t):Xz(t)}return bc[e]},Zz=Be.TypeError,Yz=Bn("toPrimitive"),Jz=function(e,t){if(!Er(e)||al(e))return e;var n,r=av(e,Yz);if(r){if(n=tr(r,e,t),!Er(n)||al(n))return n;throw Zz("Can't convert object to primitive value")}return(function(o,i){var a,u;if(pn(a=o.toString)&&!Er(u=tr(a,o))||pn(a=o.valueOf)&&!Er(u=tr(a,o)))return u;throw Hz("Can't convert object to primitive value")})(e)},Xl=function(e){var t=Jz(e,"string");return al(t)?t:t+""},Xw=Be.document,Qz=Er(Xw)&&Er(Xw.createElement),I_=function(e){return Qz?Xw.createElement(e):{}},L_=!Hn&&!Gn(function(){return Object.defineProperty(I_("div"),"a",{get:function(){return 7}}).a!=7}),Yx=Object.getOwnPropertyDescriptor,e$=Hn?Yx:function(e,t){if(e=_o(e),t=Xl(t),L_)try{return Yx(e,t)}catch{}if(Ve(e,t))return Wr(!tr(B3.f,e,t),e[t])},vy={f:e$},t$=/#|\.prototype\./,bp=function(e,t){var n=r$[n$(e)];return n==i$||n!=o$&&(pn(t)?Gn(t):!!t)},n$=bp.normalize=function(e){return String(e).replace(t$,".").toLowerCase()},r$=bp.data={},o$=bp.NATIVE="N",i$=bp.POLYFILL="P",a$=bp,Jx=pt(pt.bind),_3=function(e,t){return T3(e),t===void 0?e:Jx?Jx(e,t):function(){return e.apply(t,arguments)}},u$=Be.String,s$=Be.TypeError,or=function(e){if(Er(e))return e;throw s$(u$(e)+" is not an object")},l$=Be.TypeError,Qx=Object.defineProperty,c$=Hn?Qx:function(e,t,n){if(or(e),t=Xl(t),or(n),L_)try{return Qx(e,t,n)}catch{}if("get"in n||"set"in n)throw l$("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Aa={f:c$},Tn=Hn?function(e,t,n){return Aa.f(e,t,Wr(1,n))}:function(e,t,n){return e[t]=n,e},f$=vy.f,d$=function(e){var t=function(n,r,o){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,o)}return j_(e,this,arguments)};return t.prototype=e.prototype,t},Go=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,y=f?Be:d?Be[c]:(Be[c]||{}).prototype,v=f?Qn:Qn[c]||Tn(Qn,c,{})[c],g=v.prototype;for(o in t)n=!a$(f?o:c+(d?".":"#")+o,e.forced)&&y&&Ve(y,o),a=v[o],n&&(u=e.noTargetGet?(l=f$(y,o))&&l.value:y[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?_3(i,Be):e.wrap&&n?d$(i):p&&pn(i)?pt(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Tn(s,"sham",!0),Tn(v,o,s),p&&(Ve(Qn,r=c+"Prototype")||Tn(Qn,r,{}),Tn(Qn[r],o,i),e.real&&g&&!g[o]&&Tn(g,o,i)))},eC=es("keys"),yy=function(e){return eC[e]||(eC[e]=uv(e))},p$=!Gn(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),tC=yy("IE_PROTO"),Zw=Be.Object,h$=Zw.prototype,sv=p$?Zw.getPrototypeOf:function(e){var t=mp(e);if(Ve(t,tC))return t[tC];var n=t.constructor;return pn(n)&&t instanceof n?n.prototype:t instanceof Zw?h$:null},g$=Be.String,v$=Be.TypeError,lv=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=pt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return or(r),(function(i){if(typeof i=="object"||pn(i))return i;throw v$("Can't set "+g$(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),y$=Math.ceil,m$=Math.floor,j3=function(e){var t=+e;return t!=t||t===0?0:(t>0?m$:y$)(t)},b$=Math.max,w$=Math.min,Yw=function(e,t){var n=j3(e);return n<0?b$(n+t,0):w$(n,t)},E$=Math.min,wp=function(e){return(t=e.length)>0?E$(j3(t),9007199254740991):0;var t},D$=function(e){return function(t,n,r){for(var o=_o(t),i=wp(o),a=Yw(r,i);i>a;a++)if(a in o&&o[a]===n)return a||0;return-1}},x$={indexOf:D$()},Ep={},C$=x$.indexOf,nC=pt([].push),R_=function(e,t){var n,r=_o(e),o=0,i=[];for(n in r)!Ve(Ep,n)&&Ve(r,n)&&nC(i,n);for(;t.length>o;)Ve(r,n=t[o++])&&(~C$(i,n)||nC(i,n));return i},cv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],S$=cv.concat("length","prototype"),A$=Object.getOwnPropertyNames||function(e){return R_(e,S$)},P3={f:A$},Ag={f:Object.getOwnPropertySymbols},O$=pt([].concat),B$=Kl("Reflect","ownKeys")||function(e){var t=P3.f(or(e)),n=Ag.f;return n?O$(t,n(e)):t},N3=Object.keys||function(e){return R_(e,cv)},k$=Hn?Object.defineProperties:function(e,t){or(e);for(var n,r=_o(t),o=N3(t),i=o.length,a=0;i>a;)Aa.f(e,n=o[a++],r[n]);return e},F$=Kl("document","documentElement"),M_=yy("IE_PROTO"),Om=function(){},z_=function(e){return"<script>"+e+"<\/script>"},rC=function(e){e.write(z_("")),e.close();var t=e.parentWindow.Object;return e=null,t},Og=function(){try{bh=new ActiveXObject("htmlfile")}catch{}var e,t;Og=typeof document<"u"?document.domain&&bh?rC(bh):((t=I_("iframe")).style.display="none",F$.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(z_("document.F=Object")),e.close(),e.F):rC(bh);for(var n=cv.length;n--;)delete Og.prototype[cv[n]];return Og()};Ep[M_]=!0;var oi=Object.create||function(e,t){var n;return e!==null?(Om.prototype=or(e),n=new Om,Om.prototype=null,n[M_]=e):n=Og(),t===void 0?n:k$(n,t)},Jw=function(e,t,n){var r=Xl(t);r in e?Aa.f(e,r,Wr(0,n)):e[r]=n},T$=Be.Array,_$=Math.max,$_=function(e,t,n){for(var r=wp(e),o=Yw(t,r),i=Yw(r,r),a=T$(_$(i-o,0)),u=0;o<i;o++,u++)Jw(a,u,e[o]);return a.length=u,a},j$=pt("".replace),P$=pt("".split),N$=pt([].join),Qw=String(Error("zxcasd").stack),H_=/\n\s*at [^:]*:[^\n]*/,I$=H_.test(Qw),L$=/@[^\n]*\n/.test(Qw)&&!/zxcasd/.test(Qw),R$=function(e,t){if(typeof e!="string")return e;if(I$)for(;t--;)e=j$(e,H_,"");else if(L$)return N$($_(P$(e,`
|
|
2
|
+
`),t),`
|
|
3
|
+
`);return e},M$=function(e,t){Er(t)&&"cause"in t&&Tn(e,"cause",t.cause)},ei={},z$=Bn("iterator"),$$=Array.prototype,V_={};V_[Bn("toStringTag")]="z";var I3=String(V_)==="[object z]",H$=Bn("toStringTag"),V$=Be.Object,U$=pu((function(){return arguments})())=="Arguments",Dp=I3?pu:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=V$(e),H$))=="string"?n:U$?pu(t):(r=pu(t))=="Object"&&pn(t.callee)?"Arguments":r},W$=Bn("iterator"),oC=function(e){if(e!=null)return av(e,W$)||av(e,"@@iterator")||ei[Dp(e)]},G$=Be.TypeError,iC=function(e,t,n){var r,o;or(e);try{if(!(r=av(e,"return"))){if(t==="throw")throw n;return n}r=tr(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return or(r),n},q$=Be.TypeError,Bg=function(e,t){this.stopped=e,this.result=t},aC=Bg.prototype,K$=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),y=_3(t,c),v=function(m){return r&&iC(r,"normal",m),new Bg(!0,m)},g=function(m){return f?(or(m),p?y(m[0],m[1],v):y(m[0],m[1])):p?y(m,v):y(m)};if(d)r=e;else{if(!(o=oC(e)))throw q$(Kw(e)+" is not iterable");if((function(m){return m!==void 0&&(ei.Array===m||$$[z$]===m)})(o)){for(i=0,a=wp(e);a>i;i++)if((u=g(e[i]))&&wd(aC,u))return u;return new Bg(!1)}r=(function(m,h){var b=arguments.length<2?oC(m):h;if(T3(b))return or(tr(b,m));throw G$(Kw(m)+" is not iterable")})(e,o)}for(s=r.next;!(l=tr(s,r)).done;){try{u=g(l.value)}catch(m){iC(r,"throw",m)}if(typeof u=="object"&&u&&wd(aC,u))return u}return new Bg(!1)},X$=Be.String,Ed=function(e){if(Dp(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return X$(e)},Z$=function(e,t){return e===void 0?arguments.length<2?"":t:Ed(e)},Y$=!Gn(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Wr(1,7)),e.stack!==7)}),J$=Bn("toStringTag"),fv=Be.Error,Q$=[].push,Dd=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=wd(Bm,this);lv?n=lv(new fv(void 0),o?sv(this):Bm):(n=o?this:oi(Bm),Tn(n,J$,"Error")),Tn(n,"message",Z$(t,"")),Y$&&Tn(n,"stack",R$(n.stack,1)),M$(n,r);var i=[];return K$(e,Q$,{that:i}),Tn(n,"errors",i),n};lv?lv(Dd,fv):(function(e,t){for(var n=B$(t),r=Aa.f,o=vy.f,i=0;i<n.length;i++){var a=n[i];Ve(e,a)||r(e,a,o(t,a))}})(Dd,fv);var Bm=Dd.prototype=oi(fv.prototype,{constructor:Wr(1,Dd),message:Wr(1,""),name:Wr(1,"AggregateError")});Go({global:!0},{AggregateError:Dd});var eH=pt(Function.toString);pn(qi.inspectSource)||(qi.inspectSource=function(e){return eH(e)});var dv,Zf,pv,U_=qi.inspectSource,uC=Be.WeakMap,tH=pn(uC)&&/native code/.test(U_(uC)),e4=Be.TypeError,nH=Be.WeakMap;if(tH||qi.state){var Ra=qi.state||(qi.state=new nH),rH=pt(Ra.get),sC=pt(Ra.has),oH=pt(Ra.set);dv=function(e,t){if(sC(Ra,e))throw new e4("Object already initialized");return t.facade=e,oH(Ra,e,t),t},Zf=function(e){return rH(Ra,e)||{}},pv=function(e){return sC(Ra,e)}}else{var vs=yy("state");Ep[vs]=!0,dv=function(e,t){if(Ve(e,vs))throw new e4("Object already initialized");return t.facade=e,Tn(e,vs,t),t},Zf=function(e){return Ve(e,vs)?e[vs]:{}},pv=function(e){return Ve(e,vs)}}var $i,lC,cC,Zl={set:dv,get:Zf,has:pv,enforce:function(e){return pv(e)?Zf(e):dv(e,{})},getterFor:function(e){return function(t){var n;if(!Er(t)||(n=Zf(t)).type!==e)throw e4("Incompatible receiver, "+e+" required");return n}}},W_=Function.prototype,iH=Hn&&Object.getOwnPropertyDescriptor,fC=Ve(W_,"name"),aH={PROPER:fC&&(function(){}).name==="something",CONFIGURABLE:fC&&(!Hn||Hn&&iH(W_,"name").configurable)},hv=function(e,t,n,r){Tn(e,t,n)},t4=Bn("iterator"),G_=!1;[].keys&&("next"in(cC=[].keys())?(lC=sv(sv(cC)))!==Object.prototype&&($i=lC):G_=!0);var uH=$i==null||Gn(function(){var e={};return $i[t4].call(e)!==e});$i=uH?{}:oi($i),pn($i[t4])||hv($i,t4,function(){return this});var q_={IteratorPrototype:$i,BUGGY_SAFARI_ITERATORS:G_},sH=I3?{}.toString:function(){return"[object "+Dp(this)+"]"},lH=Aa.f,dC=Bn("toStringTag"),gv=function(e,t,n,r){if(e){var o=n?e:e.prototype;Ve(o,dC)||lH(o,dC,{configurable:!0,value:t}),r&&!I3&&Tn(o,"toString",sH)}},cH=q_.IteratorPrototype,fH=function(){return this},dH=aH.PROPER,km=q_.BUGGY_SAFARI_ITERATORS,pH=Bn("iterator"),hH=function(){return this},K_=function(e,t,n,r,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=oi(cH,{next:Wr(1,h)}),gv(g,w,!1,!0),ei[w]=fH})(n,t,r);var u,s,l=function(g){if(g===o&&y)return y;if(!km&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[pH]||d["@@iterator"]||o&&d[o],y=!km&&p||l(o),v=t=="Array"&&d.entries||p;return v&&(u=sv(v.call(new e)))!==Object.prototype&&u.next&&(gv(u,c,!0,!0),ei[c]=hH),dH&&o=="values"&&p&&p.name!=="values"&&(f=!0,y=function(){return tr(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},Go({target:t,proto:!0,forced:km||f},s)),ei[t]=y,s},gH=Zl.set,vH=Zl.getterFor("Array Iterator");K_(Array,"Array",function(e,t){gH(this,{type:"Array Iterator",target:_o(e),index:0,kind:t})},function(){var e=vH(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"),ei.Arguments=ei.Array;var yH=pt("".charAt),pC=pt("".charCodeAt),mH=pt("".slice),bH=function(e){return function(t,n){var r,o,i=Ed(k3(t)),a=j3(n),u=i.length;return a<0||a>=u?"":(r=pC(i,a))<55296||r>56319||a+1===u||(o=pC(i,a+1))<56320||o>57343?yH(i,a):mH(i,a,a+2)}},wH={charAt:bH()}.charAt,EH=Zl.set,DH=Zl.getterFor("String Iterator");K_(String,"String",function(e){EH(this,{type:"String Iterator",string:Ed(e),index:0})},function(){var e,t=DH(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=wH(n,r),t.index+=e.length,{value:e,done:!1})});var xH=Qn.AggregateError,hC=Bn("toStringTag");for(var Fm 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 gC=Be[Fm],Tm=gC&&gC.prototype;Tm&&Dp(Tm)!==hC&&Tn(Tm,hC,Fm),ei[Fm]=ei.Array}var bi,kg,CH=xH,wh=function(e){return e&&e.Math==Math&&e},Ee=wh(typeof globalThis=="object"&&globalThis)||wh(typeof window=="object"&&window)||wh(typeof self=="object"&&self)||wh(typeof at=="object"&&at)||(function(){return this})()||Function("return this")(),sn=function(e){try{return!!e()}catch{return!0}},So=!sn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),wc=Function.prototype.call,dn=wc.bind?wc.bind(wc):function(){return wc.apply(wc,arguments)},vC={}.propertyIsEnumerable,yC=Object.getOwnPropertyDescriptor,SH=yC&&!vC.call({1:2},1)?function(e){var t=yC(this,e);return!!t&&t.enumerable}:vC,AH={f:SH},Ki=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},X_=Function.prototype,n4=X_.bind,r4=X_.call,OH=n4&&n4.bind(r4),nt=n4?function(e){return e&&OH(r4,e)}:function(e){return e&&function(){return r4.apply(e,arguments)}},BH=nt({}.toString),kH=nt("".slice),gu=function(e){return kH(BH(e),8,-1)},_m=Ee.Object,FH=nt("".split),Z_=sn(function(){return!_m("z").propertyIsEnumerable(0)})?function(e){return gu(e)=="String"?FH(e,""):_m(e)}:_m,TH=Ee.TypeError,my=function(e){if(e==null)throw TH("Can't call method on "+e);return e},Yl=function(e){return Z_(my(e))},en=function(e){return typeof e=="function"},go=function(e){return typeof e=="object"?e!==null:en(e)},_H=function(e){return en(e)?e:void 0},xp=function(e,t){return arguments.length<2?_H(Ee[e]):Ee[e]&&Ee[e][t]},vv=nt({}.isPrototypeOf),jm=xp("navigator","userAgent")||"",mC=Ee.process,bC=Ee.Deno,wC=mC&&mC.versions||bC&&bC.version,EC=wC&&wC.v8;EC&&(kg=(bi=EC.split("."))[0]>0&&bi[0]<4?1:+(bi[0]+bi[1])),!kg&&jm&&(!(bi=jm.match(/Edge\/(\d+)/))||bi[1]>=74)&&(bi=jm.match(/Chrome\/(\d+)/))&&(kg=+bi[1]);var DC=kg,o4=!!Object.getOwnPropertySymbols&&!sn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&DC&&DC<41}),L3=o4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",jH=Ee.Object,i4=L3?function(e){return typeof e=="symbol"}:function(e){var t=xp("Symbol");return en(t)&&vv(t.prototype,jH(e))},PH=Ee.String,a4=function(e){try{return PH(e)}catch{return"Object"}},NH=Ee.TypeError,R3=function(e){if(en(e))return e;throw NH(a4(e)+" is not a function")},xd=function(e,t){var n=e[t];return n==null?void 0:R3(n)},IH=Ee.TypeError,LH=Object.defineProperty,M3=function(e,t){try{LH(Ee,e,{value:t,configurable:!0,writable:!0})}catch{Ee[e]=t}return t},Xi=Ee["__core-js_shared__"]||M3("__core-js_shared__",{}),z3=Qu(function(e){(e.exports=function(t,n){return Xi[t]||(Xi[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),RH=Ee.Object,$3=function(e){return RH(my(e))},MH=nt({}.hasOwnProperty),Vn=Object.hasOwn||function(e,t){return MH($3(e),t)},zH=0,$H=Math.random(),HH=nt(1 .toString),Y_=function(e){return"Symbol("+(e===void 0?"":e)+")_"+HH(++zH+$H,36)},Ec=z3("wks"),vu=Ee.Symbol,xC=vu&&vu.for,VH=L3?vu:vu&&vu.withoutSetter||Y_,Pn=function(e){if(!Vn(Ec,e)||!o4&&typeof Ec[e]!="string"){var t="Symbol."+e;o4&&Vn(vu,e)?Ec[e]=vu[e]:Ec[e]=L3&&xC?xC(t):VH(t)}return Ec[e]},UH=Ee.TypeError,WH=Pn("toPrimitive"),GH=function(e,t){if(!go(e)||i4(e))return e;var n,r=xd(e,WH);if(r){if(n=dn(r,e,t),!go(n)||i4(n))return n;throw UH("Can't convert object to primitive value")}return(function(o,i){var a,u;if(en(a=o.toString)&&!go(u=dn(a,o))||en(a=o.valueOf)&&!go(u=dn(a,o)))return u;throw IH("Can't convert object to primitive value")})(e)},H3=function(e){var t=GH(e,"string");return i4(t)?t:t+""},u4=Ee.document,qH=go(u4)&&go(u4.createElement),V3=function(e){return qH?u4.createElement(e):{}},J_=!So&&!sn(function(){return Object.defineProperty(V3("div"),"a",{get:function(){return 7}}).a!=7}),CC=Object.getOwnPropertyDescriptor,KH=So?CC:function(e,t){if(e=Yl(e),t=H3(t),J_)try{return CC(e,t)}catch{}if(Vn(e,t))return Ki(!dn(AH.f,e,t),e[t])},U3={f:KH},XH=Ee.String,ZH=Ee.TypeError,ir=function(e){if(go(e))return e;throw ZH(XH(e)+" is not an object")},YH=Ee.TypeError,SC=Object.defineProperty,JH=So?SC:function(e,t,n){if(ir(e),t=H3(t),ir(n),J_)try{return SC(e,t,n)}catch{}if("get"in n||"set"in n)throw YH("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Jl={f:JH},zn=So?function(e,t,n){return Jl.f(e,t,Ki(1,n))}:function(e,t,n){return e[t]=n,e},QH=nt(Function.toString);en(Xi.inspectSource)||(Xi.inspectSource=function(e){return QH(e)});var yv,Yf,mv,W3=Xi.inspectSource,AC=Ee.WeakMap,eV=en(AC)&&/native code/.test(W3(AC)),OC=z3("keys"),G3=function(e){return OC[e]||(OC[e]=Y_(e))},q3={},s4=Ee.TypeError,tV=Ee.WeakMap;if(eV||Xi.state){var Ma=Xi.state||(Xi.state=new tV),nV=nt(Ma.get),BC=nt(Ma.has),rV=nt(Ma.set);yv=function(e,t){if(BC(Ma,e))throw new s4("Object already initialized");return t.facade=e,rV(Ma,e,t),t},Yf=function(e){return nV(Ma,e)||{}},mv=function(e){return BC(Ma,e)}}else{var ys=G3("state");q3[ys]=!0,yv=function(e,t){if(Vn(e,ys))throw new s4("Object already initialized");return t.facade=e,zn(e,ys,t),t},Yf=function(e){return Vn(e,ys)?e[ys]:{}},mv=function(e){return Vn(e,ys)}}var Lu={set:yv,get:Yf,has:mv,enforce:function(e){return mv(e)?Yf(e):yv(e,{})},getterFor:function(e){return function(t){var n;if(!go(t)||(n=Yf(t)).type!==e)throw s4("Incompatible receiver, "+e+" required");return n}}},Q_=Function.prototype,oV=So&&Object.getOwnPropertyDescriptor,kC=Vn(Q_,"name"),K3={PROPER:kC&&(function(){}).name==="something",CONFIGURABLE:kC&&(!So||So&&oV(Q_,"name").configurable)},Ru=Qu(function(e){var t=K3.CONFIGURABLE,n=Lu.get,r=Lu.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;en(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Vn(u,"name")||t&&u.name!==p)&&zn(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Ee?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:zn(i,a,u)):f?i[a]=u:M3(a,u)})(Function.prototype,"toString",function(){return en(this)&&n(this).source||W3(this)})}),iV=Math.ceil,aV=Math.floor,X3=function(e){var t=+e;return t!=t||t===0?0:(t>0?aV:iV)(t)},uV=Math.max,sV=Math.min,l4=function(e,t){var n=X3(e);return n<0?uV(n+t,0):sV(n,t)},lV=Math.min,ej=function(e){return e>0?lV(X3(e),9007199254740991):0},by=function(e){return ej(e.length)},cV=function(e){return function(t,n,r){for(var o=Yl(t),i=by(o),a=l4(r,i);i>a;a++)if(a in o&&o[a]===n)return a||0;return-1}},fV={indexOf:cV()}.indexOf,FC=nt([].push),tj=function(e,t){var n,r=Yl(e),o=0,i=[];for(n in r)!Vn(q3,n)&&Vn(r,n)&&FC(i,n);for(;t.length>o;)Vn(r,n=t[o++])&&(~fV(i,n)||FC(i,n));return i},bv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],dV=bv.concat("length","prototype"),pV=Object.getOwnPropertyNames||function(e){return tj(e,dV)},hV={f:pV},gV={f:Object.getOwnPropertySymbols},vV=nt([].concat),yV=xp("Reflect","ownKeys")||function(e){var t=hV.f(ir(e)),n=gV.f;return n?vV(t,n(e)):t},nj=function(e,t){for(var n=yV(t),r=Jl.f,o=U3.f,i=0;i<n.length;i++){var a=n[i];Vn(e,a)||r(e,a,o(t,a))}},mV=/#|\.prototype\./,Cp=function(e,t){var n=wV[bV(e)];return n==DV||n!=EV&&(en(t)?sn(t):!!t)},bV=Cp.normalize=function(e){return String(e).replace(mV,".").toLowerCase()},wV=Cp.data={},EV=Cp.NATIVE="N",DV=Cp.POLYFILL="P",xV=Cp,CV=U3.f,Sp=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ee:l?Ee[u]||M3(u,{}):(Ee[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=CV(n,r))&&a.value:n[r],!xV(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;nj(i,o)}(e.sham||o&&o.sham)&&zn(i,"sham",!0),Ru(n,r,i,e)}},rj={};rj[Pn("toStringTag")]="z";var Eh,Z3=String(rj)==="[object z]",SV=Pn("toStringTag"),AV=Ee.Object,OV=gu((function(){return arguments})())=="Arguments",wy=Z3?gu:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=AV(e),SV))=="string"?n:OV?gu(t):(r=gu(t))=="Object"&&en(t.callee)?"Arguments":r},BV=Ee.String,yu=function(e){if(wy(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return BV(e)},kV=function(){var e=ir(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},Y3=Ee.RegExp,oj=sn(function(){var e=Y3("a","y");return e.lastIndex=2,e.exec("abcd")!=null});oj||sn(function(){return!Y3("a","y").sticky});var FV=oj||sn(function(){var e=Y3("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),TV={BROKEN_CARET:FV},_V=Object.keys||function(e){return tj(e,bv)},jV=So?Object.defineProperties:function(e,t){ir(e);for(var n,r=Yl(t),o=_V(t),i=o.length,a=0;i>a;)Jl.f(e,n=o[a++],r[n]);return e},PV=xp("document","documentElement"),ij=G3("IE_PROTO"),Pm=function(){},aj=function(e){return"<script>"+e+"<\/script>"},TC=function(e){e.write(aj("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fg=function(){try{Eh=new ActiveXObject("htmlfile")}catch{}var e,t;Fg=typeof document<"u"?document.domain&&Eh?TC(Eh):((t=V3("iframe")).style.display="none",PV.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(aj("document.F=Object")),e.close(),e.F):TC(Eh);for(var n=bv.length;n--;)delete Fg.prototype[bv[n]];return Fg()};q3[ij]=!0;var _C,Nm,Ap=Object.create||function(e,t){var n;return e!==null?(Pm.prototype=ir(e),n=new Pm,Pm.prototype=null,n[ij]=e):n=Fg(),t===void 0?n:jV(n,t)},NV=Ee.RegExp,IV=sn(function(){var e=NV(".","s");return!(e.dotAll&&e.exec(`
|
|
4
|
+
`)&&e.flags==="s")}),LV=Ee.RegExp,RV=sn(function(){var e=LV("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),MV=Lu.get,zV=z3("native-string-replace",String.prototype.replace),wv=RegExp.prototype.exec,c4=wv,$V=nt("".charAt),HV=nt("".indexOf),VV=nt("".replace),Im=nt("".slice),Lm=(Nm=/b*/g,dn(wv,_C=/a/,"a"),dn(wv,Nm,"a"),_C.lastIndex!==0||Nm.lastIndex!==0),jC=TV.BROKEN_CARET,Rm=/()??/.exec("")[1]!==void 0;(Lm||Rm||jC||IV||RV)&&(c4=function(e){var t,n,r,o,i,a,u,s=this,l=MV(s),c=yu(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=dn(c4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=jC&&s.sticky,y=dn(kV,s),v=s.source,g=0,m=c;if(p&&(y=VV(y,"y",""),HV(y,"g")===-1&&(y+="g"),m=Im(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&$V(c,s.lastIndex-1)!==`
|
|
5
|
+
`)&&(v="(?: "+v+")",m=" "+m,g++),n=new RegExp("^(?:"+v+")",y)),Rm&&(n=new RegExp("^"+v+"$(?!\\s)",y)),Lm&&(r=s.lastIndex),o=dn(wv,p?n:s,m),p?o?(o.input=Im(o.input,g),o[0]=Im(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Lm&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Rm&&o&&o.length>1&&dn(zV,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Ap(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ev=c4;Sp({target:"RegExp",proto:!0,forced:/./.exec!==Ev},{exec:Ev});var UV=Pn("species"),PC=RegExp.prototype,WV=nt("".charAt),NC=nt("".charCodeAt),GV=nt("".slice),qV=function(e){return function(t,n){var r,o,i=yu(my(t)),a=X3(n),u=i.length;return a<0||a>=u?"":(r=NC(i,a))<55296||r>56319||a+1===u||(o=NC(i,a+1))<56320||o>57343?WV(i,a):GV(i,a,a+2)}},uj={charAt:qV()},KV=uj.charAt,XV=function(e,t,n){return t+(n?KV(e,t).length:1)},ZV=Ee.TypeError,IC=function(e,t){var n=e.exec;if(en(n)){var r=dn(n,e,t);return r!==null&&ir(r),r}if(gu(e)==="RegExp")return dn(Ev,e,t);throw ZV("RegExp#exec called on incompatible receiver")};(function(e,t,n,r){var o=Pn(e),i=!sn(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!sn(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[UV]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=nt(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var y=nt(l),v=c.exec;return v===Ev||v===PC.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:y(f,c,d)}:{done:!1}});Ru(String.prototype,e,s[0]),Ru(PC,o,s[1])}})("match",function(e,t,n){return[function(r){var o=my(this),i=r==null?void 0:xd(r,e);return i?dn(i,r,o):new RegExp(r)[e](yu(o))},function(r){var o=ir(this),i=yu(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return IC(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=IC(o,i))!==null;){var f=yu(s[0]);l[c]=f,f===""&&(o.lastIndex=XV(i,ej(o.lastIndex),u)),c++}return c===0?null:l}]}),Sp({global:!0},{globalThis:Ee});var YV=!sn(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),LC=G3("IE_PROTO"),f4=Ee.Object,JV=f4.prototype,Cd=YV?f4.getPrototypeOf:function(e){var t=$3(e);if(Vn(t,LC))return t[LC];var n=t.constructor;return en(n)&&t instanceof n?n.prototype:t instanceof f4?JV:null},QV=Ee.String,eU=Ee.TypeError,bl=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=nt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return ir(r),(function(i){if(typeof i=="object"||en(i))return i;throw eU("Can't set "+QV(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),tU=Ee.Array,nU=Math.max,rU=nt("".replace),oU=nt("".split),iU=nt([].join),d4=String(Error("zxcasd").stack),sj=/\n\s*at [^:]*:[^\n]*/,aU=sj.test(d4),uU=/@[^\n]*\n/.test(d4)&&!/zxcasd/.test(d4),sU=function(e,t){if(typeof e!="string")return e;if(aU)for(;t--;)e=rU(e,sj,"");else if(uU)return iU((function(n,r,o){for(var i,a,u,s,l=by(n),c=l4(r,l),f=l4(l,l),d=tU(nU(f-c,0)),p=0;c<f;c++,p++)i=d,a=p,u=n[c],s=void 0,(s=H3(a))in i?Jl.f(i,s,Ki(0,u)):i[s]=u;return d.length=p,d})(oU(e,`
|
|
6
|
+
`),t),`
|
|
7
|
+
`);return e},lU=function(e,t){go(t)&&"cause"in t&&zn(e,"cause",t.cause)},RC=nt(nt.bind),lj=function(e,t){return R3(e),t===void 0?e:RC?RC(e,t):function(){return e.apply(t,arguments)}},wl={},cU=Pn("iterator"),fU=Array.prototype,dU=Pn("iterator"),MC=function(e){if(e!=null)return xd(e,dU)||xd(e,"@@iterator")||wl[wy(e)]},pU=Ee.TypeError,zC=function(e,t,n){var r,o;ir(e);try{if(!(r=xd(e,"return"))){if(t==="throw")throw n;return n}r=dn(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return ir(r),n},hU=Ee.TypeError,Tg=function(e,t){this.stopped=e,this.result=t},$C=Tg.prototype,gU=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),y=lj(t,c),v=function(m){return r&&zC(r,"normal",m),new Tg(!0,m)},g=function(m){return f?(ir(m),p?y(m[0],m[1],v):y(m[0],m[1])):p?y(m,v):y(m)};if(d)r=e;else{if(!(o=MC(e)))throw hU(a4(e)+" is not iterable");if((function(m){return m!==void 0&&(wl.Array===m||fU[cU]===m)})(o)){for(i=0,a=by(e);a>i;i++)if((u=g(e[i]))&&vv($C,u))return u;return new Tg(!1)}r=(function(m,h){var b=arguments.length<2?MC(m):h;if(R3(b))return ir(dn(b,m));throw pU(a4(m)+" is not iterable")})(e,o)}for(s=r.next;!(l=dn(s,r)).done;){try{u=g(l.value)}catch(m){zC(r,"throw",m)}if(typeof u=="object"&&u&&vv($C,u))return u}return new Tg(!1)},vU=function(e,t){return e===void 0?arguments.length<2?"":t:yu(e)},yU=!sn(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ki(1,7)),e.stack!==7)}),mU=Pn("toStringTag"),Dv=Ee.Error,bU=[].push,Sd=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=vv(Mm,this);bl?n=bl(new Dv(void 0),o?Cd(this):Mm):(n=o?this:Ap(Mm),zn(n,mU,"Error")),zn(n,"message",vU(t,"")),yU&&zn(n,"stack",sU(n.stack,1)),lU(n,r);var i=[];return gU(e,bU,{that:i}),zn(n,"errors",i),n};bl?bl(Sd,Dv):nj(Sd,Dv);var Mm=Sd.prototype=Ap(Dv.prototype,{constructor:Ki(1,Sd),message:Ki(1,""),name:Ki(1,"AggregateError")});Sp({global:!0},{AggregateError:Sd});var p4=Pn("unscopables"),h4=Array.prototype;h4[p4]==null&&Jl.f(h4,p4,{configurable:!0,value:Ap(null)});var mu,HC,VC,zm=function(e){h4[p4][e]=!0},g4=Pn("iterator"),cj=!1;[].keys&&("next"in(VC=[].keys())?(HC=Cd(Cd(VC)))!==Object.prototype&&(mu=HC):cj=!0);var wU=mu==null||sn(function(){var e={};return mu[g4].call(e)!==e});wU&&(mu={}),en(mu[g4])||Ru(mu,g4,function(){return this});var J3={IteratorPrototype:mu,BUGGY_SAFARI_ITERATORS:cj},EU=Jl.f,UC=Pn("toStringTag"),WC=function(e,t,n){e&&!Vn(e=n?e:e.prototype,UC)&&EU(e,UC,{configurable:!0,value:t})},DU=J3.IteratorPrototype,xU=function(){return this},CU=K3.PROPER,SU=K3.CONFIGURABLE,GC=J3.IteratorPrototype,$m=J3.BUGGY_SAFARI_ITERATORS,Dc=Pn("iterator"),AU=function(){return this},fj=function(e,t,n,r,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=Ap(DU,{next:Ki(1,h)}),WC(g,w,!1),wl[w]=xU})(n,t,r);var u,s,l=function(g){if(g===o&&y)return y;if(!$m&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[Dc]||d["@@iterator"]||o&&d[o],y=!$m&&p||l(o),v=t=="Array"&&d.entries||p;return v&&(u=Cd(v.call(new e)))!==Object.prototype&&u.next&&(Cd(u)!==GC&&(bl?bl(u,GC):en(u[Dc])||Ru(u,Dc,AU)),WC(u,c,!0)),CU&&o=="values"&&p&&p.name!=="values"&&(SU?zn(d,"name","values"):(f=!0,y=function(){return dn(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},Sp({target:t,proto:!0,forced:$m||f},s)),d[Dc]!==y&&Ru(d,Dc,y,{name:o}),wl[t]=y,s},OU=Lu.set,BU=Lu.getterFor("Array Iterator"),zf=fj(Array,"Array",function(e,t){OU(this,{type:"Array Iterator",target:Yl(e),index:0,kind:t})},function(){var e=BU(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");wl.Arguments=wl.Array,zm("keys"),zm("values"),zm("entries");var kU=uj.charAt,FU=Lu.set,TU=Lu.getterFor("String Iterator");fj(String,"String",function(e){FU(this,{type:"String Iterator",string:yu(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=kU(n,r),t.index+=e.length,{value:e,done:!1})});var Hm,xv={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},Vm=V3("span").classList,qC=Vm&&Vm.constructor&&Vm.constructor.prototype,dj=qC===Object.prototype?void 0:qC,Um=Pn("iterator"),KC=Pn("toStringTag"),Wm=zf.values,pj=function(e,t){if(e){if(e[Um]!==Wm)try{zn(e,Um,Wm)}catch{e[Um]=Wm}if(e[KC]||zn(e,KC,t),xv[t]){for(var n in zf)if(e[n]!==zf[n])try{zn(e,n,zf[n])}catch{e[n]=zf[n]}}}};for(var Gm in xv)pj(Ee[Gm]&&Ee[Gm].prototype,Gm);pj(dj,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
|
|
8
|
+
Sorry, wangEditor V5+ versions do not support IE browser.`),XC(),ZC()):global&&!((Hm=global.navigator)===null||Hm===void 0)&&Hm.userAgent.match("QQBrowser")&&(XC(),ZC());function XC(){typeof globalThis>"u"&&(window.globalThis=window)}function ZC(){CH===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var YC,Cv=Array.isArray||function(e){return pu(e)=="Array"},hj=function(){},_U=[],gj=Kl("Reflect","construct"),Q3=/^\s*(?:class|function)\b/,jU=pt(Q3.exec),PU=!Q3.exec(hj),xc=function(e){if(!pn(e))return!1;try{return gj(hj,_U,e),!0}catch{return!1}},NU=!gj||Gn(function(){var e;return xc(xc.call)||!xc(Object)||!xc(function(){e=!0})||e})?function(e){if(!pn(e))return!1;switch(Dp(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return PU||!!jU(Q3,U_(e))}:xc,IU=Bn("species"),JC=Be.Array,vj=function(e,t){return new((function(n){var r;return Cv(n)&&(r=n.constructor,(NU(r)&&(r===JC||Cv(r.prototype))||Er(r)&&(r=r[IU])===null)&&(r=void 0)),r===void 0?JC:r})(e))(t===0?0:t)},LU=Bn("species"),yj=Bn("isConcatSpreadable"),QC=Be.TypeError,RU=iv>=51||!Gn(function(){var e=[];return e[yj]=!1,e.concat()[0]!==e}),MU=(YC="concat",iv>=51||!Gn(function(){var e=[];return(e.constructor={})[LU]=function(){return{foo:1}},e[YC](Boolean).foo!==1})),zU=function(e){if(!Er(e))return!1;var t=e[yj];return t!==void 0?!!t:Cv(e)};Go({target:"Array",proto:!0,forced:!RU||!MU},{concat:function(e){var t,n,r,o,i,a=mp(this),u=vj(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(zU(i=t===-1?a:arguments[t])){if(s+(o=wp(i))>9007199254740991)throw QC("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&Jw(u,s,i[n])}else{if(s>=9007199254740991)throw QC("Maximum allowed index exceeded");Jw(u,s++,i)}return u.length=s,u}});var eS=P3.f,tS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],mj={f:function(e){return tS&&pu(e)=="Window"?(function(t){try{return eS(t)}catch{return $_(tS)}})(e):eS(_o(e))}},$U=pt([].slice),e8={f:Bn},HU=Aa.f,jt=function(e){var t=Qn.Symbol||(Qn.Symbol={});Ve(t,e)||HU(t,e,{value:e8.f(e)})};pt([].push);var VU=function(e){return function(t,n,r,o){for(var i,a,u=mp(t),s=N_(u),l=_3(n,r),c=wp(s),f=0,d=o||vj,p=void 0;c>f;f++)f in s&&(a=l(i=s[f],f,u));return p}},Ey={forEach:VU(0)}.forEach,Rn=yy("hidden"),nS=Bn("toPrimitive"),UU=Zl.set,rS=Zl.getterFor("Symbol"),Hr=Object.prototype,Li=Be.Symbol,Hi=Li&&Li.prototype,oS=Be.TypeError,qm=Be.QObject,Cc=Kl("JSON","stringify"),bj=vy.f,Ri=Aa.f,wj=mj.f,WU=B3.f,Ej=pt([].push),ii=es("symbols"),Op=es("op-symbols"),Km=es("string-to-symbol-registry"),Xm=es("symbol-to-string-registry"),GU=es("wks"),Zm=!qm||!qm.prototype||!qm.prototype.findChild,v4=Hn&&Gn(function(){return oi(Ri({},"a",{get:function(){return Ri(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=bj(Hr,t);r&&delete Hr[t],Ri(e,t,n),r&&e!==Hr&&Ri(Hr,t,r)}:Ri,Ym=function(e,t){var n=ii[e]=oi(Hi);return UU(n,{type:"Symbol",tag:e,description:t}),Hn||(n.description=t),n},Sv=function(e,t,n){e===Hr&&Sv(Op,t,n),or(e);var r=Xl(t);return or(n),Ve(ii,r)?(n.enumerable?(Ve(e,Rn)&&e[Rn][r]&&(e[Rn][r]=!1),n=oi(n,{enumerable:Wr(0,!1)})):(Ve(e,Rn)||Ri(e,Rn,Wr(1,{})),e[Rn][r]=!0),v4(e,r,n)):Ri(e,r,n)},iS=function(e,t){or(e);var n=_o(t),r=N3(n).concat(y4(n));return Ey(r,function(o){Hn&&!tr(Dj,n,o)||Sv(e,o,n[o])}),e},Dj=function(e){var t=Xl(e),n=tr(WU,this,t);return!(this===Hr&&Ve(ii,t)&&!Ve(Op,t))&&(!(n||!Ve(this,t)||!Ve(ii,t)||Ve(this,Rn)&&this[Rn][t])||n)},aS=function(e,t){var n=_o(e),r=Xl(t);if(n!==Hr||!Ve(ii,r)||Ve(Op,r)){var o=bj(n,r);return!o||!Ve(ii,r)||Ve(n,Rn)&&n[Rn][r]||(o.enumerable=!0),o}},uS=function(e){var t=wj(_o(e)),n=[];return Ey(t,function(r){Ve(ii,r)||Ve(Ep,r)||Ej(n,r)}),n},y4=function(e){var t=e===Hr,n=wj(t?Op:_o(e)),r=[];return Ey(n,function(o){!Ve(ii,o)||t&&!Ve(Hr,o)||Ej(r,ii[o])}),r};if(so||(Hi=(Li=function(){if(wd(Hi,this))throw oS("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?Ed(arguments[0]):void 0,t=uv(e),n=function(r){this===Hr&&tr(n,Op,r),Ve(this,Rn)&&Ve(this[Rn],t)&&(this[Rn][t]=!1),v4(this,t,Wr(1,r))};return Hn&&Zm&&v4(Hr,t,{configurable:!0,set:n}),Ym(t,e)}).prototype,hv(Hi,"toString",function(){return rS(this).tag}),hv(Li,"withoutSetter",function(e){return Ym(uv(e),e)}),B3.f=Dj,Aa.f=Sv,vy.f=aS,P3.f=mj.f=uS,Ag.f=y4,e8.f=function(e){return Ym(Bn(e),e)},Hn&&Ri(Hi,"description",{configurable:!0,get:function(){return rS(this).description}})),Go({global:!0,wrap:!0,forced:!so,sham:!so},{Symbol:Li}),Ey(N3(GU),function(e){jt(e)}),Go({target:"Symbol",stat:!0,forced:!so},{for:function(e){var t=Ed(e);if(Ve(Km,t))return Km[t];var n=Li(t);return Km[t]=n,Xm[n]=t,n},keyFor:function(e){if(!al(e))throw oS(e+" is not a symbol");if(Ve(Xm,e))return Xm[e]},useSetter:function(){Zm=!0},useSimple:function(){Zm=!1}}),Go({target:"Object",stat:!0,forced:!so,sham:!Hn},{create:function(e,t){return t===void 0?oi(e):iS(oi(e),t)},defineProperty:Sv,defineProperties:iS,getOwnPropertyDescriptor:aS}),Go({target:"Object",stat:!0,forced:!so},{getOwnPropertyNames:uS,getOwnPropertySymbols:y4}),Go({target:"Object",stat:!0,forced:Gn(function(){Ag.f(1)})},{getOwnPropertySymbols:function(e){return Ag.f(mp(e))}}),Cc){var qU=!so||Gn(function(){var e=Li();return Cc([e])!="[null]"||Cc({a:e})!="{}"||Cc(Object(e))!="{}"});Go({target:"JSON",stat:!0,forced:qU},{stringify:function(e,t,n){var r=$U(arguments),o=t;if((Er(t)||e!==void 0)&&!al(e))return Cv(t)||(t=function(i,a){if(pn(o)&&(a=tr(o,this,i,a)),!al(a))return a}),r[1]=t,j_(Cc,null,r)}})}if(!Hi[nS]){var KU=Hi.valueOf;hv(Hi,nS,function(e){return tr(KU,this)})}gv(Li,"Symbol"),Ep[Rn]=!0,jt("asyncIterator"),jt("hasInstance"),jt("isConcatSpreadable"),jt("iterator"),jt("match"),jt("matchAll"),jt("replace"),jt("search"),jt("species"),jt("split"),jt("toPrimitive"),jt("toStringTag"),jt("unscopables"),gv(Be.JSON,"JSON",!0);var XU=Qn.Symbol;jt("asyncDispose"),jt("dispose"),jt("matcher"),jt("metadata"),jt("observable"),jt("patternMatch"),jt("replaceAll");var Dh=XU,ZU=e8.f("iterator"),YU=Qu(function(e){function t(n){return typeof Dh=="function"&&typeof ZU=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof Dh=="function"&&r.constructor===Dh&&r!==Dh.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),JU=Tz(YU),xj=U3.f,QU=sn(function(){xj(1)});if(Sp({target:"Object",stat:!0,forced:!So||QU,sham:!So},{getOwnPropertyDescriptor:function(e,t){return xj(Yl(e),t)}}),(typeof global>"u"?"undefined":JU(global))==="object"){var eW=Object.getOwnPropertyDescriptor(global,"window");global.window&&!eW.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[]})}/*!
|
|
9
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
12
|
+
* Released under the MIT License.
|
|
13
|
+
*/function sS(e){return Object.prototype.toString.call(e)==="[object Object]"}function Dn(e){var t,n;return sS(e)!==!1&&((t=e.constructor)===void 0||sS(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function $r(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(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Mu(e){return!!e&&!!e[ar]}function zu(e){return!!e&&((function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===aW})(e)||Array.isArray(e)||!!e[vS]||!!e.constructor[vS]||t8(e)||n8(e))}function Ad(e,t,n){n===void 0&&(n=!1),El(e)===0?(n?Object.keys:u8)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function El(e){var t=e[ar];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:t8(e)?2:n8(e)?3:0}function m4(e,t){return El(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Cj(e,t,n){var r=El(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function t8(e){return oW&&e instanceof Map}function n8(e){return iW&&e instanceof Set}function Ya(e){return e.o||e.t}function r8(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=uW(e);delete t[ar];for(var n=u8(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function o8(e,t){return t===void 0&&(t=!1),i8(e)||Mu(e)||!zu(e)||(El(e)>1&&(e.set=e.add=e.clear=e.delete=tW),Object.freeze(e),t&&Ad(e,function(n,r){return o8(r,!0)},!0)),e}function tW(){$r(2)}function i8(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ti(e){var t=sW[e];return t||$r(18,e),t}function lS(){return Od}function Jm(e,t){t&&(ti("Patches"),e.u=[],e.s=[],e.v=t)}function Av(e){b4(e),e.p.forEach(nW),e.p=null}function b4(e){e===Od&&(Od=e.l)}function cS(e){return Od={p:[],l:Od,h:e,m:!0,_:0}}function nW(e){var t=e[ar];t.i===0||t.i===1?t.j():t.O=!0}function Qm(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||ti("ES5").S(t,e,r),r?(n[ar].P&&(Av(t),$r(4)),zu(e)&&(e=Ov(t,e),t.l||Bv(t,e)),t.u&&ti("Patches").M(n[ar],e,t.u,t.s)):e=Ov(t,n,[]),Av(t),t.u&&t.v(t.u,t.s),e!==Sj?e:void 0}function Ov(e,t,n){if(i8(t))return t;var r=t[ar];if(!r)return Ad(t,function(i,a){return fS(e,r,t,i,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Bv(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=r8(r.k):r.o;Ad(r.i===3?new Set(o):o,function(i,a){return fS(e,r,o,i,a,n)}),Bv(e,o,!1),n&&e.u&&ti("Patches").R(r,n,e.u,e.s)}return r.o}function fS(e,t,n,r,o,i){if(Mu(o)){var a=Ov(e,o,i&&t&&t.i!==3&&!m4(t.D,r)?i.concat(r):void 0);if(Cj(n,r,a),!Mu(a))return;e.m=!1}if(zu(o)&&!i8(o)){if(!e.h.F&&e._<1)return;Ov(e,o),t&&t.A.l||Bv(e,o)}}function Bv(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&o8(t,n)}function e1(e,t){var n=e[ar];return(n?Ya(n):e)[t]}function dS(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 w4(e){e.P||(e.P=!0,e.l&&w4(e.l))}function t1(e){e.o||(e.o=r8(e.t))}function E4(e,t,n){var r=t8(t)?ti("MapSet").N(t,n):n8(t)?ti("MapSet").T(t,n):e.g?(function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:lS(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=_g;a&&(s=[u],l=jg);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d})(t,n):ti("ES5").J(t,n);return(n?n.A:lS()).p.push(r),r}function rW(e){return Mu(e)||$r(22,e),(function t(n){if(!zu(n))return n;var r,o=n[ar],i=El(n);if(o){if(!o.P&&(o.i<4||!ti("ES5").K(o)))return o.t;o.I=!0,r=pS(n,i),o.I=!1}else r=pS(n,i);return Ad(r,function(a,u){o&&(function(s,l){return El(s)===2?s.get(l):s[l]})(o.t,a)===u||Cj(r,a,t(u))}),i===3?new Set(r):r})(e)}function pS(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return r8(e)}var hS,Od,a8=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",oW=typeof Map<"u",iW=typeof Set<"u",gS=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sj=a8?Symbol.for("immer-nothing"):((hS={})["immer-nothing"]=!0,hS),vS=a8?Symbol.for("immer-draftable"):"__$immer_draftable",ar=a8?Symbol.for("immer-state"):"__$immer_state",aW=""+Object.prototype.constructor,u8=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,uW=Object.getOwnPropertyDescriptors||function(e){var t={};return u8(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},sW={},_g={get:function(e,t){if(t===ar)return e;var n=Ya(e);if(!m4(n,t))return(function(o,i,a){var u,s=dS(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0})(e,n,t);var r=n[t];return e.I||!zu(r)?r:r===e1(e.t,t)?(t1(e),e.o[t]=E4(e.A.h,r,e)):r},has:function(e,t){return t in Ya(e)},ownKeys:function(e){return Reflect.ownKeys(Ya(e))},set:function(e,t,n){var r=dS(Ya(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=e1(Ya(e),t),i=o==null?void 0:o[ar];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if((function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u})(n,o)&&(n!==void 0||m4(e.t,t)))return!0;t1(e),w4(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 e1(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,t1(e),w4(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Ya(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){$r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){$r(12)}},jg={};Ad(_g,function(e,t){jg[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),jg.deleteProperty=function(e,t){return _g.deleteProperty.call(this,e[0],t)},jg.set=function(e,t,n){return _g.set.call(this,e[0],t,n,e[0])};var lW=(function(){function e(n){var r=this;this.g=gS,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=r;return function(p){var y=this;p===void 0&&(p=u);for(var v=arguments.length,g=Array(v>1?v-1:0),m=1;m<v;m++)g[m-1]=arguments[m];return s.produce(p,function(h){var b;return(b=i).call.apply(b,[y,h].concat(g))})}}var l;if(typeof i!="function"&&$r(6),a!==void 0&&typeof a!="function"&&$r(7),zu(o)){var c=cS(r),f=E4(r,o,void 0),d=!0;try{l=i(f),d=!1}finally{d?Av(c):b4(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(p){return Jm(c,a),Qm(p,c)},function(p){throw Av(c),p}):(Jm(c,a),Qm(l,c))}if(!o||typeof o!="object")return(l=i(o))===Sj?void 0:(l===void 0&&(l=o),r.F&&o8(l,!0),l);$r(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return r.produceWithPatches(s,function(d){return o.apply(void 0,[d].concat(c))})}:[r.produce(o,i,function(s,l){a=s,u=l}),a,u];var a,u},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){zu(n)||$r(8),Mu(n)&&(n=rW(n));var r=cS(this),o=E4(this,n,void 0);return o[ar].C=!0,b4(r),o},t.finishDraft=function(n,r){var o=(n&&n[ar]).A;return Jm(o,r),Qm(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!gS&&$r(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=ti("Patches").$;return Mu(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},e})(),Yn=new lW,Dy=Yn.produce;Yn.produceWithPatches.bind(Yn),Yn.setAutoFreeze.bind(Yn),Yn.setUseProxies.bind(Yn),Yn.applyPatches.bind(Yn);var yS=Yn.createDraft.bind(Yn),mS=Yn.finishDraft.bind(Yn);function jo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kv=new WeakMap,Sc=new WeakMap,bS=new WeakMap,wS=new WeakMap,ES=new WeakMap,DS=new WeakMap;function xS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xS(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var cW=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of E.pathRefs(e))zW.transform(n,t);for(var r of E.pointRefs(e))$W.transform(r,t);for(var o of E.rangeRefs(e))VW.transform(o,t);var i=new Set,a=[],u=d=>{if(d){var p=d.join(",");i.has(p)||(i.add(p),a.push(d))}},s=kv.get(e)||[],l=fW(t);for(var c of s)u(P.transform(c,t));for(var f of l)u(f);kv.set(e,a),N.transform(e,t),e.operations.push(t),E.normalize(e),t.type==="set_selection"&&(e.marks=null),Sc.get(e)||(Sc.set(e,!0),Promise.resolve().then(()=>{Sc.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(L.isExpanded(r))N.setNodes(e,{[t]:n},{match:oe.isText,split:!0});else{var o=xh(xh({},E.marks(e)||{}),{},{[t]:n});e.marks=o,Sc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&L.isCollapsed(n)&&N.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&L.isCollapsed(n)&&N.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&L.isExpanded(n)&&N.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?J.fragment(e,t):[]},insertBreak:()=>{N.splitNodes(e,{always:!0})},insertFragment:t=>{N.insertFragment(e,t)},insertNode:t=>{N.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=xh({text:t},r);N.insertNodes(e,o)}else N.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!oe.isText(n))if(ce.isElement(n)&&n.children.length===0)N.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!E.isEditor(n)&&ce.isElement(n)&&(e.isInline(n)||n.children.length===0||oe.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=J.get(e,r);if(!oe.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(oe.isText(s)||ce.isElement(s)&&e.isInline(s))!==o?(N.removeNodes(e,{at:r.concat(i),voids:!0}),i--):ce.isElement(s)?e.isInline(s)&&(l!=null&&oe.isText(l)?c&&(N.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(N.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):l!=null&&oe.isText(l)&&(oe.equals(s,l,{loose:!0})?(N.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):l.text===""?(N.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):s.text===""&&(N.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(L.isExpanded(n))N.unsetNodes(e,t,{match:oe.isText,split:!0});else{var r=xh({},E.marks(e)||{});delete r[t],e.marks=r,Sc.get(e)||e.onChange()}}};return e},fW=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return P.levels(t);case"insert_node":var{node:n,path:r}=e,o=P.levels(r),i=oe.isText(n)?[]:Array.from(J.nodes(n),w=>{var[,D]=w;return r.concat(D)});return[...o,...i];case"merge_node":var{path:a}=e;return[...P.ancestors(a),P.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(P.equals(u,s))return[];var l=[],c=[];for(var f of P.ancestors(u)){var d=P.transform(f,e);l.push(d)}for(var p of P.ancestors(s)){var y=P.transform(p,e);c.push(y)}var v=c[c.length-1],g=s[s.length-1],m=v.concat(g);return[...l,...c,m];case"remove_node":var{path:h}=e;return[...P.ancestors(h)];case"split_node":var{path:b}=e;return[...P.levels(b),P.next(b)];default:return[]}};function ai(e,t){if(e==null)return{};var n,r,o=(function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l<f.length;l++)s=f[l],u.indexOf(s)>=0||(c[s]=a[s]);return c})(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ce,D4=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?vW(e):e,o=Ce.None,i=Ce.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=BW(s,l);if([o,i]=n?[i,c]:[c,o],el(o,Ce.ZWJ)&&el(i,Ce.ExtPict)&&!_W(n?e.substring(0,a):e.substring(0,e.length-a))||el(o,Ce.RI)&&el(i,Ce.RI)&&!(u=u!==null?!u:!!n||PW(e.substring(0,e.length-a)))||o!==Ce.None&&i!==Ce.None&&FW(o,i))break;a+=s.length}return a||1},dW=/\s/,pW=/[\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]/,hW=/['\u2018\u2019]/,x4=(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)]},gW=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(dW.test(t))return!1;if(hW.test(t)){var o=D4(n,r),[i,a]=x4(n,o,r);if(e(i,a,r))return!0}return!pW.test(t)},vW=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(mW(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(yW(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},yW=e=>e>=55296&&e<=56319,mW=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"})(Ce||(Ce={}));var bW=/^(?:[\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])$/,wW=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,EW=/^(?:[\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])$/,DW=/^[\u1100-\u115F\uA960-\uA97C]$/,xW=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,CW=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,SW=/^[\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]$/,AW=/^[\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]$/,OW=/^(?:[\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])$/,BW=(e,t)=>{var n=Ce.Any;return e.search(bW)!==-1&&(n|=Ce.Extend),t===8205&&(n|=Ce.ZWJ),t>=127462&&t<=127487&&(n|=Ce.RI),e.search(wW)!==-1&&(n|=Ce.Prepend),e.search(EW)!==-1&&(n|=Ce.SpacingMark),e.search(DW)!==-1&&(n|=Ce.L),e.search(xW)!==-1&&(n|=Ce.V),e.search(CW)!==-1&&(n|=Ce.T),e.search(SW)!==-1&&(n|=Ce.LV),e.search(AW)!==-1&&(n|=Ce.LVT),e.search(OW)!==-1&&(n|=Ce.ExtPict),n};function el(e,t){return(e&t)!=0}var kW=[[Ce.L,Ce.L|Ce.V|Ce.LV|Ce.LVT],[Ce.LV|Ce.V,Ce.V|Ce.T],[Ce.LVT|Ce.T,Ce.T],[Ce.Any,Ce.Extend|Ce.ZWJ],[Ce.Any,Ce.SpacingMark],[Ce.Prepend,Ce.Any],[Ce.ZWJ,Ce.ExtPict],[Ce.RI,Ce.RI]];function FW(e,t){return kW.findIndex(n=>el(e,n[0])&&el(t,n[1]))===-1}var TW=/(?:[\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$/,_W=e=>e.search(TW)!==-1,jW=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,PW=e=>{var t=e.match(jW);return t!==null&&t[0].length/2%2==1},CS=e=>Dn(e)&&J.isNodeList(e.children)&&!E.isEditor(e),ce={isAncestor:e=>Dn(e)&&J.isNodeList(e.children),isElement:CS,isElementList:e=>Array.isArray(e)&&e.every(t=>ce.isElement(t)),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return CS(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},NW=["text"],IW=["text"];function SS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ms(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SS(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var AS=new WeakMap,E={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=E.path(e,o),u=r==="lowest";for(var[s,l]of E.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!oe.isText(s)&&!P.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.point(e,t,{edge:"end"}),focus:E.end(e,[])},{distance:i=1}=r,a=0;for(var u of E.positions(e,ms(ms({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.start(e,[]),focus:E.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of E.positions(e,ms(ms({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[E.start(e,t),E.end(e,t)],end:(e,t)=>E.point(e,t,{edge:"end"}),first(e,t){var n=E.path(e,t,{edge:"start"});return E.node(e,n)},fragment(e,t){var n=E.range(e,t);return J.fragment(e,n)},hasBlocks:(e,t)=>t.children.some(n=>E.isBlock(e,n)),hasInlines:(e,t)=>t.children.some(n=>oe.isText(n)||E.isInline(e,n)),hasTexts:(e,t)=>t.children.every(n=>oe.isText(n)),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)=>ce.isElement(t)&&!e.isInline(t),isEditor(e){if(!Dn(e))return!1;var t=AS.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||Dn(e.marks))&&(e.selection===null||L.isRange(e.selection))&&J.isNodeList(e.children)&&Vi.isOperationList(e.operations);return AS.set(e,n),n},isEnd(e,t,n){var r=E.end(e,n);return ke.equals(t,r)},isEdge:(e,t,n)=>E.isStart(e,t,n)||E.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&oe.isText(r)&&r.text===""&&!e.isVoid(t)},isInline:(e,t)=>ce.isElement(t)&&e.isInline(t),isNormalizing(e){var t=bS.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=E.start(e,n);return ke.equals(t,r)},isVoid:(e,t)=>ce.isElement(t)&&e.isVoid(t),last(e,t){var n=E.path(e,t,{edge:"end"});return E.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(e,t,n);return[J.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:o=!1}=t,{match:i}=t;if(i==null&&(i=()=>!0),n){var a=[],u=E.path(e,n);for(var[s,l]of J.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&E.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(L.isExpanded(n)){var[r]=E.nodes(e,{match:oe.isText});if(r){var[o]=r;return ai(o,NW)}return{}}var{anchor:i}=n,{path:a}=i,[u]=E.leaf(e,a);if(i.offset===0){var s=E.previous(e,{at:a,match:oe.isText}),l=E.above(e,{match:p=>E.isBlock(e,p)});if(s&&l){var[c,f]=s,[,d]=l;P.isAncestor(d,f)&&(u=c)}}return ai(u,IW)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=E.after(e,i,{voids:r});if(a){var[,u]=E.last(e,[]),s=[a.path,u];if(P.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(P.isPath(i)){var[l]=E.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(e,t,n);return[J.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:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(LW.isSpan(n))s=n[0],l=n[1];else{var c=E.path(e,n,{edge:"start"}),f=E.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=J.nodes(e,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&E.isVoid(e,w)}}),y=[];for(var[v,g]of p){var m=d&&P.compare(g,d[1])===0;if(r!=="highest"||!m){if(u(v,g))if(r==="lowest"&&m)d=[v,g];else{var h=r==="lowest"?d:[v,g];h&&(o?y.push(h):yield h),d=[v,g]}else if(o&&!m&&oe.isText(v))return}}r==="lowest"&&d&&(o?y.push(d):yield d),o&&(yield*y)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=i=>kv.get(i)||[];if(E.isNormalizing(e)){if(n){var o=Array.from(J.nodes(e),i=>{var[,a]=i;return a});kv.set(e,o)}r(e).length!==0&&E.withoutNormalizing(e,()=>{for(var i of r(e))if(J.has(e,i)){var a=E.node(e,i),[u,s]=a;ce.isElement(u)&&u.children.length===0&&e.normalizeNode(a)}for(var l=42*r(e).length,c=0;r(e).length!==0;){if(c>l)throw new Error(`
|
|
14
|
+
Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
|
|
15
|
+
`));var f=r(e).pop();if(J.has(e,f)){var d=E.node(e,f);e.normalizeNode(d)}c++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(e,t,n),o=P.parent(r);return E.node(e,o)},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(P.isPath(t)){if(o==="start"){var[,i]=J.first(e,t);t=i}else if(o==="end"){var[,a]=J.last(e,t);t=a}}return L.isRange(t)&&(t=o==="start"?L.start(t):o==="end"?L.end(t):P.common(t.anchor.path,t.focus.path)),ke.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath:(e,t)=>J.has(e,t),pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return E.pathRefs(e).delete(o),o.current=null,i}};return E.pathRefs(e).add(o),o},pathRefs(e){var t=wS.get(e);return t||(t=new Set,wS.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(P.isPath(t)){var o;if(r==="end"){var[,i]=J.last(e,t);o=i}else{var[,a]=J.first(e,t);o=a}var u=J.get(e,o);if(!oe.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if(L.isRange(t)){var[s,l]=L.edges(t);return r==="start"?s:l}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return E.pointRefs(e).delete(o),o.current=null,i}};return E.pointRefs(e).add(o),o},pointRefs(e){var t=ES.get(e);return t||(t=new Set,ES.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=E.range(e,n),[u,s]=L.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,y=0;for(var[v,g]of E.nodes(e,{at:n,reverse:o,voids:i})){if(ce.isElement(v)){if(!i&&e.isVoid(v)){yield E.start(e,g);continue}if(e.isInline(v))continue;if(E.hasInlines(e,v)){var m=P.isAncestor(g,s.path)?s:E.end(e,g),h=P.isAncestor(g,u.path)?u:E.start(e,g);f=E.string(e,{anchor:h,focus:m},{voids:i}),c=!0}}if(oe.isText(v)){var b=P.equals(g,l.path);for(b?(p=o?l.offset:v.text.length-l.offset,y=l.offset):(p=v.text.length,y=o?p:0),(b||c||r==="offset")&&(yield{path:g,offset:y},c=!1);;){if(d===0){if(f==="")break;d=w(f,r,o),f=x4(f,d,o)[1]}if(y=o?y-d:y+d,(p-=d)<0){d=-p;break}d=0,yield{path:g,offset:y}}}}}function w(D,C,x){return C==="character"?D4(D,x):C==="word"?(function(O){for(var F=arguments.length>1&&arguments[1]!==void 0&&arguments[1],R=0,H=!1;O.length>0;){var M=D4(O,F),[K,U]=x4(O,M,F);if(gW(K,U,F))H=!0,R+=M;else{if(H)break;R+=M}O=U}return R})(D,x):C==="line"||C==="block"?D.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=E.before(e,i,{voids:r});if(a){var[,u]=E.first(e,[]),s=[a.path,u];if(P.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(P.isPath(i)){var[l]=E.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>L.isRange(t)&&!n?t:{anchor:E.start(e,t),focus:E.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return E.rangeRefs(e).delete(o),o.current=null,i}};return E.rangeRefs(e).add(o),o},rangeRefs(e){var t=DS.get(e);return t||(t=new Set,DS.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){bS.set(e,t)},start:(e,t)=>E.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=E.range(e,t),[i,a]=L.edges(o),u="";for(var[s,l]of E.nodes(e,{at:o,match:oe.isText,voids:r})){var c=s.text;P.equals(l,a.path)&&(c=c.slice(0,a.offset)),P.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=L.edges(t);if(o.offset!==0||i.offset!==0||L.isCollapsed(t))return t;var a=E.above(e,{at:i,match:d=>E.isBlock(e,d)}),u=a?a[1]:[],s={anchor:E.start(e,[]),focus:i},l=!0;for(var[c,f]of E.nodes(e,{at:s,match:oe.isText,reverse:!0,voids:r}))if(l)l=!1;else if(c.text!==""||P.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E.above(e,ms(ms({},t),{},{match:n=>E.isVoid(e,n)}))},withoutNormalizing(e,t){var n=E.isNormalizing(e);E.setNormalizing(e,!1);try{t()}finally{E.setNormalizing(e,n)}E.normalize(e)}},LW={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(P.isPath)},RW=["children"],MW=["text"],OS=new WeakMap,J={ancestor(e,t){var n=J.get(e,t);if(oe.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of P.ancestors(t,n)){var o=[J.ancestor(e,r),r];yield o}},child(e,t){if(oe.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=J.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=J.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=P.common(t,n);return[J.get(e,r),r]},descendant(e,t){var n=J.get(e,t);if(E.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of J.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 J.nodes(e,t))ce.isElement(n)&&(yield[n,r])},extractProps:e=>ce.isAncestor(e)?ai(e,RW):ai(e,MW),first(e,t){for(var n=t.slice(),r=J.get(e,n);r&&!oe.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(oe.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Dy({children:e.children},r=>{var[o,i]=L.edges(t),a=J.nodes(r,{reverse:!0,pass:d=>{var[,p]=d;return!L.includes(t,p)}});for(var[,u]of a){if(!L.includes(t,u)){var s=J.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(P.equals(u,i.path)){var c=J.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(P.equals(u,o.path)){var f=J.leaf(r,u);f.text=f.text.slice(o.offset)}}E.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(oe.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(oe.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>oe.isText(e)||ce.isElement(e)||E.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=OS.get(e);if(t!==void 0)return t;var n=e.every(r=>J.isNode(r));return OS.set(e,n),n},last(e,t){for(var n=t.slice(),r=J.get(e,n);r&&!oe.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=J.get(e,t);if(!oe.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of P.levels(t,n)){var o=J.get(e,r);yield[o,r]}},matches:(e,t)=>ce.isElement(e)&&ce.isElementProps(t)&&ce.matches(e,t)||oe.isText(e)&&oe.isTextProps(t)&&oe.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?P.isBefore(u,i):P.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||oe.isText(s)||s.children.length===0||n!=null&&n([s,u])!==!1){if(u.length===0)break;if(!r){var l=P.next(u);if(J.has(e,l)){u=l,s=J.get(e,u);continue}}r&&u[u.length-1]!==0?(u=P.previous(u),s=J.get(e,u)):(u=P.parent(u),s=J.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;P.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=J.get(e,u)}},parent(e,t){var n=P.parent(t),r=J.get(e,n);if(oe.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>oe.isText(e)?e.text:e.children.map(J.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of J.nodes(e,t))oe.isText(n)&&(yield[n,r])}};function BS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BS(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Vi={isNodeOperation:e=>Vi.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Dn(e))return!1;switch(e.type){case"insert_node":case"remove_node":return P.isPath(e.path)&&J.isNode(e.node);case"insert_text":case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&P.isPath(e.path);case"merge_node":return typeof e.position=="number"&&P.isPath(e.path)&&Dn(e.properties);case"move_node":return P.isPath(e.path)&&P.isPath(e.newPath);case"set_node":return P.isPath(e.path)&&Dn(e.properties)&&Dn(e.newProperties);case"set_selection":return e.properties===null&&L.isRange(e.newProperties)||e.newProperties===null&&L.isRange(e.properties)||Dn(e.properties)&&Dn(e.newProperties);case"split_node":return P.isPath(e.path)&&typeof e.position=="number"&&Dn(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(t=>Vi.isOperation(t)),isSelectionOperation:e=>Vi.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Vi.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return zt(zt({},e),{},{type:"remove_node"});case"insert_text":return zt(zt({},e),{},{type:"remove_text"});case"merge_node":return zt(zt({},e),{},{type:"split_node",path:P.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(P.equals(t,n))return e;if(P.isSibling(n,t))return zt(zt({},e),{},{path:t,newPath:n});var r=P.transform(n,e),o=P.transform(P.next(n),e);return zt(zt({},e),{},{path:r,newPath:o});case"remove_node":return zt(zt({},e),{},{type:"insert_node"});case"remove_text":return zt(zt({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return zt(zt({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return zt(zt({},e),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return zt(zt({},e),{},{type:"merge_node",path:P.next(e.path)})}}},P={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=P.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 o=e[r];if(o!==t[r])break;n.push(o)}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),o=t.slice(0,n),i=e[n],a=t[n];return P.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return P.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return P.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every((n,r)=>n===t[r]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>P.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&P.compare(e,t)===0,isBefore:(e,t)=>P.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&P.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&P.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&P.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&P.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]&&P.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(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 new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!P.isAncestor(t,e)&&!P.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(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 Dy(e,r=>{var{affinity:o="forward"}=n;if(e&&(e==null?void 0:e.length)!==0){if(r===null)return null;switch(t.type){case"insert_node":var{path:i}=t;(P.equals(i,r)||P.endsBefore(i,r)||P.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(P.equals(a,r)||P.isAncestor(a,r))return null;P.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;P.equals(u,r)||P.endsBefore(u,r)?r[u.length-1]-=1:P.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(P.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else P.endsBefore(l,r)?r[l.length-1]+=1:P.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(P.equals(f,d))return;if(P.isAncestor(f,r)||P.equals(f,r)){var p=d.slice();return P.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}P.isSibling(f,d)&&(P.isAncestor(d,r)||P.equals(d,r))?P.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:P.endsBefore(d,r)||P.equals(d,r)||P.isAncestor(d,r)?(P.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):P.endsBefore(f,r)&&(P.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}})}},zW={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=P.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}};function kS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function FS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kS(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ke={compare(e,t){var n=P.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>ke.compare(e,t)===1,isBefore:(e,t)=>ke.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&P.equals(e.path,t.path),isPoint:e=>Dn(e)&&typeof e.offset=="number"&&P.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Dy(e,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(t.type){case"insert_node":case"move_node":r.path=P.transform(i,t,n);break;case"insert_text":P.equals(t.path,i)&&t.offset<=a&&(r.offset+=t.text.length);break;case"merge_node":P.equals(t.path,i)&&(r.offset+=t.position),r.path=P.transform(i,t,n);break;case"remove_text":P.equals(t.path,i)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break;case"remove_node":if(P.equals(t.path,i)||P.isAncestor(t.path,i))return null;r.path=P.transform(i,t,n);break;case"split_node":if(P.equals(t.path,i)){if(t.position===a&&o==null)return null;(t.position<a||t.position===a&&o==="forward")&&(r.offset-=t.position,r.path=P.transform(i,t,FS(FS({},n),{},{affinity:"forward"})))}else r.path=P.transform(i,t,n)}})}},$W={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=ke.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},HW=["anchor","focus"];function TS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}var L={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return L.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=L.edges(e);return t},equals:(e,t)=>ke.equals(e.anchor,t.anchor)&&ke.equals(e.focus,t.focus),includes(e,t){if(L.isRange(t)){if(L.includes(e,t.anchor)||L.includes(e,t.focus))return!0;var[n,r]=L.edges(e),[o,i]=L.edges(t);return ke.isBefore(n,o)&&ke.isAfter(r,i)}var[a,u]=L.edges(e),s=!1,l=!1;return ke.isPoint(t)?(s=ke.compare(t,a)>=0,l=ke.compare(t,u)<=0):(s=P.compare(t,a.path)>=0,l=P.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=ai(e,HW),[r,o]=L.edges(e),[i,a]=L.edges(t),u=ke.isBefore(r,i)?i:r,s=ke.isBefore(o,a)?o:a;return ke.isBefore(s,u)?null:(function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?TS(Object(f),!0).forEach(function(d){jo(l,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):TS(Object(f)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(f,d))})}return l})({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return ke.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return ke.equals(t,n)},isExpanded:e=>!L.isCollapsed(e),isForward:e=>!L.isBackward(e),isRange:e=>Dn(e)&&ke.isPoint(e.anchor)&&ke.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=L.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Dy(e,r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var u=L.isCollapsed(r);L.isForward(r)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?L.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=ke.transform(r.anchor,t,{affinity:o}),l=ke.transform(r.focus,t,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l})}},VW={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=L.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},Aj=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Dn(r)&&Dn(o)){if(!Aj(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0},UW=["text"],WW=["anchor","focus"];function _S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_S(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_S(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oe={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return ai(i,UW)}return Aj(r?o(e):e,r?o(t):t)},isText:e=>Dn(e)&&typeof e.text=="string",isTextList:e=>Array.isArray(e)&&e.every(t=>oe.isText(t)),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=[$o({},e)];for(var r of t){var o=ai(r,WW),[i,a]=L.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&f!==0)u.push(l);else{var d=l,p=void 0,y=void 0;if(a.offset<s){var v=a.offset-f;y=$o($o({},d),{},{text:d.text.slice(v)}),d=$o($o({},d),{},{text:d.text.slice(0,v)})}if(i.offset>f){var g=i.offset-f;p=$o($o({},d),{},{text:d.text.slice(0,g)}),d=$o($o({},d),{},{text:d.text.slice(g)})}Object.assign(d,o),p&&u.push(p),u.push(d),y&&u.push(y)}}n=u}return n}};function jS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ac(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jS(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var GW={transform(e,t){e.children=yS(e.children);var n=e.selection&&yS(e.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=J.parent(r,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of L.points(o))o[f]=ke.transform(c,i);break;case"insert_text":var{path:d,offset:p,text:y}=i;if(y.length===0)break;var v=J.leaf(r,d),g=v.text.slice(0,p),m=v.text.slice(p);if(v.text=g+y+m,o)for(var[h,b]of L.points(o))o[b]=ke.transform(h,i);break;case"merge_node":var{path:w}=i,D=J.get(r,w),C=P.previous(w),x=J.get(r,C),O=J.parent(r,w),F=w[w.length-1];if(oe.isText(D)&&oe.isText(x))x.text+=D.text;else{if(oe.isText(D)||oe.isText(x))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(D," ").concat(x));x.children.push(...D.children)}if(O.children.splice(F,1),o)for(var[R,H]of L.points(o))o[H]=ke.transform(R,i);break;case"move_node":var{path:M,newPath:K}=i;if(P.isAncestor(M,K))throw new Error("Cannot move a path [".concat(M,"] to new path [").concat(K,"] because the destination is inside itself."));var U=J.get(r,M),W=J.parent(r,M),q=M[M.length-1];W.children.splice(q,1);var te=P.transform(M,i),se=J.get(r,P.parent(te)),ue=te[te.length-1];if(se.children.splice(ue,0,U),o)for(var[ae,B]of L.points(o))o[B]=ke.transform(ae,i);break;case"remove_node":var{path:S}=i,j=S[S.length-1];if(J.parent(r,S).children.splice(j,1),o)for(var[$,X]of L.points(o)){var V=ke.transform($,i);if(o!=null&&V!=null)o[X]=V;else{var ie=void 0,ge=void 0;for(var[ve,De]of J.texts(r)){if(P.compare(De,S)!==-1){ge=[ve,De];break}ie=[ve,De]}var G=!1;ie&&ge&&(G=P.equals(ge[1],S)?!P.hasPrevious(ge[1]):P.common(ie[1],S).length<P.common(ge[1],S).length),ie&&!G?($.path=ie[1],$.offset=ie[0].text.length):ge?($.path=ge[1],$.offset=0):o=null}}break;case"remove_text":var{path:Ie,offset:Ae,text:de}=i;if(de.length===0)break;var Oe=J.leaf(r,Ie),Ot=Oe.text.slice(0,Ae),$e=Oe.text.slice(Ae+de.length);if(Oe.text=Ot+$e,o)for(var[Qe,gt]of L.points(o))o[gt]=ke.transform(Qe,i);break;case"set_node":var{path:gn,properties:Me,newProperties:Nn}=i;if(gn.length===0)throw new Error("Cannot set properties on the root node!");var Pr=J.get(r,gn);for(var eo in Nn){if(eo==="children"||eo==="text")throw new Error('Cannot set the "'.concat(eo,'" property of nodes!'));var fs=Nn[eo];fs==null?delete Pr[eo]:Pr[eo]=fs}for(var Pa in Me)Nn.hasOwnProperty(Pa)||delete Pr[Pa];break;case"set_selection":var{newProperties:Nr}=i;if(Nr==null)o=Nr;else{if(o==null){if(!L.isRange(Nr))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Nr)," when there is no current selection."));o=Ac({},Nr)}for(var to in Nr){var No=Nr[to];if(No==null){if(to==="anchor"||to==="focus")throw new Error('Cannot remove the "'.concat(to,'" selection property'));delete o[to]}else o[to]=No}}break;case"split_node":var{path:vn,position:yn,properties:mn}=i;if(vn.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(vn,"] because the root node cannot be split."));var kn,tn=J.get(r,vn),dr=J.parent(r,vn),hc=vn[vn.length-1];if(oe.isText(tn)){var pi=tn.text.slice(0,yn),Io=tn.text.slice(yn);tn.text=pi,kn=Ac(Ac({},mn),{},{text:Io})}else{var ds=tn.children.slice(0,yn),Na=tn.children.slice(yn);tn.children=ds,kn=Ac(Ac({},mn),{},{children:Na})}if(dr.children.splice(hc+1,0,kn),o)for(var[ps,Ir]of L.points(o))o[Ir]=ke.transform(ps,i)}return o})(e,n,t)}finally{e.children=mS(e.children),e.selection=n?Mu(n)?mS(n):n:null}}},qW=["text"],KW=["children"];function PS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function NS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PS(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var XW={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(J.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?E.end(e,[]):[0],s=!0),s==null&&(s=!1),L.isRange(a))if(r||(a=E.unhangRange(e,a)),L.isCollapsed(a))a=a.anchor;else{var[,c]=L.edges(a),f=E.pointRef(e,c);N.delete(e,{at:a}),a=f.unref()}if(ke.isPoint(a)){u==null&&(u=oe.isText(l)?C=>oe.isText(C):e.isInline(l)?C=>oe.isText(C)||E.isInline(e,C):C=>E.isBlock(e,C));var[d]=E.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,y=E.pathRef(e,p),v=E.isEnd(e,a,p);N.splitNodes(e,{at:a,match:u,mode:i,voids:o});var g=y.unref();a=v?P.next(g):g}var m=P.parent(a),h=a[a.length-1];if(o||!E.void(e,{at:m})){for(var b of t){var w=m.concat(h);h++,e.apply({type:"insert_node",path:w,node:b}),a=P.next(a)}if(a=P.previous(a),s){var D=E.end(e,a);D&&N.select(e,D)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(i==null&&(i=P.isPath(n)?bs(e,n):b=>E.isBlock(e,b)),n){var a=E.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,b=>{var[,w]=b;return E.pathRef(e,w)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=E.node(e,P.parent(l)),[f,d]=c,p=l[l.length-1],{length:y}=f.children;if(y===1){var v=P.next(d);N.moveNodes(e,{at:l,to:v,voids:o}),N.removeNodes(e,{at:d,voids:o})}else if(p===0)N.moveNodes(e,{at:l,to:d,voids:o});else if(p===y-1){var g=P.next(d);N.moveNodes(e,{at:l,to:g,voids:o})}else{var m=P.next(l),h=P.next(d);N.splitNodes(e,{at:m,voids:o}),N.moveNodes(e,{at:l,to:h,voids:o})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(n==null)if(P.isPath(r)){var[u]=E.parent(e,r);n=F=>u.children.includes(F)}else n=F=>E.isBlock(e,F);if(!o&&L.isRange(r)&&(r=E.unhangRange(e,r)),L.isRange(r))if(L.isCollapsed(r))r=r.anchor;else{var[,s]=L.edges(r),l=E.pointRef(e,s);N.delete(e,{at:r}),r=l.unref(),t.at==null&&N.select(e,r)}var[c]=E.nodes(e,{at:r,match:n,voids:i,mode:a}),f=E.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[y,v]=f;if(p.length!==0&&v.length!==0){var g,m,h=P.next(v),b=P.common(p,v),w=P.isSibling(p,v),D=Array.from(E.levels(e,{at:p}),F=>{var[R]=F;return R}).slice(b.length).slice(0,-1),C=E.above(e,{at:p,mode:"highest",match:F=>D.includes(F)&&Oj(e,F)}),x=C&&E.pathRef(e,C[1]);if(oe.isText(d)&&oe.isText(y)){var O=ai(d,qW);m=y.text.length,g=O}else{if(!ce.isElement(d)||!ce.isElement(y))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(y)));O=ai(d,KW),m=y.children.length,g=O}w||N.moveNodes(e,{at:p,to:h,voids:i}),x&&N.removeNodes(e,{at:x.current,voids:i}),ce.isElement(y)&&E.isEmpty(e,y)||oe.isText(y)&&y.text===""&&v[v.length-1]!==0?N.removeNodes(e,{at:v,voids:i}):e.apply({type:"merge_node",path:h,position:m,properties:g}),x&&x.unref()}}}})},moveNodes(e,t){E.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){a==null&&(a=P.isPath(r)?bs(e,r):p=>E.isBlock(e,p));var u=E.pathRef(e,n),s=E.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,p=>{var[,y]=p;return E.pathRef(e,y)});for(var c of l){var f=c.unref(),d=u.current;f.length!==0&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&P.isSibling(d,f)&&P.isAfter(d,f)&&(u.current=P.next(u.current))}u.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=P.isPath(i)?bs(e,i):d=>E.isBlock(e,d)),!n&&L.isRange(i)&&(i=E.unhangRange(e,i));var u=E.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,d=>{var[,p]=d;return E.pathRef(e,p)});for(var l of s){var c=l.unref();if(c){var[f]=E.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=P.isPath(o)?bs(e,o):D=>E.isBlock(e,D)),!i&&L.isRange(o)&&(o=E.unhangRange(e,o)),u&&L.isRange(o)){if(L.isCollapsed(o)&&E.leaf(e,o.anchor)[0].text.length>0)return;var l=E.rangeRef(e,o,{affinity:"inward"}),[c,f]=L.edges(o),d=a==="lowest"?"lowest":"highest",p=E.isEnd(e,f,f.path);N.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var y=E.isStart(e,c,c.path);N.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!y}),o=l.unref(),n.at==null&&N.select(e,o)}for(var[v,g]of E.nodes(e,{at:o,match:r,mode:a,voids:s})){var m={},h={};if(g.length!==0){var b=!1;for(var w in t)w!=="children"&&w!=="text"&&t[w]!==v[w]&&(b=!0,v.hasOwnProperty(w)&&(m[w]=v[w]),t[w]!=null&&(h[w]=t[w]));b&&e.apply({type:"set_node",path:g,properties:m,newProperties:h})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(o==null&&(o=U=>E.isBlock(e,U)),L.isRange(i)&&(i=ZW(e,i)),P.isPath(i)){var s=i,l=E.point(e,s),[c]=E.parent(e,s);o=U=>U===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=E.pointRef(e,i,{affinity:"backward"}),[d]=E.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=E.void(e,{at:i,mode:"highest"});if(!r&&p){var[y,v]=p;if(ce.isElement(y)&&e.isInline(y)){var g=E.after(e,v);if(!g){var m=P.next(v);N.insertNodes(e,{text:""},{at:m,voids:r}),g=E.point(e,m)}i=g,u=!0}a=i.path.length-v.length+1,u=!0}var h=E.pointRef(e,i),b=i.path.length-a,[,w]=d,D=i.path.slice(0,b),C=a===0?i.offset:i.path[b]+0;for(var[x,O]of E.levels(e,{at:D,reverse:!0,voids:r})){var F=!1;if(O.length<w.length||O.length===0||!r&&E.isVoid(e,x))break;var R=f.current,H=E.isEnd(e,R,O);if(u||!f||!E.isEdge(e,R,O)){F=!0;var M=J.extractProps(x);e.apply({type:"split_node",path:O,position:C,properties:M})}C=O[O.length-1]+(F||H?1:0)}if(t.at==null){var K=h.current||E.end(e,[]);N.select(e,K)}f.unref(),h.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;N.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=P.isPath(i)?bs(e,i):d=>E.isBlock(e,d)),P.isPath(i)&&(i=E.range(e,i));var u=L.isRange(i)?E.rangeRef(e,i):null,s=E.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,d=>{var[,p]=d;return E.pathRef(e,p)}).reverse(),c=function(d){var p=d.unref(),[y]=E.node(e,p),v=E.range(e,p);r&&u&&(v=L.intersection(u.current,v)),N.liftNodes(e,{at:v,match:g=>ce.isAncestor(y)&&y.children.includes(g),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(a==null&&(a=P.isPath(u)?bs(e,u):e.isInline(t)?g=>E.isInline(e,g)||oe.isText(g):g=>E.isBlock(e,g)),o&&L.isRange(u)){var[s,l]=L.edges(u),c=E.rangeRef(e,u,{affinity:"inward"});N.splitNodes(e,{at:l,match:a,voids:i}),N.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),n.at==null&&N.select(e,u)}var f=Array.from(E.nodes(e,{at:u,match:e.isInline(t)?g=>E.isBlock(e,g):g=>E.isEditor(g),mode:"lowest",voids:i}));for(var[,d]of f){var p=L.isRange(u)?L.intersection(u,E.range(e,d)):u;if(p){var y=Array.from(E.nodes(e,{at:p,match:a,mode:r,voids:i}));if(y.length>0){var v=(function(){var[g]=y,m=y[y.length-1],[,h]=g,[,b]=m;if(h.length===0&&b.length===0)return"continue";var w=P.equals(h,b)?P.parent(h):P.common(h,b),D=E.range(e,h,b),C=E.node(e,w),[x]=C,O=w.length+1,F=P.next(b.slice(0,O)),R=NS(NS({},t),{},{children:[]});N.insertNodes(e,R,{at:F,voids:i}),N.moveNodes(e,{at:D,match:H=>ce.isAncestor(x)&&x.children.includes(H),to:F.concat(0),voids:i})})();if(v==="continue")continue}}}}})}},Oj=(e,t)=>{if(ce.isElement(t)){var n=t;return!!E.isVoid(e,t)||n.children.length===1&&Oj(e,n.children[0])}return!E.isEditor(t)},ZW=(e,t)=>{if(L.isCollapsed(t))return t.anchor;var[,n]=L.edges(t),r=E.pointRef(e,n);return N.delete(e,{at:t}),r.unref()},bs=(e,t)=>{var[n]=E.node(e,t);return r=>r===n};function IS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function LS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IS(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var YW={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r){if(n==="anchor")N.select(e,r.anchor);else if(n==="focus")N.select(e,r.focus);else if(n==="start"){var[o]=L.edges(r);N.select(e,o)}else if(n==="end"){var[,i]=L.edges(r);N.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:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){a==="start"&&(a=L.isBackward(n)?"focus":"anchor"),a==="end"&&(a=L.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(a==null||a==="anchor"){var f=i?E.before(e,u,l):E.after(e,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var d=i?E.before(e,s,l):E.after(e,s,l);d&&(c.focus=d)}N.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=E.range(e,t),n)N.setSelection(e,t);else{if(!L.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(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:o="both"}=n;if(r){o==="start"&&(o=L.isBackward(r)?"focus":"anchor"),o==="end"&&(o=L.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;N.setSelection(e,{[o==="anchor"?"anchor":"focus"]:LS(LS({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)(i==="anchor"&&t.anchor!=null&&!ke.equals(t.anchor,n.anchor)||i==="focus"&&t.focus!=null&&!ke.equals(t.focus,n.focus)||i!=="anchor"&&i!=="focus"&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},JW={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(L.isRange(a)&&L.isCollapsed(a)&&(a=a.anchor),ke.isPoint(a)){var s=E.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?E.before(e,a,c)||E.start(e,[]):E.after(e,a,c)||E.end(e,[])},u=!0}}if(P.isPath(a))N.removeNodes(e,{at:a,voids:i});else if(!L.isCollapsed(a)){if(!u){var[,f]=L.edges(a),d=E.end(e,[]);ke.equals(f,d)||(a=E.unhangRange(e,a,{voids:i}))}var[p,y]=L.edges(a),v=E.above(e,{match:ge=>E.isBlock(e,ge),at:p,voids:i}),g=E.above(e,{match:ge=>E.isBlock(e,ge),at:y,voids:i}),m=v&&g&&!P.equals(v[1],g[1]),h=P.equals(p.path,y.path),b=i?null:E.void(e,{at:p,mode:"highest"}),w=i?null:E.void(e,{at:y,mode:"highest"});if(b){var D=E.before(e,p);D&&v&&P.isAncestor(v[1],D.path)&&(p=D)}if(w){var C=E.after(e,y);C&&g&&P.isAncestor(g[1],C.path)&&(y=C)}var x,O=[];for(var F of E.nodes(e,{at:a,voids:i})){var[R,H]=F;x&&P.compare(H,x)===0||(!i&&E.isVoid(e,R)||!P.isCommon(H,p.path)&&!P.isCommon(H,y.path))&&(O.push(F),x=H)}var M=Array.from(O,ge=>{var[,ve]=ge;return E.pathRef(e,ve)}),K=E.pointRef(e,p),U=E.pointRef(e,y);if(!h&&!b){var W=K.current,[q]=E.leaf(e,W),{path:te}=W,{offset:se}=p,ue=q.text.slice(se);ue.length>0&&e.apply({type:"remove_text",path:te,offset:se,text:ue})}for(var ae of M){var B=ae.unref();N.removeNodes(e,{at:B,voids:i})}if(!w){var S=U.current,[j]=E.leaf(e,S),{path:$}=S,X=h?p.offset:0,V=j.text.slice(X,y.offset);V.length>0&&e.apply({type:"remove_text",path:$,offset:X,text:V})}!h&&m&&U.current&&K.current&&N.mergeNodes(e,{at:U.current,hanging:!0,voids:i});var ie=n?K.unref()||U.unref():U.unref()||K.unref();t.at==null&&ie&&N.select(e,ie)}}})},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(L.isRange(i))if(r||(i=E.unhangRange(e,i)),L.isCollapsed(i))i=i.anchor;else{var[,a]=L.edges(i);if(!o&&E.void(e,{at:a}))return;var u=E.pointRef(e,a);N.delete(e,{at:i}),i=u.unref()}else P.isPath(i)&&(i=E.start(e,i));if(o||!E.void(e,{at:i})){var s=E.above(e,{at:i,match:S=>E.isInline(e,S),mode:"highest",voids:o});if(s){var[,l]=s;E.isEnd(e,i,l)?i=E.after(e,l):E.isStart(e,i,l)&&(i=E.before(e,l))}var c=E.above(e,{match:S=>E.isBlock(e,S),at:i,voids:o}),[,f]=c,d=E.isStart(e,i,f),p=E.isEnd(e,i,f),y=d&&p,v=!d||d&&p,g=!p,[,m]=J.first({children:t},[]),[,h]=J.last({children:t},[]),b=[],w=S=>{var[j,$]=S;return $.length!==0&&(!!y||!(v&&P.isAncestor($,m)&&ce.isElement(j)&&!e.isVoid(j)&&!e.isInline(j))&&!(g&&P.isAncestor($,h)&&ce.isElement(j)&&!e.isVoid(j)&&!e.isInline(j)))};for(var D of J.nodes({children:t},{pass:w}))w(D)&&b.push(D);var C=[],x=[],O=[],F=!0,R=!1;for(var[H]of b)ce.isElement(H)&&!e.isInline(H)?(F=!1,R=!0,x.push(H)):F?C.push(H):O.push(H);var[M]=E.nodes(e,{at:i,match:S=>oe.isText(S)||E.isInline(e,S),mode:"highest",voids:o}),[,K]=M,U=E.isStart(e,i,K),W=E.isEnd(e,i,K),q=E.pathRef(e,p?P.next(f):f),te=E.pathRef(e,W?P.next(K):K),se=E.pathRef(e,f);N.splitNodes(e,{at:i,match:S=>R?E.isBlock(e,S):oe.isText(S)||E.isInline(e,S),mode:R?"lowest":"highest",voids:o});var ue=E.pathRef(e,!U||U&&W?P.next(K):K);if(N.insertNodes(e,C,{at:ue.current,match:S=>oe.isText(S)||E.isInline(e,S),mode:"highest",voids:o}),y&&x.length&&N.delete(e,{at:se.unref(),voids:o}),N.insertNodes(e,x,{at:q.current,match:S=>E.isBlock(e,S),mode:"lowest",voids:o}),N.insertNodes(e,O,{at:te.current,match:S=>oe.isText(S)||E.isInline(e,S),mode:"highest",voids:o}),!n.at){var ae;ae=O.length>0?P.previous(te.current):x.length>0?P.previous(q.current):P.previous(ue.current);var B=E.end(e,ae);N.select(e,B)}ue.unref(),q.unref(),te.unref()}}})},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(P.isPath(o)&&(o=E.range(e,o)),L.isRange(o))if(L.isCollapsed(o))o=o.anchor;else{var i=L.end(o);if(!r&&E.void(e,{at:i}))return;var a=E.pointRef(e,i);N.delete(e,{at:o,voids:r}),o=a.unref(),N.setSelection(e,{anchor:o,focus:o})}if(r||!E.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}})}};function RS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ch(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RS(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var N=Ch(Ch(Ch(Ch({},GW),XW),YW),JW),C4="[object Map]",S4="[object Set]",QW=/^\[object .+?Constructor\]$/,eG=/^(?:0|[1-9]\d*)$/,tG="[\\ud800-\\udfff]",A4="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",O4="\\ud83c[\\udffb-\\udfff]",Bj="[^\\ud800-\\udfff]",kj="(?:\\ud83c[\\udde6-\\uddff]){2}",Fj="[\\ud800-\\udbff][\\udc00-\\udfff]",MS="(?:"+A4+"|"+O4+")?",nG="[\\ufe0e\\ufe0f]?"+MS+("(?:\\u200d(?:"+[Bj,kj,Fj].join("|")+")[\\ufe0e\\ufe0f]?"+MS+")*"),rG="(?:"+[Bj+A4+"?",A4,kj,Fj,tG].join("|")+")",oG=RegExp(O4+"(?="+O4+")|"+rG+nG,"g"),iG=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),aG=typeof at=="object"&&at&&at.Object===Object&&at,uG=typeof self=="object"&&self&&self.Object===Object&&self,ts=aG||uG||Function("return this")();function sG(e,t){return(function(n,r){for(var o=-1,i=n?n.length:0,a=Array(i);++o<i;)a[o]=r(n[o],o,n);return a})(t,function(n){return e[n]})}function lG(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function cG(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}function fG(e){return(function(t){return iG.test(t)})(e)?(function(t){return t.match(oG)||[]})(e):(function(t){return t.split("")})(e)}var zS,$S,dG=Function.prototype,xy=Object.prototype,n1=ts["__core-js_shared__"],HS=(function(){var e=/[^.]+$/.exec(n1&&n1.keys&&n1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Tj=dG.toString,Fv=xy.hasOwnProperty,Bp=xy.toString,pG=RegExp("^"+Tj.call(Fv).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),VS=ts.Symbol,r1=VS?VS.iterator:void 0,hG=xy.propertyIsEnumerable,gG=(zS=Object.keys,$S=Object,function(e){return zS($S(e))}),B4=kp(ts,"DataView"),k4=kp(ts,"Map"),F4=kp(ts,"Promise"),T4=kp(ts,"Set"),_4=kp(ts,"WeakMap"),vG=ns(B4),yG=ns(k4),mG=ns(F4),bG=ns(T4),wG=ns(_4);function EG(e,t){var n=_j(e)||(function(a){return(function(u){return Nj(u)&&s8(u)})(a)&&Fv.call(a,"callee")&&(!hG.call(a,"callee")||Bp.call(a)=="[object Arguments]")})(e)?(function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l})(e.length,String):[],r=n.length,o=!!r;for(var i in e)!Fv.call(e,i)||o&&(i=="length"||CG(i,r))||n.push(i);return n}function DG(e){if(!Pj(e)||(function(n){return!!HS&&HS in n})(e))return!1;var t=jj(e)||(function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch{}return r})(e)?pG:QW;return t.test(ns(e))}function xG(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||xy,t!==r)return gG(e);var t,n,r,o=[];for(var i in Object(e))Fv.call(e,i)&&i!="constructor"&&o.push(i);return o}function kp(e,t){var n=(function(r,o){return r==null?void 0:r[o]})(e,t);return DG(n)?n:void 0}var Ja=function(e){return Bp.call(e)};function CG(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||eG.test(e))&&e>-1&&e%1==0&&e<t}function ns(e){if(e!=null){try{return Tj.call(e)}catch{}try{return e+""}catch{}}return""}(B4&&Ja(new B4(new ArrayBuffer(1)))!="[object DataView]"||k4&&Ja(new k4)!=C4||F4&&Ja(F4.resolve())!="[object Promise]"||T4&&Ja(new T4)!=S4||_4&&Ja(new _4)!="[object WeakMap]")&&(Ja=function(e){var t=Bp.call(e),n=t=="[object Object]"?e.constructor:void 0,r=n?ns(n):void 0;if(r)switch(r){case vG:return"[object DataView]";case yG:return C4;case mG:return"[object Promise]";case bG:return S4;case wG:return"[object WeakMap]"}return t});var _j=Array.isArray;function s8(e){return e!=null&&(function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991})(e.length)&&!jj(e)}function jj(e){var t=Pj(e)?Bp.call(e):"";return t=="[object Function]"||t=="[object GeneratorFunction]"}function Pj(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Nj(e){return!!e&&typeof e=="object"}function SG(e){return e?sG(e,(function(t){return s8(t)?EG(t):xG(t)})(e)):[]}var US=function(e){if(!e)return[];if(s8(e))return(function(n){return typeof n=="string"||!_j(n)&&Nj(n)&&Bp.call(n)=="[object String]"})(e)?fG(e):(function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o<i;)r[o]=n[o];return r})(e);if(r1&&e[r1])return(function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o})(e[r1]());var t=Ja(e);return(t==C4?lG:t==S4?cG:SG)(e)};function WS(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function l8(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){e[n]===void 0?e[n]=t[n]:WS(t[n])&&WS(e[n])&&Object.keys(t[n]).length>0&&l8(e[n],t[n])})}var Ij={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 Fp(){var e=typeof document<"u"?document:{};return l8(e,Ij),e}var AG={document:Ij,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 rs(){var e=typeof window<"u"?window:{};return l8(e,AG),e}function j4(e){return j4=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},j4(e)}function Tv(e,t){return Tv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Tv(e,t)}function OG(){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 P4(e,t,n){return P4=OG()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&Tv(u,i.prototype),u},P4.apply(null,arguments)}function N4(e){var t=typeof Map=="function"?new Map:void 0;return N4=function(n){if(n===null||!(function(o){return Function.toString.call(o).indexOf("[native code]")!==-1})(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return P4(n,arguments,j4(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Tv(r,n)},N4(e)}var Ui=(function(e){var t,n;function r(o){var i,a,u;return i=e.call.apply(e,[this].concat(o))||this,a=(function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s})(i),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r})(N4(Array));function Cy(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,Cy(n)):t.push(n)}),t}function Lj(e,t){return Array.prototype.filter.call(e,t)}function k(e,t){var n=rs(),r=Fp(),o=[];if(!t&&e instanceof Ui)return e;if(!e)return new Ui(o);if(typeof e=="string"){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=(function(l,c){if(typeof l!="string")return[l];for(var f=[],d=c.querySelectorAll(l),p=0;p<d.length;p+=1)f.push(d[p]);return f})(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof Ui)return e;o=e}return new Ui((function(l){for(var c=[],f=0;f<l.length;f+=1)c.indexOf(l[f])===-1&&c.push(l[f]);return c})(o))}function Dl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Cy(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,r)}),this}function xl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Cy(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,r)}),this}function Cl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Cy(t.map(function(o){return o.split(" ")}));return Lj(this,function(o){return r.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function Ar(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 _v(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Sl(){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 o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in n)n[a]==="false"?n[a]=!1:n[a]==="true"?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Ao(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 o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function Oo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(v){var g=v.target;if(g){var m=v.target.dom7EventData||[];if(m.indexOf(v)<0&&m.unshift(v),k(g).is(o))i.apply(g,m);else for(var h=k(g).parents(),b=0;b<h.length;b+=1)k(h[b]).is(o)&&i.apply(h[b],m)}}function s(v){var g=v&&v.target&&v.target.dom7EventData||[];g.indexOf(v)<0&&g.unshift(v),i.apply(this,g)}typeof t[1]=="function"&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var y=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[y]||(d.dom7Listeners[y]=[]),d.dom7Listeners[y].push({listener:i,proxyListener:s}),d.addEventListener(y,s,a)}}return this}function GS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];typeof t[1]=="function"&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var y=d[p];i&&y.listener===i||i&&y.listener&&y.listener.dom7proxy&&y.listener.dom7proxy===i?(f.removeEventListener(l,y.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,y.proxyListener,a),d.splice(p,1))}}return this}function jv(){var e=rs();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Pv(){var e=rs();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function qS(){if(this.length>0){var e=rs(),t=Fp(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Al(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Nv(){for(var e=rs(),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 Iv(e,t){var n,r=rs();if(arguments.length===1){if(typeof e!="string"){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];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 Lv(e){return e?(this.forEach(function(t,n){e.apply(t,[t,n])}),this):this}function KS(e){return k(Lj(this,e))}function ha(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 Rv(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 XS(e){var t,n,r=rs(),o=Fp(),i=this[0];if(!i||e===void 0)return!1;if(typeof e=="string"){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=k(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof Ui){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function Or(){for(var e,t=Fp(),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 o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof Ui)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function ZS(e){var t,n,r=Fp();for(t=0;t<this.length;t+=1)if(typeof e=="string"){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof Ui)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 Ol(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?k(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return k(t)}function Mv(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?k(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return k(t)}function Bl(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return k(t)}function kl(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!k(r[o]).is(e)||t.push(r[o]);return k(t)}function Fl(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Tl(){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}k.fn=Ui.prototype;var BG="resize scroll".split(" ");function Rj(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)BG.indexOf(e)<0&&(e in this[o]?this[o][e]():k(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var YS=Rj("click"),ga=Rj("focus"),kG="[object GeneratorFunction]",FG=/^(?:0|[1-9]\d*)$/;function TG(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}var Sy=Object.prototype,I4=Sy.hasOwnProperty,Mj=Sy.toString,_G=Sy.propertyIsEnumerable,jG=(function(e,t){return function(n){return e(t(n))}})(Object.keys,Object);function PG(e,t){var n=zj(e)||(function(a){return(function(u){return(function(s){return!!s&&typeof s=="object"})(u)&&c8(u)})(a)&&I4.call(a,"callee")&&(!_G.call(a,"callee")||Mj.call(a)=="[object Arguments]")})(e)?(function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l})(e.length,String):[],r=n.length,o=!!r;for(var i in e)!I4.call(e,i)||o&&(i=="length"||RG(i,r))||n.push(i);return n}var JS,NG=(JS=function(e,t){return e&&IG(e,t,MG)},function(e,t){if(e==null)return e;if(!c8(e))return JS(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&t(o[r],r,o)!==!1;);return e}),IG=(function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var s=a[++o];if(n(i[s],s,i)===!1)break}return t}})();function LG(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||Sy,t!==r)return jG(e);var t,n,r,o=[];for(var i in Object(e))I4.call(e,i)&&i!="constructor"&&o.push(i);return o}function RG(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||FG.test(e))&&e>-1&&e%1==0&&e<t}var zj=Array.isArray;function c8(e){return e!=null&&(function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991})(e.length)&&!(function(t){var n=(function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")})(t)?Mj.call(t):"";return n=="[object Function]"||n==kG})(e)}function MG(e){return c8(e)?PG(e):LG(e)}function zG(e){return e}var f8=function(e,t){return(zj(e)?TG:NG)(e,typeof t=="function"?t:zG)};let $j=(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};var $G=/^\s+|\s+$/g,HG=/^[-+]0x[0-9a-f]+$/i,VG=/^0b[01]+$/i,UG=/^0o[0-7]+$/i,WG=parseInt,GG=typeof at=="object"&&at&&at.Object===Object&&at,qG=typeof self=="object"&&self&&self.Object===Object&&self,KG=GG||qG||Function("return this")(),XG=Object.prototype.toString,ZG=Math.max,YG=Math.min,o1=function(){return KG.Date.now()};function JG(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError("Expected a function");function p(b){var w=r,D=o;return r=o=void 0,l=b,a=e.apply(D,w)}function y(b){return l=b,u=setTimeout(g,t),c?p(b):a}function v(b){var w=b-s;return s===void 0||w>=t||w<0||f&&b-l>=i}function g(){var b=o1();if(v(b))return m(b);u=setTimeout(g,(function(w){var D=t-(w-s);return f?YG(D,i-(w-l)):D})(b))}function m(b){return u=void 0,d&&r?p(b):(r=o=void 0,a)}function h(){var b=o1(),w=v(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return y(s);if(f)return u=setTimeout(g,t),p(s)}return u===void 0&&(u=setTimeout(g,t)),a}return t=QS(t)||0,zv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?ZG(QS(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:m(o1())},h}function zv(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function QS(e){if(typeof e=="number")return e;if((function(r){return typeof r=="symbol"||(function(o){return!!o&&typeof o=="object"})(r)&&XG.call(r)=="[object Symbol]"})(e))return NaN;if(zv(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=zv(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace($G,"");var n=VG.test(e);return n||UG.test(e)?WG(e.slice(2),n?2:8):HG.test(e)?NaN:+e}var $u=function(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError("Expected a function");return zv(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),JG(e,t,{leading:r,maxWait:t,trailing:o})};const QG={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 Bd(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:t===void 0?void 0:t.key}}const L4=Array.isArray;function Pg(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function i1(e){return e===void 0}function Zn(e){return e!==void 0}const eA=Bd("",{},[],void 0,void 0);function Oc(e,t){var n,r;const o=e.key===t.key,i=((n=e.data)===null||n===void 0?void 0:n.is)===((r=t.data)===null||r===void 0?void 0:r.is);return e.sel===t.sel&&o&&i}function eq(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const a=(r=e[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const tq=["create","update","remove","destroy","pre","post"];function nq(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=QG;for(const f of tq)for(const d of e){const p=d[f];p!==void 0&&n[f].push(p)}function o(f){const d=f.id?"#"+f.id:"",p=f.getAttribute("class"),y=p?"."+p.split(" ").join("."):"";return Bd(r.tagName(f).toLowerCase()+d+y,{},[],void 0,f)}function i(f,d){return function(){if(--d==0){const p=r.parentNode(f);r.removeChild(p,f)}}}function a(f,d){var p,y;let v,g=f.data;if(g!==void 0){const b=(p=g.hook)===null||p===void 0?void 0:p.init;Zn(b)&&(b(f),g=f.data)}const m=f.children,h=f.sel;if(h==="!")i1(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),w=h.indexOf(".",b),D=b>0?b:h.length,C=w>0?w:h.length,x=b!==-1||w!==-1?h.slice(0,Math.min(D,C)):h,O=f.elm=Zn(g)&&Zn(v=g.ns)?r.createElementNS(v,x,g):r.createElement(x,g);for(D<C&&O.setAttribute("id",h.slice(D+1,C)),w>0&&O.setAttribute("class",h.slice(C+1).replace(/\./g," ")),v=0;v<n.create.length;++v)n.create[v](eA,f);if(L4(m))for(v=0;v<m.length;++v){const R=m[v];R!=null&&r.appendChild(O,a(R,d))}else Pg(f.text)&&r.appendChild(O,r.createTextNode(f.text));const F=f.data.hook;Zn(F)&&((y=F.create)===null||y===void 0||y.call(F,eA,f),F.insert&&d.push(f))}else f.elm=r.createTextNode(f.text);return f.elm}function u(f,d,p,y,v,g){for(;y<=v;++y){const m=p[y];m!=null&&r.insertBefore(f,a(m,g),d)}}function s(f){var d,p;const y=f.data;if(y!==void 0){(p=(d=y==null?void 0:y.hook)===null||d===void 0?void 0:d.destroy)===null||p===void 0||p.call(d,f);for(let v=0;v<n.destroy.length;++v)n.destroy[v](f);if(f.children!==void 0)for(let v=0;v<f.children.length;++v){const g=f.children[v];g!=null&&typeof g!="string"&&s(g)}}}function l(f,d,p,y){for(var v,g;p<=y;++p){let m,h;const b=d[p];if(b!=null)if(Zn(b.sel)){s(b),m=n.remove.length+1,h=i(b.elm,m);for(let D=0;D<n.remove.length;++D)n.remove[D](b,h);const w=(g=(v=b==null?void 0:b.data)===null||v===void 0?void 0:v.hook)===null||g===void 0?void 0:g.remove;Zn(w)?w(b,h):h()}else r.removeChild(f,b.elm)}}function c(f,d,p){var y,v,g,m,h;const b=(y=d.data)===null||y===void 0?void 0:y.hook;(v=b==null?void 0:b.prepatch)===null||v===void 0||v.call(b,f,d);const w=d.elm=f.elm,D=f.children,C=d.children;if(f!==d){if(d.data!==void 0){for(let x=0;x<n.update.length;++x)n.update[x](f,d);(m=(g=d.data.hook)===null||g===void 0?void 0:g.update)===null||m===void 0||m.call(g,f,d)}i1(d.text)?Zn(D)&&Zn(C)?D!==C&&(function(x,O,F,R){let H,M,K,U,W=0,q=0,te=O.length-1,se=O[0],ue=O[te],ae=F.length-1,B=F[0],S=F[ae];for(;W<=te&&q<=ae;)se==null?se=O[++W]:ue==null?ue=O[--te]:B==null?B=F[++q]:S==null?S=F[--ae]:Oc(se,B)?(c(se,B,R),se=O[++W],B=F[++q]):Oc(ue,S)?(c(ue,S,R),ue=O[--te],S=F[--ae]):Oc(se,S)?(c(se,S,R),r.insertBefore(x,se.elm,r.nextSibling(ue.elm)),se=O[++W],S=F[--ae]):Oc(ue,B)?(c(ue,B,R),r.insertBefore(x,ue.elm,se.elm),ue=O[--te],B=F[++q]):(H===void 0&&(H=eq(O,W,te)),M=H[B.key],i1(M)?r.insertBefore(x,a(B,R),se.elm):(K=O[M],K.sel!==B.sel?r.insertBefore(x,a(B,R),se.elm):(c(K,B,R),O[M]=void 0,r.insertBefore(x,K.elm,se.elm))),B=F[++q]);(W<=te||q<=ae)&&(W>te?(U=F[ae+1]==null?null:F[ae+1].elm,u(x,U,F,q,ae,R)):l(x,O,W,te))})(w,D,C,p):Zn(C)?(Zn(f.text)&&r.setTextContent(w,""),u(w,null,C,0,C.length-1,p)):Zn(D)?l(w,D,0,D.length-1):Zn(f.text)&&r.setTextContent(w,""):f.text!==d.text&&(Zn(D)&&l(w,D,0,D.length-1),r.setTextContent(w,d.text)),(h=b==null?void 0:b.postpatch)===null||h===void 0||h.call(b,f,d)}}return function(f,d){let p,y,v;const g=[];for(p=0;p<n.pre.length;++p)n.pre[p]();for((function(m){return m.sel!==void 0})(f)||(f=o(f)),Oc(f,d)?c(f,d,g):(y=f.elm,v=r.parentNode(y),a(d,g),v!==null&&(r.insertBefore(v,d.elm,r.nextSibling(y)),l(v,[f],0,0))),p=0;p<g.length;++p)g[p].data.hook.insert(g[p]);for(p=0;p<n.post.length;++p)n.post[p]();return d}}function Hj(e,t,n){if(e.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&t!==void 0)for(let r=0;r<t.length;++r){const o=t[r].data;o!==void 0&&Hj(o,t[r].children,t[r].sel)}}function _l(e,t,n){let r,o,i,a={};if(n!==void 0?(t!==null&&(a=t),L4(n)?r=n:Pg(n)?o=n.toString():n&&n.sel&&(r=[n])):t!=null&&(L4(t)?r=t:Pg(t)?o=t.toString():t&&t.sel?r=[t]:a=t),r!==void 0)for(i=0;i<r.length;++i)Pg(r[i])&&(r[i]=Bd(void 0,void 0,void 0,r[i],void 0));return e[0]!=="s"||e[1]!=="v"||e[2]!=="g"||e.length!==3&&e[3]!=="."&&e[3]!=="#"||Hj(a,r,e),Bd(e,a,r,o,void 0)}function tA(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const a=i[n];o[n]!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n.charCodeAt(0)!==120?r.setAttribute(n,a):n.charCodeAt(3)===58?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):n.charCodeAt(5)===58?r.setAttributeNS("http://www.w3.org/1999/xlink",n,a):r.setAttribute(n,a))}for(n in o)n in i||r.removeAttribute(n)}}const rq={create:tA,update:tA};function nA(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const oq={create:nA,update:nA},rA=/[A-Z]/g;function oA(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(rA,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(rA,"-$&").toLowerCase(),i[r]))}const iq={create:oA,update:oA};function Vj(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++)Vj(e[r],t,n)}function aq(e,t){const n=e.type,r=t.data.on;r&&r[n]&&Vj(r[n],t,e)}function a1(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const s=t.listener=e.listener||function l(c){aq(c,l.vnode)};if(s.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const uq={create:a1,update:a1,destroy:a1};function iA(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||n==="value"&&i[n]===r||(i[n]=r)}const sq={create:iA,update:iA},aA=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let u1=!1;function lq(e,t,n){(function(r){aA(function(){aA(r)})})(function(){e[t]=n})}function uA(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||(r[0]==="-"&&r[1]==="-"?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],r==="delayed"&&a.delayed)for(const s in a.delayed)n=a.delayed[s],u&&n===i.delayed[s]||lq(o.style,s,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const cq={pre:function(){u1=!1},create:uA,update:uA,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;u1||(e.elm.offsetLeft,u1=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",function(c){c.target===o&&--u,u===0&&t()})}};function Uj(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?Uj(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(Bd(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function be(e,t,...n){const r=Uj(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?_l(e,t,r[0].text):_l(e,t,r)}be||(be={});var fq=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dq=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wj="\\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",pq="[\\ud800-\\udfff]",sA="["+Wj+"]",$v="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Gj="\\d+",hq="[\\u2700-\\u27bf]",qj="[a-z\\xdf-\\xf6\\xf8-\\xff]",Kj="[^\\ud800-\\udfff"+Wj+Gj+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",R4="\\ud83c[\\udffb-\\udfff]",Xj="[^\\ud800-\\udfff]",d8="(?:\\ud83c[\\udde6-\\uddff]){2}",p8="[\\ud800-\\udbff][\\udc00-\\udfff]",Ks="[A-Z\\xc0-\\xd6\\xd8-\\xde]",lA="(?:"+qj+"|"+Kj+")",gq="(?:"+Ks+"|"+Kj+")",cA="(?:"+$v+"|"+R4+")?",Zj="[\\ufe0e\\ufe0f]?"+cA+("(?:\\u200d(?:"+[Xj,d8,p8].join("|")+")[\\ufe0e\\ufe0f]?"+cA+")*"),vq="(?:"+[hq,d8,p8].join("|")+")"+Zj,yq="(?:"+[Xj+$v+"?",$v,d8,p8,pq].join("|")+")",mq=RegExp("['’]","g"),bq=RegExp($v,"g"),wq=RegExp(R4+"(?="+R4+")|"+yq+Zj,"g"),Eq=RegExp([Ks+"?"+qj+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[sA,Ks,"$"].join("|")+")",gq+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[sA,Ks+lA,"$"].join("|")+")",Ks+"?"+lA+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ks+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Gj,vq].join("|"),"g"),Dq=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),xq=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Cq=typeof at=="object"&&at&&at.Object===Object&&at,Sq=typeof self=="object"&&self&&self.Object===Object&&self,Aq=Cq||Sq||Function("return this")(),s1,Oq=(s1={À:"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 s1==null?void 0:s1[e]});function Yj(e){return Dq.test(e)}function Bq(e){return Yj(e)?(function(t){return t.match(wq)||[]})(e):(function(t){return t.split("")})(e)}var kq=Object.prototype.toString,fA=Aq.Symbol,dA=fA?fA.prototype:void 0,pA=dA?dA.toString:void 0;function Fq(e){if(typeof e=="string")return e;if((function(n){return typeof n=="symbol"||(function(r){return!!r&&typeof r=="object"})(n)&&kq.call(n)=="[object Symbol]"})(e))return pA?pA.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Tq(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:(function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u<s;)l[u]=o[u+i];return l})(e,t,n)}function Ng(e){return e==null?"":Fq(e)}var hA,_q=(hA=function(e,t,n){return t=t.toLowerCase(),e+(n?jq(Ng(t).toLowerCase()):t)},function(e){return(function(t,n,r,o){var i=-1,a=t?t.length:0;for(o;++i<a;)r=n(r,t[i],i,t);return r})((function(t,n,r){return t=Ng(t),(n=n)===void 0?(function(o){return xq.test(o)})(t)?(function(o){return o.match(Eq)||[]})(t):(function(o){return o.match(fq)||[]})(t):t.match(n)||[]})((function(t){return(t=Ng(t))&&t.replace(dq,Oq).replace(bq,"")})(e).replace(mq,"")),hA,"")}),gA,jq=(gA="toUpperCase",function(e){var t=Yj(e=Ng(e))?Bq(e):void 0,n=t?t[0]:e.charAt(0),r=t?Tq(t,1).join(""):e.slice(1);return n[gA]()+r});for(var Pq=_q,Nq=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),l1={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Jj={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Nq?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},h8={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},Sh=1;Sh<20;Sh++)h8["f"+Sh]=111+Sh;function Qj(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(i){return(function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var d in l1)l[l1[d]]=!1;var p=!0,y=!1,v=void 0;try{for(var g,m=c[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var h=g.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var w=eP(h),D=l1[w];if(h.length>1&&!D&&!Jj[h]&&!h8[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&D||(s?l.key=w:l.which=Iq(h)),D&&(l[D]=!b||null)}}catch(C){y=!0,v=C}finally{try{!p&&m.return&&m.return()}finally{if(y)throw v}}return l})(i,t)}),o=function(i){return r.some(function(a){return(function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0})(a,i)})};return n==null?o:o(n)}function Iq(e){return e=eP(e),h8[e]||e.toUpperCase().charCodeAt(0)}function eP(e){return e=e.toLowerCase(),e=Jj[e]||e}var Lq=Qj,c1=function(e,t){return Qj(e,{byKey:!0},t)},Rq=/^\s+|\s+$/g,Mq=/^[-+]0x[0-9a-f]+$/i,zq=/^0b[01]+$/i,$q=/^0o[0-7]+$/i,Hq=parseInt,Vq=typeof at=="object"&&at&&at.Object===Object&&at,Uq=typeof self=="object"&&self&&self.Object===Object&&self,Wq=Vq||Uq||Function("return this")(),Gq=Object.prototype.toString,qq=Math.max,Kq=Math.min,f1=function(){return Wq.Date.now()};function M4(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function vA(e){if(typeof e=="number")return e;if((function(r){return typeof r=="symbol"||(function(o){return!!o&&typeof o=="object"})(r)&&Gq.call(r)=="[object Symbol]"})(e))return NaN;if(M4(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=M4(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Rq,"");var n=zq.test(e);return n||$q.test(e)?Hq(e.slice(2),n?2:8):Mq.test(e)?NaN:+e}var ws,tP=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError("Expected a function");function p(b){var w=r,D=o;return r=o=void 0,l=b,a=e.apply(D,w)}function y(b){return l=b,u=setTimeout(g,t),c?p(b):a}function v(b){var w=b-s;return s===void 0||w>=t||w<0||f&&b-l>=i}function g(){var b=f1();if(v(b))return m(b);u=setTimeout(g,(function(w){var D=t-(w-s);return f?Kq(D,i-(w-l)):D})(b))}function m(b){return u=void 0,d&&r?p(b):(r=o=void 0,a)}function h(){var b=f1(),w=v(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return y(s);if(f)return u=setTimeout(g,t),p(s)}return u===void 0&&(u=setTimeout(g,t)),a}return t=vA(t)||0,M4(n)&&(c=!!n.leading,i=(f="maxWait"in n)?qq(vA(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:m(f1())},h},nP=Qu(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",y="[object Set]",v="[object String]",g="[object Symbol]",m="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",D="[object Float64Array]",C="[object Int8Array]",x="[object Int16Array]",O="[object Int32Array]",F="[object Uint8Array]",R="[object Uint8ClampedArray]",H="[object Uint16Array]",M="[object Uint32Array]",K=/\w*$/,U=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,q={};q[o]=q["[object Array]"]=q[h]=q[b]=q[i]=q[a]=q[w]=q[D]=q[C]=q[x]=q[O]=q[l]=q[c]=q[f]=q[p]=q[y]=q[v]=q[g]=q[F]=q[R]=q[H]=q[M]=!0,q["[object Error]"]=q[u]=q[m]=!1;var te=typeof at=="object"&&at&&at.Object===Object&&at,se=typeof self=="object"&&self&&self.Object===Object&&self,ue=te||se||Function("return this")(),ae=t&&!t.nodeType&&t,B=ae&&e&&!e.nodeType&&e,S=B&&B.exports===ae;function j(T,z){return T.set(z[0],z[1]),T}function $(T,z){return T.add(z),T}function X(T,z,re,le){var ze=-1,vt=T?T.length:0;for(le;++ze<vt;)re=z(re,T[ze],ze,T);return re}function V(T){var z=!1;if(T!=null&&typeof T.toString!="function")try{z=!!(T+"")}catch{}return z}function ie(T){var z=-1,re=Array(T.size);return T.forEach(function(le,ze){re[++z]=[ze,le]}),re}function ge(T,z){return function(re){return T(z(re))}}function ve(T){var z=-1,re=Array(T.size);return T.forEach(function(le){re[++z]=le}),re}var De=Array.prototype,G=Function.prototype,Ie=Object.prototype,Ae=ue["__core-js_shared__"],de=(function(){var T=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return T?"Symbol(src)_1."+T:""})(),Oe=G.toString,Ot=Ie.hasOwnProperty,$e=Ie.toString,Qe=RegExp("^"+Oe.call(Ot).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=S?ue.Buffer:void 0,gn=ue.Symbol,Me=ue.Uint8Array,Nn=ge(Object.getPrototypeOf,Object),Pr=Object.create,eo=Ie.propertyIsEnumerable,fs=De.splice,Pa=Object.getOwnPropertySymbols,Nr=gt?gt.isBuffer:void 0,to=ge(Object.keys,Object),No=no(ue,"DataView"),vn=no(ue,"Map"),yn=no(ue,"Promise"),mn=no(ue,"Set"),kn=no(ue,"WeakMap"),tn=no(Object,"create"),dr=oo(No),hc=oo(vn),pi=oo(yn),Io=oo(mn),ds=oo(kn),Na=gn?gn.prototype:void 0,ps=Na?Na.valueOf:void 0;function Ir(T){var z=-1,re=T?T.length:0;for(this.clear();++z<re;){var le=T[z];this.set(le[0],le[1])}}function pr(T){var z=-1,re=T?T.length:0;for(this.clear();++z<re;){var le=T[z];this.set(le[0],le[1])}}function Lo(T){var z=-1,re=T?T.length:0;for(this.clear();++z<re;){var le=T[z];this.set(le[0],le[1])}}function Lr(T){this.__data__=new pr(T)}function hi(T,z){var re=_(T)||(function(st){return(function(Ue){return(function(Xt){return!!Xt&&typeof Xt=="object"})(Ue)&&I(Ue)})(st)&&Ot.call(st,"callee")&&(!eo.call(st,"callee")||$e.call(st)==o)})(T)?(function(st,Ue){for(var Xt=-1,bn=Array(st);++Xt<st;)bn[Xt]=Ue(Xt);return bn})(T.length,String):[],le=re.length,ze=!!le;for(var vt in T)!Ot.call(T,vt)||ze&&(vt=="length"||ch(vt,le))||re.push(vt);return re}function sh(T,z,re){var le=T[z];Ot.call(T,z)&&fh(le,re)&&(re!==void 0||z in T)||(T[z]=re)}function Xn(T,z){for(var re=T.length;re--;)if(fh(T[re][0],z))return re;return-1}function gc(T,z,re,le,ze,vt,st){var Ue;if(le&&(Ue=vt?le(T,ze,vt,st):le(T)),Ue!==void 0)return Ue;if(!et(T))return T;var Xt=_(T);if(Xt){if(Ue=(function(me){var Ze=me.length,_t=me.constructor(Ze);return Ze&&typeof me[0]=="string"&&Ot.call(me,"index")&&(_t.index=me.index,_t.input=me.input),_t})(T),!z)return(function(me,Ze){var _t=-1,Le=me.length;for(Ze||(Ze=Array(Le));++_t<Le;)Ze[_t]=me[_t];return Ze})(T,Ue)}else{var bn=ro(T),Ia=bn==u||bn==s;if(Y(T))return(function(me,Ze){if(Ze)return me.slice();var _t=new me.constructor(me.length);return me.copy(_t),_t})(T,z);if(bn==f||bn==o||Ia&&!vt){if(V(T))return vt?T:{};if(Ue=(function(me){return typeof me.constructor!="function"||gi(me)?{}:(Ze=Nn(me),et(Ze)?Pr(Ze):{});var Ze})(Ia?{}:T),!z)return(function(me,Ze){return lh(me,vc(me),Ze)})(T,(function(me,Ze){return me&&lh(Ze,je(Ze),me)})(Ue,T))}else{if(!q[bn])return vt?T:{};Ue=(function(me,Ze,_t,Le){var We=me.constructor;switch(Ze){case h:return hs(me);case i:case a:return new We(+me);case b:return(function(Ge,Bt){var Fn=Bt?hs(Ge.buffer):Ge.buffer;return new Ge.constructor(Fn,Ge.byteOffset,Ge.byteLength)})(me,Le);case w:case D:case C:case x:case O:case F:case R:case H:case M:return(function(Ge,Bt){var Fn=Bt?hs(Ge.buffer):Ge.buffer;return new Ge.constructor(Fn,Ge.byteOffset,Ge.length)})(me,Le);case l:return(function(Ge,Bt,Fn){return X(Bt?Fn(ie(Ge),!0):ie(Ge),j,new Ge.constructor)})(me,Le,_t);case c:case v:return new We(me);case p:return(function(Ge){var Bt=new Ge.constructor(Ge.source,K.exec(Ge));return Bt.lastIndex=Ge.lastIndex,Bt})(me);case y:return(function(Ge,Bt,Fn){return X(Bt?Fn(ve(Ge),!0):ve(Ge),$,new Ge.constructor)})(me,Le,_t);case g:return(function(Ge){return ps?Object(ps.call(Ge)):{}})(me)}})(T,bn,gc,z)}}st||(st=new Lr);var zo=st.get(T);if(zo)return zo;if(st.set(T,Ue),!Xt)var vi=re?(function(me){return(function(Ze,_t,Le){var We=_t(Ze);return _(Ze)?We:(function(Ge,Bt){for(var Fn=-1,In=Bt.length,Rr=Ge.length;++Fn<In;)Ge[Rr+Fn]=Bt[Fn];return Ge})(We,Le(Ze))})(me,je,vc)})(T):je(T);return(function(me,Ze){for(var _t=-1,Le=me?me.length:0;++_t<Le&&Ze(me[_t],_t,me)!==!1;);})(vi||T,function(me,Ze){vi&&(me=T[Ze=me]),sh(Ue,Ze,gc(me,z,re,le,Ze,T,st))}),Ue}function Ro(T){return!(!et(T)||(function(z){return!!de&&de in z})(T))&&(he(T)||V(T)?Qe:U).test(oo(T))}function hs(T){var z=new T.constructor(T.byteLength);return new Me(z).set(new Me(T)),z}function lh(T,z,re,le){re||(re={});for(var ze=-1,vt=z.length;++ze<vt;){var st=z[ze],Ue=void 0;sh(re,st,Ue===void 0?T[st]:Ue)}return re}function Mo(T,z){var re,le,ze=T.__data__;return((le=typeof(re=z))=="string"||le=="number"||le=="symbol"||le=="boolean"?re!=="__proto__":re===null)?ze[typeof z=="string"?"string":"hash"]:ze.map}function no(T,z){var re=(function(le,ze){return le==null?void 0:le[ze]})(T,z);return Ro(re)?re:void 0}Ir.prototype.clear=function(){this.__data__=tn?tn(null):{}},Ir.prototype.delete=function(T){return this.has(T)&&delete this.__data__[T]},Ir.prototype.get=function(T){var z=this.__data__;if(tn){var re=z[T];return re===n?void 0:re}return Ot.call(z,T)?z[T]:void 0},Ir.prototype.has=function(T){var z=this.__data__;return tn?z[T]!==void 0:Ot.call(z,T)},Ir.prototype.set=function(T,z){return this.__data__[T]=tn&&z===void 0?n:z,this},pr.prototype.clear=function(){this.__data__=[]},pr.prototype.delete=function(T){var z=this.__data__,re=Xn(z,T);return!(re<0)&&(re==z.length-1?z.pop():fs.call(z,re,1),!0)},pr.prototype.get=function(T){var z=this.__data__,re=Xn(z,T);return re<0?void 0:z[re][1]},pr.prototype.has=function(T){return Xn(this.__data__,T)>-1},pr.prototype.set=function(T,z){var re=this.__data__,le=Xn(re,T);return le<0?re.push([T,z]):re[le][1]=z,this},Lo.prototype.clear=function(){this.__data__={hash:new Ir,map:new(vn||pr),string:new Ir}},Lo.prototype.delete=function(T){return Mo(this,T).delete(T)},Lo.prototype.get=function(T){return Mo(this,T).get(T)},Lo.prototype.has=function(T){return Mo(this,T).has(T)},Lo.prototype.set=function(T,z){return Mo(this,T).set(T,z),this},Lr.prototype.clear=function(){this.__data__=new pr},Lr.prototype.delete=function(T){return this.__data__.delete(T)},Lr.prototype.get=function(T){return this.__data__.get(T)},Lr.prototype.has=function(T){return this.__data__.has(T)},Lr.prototype.set=function(T,z){var re=this.__data__;if(re instanceof pr){var le=re.__data__;if(!vn||le.length<199)return le.push([T,z]),this;re=this.__data__=new Lo(le)}return re.set(T,z),this};var vc=Pa?ge(Pa,Object):function(){return[]},ro=function(T){return $e.call(T)};function ch(T,z){return!!(z=z??r)&&(typeof T=="number"||W.test(T))&&T>-1&&T%1==0&&T<z}function gi(T){var z=T&&T.constructor;return T===(typeof z=="function"&&z.prototype||Ie)}function oo(T){if(T!=null){try{return Oe.call(T)}catch{}try{return T+""}catch{}}return""}function fh(T,z){return T===z||T!=T&&z!=z}(No&&ro(new No(new ArrayBuffer(1)))!=b||vn&&ro(new vn)!=l||yn&&ro(yn.resolve())!=d||mn&&ro(new mn)!=y||kn&&ro(new kn)!=m)&&(ro=function(T){var z=$e.call(T),re=z==f?T.constructor:void 0,le=re?oo(re):void 0;if(le)switch(le){case dr:return b;case hc:return l;case pi:return d;case Io:return y;case ds:return m}return z});var _=Array.isArray;function I(T){return T!=null&&(function(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=r})(T.length)&&!he(T)}var Y=Nr||function(){return!1};function he(T){var z=et(T)?$e.call(T):"";return z==u||z==s}function et(T){var z=typeof T;return!!T&&(z=="object"||z=="function")}function je(T){return I(T)?hi(T):(function(z){if(!gi(z))return to(z);var re=[];for(var le in Object(z))Ot.call(z,le)&&le!="constructor"&&re.push(le);return re})(T)}e.exports=function(T){return gc(T,!0,!0)}});function yA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Xq=0;function Zq(e){return"__private_"+Xq+++"_"+e}function Yq(e,t,n){const r=[];return e.forEach(o=>typeof o!="string"?r.push(o):t[Symbol.split](o).forEach((i,a,u)=>{i!==""&&r.push(i),a<u.length-1&&r.push(n)})),r}/**
|
|
16
|
+
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
|
17
|
+
* and replaces it with values from options `{smart_count: 5}`
|
|
18
|
+
*
|
|
19
|
+
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
|
|
20
|
+
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
|
|
21
|
+
*
|
|
22
|
+
* @param {string} phrase that needs interpolation, with placeholders
|
|
23
|
+
* @param {object} options with values that will be used to replace placeholders
|
|
24
|
+
* @returns {any[]} interpolated
|
|
25
|
+
*/function mA(e,t){const n=/\$/g;let r=[e];if(t==null)return r;for(const o of Object.keys(t))if(o!=="_"){let i=t[o];typeof i=="string"&&(i=n[Symbol.replace](i,"$$$$")),r=Yq(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var rP=(ws=Zq("apply"),class{constructor(e){Object.defineProperty(this,ws,{value:Jq}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(yA(this,ws)[ws],this):yA(this,ws)[ws](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!(function(r,o){return Object.prototype.hasOwnProperty.call(r,o)})(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if(typeof n=="object"){if(t&&t.smart_count!==void 0)return mA(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return mA(n,t)}});function Jq(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var oP=function(){var e={},t=e._fns={};return e.emit=function(n,r,o,i,a,u,s){var l=(function(c){for(var f=t[c]?t[c]:[],d=c.indexOf(":"),p=d===-1?[c]:[c.substring(0,d),c.substring(d+1)],y=Object.keys(t),v=0,g=y.length;v<g;v++){var m=y[v];if(m==="*"&&(f=f.concat(t[m])),p.length===2&&p[0]===m){f=f.concat(t[m]);break}}return f})(n);l.length&&(function(c,f,d){for(var p=0,y=f.length;p<y&&f[p];p++)f[p].event=c,f[p].apply(f[p],d)})(n,l,[r,o,i,a,u,s])},e.on=function(n,r){t[n]||(t[n]=[]),t[n].push(r)},e.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),e.off(n,o)})},e.off=function(n,r){var o=[];if(n&&r)for(var i=this._fns[n],a=0,u=i?i.length:0;a<u;a++)i[a]!==r&&o.push(i[a]);o.length?this._fns[n]=o:delete this._fns[n]},e},Qq={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}},d1=function(e){if(typeof e!="number"||isNaN(e))throw new 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/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function iP(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}iP.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)o[t]!=="*"&&(r=t<n.length&&o[t]===n[t]);r=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 a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var eK=/[\/\+\.]/,tK=function(e,t){function n(r){var o=(function(i,a,u){var s=new iP(i,u||/[\/\.]/);return a!==void 0?s.match(a):s})(r,e,eK);return o&&o.length>=2}return t?n(t.split(";")[0]):n},nK=0;function rK(e){return"__private_"+nK+++"_"+e}var p1=rK("publish");class aP{constructor(){Object.defineProperty(this,p1,{value:oK}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};this.state=r,(function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o})(this,p1)[p1](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function oK(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(r=>{r(...t)})}aP.VERSION="2.0.3";var bA=function(e){const 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)}},wA={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 EA(e){let t="";return e.replace(/[^A-Z0-9]/gi,n=>(t+=`-${(function(r){return r.charCodeAt(0).toString(32)})(n)}`,"/"))+t}var iK=function(e){if(e==null&&(e=typeof navigator<"u"?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||r===15&&o<15063||r>18||r===18&&o>=18218};function h1(e){return e<10?`0${e}`:e.toString()}var Ah=function(){const e=new Date;return`${h1(e.getHours())}:${h1(e.getMinutes())}:${h1(e.getSeconds())}`},uP={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Ah()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${Ah()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${Ah()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Ah()}]`,...t)}}},aK={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}"}}},sP=Qq;let lP,cP;function fe(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var uK=0;function Kt(e){return"__private_"+uK+++"_"+e}const{nanoid:sK}=sP,{justErrorsLogger:lK,debugLogger:cK}=uP;class po extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class fK extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var fn=Kt("plugins"),Bc=Kt("storeUnsubscribe"),Ho=Kt("emitter"),ru=Kt("preProcessors"),ou=Kt("uploaders"),Ko=Kt("postProcessors"),Jf=Kt("checkRestrictions"),g1=Kt("checkMinNumberOfFiles"),kd=Kt("checkRequiredMetaFieldsOnFile"),v1=Kt("checkRequiredMetaFields"),Zt=Kt("showOrLogErrorAndThrow"),kc=Kt("assertNewUploadAllowed"),Fc=Kt("checkAndCreateFileStateObject"),Tc=Kt("startIfAutoProceed"),y1=Kt("addListeners"),zr=Kt("updateOnlineStatus"),Vo=Kt("createUpload"),m1=Kt("getUpload"),su=Kt("removeUpload"),Uo=Kt("runUpload");lP=Symbol.for("uppy test: getPlugins"),cP=Symbol.for("uppy test: createUpload");class fP{constructor(t){Object.defineProperty(this,Uo,{value:CK}),Object.defineProperty(this,su,{value:xK}),Object.defineProperty(this,m1,{value:DK}),Object.defineProperty(this,Vo,{value:EK}),Object.defineProperty(this,y1,{value:wK}),Object.defineProperty(this,Tc,{value:bK}),Object.defineProperty(this,Fc,{value:mK}),Object.defineProperty(this,kc,{value:yK}),Object.defineProperty(this,Zt,{value:vK}),Object.defineProperty(this,v1,{value:gK}),Object.defineProperty(this,kd,{value:hK}),Object.defineProperty(this,g1,{value:pK}),Object.defineProperty(this,Jf,{value:dK}),Object.defineProperty(this,fn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Bc,{writable:!0,value:void 0}),Object.defineProperty(this,Ho,{writable:!0,value:oP()}),Object.defineProperty(this,ru,{writable:!0,value:new Set}),Object.defineProperty(this,ou,{writable:!0,value:new Set}),Object.defineProperty(this,Ko,{writable:!0,value:new Set}),Object.defineProperty(this,zr,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=aK;const n={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:r=>r,onBeforeUpload:r=>r,store:new aP,logger:lK,infoTimeout:5e3};if(this.opts={...n,...t,restrictions:{...n.restrictions,...t&&t.restrictions}},t&&t.logger&&t.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"):t&&t.debug&&(this.opts.logger=cK),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=$u(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:iK(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),fe(this,Bc)[Bc]=this.store.subscribe((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),fe(this,y1)[y1]()}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];fe(this,Ho)[Ho].emit(t,...r)}on(t,n){return fe(this,Ho)[Ho].on(t,n),this}once(t,n){return fe(this,Ho)[Ho].once(t,n),this}off(t,n){return fe(this,Ho)[Ho].off(t,n),this}updateAll(t){this.iteratePlugins(n=>{n.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,n){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...n}}})}i18nInit(){const t=new rP([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},r={};Object.keys(n).forEach(o=>{const i={...n[o]};i.progress={...i.progress,...t},r[o]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){fe(this,ru)[ru].add(t)}removePreProcessor(t){return fe(this,ru)[ru].delete(t)}addPostProcessor(t){fe(this,Ko)[Ko].add(t)}removePostProcessor(t){return fe(this,Ko)[Ko].delete(t)}addUploader(t){fe(this,ou)[ou].add(t)}removeUploader(t){return fe(this,ou)[ou].delete(t)}setMeta(t){const n={...this.getState().meta,...t},r={...this.getState().files};Object.keys(r).forEach(o=>{r[o]={...r[o],meta:{...r[o].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:n,files:r})}setFileMeta(t,n){const r={...this.getState().files};if(!r[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const o={...r[t].meta,...n};r[t]={...r[t],meta:o},this.setState({files:r})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:n,error:r}=this.getState(),o=Object.values(t),i=o.filter(y=>{let{progress:v}=y;return!v.uploadComplete&&v.uploadStarted}),a=o.filter(y=>!y.progress.uploadStarted),u=o.filter(y=>y.progress.uploadStarted||y.progress.preprocess||y.progress.postprocess),s=o.filter(y=>y.progress.uploadStarted),l=o.filter(y=>y.isPaused),c=o.filter(y=>y.progress.uploadComplete),f=o.filter(y=>y.error),d=i.filter(y=>!y.isPaused),p=o.filter(y=>y.progress.preprocess||y.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===o.length&&p.length===0,isAllErrored:!!r&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(y=>y.isGhost)}}validateRestrictions(t,n){try{return fe(this,Jf)[Jf](t,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(t){const{files:n}=this.getState();return!(!n[t]||n[t].isGhost)}addFile(t){fe(this,kc)[kc](t);const{files:n}=this.getState();let r=fe(this,Fc)[Fc](n,t);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:t.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...n,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),fe(this,Tc)[Tc](),r.id}addFiles(t){fe(this,kc)[kc]();const n={...this.getState().files},r=[],o=[];for(let i=0;i<t.length;i++)try{let a=fe(this,Fc)[Fc](n,t[i]);n[a.id]&&n[a.id].isGhost&&(a={...n[a.id],data:t[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),n[a.id]=a,r.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:n}),r.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(i=>{this.log(`Added file: ${r[i].name}
|
|
26
|
+
id: ${r[i].id}
|
|
27
|
+
type: ${r[i].type}`)}),r.length>0&&fe(this,Tc)[Tc](),o.length>0){let i=`Multiple errors occurred while adding files:
|
|
28
|
+
`;if(o.forEach(a=>{i+=`
|
|
29
|
+
* ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(t,n){const{files:r,currentUploads:o}=this.getState(),i={...r},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}t.forEach(f=>{r[f]&&(u[f]=r[f],delete i[f])}),Object.keys(a).forEach(f=>{const d=o[f].fileIDs.filter(s);d.length!==0?a[f]={...o[f],fileIDs:d}:delete a[f]});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,n){n===void 0&&(n=null),this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const n=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const r={...t[n],isPaused:!0};t[n]=r}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const r={...t[n],isPaused:!1,error:null};t[n]=r}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},n=Object.keys(t).filter(o=>t[o].error);if(n.forEach(o=>{const i={...t[o],isPaused:!1,error:null};t[o]=i}),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=fe(this,Vo)[Vo](n,{forceAllowNewUpload:!0});return fe(this,Uo)[Uo](r)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),n=Object.keys(t);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const n=fe(this,Vo)[Vo]([t],{forceAllowNewUpload:!0});return fe(this,Uo)[Uo](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,n){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=t.filter(s=>s.progress.bytesTotal!=null),r=t.filter(s=>s.progress.bytesTotal==null);if(n.length===0){const s=100*t.length,l=r.reduce((f,d)=>f+d.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=n.reduce((s,l)=>s+l.progress.bytesTotal,0);const i=o/n.length;o+=i*r.length;let a=0;n.forEach(s=>{a+=s.progress.bytesUploaded}),r.forEach(s=>{a+=i*(s.progress.percentage||0)/100});let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}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),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,n){if(typeof t!="function")throw new TypeError(`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`);const r=new t(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
|
|
30
|
+
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return t.VERSION&&this.log(`Using ${o} v${t.VERSION}`),r.type in fe(this,fn)[fn]?fe(this,fn)[fn][r.type].push(r):fe(this,fn)[fn][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(fe(this,fn)[fn])){const r=n.find(o=>o.id===t);if(r!=null)return r}}[lP](t){return fe(this,fn)[fn][t]}iteratePlugins(t){Object.values(fe(this,fn)[fn]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=fe(this,fn)[fn][t.type],r=n.findIndex(i=>i.id===t.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),fe(this,Bc)[Bc](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",fe(this,zr)[zr]),window.removeEventListener("offline",fe(this,zr)[zr]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:o?t.message:t,details:o?t.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(t,n){const{logger:r}=this.opts;switch(n){case"error":r.error(t);break;case"warning":r.warn(t);break;default:r.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?fe(this,Uo)[Uo](t):(fe(this,su)[su](t),Promise.reject(new Error("Nonexistent upload")))}[cP](){return fe(this,Vo)[Vo](...arguments)}addResultData(t,n){if(!fe(this,m1)[m1](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:r}=this.getState(),o={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:o}})}upload(){var t;(t=fe(this,fn)[fn].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{fe(this,g1)[g1](n),fe(this,v1)[v1](n)}).catch(o=>{fe(this,Zt)[Zt](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(s=>s.fileIDs),a=[];Object.keys(n).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)});const u=fe(this,Vo)[Vo](a);return fe(this,Uo)[Uo](u)}).catch(o=>{fe(this,Zt)[Zt](o,{showInformer:!1})}))}}function dK(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new po(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!e.type&&tK(e.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!e.extension)&&e.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new po(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&e.size!=null){let u=0;if(u+=e.size,t.forEach(s=>{u+=s.size}),u>o)throw new po(this.i18n("exceedsSize",{size:d1(o),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new po(this.i18n("exceedsSize",{size:d1(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new po(this.i18n("inferiorSize",{size:d1(r)}))}function pK(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new po(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function hK(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||e.meta[t[i]]===""){const a=new po(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(a),o.push(t[i]),fe(this,Zt)[Zt](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function gK(e){const t=Object.keys(e).flatMap(n=>{const r=this.getFile(n);return fe(this,kd)[kd](r)});if(t.length)throw new fK(t,`${this.i18n("missingRequiredMetaField")}`)}function vK(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=t===void 0?{}:t;const i=typeof e=="object"?e.message:e,a=typeof e=="object"&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof e=="object"?e:new Error(e)}function yK(e){const{allowNewUpload:t}=this.getState();t===!1&&fe(this,Zt)[Zt](new po(this.i18n("noMoreFilesAllowed")),{file:e})}function mK(e,t){const n=(function(f){var d;if(f.type)return f.type;const p=f.name?(d=bA(f.name).extension)==null?void 0:d.toLowerCase():null;return p&&p in wA?wA[p]:"application/octet-stream"})(t),r=(function(f,d){return d.name?d.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"})(n,t),o=bA(r).extension,i=!!t.isRemote,a=(function(f){let d="uppy";return typeof f.name=="string"&&(d+=`-${EA(f.name.toLowerCase())}`),f.type!==void 0&&(d+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(d+=`-${EA(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(d+=`-${f.data.size}`),f.data.lastModified!==void 0&&(d+=`-${f.data.lastModified}`),d})({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const f=new po(this.i18n("noDuplicates",{fileName:r}));fe(this,Zt)[Zt](f,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);c===!1?fe(this,Zt)[Zt](new po("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(e).map(d=>e[d]);fe(this,Jf)[Jf](l,f)}catch(f){fe(this,Zt)[Zt](f,{file:l})}return l}function bK(){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 wK(){const e=(t,n,r)=>{let o=t.message||"Unknown error";t.details&&(o+=` ${t.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:t.name}),fe(this,Zt)[Zt](o,{throwErr:!1})}else fe(this,Zt)[Zt](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",t=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(t,n)=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...r,postprocess:fe(this,Ko)[Ko].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("preprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("postprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",t=>{t&&fe(this,kd)[kd](t)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",fe(this,zr)[zr]),window.addEventListener("offline",fe(this,zr)[zr]),setTimeout(fe(this,zr)[zr],3e3))}function EK(e,t){t===void 0&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=sK();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function DK(e){const{currentUploads:t}=this.getState();return t[e]}function xK(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function CK(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...fe(this,ru)[ru],...fe(this,ou)[ou],...fe(this,Ko)[Ko]];try{for(let a=r;a<o.length&&n;a++){const u=o[a],s={...n,step:a};this.setState({currentUploads:{...t,[e]:s}}),await u(s.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),fe(this,su)[su](e),a}if(n){n.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=n.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);await this.addResultData(e,{successful:u,failed:s,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),fe(this,su)[su](e)),i==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}fP.VERSION="2.1.3";var dP=fP,SK=Qu(function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(B,S){for(var j in S)B[j]=S[j];return B}function y(B){var S=B.parentNode;S&&S.removeChild(B)}function v(B,S,j){var $,X,V,ie={};for(V in S)V=="key"?$=S[V]:V=="ref"?X=S[V]:ie[V]=S[V];if(arguments.length>2&&(ie.children=arguments.length>3?n.call(arguments,2):j),typeof B=="function"&&B.defaultProps!=null)for(V in B.defaultProps)ie[V]===void 0&&(ie[V]=B.defaultProps[V]);return g(B,ie,$,X,null)}function g(B,S,j,$,X){var V={type:B,props:S,key:j,ref:$,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:X??++o};return X==null&&r.vnode!=null&&r.vnode(V),V}function m(B){return B.children}function h(B,S){this.props=B,this.context=S}function b(B,S){if(S==null)return B.__?b(B.__,B.__.__k.indexOf(B)+1):null;for(var j;S<B.__k.length;S++)if((j=B.__k[S])!=null&&j.__e!=null)return j.__e;return typeof B.type=="function"?b(B):null}function w(B){var S,j;if((B=B.__)!=null&&B.__c!=null){for(B.__e=B.__c.base=null,S=0;S<B.__k.length;S++)if((j=B.__k[S])!=null&&j.__e!=null){B.__e=B.__c.base=j.__e;break}return w(B)}}function D(B){(!B.__d&&(B.__d=!0)&&a.push(B)&&!C.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(C)}function C(){for(var B;C.__r=a.length;)B=a.sort(function(S,j){return S.__v.__b-j.__v.__b}),a=[],B.some(function(S){var j,$,X,V,ie,ge;S.__d&&(ie=(V=(j=S).__v).__e,(ge=j.__P)&&($=[],(X=p({},V)).__v=V.__v+1,U(ge,V,X,j.__n,ge.ownerSVGElement!==void 0,V.__h!=null?[ie]:null,$,ie??b(V),V.__h),W($,V),V.__e!=ie&&w(V)))})}function x(B,S,j,$,X,V,ie,ge,ve,De){var G,Ie,Ae,de,Oe,Ot,$e,Qe=$&&$.__k||f,gt=Qe.length;for(j.__k=[],G=0;G<S.length;G++)if((de=j.__k[G]=(de=S[G])==null||typeof de=="boolean"?null:typeof de=="string"||typeof de=="number"||typeof de=="bigint"?g(null,de,null,null,de):Array.isArray(de)?g(m,{children:de},null,null,null):de.__b>0?g(de.type,de.props,de.key,null,de.__v):de)!=null){if(de.__=j,de.__b=j.__b+1,(Ae=Qe[G])===null||Ae&&de.key==Ae.key&&de.type===Ae.type)Qe[G]=void 0;else for(Ie=0;Ie<gt;Ie++){if((Ae=Qe[Ie])&&de.key==Ae.key&&de.type===Ae.type){Qe[Ie]=void 0;break}Ae=null}U(B,de,Ae=Ae||c,X,V,ie,ge,ve,De),Oe=de.__e,(Ie=de.ref)&&Ae.ref!=Ie&&($e||($e=[]),Ae.ref&&$e.push(Ae.ref,null,de),$e.push(Ie,de.__c||Oe,de)),Oe!=null?(Ot==null&&(Ot=Oe),typeof de.type=="function"&&de.__k===Ae.__k?de.__d=ve=O(de,ve,B):ve=F(B,de,Ae,Qe,Oe,ve),typeof j.type=="function"&&(j.__d=ve)):ve&&Ae.__e==ve&&ve.parentNode!=B&&(ve=b(Ae))}for(j.__e=Ot,G=gt;G--;)Qe[G]!=null&&(typeof j.type=="function"&&Qe[G].__e!=null&&Qe[G].__e==j.__d&&(j.__d=b($,G+1)),se(Qe[G],Qe[G]));if($e)for(G=0;G<$e.length;G++)te($e[G],$e[++G],$e[++G])}function O(B,S,j){for(var $,X=B.__k,V=0;X&&V<X.length;V++)($=X[V])&&($.__=B,S=typeof $.type=="function"?O($,S,j):F(j,$,$,X,$.__e,S));return S}function F(B,S,j,$,X,V){var ie,ge,ve;if(S.__d!==void 0)ie=S.__d,S.__d=void 0;else if(j==null||X!=V||X.parentNode==null)e:if(V==null||V.parentNode!==B)B.appendChild(X),ie=null;else{for(ge=V,ve=0;(ge=ge.nextSibling)&&ve<$.length;ve+=2)if(ge==X)break e;B.insertBefore(X,V),ie=V}return ie!==void 0?ie:X.nextSibling}function R(B,S,j){S[0]==="-"?B.setProperty(S,j):B[S]=j==null?"":typeof j!="number"||d.test(S)?j:j+"px"}function H(B,S,j,$,X){var V;e:if(S==="style")if(typeof j=="string")B.style.cssText=j;else{if(typeof $=="string"&&(B.style.cssText=$=""),$)for(S in $)j&&S in j||R(B.style,S,"");if(j)for(S in j)$&&j[S]===$[S]||R(B.style,S,j[S])}else if(S[0]==="o"&&S[1]==="n")V=S!==(S=S.replace(/Capture$/,"")),S=S.toLowerCase()in B?S.toLowerCase().slice(2):S.slice(2),B.l||(B.l={}),B.l[S+V]=j,j?$||B.addEventListener(S,V?K:M,V):B.removeEventListener(S,V?K:M,V);else if(S!=="dangerouslySetInnerHTML"){if(X)S=S.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(S!=="href"&&S!=="list"&&S!=="form"&&S!=="tabIndex"&&S!=="download"&&S in B)try{B[S]=j??"";break e}catch{}typeof j=="function"||(j!=null&&(j!==!1||S[0]==="a"&&S[1]==="r")?B.setAttribute(S,j):B.removeAttribute(S))}}function M(B){this.l[B.type+!1](r.event?r.event(B):B)}function K(B){this.l[B.type+!0](r.event?r.event(B):B)}function U(B,S,j,$,X,V,ie,ge,ve){var De,G,Ie,Ae,de,Oe,Ot,$e,Qe,gt,gn,Me=S.type;if(S.constructor!==void 0)return null;j.__h!=null&&(ve=j.__h,ge=S.__e=j.__e,S.__h=null,V=[ge]),(De=r.__b)&&De(S);try{e:if(typeof Me=="function"){if($e=S.props,Qe=(De=Me.contextType)&&$[De.__c],gt=De?Qe?Qe.props.value:De.__:$,j.__c?Ot=(G=S.__c=j.__c).__=G.__E:("prototype"in Me&&Me.prototype.render?S.__c=G=new Me($e,gt):(S.__c=G=new h($e,gt),G.constructor=Me,G.render=ue),Qe&&Qe.sub(G),G.props=$e,G.state||(G.state={}),G.context=gt,G.__n=$,Ie=G.__d=!0,G.__h=[]),G.__s==null&&(G.__s=G.state),Me.getDerivedStateFromProps!=null&&(G.__s==G.state&&(G.__s=p({},G.__s)),p(G.__s,Me.getDerivedStateFromProps($e,G.__s))),Ae=G.props,de=G.state,Ie)Me.getDerivedStateFromProps==null&&G.componentWillMount!=null&&G.componentWillMount(),G.componentDidMount!=null&&G.__h.push(G.componentDidMount);else{if(Me.getDerivedStateFromProps==null&&$e!==Ae&&G.componentWillReceiveProps!=null&&G.componentWillReceiveProps($e,gt),!G.__e&&G.shouldComponentUpdate!=null&&G.shouldComponentUpdate($e,G.__s,gt)===!1||S.__v===j.__v){G.props=$e,G.state=G.__s,S.__v!==j.__v&&(G.__d=!1),G.__v=S,S.__e=j.__e,S.__k=j.__k,S.__k.forEach(function(Nn){Nn&&(Nn.__=S)}),G.__h.length&&ie.push(G);break e}G.componentWillUpdate!=null&&G.componentWillUpdate($e,G.__s,gt),G.componentDidUpdate!=null&&G.__h.push(function(){G.componentDidUpdate(Ae,de,Oe)})}G.context=gt,G.props=$e,G.state=G.__s,(De=r.__r)&&De(S),G.__d=!1,G.__v=S,G.__P=B,De=G.render(G.props,G.state,G.context),G.state=G.__s,G.getChildContext!=null&&($=p(p({},$),G.getChildContext())),Ie||G.getSnapshotBeforeUpdate==null||(Oe=G.getSnapshotBeforeUpdate(Ae,de)),gn=De!=null&&De.type===m&&De.key==null?De.props.children:De,x(B,Array.isArray(gn)?gn:[gn],S,j,$,X,V,ie,ge,ve),G.base=S.__e,S.__h=null,G.__h.length&&ie.push(G),Ot&&(G.__E=G.__=null),G.__e=!1}else V==null&&S.__v===j.__v?(S.__k=j.__k,S.__e=j.__e):S.__e=q(j.__e,S,j,$,X,V,ie,ve);(De=r.diffed)&&De(S)}catch(Nn){S.__v=null,(ve||V!=null)&&(S.__e=ge,S.__h=!!ve,V[V.indexOf(ge)]=null),r.__e(Nn,S,j)}}function W(B,S){r.__c&&r.__c(S,B),B.some(function(j){try{B=j.__h,j.__h=[],B.some(function($){$.call(j)})}catch($){r.__e($,j.__v)}})}function q(B,S,j,$,X,V,ie,ge){var ve,De,G,Ie=j.props,Ae=S.props,de=S.type,Oe=0;if(de==="svg"&&(X=!0),V!=null){for(;Oe<V.length;Oe++)if((ve=V[Oe])&&"setAttribute"in ve==!!de&&(de?ve.localName===de:ve.nodeType===3)){B=ve,V[Oe]=null;break}}if(B==null){if(de===null)return document.createTextNode(Ae);B=X?document.createElementNS("http://www.w3.org/2000/svg",de):document.createElement(de,Ae.is&&Ae),V=null,ge=!1}if(de===null)Ie===Ae||ge&&B.data===Ae||(B.data=Ae);else{if(V=V&&n.call(B.childNodes),De=(Ie=j.props||c).dangerouslySetInnerHTML,G=Ae.dangerouslySetInnerHTML,!ge){if(V!=null)for(Ie={},Oe=0;Oe<B.attributes.length;Oe++)Ie[B.attributes[Oe].name]=B.attributes[Oe].value;(G||De)&&(G&&(De&&G.__html==De.__html||G.__html===B.innerHTML)||(B.innerHTML=G&&G.__html||""))}if((function(Ot,$e,Qe,gt,gn){var Me;for(Me in Qe)Me==="children"||Me==="key"||Me in $e||H(Ot,Me,null,Qe[Me],gt);for(Me in $e)gn&&typeof $e[Me]!="function"||Me==="children"||Me==="key"||Me==="value"||Me==="checked"||Qe[Me]===$e[Me]||H(Ot,Me,$e[Me],Qe[Me],gt)})(B,Ae,Ie,X,ge),G)S.__k=[];else if(Oe=S.props.children,x(B,Array.isArray(Oe)?Oe:[Oe],S,j,$,X&&de!=="foreignObject",V,ie,V?V[0]:j.__k&&b(j,0),ge),V!=null)for(Oe=V.length;Oe--;)V[Oe]!=null&&y(V[Oe]);ge||("value"in Ae&&(Oe=Ae.value)!==void 0&&(Oe!==Ie.value||Oe!==B.value||de==="progress"&&!Oe)&&H(B,"value",Oe,Ie.value,!1),"checked"in Ae&&(Oe=Ae.checked)!==void 0&&Oe!==B.checked&&H(B,"checked",Oe,Ie.checked,!1))}return B}function te(B,S,j){try{typeof B=="function"?B(S):B.current=S}catch($){r.__e($,j)}}function se(B,S,j){var $,X;if(r.unmount&&r.unmount(B),($=B.ref)&&($.current&&$.current!==B.__e||te($,null,S)),($=B.__c)!=null){if($.componentWillUnmount)try{$.componentWillUnmount()}catch(V){r.__e(V,S)}$.base=$.__P=null}if($=B.__k)for(X=0;X<$.length;X++)$[X]&&se($[X],S,typeof B.type!="function");j||B.__e==null||y(B.__e),B.__e=B.__d=void 0}function ue(B,S,j){return this.constructor(B,j)}function ae(B,S,j){var $,X,V;r.__&&r.__(B,S),X=($=typeof j=="function")?null:j&&j.__k||S.__k,V=[],U(S,B=(!$&&j||S).__k=v(m,null,[B]),X||c,c,S.ownerSVGElement!==void 0,!$&&j?[j]:X?null:S.firstChild?n.call(S.childNodes):null,V,!$&&j?j:X?X.__e:S.firstChild,$),W(V,B)}n=f.slice,r={__e:function(B,S){for(var j,$,X;S=S.__;)if((j=S.__c)&&!j.__)try{if(($=j.constructor)&&$.getDerivedStateFromError!=null&&(j.setState($.getDerivedStateFromError(B)),X=j.__d),j.componentDidCatch!=null&&(j.componentDidCatch(B),X=j.__d),X)return j.__E=j}catch(V){B=V}throw B}},o=0,i=function(B){return B!=null&&B.constructor===void 0},h.prototype.setState=function(B,S){var j;j=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof B=="function"&&(B=B(p({},j),this.props)),B&&p(j,B),B!=null&&this.__v&&(S&&this.__h.push(S),D(this))},h.prototype.forceUpdate=function(B){this.__v&&(this.__e=!0,B&&this.__h.push(B),D(this))},h.prototype.render=m,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,C.__r=0,l=0,t.Component=h,t.Fragment=m,t.cloneElement=function(B,S,j){var $,X,V,ie=p({},B.props);for(V in S)V=="key"?$=S[V]:V=="ref"?X=S[V]:ie[V]=S[V];return arguments.length>2&&(ie.children=arguments.length>3?n.call(arguments,2):j),g(B.type,ie,$||B.key,X||B.ref,null)},t.createContext=function(B,S){var j={__c:S="__cC"+l++,__:B,Consumer:function($,X){return $.children(X)},Provider:function($){var X,V;return this.getChildContext||(X=[],(V={})[S]=this,this.getChildContext=function(){return V},this.shouldComponentUpdate=function(ie){this.props.value!==ie.value&&X.some(D)},this.sub=function(ie){X.push(ie);var ge=ie.componentWillUnmount;ie.componentWillUnmount=function(){X.splice(X.indexOf(ie),1),ge&&ge.call(ie)}}),$.children}};return j.Provider.__=j.Consumer.contextType=j},t.createElement=v,t.createRef=function(){return{current:null}},t.h=v,t.hydrate=function B(S,j){ae(S,j,B)},t.isValidElement=i,t.options=r,t.render=ae,t.toChildArray=function B(S,j){return j=j||[],S==null||typeof S=="boolean"||(Array.isArray(S)?S.some(function($){B($,j)}):j.push(S)),j}}),AK=function(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):((n=e)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},g8=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{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(){const e=new rP([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function DA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var OK=0;function BK(e){return"__private_"+OK+++"_"+e}const{render:xA}=SK;var _c=BK("updateUI");class v8 extends g8{constructor(){super(...arguments),Object.defineProperty(this,_c,{writable:!0,value:void 0})}mount(t,n){const r=n.id,o=AK(t);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return DA(this,_c)[_c]=(function(s){let l=null,c=null;return function(){for(var f=arguments.length,d=new Array(f),p=0;p<f;p++)d[p]=arguments[p];return c=d,l||(l=Promise.resolve().then(()=>(l=null,s(...c)))),l}})(s=>{this.uppy.getPlugin(this.id)&&(xA(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),xA(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof t=="object"&&t instanceof v8)i=t;else if(typeof t=="function"){const u=t;this.uppy.iteratePlugins(s=>{if(s instanceof u)return i=s,!1})}if(i)return this.uppy.log(`Installing ${r} to ${i.id}`),this.parent=i,this.el=i.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;throw a+=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.",new Error(a)}update(t){var n,r;this.el!=null&&((n=(r=DA(this,_c))[_c])==null||n.call(r,t))}unmount(){var t;this.isTargetDOMEl&&((t=this.el)==null||t.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var kK=v8;const{debugLogger:FK}=uP;var $f=dP,TK=dP,_K=kK,jK=g8,PK=FK;$f.Uppy=TK,$f.UIPlugin=_K,$f.BasePlugin=jK,$f.debugLogger=PK;class NK extends Error{constructor(t,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=n}}var y8=NK,b1=function(){return fetch(...arguments).catch(e=>{throw e.name==="AbortError"?e:new y8(e)})};class IK extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Oh,wi,uo,Ei,CA,LK=IK;function ao(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var RK=0;function w1(e){return"__private_"+RK+++"_"+e}async function E1(e){if(e.status===401)throw new LK;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const r=await t;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return t}var SA=(wi=w1("getPostResponseFunc"),uo=w1("getUrl"),Ei=w1("errorHandler"),CA=Oh=class pP{constructor(t,n){Object.defineProperty(this,Ei,{value:zK}),Object.defineProperty(this,uo,{value:MK}),Object.defineProperty(this,wi,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=t,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),n=this.opts.companionUrl;return(t&&t[n]?t[n]:n).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...pP.defaultHeaders,...t})}onReceiveResponse(t){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=t;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(ao(this,uo)[uo](t),{method:"OPTIONS"}).then(n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map(r=>r.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then(n=>{let[r,o]=n;return Object.keys(o).forEach(i=>{r.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])}),o})}get(t,n){return this.preflightAndHeaders(t).then(r=>b1(ao(this,uo)[uo](t),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(ao(this,wi)[wi](n)).then(E1).catch(ao(this,Ei)[Ei]("get",t))}post(t,n,r){const o="post";return this.preflightAndHeaders(t).then(i=>b1(ao(this,uo)[uo](t),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(ao(this,wi)[wi](r)).then(E1).catch(ao(this,Ei)[Ei](o,t))}delete(t,n,r){const o="delete";return this.preflightAndHeaders(t).then(i=>b1(`${this.hostname}/${t}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(ao(this,wi)[wi](r)).then(E1).catch(ao(this,Ei)[Ei](o,t))}},Oh.VERSION="2.0.4",Oh.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Oh.VERSION}`},CA);function MK(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function zK(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${e} ${ao(this,uo)[uo](t)}`);o.cause=n,n=o}return Promise.reject(n)}}var $K={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()})},io,Di,hr,wn,Bh;let AA,OA;function $t(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var HK=0;function jc(e){return"__private_"+HK+++"_"+e}var VK=(io=jc("queued"),Di=jc("emitter"),hr=jc("isOpen"),wn=jc("socket"),Bh=jc("handleMessage"),AA=Symbol.for("uppy test: getSocket"),OA=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,io,{writable:!0,value:[]}),Object.defineProperty(this,Di,{writable:!0,value:oP()}),Object.defineProperty(this,hr,{writable:!0,value:!1}),Object.defineProperty(this,wn,{writable:!0,value:void 0}),Object.defineProperty(this,Bh,{writable:!0,value:t=>{try{const n=JSON.parse(t.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=e,e&&e.autoOpen===!1||this.open()}get isOpen(){return $t(this,hr)[hr]}[AA](){return $t(this,wn)[wn]}[OA](){return $t(this,io)[io]}open(){$t(this,wn)[wn]=new WebSocket(this.opts.target),$t(this,wn)[wn].onopen=()=>{for($t(this,hr)[hr]=!0;$t(this,io)[io].length>0&&$t(this,hr)[hr];){const e=$t(this,io)[io].shift();this.send(e.action,e.payload)}},$t(this,wn)[wn].onclose=()=>{$t(this,hr)[hr]=!1},$t(this,wn)[wn].onmessage=$t(this,Bh)[Bh]}close(){var e;(e=$t(this,wn)[wn])==null||e.close()}send(e,t){$t(this,hr)[hr]?$t(this,wn)[wn].send(JSON.stringify({action:e,payload:t})):$t(this,io)[io].push({action:e,payload:t})}on(e,t){$t(this,Di)[Di].on(e,t)}emit(e,t){$t(this,Di)[Di].emit(e,t)}once(e,t){$t(this,Di)[Di].once(e,t)}}),UK={RequestClient:SA,Provider:class extends SA{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.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;const 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);const 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 new 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){const r=t.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=r}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||$K}},Socket:VK},xi,Es,WK=$u(function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function Pc(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var GK=0;function BA(e){return"__private_"+GK+++"_"+e}var kA=(xi=BA("emitter"),Es=BA("events"),class{constructor(e){Object.defineProperty(this,xi,{writable:!0,value:void 0}),Object.defineProperty(this,Es,{writable:!0,value:[]}),Pc(this,xi)[xi]=e}on(e,t){return Pc(this,Es)[Es].push([e,t]),Pc(this,xi)[xi].on(e,t)}remove(){for(const[e,t]of Pc(this,Es)[Es].splice(0))Pc(this,xi)[xi].off(e,t)}});function gr(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var qK=0;function Ay(e){return"__private_"+qK+++"_"+e}var Wo=Ay("aliveTimer"),za=Ay("isDone"),Nc=Ay("onTimedOut"),$a=Ay("timeout"),FA=class{constructor(e,t){Object.defineProperty(this,Wo,{writable:!0,value:void 0}),Object.defineProperty(this,za,{writable:!0,value:!1}),Object.defineProperty(this,Nc,{writable:!0,value:void 0}),Object.defineProperty(this,$a,{writable:!0,value:void 0}),gr(this,$a)[$a]=e,gr(this,Nc)[Nc]=t}progress(){gr(this,za)[za]||gr(this,$a)[$a]>0&&(clearTimeout(gr(this,Wo)[Wo]),gr(this,Wo)[Wo]=setTimeout(gr(this,Nc)[Nc],gr(this,$a)[$a]))}done(){gr(this,za)[za]||(clearTimeout(gr(this,Wo)[Wo]),gr(this,Wo)[Wo]=null,gr(this,za)[za]=!0)}};function Ut(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var KK=0;function os(e){return"__private_"+KK+++"_"+e}function XK(){return new Error("Cancelled")}var Jn=os("activeRequests"),_n=os("queuedHandlers"),Qf=os("call"),Hf=os("queueNext"),z4=os("next"),D1=os("queue"),$4=os("dequeue");function ZK(e){Ut(this,Jn)[Jn]+=1;let t,n=!1;try{t=e()}catch(r){throw Ut(this,Jn)[Jn]-=1,r}return{abort:()=>{n||(n=!0,Ut(this,Jn)[Jn]-=1,t(),Ut(this,Hf)[Hf]())},done:()=>{n||(n=!0,Ut(this,Jn)[Jn]-=1,Ut(this,Hf)[Hf]())}}}function YK(){queueMicrotask(()=>Ut(this,z4)[z4]())}function JK(){if(Ut(this,Jn)[Jn]>=this.limit||Ut(this,_n)[_n].length===0)return;const e=Ut(this,_n)[_n].shift(),t=Ut(this,Qf)[Qf](e.fn);e.abort=t.abort,e.done=t.done}function QK(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Ut(this,$4)[$4](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Ut(this,_n)[_n].findIndex(o=>n.priority>o.priority);return r===-1?Ut(this,_n)[_n].push(n):Ut(this,_n)[_n].splice(r,0,n),n}function eX(e){const t=Ut(this,_n)[_n].indexOf(e);t!==-1&&Ut(this,_n)[_n].splice(t,1)}var tX={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,$4,{value:eX}),Object.defineProperty(this,D1,{value:QK}),Object.defineProperty(this,z4,{value:JK}),Object.defineProperty(this,Hf,{value:YK}),Object.defineProperty(this,Qf,{value:ZK}),Object.defineProperty(this,Jn,{writable:!0,value:0}),Object.defineProperty(this,_n,{writable:!0,value:[]}),this.limit=typeof e!="number"||e===0?1/0:e}run(e,t){return Ut(this,Jn)[Jn]<this.limit?Ut(this,Qf)[Qf](e):Ut(this,D1)[D1](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise((s,l)=>{a=n.run(()=>{let c,f;try{f=Promise.resolve(e(...o))}catch(d){f=Promise.reject(d)}return f.then(d=>{c?l(c):(a.done(),s(d))},d=>{c?l(c):(a.done(),l(d))}),()=>{c=XK()}},t)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},TA,_A,hP=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},nX={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:rX}=sP,{Provider:oX,RequestClient:iX,Socket:aX}=UK,{RateLimitedQueue:uX,internalRateLimitedQueue:x1}=tX;function jA(e,t){let n=t;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),hP(e)?(n=new y8(n,e),n):(n.request=e,n)}function PA(e){return e.data.slice(0,e.data.size,e.meta.type)}var sX=(_A=TA=class extends g8{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=nX;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(r){let o={};try{o=JSON.parse(r)}catch(i){e.log(i)}return o},getResponseError(r,o){let i=new Error("Upload error");return hP(o)&&(i=new y8(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),x1 in this.opts?this.requests=this.opts[x1]:this.requests=new uX(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const 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(r=>{e.append(r,t[r])})}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=PA(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach(o=>{const i=this.getOptions(o),a=PA(o);o.name?n.append(i.fieldName,a,o.name):n.append(i.fieldName,a)}),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise((o,i)=>{this.uppy.emit("upload-started",e);const a=r.formData?this.createFormDataUpload(e,r):e.data,u=new XMLHttpRequest;this.uploaderEvents[e.id]=new kA(this.uppy);const s=new FA(r.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,f),i(f)}),l=rX();u.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${l} started`)}),u.upload.addEventListener("progress",f=>{this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`),s.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})}),u.addEventListener("load",f=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),s.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(f.target.status,u.responseText,u)){const v=r.getResponseData(u.responseText,u),g=v[r.responseUrlFieldName],m={status:f.target.status,body:v,uploadURL:g};return this.uppy.emit("upload-success",e,m),g&&this.uppy.log(`Download ${e.name} from ${g}`),o(e)}const d=r.getResponseData(u.responseText,u),p=jA(u,r.getResponseError(u.responseText,u)),y={status:f.target.status,body:d};return this.uppy.emit("upload-error",e,p,y),i(p)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const f=jA(u,r.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",e,f),i(f)}),u.open(r.method.toUpperCase(),r.endpoint,!0),u.withCredentials=r.withCredentials,r.responseType!==""&&(u.responseType=r.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",e);const f=this.getOptions(e);return Object.keys(f.headers).forEach(d=>{u.setRequestHeader(d,f.headers[d])}),u.send(a),()=>{s.done(),u.abort()}});this.onFileRemove(e.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(e.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(e){const t=this.getOptions(e);return new Promise((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach(i=>{o[i]=e.meta[i]}),new(e.remote.providerOptions.provider?oX:iX)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then(i=>{const{token:a}=i,u=(function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${f}`})(e.remote.companionUrl),s=new aX({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[e.id]=new kA(this.uppy),this.onFileRemove(e.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${e.id} was canceled`)}),this.onRetry(e.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(e.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",c=>WK(this,c,e)),s.on("success",c=>{const f=t.getResponseData(c.response.responseText,c.response),d=f[t.responseUrlFieldName],p={status:c.response.status,body:f,uploadURL:d};return this.uppy.emit("upload-success",e,p),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()}),s.on("error",c=>{const f=c.response,d=f?t.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",e,d),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(d)});const l=this.requests.run(()=>(s.open(),e.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",e,i),r(i)})})}uploadBundle(e){return new Promise((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new FA(this.opts.timeout,()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),n(c)}),l=c=>{e.forEach(f=>{this.uppy.emit("upload-error",f,c)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",c=>{s.progress(),c.lengthComputable&&e.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})})}),u.addEventListener("load",c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const d=this.opts.getResponseData(u.responseText,u),p={status:c.target.status,body:d};return e.forEach(y=>{this.uppy.emit("upload-success",y,p)}),t()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),n(f)}),u.addEventListener("error",()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),n(c)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(c=>{u.setRequestHeader(c,this.opts.headers[c])}),u.send(a),e.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(e){const t=e.map((n,r)=>{const o=parseInt(r,10)+1,i=e.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,o,i):this.upload(n,o,i)});return(function(n){const r=[],o=[];function i(u){r.push(u)}function a(u){o.push(u)}return Promise.all(n.map(u=>u.then(i,a))).then(()=>({successful:r,failed:o}))})(t)}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[x1]||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...");const t=e.map(n=>this.uppy.getFile(n));if(this.opts.bundle){if(t.some(n=>n.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new 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){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},TA.VERSION="2.0.6",_A),NA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tp(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ci,Ig,kh=function(e){return e&&e.Math==Math&&e},Z=kh(typeof globalThis=="object"&&globalThis)||kh(typeof window=="object"&&window)||kh(typeof self=="object"&&self)||kh(typeof NA=="object"&&NA)||(function(){return this})()||Function("return this")(),lX=Object.defineProperty,m8=function(e,t){try{lX(Z,e,{value:t,configurable:!0,writable:!0})}catch{Z[e]=t}return t},Zi=Z["__core-js_shared__"]||m8("__core-js_shared__",{}),b8=Tp(function(e){(e.exports=function(t,n){return Zi[t]||(Zi[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),gP=Function.prototype,H4=gP.bind,V4=gP.call,cX=H4&&H4.bind(V4),pe=H4?function(e){return e&&cX(V4,e)}:function(e){return e&&function(){return V4.apply(e,arguments)}},fX=Z.TypeError,Br=function(e){if(e==null)throw fX("Can't call method on "+e);return e},dX=Z.Object,Oa=function(e){return dX(Br(e))},pX=pe({}.hasOwnProperty),It=Object.hasOwn||function(e,t){return pX(Oa(e),t)},hX=0,gX=Math.random(),vX=pe(1 .toString),w8=function(e){return"Symbol("+(e===void 0?"":e)+")_"+vX(++hX+gX,36)},rt=function(e){return typeof e=="function"},yX=function(e){return rt(e)?e:void 0},is=function(e,t){return arguments.length<2?yX(Z[e]):Z[e]&&Z[e][t]},ul=is("navigator","userAgent")||"",IA=Z.process,LA=Z.Deno,RA=IA&&IA.versions||LA&&LA.version,MA=RA&&RA.v8;MA&&(Ig=(Ci=MA.split("."))[0]>0&&Ci[0]<4?1:+(Ci[0]+Ci[1])),!Ig&&ul&&(!(Ci=ul.match(/Edge\/(\d+)/))||Ci[1]>=74)&&(Ci=ul.match(/Chrome\/(\d+)/))&&(Ig=+Ci[1]);var Fd=Ig,Ye=function(e){try{return!!e()}catch{return!0}},U4=!!Object.getOwnPropertySymbols&&!Ye(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Fd&&Fd<41}),E8=U4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ic=b8("wks"),bu=Z.Symbol,zA=bu&&bu.for,mX=E8?bu:bu&&bu.withoutSetter||w8,Ct=function(e){if(!It(Ic,e)||!U4&&typeof Ic[e]!="string"){var t="Symbol."+e;U4&&It(bu,e)?Ic[e]=bu[e]:Ic[e]=E8&&zA?zA(t):mX(t)}return Ic[e]},vP={};vP[Ct("toStringTag")]="z";var D8=String(vP)==="[object z]",rn=!Ye(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ft=function(e){return typeof e=="object"?e!==null:rt(e)},W4=Z.document,bX=ft(W4)&&ft(W4.createElement),Td=function(e){return bX?W4.createElement(e):{}},yP=!rn&&!Ye(function(){return Object.defineProperty(Td("div"),"a",{get:function(){return 7}}).a!=7}),wX=Z.String,EX=Z.TypeError,Lt=function(e){if(ft(e))return e;throw EX(wX(e)+" is not an object")},Lc=Function.prototype.call,qe=Lc.bind?Lc.bind(Lc):function(){return Lc.apply(Lc,arguments)},Hu=pe({}.isPrototypeOf),DX=Z.Object,C1=E8?function(e){return typeof e=="symbol"}:function(e){var t=is("Symbol");return rt(t)&&Hu(t.prototype,DX(e))},xX=Z.String,Oy=function(e){try{return xX(e)}catch{return"Object"}},CX=Z.TypeError,va=function(e){if(rt(e))return e;throw CX(Oy(e)+" is not a function")},Vu=function(e,t){var n=e[t];return n==null?void 0:va(n)},SX=Z.TypeError,AX=Z.TypeError,OX=Ct("toPrimitive"),x8=function(e){var t=(function(n,r){if(!ft(n)||C1(n))return n;var o,i=Vu(n,OX);if(i){if(o=qe(i,n,r),!ft(o)||C1(o))return o;throw AX("Can't convert object to primitive value")}return(function(a,u){var s,l;if(rt(s=a.toString)&&!ft(l=qe(s,a))||rt(s=a.valueOf)&&!ft(l=qe(s,a)))return l;throw SX("Can't convert object to primitive value")})(n)})(e,"string");return C1(t)?t:t+""},BX=Z.TypeError,$A=Object.defineProperty,Qr={f:rn?$A:function(e,t,n){if(Lt(e),t=x8(t),Lt(n),yP)try{return $A(e,t,n)}catch{}if("get"in n||"set"in n)throw BX("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},By=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Gr=rn?function(e,t,n){return Qr.f(e,t,By(1,n))}:function(e,t,n){return e[t]=n,e},kX=pe(Function.toString);rt(Zi.inspectSource)||(Zi.inspectSource=function(e){return kX(e)});var Hv,ed,Vv,ky=Zi.inspectSource,HA=Z.WeakMap,mP=rt(HA)&&/native code/.test(ky(HA)),VA=b8("keys"),C8=function(e){return VA[e]||(VA[e]=w8(e))},Fy={},G4=Z.TypeError,FX=Z.WeakMap;if(mP||Zi.state){var Ha=Zi.state||(Zi.state=new FX),TX=pe(Ha.get),UA=pe(Ha.has),_X=pe(Ha.set);Hv=function(e,t){if(UA(Ha,e))throw new G4("Object already initialized");return t.facade=e,_X(Ha,e,t),t},ed=function(e){return TX(Ha,e)||{}},Vv=function(e){return UA(Ha,e)}}else{var Ds=C8("state");Fy[Ds]=!0,Hv=function(e,t){if(It(e,Ds))throw new G4("Object already initialized");return t.facade=e,Gr(e,Ds,t),t},ed=function(e){return It(e,Ds)?e[Ds]:{}},Vv=function(e){return It(e,Ds)}}var Cn={set:Hv,get:ed,has:Vv,enforce:function(e){return Vv(e)?ed(e):Hv(e,{})},getterFor:function(e){return function(t){var n;if(!ft(t)||(n=ed(t)).type!==e)throw G4("Incompatible receiver, "+e+" required");return n}}},bP=Function.prototype,jX=rn&&Object.getOwnPropertyDescriptor,S1=It(bP,"name"),Ql={EXISTS:S1,PROPER:S1&&(function(){}).name==="something",CONFIGURABLE:S1&&(!rn||rn&&jX(bP,"name").configurable)},Un=Tp(function(e){var t=Ql.CONFIGURABLE,n=Cn.get,r=Cn.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;rt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!It(u,"name")||t&&u.name!==p)&&Gr(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Z?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Gr(i,a,u)):f?i[a]=u:m8(a,u)})(Function.prototype,"toString",function(){return rt(this)&&n(this).source||ky(this)})}),PX=pe({}.toString),NX=pe("".slice),qr=function(e){return NX(PX(e),8,-1)},IX=Ct("toStringTag"),LX=Z.Object,RX=qr((function(){return arguments})())=="Arguments",Ty=D8?qr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=LX(e),IX))=="string"?n:RX?qr(t):(r=qr(t))=="Object"&&rt(t.callee)?"Arguments":r},MX=D8?{}.toString:function(){return"[object "+Ty(this)+"]"};D8||Un(Object.prototype,"toString",MX,{unsafe:!0});var Uv={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},A1=Td("span").classList,WA=A1&&A1.constructor&&A1.constructor.prototype,wP=WA===Object.prototype?void 0:WA,GA=pe(pe.bind),Uu=function(e,t){return va(e),t===void 0?e:GA?GA(e,t):function(){return e.apply(t,arguments)}},O1=Z.Object,zX=pe("".split),_y=Ye(function(){return!O1("z").propertyIsEnumerable(0)})?function(e){return qr(e)=="String"?zX(e,""):O1(e)}:O1,$X=Math.ceil,HX=Math.floor,_p=function(e){var t=+e;return t!=t||t===0?0:(t>0?HX:$X)(t)},VX=Math.min,ec=function(e){return e>0?VX(_p(e),9007199254740991):0},as=function(e){return ec(e.length)},Wv=Array.isArray||function(e){return qr(e)=="Array"},EP=function(){},UX=[],DP=is("Reflect","construct"),S8=/^\s*(?:class|function)\b/,WX=pe(S8.exec),GX=!S8.exec(EP),Rc=function(e){if(!rt(e))return!1;try{return DP(EP,UX,e),!0}catch{return!1}},jy=!DP||Ye(function(){var e;return Rc(Rc.call)||!Rc(Object)||!Rc(function(){e=!0})||e})?function(e){if(!rt(e))return!1;switch(Ty(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return GX||!!WX(S8,ky(e))}:Rc,qX=Ct("species"),qA=Z.Array,xP=function(e,t){return new((function(n){var r;return Wv(n)&&(r=n.constructor,(jy(r)&&(r===qA||Wv(r.prototype))||ft(r)&&(r=r[qX])===null)&&(r=void 0)),r===void 0?qA:r})(e))(t===0?0:t)},KA=pe([].push),Mc=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,y=Oa(s),v=_y(y),g=Uu(l,c),m=as(v),h=0,b=f||xP,w=t?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in v)&&(p=g(d=v[h],h,y),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:KA(w,d)}else switch(e){case 4:return!1;case 7:KA(w,d)}return i?-1:r||o?o:w}},tc={forEach:Mc(0),map:Mc(1),filter:Mc(2),find:Mc(5),findIndex:Mc(6)},CP=function(e,t){var n=[][e];return!!n&&Ye(function(){n.call(null,t||function(){throw 1},1)})},KX=tc.forEach,B1=CP("forEach")?[].forEach:function(e){return KX(this,e,arguments.length>1?arguments[1]:void 0)},SP=function(e){if(e&&e.forEach!==B1)try{Gr(e,"forEach",B1)}catch{e.forEach=B1}};for(var k1 in Uv)Uv[k1]&&SP(Z[k1]&&Z[k1].prototype);SP(wP);var XA={}.propertyIsEnumerable,ZA=Object.getOwnPropertyDescriptor,XX=ZA&&!XA.call({1:2},1)?function(e){var t=ZA(this,e);return!!t&&t.enumerable}:XA,AP={f:XX},Ba=function(e){return _y(Br(e))},YA=Object.getOwnPropertyDescriptor,jp={f:rn?YA:function(e,t){if(e=Ba(e),t=x8(t),yP)try{return YA(e,t)}catch{}if(It(e,t))return By(!qe(AP.f,e,t),e[t])}},ZX=Math.max,YX=Math.min,jl=function(e,t){var n=_p(e);return n<0?ZX(n+t,0):YX(n,t)},JA=function(e){return function(t,n,r){var o,i=Ba(t),a=as(i),u=jl(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},OP={includes:JA(!0),indexOf:JA(!1)},JX=OP.indexOf,QA=pe([].push),BP=function(e,t){var n,r=Ba(e),o=0,i=[];for(n in r)!It(Fy,n)&&It(r,n)&&QA(i,n);for(;t.length>o;)It(r,n=t[o++])&&(~JX(i,n)||QA(i,n));return i},Gv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],QX=Gv.concat("length","prototype"),_d={f:Object.getOwnPropertyNames||function(e){return BP(e,QX)}},kP={f:Object.getOwnPropertySymbols},eZ=pe([].concat),tZ=is("Reflect","ownKeys")||function(e){var t=_d.f(Lt(e)),n=kP.f;return n?eZ(t,n(e)):t},nZ=function(e,t){for(var n=tZ(t),r=Qr.f,o=jp.f,i=0;i<n.length;i++){var a=n[i];It(e,a)||r(e,a,o(t,a))}},rZ=/#|\.prototype\./,Pp=function(e,t){var n=iZ[oZ(e)];return n==uZ||n!=aZ&&(rt(t)?Ye(t):!!t)},oZ=Pp.normalize=function(e){return String(e).replace(rZ,".").toLowerCase()},iZ=Pp.data={},aZ=Pp.NATIVE="N",uZ=Pp.POLYFILL="P",jd=Pp,sZ=jp.f,Dt=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Z:l?Z[u]||m8(u,{}):(Z[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=sZ(n,r))&&a.value:n[r],!jd(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;nZ(i,o)}(e.sham||o&&o.sham)&&Gr(i,"sham",!0),Un(n,r,i,e)}},sl=Object.keys||function(e){return BP(e,Gv)},lZ=Ye(function(){sl(1)});/*!
|
|
31
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
34
|
+
* Released under the MIT License.
|
|
35
|
+
*/function e7(e){return Object.prototype.toString.call(e)==="[object Object]"}Dt({target:"Object",stat:!0,forced:lZ},{keys:function(e){return sl(Oa(e))}});var cZ={isHistory(e){return e7(t=e)!==!1&&((n=t.constructor)===void 0||e7(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Vi.isOperationList(e.redos[0]))&&(e.undos.length===0||Vi.isOperationList(e.undos[0]));var t,n,r}},F1=new WeakMap,T1=new WeakMap,tl={isHistoryEditor:e=>cZ.isHistory(e.history)&&E.isEditor(e),isMerging:e=>T1.get(e),isSaving:e=>F1.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=tl.isMerging(e);T1.set(e,!1),t(),T1.set(e,n)},withoutSaving(e,t){var n=tl.isSaving(e);F1.set(e,!1),t(),F1.set(e,n)}},fZ=Z.String,it=function(e){if(Ty(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return fZ(e)},A8=function(){var e=Lt(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},dZ=Ql.PROPER,q4=RegExp.prototype,FP=q4.toString,pZ=pe(A8),hZ=Ye(function(){return FP.call({source:"a",flags:"b"})!="/a/b"}),gZ=dZ&&FP.name!="toString";(hZ||gZ)&&Un(RegExp.prototype,"toString",function(){var e=Lt(this),t=it(e.source),n=e.flags;return"/"+t+"/"+it(n===void 0&&Hu(q4,e)&&!("flags"in q4)?pZ(e):n)},{unsafe:!0});var Fh,vZ=rn?Object.defineProperties:function(e,t){Lt(e);for(var n,r=Ba(t),o=sl(t),i=o.length,a=0;i>a;)Qr.f(e,n=o[a++],r[n]);return e},K4=is("document","documentElement"),TP=C8("IE_PROTO"),_1=function(){},_P=function(e){return"<script>"+e+"<\/script>"},t7=function(e){e.write(_P("")),e.close();var t=e.parentWindow.Object;return e=null,t},Lg=function(){try{Fh=new ActiveXObject("htmlfile")}catch{}var e,t;Lg=typeof document<"u"?document.domain&&Fh?t7(Fh):((t=Td("iframe")).style.display="none",K4.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(_P("document.F=Object")),e.close(),e.F):t7(Fh);for(var n=Gv.length;n--;)delete Lg.prototype[Gv[n]];return Lg()};Fy[TP]=!0;var Py=Object.create||function(e,t){var n;return e!==null?(_1.prototype=Lt(e),n=new _1,_1.prototype=null,n[TP]=e):n=Lg(),t===void 0?n:vZ(n,t)},X4=Ct("unscopables"),Z4=Array.prototype;Z4[X4]==null&&Qr.f(Z4,X4,{configurable:!0,value:Py(null)});var td=function(e){Z4[X4][e]=!0},yZ=OP.includes;Dt({target:"Array",proto:!0},{includes:function(e){return yZ(this,e,arguments.length>1?arguments[1]:void 0)}}),td("includes");var mZ=Ct("match"),O8=function(e){var t;return ft(e)&&((t=e[mZ])!==void 0?!!t:qr(e)=="RegExp")},bZ=Z.TypeError,B8=function(e){if(O8(e))throw bZ("The method doesn't accept regular expressions");return e},wZ=Ct("match"),k8=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[wZ]=!1,"/./"[e](t)}catch{}}return!1},EZ=pe("".indexOf);Dt({target:"String",proto:!0,forced:!k8("includes")},{includes:function(e){return!!~EZ(it(Br(this)),it(B8(e)),arguments.length>1?arguments[1]:void 0)}});var DZ=/"/g,xZ=pe("".replace);Dt({target:"String",proto:!0,forced:Ye(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=it(Br(this)),r="<a",(r+=' name="'+xZ(it(t),DZ,""")+'"')+">"+n+"</a>";var t,n,r}});var Y4=function(e,t,n){var r,o;Lt(e);try{if(!(r=Vu(e,"return"))){if(t==="throw")throw n;return n}r=qe(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return Lt(r),n},CZ=function(e,t,n,r){try{return r?t(Lt(n)[0],n[1]):t(n)}catch(o){Y4(e,"throw",o)}},Pl={},SZ=Ct("iterator"),AZ=Array.prototype,jP=function(e){return e!==void 0&&(Pl.Array===e||AZ[SZ]===e)},Pd=function(e,t,n){var r=x8(t);r in e?Qr.f(e,r,By(0,n)):e[r]=n},OZ=Ct("iterator"),F8=function(e){if(e!=null)return Vu(e,OZ)||Vu(e,"@@iterator")||Pl[Ty(e)]},BZ=Z.TypeError,PP=function(e,t){var n=arguments.length<2?F8(e):t;if(va(n))return Lt(qe(n,e));throw BZ(Oy(e)+" is not iterable")},n7=Z.Array,NP=Ct("iterator"),IP=!1;try{var kZ=0,r7={next:function(){return{done:!!kZ++}},return:function(){IP=!0}};r7[NP]=function(){return this},Array.from(r7,function(){throw 2})}catch{}var T8=function(e,t){if(!IP)return!1;var n=!1;try{var r={};r[NP]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},FZ=!T8(function(e){Array.from(e)});Dt({target:"Array",stat:!0,forced:FZ},{from:function(e){var t=Oa(e),n=jy(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Uu(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=F8(t),p=0;if(!d||this==n7&&jP(d))for(a=as(t),u=n?new this(a):n7(a);a>p;p++)f=i?o(t[p],p):t[p],Pd(u,p,f);else for(c=(l=PP(t,d)).next,u=n?new this:[];!(s=qe(c,l)).done;p++)f=i?CZ(l,o,[s.value,p],!0):s.value,Pd(u,p,f);return u.length=p,u}});var wu,o7,i7,TZ=pe("".charAt),a7=pe("".charCodeAt),_Z=pe("".slice),jZ=function(e){return function(t,n){var r,o,i=it(Br(t)),a=_p(n),u=i.length;return a<0||a>=u?"":(r=a7(i,a))<55296||r>56319||a+1===u||(o=a7(i,a+1))<56320||o>57343?TZ(i,a):_Z(i,a,a+2)}},LP={charAt:jZ()},PZ=!Ye(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),u7=C8("IE_PROTO"),J4=Z.Object,NZ=J4.prototype,qv=PZ?J4.getPrototypeOf:function(e){var t=Oa(e);if(It(t,u7))return t[u7];var n=t.constructor;return rt(n)&&t instanceof n?n.prototype:t instanceof J4?NZ:null},Q4=Ct("iterator"),RP=!1;[].keys&&("next"in(i7=[].keys())?(o7=qv(qv(i7)))!==Object.prototype&&(wu=o7):RP=!0);var IZ=wu==null||Ye(function(){var e={};return wu[Q4].call(e)!==e});IZ&&(wu={}),rt(wu[Q4])||Un(wu,Q4,function(){return this});var _8={IteratorPrototype:wu,BUGGY_SAFARI_ITERATORS:RP},LZ=Qr.f,s7=Ct("toStringTag"),Kv=function(e,t,n){e&&!It(e=n?e:e.prototype,s7)&&LZ(e,s7,{configurable:!0,value:t})},RZ=_8.IteratorPrototype,MZ=function(){return this},zZ=Z.String,$Z=Z.TypeError,Nl=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=pe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Lt(r),(function(i){if(typeof i=="object"||rt(i))return i;throw $Z("Can't set "+zZ(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),HZ=Ql.PROPER,VZ=Ql.CONFIGURABLE,l7=_8.IteratorPrototype,Th=_8.BUGGY_SAFARI_ITERATORS,zc=Ct("iterator"),UZ=function(){return this},j8=function(e,t,n,r,o,i,a){(function(m,h,b,w){var D=h+" Iterator";m.prototype=Py(RZ,{next:By(1,b)}),Kv(m,D,!1),Pl[D]=MZ})(n,t,r);var u,s,l,c=function(m){if(m===o&&v)return v;if(!Th&&m in p)return p[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,y=p[zc]||p["@@iterator"]||o&&p[o],v=!Th&&y||c(o),g=t=="Array"&&p.entries||y;if(g&&(u=qv(g.call(new e)))!==Object.prototype&&u.next&&(qv(u)!==l7&&(Nl?Nl(u,l7):rt(u[zc])||Un(u,zc,UZ)),Kv(u,f,!0)),HZ&&o=="values"&&y&&y.name!=="values"&&(VZ?Gr(p,"name","values"):(d=!0,v=function(){return qe(y,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(Th||d||!(l in p))&&Un(p,l,s[l]);else Dt({target:t,proto:!0,forced:Th||d},s);return p[zc]!==v&&Un(p,zc,v,{name:o}),Pl[t]=v,s},WZ=LP.charAt,GZ=Cn.set,qZ=Cn.getterFor("String Iterator");j8(String,"String",function(e){GZ(this,{type:"String Iterator",string:it(e),index:0})},function(){var e,t=qZ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=WZ(n,r),t.index+=e.length,{value:e,done:!1})});var j1,KZ=jp.f,c7=pe("".endsWith),XZ=pe("".slice),ZZ=Math.min,MP=k8("endsWith"),YZ=!(MP||(j1=KZ(String.prototype,"endsWith"),!j1||j1.writable));Dt({target:"String",proto:!0,forced:!YZ&&!MP},{endsWith:function(e){var t=it(Br(this));B8(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=n===void 0?r:ZZ(ec(n),r),i=it(e);return c7?c7(t,i,o):XZ(t,o-i.length,o)===i}});var JZ=pe([].join),QZ=_y!=Object,eY=CP("join",",");Dt({target:"Array",proto:!0,forced:QZ||!eY},{join:function(e){return JZ(Ba(this),e===void 0?",":e)}});var tY=Ct("species"),Ny=function(e){return Fd>=51||!Ye(function(){var t=[];return(t.constructor={})[tY]=function(){return{foo:1}},t[e](Boolean).foo!==1})},nY=tc.map,rY=Ny("map");Dt({target:"Array",proto:!0,forced:!rY},{map:function(e){return nY(this,e,arguments.length>1?arguments[1]:void 0)}});var P8=Z.RegExp,eE=Ye(function(){var e=P8("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),oY=eE||Ye(function(){return!P8("a","y").sticky}),Iy={BROKEN_CARET:eE||Ye(function(){var e=P8("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:oY,UNSUPPORTED_Y:eE},iY=Z.RegExp,N8=Ye(function(){var e=iY(".","s");return!(e.dotAll&&e.exec(`
|
|
36
|
+
`)&&e.flags==="s")}),aY=Z.RegExp,I8=Ye(function(){var e=aY("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),uY=Cn.get,sY=b8("native-string-replace",String.prototype.replace),Xv=RegExp.prototype.exec,tE=Xv,lY=pe("".charAt),cY=pe("".indexOf),fY=pe("".replace),P1=pe("".slice),N1=(function(){var e=/a/,t=/b*/g;return qe(Xv,e,"a"),qe(Xv,t,"a"),e.lastIndex!==0||t.lastIndex!==0})(),f7=Iy.BROKEN_CARET,I1=/()??/.exec("")[1]!==void 0;(N1||I1||f7||N8||I8)&&(tE=function(e){var t,n,r,o,i,a,u,s=this,l=uY(s),c=it(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=qe(tE,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=f7&&s.sticky,y=qe(A8,s),v=s.source,g=0,m=c;if(p&&(y=fY(y,"y",""),cY(y,"g")===-1&&(y+="g"),m=P1(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&lY(c,s.lastIndex-1)!==`
|
|
37
|
+
`)&&(v="(?: "+v+")",m=" "+m,g++),n=new RegExp("^(?:"+v+")",y)),I1&&(n=new RegExp("^"+v+"$(?!\\s)",y)),N1&&(r=s.lastIndex),o=qe(Xv,p?n:s,m),p?o?(o.input=P1(o.input,g),o[0]=P1(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:N1&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),I1&&o&&o.length>1&&qe(sY,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Py(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Nd=tE;Dt({target:"RegExp",proto:!0,forced:/./.exec!==Nd},{exec:Nd});var L8=Function.prototype,d7=L8.apply,dY=L8.bind,p7=L8.call,R8=typeof Reflect=="object"&&Reflect.apply||(dY?p7.bind(d7):function(){return p7.apply(d7,arguments)}),pY=Ct("species"),L1=RegExp.prototype,M8=function(e,t,n,r){var o=Ct(e),i=!Ye(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Ye(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[pY]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=pe(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var y=pe(l),v=c.exec;return v===Nd||v===L1.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:y(f,c,d)}:{done:!1}});Un(String.prototype,e,s[0]),Un(L1,o,s[1])}r&&Gr(L1[o],"sham",!0)},hY=LP.charAt,z8=function(e,t,n){return t+(n?hY(e,t).length:1)},gY=Math.floor,R1=pe("".charAt),vY=pe("".replace),M1=pe("".slice),yY=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,mY=/\$([$&'`]|\d{1,2})/g,bY=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=mY;return o!==void 0&&(o=Oa(o),s=yY),vY(i,s,function(l,c){var f;switch(R1(c,0)){case"$":return"$";case"&":return e;case"`":return M1(t,0,n);case"'":return M1(t,a);case"<":f=o[M1(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=gY(d/10);return p===0?l:p<=u?r[p-1]===void 0?R1(c,1):r[p-1]+R1(c,1):l}f=r[d-1]}return f===void 0?"":f})},wY=Z.TypeError,Id=function(e,t){var n=e.exec;if(rt(n)){var r=qe(n,e,t);return r!==null&&Lt(r),r}if(qr(e)==="RegExp")return qe(Nd,e,t);throw wY("RegExp#exec called on incompatible receiver")},nE=Ct("replace"),EY=Math.max,DY=Math.min,xY=pe([].concat),z1=pe([].push),h7=pe("".indexOf),g7=pe("".slice),CY="a".replace(/./,"$0")==="$0",v7=!!/./[nE]&&/./[nE]("a","$0")==="";M8("replace",function(e,t,n){var r=v7?"$":"$0";return[function(o,i){var a=Br(this),u=o==null?void 0:Vu(o,nE);return u?qe(u,o,a,i):qe(t,it(a),o,i)},function(o,i){var a=Lt(this),u=it(o);if(typeof i=="string"&&h7(i,r)===-1&&h7(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=rt(i);l||(i=it(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Id(a,u);if(p===null||(z1(d,p),!c))break;it(p[0])===""&&(a.lastIndex=z8(u,ec(a.lastIndex),f))}for(var y,v="",g=0,m=0;m<d.length;m++){for(var h=it((p=d[m])[0]),b=EY(DY(_p(p.index),u.length),0),w=[],D=1;D<p.length;D++)z1(w,(y=p[D])===void 0?y:String(y));var C=p.groups;if(l){var x=xY([h],w,b,u);C!==void 0&&z1(x,C);var O=it(R8(i,void 0,x))}else O=bY(h,u,b,w,C,i);b>=g&&(v+=g7(u,g,b)+O,g=b+h.length)}return v+g7(u,g)}]},!!Ye(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!CY||v7);/*! *****************************************************************************
|
|
38
|
+
Copyright (c) Microsoft Corporation.
|
|
39
|
+
|
|
40
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
41
|
+
purpose with or without fee is hereby granted.
|
|
42
|
+
|
|
43
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
44
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
45
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
46
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
47
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
48
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
49
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
50
|
+
***************************************************************************** */var rE=function(e,t){return rE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},rE(e,t)};function nc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}rE(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var br=function(){return br=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},br.apply(this,arguments)};function wr(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 new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function He(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function oE(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var SY=0,y7=function(){this.id=""+SY++},AY=Cn.set,OY=Cn.getterFor("Array Iterator"),Vf=j8(Array,"Array",function(e,t){AY(this,{type:"Array Iterator",target:Ba(e),index:0,kind:t})},function(){var e=OY(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,td("keys"),td("values"),td("entries");var Il=function(e,t,n){for(var r in t)Un(e,r,t[r],n);return e},BY=Z.Array,kY=Math.max,iE=function(e,t,n){for(var r=as(e),o=jl(t,r),i=jl(n===void 0?r:n,r),a=BY(kY(i-o,0)),u=0;o<i;o++,u++)Pd(a,u,e[o]);return a.length=u,a},m7=_d.f,b7=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],FY={f:function(e){return b7&&qr(e)=="Window"?(function(t){try{return m7(t)}catch{return iE(b7)}})(e):m7(Ba(e))}},w7=Ye(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),_h=Object.isExtensible,lu=Ye(function(){_h(1)})||w7?function(e){return!!ft(e)&&(!w7||qr(e)!="ArrayBuffer")&&(!_h||_h(e))}:_h,TY=!Ye(function(){return Object.isExtensible(Object.preventExtensions({}))}),Ly=Tp(function(e){var t=Qr.f,n=!1,r=w8("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=_d.f,s=pe([].splice),l={};l[r]=1,u(l).length&&(_d.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},Dt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:FY.f}))},fastKey:function(u,s){if(!ft(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!It(u,r)){if(!lu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!It(u,r)){if(!lu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return TY&&n&&lu(u)&&!It(u,r)&&i(u),u}};Fy[r]=!0}),_Y=Z.TypeError,Rg=function(e,t){this.stopped=e,this.result=t},E7=Rg.prototype,Ld=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),y=Uu(t,c),v=function(m){return r&&Y4(r,"normal",m),new Rg(!0,m)},g=function(m){return f?(Lt(m),p?y(m[0],m[1],v):y(m[0],m[1])):p?y(m,v):y(m)};if(d)r=e;else{if(!(o=F8(e)))throw _Y(Oy(e)+" is not iterable");if(jP(o)){for(i=0,a=as(e);a>i;i++)if((u=g(e[i]))&&Hu(E7,u))return u;return new Rg(!1)}r=PP(e,o)}for(s=r.next;!(l=qe(s,r)).done;){try{u=g(l.value)}catch(m){Y4(r,"throw",m)}if(typeof u=="object"&&u&&Hu(E7,u))return u}return new Rg(!1)},jY=Z.TypeError,Ry=function(e,t){if(Hu(t,e))return e;throw jY("Incorrect invocation")},zP=function(e,t,n){var r,o;return Nl&&rt(r=t.constructor)&&r!==n&&ft(o=r.prototype)&&o!==n.prototype&&Nl(e,o),e},$P=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=Z[e],u=a&&a.prototype,s=a,l={},c=function(g){var m=pe(u[g]);Un(u,g,g=="add"?function(h){return m(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!ft(h))&&m(this,h===0?0:h)}:g=="get"?function(h){return o&&!ft(h)?void 0:m(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!ft(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(jd(e,!rt(a)||!(o||u.forEach&&!Ye(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,i),Ly.enable();else if(jd(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Ye(function(){f.has(1)}),y=T8(function(g){new a(g)}),v=!o&&Ye(function(){for(var g=new a,m=5;m--;)g[i](m,m);return!g.has(-0)});y||((s=t(function(g,m){Ry(g,u);var h=zP(new a,g,s);return m!=null&&Ld(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Dt({global:!0,forced:s!=a},l),Kv(s,e),o||n.setStrong(s,e,r),s},jh=Ly.getWeakData,PY=Cn.set,NY=Cn.getterFor,IY=tc.find,LY=tc.findIndex,RY=pe([].splice),MY=0,Ph=function(e){return e.frozen||(e.frozen=new HP)},HP=function(){this.entries=[]},$1=function(e,t){return IY(e.entries,function(n){return n[0]===t})};HP.prototype={get:function(e){var t=$1(this,e);if(t)return t[1]},has:function(e){return!!$1(this,e)},set:function(e,t){var n=$1(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=LY(this.entries,function(n){return n[0]===e});return~t&&RY(this.entries,t,1),!!~t}};var $c,VP={getConstructor:function(e,t,n,r){var o=e(function(s,l){Ry(s,i),PY(s,{type:t,id:MY++,frozen:void 0}),l!=null&&Ld(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=NY(t),u=function(s,l,c){var f=a(s),d=jh(Lt(l),!0);return d===!0?Ph(f).set(l,c):d[f.id]=c,s};return Il(i,{delete:function(s){var l=a(this);if(!ft(s))return!1;var c=jh(s);return c===!0?Ph(l).delete(s):c&&It(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ft(s))return!1;var c=jh(s);return c===!0?Ph(l).has(s):c&&It(c,l.id)}}),Il(i,n?{get:function(s){var l=a(this);if(ft(s)){var c=jh(s);return c===!0?Ph(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},Nh=Cn.enforce,zY=!Z.ActiveXObject&&"ActiveXObject"in Z,UP=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},$Y=$P("WeakMap",UP,VP);if(mP&&zY){$c=VP.getConstructor(UP,"WeakMap",!0),Ly.enable();var Hc=$Y.prototype,D7=pe(Hc.delete),Ih=pe(Hc.has),x7=pe(Hc.get),C7=pe(Hc.set);Il(Hc,{delete:function(e){if(ft(e)&&!lu(e)){var t=Nh(this);return t.frozen||(t.frozen=new $c),D7(this,e)||t.frozen.delete(e)}return D7(this,e)},has:function(e){if(ft(e)&&!lu(e)){var t=Nh(this);return t.frozen||(t.frozen=new $c),Ih(this,e)||t.frozen.has(e)}return Ih(this,e)},get:function(e){if(ft(e)&&!lu(e)){var t=Nh(this);return t.frozen||(t.frozen=new $c),Ih(this,e)?x7(this,e):t.frozen.get(e)}return x7(this,e)},set:function(e,t){if(ft(e)&&!lu(e)){var n=Nh(this);n.frozen||(n.frozen=new $c),Ih(this,e)?C7(this,e,t):n.frozen.set(e,t)}else C7(this,e,t);return this}})}var H1=Ct("iterator"),S7=Ct("toStringTag"),V1=Vf.values,WP=function(e,t){if(e){if(e[H1]!==V1)try{Gr(e,H1,V1)}catch{e[H1]=V1}if(e[S7]||Gr(e,S7,t),Uv[t]){for(var n in Vf)if(e[n]!==Vf[n])try{Gr(e,n,Vf[n])}catch{e[n]=Vf[n]}}}};for(var U1 in Uv)WP(Z[U1]&&Z[U1].prototype,U1);WP(wP,"DOMTokenList");var aE=new WeakMap,uE=new WeakMap,$8=new WeakMap,My=new WeakMap,sE=new WeakMap,Zv=new WeakMap,H8=new WeakMap,lE=new WeakMap,Mg=new WeakMap,A7=new WeakMap,O7=new WeakMap,B7=new WeakMap,k7=new WeakMap,Rd=new WeakMap,Ll=new WeakMap,V8=new WeakMap,Yv=new WeakMap,cE=new WeakMap,Jv=new WeakMap,zg=new WeakMap,GP=new WeakMap,Eu=new WeakMap,W1=new WeakMap,F7=new WeakMap,G1=new WeakMap,HY=tc.find,T7=!0;"find"in[]&&Array(1).find(function(){T7=!1}),Dt({target:"Array",proto:!0,forced:T7},{find:function(e){return HY(this,e,arguments.length>1?arguments[1]:void 0)}}),td("find"),Dt({global:!0},{globalThis:Z});const VY=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Iv&&(k.fn.css=Iv),Or&&(k.fn.append=Or),Dl&&(k.fn.addClass=Dl),xl&&(k.fn.removeClass=xl),Cl&&(k.fn.hasClass=Cl),Oo&&(k.fn.on=Oo),ga&&(k.fn.focus=ga),Ar&&(k.fn.attr=Ar),_v&&(k.fn.removeAttr=_v),Al&&(k.fn.hide=Al),Nv&&(k.fn.show=Nv),qS&&(k.fn.offset=qS),jv&&(k.fn.width=jv),Pv&&(k.fn.height=Pv),Ol&&(k.fn.parent=Ol),Mv&&(k.fn.parents=Mv),XS&&(k.fn.is=XS),Sl&&(k.fn.dataset=Sl),Ao&&(k.fn.val=Ao),Rv&&(k.fn.text=Rv),ha&&(k.fn.html=ha),kl&&(k.fn.children=kl),Fl&&(k.fn.remove=Fl),Bl&&(k.fn.find=Bl),Lv&&(k.fn.each=Lv),Tl&&(k.fn.empty=Tl);var ho,En,U8=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Mr=function(e){return Wu(e)&&e.nodeType===1},Wu=function(e){var t=U8(e);return!!t&&e instanceof t.Node},_7=function(e){var t=e&&e.anchorNode&&U8(e.anchorNode);return!!t&&e instanceof t.Selection},qP=function(e){return Wu(e)&&e.nodeType===3},fE=function(e){var t,n,r;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(e))||null},KP=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(Wu(r=i)&&r.nodeType===8||Mr(i)&&i.childNodes.length===0||Mr(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+=n==="forward"?1:-1);return[i,t]},UY=function(e,t,n){return He(KP(e,t,n),1)[0]},WY=function e(t){var n,r,o="";if(qP(t)&&t.nodeValue)return t.nodeValue;if(Mr(t)){try{for(var i=wr(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&t.tagName!=="BR"||(o+=`
|
|
51
|
+
`)}return o};function XP(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?t(o,e):i!=1&&i!=9&&i!=11||XP(o,t)}}function j7(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==ho.ELEMENT_NODE?"":t.tagName.toLowerCase()}(En=ho||(ho={}))[En.ELEMENT_NODE=1]="ELEMENT_NODE",En[En.TEXT_NODE=3]="TEXT_NODE",En[En.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",En[En.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",En[En.COMMENT_NODE=8]="COMMENT_NODE",En[En.DOCUMENT_NODE=9]="DOCUMENT_NODE",En[En.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",En[En.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var dE=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),nd=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Vc=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),GY=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),qY=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),pE=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Uc=!qY&&!GY&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(e){var t=GP.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=zg.get(t);return n||(n=new y7,zg.set(t,n)),n},setNewKey:function(e){var t=new y7;zg.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=Ll.get(r);if(o==null){if(E.isEditor(r))return n;break}var i=Rd.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=A.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return Ll.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var o=A.getParentNode(e,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[A.findPath(e,t)[0]];return J.get(e,n)},toDOMNode:function(e,t){var n;if(E.isEditor(t))n=V8.get(e);else{var r=A.findKey(e,t);n=cE.get(r)}if(!n)throw new 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,o=n.editable,i=o!==void 0&&o,a=A.toDOMNode(e,e);try{r=Mr(t)?t:t.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=L.isBackward(t),i=A.toDOMPoint(e,n),a=L.isCollapsed(t)?i:A.toDOMPoint(e,r),u=A.getWindow(e).document.createRange(),s=He(o?a:i,2),l=s[0],c=s[1],f=He(o?i:a,2),d=f[0],p=f[1],y=!!(Mr(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),v=!!(Mr(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,y?1:c),u.setEnd(d,v?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=He(E.node(e,t.path),1)[0],a=A.toDOMNode(e,i);E.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=wr(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,y=f.getAttribute("data-slate-length"),v=s+(y==null?p:parseInt(y,10));if(t.offset<=v){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=v}}}catch(g){n={error:g}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=Mr(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Yv.get(n):null;if(!r)throw new 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,o=t.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=A.toSlateNode(e,t.target),u=A.findPath(e,a);if(E.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=E.point(e,u,{edge:l?"start":"end"}),f=l?E.before(e,c):E.after(e,c);if(f)return E.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return A.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((_7(t)?t.anchorNode:t.startContainer)&&(_7(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=pE&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),r==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=A.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:A.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return L.isExpanded(d)&&L.isForward(d)&&Mr(i)&&E.void(e,{at:d.focus,mode:"highest"})&&(d=E.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=He(o?t:(function(h){var b,w=He(h,2),D=w[0],C=w[1];if(Mr(D)&&D.childNodes.length){var x=C===D.childNodes.length,O=x?C-1:C;for(D=(b=He(KP(D,O,x?"backward":"forward"),2))[0],x=(O=b[1])<C;Mr(D)&&D.childNodes.length;){var F=x?D.childNodes.length-1:0;D=UY(D,F,x?"backward":"forward")}C=x&&D.textContent!=null?D.textContent.length:0}return[D,C]})(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),y=null;if(p){c=p.closest('[data-slate-node="text"]');var v=A.getWindow(e).document.createRange();v.setStart(c,0),v.setEnd(u,s);var g=v.cloneContents();oE(oE([],He(US(g.querySelectorAll("[data-slate-zero-width]")))),He(US(g.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=g.textContent.length,y=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(y=p).textContent.length,y.querySelectorAll("[data-slate-zero-width]").forEach(function(h){f-=h.textContent.length})):f=1);y&&f===y.textContent.length&&(l.hasAttribute("data-slate-zero-width")||nd&&!((r=y.textContent)===null||r===void 0)&&r.endsWith(`
|
|
52
|
+
`))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var m=A.toSlateNode(e,c);return{path:A.findPath(e,m),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return E.hasPath(e,n.path)&&E.hasPath(e,r.path)},getNodeType:function(e){return ce.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return J.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],o=E.nodes(e,{universal:!0});try{for(var i=wr(o),a=i.next();!a.done;a=i.next()){var u=He(a.value,1)[0];ce.isElement(u)&&r.push(u)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=He(E.nodes(e,{match:function(i){return n.checkNodeType(i,t)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(e){var t=He(E.nodes(e,{match:function(r){return oe.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=He(E.nodes(e,{match:function(o){return o===t},universal:!0}),1),r=n[0];return r!=null&&He(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(E.isEnd(e,n.anchor,t)||E.isEnd(e,n.focus,t))},getTextarea:function(e){var t=aE.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return My.get(e)||null},getHoverbar:function(e){return Zv.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 o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=A.getTextarea(e).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=wr(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(v){t={error:v}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=E.nodes(e,{match:function(v){return!(!ce.isElement(v)||e.isInline(v))},universal:!0});try{for(var f=wr(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var y=p[0];XP(A.toDOMNode(e,y),function(v,g){var m=k(g);m.attr("data-slate-string")||m.attr("data-slate-zero-width")||m.attr("data-w-e-reserve")||g.removeChild(v)})}}}catch(v){r={error:v}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}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=E.nodes(e,{match:function(u){return e.isVoid(u)}}),o=0;try{for(var i=wr(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||L.isExpanded(t))return!1;var n=A.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=E.node(e,t);if(n==null)return!1;var r=He(n,1)[0].children;return r.length===1&&r[0].text===""}},KY=1,ZP={},Md={},XY=tc.filter,ZY=Ny("filter");Dt({target:"Array",proto:!0,forced:!ZY},{filter:function(e){return XY(this,e,arguments.length>1?arguments[1]:void 0)}});var hE=`
|
|
53
|
+
\v\f\r \u2028\u2029\uFEFF`,P7=pe("".replace),Qv="["+hE+"]",YY=RegExp("^"+Qv+Qv+"*"),JY=RegExp(Qv+Qv+"*$"),QY=function(e){return function(t){var n=it(Br(t));return n=P7(n,YY,""),n=P7(n,JY,""),n}},eJ={trim:QY()},tJ=Ql.PROPER,nJ=eJ.trim;Dt({target:"String",proto:!0,forced:(function(e){return Ye(function(){return!!hE[e]()||"
"[e]()!=="
"||tJ&&hE[e].name!==e})})("trim")},{trim:function(){return nJ(this)}});var gE=[],YP={};function rJ(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var zd,xs,N7,q1,e0=Z.Promise,I7=Ct("species"),W8=function(e){var t=is(e),n=Qr.f;rn&&t&&!t[I7]&&n(t,I7,{configurable:!0,get:function(){return this}})},oJ=Z.TypeError,iJ=Ct("species"),JP=function(e,t){var n,r=Lt(e).constructor;return r===void 0||(n=Lt(r)[iJ])==null?t:(function(o){if(jy(o))return o;throw oJ(Oy(o)+" is not a constructor")})(n)},QP=pe([].slice),eN=/(?:ipad|iphone|ipod).*applewebkit/i.test(ul),Yi=qr(Z.process)=="process",vE=Z.setImmediate,L7=Z.clearImmediate,aJ=Z.process,K1=Z.Dispatch,uJ=Z.Function,R7=Z.MessageChannel,sJ=Z.String,X1=0,rd={};try{zd=Z.location}catch{}var G8=function(e){if(It(rd,e)){var t=rd[e];delete rd[e],t()}},Z1=function(e){return function(){G8(e)}},M7=function(e){G8(e.data)},z7=function(e){Z.postMessage(sJ(e),zd.protocol+"//"+zd.host)};vE&&L7||(vE=function(e){var t=QP(arguments,1);return rd[++X1]=function(){R8(rt(e)?e:uJ(e),void 0,t)},xs(X1),X1},L7=function(e){delete rd[e]},Yi?xs=function(e){aJ.nextTick(Z1(e))}:K1&&K1.now?xs=function(e){K1.now(Z1(e))}:R7&&!eN?(q1=(N7=new R7).port2,N7.port1.onmessage=M7,xs=Uu(q1.postMessage,q1)):Z.addEventListener&&rt(Z.postMessage)&&!Z.importScripts&&zd&&zd.protocol!=="file:"&&!Ye(z7)?(xs=z7,Z.addEventListener("message",M7,!1)):xs="onreadystatechange"in Td("script")?function(e){K4.appendChild(Td("script")).onreadystatechange=function(){K4.removeChild(this),G8(e)}}:function(e){setTimeout(Z1(e),0)});var Wc,iu,od,Xs,Y1,J1,Q1,$7,tN={set:vE},lJ=/ipad|iphone|ipod/i.test(ul)&&Z.Pebble!==void 0,cJ=/web0s(?!.*chrome)/i.test(ul),fJ=jp.f,eb=tN.set,H7=Z.MutationObserver||Z.WebKitMutationObserver,V7=Z.document,U7=Z.process,Lh=Z.Promise,W7=fJ(Z,"queueMicrotask"),nN=W7&&W7.value;nN||(Wc=function(){var e,t;for(Yi&&(e=U7.domain)&&e.exit();iu;){t=iu.fn,iu=iu.next;try{t()}catch(n){throw iu?Xs():od=void 0,n}}od=void 0,e&&e.enter()},eN||Yi||cJ||!H7||!V7?!lJ&&Lh&&Lh.resolve?((Q1=Lh.resolve(void 0)).constructor=Lh,$7=Uu(Q1.then,Q1),Xs=function(){$7(Wc)}):Yi?Xs=function(){U7.nextTick(Wc)}:(eb=Uu(eb,Z),Xs=function(){eb(Wc)}):(Y1=!0,J1=V7.createTextNode(""),new H7(Wc).observe(J1,{characterData:!0}),Xs=function(){J1.data=Y1=!Y1}));var tb,G7,rN,q7,oN=nN||function(e){var t={fn:e,next:void 0};od&&(od.next=t),iu||(iu=t,Xs()),od=t},dJ=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=va(t),this.reject=va(n)},q8={f:function(e){return new dJ(e)}},yE=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},pJ=typeof window=="object",iN=tN.set,hJ=Ct("species"),co="Promise",K7=Cn.getterFor(co),gJ=Cn.set,vJ=Cn.getterFor(co),Qa=e0&&e0.prototype,vo=e0,Gc=Qa,aN=Z.TypeError,mE=Z.document,K8=Z.process,ll=q8.f,yJ=ll,mJ=!!(mE&&mE.createEvent&&Z.dispatchEvent),uN=rt(Z.PromiseRejectionEvent),sN=!1,id=jd(co,function(){var e=ky(vo),t=e!==String(vo);if(!t&&Fd===66)return!0;if(Fd>=51&&/native code/.test(e))return!1;var n=new vo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[hJ]=r,!(sN=n.then(function(){})instanceof r)||!t&&pJ&&!uN}),bJ=id||!T8(function(e){vo.all(e).catch(function(){})}),lN=function(e){var t;return!(!ft(e)||!rt(t=e.then))&&t},X8=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;oN(function(){for(var r=e.value,o=e.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(e.rejection===2&&EJ(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(aN("Promise-chain cycle")):(u=lN(a))?qe(u,a,f,d):f(a)):d(r)}catch(y){p&&!s&&p.exit(),d(y)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&wJ(e)})}},cN=function(e,t,n){var r,o;mJ?((r=mE.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Z.dispatchEvent(r)):r={promise:t,reason:n},!uN&&(o=Z["on"+e])?o(r):e==="unhandledrejection"&&(function(i,a){var u=Z.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))})("Unhandled promise rejection",n)},wJ=function(e){qe(iN,Z,function(){var t,n=e.facade,r=e.value;if(X7(e)&&(t=yE(function(){Yi?K8.emit("unhandledRejection",r,n):cN("unhandledrejection",n,r)}),e.rejection=Yi||X7(e)?2:1,t.error))throw t.value})},X7=function(e){return e.rejection!==1&&!e.parent},EJ=function(e){qe(iN,Z,function(){var t=e.facade;Yi?K8.emit("rejectionHandled",t):cN("rejectionhandled",t,e.value)})},nl=function(e,t,n){return function(r){e(t,r,n)}},cl=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,X8(e,!0))},bE=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw aN("Promise can't be resolved itself");var r=lN(t);r?oN(function(){var o={done:!1};try{qe(r,t,nl(bE,o,e),nl(cl,o,e))}catch(i){cl(o,i,e)}}):(e.value=t,e.state=1,X8(e,!1))}catch(o){cl({done:!1},o,e)}}};if(id&&(Gc=(vo=function(e){Ry(this,Gc),va(e),qe(tb,this);var t=K7(this);try{e(nl(bE,t),nl(cl,t))}catch(n){cl(t,n)}}).prototype,(tb=function(e){gJ(this,{type:co,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Il(Gc,{then:function(e,t){var n=vJ(this),r=n.reactions,o=ll(JP(this,vo));return o.ok=!rt(e)||e,o.fail=rt(t)&&t,o.domain=Yi?K8.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&X8(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),G7=function(){var e=new tb,t=K7(e);this.promise=e,this.resolve=nl(bE,t),this.reject=nl(cl,t)},q8.f=ll=function(e){return e===vo||e===rN?new G7(e):yJ(e)},rt(e0)&&Qa!==Object.prototype)){q7=Qa.then,sN||(Un(Qa,"then",function(e,t){var n=this;return new vo(function(r,o){qe(q7,n,r,o)}).then(e,t)},{unsafe:!0}),Un(Qa,"catch",Gc.catch,{unsafe:!0}));try{delete Qa.constructor}catch{}Nl&&Nl(Qa,Gc)}Dt({global:!0,wrap:!0,forced:id},{Promise:vo}),Kv(vo,co,!1),W8(co),rN=is(co),Dt({target:co,stat:!0,forced:id},{reject:function(e){var t=ll(this);return qe(t.reject,void 0,e),t.promise}}),Dt({target:co,stat:!0,forced:id},{resolve:function(e){return(function(t,n){if(Lt(t),ft(n)&&n.constructor===t)return n;var r=q8.f(t);return(0,r.resolve)(n),r.promise})(this,e)}}),Dt({target:co,stat:!0,forced:bJ},{all:function(e){var t=this,n=ll(t),r=n.resolve,o=n.reject,i=yE(function(){var a=va(t.resolve),u=[],s=0,l=1;Ld(e,function(c){var f=s++,d=!1;l++,qe(a,t,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=ll(t),r=n.reject,o=yE(function(){var i=va(t.resolve);Ld(e,function(a){qe(i,t,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Cs=Iy.UNSUPPORTED_Y,DJ=Math.min,fN=[].push,xJ=pe(/./.exec),Ss=pe(fN),qc=pe("".slice);function kr(e){Promise.resolve().then(e)}function dN(e,t){return ce.isElement(e)?(function(n,r){var o=n.type,i=o===void 0?"":o,a=n.children,u=a===void 0?[]:a,s=E.isVoid(r,n),l="";s||(l=u.map(function(m){return dN(m,r)}).join(""));var c=(function(m){return YP[m]||rJ})(i),f=c(n,l,r),d="";if(d=typeof f=="string"?f:f.html||"",s||gE.forEach(function(m){return d=m(n,d)}),typeof f=="string")return d;var p=f.prefix,y=p===void 0?"":p,v=f.suffix,g=v===void 0?"":v;return y&&(d=y+d),g&&(d+=g),d})(e,t):(function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var i=o;i=(function(s){return s.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")})(i);var a=A.getParentsNodes(r,n).some(function(s){return A.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/ /g," ")),i===""){var u=A.getParentNode(null,n);if(!u||u.children.length!==0)return i;i="<br>"}return gE.forEach(function(s){return i=s(n,i)}),i})(e,t)}function pN(e){return"w-e-element-"+e}M8("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(o,i){var a=it(Br(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!O8(o))return qe(t,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,y=new RegExp(o.source,d+"g");(s=qe(Nd,y,a))&&!((l=y.lastIndex)>p&&(Ss(f,qc(a,p,s.index)),s.length>1&&s.index<a.length&&R8(fN,f,iE(s,1)),c=s[0].length,p=l,f.length>=u));)y.lastIndex===s.index&&y.lastIndex++;return p===a.length?!c&&xJ(y,"")||Ss(f,""):Ss(f,qc(a,p)),f.length>u?iE(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:qe(t,this,o,i)}:t,[function(o,i){var a=Br(this),u=o==null?void 0:Vu(o,e);return u?qe(u,o,a,i):qe(r,it(a),o,i)},function(o,i){var a=Lt(this),u=it(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=JP(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Cs?"g":"y"),d=new l(Cs?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return Id(d,u)===null?[u]:[];for(var y=0,v=0,g=[];v<u.length;){d.lastIndex=Cs?0:v;var m,h=Id(d,Cs?qc(u,v):u);if(h===null||(m=DJ(ec(d.lastIndex+(Cs?v:0)),u.length))===y)v=z8(u,v,c);else{if(Ss(g,qc(u,y,v)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Ss(g,h[b]),g.length===p)return g;v=y=m}}return Ss(g,qc(u,y)),g}]},!!Ye(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"}),Cs);var Z7=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Y7=function(e,t,n){var r=A.toDOMRange(e,t).getBoundingClientRect(),o=A.toDOMRange(e,n).getBoundingClientRect();return Z7(r,o)&&Z7(o,r)},hN=["span","b","strong","i","em","s","strike","u","font","sub","sup"],gN=[],Z8=[],t0={},CJ=Qr.f,SJ=_d.f,AJ=Cn.enforce,OJ=Ct("match"),Yo=Z.RegExp,Zs=Yo.prototype,BJ=Z.SyntaxError,kJ=pe(A8),FJ=pe(Zs.exec),Rh=pe("".charAt),J7=pe("".replace),Q7=pe("".indexOf),TJ=pe("".slice),_J=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Du=/a/g,nb=/a/g,jJ=new Yo(Du)!==Du,vN=Iy.MISSED_STICKY,PJ=Iy.UNSUPPORTED_Y,NJ=rn&&(!jJ||vN||N8||I8||Ye(function(){return nb[OJ]=!1,Yo(Du)!=Du||Yo(nb)==nb||Yo(Du,"i")!="/a/i"}));if(jd("RegExp",NJ)){for(var Si=function(e,t){var n,r,o,i,a,u,s=Hu(Zs,this),l=O8(e),c=t===void 0,f=[],d=e;if(!s&&l&&c&&e.constructor===Si)return e;if((l||Hu(Zs,e))&&(e=e.source,c&&(t="flags"in d?d.flags:kJ(d))),e=e===void 0?"":it(e),t=t===void 0?"":it(t),d=e,N8&&"dotAll"in Du&&(r=!!t&&Q7(t,"s")>-1)&&(t=J7(t,/s/g,"")),n=t,vN&&"sticky"in Du&&(o=!!t&&Q7(t,"y")>-1)&&PJ&&(t=J7(t,/y/g,"")),I8&&(i=(function(p){for(var y,v=p.length,g=0,m="",h=[],b={},w=!1,D=!1,C=0,x="";g<=v;g++){if((y=Rh(p,g))==="\\")y+=Rh(p,++g);else if(y==="]")w=!1;else if(!w)switch(!0){case y==="[":w=!0;break;case y==="(":FJ(_J,TJ(p,g+1))&&(g+=2,D=!0),m+=y,C++;continue;case(y===">"&&D):if(x===""||It(b,x))throw new BJ("Invalid capture group name");b[x]=!0,h[h.length]=[x,C],D=!1,x="";continue}D?x+=y:m+=y}return[m,h]})(e),e=i[0],f=i[1]),a=zP(Yo(e,t),s?this:Zs,Si),(r||o||f.length)&&(u=AJ(a),r&&(u.dotAll=!0,u.raw=Si((function(p){for(var y,v=p.length,g=0,m="",h=!1;g<=v;g++)(y=Rh(p,g))!=="\\"?h||y!=="."?(y==="["?h=!0:y==="]"&&(h=!1),m+=y):m+="[\\s\\S]":m+=y+Rh(p,++g);return m})(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{Gr(a,"source",d===""?"(?:)":d)}catch{}return a},IJ=function(e){e in Si||CJ(Si,e,{configurable:!0,get:function(){return Yo[e]},set:function(t){Yo[e]=t}})},e9=SJ(Yo),t9=0;e9.length>t9;)IJ(e9[t9++]);Zs.constructor=Si,Si.prototype=Zs,Un(Z,"RegExp",Si)}W8("RegExp");var LJ=new RegExp(" ","g");function yN(e){return e.replace(LJ," ")}function n9(e,t){var n=e.length;if(n){var r=e[n-1];if(oe.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+t,!0}}return!1}function RJ(e,t,n){return{type:"paragraph",children:[{text:k(e).text().replace(/\s+/gm," ")}]}}function rb(e,t){var n=(function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==ho.ELEMENT_NODE){if(l.nodeType===ho.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
|
|
54
|
+
`)>=0)return;c&&(c=yN(c),n9(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(n9(u,`
|
|
55
|
+
`)||u.push({text:`
|
|
56
|
+
`}));var f=Y8(k(l),a);Array.isArray(f)?f.forEach(function(d){return u.push(d)}):u.push(f)}}),u)})(e,t),r=(function(i){for(var a in t0)if(i[0].matches(a))return t0[a];return RJ})(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach(function(i){E.isVoid(t,i)||(n.length===0&&(i.children=[{text:e.text().replace(/\s+/gm," ")}]),Z8.forEach(function(a){i=a(e[0],i,t)}))}),o}function ob(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
|
|
57
|
+
`));var n=e[0].textContent||"";n=(function(o){return o.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')})(n);var r={text:n=yN(n)};return Z8.forEach(function(o){r=o(e[0],r,t)}),r}function Y8(e,t){gN.forEach(function(r){var o=r.selector,i=r.preParseHtml;e[0].matches(o)&&(e=k(i(e[0])))});var n=j7(e);return n==="span"?e.attr("data-w-e-type")?rb(e,t):ob(e,t):n==="code"?j7(e.parent())==="pre"?rb(e,t):ob(e,t):hN.includes(n)?ob(e,t):rb(e,t)}function mN(e,t,n){var r=k(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function r9(e,t){t===void 0&&(t="");var n=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=k("<div>"+t+"</div>");return Array.from(r.children()).forEach(function(o){var i=Y8(k(o),e);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var MJ=Qr.f,o9=Ly.fastKey,i9=Cn.set,ib=Cn.getterFor,zJ={getConstructor:function(e,t,n,r){var o=e(function(l,c){Ry(l,i),i9(l,{type:t,index:Py(null),first:void 0,last:void 0,size:0}),rn||(l.size=0),c!=null&&Ld(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=ib(t),u=function(l,c,f){var d,p,y=a(l),v=s(l,c);return v?v.value=f:(y.last=v={index:p=o9(c,!0),key:c,value:f,previous:d=y.last,next:void 0,removed:!1},y.first||(y.first=v),d&&(d.next=v),rn?y.size++:l.size++,p!=="F"&&(y.index[p]=v)),l},s=function(l,c){var f,d=a(l),p=o9(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return Il(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,rn?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),d=s(c,l);if(d){var p=d.next,y=d.previous;delete f.index[d.index],d.removed=!0,y&&(y.next=p),p&&(p.previous=y),f.first==d&&(f.first=p),f.last==d&&(f.last=y),rn?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=Uu(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(d(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),Il(i,n?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),rn&&MJ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=ib(t),i=ib(r);j8(e,t,function(a,u){i9(this,{type:r,target:a,state:o(a),kind:u,last:void 0})},function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),W8(t)}};$P("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},zJ);var a9=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function u9(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):N.insertNodes(e,t,{mode:"highest"})}var $J=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var o=t.selection;if(o){var i=He(L.edges(o),2),a=i[0],u=i[1],s=E.void(t,{at:a.path}),l=E.void(t,{at:u.path});if(!L.isCollapsed(o)||s){var c=A.toDOMRange(t,o),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(D){D.textContent&&D.textContent.trim()!==""&&(d=D)}),l){var p=He(l,1)[0],y=c.cloneRange(),v=A.toDOMNode(t,p);y.setEndAfter(v),f=y.cloneContents()}if(s&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(D){var C=D.getAttribute("data-slate-zero-width")==="n";D.textContent=C?`
|
|
58
|
+
`:""}),qP(d)){var g=d.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),f.appendChild(g),d=g}var m=t.getFragment(),h=JSON.stringify(m),b=window.btoa(encodeURIComponent(h));d.setAttribute("data-slate-fragment",b),r.setData("application/x-slate-fragment",b);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),r.setData("text/html",w.innerHTML),r.setData("text/plain",WY(w)),f.ownerDocument.body.removeChild(w),r}}},t.insertData=function(r){var o,i,a=r.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);t.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=wr(f),y=p.next();!y.done;y=p.next()){var v=y.value;d&&N.splitNodes(t,{always:!0}),n(v),d=!0}}catch(g){o={error:g}}finally{try{y&&!y.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}}},t},Uf=function(e){return e!=null},HJ={object:!0,function:!0,undefined:!0},VJ=/^\s*class[\s{/}]/,UJ=Function.prototype.toString,s9=function(e){return!!(function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!(function(n){if(!(function(r){return!!Uf(r)&&hasOwnProperty.call(HJ,typeof r)})(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}})(t)})(e)&&!VJ.test(UJ.call(e))},J8=function(e){return e!=null},WJ=Object.keys,GJ=(function(){try{return Object.keys("primitive"),!0}catch{return!1}})()?Object.keys:function(e){return WJ(J8(e)?Object(e):e)},qJ=function(e){if(!J8(e))throw new TypeError("Cannot use null or undefined");return e},KJ=Math.max,l9=(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,o,i=KJ(arguments.length,2);for(e=Object(qJ(e)),o=function(a){try{e[a]=t[a]}catch(u){n||(n=u)}},r=1;r<i;++r)GJ(t=arguments[r]).forEach(o);if(n!==void 0)throw n;return e},XJ=Array.prototype.forEach,ZJ=Object.create,YJ=function(e,t){var n;for(n in e)t[n]=e[n]},c9=function(e){var t=ZJ(null);return XJ.call(arguments,function(n){J8(n)&&YJ(Object(n),t)}),t},ab="razdwatrzy",JJ=String.prototype.indexOf,Kc=typeof ab.contains=="function"&&ab.contains("dwa")===!0&&ab.contains("foo")===!1?String.prototype.contains:function(e){return JJ.call(this,e,arguments[1])>-1},Mh=Tp(function(e){var t=e.exports=function(n,r){var o,i,a,u,s;return arguments.length<2||typeof n!="string"?(u=r,r=n,n=null):u=arguments[2],Uf(n)?(o=Kc.call(n,"c"),i=Kc.call(n,"e"),a=Kc.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?l9(c9(u),s):s};t.gs=function(n,r,o){var i,a,u,s;return typeof n!="string"?(u=o,o=r,r=n,n=null):u=arguments[3],Uf(r)?s9(r)?Uf(o)?s9(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,Uf(n)?(i=Kc.call(n,"c"),a=Kc.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?l9(c9(u),s):s}}),ub=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},QJ=Tp(function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,y=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(g,m){var h;return ub(m),y.call(this,"__ee__")?h=this.__ee__:(h=v.value=f(null),d(this,"__ee__",v),v.value=null),h[g]?typeof h[g]=="object"?h[g].push(m):h[g]=[h[g],m]:h[g]=m,this},r=function(g,m){var h,b;return ub(m),b=this,n.call(this,g,h=function(){o.call(b,g,h),l.call(m,this,arguments)}),h.__eeOnceListener__=m,this},o=function(g,m){var h,b,w,D;if(ub(m),!y.call(this,"__ee__"))return this;if(!(h=this.__ee__)[g])return this;if(typeof(b=h[g])=="object")for(D=0;w=b[D];++D)w!==m&&w.__eeOnceListener__!==m||(b.length===2?h[g]=b[D?0:1]:b.splice(D,1));else b!==m&&b.__eeOnceListener__!==m||delete h[g];return this},i=function(g){var m,h,b,w,D;if(y.call(this,"__ee__")&&(w=this.__ee__[g]))if(typeof w=="object"){for(h=arguments.length,D=new Array(h-1),m=1;m<h;++m)D[m-1]=arguments[m];for(w=w.slice(),m=0;b=w[m];++m)l.call(b,this,D)}else switch(arguments.length){case 1:c.call(w,this);break;case 2:c.call(w,this,arguments[1]);break;case 3:c.call(w,this,arguments[1],arguments[2]);break;default:for(h=arguments.length,D=new Array(h-1),m=1;m<h;++m)D[m-1]=arguments[m];l.call(w,this,D)}},a={on:n,once:r,off:o,emit:i},u={on:Mh(n),once:Mh(r),off:Mh(o),emit:Mh(i)},s=p({},u),e.exports=t=function(g){return g==null?f(s):p(Object(g),u)},t.methods=a});function zh(e){var t=F7.get(e);return t==null&&(t=QJ(),F7.set(e,t)),t}var n0=new WeakMap;function f9(e,t){var n=n0.get(e);n==null&&(n=new Set,n0.set(e,n)),n.add(t)}function eQ(e){return n0.get(e)||new Set}function tQ(e){n0.set(e,new Set)}function Q8(e){var t=A.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function e5(e){var t={top:"0",left:"0"},n=e.selection;if(n==null)return t;var r=Q8(e);if(r==null)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=A.toDOMRange(e,n).getClientRects()[0];if(s==null)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var y=u-f;c.bottom=y+5+"px"}else{var v=f+l;v<0&&(v=0),c.top=v+5+"px"}return c}function t5(e,t,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(e.selection==null)return r;var o=ce.isElement(t)&&e.isVoid(t),i=ce.isElement(t)&&e.isInline(t),a=Jv.get(t);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=(function(x){var O=[];O.push(x);for(var F=0;O.length>0;){var R=O.pop();if(R==null||++F>1e4)break;var H=R.nodeName;if(R.nodeType===1){var M=H.toLowerCase();if(VY.includes(M)||M==="iframe"||M==="video")return R;var K=R.children||[],U=K.length;if(U)for(var W=U-1;W>=0;W--)O.push(K[W])}}return null})(a);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var y=Q8(e);if(y==null)return r;var v,g=y.top,m=y.left,h=y.width,b=y.height,w={},D=s-g,C=l-m;if(n==="bar")return w.left=C+"px",D>40?w.bottom=b-D+5+"px":w.top=D+c+5+"px",w;if(n==="modal")return o?i?C>(h-f)/2?w.right=h-C+5+"px":w.left=C+f+5+"px":w.left="20px":w.left=C+"px",o?((v=D)<0&&(v=0),w.top=v+"px"):D>(b-c)/2?w.bottom=b-D+5+"px":((v=D+c)<0&&(v=0),w.top=v+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function wE(e,t){kr(function(){var n=Q8(e);if(n!=null){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,y=c-i,v=t.attr("style");if(v.indexOf("top")>=0&&(r=p+d-u)>0){var g=t.css("top"),m=parseInt(g.toString())-r;m<0&&(m=0),t.css("top",m+"px")}if(v.indexOf("bottom")>=0&&l<0){var h=t.css("bottom"),b=parseInt(h.toString())-Math.abs(l);t.css("bottom",b+"px")}if(v.indexOf("left")>=0&&(r=y+f-a)>0){var w=t.css("left"),D=parseInt(w.toString())-r;D<0&&(D=0),t.css("left",D+"px")}if(v.indexOf("right")>=0&&c<0){var C=t.css("right"),x=parseInt(C.toString())-Math.abs(c);t.css("right",x+"px")}}})}var nQ=Ny("slice"),rQ=Ct("species"),sb=Z.Array,oQ=Math.max;Dt({target:"Array",proto:!0,forced:!nQ},{slice:function(e,t){var n,r,o,i=Ba(this),a=as(i),u=jl(e,a),s=jl(t===void 0?a:t,a);if(Wv(i)&&(n=i.constructor,(jy(n)&&(n===sb||Wv(n.prototype))||ft(n)&&(n=n[rQ])===null)&&(n=void 0),n===sb||n===void 0))return QP(i,u,s);for(r=new(n===void 0?sb:n)(oQ(s-u,0)),o=0;u<s;u++,o++)u in i&&Pd(r,o,i[u]);return r.length=o,r}});var iQ=jp.f,d9=pe("".startsWith),aQ=pe("".slice),uQ=Math.min,bN=k8("startsWith"),sQ=!bN&&!!(function(){var e=iQ(String.prototype,"startsWith");return e&&!e.writable})();Dt({target:"String",proto:!0,forced:!sQ&&!bN},{startsWith:function(e){var t=it(Br(this));B8(e);var n=ec(uQ(arguments.length>1?arguments[1]:void 0,t.length)),r=it(e);return d9?d9(t,r,n):aQ(t,n,n+r.length)===r}});var As=Object.assign,p9=Object.defineProperty,lQ=pe([].concat),h9=!As||Ye(function(){if(rn&&As({b:1},As(p9({},"a",{enumerable:!0,get:function(){p9(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(o){t[o]=o}),As({},e)[n]!=7||sl(As({},t)).join("")!=r})?function(e,t){for(var n=Oa(e),r=arguments.length,o=1,i=kP.f,a=AP.f;r>o;)for(var u,s=_y(arguments[o++]),l=i?lQ(sl(s),i(s)):sl(s),c=l.length,f=0;c>f;)u=l[f++],rn&&!qe(a,s,u)||(n[u]=s[u]);return n}:As;Dt({target:"Object",stat:!0,forced:Object.assign!==h9},{assign:h9});var cQ=["props","attrs","style","dataset","on","hook"];function wN(e){var t=e.data,n=t===void 0?{}:t,r=e.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(i){var a,u,s=n[i];if(i!=="key"){if(!cQ.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=Pq(l),(function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)})(e,((a={})[l]=s,a)),void delete n[i]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.props,f)})(e,(u={},u[i]=s,u)),delete n[i]}}else e.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&wN(i)})}var EE=[],EN={};function fQ(e,t,n){return be(n.isInline(e)?"span":"div",null,t)}function g9(e,t){return t===void 0&&(t=!1),be("span",{"data-slate-string":!0},t?e+`
|
|
59
|
+
`:e)}function lb(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),be("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?be("br",null):null)}function DE(e,t,n,r){return Rd.set(e,t),Ll.set(e,n),ce.isElement(e)?(function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=E.isVoid(i,o),c=pN(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},d=o.type,p=o.children,y=p===void 0?[]:p,v=(function(D){return EN[D]||fQ})(d);a=l?null:y.map(function(D,C){return DE(D,C,o,i)});var g=v(o,a,i);if(l){f["data-slate-void"]=!0;var m=s?"span":"div",h=He(J.texts(o),1),b=He(h[0],1)[0],w=be(m,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},DE(b,0,o,i));g=be(m,{style:{position:"relative"}},g,w),Rd.set(b,0),Ll.set(b,o)}return g.data==null&&(g.data={}),Object.assign(g.data,f),l||s||(g=(function(D,C){var x=C;return EE.forEach(function(O){x=O(D,C)}),x})(o,g)),kr(function(){var D=fE(c);D!=null&&(cE.set(u,D),Jv.set(o,D),Yv.set(D,o))}),g})(e,r):(function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=A.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=A.findPath(a,o),c=s([o,l]),f=oe.decorations(o,c),d=f.map(function(v,g){var m=(function(h,b,w,D,C){b===void 0&&(b=!1);var x=h.text,O=A.findPath(C,w),F=P.parent(O);if(E.isEditor(D))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return C.isVoid(D)?lb(J.string(D).length):x!==""||D.children[D.children.length-1]!==w||C.isInline(D)||E.string(C,F)!==""?x===""?lb():b&&x.slice(-1)===`
|
|
60
|
+
`?g9(x,!0):g9(x):lb(0,!0)})(v,g===f.length-1,o,i,a);return m=(function(h,b){var w=b;return EE.forEach(function(D){w=D(h,w)}),w})(v,m),be("span",{"data-slate-leaf":!0},m)}),p=(function(v){return"w-e-text-"+v})(u.id),y=be("span",{"data-slate-node":"text",id:p,key:u.id},d);return kr(function(){var v=fE(p);v!=null&&(cE.set(u,v),Jv.set(o,v),Yv.set(v,o))}),y})(e,n,r)}function dQ(e,t){var n,r=e.$scroll,o=(function(v){return"w-e-textarea-"+v})(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=(function(v,g){return g===void 0&&(g=!1),_l("div#"+v,{props:{contentEditable:!g}})})(o,a),l=t.children||[];s.children=l.map(function(v,g){var m=DE(v,g,t,t);return wN(m),m});var c=O7.get(e);if(c==null&&(c=!0),c){var f=(function(v,g){return k(`<div
|
|
61
|
+
id="`+v+`"
|
|
62
|
+
data-slate-editor
|
|
63
|
+
data-slate-node="value"
|
|
64
|
+
suppressContentEditableWarning
|
|
65
|
+
role="textarea"
|
|
66
|
+
spellCheck="true"
|
|
67
|
+
autoCorrect="true"
|
|
68
|
+
autoCapitalize="true"
|
|
69
|
+
></div>`)})(o);r.append(f),e.$textArea=f,n=f[0],(p=nq([oq,sq,cq,iq,uq,rq]))(n,s),O7.set(e,!1),B7.set(e,p)}else{var d=k7.get(e),p=B7.get(e);if(d==null||p==null)return;n=d.elm,p(d,s)}if(n!=null||(n=fE(o))!=null){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var y=U8(n);y&&GP.set(t,y)}V8.set(t,n),Jv.set(t,n),Yv.set(n,t),k7.set(e,s)}}function v9(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function y9(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function cb(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return y9(n.overflowY,t)||y9(n.overflowX,t)||(function(r){var o=(function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1}function $h(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function m9(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s=typeof a=="function"?a:function(De){return De!==a};if(!v9(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;v9(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&cb(f)&&!cb(document.documentElement)||f!=null&&cb(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),m=g.height,h=g.width,b=g.top,w=g.right,D=g.bottom,C=g.left,x=o==="start"||o==="nearest"?b:o==="end"?D:b+m/2,O=i==="center"?C+h/2:i==="end"?w:C,F=[],R=0;R<c.length;R++){var H=c[R],M=H.getBoundingClientRect(),K=M.height,U=M.width,W=M.top,q=M.right,te=M.bottom,se=M.left;if(r==="if-needed"&&b>=0&&C>=0&&D<=p&&w<=d&&b>=W&&D<=te&&C>=se&&w<=q)return F;var ue=getComputedStyle(H),ae=parseInt(ue.borderLeftWidth,10),B=parseInt(ue.borderTopWidth,10),S=parseInt(ue.borderRightWidth,10),j=parseInt(ue.borderBottomWidth,10),$=0,X=0,V="offsetWidth"in H?H.offsetWidth-H.clientWidth-ae-S:0,ie="offsetHeight"in H?H.offsetHeight-H.clientHeight-B-j:0;if(l===H)$=o==="start"?x:o==="end"?x-p:o==="nearest"?$h(v,v+p,p,B,j,v+x,v+x+m,m):x-p/2,X=i==="start"?O:i==="center"?O-d/2:i==="end"?O-d:$h(y,y+d,d,ae,S,y+O,y+O+h,h),$=Math.max(0,$+v),X=Math.max(0,X+y);else{$=o==="start"?x-W-B:o==="end"?x-te+j+ie:o==="nearest"?$h(W,te,K,B,j+ie,x,x+m,m):x-(W+K/2)+ie/2,X=i==="start"?O-se-ae:i==="center"?O-(se+U/2)+V/2:i==="end"?O-q+S+V:$h(se,q,U,ae,S+V,O,O+h,h);var ge=H.scrollLeft,ve=H.scrollTop;x+=ve-($=Math.max(0,Math.min(ve+$,H.scrollHeight-K+ie))),O+=ge-(X=Math.max(0,Math.min(ge+X,H.scrollWidth-U+V)))}F.push({el:H,top:$,left:X})}return F}function b9(e){return e===Object(e)&&Object.keys(e).length!==0}function vr(e,t){return Wu(t)&&A.hasDOMNode(e,t,{editable:!0})}function w9(e,t){if(e.getConfig().readOnly)return!1;var n=Ys(e,t)&&A.toSlateNode(e,t);return E.isVoid(e,n)}function Ys(e,t){return Wu(t)&&A.hasDOMNode(e,t)}function DN(e,t,n){n===void 0&&(n=!1);var r=t.selection,o=t.getConfig(),i=A.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a=i.type!=="None";if(r||a){var u=V8.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=A.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&L.equals(l,r)){var c=!0;if(L.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,y=void 0;(y=p[d])&&y.matches("table")&&(c=!1),(y=p[d-1])&&y.matches("table")&&(c=!1)}}if(c)return}}if(!r||A.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&A.toDOMRange(t,r);if(v){L.isBackward(r)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var g=v.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var m=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(b9(b)&&typeof b.behavior=="function")return b.behavior(w?[]:m9(h,b));if(!w){var D=(function(C){return C===!1?{block:"end",inline:"nearest"}:b9(C)?C:{block:"start",inline:"nearest"}})(b);(function(C,x){x===void 0&&(x="auto");var O="scrollBehavior"in document.body.style;C.forEach(function(F){var R=F.el,H=F.top,M=F.left;R.scroll&&O?R.scroll({top:H,left:M,behavior:x}):(R.scrollTop=H,R.scrollLeft=M)})})(m9(h,D),D.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:m,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){v&&nd&&u.focus(),e.isUpdatingSelection=!1})}else t.selection=A.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var fb=new WeakMap,E9=new WeakMap,pQ={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"},hQ={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"},gQ={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},yt=function(e){var t=pQ[e],n=hQ[e],r=gQ[e],o=t&&c1(t),i=n&&c1(n),a=r&&c1(r);return function(u){return!(!o||!o(u))||!!(dE&&i&&i(u))||!(dE||!a||!a(u))}},wt={isBold:yt("bold"),isCompose:yt("compose"),isMoveBackward:yt("moveBackward"),isMoveForward:yt("moveForward"),isDeleteBackward:yt("deleteBackward"),isDeleteForward:yt("deleteForward"),isDeleteLineBackward:yt("deleteLineBackward"),isDeleteLineForward:yt("deleteLineForward"),isDeleteWordBackward:yt("deleteWordBackward"),isDeleteWordForward:yt("deleteWordForward"),isExtendBackward:yt("extendBackward"),isExtendForward:yt("extendForward"),isExtendLineBackward:yt("extendLineBackward"),isExtendLineForward:yt("extendLineForward"),isItalic:yt("italic"),isMoveLineBackward:yt("moveLineBackward"),isMoveLineForward:yt("moveLineForward"),isMoveWordBackward:yt("moveWordBackward"),isMoveWordForward:yt("moveWordForward"),isRedo:yt("redo"),isSplitBlock:yt("splitBlock"),isTransposeCharacter:yt("transposeCharacter"),isUndo:yt("undo"),isTab:yt("tab"),isSelectAll:yt("selectAll")};function Ht(e){e.preventDefault()}var vQ={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(Uc&&!o&&vr(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=He(r.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&L.equals(i,l)||N.select(n,l)}}if(i&&L.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";E.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":E.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":E.deleteForward(n);break;case"deleteContentBackward":E.deleteBackward(n);break;case"deleteEntireSoftLine":E.deleteBackward(n,{unit:"line"}),E.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":E.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":E.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":E.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":E.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":E.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":E.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":E.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!G1.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&E.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&vr(n,r.target)){var a=A.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===A.toDOMNode(n,n)||Mr(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&Wu(u)&&A.hasDOMNode(n,u)){var s=A.toSlateNode(n,u);if(ce.isElement(s)&&!n.isVoid(s))return}if(Vc){var l=a.getSelection();l==null||l.removeAllRanges()}Eu.delete(n)}}}},focus:function(e,t,n){var r=A.toDOMNode(n,n),o=A.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,nd&&e.target!==r?r.focus():Eu.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&Ys(n,e.target)&&Wu(e.target)){var r=A.toSlateNode(n,e.target),o=A.findPath(n,r);if(E.hasPath(n,o)&&J.get(n,o)===r){var i=E.start(n,o),a=E.end(n,o),u=E.void(n,{at:i}),s=E.void(n,{at:a});if(u&&s&&P.equals(u[1],s[1])){var l=E.range(n,i);N.select(n,l)}}}},compositionstart:function(e,t,n){if(vr(n,e.target)){var r=n.selection;if(r&&L.isExpanded(r)&&(E.deleteFragment(n),Promise.resolve().then(function(){DN(t,n,!0)})),r&&L.isCollapsed(r)){var o=A.toDOMRange(n,r).startContainer,i=o.textContent||"";fb.set(n,i),E9.set(n,o)}t.isComposing=!0,(function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)})(t,n)}},compositionend:function(e,t,n){var r=e;if(vr(n,r.target)){t.isComposing=!1;var o=n.selection;if(o!=null){(pE||nd)&&A.cleanExposedTexNodeInSelectionBlock(n);for(var i=L.isBackward(o)?o.focus:o.anchor,a=He(E.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=He(E.node(n,i.path.slice(0,u+1)),1)[0];if(ce.isElement(s)&&((Vc||nd)&&s.type==="link"||s.type==="code")){A.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=A.getLeftLengthOfMaxLength(n);c<l.length?(A.toDOMRange(n,o).startContainer.textContent=fb.get(n)||"",c>0&&E.insertText(n,l.slice(0,c)),t.changeViewState()):E.insertText(n,l)}else E.insertText(n,l);Vc||setTimeout(function(){var f=n.selection;if(f!=null){var d=E9.get(n);d!=null&&A.toDOMRange(n,f).startContainer!==d&&(d.textContent=fb.get(n)||"")}})}}}},compositionupdate:function(e,t,n){vr(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&vr(n,r.target)){if((function(a,u){var s=My.get(a),l=s&&s.getMenus(),c=Zv.get(a),f=c&&c.getMenus(),d=br(br({},l),f);for(var p in d){var y=d[p],v=y.hotkey;if(v&&Lq(v,u)&&!y.isDisabled(a)){var g=y.getValue(a);y.exec(a,g)}}})(n,r),wt.isTab(r))return Ht(r),void n.handleTab();if(wt.isRedo(r))return Ht(r),void(typeof n.redo=="function"&&n.redo());if(wt.isUndo(r))return Ht(r),void(typeof n.undo=="function"&&n.undo());if(wt.isMoveLineBackward(r))return Ht(r),void N.move(n,{unit:"line",reverse:!0});if(wt.isMoveLineForward(r))return Ht(r),void N.move(n,{unit:"line"});if(wt.isExtendLineBackward(r))return Ht(r),void N.move(n,{unit:"line",edge:"focus",reverse:!0});if(wt.isExtendLineForward(r))return Ht(r),void N.move(n,{unit:"line",edge:"focus"});if(wt.isMoveBackward(r))return Ht(r),void(o&&L.isCollapsed(o)?N.move(n,{reverse:!0}):N.collapse(n,{edge:"start"}));if(wt.isMoveForward(r))return Ht(r),void(o&&L.isCollapsed(o)?N.move(n):N.collapse(n,{edge:"end"}));if(wt.isMoveWordBackward(r))return Ht(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word",reverse:!0});if(wt.isMoveWordForward(r))return Ht(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word"});if(wt.isSelectAll(r))return Ht(r),void n.selectAll();if(Uc){if((pE||Vc)&&o&&(wt.isDeleteBackward(r)||wt.isDeleteForward(r))&&L.isCollapsed(o)){var i=J.parent(n,o.anchor.path);if(ce.isElement(i)&&E.isVoid(n,i)&&E.isInline(n,i))return r.preventDefault(),void N.delete(n,{unit:"block"})}}else{if(wt.isBold(r)||wt.isItalic(r)||wt.isTransposeCharacter(r))return void Ht(r);if(wt.isSplitBlock(r))return Ht(r),void E.insertBreak(n);if(wt.isDeleteBackward(r))return Ht(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n));if(wt.isDeleteForward(r))return Ht(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n));if(wt.isDeleteLineBackward(r))return Ht(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"line"}));if(wt.isDeleteLineForward(r))return Ht(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"line"}));if(wt.isDeleteWordBackward(r))return Ht(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"word"}));if(wt.isDeleteWordForward(r))return Ht(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Uc&&!n.getConfig().readOnly&&vr(n,e.target)){e.preventDefault();var r=e.key;E.insertText(n,r)}},copy:function(e,t,n){var r=e;if(vr(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&vr(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(L.isExpanded(o))E.deleteFragment(n);else{var a=J.parent(n,o.anchor.path);E.isVoid(n,a)&&N.delete(n)}}},paste:function(e,t,n){G1.set(n,!0);var r=e;if(!n.getConfig().readOnly&&vr(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void G1.set(n,!1);if(!Uc||(function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1})(r)){r.preventDefault();var i=r.clipboardData;i!=null&&n.insertData(i)}}},dragover:function(e,t,n){if(Ys(n,e.target)){var r=A.toSlateNode(n,e.target);E.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(Ys(n,r.target)&&!n.getConfig().readOnly){var o=A.toSlateNode(n,r.target),i=A.findPath(n,o);if(E.isVoid(n,o)||E.void(n,{at:i,voids:!0})){var a=E.range(n,i);N.select(n,a)}var u=r.dataTransfer;u!=null&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&Ys(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&Ys(n,r.target)&&o!=null&&!(Uc&&Vc&&o.files.length>0)){r.preventDefault();var i=n.selection,a=A.findEventRange(n,r);N.select(n,a),t.isDraggingInternally&&(i&&N.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},yQ=1,mQ=(function(){function e(t){var n=this;this.id=yQ++,this.$textArea=null,this.$progressBar=k('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=k('<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=$u(function(){var a=n.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var d=A.findDocumentOrShadowRoot(s),p=d.activeElement,y=A.toDOMNode(s,s),v=d.getSelection();if(p===y?(u.latestElement=p,Eu.set(s,!0)):Eu.delete(s),!v)return N.deselect(s);var g=v.anchorNode,m=v.focusNode,h=vr(s,g)||w9(s,g),b=vr(s,m)||w9(s,m);if(h&&b){var w=A.toSlateRange(s,v,{exactMatch:!1,suppressThrow:!1});N.select(s,w)}else N.deselect(s)}})(n,a)},100);var r=k(t);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=r;var o=k('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=k('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,kr(function(){var a=n.editorInstance,u=A.getWindow(a);u.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=uE.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(f8(vQ,function(i,a){n.on(a,function(u){i(u,t,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",$u(function(){o.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){t.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return i&&i(n)}):t.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),t.latestEditorSelection=n.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-A.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},e.prototype.changeProgress=function(t){var n=this.$progressBar;n.css("width",t+"%"),t>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},e.prototype.changeViewState=function(){var t=this,n=this.editorInstance;dQ(this,n),(function(r,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var s=k('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(s),r.$placeholder=s}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!u&&r.showPlaceholder&&((i=r.$placeholder)===null||i===void 0||i.hide(),r.showPlaceholder=!1)}})(this,n),kr(function(){DN(t,n)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e})();function n5(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&&n5(t)}function r5(){return k('<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 xN(){return k('<div class="w-e-bar-divider"></div>')}function CN(e,t,n,r,o){if(o===void 0&&(o=!1),t){if(r){var i=dE?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+`
|
|
70
|
+
`+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}M8("match",function(e,t,n){return[function(r){var o=Br(this),i=r==null?void 0:Vu(r,e);return i?qe(i,r,o):new RegExp(r)[e](it(o))},function(r){var o=Lt(this),i=it(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return Id(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Id(o,i))!==null;){var f=it(s[0]);l[c]=f,f===""&&(o.lastIndex=z8(i,ec(o.lastIndex),u)),c++}return c===0?null:l}]});var o5=(function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=k('<div class="w-e-bar-item"></div>'),this.$button=k('<button type="button"></button>'),this.disabled=!1,this.menu=n;var i=n.tag,a=n.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=n.title,s=n.hotkey,l=s===void 0?"":s,c=n.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var p=k(f);n5(p),d.append(p)}else d.text(u);CN(d,f,u,l,r),r&&f&&d.append(k('<span class="title">'+u+"</span>")),a&&d.css("width",a+"px"),d.attr("data-menu-key",t),this.$elem.append(d),kr(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),er(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=er(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=er(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=er(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e})(),bQ=(function(e){function t(n,r,o){return o===void 0&&(o=!1),e.call(this,n,r,o)||this}return nc(t,e),t.prototype.onButtonClick=function(){},t})(o5),i5=(function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=lE.get(t);n==null&&(n=new Set,lE.set(t,n)),n.add(this),Mg.set(this,t)},e.prototype.renderContent=function(t){var n=this.$elem;n.empty(),n.append(t);var r=this.genSelfElem();r&&n.append(r)},e.prototype.appendTo=function(t){var n=this.$elem;t.append(n)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=Mg.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=Mg.get(this);t&&t.emit("modalOrPanelHide")}},e})(),wQ=(function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=k('<div class="w-e-drop-panel"></div>'),r}return nc(t,e),t.prototype.genSelfElem=function(){return null},t})(i5),EQ=(function(e){function t(n,r,o){o===void 0&&(o=!1);var i=e.call(this,n,r,o)||this;if(i.dropPanel=null,i.menu=r,r.showDropPanel){var a=r5();i.$button.append(a)}return i}return nc(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=er(this);if(this.dropPanel==null){var o=new wQ(r),i=n.getPanelContentElem(r);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=n.getPanelContentElem(r),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},t})(o5),DQ=(function(e){function t(n,r){r===void 0&&(r=0);var o=e.call(this,n)||this;o.type="modal",o.$elem=k('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),n.restoreSelection())}),o}return nc(t,e),t.prototype.genSelfElem=function(){var n=this,r=k('<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>'),o=Mg.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},t.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},t})(i5);function nr(e,t,n){var r=k('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=k('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function rc(e,t){var n=k('<div class="button-container"></div>'),r=k('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var xQ=(function(e){function t(n,r,o){o===void 0&&(o=!1);var i=e.call(this,n,r,o)||this;return i.$body=k("body"),i.modal=null,i.menu=r,i}return nc(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=er(this),r=this.menu.getModalPositionNode(n);return ce.isElement(r)?t5(n,r,"modal"):e5(n)},t.prototype.handleModal=function(){var n=er(this),r=this.menu;if(this.modal==null){var o=new DQ(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},t.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=er(this),i=this.menu;if(i.getModalContentElem!=null){var a=A.getTextarea(o),u=A.getToolbar(o),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(o);if(n.renderContent(l),s)n.setStyle({left:"0",right:"0"});else{var c=this.getPosition();n.setStyle(c)}r&&(s?n.appendTo(this.$body):n.appendTo(a.$textAreaContainer)),n.show(),s||wE(o,n.$elem),setTimeout(function(){o.blur()})}},t})(o5),CQ=(function(e){function t(n,r){var o=e.call(this,n)||this;return o.type="selectList",o.$elem=k('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return nc(t,e),t.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=k("<ul></ul>");n.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=k('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=k('<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>');c.append(f),c.addClass("selected")}c.append(k('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)}),r.append(o)},t.prototype.genSelfElem=function(){return null},t})(i5),SQ=(function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=k('<div class="w-e-bar-item"></div>'),this.$button=k('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=n.tag,a=n.title,u=n.width,s=n.iconSvg,l=s===void 0?"":s,c=n.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var d=this.$button;u&&d.css("width",u+"px"),d.attr("data-menu-key",t),CN(d,l,a,f,r),this.$elem.append(d),this.menu=n,kr(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),er(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,n=er(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new CQ(n,r.selectPanelWidth);var o=this.selectList,i=r.getOptions(n);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=k(u).attr("data-value");t.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},e.prototype.onChange=function(t){var n=er(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=er(this),n=this.menu,r=n.getValue(t),o=(function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var d=u[f];if(d.value===s){c=d.text;break}}return c})(n.getOptions(t),r.toString()),i=this.$button,a=r5();i.empty(),i.text(o),i.append(a)},e.prototype.setDisabled=function(){var t=er(this),n=this.menu.isDisabled(t),r=this.$button;(t.selection==null||t.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e})(),D9=(function(){function e(t){this.$elem=k('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=k('<div class="w-e-bar-item-menus-container"></div>'),this.$button=k('<button type="button"></button>');var n=t.key,r=t.iconSvg,o=t.title,i=this.$elem,a=this.$button;if(r){var u=k(r);n5(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=r5();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(t){var n=t.$elem;this.$container.append(n)},e.prototype.observe=function(t){var n=this.$container;t.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=this,n=this.$container,r=this.$button,o=new MutationObserver(function(){var i=n.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){k(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),t.observe(o)}});return o},e})(),x9=new WeakMap;function er(e){var t=H8.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function SN(e,t,n){n===void 0&&(n=!1);var r=x9.get(t);if(r)return r;var o=t.tag;if(o==="button"){var i=t.showDropPanel,a=t.showModal;r=i?new EQ(e,t,n):a?new xQ(e,t,n):new bQ(e,t,n)}if(o==="select"&&(r=new SQ(e,t,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return x9.set(t,r),r}function AQ(e,t){var n=e.selection;return n!=null&&!L.isCollapsed(n)&&!A.getSelectedElems(e).some(function(r){if(e.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!oe.isText(t)}var OQ=(function(){function e(){var t=this;this.$elem=k('<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=tP(function(){var n=t.isShow,r=t.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,u=a===void 0?[]:a;i!=null&&t.changeItemsState(),i&&ce.isElement(i)&&n&&t.isSamePath(i,t.prevSelectedNode)||(t.hideAndClean(),i!=null&&(t.registerItems(u),t.setPosition(i),t.show()),t.prevSelectedNode=i)},200),kr(function(){var n=t.getEditorInstance(),r=t.$elem;r.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),A.getTextarea(n).$textAreaContainer.append(r),n.on("change",t.changeHoverbarState);var o=t.hideAndClean.bind(t);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-t[0].getBoundingClientRect().bottom<360&&(n=!0),n?t.addClass("w-e-bar-bottom"):t.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 t=this;kr(function(){t.hoverbarItems.forEach(function(n){n.changeMenuState()})})},e.prototype.registerItems=function(t){var n=this,r=this.$elem;t.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var i=xN();r.append(i)}})},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,o=r[t];if(o==null){var i=Md[t];if(i==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");o=i(),r[t]=o}var a=SN(t,o);this.hoverbarItems.push(a),H8.set(a,n),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),ce.isElement(t)){var o=t5(n,t,"bar");return r.css(o),void wE(n,r)}if(oe.isText(t))return o=e5(n),r.css(o),void wE(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],i=function(u){var s=n[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,d=l||function(v,g){return A.checkNodeType(g,u)},p=He(E.nodes(t,{match:function(v){return d(t,v)},universal:!0}),1),y=p[0];if(y!=null)return r=y[0],o=f,"break"};for(var a in n)if(i(a)==="break")break;return r==null||o.length===0?null:{node:r,menuKeys:o}},e.prototype.getEditorInstance=function(){var t=sE.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,n=t===void 0?{}:t,r=n.text;return r&&r.match==null&&(r.match=AQ),n},e.prototype.isSamePath=function(t,n){if(t==null||n==null)return!1;var r=A.findPath(null,t),o=A.findPath(null,n);return P.equals(r,o)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e})();function AN(e,t,n,r){if(Rd.set(e,t),Ll.set(e,n),ce.isElement(e)){var o=e.children;if((o===void 0?[]:o).forEach(function(u,s){return AN(u,s,e,r)}),E.isVoid(r,e)){var i=He(J.texts(e),1),a=He(i[0],1)[0];Rd.set(a,0),Ll.set(a,e)}}}function BQ(e){var t=e.selector,n=t===void 0?"":t,r=e.config,o=r===void 0?{}:r,i=e.content,a=e.html,u=e.plugins,s=u===void 0?[]:u,l=(m=>{var h=m,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:D}=w;if(D.length>0){var C=D[D.length-1];tl.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var x of C)h.apply(x)})}),w.redos.pop(),w.undos.push(C)}},h.undo=()=>{var{history:w}=h,{undos:D}=w;if(D.length>0){var C=D[D.length-1];tl.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var x=C.map(Vi.inverse).reverse();for(var O of x)h.apply(O)})}),w.redos.push(C),w.undos.pop()}},h.apply=w=>{var{operations:D,history:C}=h,{undos:x}=C,O=x[x.length-1],F=O&&O[O.length-1],R=((U,W)=>!(!W||U.type!=="set_selection"||W.type!=="set_selection"))(w,F),H=tl.isSaving(h),M=tl.isMerging(h);if(H==null&&(H=((U,W)=>U.type!=="set_selection"||U.properties!=null&&U.newProperties!=null)(w)),H){if(M==null&&(M=O!=null&&(D.length!==0||((U,W)=>U.type==="set_selection"||!(!W||U.type!=="insert_text"||W.type!=="insert_text"||U.offset!==W.offset+W.text.length||!P.equals(U.path,W.path))||!(!W||U.type!=="remove_text"||W.type!=="remove_text"||U.offset+U.text.length!==W.offset||!P.equals(U.path,W.path)))(w,F)||R)),O&&M)R&&O.pop(),O.push(w);else{var K=[w];x.push(K)}for(;x.length>100;)x.shift();(U=>U.type!=="set_selection")(w)&&(C.redos=[])}b(w)},h})((function(m){var h=m,b=h.insertText,w=h.insertNode,D=h.insertFragment,C=h.dangerouslyInsertHtml;return h.insertText=function(x){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||(O<x.length?b(x.slice(0,O)):b(x))}else b(x)},h.insertNode=function(x){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||O<J.string(x).length||w(x)}else w(x)},h.insertFragment=function(x){if(h.getConfig().maxLength)if(x.length!==1)x.forEach(function(F){h.insertNode(F)});else{var O=x[0];if(A.getLeftLengthOfMaxLength(h)<J.string(O).length)return;D(x)}else D(x)},h.dangerouslyInsertHtml=function(x,O){if(x===void 0&&(x=""),O===void 0&&(O=!1),x)if(h.getConfig().maxLength){var F=A.getLeftLengthOfMaxLength(h);if(!(F<=0)){var R=document.createElement("div");R.innerHTML=x;var H=Array.from(R.childNodes).reduce(function(M,K){var U=K.nodeType,W=K.nodeName;return K?U===ho.TEXT_NODE?M+(K.textContent||""):U===ho.ELEMENT_NODE?a9.has(W.toLowerCase())?M:M+(K.textContent||""):M:M},"");F<H.length||C(x,O)}}else C(x,O)},h})((function(m){var h=m;return h.on=function(b,w){var D=zh(h);if(D.on(b,w),b==="destroyed"&&f9(h,w),b!=="destroyed"){var C=function(){return D.off(b,w)};D.on("destroyed",C),f9(h,C)}},h.once=function(b,w){zh(h).once(b,w)},h.off=function(b,w){zh(h).off(b,w)},h.emit=function(b){for(var w=[],D=1;D<arguments.length;D++)w[D-1]=arguments[D];var C=zh(h);C.emit.apply(C,oE([b],He(w))),b==="destroyed"&&(eQ(h).forEach(function(x){return C.off("destroyed",x)}),tQ(h))},h})((function(m){var h=m;return h.select=function(b){N.select(h,b)},h.deselect=function(){var b=h.selection,w=A.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&N.deselect(m)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||N.move(m,{distance:b,unit:"character",reverse:w}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=W1.get(h);b!=null&&(h.focus(),N.select(h,b))},h.getSelectionPosition=function(){return e5(h)},h.getNodePosition=function(b){return t5(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=He(L.edges(b),2),D=w[0],C=w[1],x=He(E.edges(h,[]),2),O=x[0],F=x[1];return!(!ke.equals(D,O)||!ke.equals(C,F))},h.selectAll=function(){var b=E.start(h,[]),w=E.end(h,[]);N.select(h,{anchor:b,focus:w})},h})((function(m){var h=m,b=h.onChange,w=h.insertText,D=h.apply,C=h.deleteBackward;return h.insertText=function(x){h.getConfig().readOnly||w(x)},h.apply=function(x){var O,F,R,H,M,K,U,W,q=[];switch(x.type){case"insert_text":case"remove_text":case"set_node":try{for(var te=wr(E.levels(h,{at:x.path})),se=te.next();!se.done;se=te.next()){var ue=He(se.value,2),ae=ue[0],B=ue[1],S=A.findKey(h,ae);q.push([B,S])}}catch(Ie){O={error:Ie}}finally{try{se&&!se.done&&(F=te.return)&&F.call(te)}finally{if(O)throw O.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var j=wr(E.levels(h,{at:P.parent(x.path)})),$=j.next();!$.done;$=j.next()){var X=He($.value,2);ae=X[0],B=X[1],S=A.findKey(h,ae),q.push([B,S])}}catch(Ie){R={error:Ie}}finally{try{$&&!$.done&&(H=j.return)&&H.call(j)}finally{if(R)throw R.error}}break;case"move_node":try{for(var V=wr(E.levels(h,{at:P.common(P.parent(x.path),P.parent(x.newPath))})),ie=V.next();!ie.done;ie=V.next()){var ge=He(ie.value,2);ae=ge[0],B=ge[1],S=A.findKey(h,ae),q.push([B,S])}}catch(Ie){M={error:Ie}}finally{try{ie&&!ie.done&&(K=V.return)&&K.call(V)}finally{if(M)throw M.error}}}D(x);try{for(var ve=wr(q),De=ve.next();!De.done;De=ve.next()){var G=He(De.value,2);B=G[0],S=G[1],ae=He(E.node(h,B),1)[0],zg.set(ae,S)}}catch(Ie){U={error:Ie}}finally{try{De&&!De.done&&(W=ve.return)&&W.call(ve)}finally{if(U)throw U.error}}},h.deleteBackward=function(x){if(x!=="line")return C(x);if(m.selection&&L.isCollapsed(m.selection)){var O=E.above(m,{match:function(M){return E.isBlock(m,M)},at:m.selection});if(O){var F=He(O,2)[1],R=E.range(m,F,m.selection.anchor),H=(function(M,K){var U=E.range(M,L.end(K)),W=Array.from(E.positions(M,{at:K})),q=0,te=W.length,se=Math.floor(te/2);if(Y7(M,E.range(M,W[q]),U))return E.range(M,W[q],U);if(W.length<2)return E.range(M,W[W.length-1],U);for(;se!==W.length&&se!==q;)Y7(M,E.range(M,W[se]),U)?te=se:q=se,se=Math.floor((q+te)/2);return E.range(M,W[te],U)})(h,R);L.isCollapsed(H)||N.delete(m,{at:H})}}},h.onChange=function(){var x=h.selection;x!=null&&W1.set(h,x),h.emit("change"),b()},h.handleTab=function(){h.insertText(" ")},h.getHtml=function(){var x=h.children;return(x===void 0?[]:x).map(function(O){return dN(O,h)}).join("")},h.getText=function(){var x=h.children;return(x===void 0?[]:x).map(function(O){return J.string(O)}).join(`
|
|
71
|
+
`)},h.getSelectionText=function(){var x=h.selection;return x==null?"":E.string(m,x)},h.getElemsByType=function(x,O){var F,R;O===void 0&&(O=!1);var H=[],M=E.nodes(h,{at:[],universal:!0});try{for(var K=wr(M),U=K.next();!U.done;U=K.next()){var W=He(U.value,1)[0];if(ce.isElement(W)&&(O?W.type.indexOf(x)>=0:W.type===x)){var q=pN(A.findKey(h,W).id);H.push(br(br({},W),{id:q}))}}}catch(te){F={error:te}}finally{try{U&&!U.done&&(R=K.return)&&R.call(K)}finally{if(F)throw F.error}}return H},h.getElemsByTypePrefix=function(x){return h.getElemsByType(x,!0)},h.isEmpty=function(){var x=h.children,O=x===void 0?[]:x;if(O.length>1)return!1;var F=O[0];if(F==null)return!0;if(ce.isElement(F)&&F.type==="paragraph"){var R=F.children,H=R===void 0?[]:R;if(H.length>1)return!1;var M=H[0];if(M==null||oe.isText(M)&&M.text==="")return!0}return!1},h.clear=function(){N.delete(h,{at:{anchor:E.start(h,[]),focus:E.end(h,[])}}),h.children.length===0&&N.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(x){return A.getParentNode(h,x)},h.dangerouslyInsertHtml=function(x,O){if(x===void 0&&(x=""),O===void 0&&(O=!1),x){var F=document.createElement("div");F.innerHTML=x;var R=Array.from(F.childNodes);if(R=R.filter(function(U){var W=U.nodeType,q=U.nodeName;return W===ho.TEXT_NODE||W===ho.ELEMENT_NODE&&!a9.has(q.toLowerCase())}),R.length!==0){var H=h.selection;if(H!=null){var M=null;A.isSelectedEmptyParagraph(h)&&!O&&(M=[H.focus.path[0]]),F.setAttribute("hidden","true"),document.body.appendChild(F);var K=0;R.forEach(function(U){var W=U.nodeType,q=U.nodeName,te=U.textContent,se=te===void 0?"":te;if(W!==ho.TEXT_NODE)if(q!=="BR"){var ue=U,ae=!1;if(hN.includes(q.toLowerCase()))ae=!0;else for(var B in t0)if(ue.matches(B)){ae=!0;break}if(ae){var S=Y8(k(ue),h);return Array.isArray(S)?(S.forEach(function($){return u9(h,$)}),K++):(u9(h,S),K++),void(A.isSelectedVoidNode(h)&&h.move(1))}var j=window.getComputedStyle(ue).display;A.isSelectedEmptyParagraph(h)||j.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(ue.innerHTML,!0)}else h.insertText(`
|
|
72
|
+
`);else{if(!se||!se.trim())return;h.insertNode({text:se})}}),K&&M&&A.isEmptyPath(h,M)&&N.removeNodes(h,{at:M}),F.remove()}}}},h.setHtml=function(x){x===void 0&&(x="");var O=h.isDisabled(),F=h.isFocused(),R=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var H=r9(h,x);if(N.insertFragment(h,H),F||(h.deselect(),h.blur()),O&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(R))}catch{h.select(E.start(h,[]))}},h})((function(m){var h=m;return h.getAllMenuKeys=function(){var b=[];for(var w in Md)b.push(w);return b},h.getConfig=function(){var b=A7.get(h);if(b==null)throw new Error("Can not get editor config");return b},h.getMenuConfig=function(b){var w=h.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},h.alert=function(b,w){w===void 0&&(w="info");var D=h.getConfig().customAlert;D&&D(b,w)},h})((function(m){var h=$J(cW());return h.id="wangEditor-"+KY++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),Eu.set(h,!0),b){var w=E.end(h,[]);N.select(h,w)}else{var D=W1.get(h);D?N.select(h,D):N.select(h,E.start(h,[]))}},h.isFocused=function(){return!!Eu.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),N.deselect(h),Eu.set(h,!1)},h.updateView=function(){A.getTextarea(h).changeViewState();var b=A.getToolbar(h);b&&b.changeToolbarState();var w=A.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var b=A.getTextarea(h);b.destroy(),aE.delete(h),uE.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),My.delete(h),$8.delete(w));var D=A.getHoverbar(h);D&&(D.destroy(),Zv.delete(h),sE.delete(D)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(!h.getConfig().scroll){var w="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return w+=`
|
|
73
|
+
You has disabled editor scroll, please do this yourself`,void console.warn(w)}var D=k("#"+b);if(D.length!==0){var C=D[0];if(!A.hasDOMNode(h,C))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=`
|
|
74
|
+
通过 id '`+b+"' 找到的 element 不在 editor DOM 之内",void console.error(w,C);var x=A.getTextarea(h),O=x.$textAreaContainer,F=x.$scroll,R=D.offset().top,H=O.offset().top;F[0].scrollBy({top:R-H,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||A.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=lE.get(h);b!=null&&b.forEach(function(w){return w.hide()})},h.enable=function(){h.getConfig().readOnly=!1,h.updateView()},h.disable=function(){h.getConfig().readOnly=!0,h.updateView()},h.isDisabled=function(){return h.getConfig().readOnly},h.toDOMNode=function(b){return A.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,w=A.getToolbar(h);w&&(b=w.$box);var D=A.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==D[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
|
|
75
|
+
不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);D.addClass("w-e-full-screen-container");var C=D.css("z-index");D.attr("data-z-index",C.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var b=A.getTextarea(h).$box.parent();setTimeout(function(){b.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return A.getTextarea(h).$textAreaContainer[0]},h})()))))));if(n&&(function(m,h){return mN(m,"data-w-e-textarea",h)})(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=(function(m){m===void 0&&(m={});var h=nP(ZP),b={},w=m.MENU_CONF,D=w===void 0?{}:w;return f8(h,function(C,x){b[x]=br(br({},C),D[x]||{})}),delete m.MENU_CONF,br({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(C,x){window.alert(x+`:
|
|
76
|
+
`+C)}},m)})(o);A7.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(m){l=m(l)}),a!=null&&(l.children=r9(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),A.normalizeContent(l),n){var p=new mQ(n);aE.set(l,p),uE.set(p,l),p.changeViewState(),kr(function(){var m=p.$scroll;m!=null&&m.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
|
|
77
|
+
Textarea height < 300px . This may be cause modal and hoverbar position error`,m)});var y=void 0;Object.keys(d).length>0&&(y=new OQ,sE.set(y,l),Zv.set(l,y)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(m,h){return AN(m,h,l,l)});var v=c.onCreated,g=c.onDestroyed;return v&&l.on("created",function(){return v(l)}),g&&l.on("destroyed",function(){return g(l)}),kr(function(){return l.emit("created")}),l}var kQ=Ny("splice"),FQ=Z.TypeError,TQ=Math.max,_Q=Math.min;Dt({target:"Array",proto:!0,forced:!kQ},{splice:function(e,t){var n,r,o,i,a,u,s=Oa(this),l=as(s),c=jl(e,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=_Q(TQ(_p(t),0),l-c)),l+n-r>9007199254740991)throw FQ("Maximum allowed length exceeded");for(o=xP(s,r),i=0;i<r;i++)(a=c+i)in s&&Pd(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var jQ=(function(){function e(t,n){var r=this;this.$toolbar=k('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=tP(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var o=k(t);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),kr(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,n="",r=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=nP(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(y,v){f.splice(s.index+v,0,y)}));var d=f.filter(function(y){if(typeof y=="string"){if(c.includes(y))return!1}else if(c.includes(y.key))return!1;return!0}),p=d.length;d.forEach(function(y,v){if(y==="|"){if(v===0||v+1===p||n==="|")return;var g=xN();return r.append(g),void(n=y)}if(typeof y=="string")return t.registerSingleItem(y,t),void(n=y);t.registerGroup(y),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,o=(function(l){return new D9(l)})(t),i=t.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||n.registerSingleItem(l,o)}),r.append(o.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),o=n instanceof D9,i=this.menus,a=i[t];if(a==null){var u=Md[t];if(u==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=u(),i[t]=a}else console.warn("Duplicated toolbar menu key '"+t+`'
|
|
78
|
+
重复注册了菜单栏 menu '`+t+"'");var s=SN(t,a,o);this.toolbarItems.push(s),H8.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var t=$8.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e})(),PQ=Ql.EXISTS,NQ=Qr.f,ON=Function.prototype,IQ=pe(ON.toString),BN=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,LQ=pe(BN.exec);function kN(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,o=r===void 0?"":r,i=e.maxFileSize,a=i===void 0?10485760:i,u=e.maxNumberOfFiles,s=u===void 0?100:u,l=e.meta,c=l===void 0?{}:l,f=e.metaWithUrl,d=f!==void 0&&f,p=e.headers,y=p===void 0?{}:p,v=e.withCredentials,g=v!==void 0&&v,m=e.timeout,h=m===void 0?1e4:m,b=e.onBeforeUpload,w=b===void 0?function(K){return K}:b,D=e.onSuccess,C=D===void 0?function(K,U){}:D,x=e.onError,O=x===void 0?function(K,U,W){console.error(K.name+" upload error",U,W)}:x,F=e.onProgress,R=F===void 0?function(K){}:F;if(!n)throw new Error(`Cannot get upload server address
|
|
79
|
+
没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
|
|
80
|
+
没有配置 fieldName`);var H=n;d&&(H=(function(K,U){var W=He(K.split("#"),2),q=W[0],te=W[1],se=[];f8(U,function(ae,B){se.push(B+"="+ae)});var ue=se.join("&");return q=q.indexOf("?")>0?q+"&"+ue:q+"?"+ue,te?q+"#"+te:q})(H,c));var M=new $f({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(sX,{endpoint:H,headers:y,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:h});return M.on("upload-success",function(K,U){var W=U.body,q=W===void 0?{}:W;try{C(K,q)}catch(te){console.error("wangEditor upload file - onSuccess error",te)}M.removeFile(K.id)}),M.on("progress",function(K){K<1||R(K)}),M.on("upload-error",function(K,U,W){try{O(K,U,W)}catch(q){console.error("wangEditor upload file - onError error",q)}M.removeFile(K.id)}),M.on("restriction-failed",function(K,U){try{O(K,U)}catch(W){console.error("wangEditor upload file - onError error",W)}M.removeFile(K.id)}),M}function Ji(e){return Ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ji(e)}function RQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vt(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(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.forEach(function(o){RQ(e,o,n[o])})}return e}function li(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C9(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 ci(e,t,n){return t&&C9(e.prototype,t),n&&C9(e,n),e}function Gu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $d(e,t){if(t&&(Ji(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gu(e)}function Rl(e){return Rl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Rl(e)}function xE(e,t){return xE=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},xE(e,t)}function zy(e,t){if(typeof t!="function"&&t!==null)throw new 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&&xE(e,t)}rn&&!PQ&&NQ(ON,"name",{configurable:!0,get:function(){try{return LQ(BN,IQ(this))[1]}catch{return""}}});var MQ={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)}},Jo=new((function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};li(this,e),this.init(t,n)}return ci(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||MQ,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}},{key:"create",value:function(t){return new e(this.logger,Vt({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e})()),ya=(function(){function e(){li(this,e),this.observers={}}return ci(e,[{key:"on",value:function(t,n){var r=this;return t.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)}),this}},{key:"off",value:function(t,n){this.observers[t]&&(n?this.observers[t]=this.observers[t].filter(function(r){return r!==n}):delete this.observers[t])}},{key:"emit",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach(function(u){u.apply(void 0,r)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[t].concat(r))})}}}]),e})();function Xc(){var e,t,n=new Promise(function(r,o){e=r,t=o});return n.resolve=e,n.reject=t,n}function S9(e){return e==null?"":""+e}function zQ(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function a5(e,t,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function A9(e,t,n){var r=a5(e,t,Object);r.obj[r.k]=n}function r0(e,t){var n=a5(e,t),r=n.obj,o=n.k;if(r)return r[o]}function O9(e,t,n){var r=r0(e,n);return r!==void 0?r:r0(t,n)}function FN(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]):FN(e[r],t[r],n):e[r]=t[r]);return e}function Os(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var $Q={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function HQ(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return $Q[t]}):e}var $y=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function TN(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),o=e,i=0;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];s===void 0&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=r.slice(i+a).join(n);return l?TN(s,l,n):void 0}o=o[r[i]]}return o}}var VQ=(function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return li(this,t),r=$d(this,Rl(t).call(this)),$y&&ya.call(Gu(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return zy(t,ya),ci(t,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[n,r];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),n.indexOf(".")>-1&&(s=n.split("."));var l=r0(this.data,s);return l||!u||typeof o!="string"?l:TN(this.data&&this.data[n]&&this.data[n][r],o,a)}},{key:"addResource",value:function(n,r,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[n,r];o&&(s=s.concat(u?o.split(u):o)),n.indexOf(".")>-1&&(i=r,r=(s=n.split("."))[1]),this.addNamespaces(r),A9(this.data,s,i),a.silent||this.emit("added",n,r,o,i)}},{key:"addResources",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(n,r,a,o[a],{silent:!0});i.silent||this.emit("added",n,r,o)}},{key:"addResourceBundle",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[n,r];n.indexOf(".")>-1&&(i=o,o=r,r=(s=n.split("."))[1]),this.addNamespaces(r);var l=r0(this.data,s)||{};i?FN(l,o,a):l=Vt({},l,o),A9(this.data,s,l),u.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Vt({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),t})(),_N={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(a){i.processors[a]&&(t=i.processors[a].process(t,n,r,o))}),t}},B9={},k9=(function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return li(this,t),r=$d(this,Rl(t).call(this)),$y&&ya.call(Gu(r)),zQ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Gu(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Jo.create("translator"),r}return zy(t,ya),ci(t,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:a};var s=n.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),n=s.join(i)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,o){var i=this;if(Ji(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,u=this.extractFromKey(n[n.length-1],r),s=u.key,l=u.namespaces,c=l[l.length-1],f=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=r.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var y=this.resolve(n,r),v=y&&y.res,g=y&&y.usedKey||s,m=y&&y.exactUsedKey||s,h=Object.prototype.toString.apply(v),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,C=typeof v!="string"&&typeof v!="boolean"&&typeof v!="number";if(D&&v&&C&&b.indexOf(h)<0&&(typeof w!="string"||h!=="[object Array]")){if(!r.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(g,v,Vt({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var x=h==="[object Array]",O=x?[]:{},F=x?m:g;for(var R in v)if(Object.prototype.hasOwnProperty.call(v,R)){var H="".concat(F).concat(a).concat(R);O[R]=this.translate(H,Vt({},r,{joinArrays:!1,ns:l})),O[R]===H&&(O[R]=v[R])}v=O}}else if(D&&typeof w=="string"&&h==="[object Array]")(v=v.join(w))&&(v=this.extendTranslation(v,n,r,o));else{var M=!1,K=!1,U=r.count!==void 0&&typeof r.count!="string",W=t.hasDefaultValue(r),q=U?this.pluralResolver.getSuffix(f,r.count):"",te=r["defaultValue".concat(q)]||r.defaultValue;!this.isValidLookup(v)&&W&&(M=!0,v=te),this.isValidLookup(v)||(K=!0,v=s);var se=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ue=se&&K?void 0:v,ae=W&&te!==v&&this.options.updateMissing;if(K||M||ae){if(this.logger.log(ae?"updateKey":"missingKey",f,c,s,ae?te:v),a){var B=this.resolve(s,Vt({},r,{keySeparator:!1}));B&&B.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 S=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&j&&j[0])for(var $=0;$<j.length;$++)S.push(j[$]);else this.options.saveMissingTo==="all"?S=this.languageUtils.toResolveHierarchy(r.lng||this.language):S.push(r.lng||this.language);var X=function(V,ie,ge){i.options.missingKeyHandler?i.options.missingKeyHandler(V,c,ie,ae?ge:ue,ae,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(V,c,ie,ae?ge:ue,ae,r),i.emit("missingKey",V,c,ie,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?S.forEach(function(V){i.pluralResolver.getSuffixes(V).forEach(function(ie){X([V],s+ie,r["defaultValue".concat(ie)]||te)})}):X(S,s,te))}v=this.extendTranslation(v,n,r,y,o),K&&v===s&&this.options.appendNamespaceToMissingKey&&(v="".concat(c,":").concat(s)),(K||M)&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(v))}return v}},{key:"extendTranslation",value:function(n,r,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(Vt({},o,{interpolation:Vt({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=n.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=Vt({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,o.lng||this.language,o),l){var d=n.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var v=arguments.length,g=new Array(v),m=0;m<v;m++)g[m]=arguments[m];return a&&a[0]===g[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(g[0]," in key: ").concat(r[0])),null):u.translate.apply(u,g.concat([r]))},o)),o.interpolation&&this.interpolator.reset()}var p=o.postProcess||this.options.postProcess,y=typeof p=="string"?[p]:p;return n!=null&&y&&y.length&&o.applyPostProcessor!==!1&&(n=_N.handle(y,n,r,this.options&&this.options.postProcessPassResolved?Vt({i18nResolved:i},o):o,this)),n}},{key:"resolve",value:function(n){var r,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!s.isValidLookup(r)){var f=s.extractFromKey(c,l),d=f.key;o=d;var p=f.namespaces;s.options.fallbackNS&&(p=p.concat(s.options.fallbackNS));var y=l.count!==void 0&&typeof l.count!="string",v=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",g=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);p.forEach(function(m){s.isValidLookup(r)||(u=m,!B9["".concat(g[0],"-").concat(m)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(B9["".concat(g[0],"-").concat(m)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(g.join(", "),`" won't get resolved as namespace "`).concat(u,'" 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!!!")),g.forEach(function(h){if(!s.isValidLookup(r)){a=h;var b,w,D=d,C=[D];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(C,d,h,m,l):(y&&(b=s.pluralResolver.getSuffix(h,l.count)),y&&v&&C.push(D+b),v&&C.push(D+="".concat(s.options.contextSeparator).concat(l.context)),y&&C.push(D+=b));w=C.pop();)s.isValidLookup(r)||(i=w,r=s.getResource(h,m,w,l))}}))})}}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,i):this.resourceStore.getResource(n,r,o,i)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,r.length)&&n[o]!==void 0)return!0;return!1}}]),t})();function db(e){return e.charAt(0).toUpperCase()+e.slice(1)}var UQ=(function(){function e(t){li(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Jo.create("languageUtils")}return ci(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=db(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=db(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=db(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){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(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var n,r=this;return t?(t.forEach(function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}}),!n&&this.options.supportedLngs&&t.forEach(function(o){if(!n){var i=r.getLanguagePartFromCode(o);if(r.isSupportedCode(i))return n=i;n=r.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],a=function(u){u&&(r.isSupportedCode(u)?i.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),o.forEach(function(u){i.indexOf(u)<0&&a(r.formatLanguageCode(u))}),i}}]),e})(),WQ=[{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"],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}],GQ={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return 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 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 e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};function qQ(){var e={};return WQ.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:GQ[t.fc]}})}),e}var KQ=(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};li(this,e),this.languageUtils=t,this.options=n,this.logger=Jo.create("pluralResolver"),this.rules=qQ()}return ci(e,[{key:"addRule",value:function(t,n){this.rules[t]=n}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,n){return this.getSuffixes(t).map(function(r){return n+r})}},{key:"getSuffixes",value:function(t){var n=this,r=this.getRule(t);return r?r.numbers.map(function(o){return n.getSuffix(t,o)}):[]}},{key:"getSuffix",value:function(t,n){var r=this,o=this.getRule(t);if(o){var i=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e})(),XQ=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};li(this,e),this.logger=Jo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return ci(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=n.escape!==void 0?n.escape:HQ,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?Os(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Os(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Os(n.nestingPrefix):n.nestingPrefixEscaped||Os("$t("),this.nestingSuffix=n.nestingSuffix?Os(n.nestingSuffix):n.nestingSuffixEscaped||Os(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,n,r,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(v){return v.replace(/\$/g,"$$$$")}var f=function(v){if(v.indexOf(s.formatSeparator)<0){var g=O9(n,l,v);return s.alwaysFormat?s.format(g,void 0,r,Vt({},o,n,{interpolationkey:v})):g}var m=v.split(s.formatSeparator),h=m.shift().trim(),b=m.join(s.formatSeparator).trim();return s.format(O9(n,l,h),b,r,Vt({},o,n,{interpolationkey:h}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,y=[{regex:this.regexpUnescape,safeValue:function(v){return c(v)}},{regex:this.regexp,safeValue:function(v){return s.escapeValue?c(s.escape(v)):c(v)}}];return y.forEach(function(v){for(u=0;i=v.regex.exec(t);){if((a=f(i[1].trim()))===void 0)if(typeof d=="function"){var g=d(t,i,o);a=typeof g=="string"?g:""}else{if(p){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(t)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=S9(a));var m=v.safeValue(a);if(t=t.replace(i[0],m),p?(v.regex.lastIndex+=m.length,v.regex.lastIndex-=i[0].length):v.regex.lastIndex=0,++u>=s.maxReplaces)break}}),t}},{key:"nest",value:function(t,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Vt({},a);function s(d,p){var y=this.nestingOptionsSeparator;if(d.indexOf(y)<0)return d;var v=d.split(new RegExp("".concat(y,"[ ]*{"))),g="{".concat(v[1]);d=v[0],g=(g=this.interpolate(g,u)).replace(/'/g,'"');try{u=JSON.parse(g),p&&(u=Vt({},p,u))}catch(m){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),m),"".concat(d).concat(y).concat(g)}return delete u.defaultValue,d}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(t);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(d){return d.trim()});r[1]=f.shift(),l=f,c=!0}if((o=n(s.call(this,r[1].trim(),u),u))&&r[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=S9(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),o=""),c&&(o=l.reduce(function(d,p){return i.format(d,p,a.lng,Vt({},a,{interpolationkey:r[1].trim()}))},o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}}]),e})(),ZQ=(function(e){function t(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return li(this,t),i=$d(this,Rl(t).call(this)),$y&&ya.call(Gu(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Jo.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return zy(t,ya),ci(t,[{key:"queueLoad",value:function(n,r,o,i){var a=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var d=!0;r.forEach(function(p){var y="".concat(f,"|").concat(p);!o.reload&&a.store.hasResourceBundle(f,p)?a.state[y]=2:a.state[y]<0||(a.state[y]===1?s.indexOf(y)<0&&s.push(y):(a.state[y]=1,d=!1,s.indexOf(y)<0&&s.push(y),u.indexOf(y)<0&&u.push(y),c.indexOf(p)<0&&c.push(p)))}),d||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(n,r,o){var i=n.split("|"),a=i[0],u=i[1];r&&this.emit("failedLoading",a,u,r),o&&this.store.addResourceBundle(a,u,o),this.state[n]=r?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,d,p){var y=a5(c,f,Object),v=y.obj,g=y.k;v[g]=v[g]||[],v[g].push(d)})(l.loaded,[a],u),(function(c,f){for(var d=c.indexOf(f);d!==-1;)c.splice(d,1),d=c.indexOf(f)})(l.pending,n),r&&l.errors.push(r),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(n,r,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[o](n,r,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,n,r,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=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."),a&&a();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var u=this.queueLoad(n,r,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=n.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&r.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&r.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),r.loaded(n,s,l)})}},{key:"saveMissing",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" 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!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,o,i,null,Vt({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),t})();function YQ(){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(Ji(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),Ji(e[2])==="object"||Ji(e[3])==="object"){var n=e[3]||e[2];Object.keys(n).forEach(function(r){t[r]=n[r]})}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 F9(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 Hh(){}var JQ=(function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(li(this,t),n=$d(this,Rl(t).call(this)),$y&&ya.call(Gu(n)),n.options=F9(r),n.services={},n.logger=Jo,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),$d(n,Gu(n));setTimeout(function(){n.init(r,o)},0)}return n}return zy(t,ya),ci(t,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(p){return p?typeof p=="function"?new p:p:null}if(typeof r=="function"&&(o=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.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=Vt({},YQ(),this.options,F9(r)),this.format=this.options.interpolation.format,o||(o=Hh),!this.options.isClone){this.modules.logger?Jo.init(i(this.modules.logger),this.options):Jo.init(null,this.options);var a=new UQ(this.options);this.store=new VQ(this.options.resources,this.options);var u=this.services;u.logger=Jo,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new KQ(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new XQ(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new ZQ(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var y=arguments.length,v=new Array(y>1?y-1:0),g=1;g<y;g++)v[g-1]=arguments[g];n.emit.apply(n,[p].concat(v))}),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new k9(this.services,this.options),this.translator.on("*",function(p){for(var y=arguments.length,v=new Array(y>1?y-1:0),g=1;g<y;g++)v[g-1]=arguments[g];n.emit.apply(n,[p].concat(v))}),this.modules.external.forEach(function(p){p.init&&p.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(p){n[p]=function(){var y;return(y=n.store)[p].apply(y,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){n[p]=function(){var y;return(y=n.store)[p].apply(y,arguments),n}});var f=Xc(),d=function(){var p=function(y,v){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),f.resolve(v),o(y,v)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return p(null,n.t.bind(n));n.changeLanguage(n.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hh,i=o,a=typeof n=="string"?n:this.language;if(typeof n=="function"&&(i=n),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&r.services.languageUtils.toResolveHierarchy(c).forEach(function(f){u.indexOf(f)<0&&u.push(f)})};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return s(c)})}this.options.preload&&this.options.preload.forEach(function(c){return s(c)}),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(n,r,o){var i=Xc();return n||(n=this.languages),r||(r=this.options.ns),o||(o=Hh),this.services.backendConnector.reload(n,r,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&_N.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var o=this;this.isLanguageChangingTo=n;var i=Xc();this.emit("languageChanging",n);var a=function(u){n||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),r&&r(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(n):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(n,r,o){var i=this,a=function u(s,l){var c;if(Ji(l)!=="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),p=2;p<f;p++)d[p-2]=arguments[p];c=i.options.overloadTranslationOptionHandler([s,l].concat(d))}else c=Vt({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var y=i.options.keySeparator||".",v=o?"".concat(o).concat(y).concat(s):s;return i.t(v,c)};return typeof n=="string"?a.lng=n:a.lngs=n,a.ns=r,a.keyPrefix=o,a}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,o=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 i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var d=r.services.backendConnector.state["".concat(c,"|").concat(f)];return d===-1||d===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,n)||!this.services.backendConnector.backend||!(!s(i,n)||a&&!s(u,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,i=Xc();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),r&&r(a)}),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var o=Xc();typeof n=="string"&&(n=[n]);var i=this.options.preload||[],a=n.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),r&&r(u)}),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["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"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hh,i=Vt({},this.options,r,{isClone:!0}),a=new t(i),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=Vt({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new k9(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))}),a.init(i,o),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})(),o0=new JQ;function qn(e,t){o0.addResourceBundle(e,"translation",t,!0,!0)}o0.init({lng:"zh-CN",resources:{}});var Q=o0.t.bind(o0);qn("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),qn("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var QQ=Z3?{}.toString:function(){return"[object "+wy(this)+"]"};Z3||Ru(Object.prototype,"toString",QQ,{unsafe:!0});var T9=Array.isArray||function(e){return gu(e)=="Array"},jN=function(){},eee=[],PN=xp("Reflect","construct"),u5=/^\s*(?:class|function)\b/,tee=nt(u5.exec),nee=!u5.exec(jN),Zc=function(e){if(!en(e))return!1;try{return PN(jN,eee,e),!0}catch{return!1}},ree=!PN||sn(function(){var e;return Zc(Zc.call)||!Zc(Object)||!Zc(function(){e=!0})||e})?function(e){if(!en(e))return!1;switch(wy(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return nee||!!tee(u5,W3(e))}:Zc,oee=Pn("species"),_9=Ee.Array,iee=function(e,t){return new((function(n){var r;return T9(n)&&(r=n.constructor,(ree(r)&&(r===_9||T9(r.prototype))||go(r)&&(r=r[oee])===null)&&(r=void 0)),r===void 0?_9:r})(e))(t===0?0:t)};nt([].push);var aee=function(e){return function(t,n,r,o){for(var i,a,u=$3(t),s=Z_(u),l=lj(n,r),c=by(s),f=0,d=o||iee,p=void 0;c>f;f++)f in s&&(a=l(i=s[f],f,u));return p}},uee={forEach:aee(0)}.forEach,see=(function(e,t){var n=[][e];return!!n&&sn(function(){n.call(null,t||function(){throw 1},1)})})("forEach"),pb=see?[].forEach:function(e){return uee(this,e,arguments.length>1?arguments[1]:void 0)},NN=function(e){if(e&&e.forEach!==pb)try{zn(e,"forEach",pb)}catch{e.forEach=pb}};for(var hb in xv)xv[hb]&&NN(Ee[hb]&&Ee[hb].prototype);NN(dj),qn("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"}}),qn("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 lee={type:"paragraph",renderElem:function(e,t,n){return be("p",null,t)}},i0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hy(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ai,$g,Vh=function(e){return e&&e.Math==Math&&e},Se=Vh(typeof globalThis=="object"&&globalThis)||Vh(typeof window=="object"&&window)||Vh(typeof self=="object"&&self)||Vh(typeof i0=="object"&&i0)||(function(){return this})()||Function("return this")(),xt=function(e){try{return!!e()}catch{return!0}},Yr=!xt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Yc=Function.prototype.call,Nt=Yc.bind?Yc.bind(Yc):function(){return Yc.apply(Yc,arguments)},j9={}.propertyIsEnumerable,P9=Object.getOwnPropertyDescriptor,cee=P9&&!j9.call({1:2},1)?function(e){var t=P9(this,e);return!!t&&t.enumerable}:j9,IN={f:cee},s5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},LN=Function.prototype,CE=LN.bind,SE=LN.call,fee=CE&&CE.bind(SE),ye=CE?function(e){return e&&fee(SE,e)}:function(e){return e&&function(){return SE.apply(e,arguments)}},dee=ye({}.toString),pee=ye("".slice),Qi=function(e){return pee(dee(e),8,-1)},gb=Se.Object,hee=ye("".split),Vy=xt(function(){return!gb("z").propertyIsEnumerable(0)})?function(e){return Qi(e)=="String"?hee(e,""):gb(e)}:gb,gee=Se.TypeError,Fr=function(e){if(e==null)throw gee("Can't call method on "+e);return e},oc=function(e){return Vy(Fr(e))},Sn=function(e){return typeof e=="function"},yo=function(e){return typeof e=="object"?e!==null:Sn(e)},vee=function(e){return Sn(e)?e:void 0},Np=function(e,t){return arguments.length<2?vee(Se[e]):Se[e]&&Se[e][t]},RN=ye({}.isPrototypeOf),vb=Np("navigator","userAgent")||"",N9=Se.process,I9=Se.Deno,L9=N9&&N9.versions||I9&&I9.version,R9=L9&&L9.v8;R9&&($g=(Ai=R9.split("."))[0]>0&&Ai[0]<4?1:+(Ai[0]+Ai[1])),!$g&&vb&&(!(Ai=vb.match(/Edge\/(\d+)/))||Ai[1]>=74)&&(Ai=vb.match(/Chrome\/(\d+)/))&&($g=+Ai[1]);var AE=$g,OE=!!Object.getOwnPropertySymbols&&!xt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&AE&&AE<41}),l5=OE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yee=Se.Object,yb=l5?function(e){return typeof e=="symbol"}:function(e){var t=Np("Symbol");return Sn(t)&&RN(t.prototype,yee(e))},mee=Se.String,MN=function(e){try{return mee(e)}catch{return"Object"}},bee=Se.TypeError,zN=function(e){if(Sn(e))return e;throw bee(MN(e)+" is not a function")},Uy=function(e,t){var n=e[t];return n==null?void 0:zN(n)},wee=Se.TypeError,Eee=Object.defineProperty,c5=function(e,t){try{Eee(Se,e,{value:t,configurable:!0,writable:!0})}catch{Se[e]=t}return t},ea=Se["__core-js_shared__"]||c5("__core-js_shared__",{}),f5=Hy(function(e){(e.exports=function(t,n){return ea[t]||(ea[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Dee=Se.Object,Ip=function(e){return Dee(Fr(e))},xee=ye({}.hasOwnProperty),Dr=Object.hasOwn||function(e,t){return xee(Ip(e),t)},Cee=0,See=Math.random(),Aee=ye(1 .toString),$N=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Aee(++Cee+See,36)},Jc=f5("wks"),xu=Se.Symbol,M9=xu&&xu.for,Oee=l5?xu:xu&&xu.withoutSetter||$N,cr=function(e){if(!Dr(Jc,e)||!OE&&typeof Jc[e]!="string"){var t="Symbol."+e;OE&&Dr(xu,e)?Jc[e]=xu[e]:Jc[e]=l5&&M9?M9(t):Oee(t)}return Jc[e]},Bee=Se.TypeError,kee=cr("toPrimitive"),d5=function(e){var t=(function(n,r){if(!yo(n)||yb(n))return n;var o,i=Uy(n,kee);if(i){if(o=Nt(i,n,r),!yo(o)||yb(o))return o;throw Bee("Can't convert object to primitive value")}return(function(a,u){var s,l;if(Sn(s=a.toString)&&!yo(l=Nt(s,a))||Sn(s=a.valueOf)&&!yo(l=Nt(s,a)))return l;throw wee("Can't convert object to primitive value")})(n)})(e,"string");return yb(t)?t:t+""},BE=Se.document,Fee=yo(BE)&&yo(BE.createElement),p5=function(e){return Fee?BE.createElement(e):{}},HN=!Yr&&!xt(function(){return Object.defineProperty(p5("div"),"a",{get:function(){return 7}}).a!=7}),z9=Object.getOwnPropertyDescriptor,h5={f:Yr?z9:function(e,t){if(e=oc(e),t=d5(t),HN)try{return z9(e,t)}catch{}if(Dr(e,t))return s5(!Nt(IN.f,e,t),e[t])}},Tee=Se.String,_ee=Se.TypeError,rr=function(e){if(yo(e))return e;throw _ee(Tee(e)+" is not an object")},jee=Se.TypeError,$9=Object.defineProperty,ic={f:Yr?$9:function(e,t,n){if(rr(e),t=d5(t),rr(n),HN)try{return $9(e,t,n)}catch{}if("get"in n||"set"in n)throw jee("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ml=Yr?function(e,t,n){return ic.f(e,t,s5(1,n))}:function(e,t,n){return e[t]=n,e},Pee=ye(Function.toString);Sn(ea.inspectSource)||(ea.inspectSource=function(e){return Pee(e)});var kE,a0,FE,g5=ea.inspectSource,H9=Se.WeakMap,Nee=Sn(H9)&&/native code/.test(g5(H9)),V9=f5("keys"),VN=function(e){return V9[e]||(V9[e]=$N(e))},v5={},U9=Se.TypeError,Iee=Se.WeakMap;if(Nee||ea.state){var Va=ea.state||(ea.state=new Iee),Lee=ye(Va.get),W9=ye(Va.has),Ree=ye(Va.set);kE=function(e,t){if(W9(Va,e))throw new U9("Object already initialized");return t.facade=e,Ree(Va,e,t),t},a0=function(e){return Lee(Va,e)||{}},FE=function(e){return W9(Va,e)}}else{var Bs=VN("state");v5[Bs]=!0,kE=function(e,t){if(Dr(e,Bs))throw new U9("Object already initialized");return t.facade=e,Ml(e,Bs,t),t},a0=function(e){return Dr(e,Bs)?e[Bs]:{}},FE=function(e){return Dr(e,Bs)}}var TE={get:a0,enforce:function(e){return FE(e)?a0(e):kE(e,{})}},UN=Function.prototype,Mee=Yr&&Object.getOwnPropertyDescriptor,mb=Dr(UN,"name"),Wy={EXISTS:mb,PROPER:mb&&(function(){}).name==="something",CONFIGURABLE:mb&&(!Yr||Yr&&Mee(UN,"name").configurable)},Hd=Hy(function(e){var t=Wy.CONFIGURABLE,n=TE.get,r=TE.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Sn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Dr(u,"name")||t&&u.name!==p)&&Ml(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Se?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Ml(i,a,u)):f?i[a]=u:c5(a,u)})(Function.prototype,"toString",function(){return Sn(this)&&n(this).source||g5(this)})}),zee=Math.ceil,$ee=Math.floor,ac=function(e){var t=+e;return t!=t||t===0?0:(t>0?$ee:zee)(t)},Hee=Math.max,Vee=Math.min,Vd=function(e,t){var n=ac(e);return n<0?Hee(n+t,0):Vee(n,t)},Uee=Math.min,Lp=function(e){return e>0?Uee(ac(e),9007199254740991):0},Gy=function(e){return Lp(e.length)},G9=function(e){return function(t,n,r){var o,i=oc(t),a=Gy(i),u=Vd(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},WN={includes:G9(!0),indexOf:G9(!1)},Wee=WN.indexOf,q9=ye([].push),GN=function(e,t){var n,r=oc(e),o=0,i=[];for(n in r)!Dr(v5,n)&&Dr(r,n)&&q9(i,n);for(;t.length>o;)Dr(r,n=t[o++])&&(~Wee(i,n)||q9(i,n));return i},u0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Gee=u0.concat("length","prototype"),qee={f:Object.getOwnPropertyNames||function(e){return GN(e,Gee)}},qN={f:Object.getOwnPropertySymbols},Kee=ye([].concat),Xee=Np("Reflect","ownKeys")||function(e){var t=qee.f(rr(e)),n=qN.f;return n?Kee(t,n(e)):t},Zee=function(e,t){for(var n=Xee(t),r=ic.f,o=h5.f,i=0;i<n.length;i++){var a=n[i];Dr(e,a)||r(e,a,o(t,a))}},Yee=/#|\.prototype\./,Rp=function(e,t){var n=Qee[Jee(e)];return n==tte||n!=ete&&(Sn(t)?xt(t):!!t)},Jee=Rp.normalize=function(e){return String(e).replace(Yee,".").toLowerCase()},Qee=Rp.data={},ete=Rp.NATIVE="N",tte=Rp.POLYFILL="P",nte=Rp,rte=h5.f,Jt=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Se:l?Se[u]||c5(u,{}):(Se[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=rte(n,r))&&a.value:n[r],!nte(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Zee(i,o)}(e.sham||o&&o.sham)&&Ml(i,"sham",!0),Hd(n,r,i,e)}},K9=ye(ye.bind),s0=Array.isArray||function(e){return Qi(e)=="Array"},KN={};KN[cr("toStringTag")]="z";var y5=String(KN)==="[object z]",ote=cr("toStringTag"),ite=Se.Object,ate=Qi((function(){return arguments})())=="Arguments",m5=y5?Qi:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=ite(e),ote))=="string"?n:ate?Qi(t):(r=Qi(t))=="Object"&&Sn(t.callee)?"Arguments":r},XN=function(){},ute=[],ZN=Np("Reflect","construct"),b5=/^\s*(?:class|function)\b/,ste=ye(b5.exec),lte=!b5.exec(XN),Qc=function(e){if(!Sn(e))return!1;try{return ZN(XN,ute,e),!0}catch{return!1}},w5=!ZN||xt(function(){var e;return Qc(Qc.call)||!Qc(Object)||!Qc(function(){e=!0})||e})?function(e){if(!Sn(e))return!1;switch(m5(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return lte||!!ste(b5,g5(e))}:Qc,cte=cr("species"),X9=Se.Array,fte=function(e,t){return new((function(n){var r;return s0(n)&&(r=n.constructor,(w5(r)&&(r===X9||s0(r.prototype))||yo(r)&&(r=r[cte])===null)&&(r=void 0)),r===void 0?X9:r})(e))(t===0?0:t)},Z9=ye([].push),Uh=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,y=Ip(s),v=Vy(y),g=(function(D,C){return zN(D),C===void 0?D:K9?K9(D,C):function(){return D.apply(C,arguments)}})(l,c),m=Gy(v),h=0,b=f||fte,w=t?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in v)&&(p=g(d=v[h],h,y),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:Z9(w,d)}else switch(e){case 4:return!1;case 7:Z9(w,d)}return i?-1:r||o?o:w}},qy={forEach:Uh(0),map:Uh(1),filter:Uh(2),find:Uh(5)},dte=cr("species"),E5=function(e){return AE>=51||!xt(function(){var t=[];return(t.constructor={})[dte]=function(){return{foo:1}},t[e](Boolean).foo!==1})},pte=qy.filter;Jt({target:"Array",proto:!0,forced:!E5("filter")},{filter:function(e){return pte(this,e,arguments.length>1?arguments[1]:void 0)}});var hte=y5?{}.toString:function(){return"[object "+m5(this)+"]"};y5||Hd(Object.prototype,"toString",hte,{unsafe:!0});var Wh,gte=Se.String,Et=function(e){if(m5(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return gte(e)},YN=function(){var e=rr(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},D5=Se.RegExp,_E=xt(function(){var e=D5("a","y");return e.lastIndex=2,e.exec("abcd")!=null});_E||xt(function(){return!D5("a","y").sticky});var JN={BROKEN_CARET:_E||xt(function(){var e=D5("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:_E},fl=Object.keys||function(e){return GN(e,u0)},vte=Yr?Object.defineProperties:function(e,t){rr(e);for(var n,r=oc(t),o=fl(t),i=o.length,a=0;i>a;)ic.f(e,n=o[a++],r[n]);return e},yte=Np("document","documentElement"),QN=VN("IE_PROTO"),bb=function(){},eI=function(e){return"<script>"+e+"<\/script>"},Y9=function(e){e.write(eI("")),e.close();var t=e.parentWindow.Object;return e=null,t},Hg=function(){try{Wh=new ActiveXObject("htmlfile")}catch{}var e,t;Hg=typeof document<"u"?document.domain&&Wh?Y9(Wh):((t=p5("iframe")).style.display="none",yte.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(eI("document.F=Object")),e.close(),e.F):Y9(Wh);for(var n=u0.length;n--;)delete Hg.prototype[u0[n]];return Hg()};v5[QN]=!0;var J9,wb,tI=Object.create||function(e,t){var n;return e!==null?(bb.prototype=rr(e),n=new bb,bb.prototype=null,n[QN]=e):n=Hg(),t===void 0?n:vte(n,t)},mte=Se.RegExp,bte=xt(function(){var e=mte(".","s");return!(e.dotAll&&e.exec(`
|
|
81
|
+
`)&&e.flags==="s")}),wte=Se.RegExp,Ete=xt(function(){var e=wte("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Dte=TE.get,xte=f5("native-string-replace",String.prototype.replace),l0=RegExp.prototype.exec,jE=l0,Cte=ye("".charAt),Ste=ye("".indexOf),Ate=ye("".replace),Eb=ye("".slice),Db=(wb=/b*/g,Nt(l0,J9=/a/,"a"),Nt(l0,wb,"a"),J9.lastIndex!==0||wb.lastIndex!==0),Q9=JN.BROKEN_CARET,xb=/()??/.exec("")[1]!==void 0;(Db||xb||Q9||bte||Ete)&&(jE=function(e){var t,n,r,o,i,a,u,s=this,l=Dte(s),c=Et(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Nt(jE,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Q9&&s.sticky,y=Nt(YN,s),v=s.source,g=0,m=c;if(p&&(y=Ate(y,"y",""),Ste(y,"g")===-1&&(y+="g"),m=Eb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Cte(c,s.lastIndex-1)!==`
|
|
82
|
+
`)&&(v="(?: "+v+")",m=" "+m,g++),n=new RegExp("^(?:"+v+")",y)),xb&&(n=new RegExp("^"+v+"$(?!\\s)",y)),Db&&(r=s.lastIndex),o=Nt(l0,p?n:s,m),p?o?(o.input=Eb(o.input,g),o[0]=Eb(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Db&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),xb&&o&&o.length>1&&Nt(xte,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=tI(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ud=jE;Jt({target:"RegExp",proto:!0,forced:/./.exec!==Ud},{exec:Ud});var x5=Function.prototype,eO=x5.apply,Ote=x5.bind,tO=x5.call,nI=typeof Reflect=="object"&&Reflect.apply||(Ote?tO.bind(eO):function(){return tO.apply(eO,arguments)}),Bte=cr("species"),Cb=RegExp.prototype,C5=function(e,t,n,r){var o=cr(e),i=!xt(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!xt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Bte]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=ye(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var y=ye(l),v=c.exec;return v===Ud||v===Cb.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:y(f,c,d)}:{done:!1}});Hd(String.prototype,e,s[0]),Hd(Cb,o,s[1])}r&&Ml(Cb[o],"sham",!0)},kte=ye("".charAt),nO=ye("".charCodeAt),Fte=ye("".slice),Tte=function(e){return function(t,n){var r,o,i=Et(Fr(t)),a=ac(n),u=i.length;return a<0||a>=u?"":(r=nO(i,a))<55296||r>56319||a+1===u||(o=nO(i,a+1))<56320||o>57343?kte(i,a):Fte(i,a,a+2)}},_te=Tte(),S5=function(e,t,n){return t+(n?_te(e,t).length:1)},jte=Math.floor,Sb=ye("".charAt),Pte=ye("".replace),Ab=ye("".slice),Nte=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ite=/\$([$&'`]|\d{1,2})/g,Lte=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Ite;return o!==void 0&&(o=Ip(o),s=Nte),Pte(i,s,function(l,c){var f;switch(Sb(c,0)){case"$":return"$";case"&":return e;case"`":return Ab(t,0,n);case"'":return Ab(t,a);case"<":f=o[Ab(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=jte(d/10);return p===0?l:p<=u?r[p-1]===void 0?Sb(c,1):r[p-1]+Sb(c,1):l}f=r[d-1]}return f===void 0?"":f})},Rte=Se.TypeError,Wd=function(e,t){var n=e.exec;if(Sn(n)){var r=Nt(n,e,t);return r!==null&&rr(r),r}if(Qi(e)==="RegExp")return Nt(Ud,e,t);throw Rte("RegExp#exec called on incompatible receiver")},PE=cr("replace"),Mte=Math.max,zte=Math.min,$te=ye([].concat),Ob=ye([].push),rO=ye("".indexOf),oO=ye("".slice),Hte="a".replace(/./,"$0")==="$0",iO=!!/./[PE]&&/./[PE]("a","$0")==="";C5("replace",function(e,t,n){var r=iO?"$":"$0";return[function(o,i){var a=Fr(this),u=o==null?void 0:Uy(o,PE);return u?Nt(u,o,a,i):Nt(t,Et(a),o,i)},function(o,i){var a=rr(this),u=Et(o);if(typeof i=="string"&&rO(i,r)===-1&&rO(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=Sn(i);l||(i=Et(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Wd(a,u);if(p===null||(Ob(d,p),!c))break;Et(p[0])===""&&(a.lastIndex=S5(u,Lp(a.lastIndex),f))}for(var y,v="",g=0,m=0;m<d.length;m++){for(var h=Et((p=d[m])[0]),b=Mte(zte(ac(p.index),u.length),0),w=[],D=1;D<p.length;D++)Ob(w,(y=p[D])===void 0?y:String(y));var C=p.groups;if(l){var x=$te([h],w,b,u);C!==void 0&&Ob(x,C);var O=Et(nI(i,void 0,x))}else O=Lte(h,u,b,w,C,i);b>=g&&(v+=oO(u,g,b)+O,g=b+h.length)}return v+oO(u,g)}]},!!xt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Hte||iO);var NE=cr("unscopables"),IE=Array.prototype;IE[NE]==null&&ic.f(IE,NE,{configurable:!0,value:tI(null)});var rI=function(e){IE[NE][e]=!0},Vte=qy.find,aO=!0;"find"in[]&&Array(1).find(function(){aO=!1}),Jt({target:"Array",proto:!0,forced:aO},{find:function(e){return Vte(this,e,arguments.length>1?arguments[1]:void 0)}}),rI("find");var Ute=cr("match"),oI=function(e){var t;return yo(e)&&((t=e[Ute])!==void 0?!!t:Qi(e)=="RegExp")},Wte=Se.TypeError,Gte=cr("species"),iI=function(e,t,n){var r=d5(t);r in e?ic.f(e,r,s5(0,n)):e[r]=n},qte=Se.Array,Kte=Math.max,uO=function(e,t,n){for(var r=Gy(e),o=Vd(t,r),i=Vd(n===void 0?r:n,r),a=qte(Kte(i-o,0)),u=0;o<i;o++,u++)iI(a,u,e[o]);return a.length=u,a},ks=JN.UNSUPPORTED_Y,Xte=Math.min,aI=[].push,Zte=ye(/./.exec),Fs=ye(aI),ef=ye("".slice);C5("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(o,i){var a=Et(Fr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!oI(o))return Nt(t,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,y=new RegExp(o.source,d+"g");(s=Nt(Ud,y,a))&&!((l=y.lastIndex)>p&&(Fs(f,ef(a,p,s.index)),s.length>1&&s.index<a.length&&nI(aI,f,uO(s,1)),c=s[0].length,p=l,f.length>=u));)y.lastIndex===s.index&&y.lastIndex++;return p===a.length?!c&&Zte(y,"")||Fs(f,""):Fs(f,ef(a,p)),f.length>u?uO(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Nt(t,this,o,i)}:t,[function(o,i){var a=Fr(this),u=o==null?void 0:Uy(o,e);return u?Nt(u,o,a,i):Nt(r,Et(a),o,i)},function(o,i){var a=rr(this),u=Et(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=(function(w,D){var C,x=rr(w).constructor;return x===void 0||(C=rr(x)[Gte])==null?D:(function(O){if(w5(O))return O;throw Wte(MN(O)+" is not a constructor")})(C)})(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ks?"g":"y"),d=new l(ks?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return Wd(d,u)===null?[u]:[];for(var y=0,v=0,g=[];v<u.length;){d.lastIndex=ks?0:v;var m,h=Wd(d,ks?ef(u,v):u);if(h===null||(m=Xte(Lp(d.lastIndex+(ks?v:0)),u.length))===y)v=S5(u,v,c);else{if(Fs(g,ef(u,y,v)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Fs(g,h[b]),g.length===p)return g;v=y=m}}return Fs(g,ef(u,y)),g}]},!!xt(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"}),ks);var LE=`
|
|
83
|
+
\v\f\r \u2028\u2029\uFEFF`,sO=ye("".replace),c0="["+LE+"]",Yte=RegExp("^"+c0+c0+"*"),Jte=RegExp(c0+c0+"*$"),Qte=function(e){return function(t){var n=Et(Fr(t));return n=sO(n,Yte,""),n=sO(n,Jte,""),n}},ene={trim:Qte()},tne=Wy.PROPER,nne=ene.trim;function A5(e){return k("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function uc(e){return e.length===0?"":e[0].outerHTML}function sc(e){return e.length?e[0].tagName.toLowerCase():""}function Kr(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}Jt({target:"String",proto:!0,forced:xt(function(){return!!LE.trim()||"
".trim()!=="
"||tne&&LE.trim.name!=="trim"})},{trim:function(){return nne(this)}}),Jt({global:!0},{globalThis:Se}),Iv&&(k.fn.css=Iv),Or&&(k.fn.append=Or),ZS&&(k.fn.prepend=ZS),Dl&&(k.fn.addClass=Dl),xl&&(k.fn.removeClass=xl),Cl&&(k.fn.hasClass=Cl),Oo&&(k.fn.on=Oo),GS&&(k.fn.off=GS),ga&&(k.fn.focus=ga),Ar&&(k.fn.attr=Ar),_v&&(k.fn.removeAttr=_v),Al&&(k.fn.hide=Al),Nv&&(k.fn.show=Nv),Mv&&(k.fn.parents=Mv),Sl&&(k.fn.dataset=Sl),Ao&&(k.fn.val=Ao),Rv&&(k.fn.text=Rv),ha&&(k.fn.html=ha),kl&&(k.fn.children=kl),Fl&&(k.fn.remove=Fl),Bl&&(k.fn.find=Bl),jv&&(k.fn.width=jv),Pv&&(k.fn.height=Pv),KS&&(k.fn.filter=KS),Tl&&(k.fn.empty=Tl);var rne={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);return(t=t.filter(function(o){return!!oe.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},RE=function(e,t){return RE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},RE(e,t);/*! *****************************************************************************
|
|
84
|
+
Copyright (c) Microsoft Corporation.
|
|
85
|
+
|
|
86
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
87
|
+
purpose with or without fee is hereby granted.
|
|
88
|
+
|
|
89
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
90
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
91
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
92
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
93
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
94
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
95
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
96
|
+
***************************************************************************** */};function bt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}RE(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ma=function(){return ma=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ma.apply(this,arguments)};function ka(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(e,[])).next())})}function Fa(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return(function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([s,l])}}}function uI(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 new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xe(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function lO(e){var t=Xe(E.nodes(e,{match:function(i){return e.children[0]===i},mode:"highest"}),1)[0];if(t==null)return!1;var n=t[0];if(!ce.isElement(n)||n.type==="paragraph"||J.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!oe.isText(o[0])&&(N.setNodes(e,{type:"paragraph"}),!0)}var one={renderElems:[lee],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[rne],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(o){lO(r)||t(o)},r.deleteForward=function(o){lO(r)||n(o)},r}},ine=/"/g,ane=ye("".replace),Wf=function(e,t,n,r){var o=Et(Fr(e)),i="<"+t;return n!==""&&(i+=" "+n+'="'+ane(Et(r),ine,""")+'"'),i+">"+o+"</"+t+">"},Gf=function(e){return xt(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function Bb(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Ua(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}Jt({target:"String",proto:!0,forced:Gf("bold")},{bold:function(){return Wf(this,"b","","")}}),Jt({target:"String",proto:!0,forced:Gf("italics")},{italics:function(){return Wf(this,"i","","")}}),Jt({target:"String",proto:!0,forced:Gf("sub")},{sub:function(){return Wf(this,"sub","","")}}),Jt({target:"String",proto:!0,forced:Gf("sup")},{sup:function(){return Wf(this,"sup","","")}});var cO={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},kb=p5("span").classList,fO=kb&&kb.constructor&&kb.constructor.prototype,une=fO===Object.prototype?void 0:fO,sI=function(e,t){var n=[][e];return!!n&&xt(function(){n.call(null,t||function(){throw 1},1)})},sne=qy.forEach,Fb=sI("forEach")?[].forEach:function(e){return sne(this,e,arguments.length>1?arguments[1]:void 0)},lI=function(e){if(e&&e.forEach!==Fb)try{Ml(e,"forEach",Fb)}catch{e.forEach=Fb}};for(var Tb in cO)cO[Tb]&&lI(Se[Tb]&&Se[Tb].prototype);function cI(e,t){return e.selection==null||!!Xe(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]}function lne(e,t){Object.keys(t).forEach(function(n){n!=="text"&&E.removeMark(e,n)})}lI(une),Jt({target:"Object",stat:!0,forced:xt(function(){fl(1)})},{keys:function(e){return fl(Ip(e))}});var us=(function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var n=this.mark,r=E.marks(t);return r?r[n]:!!Xe(E.nodes(t,{match:function(o){return o[n]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return cI(t,this.mark)},e.prototype.exec=function(t,n){var r=this.mark,o=this.marksNeedToRemove;n?t.removeMark(r):(t.addMark(r,!0),o&&o.forEach(function(i){return t.removeMark(i)}))},e})(),cne='<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>',fne='<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>',dne='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',pne='<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>',hne='<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>',fI='<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>',dI='<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>',gne='<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>',vne='<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>',yne='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',mne='<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>',bne='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',wne='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Ene='<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>',Dne='<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>',xne='<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>',Cne='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',Sne='<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>',Ane='<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>',One=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="bold",n.title=Q("textStyle.bold"),n.iconSvg=cne,n.hotkey="mod+b",n}return bt(t,e),t})(us),Bne=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=Q("textStyle.code"),n.iconSvg=hne,n.hotkey="mod+e",n}return bt(t,e),t})(us),kne=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=Q("textStyle.italic"),n.iconSvg=dne,n.hotkey="mod+i",n}return bt(t,e),t})(us),Fne=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=Q("textStyle.through"),n.iconSvg=pne,n.hotkey="mod+shift+x",n}return bt(t,e),t})(us),Tne=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=Q("textStyle.underline"),n.iconSvg=fne,n.hotkey="mod+u",n}return bt(t,e),t})(us),_ne=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=Q("textStyle.sub"),n.iconSvg=Ane,n.hotkey="",n}return bt(t,e),t})(us),jne=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=Q("textStyle.sup"),n.iconSvg=Sne,n.hotkey="",n}return bt(t,e),t})(us),Pne=(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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return cI(t)},e.prototype.exec=function(t,n){var r,o,i=E.nodes(t,{match:function(s){return oe.isText(s)},universal:!0});try{for(var a=uI(i),u=a.next();!u.done;u=a.next())lne(t,u.value[0])}catch(s){r={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},e})(),Nne={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=be("strong",null,c)),a&&(c=be("code",null,c)),o&&(c=be("em",null,c)),i&&(c=be("u",null,c)),u&&(c=be("s",null,c)),s&&(c=be("sub",null,c)),l&&(c=be("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new One}},{key:"underline",factory:function(){return new Tne}},{key:"italic",factory:function(){return new kne}},{key:"through",factory:function(){return new Fne}},{key:"code",factory:function(){return new Bne}},{key:"sub",factory:function(){return new _ne}},{key:"sup",factory:function(){return new jne}},{key:"clearStyle",factory:function(){return new Pne}}],styleToHtml:function(e,t){if(!oe.isText(e))return t;if(A5(t))return Bb(e,t);var n=k(t);if(sc(n)==="br")return Bb(e,"<br>");var r=n.html();return r=Bb(e,r),n.html(r),uc(n)},parseStyleHtml:function(e,t,n){var r=k(e);if(!oe.isText(t))return t;var o=t;return Ua(r,"b,strong")&&(o.bold=!0),Ua(r,"i,em")&&(o.italic=!0),Ua(r,"u")&&(o.underline=!0),Ua(r,"s,strike")&&(o.through=!0),Ua(r,"sub")&&(o.sub=!0),Ua(r,"sup")&&(o.sup=!0),Ua(r,"code")&&(o.code=!0),o}};function Mp(e){return function(t,n,r){return be("h"+e,null,n)}}var Ine={type:"header1",renderElem:Mp(1)},Lne={type:"header2",renderElem:Mp(2)},Rne={type:"header3",renderElem:Mp(3)},Mne={type:"header4",renderElem:Mp(4)},zne={type:"header5",renderElem:Mp(5)},$ne=Wy.PROPER,ME=RegExp.prototype,pI=ME.toString,Hne=ye(YN),Vne=xt(function(){return pI.call({source:"a",flags:"b"})!="/a/b"}),Une=$ne&&pI.name!="toString";(Vne||Une)&&Hd(RegExp.prototype,"toString",function(){var e=rr(this),t=Et(e.source),n=e.flags;return"/"+t+"/"+Et(n===void 0&&RN(ME,e)&&!("flags"in ME)?Hne(e):n)},{unsafe:!0});var _b,Wne=Se.TypeError,hI=function(e){if(oI(e))throw Wne("The method doesn't accept regular expressions");return e},Gne=cr("match"),gI=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Gne]=!1,"/./"[e](t)}catch{}}return!1},qne=h5.f,dO=ye("".startsWith),Kne=ye("".slice),Xne=Math.min,pO=gI("startsWith");function vI(e){var t=Xe(E.nodes(e,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),n=t[0];if(n==null)return"paragraph";var r=Xe(n,1)[0];return A.getNodeType(r)}function yI(e){return e.selection==null||!Xe(E.nodes(e,{match:function(t){var n=A.getNodeType(t);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function mI(e,t){t&&N.setNodes(e,{type:t})}Jt({target:"String",proto:!0,forced:!(!pO&&(_b=qne(String.prototype,"startsWith"),_b&&!_b.writable)||pO)},{startsWith:function(e){var t=Et(Fr(this));hI(e);var n=Lp(Xne(arguments.length>1?arguments[1]:void 0,t.length)),r=Et(e);return dO?dO(t,r,n):Kne(t,n,n+r.length)===r}});var Zne=(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(t){var n=[{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")}],r=this.getValue(t).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return vI(t)},e.prototype.isDisabled=function(t){return yI(t)},e.prototype.exec=function(t,n){mI(t,n.toString())},e})(),zp=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return vI(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return yI(t)},e.prototype.exec=function(t,n){var r=this.type;mI(t,n===r?"paragraph":r)},e})(),Yne=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return bt(t,e),t})(zp),Jne=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return bt(t,e),t})(zp),Qne=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return bt(t,e),t})(zp),ere=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return bt(t,e),t})(zp),tre=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return bt(t,e),t})(zp),nre={key:"headerSelect",factory:function(){return new Zne}},rre={key:"header1",factory:function(){return new Yne}},ore={key:"header2",factory:function(){return new Jne}},ire={key:"header3",factory:function(){return new Qne}},are={key:"header4",factory:function(){return new ere}},ure={key:"header5",factory:function(){return new tre}};function tf(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function nf(e){return function(t,n,r){var o=k(t);return(n=n.filter(function(i){return!!oe.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var sre={renderElems:[Ine,Lne,Rne,Mne,zne],elemsToHtml:[{type:"header1",elemToHtml:tf(1)},{type:"header2",elemToHtml:tf(2)},{type:"header3",elemToHtml:tf(3)},{type:"header4",elemToHtml:tf(4)},{type:"header5",elemToHtml:tf(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:nf(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:nf(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:nf(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:nf(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:nf(5)}],menus:[nre,rre,ore,ire,are,ure],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=Xe(E.nodes(n,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&A.isSelectionAtLineEnd(e,r[1])?N.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},Ts=Object.assign,hO=Object.defineProperty,lre=ye([].concat),gO=!Ts||xt(function(){if(Yr&&Ts({b:1},Ts(hO({},"a",{enumerable:!0,get:function(){hO(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(o){t[o]=o}),Ts({},e)[n]!=7||fl(Ts({},t)).join("")!=r})?function(e,t){for(var n=Ip(e),r=arguments.length,o=1,i=qN.f,a=IN.f;r>o;)for(var u,s=Vy(arguments[o++]),l=i?lre(fl(s),i(s)):fl(s),c=l.length,f=0;c>f;)u=l[f++],Yr&&!Nt(a,s,u)||(n[u]=s[u]);return n}:Ts;function qu(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}Jt({target:"Object",stat:!0,forced:Object.assign!==gO},{assign:gO});var cre={selector:"font",preParseHtml:function(e){var t=k(e);if(sc(t)!=="font")return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},bI=(function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){var n=this.mark,r=E.marks(t);return r&&r[n]?r[n]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!Xe(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var n=this.mark;if(this.$content==null){var r=k('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),t.selection!=null)){var f=k(c).attr("data-value");f==="0"?E.removeMark(t,n):E.addMark(t,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(t),a=t.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(l){var c=k('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=k('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";n==="color"&&(u=Q("color.default")),n==="bgColor"&&(u=Q("color.clear"));var s=k(`
|
|
97
|
+
<li data-value="0" class="clear">
|
|
98
|
+
<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>
|
|
99
|
+
`+u+`
|
|
100
|
+
</li>
|
|
101
|
+
`);return o.prepend(s),o[0]},e})(),fre=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("color.color"),n.iconSvg=gne,n.mark="color",n}return bt(t,e),t})(bI),dre=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("color.bgColor"),n.iconSvg=vne,n.mark="bgColor",n}return bt(t,e),t})(bI),vO=["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)"],pre={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&qu(i,{color:r}),o&&qu(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!oe.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((A5(t)||sc(n=k(t))!=="span")&&(n=k("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),uc(n)):t},preParseHtml:[cre],parseStyleHtml:function(e,t,n){var r=k(e);if(!oe.isText(t))return t;var o=t,i=Kr(r,"color");i&&(o.color=i);var a=Kr(r,"background-color");return a||(a=Kr(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new fre},config:{colors:vO}},{key:"bgColor",factory:function(){return new dre},config:{colors:vO}}]},hre=/^(?:\w+:)?\/\/(\S+)$/,gre=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,vre=/^[^\s\.]+\.\S{2,}$/,yre=WN.includes;function Ky(e){return e===void 0&&(e="r"),e+"-"+$j()}function O5(e){return e.replace(/</g,"<").replace(/>/g,">")}function wI(e,t,n,r){return ka(this,void 0,void 0,function(){var o,i;return Fa(this,function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return t.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function EI(e,t,n){return ka(this,void 0,void 0,function(){var r;return Fa(this,function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function B5(e){return e.selection==null||!!A.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function jb(e,t){return{type:"link",url:O5(e),children:t?[{text:t}]:[]}}function DI(e,t,n){return ka(this,void 0,void 0,function(){var r,o,i;return Fa(this,function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),B5(e)?[2]:[4,wI("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,EI("insertLink",e,n)]:[2];case 2:return r=a.sent(),(o=e.selection)==null||(L.isCollapsed(o)?(e.insertText(" "),i=jb(r,t),N.insertNodes(e,i),e.insertFragment([{text:" "}])):E.string(e,o)!==t?(e.deleteFragment(),i=jb(r,t),N.insertNodes(e,i)):(i=jb(r),N.wrapNodes(e,i,{split:!0}),N.collapse(e,{edge:"end"}))),[2]}})})}Jt({target:"Array",proto:!0},{includes:function(e){return yre(this,e,arguments.length>1?arguments[1]:void 0)}}),rI("includes");var mre={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return be("a",{href:o,target:i===void 0?"_blank":i},t)}},bre={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);return(t=t.filter(function(o){return!!oe.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function Pb(){return Ky("w-e-insert-link")}var wre=(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=Pb(),this.urlInputId=Pb(),this.buttonId=Pb()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return B5(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=t.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,u=Xe(nr(Q("link.text"),o),2),s=u[0],l=k(u[1]),c=Xe(nr(Q("link.url"),i),2),f=c[0],d=k(c[1]),p=Xe(rc(a,Q("common.ok")),1)[0];if(this.$content==null){var y=k("<div></div>");y.on("click","#"+a,function(m){m.preventDefault();var h=y.find("#"+o).val(),b=y.find("#"+i).val();DI(t,h,b),t.hidePanelOrModal()}),this.$content=y}var v=this.$content;if(v.empty(),v.append(s),v.append(f),v.append(p),n==null||L.isCollapsed(n))l.val("");else{var g=E.string(t,n);l.val(g)}return d.val(""),setTimeout(function(){l.focus()}),v[0]},e})();function yO(){return Ky("w-e-update-link")}var Ere=(function(){function e(){this.title=Q("link.edit"),this.iconSvg=fI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=yO(),this.buttonId=yO()}return e.prototype.getSelectedLinkElem=function(t){var n=A.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return A.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var n=this.urlInputId,r=this.buttonId,o=Xe(nr(Q("link.url"),n),2),i=o[0],a=k(o[1]),u=Xe(rc(r,Q("common.ok")),1)[0];if(this.$content==null){var s=k("<div></div>");s.on("click","button",function(f){f.preventDefault(),t.restoreSelection();var d=A.getSelectedNodeByType(t,"link"),p=d?J.string(d):"",y=s.find("#"+n).val();(function(v,g,m){ka(this,void 0,void 0,function(){var h,b;return Fa(this,function(w){switch(w.label){case 0:return m?[4,wI("editLink",v,g,m)]:[2];case 1:return w.sent()?[4,EI("editLink",v,m)]:[2];case 2:return h=w.sent(),b={url:O5(h)},N.setNodes(v,b,{match:function(D){return A.checkNodeType(D,"link")}}),[2]}})})})(t,p,y),t.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(t);return a.val(c),setTimeout(function(){a.focus()}),l[0]},e})(),Dre=(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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||N.unwrapNodes(t,{match:function(r){return A.checkNodeType(r,"link")}})},e})(),xre=(function(){function e(){this.title=Q("link.view"),this.iconSvg=dI,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var n=A.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},e})(),mO={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Cre={renderElems:[mre],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[bre],menus:[{key:"insertLink",factory:function(){return new wre},config:mO},{key:"editLink",factory:function(){return new Ere},config:mO},{key:"unLink",factory:function(){return new Dre}},{key:"viewLink",factory:function(){return new xre}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(i){return i.type==="link"||t(i)},o.insertData=function(i){var a=i.getData("text/plain");if((function(l){if(typeof l!="string")return!1;var c=l.match(hre);if(!c)return!1;var f=c[1];return!(!f||!gre.test(f)&&!vre.test(f))})(a)){if(!B5(o)){var u=o.selection;if(u!=null){var s=E.string(o,u);DI(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=Xe(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?r([u,s]):J.string(u)===""?N.removeNodes(o,{at:s}):r([u,s])},o}},Sre=ye(1 .valueOf),Are=Se.RangeError,Ore=Se.RangeError,xI=Se.String,CI=Math.floor,zE=ye(function(e){var t=Et(Fr(this)),n="",r=ac(e);if(r<0||r==1/0)throw Are("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),bO=ye("".slice),rf=ye(1 .toFixed),rl=function(e,t,n){return t===0?n:t%2==1?rl(e,t-1,n*e):rl(e*e,t/2,n)},_s=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=CI(o/1e7)},Nb=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=CI(r/t),r=r%t*1e7},wO=function(e){for(var t=6,n="";--t>=0;)if(n!==""||t===0||e[t]!==0){var r=xI(e[t]);n=n===""?r:n+zE("0",7-r.length)+r}return n};function EO(e,t){return"w-e-image-container-"+A.findKey(e,t).id}Jt({target:"Number",proto:!0,forced:xt(function(){return rf(8e-5,3)!=="0.000"||rf(.9,0)!=="1"||rf(1.255,2)!=="1.25"||rf(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!xt(function(){rf({})})},{toFixed:function(e){var t,n,r,o,i=Sre(this),a=ac(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Ore("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return xI(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=(function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f})(i*rl(2,69,1))-69)<0?i*rl(2,-t,1):i/rl(2,t,1),n*=4503599627370496,(t=52-t)>0){for(_s(u,0,n),r=a;r>=7;)_s(u,1e7,0),r-=7;for(_s(u,rl(10,r,1),0),r=t-1;r>=23;)Nb(u,1<<23),r-=23;Nb(u,1<<r),_s(u,1,1),Nb(u,2),l=wO(u)}else _s(u,0,n),_s(u,1<<-t,0),l=wO(u)+zE("0",a);return a>0?s+((o=l.length)<=a?"0."+zE("0",a-o)+l:bO(l,0,o-a)+"."+bO(l,o-a)):s+l}});var Bre={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=i===void 0?"":i,u=r.href,s=u===void 0?"":u,l=r.style,c=l===void 0?{}:l,f=c.width,d=f===void 0?"":f,p=c.height,y=p===void 0?"":p,v=A.isNodeSelected(n,e),g={};d&&(g.width="100%"),y&&(g.height="100%");var m=be("img",{style:g,src:o,alt:a,"data-href":s}),h=n.isDisabled();return v&&!h?(function(b,w,D,C){var x=k("body"),O=EO(b,w),F=C.width,R=C.height,H=0,M=0,K=0,U=!1,W=null;function q(ae){W=(function(){var j=k("#"+O);if(j.length===0)throw new Error("Cannot find image container elem");return j})(),H=ae;var B=W.find("img");if(B.length===0)throw new Error("Cannot find image elem");M=B.width(),K=B.height(),x.on("mousemove",te),x.on("mouseup",se);var S=A.getHoverbar(b);S&&S.hideAndClean()}var te=$u(function(ae){ae.preventDefault();var B=ae.clientX,S=M+(U?H-B:B-H),j=K*(S/M);W!=null&&(S<=15||j<=15||(W.css("width",S+"px"),W.css("height",j+"px")))},100);function se(ae){if(x.off("mousemove",te),W!=null){var B=W.width().toFixed(2),S=W.height().toFixed(2),j={style:ma(ma({},w.style),{width:B+"px",height:S+"px"})};N.setNodes(b,j,{at:A.findPath(b,w)}),x.off("mouseup",se)}}var ue={};return F&&(ue.width=F),R&&(ue.height=R),be("div",{id:O,style:ue,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(ae){var B=k(ae.target);B.hasClass("w-e-image-dragger")&&(ae.preventDefault(),(B.hasClass("left-top")||B.hasClass("left-bottom"))&&(U=!0),q(ae.clientX))}}},D,be("div",{className:"w-e-image-dragger left-top"}),be("div",{className:"w-e-image-dragger right-top"}),be("div",{className:"w-e-image-dragger left-bottom"}),be("div",{className:"w-e-image-dragger right-bottom"}))})(n,e,m,{width:d,height:y}):(function(b,w,D,C){var x=C.width,O=C.height,F={};return x&&(F.width=x),O&&(F.height=O),be("div",{id:EO(b,w),style:F,className:"w-e-image-container"},D)})(n,e,m,{width:d,height:y})}},kre={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:Kr(r,"width"),height:Kr(r,"height")},children:[{text:""}]}}};function SI(e,t,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),ka(this,void 0,void 0,function(){var i,a;return Fa(this,function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function AI(e,t,n){return ka(this,void 0,void 0,function(){var r;return Fa(this,function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function Cu(e,t,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),ka(this,void 0,void 0,function(){var o,i,a;return Fa(this,function(u){switch(u.label){case 0:return[4,SI("insertImage",e,t,n,r)];case 1:return u.sent()?[4,AI("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:O5(o),href:r,alt:n,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),A.getSelectedNodeByType(e,"image")&&e.move(1),Xy(e)||(N.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function Xy(e){var t=e.selection;return t==null||!L.isCollapsed(t)||!!Xe(E.nodes(e,{match:function(n){var r=A.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!E.isVoid(e,n)},universal:!0}),1)[0]}function Gh(){return Ky("w-e-insert-image")}var Fre=(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=Gh(),this.altInputId=Gh(),this.hrefInputId=Gh(),this.buttonId=Gh()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return Xy(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=Xe(nr(Q("image.src"),o),2),l=s[0],c=k(s[1]),f=Xe(nr(Q("image.desc"),i),2),d=f[0],p=k(f[1]),y=Xe(nr(Q("image.link"),a),2),v=y[0],g=k(y[1]),m=Xe(rc(u,Q("common.ok")),1)[0];if(this.$content==null){var h=k("<div></div>");h.on("click","#"+u,function(w){w.preventDefault();var D=h.find("#"+o).val().trim(),C=h.find("#"+i).val().trim(),x=h.find("#"+a).val().trim();n.insertImage(t,D,C,x),t.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(d),b.append(v),b.append(m),c.val(""),p.val(""),g.val(""),setTimeout(function(){c.focus()}),b[0]},e.prototype.insertImage=function(t,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(t.restoreSelection(),this.isDisabled(t)||Cu(t,n,r,o))},e})(),Tre=(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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||N.removeNodes(t,{match:function(r){return A.checkNodeType(r,"image")}})},e})();function qh(){return Ky("w-e-edit-image")}var _re=(function(){function e(){this.title=Q("image.edit"),this.iconSvg=fI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=qh(),this.altInputId=qh(),this.hrefInputId=qh(),this.buttonId=qh()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return A.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(t);if(s==null)throw new Error("Not found selected image node");var l=Xe(nr(Q("image.src"),o),2),c=l[0],f=k(l[1]),d=Xe(nr(Q("image.desc"),i),2),p=d[0],y=k(d[1]),v=Xe(nr(Q("image.link"),a),2),g=v[0],m=k(v[1]),h=Xe(rc(u,Q("common.ok")),1)[0];if(this.$content==null){var b=k("<div></div>");b.on("click","#"+u,function(H){H.preventDefault();var M=b.find("#"+o).val(),K=b.find("#"+i).val(),U=b.find("#"+a).val();n.updateImage(t,M,K,U),t.hidePanelOrModal()}),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(p),w.append(g),w.append(h);var D=s,C=D.src,x=D.alt,O=x===void 0?"":x,F=D.href,R=F===void 0?"":F;return f.val(C),y.val(O),m.val(R),setTimeout(function(){f.focus()}),w[0]},e.prototype.updateImage=function(t,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(t.restoreSelection(),this.isDisabled(t)||(function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),ka(this,void 0,void 0,function(){var f,d,p,y,v,g;return Fa(this,function(m){switch(m.label){case 0:return[4,SI("editImage",a,u,s,l)];case 1:return m.sent()?[4,AI("editImage",a,u)]:[2];case 2:return f=m.sent(),(d=A.getSelectedNodeByType(a,"image"))==null||(p=d.style,y={src:f,alt:s,href:l,style:ma(ma({},p===void 0?{}:p),c)},N.setNodes(a,y,{match:function(h){return A.checkNodeType(h,"image")}}),v=A.getSelectedNodeByType(a,"image"),(g=a.getMenuConfig("editImage").onUpdatedImage)&&g(v)),[2]}})})})(t,n,r,o,i))},e})(),jre=(function(){function e(){this.title=Q("image.viewLink"),this.iconSvg=dI,this.tag="button"}return e.prototype.getValue=function(t){var n=A.getSelectedNodeByType(t,"image");return n&&n.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},e})(),k5=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return A.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.getSelectedNode(t);if(r!=null){var o=A.getHoverbar(t);o&&o.hideAndClean();var i=r.style,a={style:ma(ma({},i===void 0?{}:i),{width:this.value,height:""})};N.setNodes(t,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},e})(),Pre=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return bt(t,e),t})(k5),Nre=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return bt(t,e),t})(k5),Ire=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return bt(t,e),t})(k5),DO={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},Lre={renderElems:[Bre],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=o===void 0?"":o,a=n.href,u=a===void 0?"":a,s=n.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,d=l.height,p=d===void 0?"":d,y="";return f&&(y+="width: "+f+";"),p&&(y+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+y+'"/>'}}],parseElemsHtml:[kre],menus:[{key:"insertImage",factory:function(){return new Fre},config:DO},{key:"deleteImage",factory:function(){return new Tre}},{key:"editImage",factory:function(){return new _re},config:DO},{key:"viewImageLink",factory:function(){return new jre}},{key:"imageWidth30",factory:function(){return new Pre}},{key:"imageWidth50",factory:function(){return new Nre}},{key:"imageWidth100",factory:function(){return new Ire}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(o){return o.type==="image"||t(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},Rre={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=be("div",{style:{margin:"5px 0"}},be("span",{contentEditable:!1,style:{marginRight:"0.5em"}},be("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(i){var a=A.findPath(n,e),u={checked:i.target.checked};N.setNodes(n,u,{at:a})}}})),be("span",null,t));return o}},Mre=(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(t){return""},e.prototype.isActive=function(t){return!!A.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},e.prototype.exec=function(t,n){var r=this.isActive(t);N.setNodes(t,{type:r?"paragraph":"todo"})},e})(),zre={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=k(e);(t=t.filter(function(i){return!!oe.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:t}}},$re={renderElems:[Rre],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=k(e).find("li"),n=k('<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:[zre],menus:[{key:"todo",factory:function(){return new Mre}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(r){var o=e.selection;if(o&&L.isCollapsed(o)){var i=A.getSelectedNodeByType(e,"todo");if(i&&J.string(i).length===0)return void N.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},n}},Hre={type:"blockquote",renderElem:function(e,t,n){return be("blockquote",null,t)}},Vre={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);return(t=t.filter(function(o){return!!oe.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},Ure=(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(t){return""},e.prototype.isActive=function(t){return!!A.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!Xe(E.nodes(t,{match:function(n){var r=A.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.isActive(t)?"paragraph":"blockquote";N.setNodes(t,{type:r},{mode:"highest"})}},e})(),Wre={key:"blockquote",factory:function(){return new Ure}},Gre=ye([].slice),qre=E5("slice"),Kre=cr("species"),Ib=Se.Array,Xre=Math.max;Jt({target:"Array",proto:!0,forced:!qre},{slice:function(e,t){var n,r,o,i=oc(this),a=Gy(i),u=Vd(e,a),s=Vd(t===void 0?a:t,a);if(s0(i)&&(n=i.constructor,(w5(n)&&(n===Ib||s0(n.prototype))||yo(n)&&(n=n[Kre])===null)&&(n=void 0),n===Ib||n===void 0))return Gre(i,u,s);for(r=new(n===void 0?Ib:n)(Xre(s-u,0)),o=0;u<s;u++,o++)u in i&&iI(r,o,i[u]);return r.length=o,r}});var Zre={renderElems:[Hre],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[Vre],menus:[Wre],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(o==null)return t();var i=Xe(E.nodes(e,{match:function(c){return A.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=A.findPath(e,a),s=E.end(e,u);if(ke.equals(s,o.focus)){var l=J.string(a);if(l&&l.slice(-1)===`
|
|
102
|
+
`)return e.deleteBackward("character"),void N.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
|
|
103
|
+
`)},r}},Yre=(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(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Xe(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=k('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=k(a).text();t.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=t.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=k("<li>"+i+"</li>");r.append(a)}),r[0]},e})(),Jre={menus:[{key:"emotion",factory:function(){return new Yre},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Qre={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},eoe={selector:"font",preParseHtml:function(e){var t=k(e);if(sc(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",Qre[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},toe=ye("".indexOf);Jt({target:"String",proto:!0,forced:!gI("includes")},{includes:function(e){return!!~toe(Et(Fr(this)),Et(hI(e)),arguments.length>1?arguments[1]:void 0)}});var Oi,Vg,Kh=function(e){return e&&e.Math==Math&&e},Fe=Kh(typeof globalThis=="object"&&globalThis)||Kh(typeof window=="object"&&window)||Kh(typeof self=="object"&&self)||Kh(typeof i0=="object"&&i0)||(function(){return this})()||Function("return this")(),F5=Function.prototype,xO=F5.apply,noe=F5.bind,CO=F5.call,OI=typeof Reflect=="object"&&Reflect.apply||(noe?CO.bind(xO):function(){return CO.apply(xO,arguments)}),BI=Function.prototype,$E=BI.bind,HE=BI.call,roe=$E&&$E.bind(HE),Ft=$E?function(e){return e&&roe(HE,e)}:function(e){return e&&function(){return HE.apply(e,arguments)}},An=function(e){return typeof e=="function"},ur=function(e){try{return!!e()}catch{return!0}},Wn=!ur(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),of=Function.prototype.call,Do=of.bind?of.bind(of):function(){return of.apply(of,arguments)},SO={}.propertyIsEnumerable,AO=Object.getOwnPropertyDescriptor,ooe=AO&&!SO.call({1:2},1)?function(e){var t=AO(this,e);return!!t&&t.enumerable}:SO,T5={f:ooe},Ku=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ioe=Ft({}.toString),aoe=Ft("".slice),Su=function(e){return aoe(ioe(e),8,-1)},Lb=Fe.Object,uoe=Ft("".split),kI=ur(function(){return!Lb("z").propertyIsEnumerable(0)})?function(e){return Su(e)=="String"?uoe(e,""):Lb(e)}:Lb,soe=Fe.TypeError,_5=function(e){if(e==null)throw soe("Can't call method on "+e);return e},Po=function(e){return kI(_5(e))},Vr=function(e){return typeof e=="object"?e!==null:An(e)},yr={},OO=function(e){return An(e)?e:void 0},$p=function(e,t){return arguments.length<2?OO(yr[e])||OO(Fe[e]):yr[e]&&yr[e][t]||Fe[e]&&Fe[e][t]},FI=Ft({}.isPrototypeOf),Rb=$p("navigator","userAgent")||"",BO=Fe.process,kO=Fe.Deno,FO=BO&&BO.versions||kO&&kO.version,TO=FO&&FO.v8;TO&&(Vg=(Oi=TO.split("."))[0]>0&&Oi[0]<4?1:+(Oi[0]+Oi[1])),!Vg&&Rb&&(!(Oi=Rb.match(/Edge\/(\d+)/))||Oi[1]>=74)&&(Oi=Rb.match(/Chrome\/(\d+)/))&&(Vg=+Oi[1]);var f0=Vg,lo=!!Object.getOwnPropertySymbols&&!ur(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&f0&&f0<41}),j5=lo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",loe=Fe.Object,dl=j5?function(e){return typeof e=="symbol"}:function(e){var t=$p("Symbol");return An(t)&&FI(t.prototype,loe(e))},coe=Fe.String,foe=Fe.TypeError,TI=function(e){if(An(e))return e;throw foe((function(t){try{return coe(t)}catch{return"Object"}})(e)+" is not a function")},doe=Fe.TypeError,poe=Object.defineProperty,ta=Fe["__core-js_shared__"]||(function(e,t){try{poe(Fe,e,{value:t,configurable:!0,writable:!0})}catch{Fe[e]=t}return t})("__core-js_shared__",{}),ss=Hy(function(e){(e.exports=function(t,n){return ta[t]||(ta[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),hoe=Fe.Object,Hp=function(e){return hoe(_5(e))},goe=Ft({}.hasOwnProperty),Ke=Object.hasOwn||function(e,t){return goe(Hp(e),t)},voe=0,yoe=Math.random(),moe=Ft(1 .toString),d0=function(e){return"Symbol("+(e===void 0?"":e)+")_"+moe(++voe+yoe,36)},af=ss("wks"),Au=Fe.Symbol,_O=Au&&Au.for,boe=j5?Au:Au&&Au.withoutSetter||d0,fr=function(e){if(!Ke(af,e)||!lo&&typeof af[e]!="string"){var t="Symbol."+e;lo&&Ke(Au,e)?af[e]=Au[e]:af[e]=j5&&_O?_O(t):boe(t)}return af[e]},woe=Fe.TypeError,Eoe=fr("toPrimitive"),lc=function(e){var t=(function(n,r){if(!Vr(n)||dl(n))return n;var o,i,a=(o=n[Eoe])==null?void 0:TI(o);if(a){if(i=Do(a,n,r),!Vr(i)||dl(i))return i;throw woe("Can't convert object to primitive value")}return(function(u,s){var l,c;if(An(l=u.toString)&&!Vr(c=Do(l,u))||An(l=u.valueOf)&&!Vr(c=Do(l,u)))return c;throw doe("Can't convert object to primitive value")})(n)})(e,"string");return dl(t)?t:t+""},VE=Fe.document,Doe=Vr(VE)&&Vr(VE.createElement),_I=function(e){return Doe?VE.createElement(e):{}},jI=!Wn&&!ur(function(){return Object.defineProperty(_I("div"),"a",{get:function(){return 7}}).a!=7}),jO=Object.getOwnPropertyDescriptor,P5={f:Wn?jO:function(e,t){if(e=Po(e),t=lc(t),jI)try{return jO(e,t)}catch{}if(Ke(e,t))return Ku(!Do(T5.f,e,t),e[t])}},xoe=/#|\.prototype\./,Vp=function(e,t){var n=Soe[Coe(e)];return n==Ooe||n!=Aoe&&(An(t)?ur(t):!!t)},Coe=Vp.normalize=function(e){return String(e).replace(xoe,".").toLowerCase()},Soe=Vp.data={},Aoe=Vp.NATIVE="N",Ooe=Vp.POLYFILL="P",Boe=Vp,PO=Ft(Ft.bind),PI=function(e,t){return TI(e),t===void 0?e:PO?PO(e,t):function(){return e.apply(t,arguments)}},koe=Fe.String,Foe=Fe.TypeError,Xu=function(e){if(Vr(e))return e;throw Foe(koe(e)+" is not an object")},Toe=Fe.TypeError,NO=Object.defineProperty,ls={f:Wn?NO:function(e,t,n){if(Xu(e),t=lc(t),Xu(n),jI)try{return NO(e,t,n)}catch{}if("get"in n||"set"in n)throw Toe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},fo=Wn?function(e,t,n){return ls.f(e,t,Ku(1,n))}:function(e,t,n){return e[t]=n,e},_oe=P5.f,joe=function(e){var t=function(n,r,o){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,o)}return OI(e,this,arguments)};return t.prototype=e.prototype,t},Ii=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,y=f?Fe:d?Fe[c]:(Fe[c]||{}).prototype,v=f?yr:yr[c]||fo(yr,c,{})[c],g=v.prototype;for(o in t)n=!Boe(f?o:c+(d?".":"#")+o,e.forced)&&y&&Ke(y,o),a=v[o],n&&(u=e.noTargetGet?(l=_oe(y,o))&&l.value:y[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?PI(i,Fe):e.wrap&&n?joe(i):p&&An(i)?Ft(i):i,(e.sham||i&&i.sham||a&&a.sham)&&fo(s,"sham",!0),fo(v,o,s),p&&(Ke(yr,r=c+"Prototype")||fo(yr,r,{}),fo(yr[r],o,i),e.real&&g&&!g[o]&&fo(g,o,i)))},p0=Array.isArray||function(e){return Su(e)=="Array"},Poe=Math.ceil,Noe=Math.floor,N5=function(e){var t=+e;return t!=t||t===0?0:(t>0?Noe:Poe)(t)},Ioe=Math.min,Zy=function(e){return(t=e.length)>0?Ioe(N5(t),9007199254740991):0;var t},UE=function(e,t,n){var r=lc(t);r in e?ls.f(e,r,Ku(0,n)):e[r]=n},NI={};NI[fr("toStringTag")]="z";var I5=String(NI)==="[object z]",Loe=fr("toStringTag"),Roe=Fe.Object,Moe=Su((function(){return arguments})())=="Arguments",Yy=I5?Su:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=Roe(e),Loe))=="string"?n:Moe?Su(t):(r=Su(t))=="Object"&&An(t.callee)?"Arguments":r},zoe=Ft(Function.toString);An(ta.inspectSource)||(ta.inspectSource=function(e){return zoe(e)});var II=ta.inspectSource,LI=function(){},$oe=[],RI=$p("Reflect","construct"),L5=/^\s*(?:class|function)\b/,Hoe=Ft(L5.exec),Voe=!L5.exec(LI),uf=function(e){if(!An(e))return!1;try{return RI(LI,$oe,e),!0}catch{return!1}},Uoe=!RI||ur(function(){var e;return uf(uf.call)||!uf(Object)||!uf(function(){e=!0})||e})?function(e){if(!An(e))return!1;switch(Yy(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Voe||!!Hoe(L5,II(e))}:uf,Woe=fr("species"),IO=Fe.Array,MI=function(e,t){return new((function(n){var r;return p0(n)&&(r=n.constructor,(Uoe(r)&&(r===IO||p0(r.prototype))||Vr(r)&&(r=r[Woe])===null)&&(r=void 0)),r===void 0?IO:r})(e))(t===0?0:t)},Goe=fr("species"),zI=fr("isConcatSpreadable"),LO=Fe.TypeError,qoe=f0>=51||!ur(function(){var e=[];return e[zI]=!1,e.concat()[0]!==e}),Koe=f0>=51||!ur(function(){var e=[];return(e.constructor={})[Goe]=function(){return{foo:1}},e.concat(Boolean).foo!==1}),Xoe=function(e){if(!Vr(e))return!1;var t=e[zI];return t!==void 0?!!t:p0(e)};Ii({target:"Array",proto:!0,forced:!qoe||!Koe},{concat:function(e){var t,n,r,o,i,a=Hp(this),u=MI(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Xoe(i=t===-1?a:arguments[t])){if(s+(o=Zy(i))>9007199254740991)throw LO("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&UE(u,s,i[n])}else{if(s>=9007199254740991)throw LO("Maximum allowed index exceeded");UE(u,s++,i)}return u.length=s,u}});var Xh,Zoe=Fe.String,h0=function(e){if(Yy(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Zoe(e)},Yoe=Math.max,Joe=Math.min,WE=function(e,t){var n=N5(e);return n<0?Yoe(n+t,0):Joe(n,t)},Qoe=function(e){return function(t,n,r){for(var o=Po(t),i=Zy(o),a=WE(r,i);i>a;a++)if(a in o&&o[a]===n)return a||0;return-1}},eie={indexOf:Qoe()},Up={},tie=eie.indexOf,RO=Ft([].push),$I=function(e,t){var n,r=Po(e),o=0,i=[];for(n in r)!Ke(Up,n)&&Ke(r,n)&&RO(i,n);for(;t.length>o;)Ke(r,n=t[o++])&&(~tie(i,n)||RO(i,n));return i},g0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],R5=Object.keys||function(e){return $I(e,g0)},nie=Wn?Object.defineProperties:function(e,t){Xu(e);for(var n,r=Po(t),o=R5(t),i=o.length,a=0;i>a;)ls.f(e,n=o[a++],r[n]);return e},rie=$p("document","documentElement"),MO=ss("keys"),Jy=function(e){return MO[e]||(MO[e]=d0(e))},HI=Jy("IE_PROTO"),Mb=function(){},VI=function(e){return"<script>"+e+"<\/script>"},zO=function(e){e.write(VI("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ug=function(){try{Xh=new ActiveXObject("htmlfile")}catch{}var e,t;Ug=typeof document<"u"?document.domain&&Xh?zO(Xh):((t=_I("iframe")).style.display="none",rie.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(VI("document.F=Object")),e.close(),e.F):zO(Xh);for(var n=g0.length;n--;)delete Ug.prototype[g0[n]];return Ug()};Up[HI]=!0;var v0,ad,y0,Zu=Object.create||function(e,t){var n;return e!==null?(Mb.prototype=Xu(e),n=new Mb,Mb.prototype=null,n[HI]=e):n=Ug(),t===void 0?n:nie(n,t)},oie=g0.concat("length","prototype"),UI={f:Object.getOwnPropertyNames||function(e){return $I(e,oie)}},iie=Fe.Array,aie=Math.max,$O=UI.f,HO=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],WI={f:function(e){return HO&&Su(e)=="Window"?(function(t){try{return $O(t)}catch{return(function(n,r,o){for(var i=Zy(n),a=WE(void 0,i),u=WE(i,i),s=iie(aie(u-a,0)),l=0;a<u;a++,l++)UE(s,l,n[a]);return s.length=l,s})(HO)}})(e):$O(Po(e))}},zb={f:Object.getOwnPropertySymbols},uie=Ft([].slice),m0=function(e,t,n,r){fo(e,t,n)},M5={f:fr},sie=ls.f,Pt=function(e){var t=yr.Symbol||(yr.Symbol={});Ke(t,e)||sie(t,e,{value:M5.f(e)})},lie=I5?{}.toString:function(){return"[object "+Yy(this)+"]"},cie=ls.f,VO=fr("toStringTag"),b0=function(e,t,n,r){if(e){var o=n?e:e.prototype;Ke(o,VO)||cie(o,VO,{configurable:!0,value:t}),r&&!I5&&fo(o,"toString",lie)}},UO=Fe.WeakMap,fie=An(UO)&&/native code/.test(II(UO)),GE=Fe.TypeError,die=Fe.WeakMap;if(fie||ta.state){var Wa=ta.state||(ta.state=new die),pie=Ft(Wa.get),WO=Ft(Wa.has),hie=Ft(Wa.set);v0=function(e,t){if(WO(Wa,e))throw new GE("Object already initialized");return t.facade=e,hie(Wa,e,t),t},ad=function(e){return pie(Wa,e)||{}},y0=function(e){return WO(Wa,e)}}else{var js=Jy("state");Up[js]=!0,v0=function(e,t){if(Ke(e,js))throw new GE("Object already initialized");return t.facade=e,fo(e,js,t),t},ad=function(e){return Ke(e,js)?e[js]:{}},y0=function(e){return Ke(e,js)}}var cc={set:v0,get:ad,has:y0,enforce:function(e){return y0(e)?ad(e):v0(e,{})},getterFor:function(e){return function(t){var n;if(!Vr(t)||(n=ad(t)).type!==e)throw GE("Incompatible receiver, "+e+" required");return n}}},GO=Ft([].push),Bi=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,y=Hp(s),v=kI(y),g=PI(l,c),m=Zy(v),h=0,b=f||MI,w=t?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in v)&&(p=g(d=v[h],h,y),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:GO(w,d)}else switch(e){case 4:return!1;case 7:GO(w,d)}return i?-1:r||o?o:w}},Qy=[Bi(0),Bi(1),Bi(2),Bi(3),Bi(4),Bi(5),Bi(6),Bi(7)][0],Mn=Jy("hidden"),qO=fr("toPrimitive"),gie=cc.set,KO=cc.getterFor("Symbol"),Ur=Object.prototype,Mi=Fe.Symbol,Wi=Mi&&Mi.prototype,XO=Fe.TypeError,$b=Fe.QObject,sf=$p("JSON","stringify"),GI=P5.f,zi=ls.f,qI=WI.f,vie=T5.f,KI=Ft([].push),ui=ss("symbols"),Wp=ss("op-symbols"),Hb=ss("string-to-symbol-registry"),Vb=ss("symbol-to-string-registry"),yie=ss("wks"),Ub=!$b||!$b.prototype||!$b.prototype.findChild,qE=Wn&&ur(function(){return Zu(zi({},"a",{get:function(){return zi(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=GI(Ur,t);r&&delete Ur[t],zi(e,t,n),r&&e!==Ur&&zi(Ur,t,r)}:zi,Wb=function(e,t){var n=ui[e]=Zu(Wi);return gie(n,{type:"Symbol",tag:e,description:t}),Wn||(n.description=t),n},w0=function(e,t,n){e===Ur&&w0(Wp,t,n),Xu(e);var r=lc(t);return Xu(n),Ke(ui,r)?(n.enumerable?(Ke(e,Mn)&&e[Mn][r]&&(e[Mn][r]=!1),n=Zu(n,{enumerable:Ku(0,!1)})):(Ke(e,Mn)||zi(e,Mn,Ku(1,{})),e[Mn][r]=!0),qE(e,r,n)):zi(e,r,n)},ZO=function(e,t){Xu(e);var n=Po(t),r=R5(n).concat(KE(n));return Qy(r,function(o){Wn&&!Do(XI,n,o)||w0(e,o,n[o])}),e},XI=function(e){var t=lc(e),n=Do(vie,this,t);return!(this===Ur&&Ke(ui,t)&&!Ke(Wp,t))&&(!(n||!Ke(this,t)||!Ke(ui,t)||Ke(this,Mn)&&this[Mn][t])||n)},YO=function(e,t){var n=Po(e),r=lc(t);if(n!==Ur||!Ke(ui,r)||Ke(Wp,r)){var o=GI(n,r);return!o||!Ke(ui,r)||Ke(n,Mn)&&n[Mn][r]||(o.enumerable=!0),o}},JO=function(e){var t=qI(Po(e)),n=[];return Qy(t,function(r){Ke(ui,r)||Ke(Up,r)||KI(n,r)}),n},KE=function(e){var t=e===Ur,n=qI(t?Wp:Po(e)),r=[];return Qy(n,function(o){!Ke(ui,o)||t&&!Ke(Ur,o)||KI(r,ui[o])}),r};if(lo||(Wi=(Mi=function(){if(FI(Wi,this))throw XO("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?h0(arguments[0]):void 0,t=d0(e),n=function(r){this===Ur&&Do(n,Wp,r),Ke(this,Mn)&&Ke(this[Mn],t)&&(this[Mn][t]=!1),qE(this,t,Ku(1,r))};return Wn&&Ub&&qE(Ur,t,{configurable:!0,set:n}),Wb(t,e)}).prototype,m0(Wi,"toString",function(){return KO(this).tag}),m0(Mi,"withoutSetter",function(e){return Wb(d0(e),e)}),T5.f=XI,ls.f=w0,P5.f=YO,UI.f=WI.f=JO,zb.f=KE,M5.f=function(e){return Wb(fr(e),e)},Wn&&zi(Wi,"description",{configurable:!0,get:function(){return KO(this).description}})),Ii({global:!0,wrap:!0,forced:!lo,sham:!lo},{Symbol:Mi}),Qy(R5(yie),function(e){Pt(e)}),Ii({target:"Symbol",stat:!0,forced:!lo},{for:function(e){var t=h0(e);if(Ke(Hb,t))return Hb[t];var n=Mi(t);return Hb[t]=n,Vb[n]=t,n},keyFor:function(e){if(!dl(e))throw XO(e+" is not a symbol");if(Ke(Vb,e))return Vb[e]},useSetter:function(){Ub=!0},useSimple:function(){Ub=!1}}),Ii({target:"Object",stat:!0,forced:!lo,sham:!Wn},{create:function(e,t){return t===void 0?Zu(e):ZO(Zu(e),t)},defineProperty:w0,defineProperties:ZO,getOwnPropertyDescriptor:YO}),Ii({target:"Object",stat:!0,forced:!lo},{getOwnPropertyNames:JO,getOwnPropertySymbols:KE}),Ii({target:"Object",stat:!0,forced:ur(function(){zb.f(1)})},{getOwnPropertySymbols:function(e){return zb.f(Hp(e))}}),sf){var mie=!lo||ur(function(){var e=Mi();return sf([e])!="[null]"||sf({a:e})!="{}"||sf(Object(e))!="{}"});Ii({target:"JSON",stat:!0,forced:mie},{stringify:function(e,t,n){var r=uie(arguments),o=t;if((Vr(t)||e!==void 0)&&!dl(e))return p0(t)||(t=function(i,a){if(An(o)&&(a=Do(o,this,i,a)),!dl(a))return a}),r[1]=t,OI(sf,null,r)}})}if(!Wi[qO]){var bie=Wi.valueOf;m0(Wi,qO,function(e){return Do(bie,this)})}b0(Mi,"Symbol"),Up[Mn]=!0,Pt("asyncIterator"),Pt("hasInstance"),Pt("isConcatSpreadable"),Pt("iterator"),Pt("match"),Pt("matchAll"),Pt("replace"),Pt("search"),Pt("species"),Pt("split"),Pt("toPrimitive"),Pt("toStringTag"),Pt("unscopables"),b0(Fe.JSON,"JSON",!0);var Gi,QO,eB,wie=yr.Symbol,Ou={},ZI=Function.prototype,Eie=Wn&&Object.getOwnPropertyDescriptor,tB=Ke(ZI,"name"),Die={PROPER:tB&&(function(){}).name==="something",CONFIGURABLE:tB&&(!Wn||Wn&&Eie(ZI,"name").configurable)},xie=!ur(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),nB=Jy("IE_PROTO"),XE=Fe.Object,Cie=XE.prototype,ZE=xie?XE.getPrototypeOf:function(e){var t=Hp(e);if(Ke(t,nB))return t[nB];var n=t.constructor;return An(n)&&t instanceof n?n.prototype:t instanceof XE?Cie:null},YE=fr("iterator"),YI=!1;[].keys&&("next"in(eB=[].keys())?(QO=ZE(ZE(eB)))!==Object.prototype&&(Gi=QO):YI=!0);var Sie=Gi==null||ur(function(){var e={};return Gi[YE].call(e)!==e});Gi=Sie?{}:Zu(Gi),An(Gi[YE])||m0(Gi,YE,function(){return this});var JI={IteratorPrototype:Gi,BUGGY_SAFARI_ITERATORS:YI},Aie=JI.IteratorPrototype,Oie=function(){return this};Fe.String,Fe.TypeError,Object.setPrototypeOf||"__proto__"in{}&&(function(){var e={};try{Ft(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch{}})();var Bie=Die.PROPER,Gb=JI.BUGGY_SAFARI_ITERATORS,kie=fr("iterator"),Fie=function(){return this},QI=function(e,t,n,r,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=Zu(Aie,{next:Ku(1,h)}),b0(g,w,!1,!0),Ou[w]=Oie})(n,t,r);var u,s,l=function(g){if(g===o&&y)return y;if(!Gb&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[kie]||d["@@iterator"]||o&&d[o],y=!Gb&&p||l(o),v=t=="Array"&&d.entries||p;return v&&(u=ZE(v.call(new e)))!==Object.prototype&&u.next&&(b0(u,c,!0,!0),Ou[c]=Fie),Bie&&o=="values"&&p&&p.name!=="values"&&(f=!0,y=function(){return Do(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},Ii({target:t,proto:!0,forced:Gb||f},s)),Ou[t]=y,s},Tie=cc.set,_ie=cc.getterFor("Array Iterator");QI(Array,"Array",function(e,t){Tie(this,{type:"Array Iterator",target:Po(e),index:0,kind:t})},function(){var e=_ie(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"),Ou.Arguments=Ou.Array;var rB=fr("toStringTag");for(var qb 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 oB=Fe[qb],Kb=oB&&oB.prototype;Kb&&Yy(Kb)!==rB&&fo(Kb,rB,qb),Ou[qb]=Ou.Array}var jie=wie;Pt("asyncDispose"),Pt("dispose"),Pt("matcher"),Pt("metadata"),Pt("observable"),Pt("patternMatch"),Pt("replaceAll");var Zh=jie,Pie=Ft("".charAt),iB=Ft("".charCodeAt),Nie=Ft("".slice),Iie=function(e){return function(t,n){var r,o,i=h0(_5(t)),a=N5(n),u=i.length;return a<0||a>=u?"":(r=iB(i,a))<55296||r>56319||a+1===u||(o=iB(i,a+1))<56320||o>57343?Pie(i,a):Nie(i,a,a+2)}},Lie=Iie(),Rie=cc.set,Mie=cc.getterFor("String Iterator");QI(String,"String",function(e){Rie(this,{type:"String Iterator",string:h0(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=Lie(n,r),t.index+=e.length,{value:e,done:!1})});var zie=M5.f("iterator"),$ie=Hy(function(e){function t(n){return typeof Zh=="function"&&typeof zie=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof Zh=="function"&&r.constructor===Zh&&r!==Zh.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),eL=(function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e})($ie),Hie=Wy.EXISTS,Vie=ic.f,tL=Function.prototype,Uie=ye(tL.toString),nL=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Wie=ye(nL.exec);Yr&&!Hie&&Vie(tL,"name",{configurable:!0,get:function(){try{return Wie(nL,Uie(this))[1]}catch{return""}}});var rL=(function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.mark,r=E.marks(t);return r&&r[n]?r[n]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!Xe(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0])},e.prototype.exec=function(t,n){var r=this.mark;n?t.addMark(r,n):t.removeMark(r)},e})(),Gie=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("fontSize.title"),n.iconSvg=yne,n.mark="fontSize",n}return bt(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:Q("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(eL(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},t})(rL),qie=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("fontFamily.title"),n.iconSvg=mne,n.mark="fontFamily",n.selectPanelWidth=150,n}return bt(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:Q("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(eL(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},t})(rL),Kie={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&qu(i,{fontSize:r}),o&&qu(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!oe.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((A5(t)||sc(n=k(t))!=="span")&&(n=k("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),uc(n)):t},preParseHtml:[eoe],parseStyleHtml:function(e,t,n){var r=k(e);if(!oe.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=Kr(r,"font-size"),s=a.find(function(p){return p.value&&p.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=Kr(r,"font-family").replace(/"/g,""),d=c.find(function(p){return p.value&&p.value===f})||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new Gie},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 qie},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Xie={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=k(e),n=Kr(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]}},oL=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var n=Xe(E.nodes(t,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":Xe(r,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Xe(E.nodes(t,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e})(),Zie=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("indent.decrease"),n.iconSvg=bne,n}return bt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},t.prototype.exec=function(n,r){N.setNodes(n,{indent:null},{match:function(o){return ce.isElement(o)}})},t})(oL),Yie=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("indent.increase"),n.iconSvg=wne,n}return bt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},t.prototype.exec=function(n,r){N.setNodes(n,{indent:"2em"},{match:function(o){return ce.isElement(o)},mode:"highest"})},t})(oL),Jie={renderStyle:function(e,t){if(!ce.isElement(e))return t;var n=e.indent,r=t;return n&&qu(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!ce.isElement(e))return t;var n=e.indent;if(!n)return t;var r=k(t);return r.css("text-indent",n),uc(r)},preParseHtml:[Xie],parseStyleHtml:function(e,t,n){var r=k(e);if(!ce.isElement(t))return t;var o=t,i=Kr(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Yie}},{key:"delIndent",factory:function(){return new Zie}}]},em=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Xe(E.nodes(t,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},e})(),Qie=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("justify.left"),n.iconSvg=Ene,n}return bt(t,e),t.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"left"},{match:function(o){return ce.isElement(o)&&!n.isInline(o)}})},t})(em),eae=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("justify.right"),n.iconSvg=Dne,n}return bt(t,e),t.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"right"},{match:function(o){return ce.isElement(o)&&!n.isInline(o)}})},t})(em),tae=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("justify.center"),n.iconSvg=xne,n}return bt(t,e),t.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"center"},{match:function(o){return ce.isElement(o)&&!n.isInline(o)}})},t})(em),nae=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("justify.justify"),n.iconSvg=Cne,n}return bt(t,e),t.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"justify"},{match:function(o){return ce.isElement(o)&&!n.isInline(o)}})},t})(em),rae={renderStyle:function(e,t){if(!ce.isElement(e))return t;var n=e.textAlign,r=t;return n&&qu(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!ce.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=k(t);return r.css("text-align",n),uc(r)},parseStyleHtml:function(e,t,n){var r=k(e);if(!ce.isElement(t))return t;var o=t,i=Kr(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Qie}},{key:"justifyRight",factory:function(){return new eae}},{key:"justifyCenter",factory:function(){return new tae}},{key:"justifyJustify",factory:function(){return new nae}}]},oae=(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(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:Q("lineHeight.default"),value:""}),o.forEach(function(a){n.push({text:a,value:a})});var i=this.getValue(t);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},e.prototype.getMatchNode=function(t){var n=Xe(E.nodes(t,{match:function(r){var o=A.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getMatchNode(t);return n==null?"":ce.isElement(n)&&n.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,n){N.setNodes(t,{lineHeight:n.toString()},{mode:"highest"})},e})(),iae={renderStyle:function(e,t){if(!ce.isElement(e))return t;var n=e.lineHeight,r=t;return n&&qu(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!ce.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=k(t);return r.css("line-height",n),uc(r)},parseStyleHtml:function(e,t,n){var r=k(e);if(!ce.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=Kr(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new oae},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},aae=(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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.redo=="function"&&t.redo()},e})(),uae=(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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.undo=="function"&&t.undo()},e})(),sae={menus:[{key:"redo",factory:function(){return new aae}},{key:"undo",factory:function(){return new uae}}]},lae={type:"divider",renderElem:function(e,t,n){return _l("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:A.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[_l("hr")])}},cae=(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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var r=A.getNodeType(n);return r==="table"||r==="pre"||void 0})},e.prototype.exec=function(t,n){N.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e})(),fae={renderElems:[lae],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 cae}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="divider"||t(o)},r.normalizeNode=function(o){var i=Xe(o,2),a=i[0],u=i[1];if(A.getNodeType(a)!=="divider")return n([a,u]);A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]})},r}},dae=qy.map;Jt({target:"Array",proto:!0,forced:!E5("map")},{map:function(e){return dae(this,e,arguments.length>1?arguments[1]:void 0)}});var pae=ye([].join),hae=Vy!=Object,gae=sI("join",",");Jt({target:"Array",proto:!0,forced:hae||!gae},{join:function(e){return pae(oc(this),e===void 0?",":e)}});var vae=(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(t){var n=A.getSelectedNodeByType(t,"code");if(n==null)return null;var r=A.getParentNode(t,n);return r==null||A.getNodeType(r)!=="pre"?null:n},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);return n==null?"":n.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var n=A.getSelectedElems(t);return!!n.some(function(r){return t.isVoid(r)})||!n.some(function(r){var o=A.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},e.prototype.exec=function(t,n){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,n.toString())},e.prototype.changeToPlainText=function(t){var n=this.getSelectCodeElem(t);if(n!=null){var r=J.string(n);N.removeNodes(t,{mode:"highest"});var o=r.split(`
|
|
104
|
+
`).map(function(i){return{type:"paragraph",children:[{text:i}]}});N.insertNodes(t,o,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,o,i=[],a=E.nodes(t,{match:function(f){return t.children.includes(f)},universal:!0});try{for(var u=uI(a),s=u.next();!s.done;s=u.next()){var l=Xe(s.value,1)[0];l&&i.push(J.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}N.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
|
|
105
|
+
`)}]}]};N.insertNodes(t,c,{mode:"highest"})},e})(),yae={key:"codeBlock",factory:function(){return new vae}};Jt({target:"String",proto:!0,forced:Gf("anchor")},{anchor:function(e){return Wf(this,"a","name",e)}}),C5("match",function(e,t,n){return[function(r){var o=Fr(this),i=r==null?void 0:Uy(r,e);return i?Nt(i,r,o):new RegExp(r)[e](Et(o))},function(r){var o=rr(this),i=Et(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return Wd(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Wd(o,i))!==null;){var f=Et(s[0]);l[c]=f,f===""&&(o.lastIndex=S5(i,Lp(o.lastIndex),u)),c++}return c===0?null:l}]});var mae={type:"pre",renderElem:function(e,t,n){return be("pre",null,t)}},bae={type:"code",renderElem:function(e,t,n){return be("code",null,t)}},wae={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);return(t=t.filter(function(o){return A.getNodeType(o)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(o){return A.getNodeType(o)==="code"})}}},Eae={menus:[yae],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var i=A.getSelectedNodeByType(o,"code");if(i!=null){var a=(function(l,c){var f=c.selection;if(f==null)return"";var d=J.string(l),p=f.anchor.offset,y=d.slice(0,p).split(`
|
|
106
|
+
`),v=y.length;return v===0?"":y[v-1]})(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
|
|
107
|
+
`+s)}}o.insertText(`
|
|
108
|
+
`)}else t()},o.normalizeNode=function(i){var a=Xe(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&N.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(o,u)&&N.insertNodes(o,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(N.unwrapNodes(o),N.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([u,s])},o.insertData=function(i){if(A.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");E.insertText(o,a)}else r(i)},o},renderElems:[mae,bae],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=k(e);if(sc(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:k(e)[0].textContent||""}]}}},wae]},Dae=(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(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e})(),xae={menus:[{key:"fullScreen",factory:function(){return new Dae}}]},Cae=(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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!L.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var o=[r.anchor.path[0]];N.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(E.start(t,o))}},e})(),Sae=[Nne,pre,Kie,Jie,rae,iae,Lre,fae,Jre,Cre,Eae,Zre,sre,one,$re,sae,xae,{menus:[{key:"enter",factory:function(){return new Cae}}]}];qn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),qn("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var aB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function z5(e){var t={exports:{}};return e(t,t.exports),t.exports}var ki,Wg,Yh=function(e){return e&&e.Math==Math&&e},we=Yh(typeof globalThis=="object"&&globalThis)||Yh(typeof window=="object"&&window)||Yh(typeof self=="object"&&self)||Yh(typeof aB=="object"&&aB)||(function(){return this})()||Function("return this")(),iL=Function.prototype,JE=iL.bind,QE=iL.call,Aae=JE&&JE.bind(QE),Pe=JE?function(e){return e&&Aae(QE,e)}:function(e){return e&&function(){return QE.apply(e,arguments)}},At=function(e){try{return!!e()}catch{return!0}},Oae=Pe({}.toString),Bae=Pe("".slice),ni=function(e){return Bae(Oae(e),8,-1)},Xb=we.Object,kae=Pe("".split),aL=At(function(){return!Xb("z").propertyIsEnumerable(0)})?function(e){return ni(e)=="String"?kae(e,""):Xb(e)}:Xb,Fae=we.TypeError,tm=function(e){if(e==null)throw Fae("Can't call method on "+e);return e},fc=function(e){return aL(tm(e))},Tae=Object.defineProperty,$5=function(e,t){try{Tae(we,e,{value:t,configurable:!0,writable:!0})}catch{we[e]=t}return t},na=we["__core-js_shared__"]||$5("__core-js_shared__",{}),H5=z5(function(e){(e.exports=function(t,n){return na[t]||(na[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),_ae=we.Object,Gp=function(e){return _ae(tm(e))},jae=Pe({}.hasOwnProperty),Qt=Object.hasOwn||function(e,t){return jae(Gp(e),t)},Pae=0,Nae=Math.random(),Iae=Pe(1 .toString),V5=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Iae(++Pae+Nae,36)},Tt=function(e){return typeof e=="function"},Lae=function(e){return Tt(e)?e:void 0},qp=function(e,t){return arguments.length<2?Lae(we[e]):we[e]&&we[e][t]},Zb=qp("navigator","userAgent")||"",uB=we.process,sB=we.Deno,lB=uB&&uB.versions||sB&&sB.version,cB=lB&&lB.v8;cB&&(Wg=(ki=cB.split("."))[0]>0&&ki[0]<4?1:+(ki[0]+ki[1])),!Wg&&Zb&&(!(ki=Zb.match(/Edge\/(\d+)/))||ki[1]>=74)&&(ki=Zb.match(/Chrome\/(\d+)/))&&(Wg=+ki[1]);var Jh,e6=Wg,t6=!!Object.getOwnPropertySymbols&&!At(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&e6&&e6<41}),U5=t6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",lf=H5("wks"),Bu=we.Symbol,fB=Bu&&Bu.for,Rae=U5?Bu:Bu&&Bu.withoutSetter||V5,hn=function(e){if(!Qt(lf,e)||!t6&&typeof lf[e]!="string"){var t="Symbol."+e;t6&&Qt(Bu,e)?lf[e]=Bu[e]:lf[e]=U5&&fB?fB(t):Rae(t)}return lf[e]},kt=function(e){return typeof e=="object"?e!==null:Tt(e)},Mae=we.String,zae=we.TypeError,Kn=function(e){if(kt(e))return e;throw zae(Mae(e)+" is not an object")},ba=!At(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),n6=we.document,$ae=kt(n6)&&kt(n6.createElement),W5=function(e){return $ae?n6.createElement(e):{}},uL=!ba&&!At(function(){return Object.defineProperty(W5("div"),"a",{get:function(){return 7}}).a!=7}),cf=Function.prototype.call,an=cf.bind?cf.bind(cf):function(){return cf.apply(cf,arguments)},E0=Pe({}.isPrototypeOf),Hae=we.Object,Yb=U5?function(e){return typeof e=="symbol"}:function(e){var t=qp("Symbol");return Tt(t)&&E0(t.prototype,Hae(e))},Vae=we.String,r6=function(e){try{return Vae(e)}catch{return"Object"}},Uae=we.TypeError,G5=function(e){if(Tt(e))return e;throw Uae(r6(e)+" is not a function")},Gd=function(e,t){var n=e[t];return n==null?void 0:G5(n)},Wae=we.TypeError,Gae=we.TypeError,qae=hn("toPrimitive"),q5=function(e){var t=(function(n,r){if(!kt(n)||Yb(n))return n;var o,i=Gd(n,qae);if(i){if(o=an(i,n,r),!kt(o)||Yb(o))return o;throw Gae("Can't convert object to primitive value")}return(function(a,u){var s,l;if(Tt(s=a.toString)&&!kt(l=an(s,a))||Tt(s=a.valueOf)&&!kt(l=an(s,a)))return l;throw Wae("Can't convert object to primitive value")})(n)})(e,"string");return Yb(t)?t:t+""},Kae=we.TypeError,dB=Object.defineProperty,cs={f:ba?dB:function(e,t,n){if(Kn(e),t=q5(t),Kn(n),uL)try{return dB(e,t,n)}catch{}if("get"in n||"set"in n)throw Kae("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Xae=Math.ceil,Zae=Math.floor,Kp=function(e){var t=+e;return t!=t||t===0?0:(t>0?Zae:Xae)(t)},Yae=Math.max,Jae=Math.min,o6=function(e,t){var n=Kp(e);return n<0?Yae(n+t,0):Jae(n,t)},Qae=Math.min,sL=function(e){return e>0?Qae(Kp(e),9007199254740991):0},dc=function(e){return sL(e.length)},pB=function(e){return function(t,n,r){var o,i=fc(t),a=dc(i),u=o6(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},lL={includes:pB(!0),indexOf:pB(!1)},nm={},eue=lL.indexOf,hB=Pe([].push),cL=function(e,t){var n,r=fc(e),o=0,i=[];for(n in r)!Qt(nm,n)&&Qt(r,n)&&hB(i,n);for(;t.length>o;)Qt(r,n=t[o++])&&(~eue(i,n)||hB(i,n));return i},D0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tue=Object.keys||function(e){return cL(e,D0)},nue=ba?Object.defineProperties:function(e,t){Kn(e);for(var n,r=fc(t),o=tue(t),i=o.length,a=0;i>a;)cs.f(e,n=o[a++],r[n]);return e},rue=qp("document","documentElement"),gB=H5("keys"),K5=function(e){return gB[e]||(gB[e]=V5(e))},fL=K5("IE_PROTO"),Jb=function(){},dL=function(e){return"<script>"+e+"<\/script>"},vB=function(e){e.write(dL("")),e.close();var t=e.parentWindow.Object;return e=null,t},Gg=function(){try{Jh=new ActiveXObject("htmlfile")}catch{}var e,t;Gg=typeof document<"u"?document.domain&&Jh?vB(Jh):((t=W5("iframe")).style.display="none",rue.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(dL("document.F=Object")),e.close(),e.F):vB(Jh);for(var n=D0.length;n--;)delete Gg.prototype[D0[n]];return Gg()};nm[fL]=!0;var X5=Object.create||function(e,t){var n;return e!==null?(Jb.prototype=Kn(e),n=new Jb,Jb.prototype=null,n[fL]=e):n=Gg(),t===void 0?n:nue(n,t)},i6=hn("unscopables"),a6=Array.prototype;a6[i6]==null&&cs.f(a6,i6,{configurable:!0,value:X5(null)});var ud=function(e){a6[i6][e]=!0},zl={},oue=Pe(Function.toString);Tt(na.inspectSource)||(na.inspectSource=function(e){return oue(e)});var x0,sd,C0,Z5=na.inspectSource,yB=we.WeakMap,pL=Tt(yB)&&/native code/.test(Z5(yB)),rm=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ra=ba?function(e,t,n){return cs.f(e,t,rm(1,n))}:function(e,t,n){return e[t]=n,e},u6=we.TypeError,iue=we.WeakMap;if(pL||na.state){var Ga=na.state||(na.state=new iue),aue=Pe(Ga.get),mB=Pe(Ga.has),uue=Pe(Ga.set);x0=function(e,t){if(mB(Ga,e))throw new u6("Object already initialized");return t.facade=e,uue(Ga,e,t),t},sd=function(e){return aue(Ga,e)||{}},C0=function(e){return mB(Ga,e)}}else{var Ps=K5("state");nm[Ps]=!0,x0=function(e,t){if(Qt(e,Ps))throw new u6("Object already initialized");return t.facade=e,ra(e,Ps,t),t},sd=function(e){return Qt(e,Ps)?e[Ps]:{}},C0=function(e){return Qt(e,Ps)}}var ku,bB,wB,Bo={set:x0,get:sd,has:C0,enforce:function(e){return C0(e)?sd(e):x0(e,{})},getterFor:function(e){return function(t){var n;if(!kt(t)||(n=sd(t)).type!==e)throw u6("Incompatible receiver, "+e+" required");return n}}},EB={}.propertyIsEnumerable,DB=Object.getOwnPropertyDescriptor,sue={f:DB&&!EB.call({1:2},1)?function(e){var t=DB(this,e);return!!t&&t.enumerable}:EB},xB=Object.getOwnPropertyDescriptor,hL={f:ba?xB:function(e,t){if(e=fc(e),t=q5(t),uL)try{return xB(e,t)}catch{}if(Qt(e,t))return rm(!an(sue.f,e,t),e[t])}},gL=Function.prototype,lue=ba&&Object.getOwnPropertyDescriptor,CB=Qt(gL,"name"),Y5={PROPER:CB&&(function(){}).name==="something",CONFIGURABLE:CB&&(!ba||ba&&lue(gL,"name").configurable)},si=z5(function(e){var t=Y5.CONFIGURABLE,n=Bo.get,r=Bo.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Tt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Qt(u,"name")||t&&u.name!==p)&&ra(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==we?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ra(i,a,u)):f?i[a]=u:$5(a,u)})(Function.prototype,"toString",function(){return Tt(this)&&n(this).source||Z5(this)})}),cue=D0.concat("length","prototype"),S0={f:Object.getOwnPropertyNames||function(e){return cL(e,cue)}},fue={f:Object.getOwnPropertySymbols},due=Pe([].concat),pue=qp("Reflect","ownKeys")||function(e){var t=S0.f(Kn(e)),n=fue.f;return n?due(t,n(e)):t},hue=function(e,t){for(var n=pue(t),r=cs.f,o=hL.f,i=0;i<n.length;i++){var a=n[i];Qt(e,a)||r(e,a,o(t,a))}},gue=/#|\.prototype\./,Xp=function(e,t){var n=yue[vue(e)];return n==bue||n!=mue&&(Tt(t)?At(t):!!t)},vue=Xp.normalize=function(e){return String(e).replace(gue,".").toLowerCase()},yue=Xp.data={},mue=Xp.NATIVE="N",bue=Xp.POLYFILL="P",s6=Xp,wue=hL.f,wa=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?we:l?we[u]||$5(u,{}):(we[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=wue(n,r))&&a.value:n[r],!s6(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;hue(i,o)}(e.sham||o&&o.sham)&&ra(i,"sham",!0),si(n,r,i,e)}},Eue=!At(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),SB=K5("IE_PROTO"),l6=we.Object,Due=l6.prototype,A0=Eue?l6.getPrototypeOf:function(e){var t=Gp(e);if(Qt(t,SB))return t[SB];var n=t.constructor;return Tt(n)&&t instanceof n?n.prototype:t instanceof l6?Due:null},c6=hn("iterator"),vL=!1;[].keys&&("next"in(wB=[].keys())?(bB=A0(A0(wB)))!==Object.prototype&&(ku=bB):vL=!0);var xue=ku==null||At(function(){var e={};return ku[c6].call(e)!==e});xue&&(ku={}),Tt(ku[c6])||si(ku,c6,function(){return this});var J5={IteratorPrototype:ku,BUGGY_SAFARI_ITERATORS:vL},Cue=cs.f,AB=hn("toStringTag"),f6=function(e,t,n){e&&!Qt(e=n?e:e.prototype,AB)&&Cue(e,AB,{configurable:!0,value:t})},Sue=J5.IteratorPrototype,Aue=function(){return this},Oue=we.String,Bue=we.TypeError,O0=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=Pe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Kn(r),(function(i){if(typeof i=="object"||Tt(i))return i;throw Bue("Can't set "+Oue(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),kue=Y5.PROPER,Fue=Y5.CONFIGURABLE,OB=J5.IteratorPrototype,Qb=J5.BUGGY_SAFARI_ITERATORS,ff=hn("iterator"),Tue=function(){return this},yL=function(e,t,n,r,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=X5(Sue,{next:rm(1,h)}),f6(g,w,!1),zl[w]=Aue})(n,t,r);var u,s,l=function(g){if(g===o&&y)return y;if(!Qb&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[ff]||d["@@iterator"]||o&&d[o],y=!Qb&&p||l(o),v=t=="Array"&&d.entries||p;return v&&(u=A0(v.call(new e)))!==Object.prototype&&u.next&&(A0(u)!==OB&&(O0?O0(u,OB):Tt(u[ff])||si(u,ff,Tue)),f6(u,c,!0)),kue&&o=="values"&&p&&p.name!=="values"&&(Fue?ra(d,"name","values"):(f=!0,y=function(){return an(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},wa({target:t,proto:!0,forced:Qb||f},s)),d[ff]!==y&&si(d,ff,y,{name:o}),zl[t]=y,s},_ue=Bo.set,jue=Bo.getterFor("Array Iterator"),qf=yL(Array,"Array",function(e,t){_ue(this,{type:"Array Iterator",target:fc(e),index:0,kind:t})},function(){var e=jue(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");zl.Arguments=zl.Array,ud("keys"),ud("values"),ud("entries");var mL={};mL[hn("toStringTag")]="z";var Q5=String(mL)==="[object z]",Pue=hn("toStringTag"),Nue=we.Object,Iue=ni((function(){return arguments})())=="Arguments",om=Q5?ni:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=Nue(e),Pue))=="string"?n:Iue?ni(t):(r=ni(t))=="Object"&&Tt(t.callee)?"Arguments":r},Lue=Q5?{}.toString:function(){return"[object "+om(this)+"]"};Q5||si(Object.prototype,"toString",Lue,{unsafe:!0});var Rue=we.String,qo=function(e){if(om(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Rue(e)},Mue=Pe("".charAt),BB=Pe("".charCodeAt),zue=Pe("".slice),$ue=function(e){return function(t,n){var r,o,i=qo(tm(t)),a=Kp(n),u=i.length;return a<0||a>=u?"":(r=BB(i,a))<55296||r>56319||a+1===u||(o=BB(i,a+1))<56320||o>57343?Mue(i,a):zue(i,a,a+2)}},bL={charAt:$ue()},Hue=bL.charAt,Vue=Bo.set,Uue=Bo.getterFor("String Iterator");yL(String,"String",function(e){Vue(this,{type:"String Iterator",string:qo(e),index:0})},function(){var e,t=Uue(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Hue(n,r),t.index+=e.length,{value:e,done:!1})});var d6=function(e,t,n){for(var r in t)si(e,r,t[r],n);return e},Wue=we.Array,Gue=Math.max,kB=S0.f,FB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],que={f:function(e){return FB&&ni(e)=="Window"?(function(t){try{return kB(t)}catch{return(function(n,r,o){for(var i,a,u,s,l=dc(n),c=o6(void 0,l),f=o6(l,l),d=Wue(Gue(f-c,0)),p=0;c<f;c++,p++)i=d,a=p,u=n[c],(s=q5(a))in i?cs.f(i,s,rm(0,u)):i[s]=u;return d.length=p,d})(FB)}})(e):kB(fc(e))}},TB=At(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Qh=Object.isExtensible,cu=At(function(){Qh(1)})||TB?function(e){return!!kt(e)&&(!TB||ni(e)!="ArrayBuffer")&&(!Qh||Qh(e))}:Qh,Kue=!At(function(){return Object.isExtensible(Object.preventExtensions({}))}),eD=z5(function(e){var t=cs.f,n=!1,r=V5("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=S0.f,s=Pe([].splice),l={};l[r]=1,u(l).length&&(S0.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},wa({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:que.f}))},fastKey:function(u,s){if(!kt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Qt(u,r)){if(!cu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Qt(u,r)){if(!cu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Kue&&n&&cu(u)&&!Qt(u,r)&&i(u),u}};nm[r]=!0}),_B=Pe(Pe.bind),tD=function(e,t){return G5(e),t===void 0?e:_B?_B(e,t):function(){return e.apply(t,arguments)}},Xue=hn("iterator"),Zue=Array.prototype,Yue=hn("iterator"),jB=function(e){if(e!=null)return Gd(e,Yue)||Gd(e,"@@iterator")||zl[om(e)]},Jue=we.TypeError,PB=function(e,t,n){var r,o;Kn(e);try{if(!(r=Gd(e,"return"))){if(t==="throw")throw n;return n}r=an(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return Kn(r),n},Que=we.TypeError,qg=function(e,t){this.stopped=e,this.result=t},NB=qg.prototype,wL=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),v=tD(t,f),g=function(h){return r&&PB(r,"normal",h),new qg(!0,h)},m=function(h){return d?(Kn(h),y?v(h[0],h[1],g):v(h[0],h[1])):y?v(h,g):v(h)};if(p)r=e;else{if(!(o=jB(e)))throw Que(r6(e)+" is not iterable");if((c=o)!==void 0&&(zl.Array===c||Zue[Xue]===c)){for(i=0,a=dc(e);a>i;i++)if((u=m(e[i]))&&E0(NB,u))return u;return new qg(!1)}r=(function(h,b){var w=arguments.length<2?jB(h):b;if(G5(w))return Kn(an(w,h));throw Jue(r6(h)+" is not iterable")})(e,o)}for(s=r.next;!(l=an(s,r)).done;){try{u=m(l.value)}catch(h){PB(r,"throw",h)}if(typeof u=="object"&&u&&E0(NB,u))return u}return new qg(!1)},ese=we.TypeError,EL=function(e,t){if(E0(t,e))return e;throw ese("Incorrect invocation")},DL=hn("iterator"),xL=!1;try{var tse=0,IB={next:function(){return{done:!!tse++}},return:function(){xL=!0}};IB[DL]=function(){return this},Array.from(IB,function(){throw 2})}catch{}var p6=Array.isArray||function(e){return ni(e)=="Array"},CL=function(){},nse=[],SL=qp("Reflect","construct"),nD=/^\s*(?:class|function)\b/,rse=Pe(nD.exec),ose=!nD.exec(CL),df=function(e){if(!Tt(e))return!1;try{return SL(CL,nse,e),!0}catch{return!1}},ise=!SL||At(function(){var e;return df(df.call)||!df(Object)||!df(function(){e=!0})||e})?function(e){if(!Tt(e))return!1;switch(om(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ose||!!rse(nD,Z5(e))}:df,ase=hn("species"),LB=we.Array,AL=function(e,t){return new((function(n){var r;return p6(n)&&(r=n.constructor,(ise(r)&&(r===LB||p6(r.prototype))||kt(r)&&(r=r[ase])===null)&&(r=void 0)),r===void 0?LB:r})(e))(t===0?0:t)},RB=Pe([].push),e2=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,y=Gp(s),v=aL(y),g=tD(l,c),m=dc(v),h=0,b=f||AL,w=t?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in v)&&(p=g(d=v[h],h,y),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:RB(w,d)}else switch(e){case 4:return!1;case 7:RB(w,d)}return i?-1:r||o?o:w}},rD={filter:e2(2),find:e2(5),findIndex:e2(6)},eg=eD.getWeakData,use=Bo.set,sse=Bo.getterFor,lse=rD.find,cse=rD.findIndex,fse=Pe([].splice),dse=0,tg=function(e){return e.frozen||(e.frozen=new OL)},OL=function(){this.entries=[]},t2=function(e,t){return lse(e.entries,function(n){return n[0]===t})};OL.prototype={get:function(e){var t=t2(this,e);if(t)return t[1]},has:function(e){return!!t2(this,e)},set:function(e,t){var n=t2(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=cse(this.entries,function(n){return n[0]===e});return~t&&fse(this.entries,t,1),!!~t}};var pf,BL={getConstructor:function(e,t,n,r){var o=e(function(s,l){EL(s,i),use(s,{type:t,id:dse++,frozen:void 0}),l!=null&&wL(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=sse(t),u=function(s,l,c){var f=a(s),d=eg(Kn(l),!0);return d===!0?tg(f).set(l,c):d[f.id]=c,s};return d6(i,{delete:function(s){var l=a(this);if(!kt(s))return!1;var c=eg(s);return c===!0?tg(l).delete(s):c&&Qt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!kt(s))return!1;var c=eg(s);return c===!0?tg(l).has(s):c&&Qt(c,l.id)}}),d6(i,n?{get:function(s){var l=a(this);if(kt(s)){var c=eg(s);return c===!0?tg(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},ng=Bo.enforce,pse=!we.ActiveXObject&&"ActiveXObject"in we,kL=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},hse=(function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=we[e],u=a&&a.prototype,s=a,l={},c=function(g){var m=Pe(u[g]);si(u,g,g=="add"?function(h){return m(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!kt(h))&&m(this,h===0?0:h)}:g=="get"?function(h){return o&&!kt(h)?void 0:m(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!kt(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(s6(e,!Tt(a)||!(o||u.forEach&&!At(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,i),eD.enable();else if(s6(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=At(function(){f.has(1)}),y=(function(g,m){if(!xL)return!1;var h=!1;try{var b={};b[DL]=function(){return{next:function(){return{done:h=!0}}}},(function(w){new a(w)})(b)}catch{}return h})(),v=!o&&At(function(){for(var g=new a,m=5;m--;)g[i](m,m);return!g.has(-0)});y||((s=t(function(g,m){EL(g,u);var h=(function(b,w,D){var C,x;return O0&&Tt(C=w.constructor)&&C!==D&&kt(x=C.prototype)&&x!==D.prototype&&O0(b,x),b})(new a,g,s);return m!=null&&wL(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,wa({global:!0,forced:s!=a},l),f6(s,e),o||n.setStrong(s,e,r),s})("WeakMap",kL,BL);if(pL&&pse){pf=BL.getConstructor(kL,"WeakMap",!0),eD.enable();var hf=hse.prototype,MB=Pe(hf.delete),rg=Pe(hf.has),zB=Pe(hf.get),$B=Pe(hf.set);d6(hf,{delete:function(e){if(kt(e)&&!cu(e)){var t=ng(this);return t.frozen||(t.frozen=new pf),MB(this,e)||t.frozen.delete(e)}return MB(this,e)},has:function(e){if(kt(e)&&!cu(e)){var t=ng(this);return t.frozen||(t.frozen=new pf),rg(this,e)||t.frozen.has(e)}return rg(this,e)},get:function(e){if(kt(e)&&!cu(e)){var t=ng(this);return t.frozen||(t.frozen=new pf),rg(this,e)?zB(this,e):t.frozen.get(e)}return zB(this,e)},set:function(e,t){if(kt(e)&&!cu(e)){var n=ng(this);n.frozen||(n.frozen=new pf),rg(this,e)?$B(this,e,t):n.frozen.set(e,t)}else $B(this,e,t);return this}})}var FL={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},n2=W5("span").classList,HB=n2&&n2.constructor&&n2.constructor.prototype,gse=HB===Object.prototype?void 0:HB,r2=hn("iterator"),VB=hn("toStringTag"),o2=qf.values,TL=function(e,t){if(e){if(e[r2]!==o2)try{ra(e,r2,o2)}catch{e[r2]=o2}if(e[VB]||ra(e,VB,t),FL[t]){for(var n in qf)if(e[n]!==qf[n])try{ra(e,n,qf[n])}catch{e[n]=qf[n]}}}};for(var i2 in FL)TL(we[i2]&&we[i2].prototype,i2);TL(gse,"DOMTokenList");var h6=new WeakMap,vse={type:"list-item",renderElem:function(e,t,n){h6.set(e,n);var r=e,o=r.level,i=o===void 0?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=(function(f,d){var p=d,y=p.type,v=p.level,g=v===void 0?0:v,m=p.ordered,h=m!==void 0&&m;if(!h)return-1;var b=1,w=d,D=A.findPath(f,w);if(D[0]===0)return 1;for(;D[0]>0;){var C=P.previous(D),x=E.node(f,C);if(x==null)break;var O=x[0],F=O.level,R=F===void 0?0:F,H=O.type,M=O.ordered;if(H!==y||R<g)break;if(R===g){if(M!==h)break;b++}w=O,D=C}return b})(n,e);s=l+"."}else s=(function(f){f===void 0&&(f=0);var d="";switch(f){case 0:d="•";break;case 1:d="◦";break;default:d="▪"}return d})(i);var c=(function(f){var d,p=f.children||[],y=p.length;if(y===0)return"";for(var v=0;v<y&&!d;v++){var g=p[v];oe.isText(g)&&(d=g)}return d==null?"":d.color||""})(e);return be("div",{style:u},be("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),be("span",null,t))}},g6=function(e,t){return g6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},g6(e,t);/*! *****************************************************************************
|
|
109
|
+
Copyright (c) Microsoft Corporation.
|
|
110
|
+
|
|
111
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
112
|
+
purpose with or without fee is hereby granted.
|
|
113
|
+
|
|
114
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
115
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
116
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
117
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
118
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
119
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
120
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
121
|
+
***************************************************************************** */};function _L(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}g6(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function UB(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 new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ld(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function WB(e){return E.nodes(e,{at:e.selection||void 0,match:function(t){return A.findPath(e,t).length===1}})}var yse=lL.includes;wa({target:"Array",proto:!0},{includes:function(e){return yse(this,e,arguments.length>1?arguments[1]:void 0)}}),ud("includes");var GB,a2,mse=function(){var e=Kn(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},oD=we.RegExp,jL=At(function(){var e=oD("a","y");return e.lastIndex=2,e.exec("abcd")!=null});jL||At(function(){return!oD("a","y").sticky});var bse={BROKEN_CARET:jL||At(function(){var e=oD("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},wse=we.RegExp,Ese=At(function(){var e=wse(".","s");return!(e.dotAll&&e.exec(`
|
|
122
|
+
`)&&e.flags==="s")}),Dse=we.RegExp,xse=At(function(){var e=Dse("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Cse=Bo.get,Sse=H5("native-string-replace",String.prototype.replace),B0=RegExp.prototype.exec,v6=B0,Ase=Pe("".charAt),Ose=Pe("".indexOf),Bse=Pe("".replace),u2=Pe("".slice),s2=(a2=/b*/g,an(B0,GB=/a/,"a"),an(B0,a2,"a"),GB.lastIndex!==0||a2.lastIndex!==0),qB=bse.BROKEN_CARET,l2=/()??/.exec("")[1]!==void 0;(s2||l2||qB||Ese||xse)&&(v6=function(e){var t,n,r,o,i,a,u,s=this,l=Cse(s),c=qo(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=an(v6,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=qB&&s.sticky,y=an(mse,s),v=s.source,g=0,m=c;if(p&&(y=Bse(y,"y",""),Ose(y,"g")===-1&&(y+="g"),m=u2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Ase(c,s.lastIndex-1)!==`
|
|
123
|
+
`)&&(v="(?: "+v+")",m=" "+m,g++),n=new RegExp("^(?:"+v+")",y)),l2&&(n=new RegExp("^"+v+"$(?!\\s)",y)),s2&&(r=s.lastIndex),o=an(B0,p?n:s,m),p?o?(o.input=u2(o.input,g),o[0]=u2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:s2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),l2&&o&&o.length>1&&an(Sse,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=X5(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var k0=v6;wa({target:"RegExp",proto:!0,forced:/./.exec!==k0},{exec:k0});var PL=(function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return A.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var n=this.getListNode(t);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},e.prototype.exec=function(t,n){this.isActive(t)?N.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):N.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e})(),kse='<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>',Fse='<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>',Tse=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=Q("listModule.unOrderedList"),n.iconSvg=kse,n}return _L(t,e),t})(PL),_se=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=Q("listModule.orderedList"),n.iconSvg=Fse,n}return _L(t,e),t})(PL),jse={key:"bulletedList",factory:function(){return new Tse}},Pse={key:"numberedList",factory:function(){return new _se}},KB=[],Nse={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=o!==void 0&&o?"ol":"ul",a=(function(l){var c=h6.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,y=p!==void 0&&p,v=f.level,g=v===void 0?0:v,m=A.findPath(c,l);if(m[0]===0)return g+1;var h=P.previous(m),b=E.node(c,h);if(!b)return 0;var w=ld(b,1)[0];if(A.getNodeType(w)!==d)return g+1;var D=w,C=D.ordered,x=C!==void 0&&C,O=D.level,F=O===void 0?0:O;return F<g?g-F:F>g?0:F===g?x===y?0:1:0})(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",KB.push(i);var s=(function(l){var c=h6.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,y=p!==void 0&&p,v=f.level,g=v===void 0?0:v,m=A.findPath(c,l);if(m[0]===c.children.length-1)return g+1;var h=P.next(m),b=E.node(c,h);if(!b)return 0;var w=ld(b,1)[0];if(A.getNodeType(w)!==d)return g+1;var D=w,C=D.ordered,x=C!==void 0&&C,O=D.level,F=O===void 0?0:O;return F<g?g-F:F>g?0:F===g?x===y?0:1:0})(e);if(s>0)for(u=0;u<s;u++)r+="</"+KB.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},Ise=hn("species"),Lse=rD.filter,Rse=e6>=51||!At(function(){var e=[];return(e.constructor={})[Ise]=function(){return{foo:1}},e.filter(Boolean).foo!==1});wa({target:"Array",proto:!0,forced:!Rse},{filter:function(e){return Lse(this,e,arguments.length>1?arguments[1]:void 0)}});var iD=Function.prototype,XB=iD.apply,Mse=iD.bind,ZB=iD.call,zse=typeof Reflect=="object"&&Reflect.apply||(Mse?ZB.bind(XB):function(){return ZB.apply(XB,arguments)}),YB=(hn("species"),RegExp.prototype),$se=bL.charAt,Hse=function(e,t,n){return t+(n?$se(e,t).length:1)},Vse=Math.floor,c2=Pe("".charAt),Use=Pe("".replace),f2=Pe("".slice),Wse=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Gse=/\$([$&'`]|\d{1,2})/g,qse=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Gse;return o!==void 0&&(o=Gp(o),s=Wse),Use(i,s,function(l,c){var f;switch(c2(c,0)){case"$":return"$";case"&":return e;case"`":return f2(t,0,n);case"'":return f2(t,a);case"<":f=o[f2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Vse(d/10);return p===0?l:p<=u?r[p-1]===void 0?c2(c,1):r[p-1]+c2(c,1):l}f=r[d-1]}return f===void 0?"":f})},Kse=we.TypeError,Xse=function(e,t){var n=e.exec;if(Tt(n)){var r=an(n,e,t);return r!==null&&Kn(r),r}if(ni(e)==="RegExp")return an(k0,e,t);throw Kse("RegExp#exec called on incompatible receiver")},y6=hn("replace"),Zse=Math.max,Yse=Math.min,Jse=Pe([].concat),d2=Pe([].push),JB=Pe("".indexOf),QB=Pe("".slice),Qse="a".replace(/./,"$0")==="$0",ek=!!/./[y6]&&/./[y6]("a","$0")==="";(function(e,t,n,r){var o=hn(e),i=!At(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!At(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Pe(/./[o]),s=(function(l,c,f){var d=ek?"$":"$0";return[function(p,y){var v=tm(this),g=p==null?void 0:Gd(p,y6);return g?an(g,p,v,y):an(c,qo(v),p,y)},function(p,y){var v=Kn(this),g=qo(p);if(typeof y=="string"&&JB(y,d)===-1&&JB(y,"$<")===-1){var m=f(c,v,g,y);if(m.done)return m.value}var h=Tt(y);h||(y=qo(y));var b=v.global;if(b){var w=v.unicode;v.lastIndex=0}for(var D=[];;){var C=Xse(v,g);if(C===null||(d2(D,C),!b))break;qo(C[0])===""&&(v.lastIndex=Hse(g,sL(v.lastIndex),w))}for(var x,O="",F=0,R=0;R<D.length;R++){for(var H=qo((C=D[R])[0]),M=Zse(Yse(Kp(C.index),g.length),0),K=[],U=1;U<C.length;U++)d2(K,(x=C[U])===void 0?x:String(x));var W=C.groups;if(h){var q=Jse([H],K,M,g);W!==void 0&&d2(q,W);var te=qo(zse(y,void 0,q))}else te=qse(H,g,M,K,W,y);M>=F&&(O+=QB(g,F,M)+te,F=M+H.length)}return O+QB(g,F)}]})(0,""[e],function(l,c,f,d,p){var y=Pe(l),v=c.exec;return v===k0||v===YB.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:y(f,c,d)}:{done:!1}});si(String.prototype,e,s[0]),si(YB,o,s[1])}})("replace",0,!!At(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Qse||ek);var ele=we.TypeError,NL=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&tD(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&p6(s))l=dc(s),c=NL(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw ele("Exceed the acceptable array length");e[c]=s}c++}f++}return c},tle=NL;function p2(e){return e.length?e[0].tagName.toLowerCase():""}wa({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Gp(this),n=dc(t),r=AL(t,0);return r.length=tle(r,t,t,n,0,e===void 0?1:Kp(e)),r}}),ud("flat"),wa({global:!0},{globalThis:we}),Or&&(k.fn.append=Or),Ar&&(k.fn.attr=Ar),Ol&&(k.fn.parent=Ol);var nle={renderElems:[vse],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(L.isExpanded(a))t(i);else{var u=A.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)t(i);else{var s=u.level,l=s===void 0?0:s;l>0?N.setNodes(o,{level:l-1}):N.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(i)}else t(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(L.isCollapsed(l)){var c=A.getSelectedNodeByType(o,"list-item");if(c==null)return void n();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void N.setNodes(o,{level:d+1})}}if(L.isExpanded(l)){var p=0,y=!1;try{for(var v=UB(WB(o)),g=v.next();!g.done;g=v.next()){var m=ld(g.value,1)[0];A.getNodeType(m)==="list-item"?p++:y=!0}}catch(x){i={error:x}}finally{try{g&&!g.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}if(y||p<=1)return void n();try{for(var h=UB(WB(o)),b=h.next();!b.done;b=h.next()){var w=ld(b.value,2),D=(m=w[0],w[1]),C=m.level;d=C===void 0?0:C,N.setNodes(o,{level:d+1},{at:D})}}catch(x){u={error:x}}finally{try{b&&!b.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else n()}else n()},o.normalizeNode=function(i){var a=ld(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||N.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[jse,Pse],elemsToHtml:[Nse],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=k(e);(t=t.filter(function(a){return!!oe.isText(a)||!!n.isInline(a)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=(function(a){return p2(a.parent())==="ol"})(r),i=(function(a){for(var u=0,s=a.parent(),l=p2(s);l==="ul"||l==="ol";)l=p2(s=s.parent()),u++;return u-1})(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},IL=Qu(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",y="[object RegExp]",v="[object Set]",g="[object String]",m="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",D=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[o]=x[i]=x[b]=x[a]=x[w]=x[u]=x[s]=x[l]=x[c]=x[f]=x[d]=x[y]=x[v]=x[g]=x[h]=!1;var O=typeof at=="object"&&at&&at.Object===Object&&at,F=typeof self=="object"&&self&&self.Object===Object&&self,R=O||F||Function("return this")(),H=t&&!t.nodeType&&t,M=H&&e&&!e.nodeType&&e,K=M&&M.exports===H,U=K&&O.process,W=(function(){try{return U&&U.binding&&U.binding("util")}catch{}})(),q=W&&W.isTypedArray;function te(_,I){for(var Y=-1,he=_==null?0:_.length;++Y<he;)if(I(_[Y],Y,_))return!0;return!1}function se(_){var I=-1,Y=Array(_.size);return _.forEach(function(he,et){Y[++I]=[et,he]}),Y}function ue(_){var I=-1,Y=Array(_.size);return _.forEach(function(he){Y[++I]=he}),Y}var ae=Array.prototype,B=Function.prototype,S=Object.prototype,j=R["__core-js_shared__"],$=B.toString,X=S.hasOwnProperty,V=(function(){var _=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""})(),ie=S.toString,ge=RegExp("^"+$.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=K?R.Buffer:void 0,De=R.Symbol,G=R.Uint8Array,Ie=S.propertyIsEnumerable,Ae=ae.splice,de=De?De.toStringTag:void 0,Oe=Object.getOwnPropertySymbols,Ot=ve?ve.isBuffer:void 0,$e=(function(_,I){return function(Y){return _(I(Y))}})(Object.keys,Object),Qe=hi(R,"DataView"),gt=hi(R,"Map"),gn=hi(R,"Promise"),Me=hi(R,"Set"),Nn=hi(R,"WeakMap"),Pr=hi(Object,"create"),eo=Ro(Qe),fs=Ro(gt),Pa=Ro(gn),Nr=Ro(Me),to=Ro(Nn),No=De?De.prototype:void 0,vn=No?No.valueOf:void 0;function yn(_){var I=-1,Y=_==null?0:_.length;for(this.clear();++I<Y;){var he=_[I];this.set(he[0],he[1])}}function mn(_){var I=-1,Y=_==null?0:_.length;for(this.clear();++I<Y;){var he=_[I];this.set(he[0],he[1])}}function kn(_){var I=-1,Y=_==null?0:_.length;for(this.clear();++I<Y;){var he=_[I];this.set(he[0],he[1])}}function tn(_){var I=-1,Y=_==null?0:_.length;for(this.__data__=new kn;++I<Y;)this.add(_[I])}function dr(_){var I=this.__data__=new mn(_);this.size=I.size}function hc(_,I){var Y=Mo(_),he=!Y&&lh(_),et=!Y&&!he&&no(_),je=!Y&&!he&&!et&&oo(_),T=Y||he||et||je,z=T?(function(ze,vt){for(var st=-1,Ue=Array(ze);++st<ze;)Ue[st]=vt(st);return Ue})(_.length,String):[],re=z.length;for(var le in _)!X.call(_,le)||T&&(le=="length"||et&&(le=="offset"||le=="parent")||je&&(le=="buffer"||le=="byteLength"||le=="byteOffset")||gc(le,re))||z.push(le);return z}function pi(_,I){for(var Y=_.length;Y--;)if(hs(_[Y][0],I))return Y;return-1}function Io(_){return _==null?_===void 0?"[object Undefined]":"[object Null]":de&&de in Object(_)?(function(I){var Y=X.call(I,de),he=I[de];try{I[de]=void 0;var et=!0}catch{}var je=ie.call(I);return et&&(Y?I[de]=he:delete I[de]),je})(_):(function(I){return ie.call(I)})(_)}function ds(_){return gi(_)&&Io(_)==o}function Na(_,I,Y,he,et){return _===I||(_==null||I==null||!gi(_)&&!gi(I)?_!=_&&I!=I:(function(je,T,z,re,le,ze){var vt=Mo(je),st=Mo(T),Ue=vt?i:Xn(je),Xt=st?i:Xn(T),bn=(Ue=Ue==o?d:Ue)==d,Ia=(Xt=Xt==o?d:Xt)==d,zo=Ue==Xt;if(zo&&no(je)){if(!no(T))return!1;vt=!0,bn=!1}if(zo&&!bn)return ze||(ze=new dr),vt||oo(je)?pr(je,T,z,re,le,ze):(function(Le,We,Ge,Bt,Fn,In,Rr){switch(Ge){case w:if(Le.byteLength!=We.byteLength||Le.byteOffset!=We.byteOffset)return!1;Le=Le.buffer,We=We.buffer;case b:return!(Le.byteLength!=We.byteLength||!In(new G(Le),new G(We)));case a:case u:case f:return hs(+Le,+We);case s:return Le.name==We.name&&Le.message==We.message;case y:case g:return Le==We+"";case c:var yi=se;case v:var yc=1&Bt;if(yi||(yi=ue),Le.size!=We.size&&!yc)return!1;var dh=Rr.get(Le);if(dh)return dh==We;Bt|=2,Rr.set(Le,We);var gs=pr(yi(Le),yi(We),Bt,Fn,In,Rr);return Rr.delete(Le),gs;case m:if(vn)return vn.call(Le)==vn.call(We)}return!1})(je,T,Ue,z,re,le,ze);if(!(1&z)){var vi=bn&&X.call(je,"__wrapped__"),me=Ia&&X.call(T,"__wrapped__");if(vi||me){var Ze=vi?je.value():je,_t=me?T.value():T;return ze||(ze=new dr),le(Ze,_t,z,re,ze)}}return zo?(ze||(ze=new dr),(function(Le,We,Ge,Bt,Fn,In){var Rr=1&Ge,yi=Lo(Le),yc=yi.length,dh=Lo(We).length;if(yc!=dh&&!Rr)return!1;for(var gs=yc;gs--;){var La=yi[gs];if(!(Rr?La in We:X.call(We,La)))return!1}var Mx=In.get(Le);if(Mx&&In.get(We))return Mx==We;var ph=!0;In.set(Le,We),In.set(We,Le);for(var Cm=Rr;++gs<yc;){var hh=Le[La=yi[gs]],gh=We[La];if(Bt)var zx=Rr?Bt(gh,hh,La,We,Le,In):Bt(hh,gh,La,Le,We,In);if(!(zx===void 0?hh===gh||Fn(hh,gh,Ge,Bt,In):zx)){ph=!1;break}Cm||(Cm=La=="constructor")}if(ph&&!Cm){var vh=Le.constructor,yh=We.constructor;vh==yh||!("constructor"in Le)||!("constructor"in We)||typeof vh=="function"&&vh instanceof vh&&typeof yh=="function"&&yh instanceof yh||(ph=!1)}return In.delete(Le),In.delete(We),ph})(je,T,z,re,le,ze)):!1})(_,I,Y,he,Na,et))}function ps(_){return!(!ch(_)||(function(I){return!!V&&V in I})(_))&&(vc(_)?ge:D).test(Ro(_))}function Ir(_){if(Y=(I=_)&&I.constructor,he=typeof Y=="function"&&Y.prototype||S,I!==he)return $e(_);var I,Y,he,et=[];for(var je in Object(_))X.call(_,je)&&je!="constructor"&&et.push(je);return et}function pr(_,I,Y,he,et,je){var T=1&Y,z=_.length,re=I.length;if(z!=re&&!(T&&re>z))return!1;var le=je.get(_);if(le&&je.get(I))return le==I;var ze=-1,vt=!0,st=2&Y?new tn:void 0;for(je.set(_,I),je.set(I,_);++ze<z;){var Ue=_[ze],Xt=I[ze];if(he)var bn=T?he(Xt,Ue,ze,I,_,je):he(Ue,Xt,ze,_,I,je);if(bn!==void 0){if(bn)continue;vt=!1;break}if(st){if(!te(I,function(Ia,zo){if(vi=zo,!st.has(vi)&&(Ue===Ia||et(Ue,Ia,Y,he,je)))return st.push(zo);var vi})){vt=!1;break}}else if(Ue!==Xt&&!et(Ue,Xt,Y,he,je)){vt=!1;break}}return je.delete(_),je.delete(I),vt}function Lo(_){return(function(I,Y,he){var et=Y(I);return Mo(I)?et:(function(je,T){for(var z=-1,re=T.length,le=je.length;++z<re;)je[le+z]=T[z];return je})(et,he(I))})(_,fh,sh)}function Lr(_,I){var Y,he,et=_.__data__;return((he=typeof(Y=I))=="string"||he=="number"||he=="symbol"||he=="boolean"?Y!=="__proto__":Y===null)?et[typeof I=="string"?"string":"hash"]:et.map}function hi(_,I){var Y=(function(he,et){return he==null?void 0:he[et]})(_,I);return ps(Y)?Y:void 0}yn.prototype.clear=function(){this.__data__=Pr?Pr(null):{},this.size=0},yn.prototype.delete=function(_){var I=this.has(_)&&delete this.__data__[_];return this.size-=I?1:0,I},yn.prototype.get=function(_){var I=this.__data__;if(Pr){var Y=I[_];return Y===n?void 0:Y}return X.call(I,_)?I[_]:void 0},yn.prototype.has=function(_){var I=this.__data__;return Pr?I[_]!==void 0:X.call(I,_)},yn.prototype.set=function(_,I){var Y=this.__data__;return this.size+=this.has(_)?0:1,Y[_]=Pr&&I===void 0?n:I,this},mn.prototype.clear=function(){this.__data__=[],this.size=0},mn.prototype.delete=function(_){var I=this.__data__,Y=pi(I,_);return!(Y<0)&&(Y==I.length-1?I.pop():Ae.call(I,Y,1),--this.size,!0)},mn.prototype.get=function(_){var I=this.__data__,Y=pi(I,_);return Y<0?void 0:I[Y][1]},mn.prototype.has=function(_){return pi(this.__data__,_)>-1},mn.prototype.set=function(_,I){var Y=this.__data__,he=pi(Y,_);return he<0?(++this.size,Y.push([_,I])):Y[he][1]=I,this},kn.prototype.clear=function(){this.size=0,this.__data__={hash:new yn,map:new(gt||mn),string:new yn}},kn.prototype.delete=function(_){var I=Lr(this,_).delete(_);return this.size-=I?1:0,I},kn.prototype.get=function(_){return Lr(this,_).get(_)},kn.prototype.has=function(_){return Lr(this,_).has(_)},kn.prototype.set=function(_,I){var Y=Lr(this,_),he=Y.size;return Y.set(_,I),this.size+=Y.size==he?0:1,this},tn.prototype.add=tn.prototype.push=function(_){return this.__data__.set(_,n),this},tn.prototype.has=function(_){return this.__data__.has(_)},dr.prototype.clear=function(){this.__data__=new mn,this.size=0},dr.prototype.delete=function(_){var I=this.__data__,Y=I.delete(_);return this.size=I.size,Y},dr.prototype.get=function(_){return this.__data__.get(_)},dr.prototype.has=function(_){return this.__data__.has(_)},dr.prototype.set=function(_,I){var Y=this.__data__;if(Y instanceof mn){var he=Y.__data__;if(!gt||he.length<199)return he.push([_,I]),this.size=++Y.size,this;Y=this.__data__=new kn(he)}return Y.set(_,I),this.size=Y.size,this};var sh=Oe?function(_){return _==null?[]:(_=Object(_),(function(I,Y){for(var he=-1,et=I==null?0:I.length,je=0,T=[];++he<et;){var z=I[he];Y(z,he,I)&&(T[je++]=z)}return T})(Oe(_),function(I){return Ie.call(_,I)}))}:function(){return[]},Xn=Io;function gc(_,I){return!!(I=I??r)&&(typeof _=="number"||C.test(_))&&_>-1&&_%1==0&&_<I}function Ro(_){if(_!=null){try{return $.call(_)}catch{}try{return _+""}catch{}}return""}function hs(_,I){return _===I||_!=_&&I!=I}(Qe&&Xn(new Qe(new ArrayBuffer(1)))!=w||gt&&Xn(new gt)!=c||gn&&Xn(gn.resolve())!=p||Me&&Xn(new Me)!=v||Nn&&Xn(new Nn)!=h)&&(Xn=function(_){var I=Io(_),Y=I==d?_.constructor:void 0,he=Y?Ro(Y):"";if(he)switch(he){case eo:return w;case fs:return c;case Pa:return p;case Nr:return v;case to:return h}return I});var lh=ds((function(){return arguments})())?ds:function(_){return gi(_)&&X.call(_,"callee")&&!Ie.call(_,"callee")},Mo=Array.isArray,no=Ot||function(){return!1};function vc(_){if(!ch(_))return!1;var I=Io(_);return I==l||I=="[object GeneratorFunction]"||I=="[object AsyncFunction]"||I=="[object Proxy]"}function ro(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=r}function ch(_){var I=typeof _;return _!=null&&(I=="object"||I=="function")}function gi(_){return _!=null&&typeof _=="object"}var oo=q?(function(_){return function(I){return _(I)}})(q):function(_){return gi(_)&&ro(_.length)&&!!x[Io(_)]};function fh(_){return(I=_)!=null&&ro(I.length)&&!vc(I)?hc(_):Ir(_);var I}e.exports=function(_,I){return Na(_,I)}});qn("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"}}),qn("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var tk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function LL(e){var t={exports:{}};return e(t,t.exports),t.exports}var Fi,Kg,og=function(e){return e&&e.Math==Math&&e},_e=og(typeof globalThis=="object"&&globalThis)||og(typeof window=="object"&&window)||og(typeof self=="object"&&self)||og(typeof tk=="object"&&tk)||(function(){return this})()||Function("return this")(),qt=function(e){try{return!!e()}catch{return!0}},Ea=!qt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),gf=Function.prototype.call,Yt=gf.bind?gf.bind(gf):function(){return gf.apply(gf,arguments)},nk={}.propertyIsEnumerable,rk=Object.getOwnPropertyDescriptor,rle={f:rk&&!nk.call({1:2},1)?function(e){var t=rk(this,e);return!!t&&t.enumerable}:nk},aD=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},RL=Function.prototype,m6=RL.bind,b6=RL.call,ole=m6&&m6.bind(b6),Re=m6?function(e){return e&&ole(b6,e)}:function(e){return e&&function(){return b6.apply(e,arguments)}},ile=Re({}.toString),ale=Re("".slice),oa=function(e){return ale(ile(e),8,-1)},h2=_e.Object,ule=Re("".split),ML=qt(function(){return!h2("z").propertyIsEnumerable(0)})?function(e){return oa(e)=="String"?ule(e,""):h2(e)}:h2,sle=_e.TypeError,Da=function(e){if(e==null)throw sle("Can't call method on "+e);return e},Zp=function(e){return ML(Da(e))},On=function(e){return typeof e=="function"},mo=function(e){return typeof e=="object"?e!==null:On(e)},lle=function(e){return On(e)?e:void 0},Yp=function(e,t){return arguments.length<2?lle(_e[e]):_e[e]&&_e[e][t]},zL=Re({}.isPrototypeOf),g2=Yp("navigator","userAgent")||"",ok=_e.process,ik=_e.Deno,ak=ok&&ok.versions||ik&&ik.version,uk=ak&&ak.v8;uk&&(Kg=(Fi=uk.split("."))[0]>0&&Fi[0]<4?1:+(Fi[0]+Fi[1])),!Kg&&g2&&(!(Fi=g2.match(/Edge\/(\d+)/))||Fi[1]>=74)&&(Fi=g2.match(/Chrome\/(\d+)/))&&(Kg=+Fi[1]);var w6=Kg,E6=!!Object.getOwnPropertySymbols&&!qt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&w6&&w6<41}),uD=E6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",cle=_e.Object,v2=uD?function(e){return typeof e=="symbol"}:function(e){var t=Yp("Symbol");return On(t)&&zL(t.prototype,cle(e))},fle=_e.String,$L=function(e){try{return fle(e)}catch{return"Object"}},dle=_e.TypeError,HL=function(e){if(On(e))return e;throw dle($L(e)+" is not a function")},sD=function(e,t){var n=e[t];return n==null?void 0:HL(n)},ple=_e.TypeError,hle=Object.defineProperty,lD=function(e,t){try{hle(_e,e,{value:t,configurable:!0,writable:!0})}catch{_e[e]=t}return t},ia=_e["__core-js_shared__"]||lD("__core-js_shared__",{}),cD=LL(function(e){(e.exports=function(t,n){return ia[t]||(ia[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),gle=_e.Object,fD=function(e){return gle(Da(e))},vle=Re({}.hasOwnProperty),xr=Object.hasOwn||function(e,t){return vle(fD(e),t)},yle=0,mle=Math.random(),ble=Re(1 .toString),VL=function(e){return"Symbol("+(e===void 0?"":e)+")_"+ble(++yle+mle,36)},vf=cD("wks"),Fu=_e.Symbol,sk=Fu&&Fu.for,wle=uD?Fu:Fu&&Fu.withoutSetter||VL,jr=function(e){if(!xr(vf,e)||!E6&&typeof vf[e]!="string"){var t="Symbol."+e;E6&&xr(Fu,e)?vf[e]=Fu[e]:vf[e]=uD&&sk?sk(t):wle(t)}return vf[e]},Ele=_e.TypeError,Dle=jr("toPrimitive"),dD=function(e){var t=(function(n,r){if(!mo(n)||v2(n))return n;var o,i=sD(n,Dle);if(i){if(o=Yt(i,n,r),!mo(o)||v2(o))return o;throw Ele("Can't convert object to primitive value")}return(function(a,u){var s,l;if(On(s=a.toString)&&!mo(l=Yt(s,a))||On(s=a.valueOf)&&!mo(l=Yt(s,a)))return l;throw ple("Can't convert object to primitive value")})(n)})(e,"string");return v2(t)?t:t+""},D6=_e.document,xle=mo(D6)&&mo(D6.createElement),pD=function(e){return xle?D6.createElement(e):{}},UL=!Ea&&!qt(function(){return Object.defineProperty(pD("div"),"a",{get:function(){return 7}}).a!=7}),lk=Object.getOwnPropertyDescriptor,WL={f:Ea?lk:function(e,t){if(e=Zp(e),t=dD(t),UL)try{return lk(e,t)}catch{}if(xr(e,t))return aD(!Yt(rle.f,e,t),e[t])}},Cle=_e.String,Sle=_e.TypeError,Cr=function(e){if(mo(e))return e;throw Sle(Cle(e)+" is not an object")},Ale=_e.TypeError,ck=Object.defineProperty,Jp={f:Ea?ck:function(e,t,n){if(Cr(e),t=dD(t),Cr(n),UL)try{return ck(e,t,n)}catch{}if("get"in n||"set"in n)throw Ale("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},$l=Ea?function(e,t,n){return Jp.f(e,t,aD(1,n))}:function(e,t,n){return e[t]=n,e},Ole=Re(Function.toString);On(ia.inspectSource)||(ia.inspectSource=function(e){return Ole(e)});var x6,F0,C6,hD=ia.inspectSource,fk=_e.WeakMap,Ble=On(fk)&&/native code/.test(hD(fk)),dk=cD("keys"),GL=function(e){return dk[e]||(dk[e]=VL(e))},gD={},pk=_e.TypeError,kle=_e.WeakMap;if(Ble||ia.state){var qa=ia.state||(ia.state=new kle),Fle=Re(qa.get),hk=Re(qa.has),Tle=Re(qa.set);x6=function(e,t){if(hk(qa,e))throw new pk("Object already initialized");return t.facade=e,Tle(qa,e,t),t},F0=function(e){return Fle(qa,e)||{}},C6=function(e){return hk(qa,e)}}else{var Ns=GL("state");gD[Ns]=!0,x6=function(e,t){if(xr(e,Ns))throw new pk("Object already initialized");return t.facade=e,$l(e,Ns,t),t},F0=function(e){return xr(e,Ns)?e[Ns]:{}},C6=function(e){return xr(e,Ns)}}var S6={get:F0,enforce:function(e){return C6(e)?F0(e):x6(e,{})}},qL=Function.prototype,_le=Ea&&Object.getOwnPropertyDescriptor,gk=xr(qL,"name"),vD={PROPER:gk&&(function(){}).name==="something",CONFIGURABLE:gk&&(!Ea||Ea&&_le(qL,"name").configurable)},qd=LL(function(e){var t=vD.CONFIGURABLE,n=S6.get,r=S6.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;On(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xr(u,"name")||t&&u.name!==p)&&$l(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==_e?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:$l(i,a,u)):f?i[a]=u:lD(a,u)})(Function.prototype,"toString",function(){return On(this)&&n(this).source||hD(this)})}),jle=Math.ceil,Ple=Math.floor,im=function(e){var t=+e;return t!=t||t===0?0:(t>0?Ple:jle)(t)},Nle=Math.max,Ile=Math.min,Kd=function(e,t){var n=im(e);return n<0?Nle(n+t,0):Ile(n,t)},Lle=Math.min,yD=function(e){return e>0?Lle(im(e),9007199254740991):0},am=function(e){return yD(e.length)},Rle=function(e){return function(t,n,r){for(var o=Zp(t),i=am(o),a=Kd(r,i);i>a;a++)if(a in o&&o[a]===n)return a||0;return-1}},Mle=Rle(),vk=Re([].push),KL=function(e,t){var n,r=Zp(e),o=0,i=[];for(n in r)!xr(gD,n)&&xr(r,n)&&vk(i,n);for(;t.length>o;)xr(r,n=t[o++])&&(~Mle(i,n)||vk(i,n));return i},T0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zle=T0.concat("length","prototype"),$le={f:Object.getOwnPropertyNames||function(e){return KL(e,zle)}},Hle={f:Object.getOwnPropertySymbols},Vle=Re([].concat),Ule=Yp("Reflect","ownKeys")||function(e){var t=$le.f(Cr(e)),n=Hle.f;return n?Vle(t,n(e)):t},Wle=function(e,t){for(var n=Ule(t),r=Jp.f,o=WL.f,i=0;i<n.length;i++){var a=n[i];xr(e,a)||r(e,a,o(t,a))}},Gle=/#|\.prototype\./,Qp=function(e,t){var n=Kle[qle(e)];return n==Zle||n!=Xle&&(On(t)?qt(t):!!t)},qle=Qp.normalize=function(e){return String(e).replace(Gle,".").toLowerCase()},Kle=Qp.data={},Xle=Qp.NATIVE="N",Zle=Qp.POLYFILL="P",Yle=Qp,Jle=WL.f,xa=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?_e:l?_e[u]||lD(u,{}):(_e[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Jle(n,r))&&a.value:n[r],!Yle(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Wle(i,o)}(e.sham||o&&o.sham)&&$l(i,"sham",!0),qd(n,r,i,e)}},XL={};XL[jr("toStringTag")]="z";var mD=String(XL)==="[object z]",Qle=jr("toStringTag"),ece=_e.Object,tce=oa((function(){return arguments})())=="Arguments",bD=mD?oa:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=ece(e),Qle))=="string"?n:tce?oa(t):(r=oa(t))=="Object"&&On(t.callee)?"Arguments":r},nce=_e.String,xn=function(e){if(bD(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return nce(e)},rce=/"/g,oce=Re("".replace);xa({target:"String",proto:!0,forced:qt(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=xn(Da(this)),r="<a",(r+=' name="'+oce(xn(t),rce,""")+'"')+">"+n+"</a>";var t,n,r}});var ig,ZL=function(){var e=Cr(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},wD=_e.RegExp,A6=qt(function(){var e=wD("a","y");return e.lastIndex=2,e.exec("abcd")!=null});A6||qt(function(){return!wD("a","y").sticky});var YL={BROKEN_CARET:A6||qt(function(){var e=wD("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:A6},ice=Object.keys||function(e){return KL(e,T0)},ace=Ea?Object.defineProperties:function(e,t){Cr(e);for(var n,r=Zp(t),o=ice(t),i=o.length,a=0;i>a;)Jp.f(e,n=o[a++],r[n]);return e},uce=Yp("document","documentElement"),JL=GL("IE_PROTO"),y2=function(){},QL=function(e){return"<script>"+e+"<\/script>"},yk=function(e){e.write(QL("")),e.close();var t=e.parentWindow.Object;return e=null,t},Xg=function(){try{ig=new ActiveXObject("htmlfile")}catch{}var e,t;Xg=typeof document<"u"?document.domain&&ig?yk(ig):((t=pD("iframe")).style.display="none",uce.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(QL("document.F=Object")),e.close(),e.F):yk(ig);for(var n=T0.length;n--;)delete Xg.prototype[T0[n]];return Xg()};gD[JL]=!0;var mk,m2,eR=Object.create||function(e,t){var n;return e!==null?(y2.prototype=Cr(e),n=new y2,y2.prototype=null,n[JL]=e):n=Xg(),t===void 0?n:ace(n,t)},sce=_e.RegExp,lce=qt(function(){var e=sce(".","s");return!(e.dotAll&&e.exec(`
|
|
124
|
+
`)&&e.flags==="s")}),cce=_e.RegExp,fce=qt(function(){var e=cce("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),dce=S6.get,pce=cD("native-string-replace",String.prototype.replace),_0=RegExp.prototype.exec,O6=_0,hce=Re("".charAt),gce=Re("".indexOf),vce=Re("".replace),b2=Re("".slice),w2=(m2=/b*/g,Yt(_0,mk=/a/,"a"),Yt(_0,m2,"a"),mk.lastIndex!==0||m2.lastIndex!==0),bk=YL.BROKEN_CARET,E2=/()??/.exec("")[1]!==void 0;(w2||E2||bk||lce||fce)&&(O6=function(e){var t,n,r,o,i,a,u,s=this,l=dce(s),c=xn(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Yt(O6,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=bk&&s.sticky,y=Yt(ZL,s),v=s.source,g=0,m=c;if(p&&(y=vce(y,"y",""),gce(y,"g")===-1&&(y+="g"),m=b2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&hce(c,s.lastIndex-1)!==`
|
|
125
|
+
`)&&(v="(?: "+v+")",m=" "+m,g++),n=new RegExp("^(?:"+v+")",y)),E2&&(n=new RegExp("^"+v+"$(?!\\s)",y)),w2&&(r=s.lastIndex),o=Yt(_0,p?n:s,m),p?o?(o.input=b2(o.input,g),o[0]=b2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:w2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),E2&&o&&o.length>1&&Yt(pce,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=eR(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Xd=O6;xa({target:"RegExp",proto:!0,forced:/./.exec!==Xd},{exec:Xd});var j0=Array.isArray||function(e){return oa(e)=="Array"},tR=function(){},yce=[],nR=Yp("Reflect","construct"),ED=/^\s*(?:class|function)\b/,mce=Re(ED.exec),bce=!ED.exec(tR),yf=function(e){if(!On(e))return!1;try{return nR(tR,yce,e),!0}catch{return!1}},DD=!nR||qt(function(){var e;return yf(yf.call)||!yf(Object)||!yf(function(){e=!0})||e})?function(e){if(!On(e))return!1;switch(bD(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bce||!!mce(ED,hD(e))}:yf,rR=function(e,t,n){var r=dD(t);r in e?Jp.f(e,r,aD(0,n)):e[r]=n},wce=jr("species"),xD=function(e){return w6>=51||!qt(function(){var t=[];return(t.constructor={})[wce]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Ece=Re([].slice),Dce=xD("slice"),xce=jr("species"),D2=_e.Array,Cce=Math.max;function Jr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function wk(e){var t=e.selection;if(t==null)return!1;var n=Jr(E.nodes(e,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=Jr(n,2)[1],o=E.start(e,r);if(ke.equals(t.anchor,o))return!0}return!1}function Ek(e,t){var n,r,o=E.nodes(e,{at:t,match:function(s){return A.getNodeType(s)==="table"}}),i=!1;try{for(var a=(function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")})(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}xa({target:"Array",proto:!0,forced:!Dce},{slice:function(e,t){var n,r,o,i=Zp(this),a=am(i),u=Kd(e,a),s=Kd(t===void 0?a:t,a);if(j0(i)&&(n=i.constructor,(DD(n)&&(n===D2||j0(n.prototype))||mo(n)&&(n=n[xce])===null)&&(n=void 0),n===D2||n===void 0))return Ece(i,u,s);for(r=new(n===void 0?D2:n)(Cce(s-u,0)),o=0;u<s;u++,o++)u in i&&rR(r,o,i[u]);return r.length=o,r}});var Dk=Re(Re.bind),Sce=jr("species"),xk=_e.Array,Ace=function(e,t){return new((function(n){var r;return j0(n)&&(r=n.constructor,(DD(r)&&(r===xk||j0(r.prototype))||mo(r)&&(r=r[Sce])===null)&&(r=void 0)),r===void 0?xk:r})(e))(t===0?0:t)},Ck=Re([].push),ag=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,y=fD(s),v=ML(y),g=(function(D,C){return HL(D),C===void 0?D:Dk?Dk(D,C):function(){return D.apply(C,arguments)}})(l,c),m=am(v),h=0,b=f||Ace,w=t?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in v)&&(p=g(d=v[h],h,y),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:Ck(w,d)}else switch(e){case 4:return!1;case 7:Ck(w,d)}return i?-1:r||o?o:w}},um={forEach:ag(0),map:ag(1),filter:ag(2),find:ag(5)},Oce=um.map;xa({target:"Array",proto:!0,forced:!xD("map")},{map:function(e){return Oce(this,e,arguments.length>1?arguments[1]:void 0)}});var Bce=mD?{}.toString:function(){return"[object "+bD(this)+"]"};function sm(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function oR(e){return sm(e).every(function(t){return!!t.isHeader})}mD||qd(Object.prototype,"toString",Bce,{unsafe:!0});var kce=vD.PROPER,B6=RegExp.prototype,iR=B6.toString,Fce=Re(ZL),Tce=qt(function(){return iR.call({source:"a",flags:"b"})!="/a/b"}),_ce=kce&&iR.name!="toString";(Tce||_ce)&&qd(RegExp.prototype,"toString",function(){var e=Cr(this),t=xn(e.source),n=e.flags;return"/"+t+"/"+xn(n===void 0&&zL(B6,e)&&!("flags"in B6)?Fce(e):n)},{unsafe:!0});var k6=jr("unscopables"),F6=Array.prototype;F6[k6]==null&&Jp.f(F6,k6,{configurable:!0,value:eR(null)});var jce=um.find,Sk=!0;"find"in[]&&Array(1).find(function(){Sk=!1}),xa({target:"Array",proto:!0,forced:Sk},{find:function(e){return jce(this,e,arguments.length>1?arguments[1]:void 0)}}),F6[k6].find=!0;var CD=Function.prototype,Ak=CD.apply,Pce=CD.bind,Ok=CD.call,aR=typeof Reflect=="object"&&Reflect.apply||(Pce?Ok.bind(Ak):function(){return Ok.apply(Ak,arguments)}),Nce=jr("species"),x2=RegExp.prototype,uR=function(e,t,n,r){var o=jr(e),i=!qt(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!qt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Nce]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Re(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var y=Re(l),v=c.exec;return v===Xd||v===x2.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:y(f,c,d)}:{done:!1}});qd(String.prototype,e,s[0]),qd(x2,o,s[1])}r&&$l(x2[o],"sham",!0)},Ice=jr("match"),Lce=_e.TypeError,Rce=jr("species"),Mce=Re("".charAt),Bk=Re("".charCodeAt),zce=Re("".slice),$ce=function(e){return function(t,n){var r,o,i=xn(Da(t)),a=im(n),u=i.length;return a<0||a>=u?"":(r=Bk(i,a))<55296||r>56319||a+1===u||(o=Bk(i,a+1))<56320||o>57343?Mce(i,a):zce(i,a,a+2)}},Hce=$ce(),sR=function(e,t,n){return t+(n?Hce(e,t).length:1)},Vce=_e.Array,Uce=Math.max,kk=function(e,t,n){for(var r=am(e),o=Kd(t,r),i=Kd(n===void 0?r:n,r),a=Vce(Uce(i-o,0)),u=0;o<i;o++,u++)rR(a,u,e[o]);return a.length=u,a},Wce=_e.TypeError,T6=function(e,t){var n=e.exec;if(On(n)){var r=Yt(n,e,t);return r!==null&&Cr(r),r}if(oa(e)==="RegExp")return Yt(Xd,e,t);throw Wce("RegExp#exec called on incompatible receiver")},Is=YL.UNSUPPORTED_Y,Gce=Math.min,lR=[].push,qce=Re(/./.exec),Ls=Re(lR),mf=Re("".slice);uR("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(o,i){var a,u,s=xn(Da(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!mo(a=o)||!((u=a[Ice])!==void 0?u:oa(a)=="RegExp"))return Yt(t,s,o,l);for(var c,f,d,p=[],y=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),v=0,g=new RegExp(o.source,y+"g");(c=Yt(Xd,g,s))&&!((f=g.lastIndex)>v&&(Ls(p,mf(s,v,c.index)),c.length>1&&c.index<s.length&&aR(lR,p,kk(c,1)),d=c[0].length,v=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return v===s.length?!d&&qce(g,"")||Ls(p,""):Ls(p,mf(s,v)),p.length>l?kk(p,0,l):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Yt(t,this,o,i)}:t,[function(o,i){var a=Da(this),u=o==null?void 0:sD(o,e);return u?Yt(u,o,a,i):Yt(r,xn(a),o,i)},function(o,i){var a=Cr(this),u=xn(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=(function(w,D){var C,x=Cr(w).constructor;return x===void 0||(C=Cr(x)[Rce])==null?D:(function(O){if(DD(O))return O;throw Lce($L(O)+" is not a constructor")})(C)})(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Is?"g":"y"),d=new l(Is?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return T6(d,u)===null?[u]:[];for(var y=0,v=0,g=[];v<u.length;){d.lastIndex=Is?0:v;var m,h=T6(d,Is?mf(u,v):u);if(h===null||(m=Gce(yD(d.lastIndex+(Is?v:0)),u.length))===y)v=sR(u,v,c);else{if(Ls(g,mf(u,y,v)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Ls(g,h[b]),g.length===p)return g;v=y=m}}return Ls(g,mf(u,y)),g}]},!!qt(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"}),Is);var _6=`
|
|
126
|
+
\v\f\r \u2028\u2029\uFEFF`,Fk=Re("".replace),P0="["+_6+"]",Kce=RegExp("^"+P0+P0+"*"),Xce=RegExp(P0+P0+"*$"),Zce=function(e){return function(t){var n=xn(Da(t));return n=Fk(n,Kce,""),n=Fk(n,Xce,""),n}},Yce={trim:Zce()},Jce=vD.PROPER,Qce=Yce.trim;function cR(e){return e.length?e[0].tagName.toLowerCase():""}xa({target:"String",proto:!0,forced:(function(e){return qt(function(){return!!_6[e]()||"
"[e]()!=="
"||Jce&&_6[e].name!==e})})("trim")},{trim:function(){return Qce(this)}}),xa({global:!0},{globalThis:_e}),Or&&(k.fn.append=Or),Oo&&(k.fn.on=Oo),ga&&(k.fn.focus=ga),Ar&&(k.fn.attr=Ar),Ao&&(k.fn.val=Ao),ha&&(k.fn.html=ha),Sl&&(k.fn.dataset=Sl),Dl&&(k.fn.addClass=Dl),xl&&(k.fn.removeClass=xl),kl&&(k.fn.children=kl),Lv&&(k.fn.each=Lv),Bl&&(k.fn.find=Bl);var Zd=!1,fR=0,dR=0,Yd=null,Jd=null,cd=k("body");function pR(e){Zd=!1,Jd=null,Yd=null,cd.off("mousemove",hR),cd.off("mouseup",pR)}cd.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),Zd=!0;var n=e.clientX;fR=n;var r=t.getBoundingClientRect().width;dR=r,cd.on("mousemove",hR),cd.on("mouseup",pR)}});var hR=$u(function(e){if(Zd&&Jd!=null&&Yd!=null){e.preventDefault();var t=e.clientX,n=dR+(t-fR);(n=Math.floor(100*n)/100)<30&&(n=30),N.setNodes(Jd,{width:n.toString()},{at:Yd})}},100),efe={type:"table",renderElem:function(e,t,n){var r=(function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||L.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,d=A.findPath(u,s),p=E.start(u,d),y=E.end(u,d),v=ke.compare(c,y)<=0&&ke.compare(c,p)>=0,g=ke.compare(f,y)<=0&&ke.compare(f,p)>=0;return!!(v&&g&&P.equals(c.path.slice(0,3),f.path.slice(0,3)))})(n,e),o=e.width,i=o===void 0?"auto":o,a=be("div",{className:"table-container","data-selected":A.isNodeSelected(n,e),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=A.findPath(n,e),l=E.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},be("table",{width:i,contentEditable:r},be("colgroup",null,sm(e).map(function(u){var s=u.width;return be("col",{width:s===void 0?"auto":s})})),be("tbody",null,t)));return a}},tfe={type:"table-row",renderElem:function(e,t,n){return be("tr",null,t)}},nfe={type:"table-cell",renderElem:function(e,t,n){var r=(function(d,p){var y=A.getParentNode(d,p);if(y==null)return!1;var v=A.getParentNode(d,y);return v!=null&&sm(v).some(function(g){return g===p})})(n,e),o=e,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!r)return be("td",{colSpan:a,rowSpan:s},t);var f=be(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:$u(function(d){var p=this.elm;if(p!=null){var y=p.getBoundingClientRect(),v=y.left,g=y.width,m=y.top,h=y.height,b=d.clientX,w=d.clientY;Zd||(b>v+g-5&&b<v+g&&w>m&&w<m+h?(p.style.cursor="col-resize",Jd=n,Yd=A.findPath(n,e)):Zd||(p.style.cursor="auto",Jd=null,Yd=null))}},100)}},t);return f}},rfe={selector:"table",preParseHtml:function(e){var t=k(e);if(cR(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]}},ofe=um.filter;xa({target:"Array",proto:!0,forced:!xD("filter")},{filter:function(e){return ofe(this,e,arguments.length>1?arguments[1]:void 0)}});var ife=Math.floor,C2=Re("".charAt),afe=Re("".replace),S2=Re("".slice),ufe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,sfe=/\$([$&'`]|\d{1,2})/g,lfe=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=sfe;return o!==void 0&&(o=fD(o),s=ufe),afe(i,s,function(l,c){var f;switch(C2(c,0)){case"$":return"$";case"&":return e;case"`":return S2(t,0,n);case"'":return S2(t,a);case"<":f=o[S2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=ife(d/10);return p===0?l:p<=u?r[p-1]===void 0?C2(c,1):r[p-1]+C2(c,1):l}f=r[d-1]}return f===void 0?"":f})},j6=jr("replace"),cfe=Math.max,ffe=Math.min,dfe=Re([].concat),A2=Re([].push),Tk=Re("".indexOf),_k=Re("".slice),pfe="a".replace(/./,"$0")==="$0",jk=!!/./[j6]&&/./[j6]("a","$0")==="";uR("replace",function(e,t,n){var r=jk?"$":"$0";return[function(o,i){var a=Da(this),u=o==null?void 0:sD(o,j6);return u?Yt(u,o,a,i):Yt(t,xn(a),o,i)},function(o,i){var a=Cr(this),u=xn(o);if(typeof i=="string"&&Tk(i,r)===-1&&Tk(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=On(i);l||(i=xn(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=T6(a,u);if(p===null||(A2(d,p),!c))break;xn(p[0])===""&&(a.lastIndex=sR(u,yD(a.lastIndex),f))}for(var y,v="",g=0,m=0;m<d.length;m++){for(var h=xn((p=d[m])[0]),b=cfe(ffe(im(p.index),u.length),0),w=[],D=1;D<p.length;D++)A2(w,(y=p[D])===void 0?y:String(y));var C=p.groups;if(l){var x=dfe([h],w,b,u);C!==void 0&&A2(x,C);var O=xn(aR(i,void 0,x))}else O=lfe(h,u,b,w,C,i);b>=g&&(v+=_k(u,g,b)+O,g=b+h.length)}return v+_k(u,g)}]},!!qt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!pfe||jk);var hfe={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);(t=t.filter(function(u){return!!oe.isText(u)||!!n.isInline(u)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:cR(r)==="th",colSpan:o,rowSpan:i,width:a,children:t}}},gfe={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(r){return A.getNodeType(r)==="table-cell"})}}},vfe={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e),o="auto";return(function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var d=f.split(":");d[0].trim()==="width"&&(u=d[1].trim())}}return u})(r)==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:t.filter(function(i){return A.getNodeType(i)==="table-row"})}}},yfe=(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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(t).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!t.isVoid(r)})},e.prototype.getPanelContentElem=function(t){var n=this;if(this.$content)return this.$content[0];for(var r=k('<div class="w-e-panel-content-table"></div>'),o=k("<span>0 × 0</span>"),i=k("<table></table>"),a=0;a<10;a++){for(var u=k("<tr></tr>"),s=0;s<10;s++){var l=k("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var d=k(f).dataset(),p=d.x,y=d.y;o[0].innerHTML=p+1+" × "+(y+1),i.children().each(function(v){k(v).children().each(function(g){var m=k(g),h=m.dataset(),b=h.x,w=h.y;b<=p&&w<=y?m.addClass("active"):m.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var d=k(f).dataset(),p=d.x,y=d.y;n.insertTable(t,y+1,p+1)}})}i.append(u)}return r.append(i),r.append(o),this.$content=r,r[0]},e.prototype.insertTable=function(t,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){A.isSelectedEmptyParagraph(t)&&N.removeNodes(t,{mode:"highest"});var a=(function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],d=0;d<s;d++){var p={type:"table-cell",children:[{text:""}]};c===0&&(p.isHeader=!0),f.push(p)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}})(o,i);N.insertNodes(t,a,{mode:"highest"})}},e})(),mfe=(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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||N.removeNodes(t,{mode:"highest"})},e})(),bfe=(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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Jr(E.nodes(t,{match:function(p){return A.checkNodeType(p,"table-cell")},universal:!0}),1),o=Jr(r[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=P.parent(a),d=P.next(f);N.insertNodes(t,l,{at:d})}}},e})(),wfe=(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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Jr(E.nodes(t,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=Jr(r[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i);((u==null?void 0:u.children.length)||0)<=1?N.removeNodes(t,{mode:"highest"}):N.removeNodes(t,{at:a})}},e})(),Pk={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},O2=pD("span").classList,Nk=O2&&O2.constructor&&O2.constructor.prototype,Efe=Nk===Object.prototype?void 0:Nk,Dfe=um.forEach,xfe=(function(e,t){var n=[].forEach;return!!n&&qt(function(){n.call(null,function(){throw 1},1)})})(),B2=xfe?[].forEach:function(e){return Dfe(this,e,arguments.length>1?arguments[1]:void 0)},gR=function(e){if(e&&e.forEach!==B2)try{$l(e,"forEach",B2)}catch{e.forEach=B2}};for(var k2 in Pk)Pk[k2]&&gR(_e[k2]&&_e[k2].prototype);gR(Efe);var Cfe=(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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Jr(E.nodes(t,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=Jr(r[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i);if(u!=null){var s=A.getParentNode(t,u);s!=null&&(s.children||[]).forEach(function(l,c){ce.isElement(l)&&(l.children||[]).forEach(function(f){var d=A.findPath(t,f);if(d.length===a.length&&IL(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&oR(s)&&(p.isHeader=!0),N.insertNodes(t,p,{at:d})}})})}}},e})(),Sfe=(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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Jr(E.nodes(t,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=Jr(r[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)N.removeNodes(t,{mode:"highest"});else{var l=A.getParentNode(t,u);l!=null&&(l.children||[]).forEach(function(c){ce.isElement(c)&&(c.children||[]).forEach(function(f){var d=A.findPath(t,f);d.length===a.length&&IL(d.slice(-1),a.slice(-1))&&N.removeNodes(t,{at:d})})})}}},e})(),Afe=(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(t){var n=A.getSelectedNodeByType(t,"table");return n!=null&&oR(n)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=!n,o=A.getSelectedNodeByType(t,"table");o!=null&&sm(o).forEach(function(i){return N.setNodes(t,{isHeader:r},{at:A.findPath(t,i)})})}},e})(),Ofe=(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(t){var n=A.getSelectedNodeByType(t,"table");return n!=null&&n.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r={width:n?"auto":"100%"};N.setNodes(t,r,{mode:"highest"})}},e})(),Bfe={renderElems:[efe,tfe,nfe],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,o=r===void 0?1:r,i=n.rowSpan,a=i===void 0?1:i,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[rfe],parseElemsHtml:[hfe,gfe,vfe],menus:[{key:"insertTable",factory:function(){return new yfe}},{key:"deleteTable",factory:function(){return new mfe}},{key:"insertTableRow",factory:function(){return new bfe}},{key:"deleteTableRow",factory:function(){return new wfe}},{key:"insertTableCol",factory:function(){return new Cfe}},{key:"deleteTableCol",factory:function(){return new Sfe}},{key:"tableHeader",factory:function(){return new Afe}},{key:"tableFullWidth",factory:function(){return new Ofe}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){A.getSelectedNodeByType(s,"table")==null?t():s.insertText(`
|
|
127
|
+
`)},s.deleteBackward=function(l){if(!wk(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var d=Ek(s,f),p=Ek(s,c);if(d&&!p)return}}n(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=E.above(e);A.checkNodeType(c[0],"table-cell")&&N.select(e,c[1]);var f=E.next(e);if(f)f[0]&&f[0].text&&(f=(l=E.above(e,{at:f[1]}))!==null&&l!==void 0?l:f),N.select(e,f[1]);else{var d=s.children||[],p=d.length;if(A.checkNodeType(d[p-1],"table")){var y=A.genEmptyParagraph();N.insertNodes(s,y,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){wk(s)||r(l)},s.normalizeNode=function(l){var c=Jr(l,2),f=c[0],d=c[1];if(A.getNodeType(f)!=="table")return o([f,d]);if(A.isLastNode(s,f)){var p=A.genEmptyParagraph();N.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
|
|
128
|
+
`||/<img[^>]+>/.test(l.getData("text/html"))?i(l):E.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=A.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(P.equals(f.path.slice(0,3),d.path.slice(0,3)))if(J.string(c).length!==0){var p=A.findPath(s,c),y={anchor:E.start(s,p),focus:E.end(s,p)};s.select(y)}else u();else u()}else u()}else u()},s}};qn("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"}}),qn("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
|
|
129
|
+
Copyright (c) Microsoft Corporation.
|
|
130
|
+
|
|
131
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
132
|
+
purpose with or without fee is hereby granted.
|
|
133
|
+
|
|
134
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
135
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
136
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
137
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
138
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
139
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
140
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
141
|
+
***************************************************************************** */var N0=function(){return N0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},N0.apply(this,arguments)};function lm(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(e,[])).next())})}function cm(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return(function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([s,l])}}}function Tu(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function kfe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=(function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"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(o){t[o]=e[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(i=e[o](i)).done,i.value)})}}}var Ik=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function SD(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ti,Zg,ug=function(e){return e&&e.Math==Math&&e},ne=ug(typeof globalThis=="object"&&globalThis)||ug(typeof window=="object"&&window)||ug(typeof self=="object"&&self)||ug(typeof Ik=="object"&&Ik)||(function(){return this})()||Function("return this")(),ct=function(e){try{return!!e()}catch{return!0}},ko=!ct(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),bf=Function.prototype.call,lt=bf.bind?bf.bind(bf):function(){return bf.apply(bf,arguments)},Lk={}.propertyIsEnumerable,Rk=Object.getOwnPropertyDescriptor,Ffe={f:Rk&&!Lk.call({1:2},1)?function(e){var t=Rk(this,e);return!!t&&t.enumerable}:Lk},fm=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},vR=Function.prototype,P6=vR.bind,N6=vR.call,Tfe=P6&&P6.bind(N6),xe=P6?function(e){return e&&Tfe(N6,e)}:function(e){return e&&function(){return N6.apply(e,arguments)}},_fe=xe({}.toString),jfe=xe("".slice),xo=function(e){return jfe(_fe(e),8,-1)},F2=ne.Object,Pfe=xe("".split),AD=ct(function(){return!F2("z").propertyIsEnumerable(0)})?function(e){return xo(e)=="String"?Pfe(e,""):F2(e)}:F2,Nfe=ne.TypeError,eh=function(e){if(e==null)throw Nfe("Can't call method on "+e);return e},Ta=function(e){return AD(eh(e))},ot=function(e){return typeof e=="function"},mt=function(e){return typeof e=="object"?e!==null:ot(e)},Ife=function(e){return ot(e)?e:void 0},Yu=function(e,t){return arguments.length<2?Ife(ne[e]):ne[e]&&ne[e][t]},Qd=xe({}.isPrototypeOf),pl=Yu("navigator","userAgent")||"",Mk=ne.process,zk=ne.Deno,$k=Mk&&Mk.versions||zk&&zk.version,Hk=$k&&$k.v8;Hk&&(Zg=(Ti=Hk.split("."))[0]>0&&Ti[0]<4?1:+(Ti[0]+Ti[1])),!Zg&&pl&&(!(Ti=pl.match(/Edge\/(\d+)/))||Ti[1]>=74)&&(Ti=pl.match(/Chrome\/(\d+)/))&&(Zg=+Ti[1]);var ep=Zg,I6=!!Object.getOwnPropertySymbols&&!ct(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ep&&ep<41}),OD=I6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Lfe=ne.Object,T2=OD?function(e){return typeof e=="symbol"}:function(e){var t=Yu("Symbol");return ot(t)&&Qd(t.prototype,Lfe(e))},Rfe=ne.String,I0=function(e){try{return Rfe(e)}catch{return"Object"}},Mfe=ne.TypeError,Ca=function(e){if(ot(e))return e;throw Mfe(I0(e)+" is not a function")},tp=function(e,t){var n=e[t];return n==null?void 0:Ca(n)},zfe=ne.TypeError,$fe=Object.defineProperty,BD=function(e,t){try{$fe(ne,e,{value:t,configurable:!0,writable:!0})}catch{ne[e]=t}return t},aa=ne["__core-js_shared__"]||BD("__core-js_shared__",{}),kD=SD(function(e){(e.exports=function(t,n){return aa[t]||(aa[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Hfe=ne.Object,dm=function(e){return Hfe(eh(e))},Vfe=xe({}.hasOwnProperty),Wt=Object.hasOwn||function(e,t){return Vfe(dm(e),t)},Ufe=0,Wfe=Math.random(),Gfe=xe(1 .toString),FD=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Gfe(++Ufe+Wfe,36)},wf=kD("wks"),_u=ne.Symbol,Vk=_u&&_u.for,qfe=OD?_u:_u&&_u.withoutSetter||FD,Rt=function(e){if(!Wt(wf,e)||!I6&&typeof wf[e]!="string"){var t="Symbol."+e;I6&&Wt(_u,e)?wf[e]=_u[e]:wf[e]=OD&&Vk?Vk(t):qfe(t)}return wf[e]},Kfe=ne.TypeError,Xfe=Rt("toPrimitive"),TD=function(e){var t=(function(n,r){if(!mt(n)||T2(n))return n;var o,i=tp(n,Xfe);if(i){if(o=lt(i,n,r),!mt(o)||T2(o))return o;throw Kfe("Can't convert object to primitive value")}return(function(a,u){var s,l;if(ot(s=a.toString)&&!mt(l=lt(s,a))||ot(s=a.valueOf)&&!mt(l=lt(s,a)))return l;throw zfe("Can't convert object to primitive value")})(n)})(e,"string");return T2(t)?t:t+""},L6=ne.document,Zfe=mt(L6)&&mt(L6.createElement),np=function(e){return Zfe?L6.createElement(e):{}},yR=!ko&&!ct(function(){return Object.defineProperty(np("div"),"a",{get:function(){return 7}}).a!=7}),Uk=Object.getOwnPropertyDescriptor,_D={f:ko?Uk:function(e,t){if(e=Ta(e),t=TD(t),yR)try{return Uk(e,t)}catch{}if(Wt(e,t))return fm(!lt(Ffe.f,e,t),e[t])}},Yfe=ne.String,Jfe=ne.TypeError,ln=function(e){if(mt(e))return e;throw Jfe(Yfe(e)+" is not an object")},Qfe=ne.TypeError,Wk=Object.defineProperty,fi={f:ko?Wk:function(e,t,n){if(ln(e),t=TD(t),ln(n),yR)try{return Wk(e,t,n)}catch{}if("get"in n||"set"in n)throw Qfe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ua=ko?function(e,t,n){return fi.f(e,t,fm(1,n))}:function(e,t,n){return e[t]=n,e},ede=xe(Function.toString);ot(aa.inspectSource)||(aa.inspectSource=function(e){return ede(e)});var L0,fd,R0,pm=aa.inspectSource,Gk=ne.WeakMap,mR=ot(Gk)&&/native code/.test(pm(Gk)),qk=kD("keys"),jD=function(e){return qk[e]||(qk[e]=FD(e))},hm={},R6=ne.TypeError,tde=ne.WeakMap;if(mR||aa.state){var Ka=aa.state||(aa.state=new tde),nde=xe(Ka.get),Kk=xe(Ka.has),rde=xe(Ka.set);L0=function(e,t){if(Kk(Ka,e))throw new R6("Object already initialized");return t.facade=e,rde(Ka,e,t),t},fd=function(e){return nde(Ka,e)||{}},R0=function(e){return Kk(Ka,e)}}else{var Rs=jD("state");hm[Rs]=!0,L0=function(e,t){if(Wt(e,Rs))throw new R6("Object already initialized");return t.facade=e,ua(e,Rs,t),t},fd=function(e){return Wt(e,Rs)?e[Rs]:{}},R0=function(e){return Wt(e,Rs)}}var sr={set:L0,get:fd,has:R0,enforce:function(e){return R0(e)?fd(e):L0(e,{})},getterFor:function(e){return function(t){var n;if(!mt(t)||(n=fd(t)).type!==e)throw R6("Incompatible receiver, "+e+" required");return n}}},bR=Function.prototype,ode=ko&&Object.getOwnPropertyDescriptor,_2=Wt(bR,"name"),pc={EXISTS:_2,PROPER:_2&&(function(){}).name==="something",CONFIGURABLE:_2&&(!ko||ko&&ode(bR,"name").configurable)},Tr=SD(function(e){var t=pc.CONFIGURABLE,n=sr.get,r=sr.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;ot(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Wt(u,"name")||t&&u.name!==p)&&ua(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==ne?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ua(i,a,u)):f?i[a]=u:BD(a,u)})(Function.prototype,"toString",function(){return ot(this)&&n(this).source||pm(this)})}),ide=Math.ceil,ade=Math.floor,gm=function(e){var t=+e;return t!=t||t===0?0:(t>0?ade:ide)(t)},ude=Math.max,sde=Math.min,rp=function(e,t){var n=gm(e);return n<0?ude(n+t,0):sde(n,t)},lde=Math.min,wR=function(e){return e>0?lde(gm(e),9007199254740991):0},th=function(e){return wR(e.length)},Xk=function(e){return function(t,n,r){var o,i=Ta(t),a=th(i),u=rp(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},ER={includes:Xk(!0),indexOf:Xk(!1)},cde=ER.indexOf,Zk=xe([].push),DR=function(e,t){var n,r=Ta(e),o=0,i=[];for(n in r)!Wt(hm,n)&&Wt(r,n)&&Zk(i,n);for(;t.length>o;)Wt(r,n=t[o++])&&(~cde(i,n)||Zk(i,n));return i},M0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fde=M0.concat("length","prototype"),z0={f:Object.getOwnPropertyNames||function(e){return DR(e,fde)}},dde={f:Object.getOwnPropertySymbols},pde=xe([].concat),hde=Yu("Reflect","ownKeys")||function(e){var t=z0.f(ln(e)),n=dde.f;return n?pde(t,n(e)):t},gde=function(e,t){for(var n=hde(t),r=fi.f,o=_D.f,i=0;i<n.length;i++){var a=n[i];Wt(e,a)||r(e,a,o(t,a))}},vde=/#|\.prototype\./,nh=function(e,t){var n=mde[yde(e)];return n==wde||n!=bde&&(ot(t)?ct(t):!!t)},yde=nh.normalize=function(e){return String(e).replace(vde,".").toLowerCase()},mde=nh.data={},bde=nh.NATIVE="N",wde=nh.POLYFILL="P",$0=nh,Ede=_D.f,$n=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?ne:l?ne[u]||BD(u,{}):(ne[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Ede(n,r))&&a.value:n[r],!$0(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;gde(i,o)}(e.sham||o&&o.sham)&&ua(i,"sham",!0),Tr(n,r,i,e)}},xR={};xR[Rt("toStringTag")]="z";var PD=String(xR)==="[object z]",Dde=Rt("toStringTag"),xde=ne.Object,Cde=xo((function(){return arguments})())=="Arguments",vm=PD?xo:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=xde(e),Dde))=="string"?n:Cde?xo(t):(r=xo(t))=="Object"&&ot(t.callee)?"Arguments":r},Sde=ne.String,mr=function(e){if(vm(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Sde(e)},M6=`
|
|
142
|
+
\v\f\r \u2028\u2029\uFEFF`,Yk=xe("".replace),H0="["+M6+"]",Ade=RegExp("^"+H0+H0+"*"),Ode=RegExp(H0+H0+"*$"),Bde=function(e){return function(t){var n=mr(eh(t));return n=Yk(n,Ade,""),n=Yk(n,Ode,""),n}},kde={trim:Bde()},Fde=pc.PROPER,Tde=kde.trim;function Jk(e){return e.length?e[0].tagName.toLowerCase():""}function CR(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=k(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}$n({target:"String",proto:!0,forced:ct(function(){return!!M6.trim()||"
".trim()!=="
"||Fde&&M6.trim.name!=="trim"})},{trim:function(){return Tde(this)}}),$n({global:!0},{globalThis:ne}),Or&&(k.fn.append=Or),Oo&&(k.fn.on=Oo),ga&&(k.fn.focus=ga),Ar&&(k.fn.attr=Ar),Ao&&(k.fn.val=Ao),ha&&(k.fn.html=ha),Ol&&(k.fn.parent=Ol),Cl&&(k.fn.hasClass=Cl),Tl&&(k.fn.empty=Tl);var sg,_de={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=i===void 0?"":i,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,d=f===void 0?"auto":f,p=A.isNodeSelected(n,e);if(a.trim().indexOf("<iframe ")===0)r=be("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:CR(a,c,d)});else{var y=be("video",{poster:s,controls:!0},be("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
|
|
143
|
+
抱歉,浏览器不支持 video 视频`);c!=="auto"&&(y.data.width=c),d!=="auto"&&(y.data.height=d),r=be("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},y)}return _l("div",{props:{contentEditable:!1},on:{mousedown:function(v){return v.preventDefault()}}},r)}},jde={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=r===void 0?"":r,i=n.poster,a=i===void 0?"":i,u=n.width,s=u===void 0?"auto":u,l=n.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
|
|
144
|
+
`;return o.trim().indexOf("<iframe ")===0?f+=CR(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
|
|
145
|
+
</div>`}},Pde=Object.keys||function(e){return DR(e,M0)},Nde=ko?Object.defineProperties:function(e,t){ln(e);for(var n,r=Ta(t),o=Pde(t),i=o.length,a=0;i>a;)fi.f(e,n=o[a++],r[n]);return e},z6=Yu("document","documentElement"),SR=jD("IE_PROTO"),j2=function(){},AR=function(e){return"<script>"+e+"<\/script>"},Qk=function(e){e.write(AR("")),e.close();var t=e.parentWindow.Object;return e=null,t},Yg=function(){try{sg=new ActiveXObject("htmlfile")}catch{}var e,t;Yg=typeof document<"u"?document.domain&&sg?Qk(sg):((t=np("iframe")).style.display="none",z6.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(AR("document.F=Object")),e.close(),e.F):Qk(sg);for(var n=M0.length;n--;)delete Yg.prototype[M0[n]];return Yg()};hm[SR]=!0;var ND=Object.create||function(e,t){var n;return e!==null?(j2.prototype=ln(e),n=new j2,j2.prototype=null,n[SR]=e):n=Yg(),t===void 0?n:Nde(n,t)},$6=Rt("unscopables"),H6=Array.prototype;H6[$6]==null&&fi.f(H6,$6,{configurable:!0,value:ND(null)});var dd=function(e){H6[$6][e]=!0},Ide=ER.includes;$n({target:"Array",proto:!0},{includes:function(e){return Ide(this,e,arguments.length>1?arguments[1]:void 0)}}),dd("includes");var Lde={selector:"iframe,video,p",preParseHtml:function(e){var t=k(e),n=t;if(Jk(t)==="p"){var r=t.children();if(r.length===1){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=k(o))}}var a=Jk(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var u=k('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},eF=xe(xe.bind),op=function(e,t){return Ca(e),t===void 0?e:eF?eF(e,t):function(){return e.apply(t,arguments)}},V0=Array.isArray||function(e){return xo(e)=="Array"},OR=function(){},Rde=[],BR=Yu("Reflect","construct"),ID=/^\s*(?:class|function)\b/,Mde=xe(ID.exec),zde=!ID.exec(OR),Ef=function(e){if(!ot(e))return!1;try{return BR(OR,Rde,e),!0}catch{return!1}},LD=!BR||ct(function(){var e;return Ef(Ef.call)||!Ef(Object)||!Ef(function(){e=!0})||e})?function(e){if(!ot(e))return!1;switch(vm(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return zde||!!Mde(ID,pm(e))}:Ef,$de=Rt("species"),tF=ne.Array,Hde=function(e,t){return new((function(n){var r;return V0(n)&&(r=n.constructor,(LD(r)&&(r===tF||V0(r.prototype))||mt(r)&&(r=r[$de])===null)&&(r=void 0)),r===void 0?tF:r})(e))(t===0?0:t)},nF=xe([].push),rF=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,y=dm(s),v=AD(y),g=op(l,c),m=th(v),h=0,b=f||Hde,w=t?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in v)&&(p=g(d=v[h],h,y),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:nF(w,d)}else switch(e){case 4:return!1;case 7:nF(w,d)}return i?-1:r||o?o:w}},RD={find:rF(5),findIndex:rF(6)},Vde=RD.find,oF=!0;"find"in[]&&Array(1).find(function(){oF=!1}),$n({target:"Array",proto:!0,forced:oF},{find:function(e){return Vde(this,e,arguments.length>1?arguments[1]:void 0)}}),dd("find");var Ude=PD?{}.toString:function(){return"[object "+vm(this)+"]"};function iF(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:""}]}}PD||Tr(Object.prototype,"toString",Ude,{unsafe:!0});var aF,P2,Wde={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=k(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",iF(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",iF(o,i=l.attr("poster")||"",a,u)}},kR=function(){var e=ln(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},MD=ne.RegExp,FR=ct(function(){var e=MD("a","y");return e.lastIndex=2,e.exec("abcd")!=null});FR||ct(function(){return!MD("a","y").sticky});var Gde={BROKEN_CARET:FR||ct(function(){var e=MD("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},qde=ne.RegExp,Kde=ct(function(){var e=qde(".","s");return!(e.dotAll&&e.exec(`
|
|
146
|
+
`)&&e.flags==="s")}),Xde=ne.RegExp,Zde=ct(function(){var e=Xde("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Yde=sr.get,Jde=kD("native-string-replace",String.prototype.replace),U0=RegExp.prototype.exec,V6=U0,Qde=xe("".charAt),epe=xe("".indexOf),tpe=xe("".replace),N2=xe("".slice),I2=(P2=/b*/g,lt(U0,aF=/a/,"a"),lt(U0,P2,"a"),aF.lastIndex!==0||P2.lastIndex!==0),uF=Gde.BROKEN_CARET,L2=/()??/.exec("")[1]!==void 0;(I2||L2||uF||Kde||Zde)&&(V6=function(e){var t,n,r,o,i,a,u,s=this,l=Yde(s),c=mr(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=lt(V6,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=uF&&s.sticky,y=lt(kR,s),v=s.source,g=0,m=c;if(p&&(y=tpe(y,"y",""),epe(y,"g")===-1&&(y+="g"),m=N2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Qde(c,s.lastIndex-1)!==`
|
|
147
|
+
`)&&(v="(?: "+v+")",m=" "+m,g++),n=new RegExp("^(?:"+v+")",y)),L2&&(n=new RegExp("^"+v+"$(?!\\s)",y)),I2&&(r=s.lastIndex),o=lt(U0,p?n:s,m),p?o?(o.input=N2(o.input,g),o[0]=N2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:I2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),L2&&o&&o.length>1&<(Jde,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=ND(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var W0=V6;$n({target:"RegExp",proto:!0,forced:/./.exec!==W0},{exec:W0});var zD=Function.prototype,sF=zD.apply,npe=zD.bind,lF=zD.call,TR=typeof Reflect=="object"&&Reflect.apply||(npe?lF.bind(sF):function(){return lF.apply(sF,arguments)}),cF=(Rt("species"),RegExp.prototype),rpe=xe("".charAt),fF=xe("".charCodeAt),ope=xe("".slice),ipe=function(e){return function(t,n){var r,o,i=mr(eh(t)),a=gm(n),u=i.length;return a<0||a>=u?"":(r=fF(i,a))<55296||r>56319||a+1===u||(o=fF(i,a+1))<56320||o>57343?rpe(i,a):ope(i,a,a+2)}},_R={charAt:ipe()},ape=_R.charAt,upe=function(e,t,n){return t+(n?ape(e,t).length:1)},spe=Math.floor,R2=xe("".charAt),lpe=xe("".replace),M2=xe("".slice),cpe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,fpe=/\$([$&'`]|\d{1,2})/g,dpe=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=fpe;return o!==void 0&&(o=dm(o),s=cpe),lpe(i,s,function(l,c){var f;switch(R2(c,0)){case"$":return"$";case"&":return e;case"`":return M2(t,0,n);case"'":return M2(t,a);case"<":f=o[M2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=spe(d/10);return p===0?l:p<=u?r[p-1]===void 0?R2(c,1):r[p-1]+R2(c,1):l}f=r[d-1]}return f===void 0?"":f})},ppe=ne.TypeError,hpe=function(e,t){var n=e.exec;if(ot(n)){var r=lt(n,e,t);return r!==null&&ln(r),r}if(xo(e)==="RegExp")return lt(W0,e,t);throw ppe("RegExp#exec called on incompatible receiver")},U6=Rt("replace"),gpe=Math.max,vpe=Math.min,ype=xe([].concat),z2=xe([].push),dF=xe("".indexOf),pF=xe("".slice),mpe="a".replace(/./,"$0")==="$0",hF=!!/./[U6]&&/./[U6]("a","$0")==="";function jR(e){return e+"-"+$j()}(function(e,t,n,r){var o=Rt(e),i=!ct(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!ct(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=xe(/./[o]),s=(function(l,c,f){var d=hF?"$":"$0";return[function(p,y){var v=eh(this),g=p==null?void 0:tp(p,U6);return g?lt(g,p,v,y):lt(c,mr(v),p,y)},function(p,y){var v=ln(this),g=mr(p);if(typeof y=="string"&&dF(y,d)===-1&&dF(y,"$<")===-1){var m=f(c,v,g,y);if(m.done)return m.value}var h=ot(y);h||(y=mr(y));var b=v.global;if(b){var w=v.unicode;v.lastIndex=0}for(var D=[];;){var C=hpe(v,g);if(C===null||(z2(D,C),!b))break;mr(C[0])===""&&(v.lastIndex=upe(g,wR(v.lastIndex),w))}for(var x,O="",F=0,R=0;R<D.length;R++){for(var H=mr((C=D[R])[0]),M=gpe(vpe(gm(C.index),g.length),0),K=[],U=1;U<C.length;U++)z2(K,(x=C[U])===void 0?x:String(x));var W=C.groups;if(h){var q=ype([H],K,M,g);W!==void 0&&z2(q,W);var te=mr(TR(y,void 0,q))}else te=dpe(H,g,M,K,W,y);M>=F&&(O+=pF(g,F,M)+te,F=M+H.length)}return O+pF(g,F)}]})(0,""[e],function(l,c,f,d,p){var y=xe(l),v=c.exec;return v===W0||v===cF.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:y(f,c,d)}:{done:!1}});Tr(String.prototype,e,s[0]),Tr(cF,o,s[1])}})("replace",0,!!ct(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!mpe||hF);var G0=ne.Promise,q0=function(e,t,n){for(var r in t)Tr(e,r,t[r],n);return e},bpe=ne.String,wpe=ne.TypeError,Hl=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=xe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return ln(r),(function(i){if(typeof i=="object"||ot(i))return i;throw wpe("Can't set "+bpe(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),Epe=fi.f,gF=Rt("toStringTag"),K0=function(e,t,n){e&&!Wt(e=n?e:e.prototype,gF)&&Epe(e,gF,{configurable:!0,value:t})},vF=Rt("species"),Dpe=ne.TypeError,$D=function(e,t){if(Qd(t,e))return e;throw Dpe("Incorrect invocation")},Vl={},xpe=Rt("iterator"),Cpe=Array.prototype,Spe=Rt("iterator"),yF=function(e){if(e!=null)return tp(e,Spe)||tp(e,"@@iterator")||Vl[vm(e)]},Ape=ne.TypeError,mF=function(e,t,n){var r,o;ln(e);try{if(!(r=tp(e,"return"))){if(t==="throw")throw n;return n}r=lt(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return ln(r),n},Ope=ne.TypeError,Jg=function(e,t){this.stopped=e,this.result=t},bF=Jg.prototype,X0=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),v=op(t,f),g=function(h){return r&&mF(r,"normal",h),new Jg(!0,h)},m=function(h){return d?(ln(h),y?v(h[0],h[1],g):v(h[0],h[1])):y?v(h,g):v(h)};if(p)r=e;else{if(!(o=yF(e)))throw Ope(I0(e)+" is not iterable");if((c=o)!==void 0&&(Vl.Array===c||Cpe[xpe]===c)){for(i=0,a=th(e);a>i;i++)if((u=m(e[i]))&&Qd(bF,u))return u;return new Jg(!1)}r=(function(h,b){var w=arguments.length<2?yF(h):b;if(Ca(w))return ln(lt(w,h));throw Ape(I0(h)+" is not iterable")})(e,o)}for(s=r.next;!(l=lt(s,r)).done;){try{u=m(l.value)}catch(h){mF(r,"throw",h)}if(typeof u=="object"&&u&&Qd(bF,u))return u}return new Jg(!1)},PR=Rt("iterator"),NR=!1;try{var Bpe=0,wF={next:function(){return{done:!!Bpe++}},return:function(){NR=!0}};wF[PR]=function(){return this},Array.from(wF,function(){throw 2})}catch{}var ip,Ms,EF,$2,IR=function(e,t){if(!NR)return!1;var n=!1;try{var r={};r[PR]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},kpe=ne.TypeError,Fpe=Rt("species"),LR=xe([].slice),RR=/(?:ipad|iphone|ipod).*applewebkit/i.test(pl),sa=xo(ne.process)=="process",W6=ne.setImmediate,DF=ne.clearImmediate,Tpe=ne.process,H2=ne.Dispatch,_pe=ne.Function,xF=ne.MessageChannel,jpe=ne.String,V2=0,pd={};try{ip=ne.location}catch{}var HD=function(e){if(Wt(pd,e)){var t=pd[e];delete pd[e],t()}},U2=function(e){return function(){HD(e)}},CF=function(e){HD(e.data)},SF=function(e){ne.postMessage(jpe(e),ip.protocol+"//"+ip.host)};W6&&DF||(W6=function(e){var t=LR(arguments,1);return pd[++V2]=function(){TR(ot(e)?e:_pe(e),void 0,t)},Ms(V2),V2},DF=function(e){delete pd[e]},sa?Ms=function(e){Tpe.nextTick(U2(e))}:H2&&H2.now?Ms=function(e){H2.now(U2(e))}:xF&&!RR?($2=(EF=new xF).port2,EF.port1.onmessage=CF,Ms=op($2.postMessage,$2)):ne.addEventListener&&ot(ne.postMessage)&&!ne.importScripts&&ip&&ip.protocol!=="file:"&&!ct(SF)?(Ms=SF,ne.addEventListener("message",CF,!1)):Ms="onreadystatechange"in np("script")?function(e){z6.appendChild(np("script")).onreadystatechange=function(){z6.removeChild(this),HD(e)}}:function(e){setTimeout(U2(e),0)});var Df,au,hd,Js,W2,G2,q2,AF,MR={set:W6},Ppe=/ipad|iphone|ipod/i.test(pl)&&ne.Pebble!==void 0,Npe=/web0s(?!.*chrome)/i.test(pl),Ipe=_D.f,K2=MR.set,OF=ne.MutationObserver||ne.WebKitMutationObserver,BF=ne.document,kF=ne.process,lg=ne.Promise,FF=Ipe(ne,"queueMicrotask"),zR=FF&&FF.value;zR||(Df=function(){var e,t;for(sa&&(e=kF.domain)&&e.exit();au;){t=au.fn,au=au.next;try{t()}catch(n){throw au?Js():hd=void 0,n}}hd=void 0,e&&e.enter()},RR||sa||Npe||!OF||!BF?!Ppe&&lg&&lg.resolve?((q2=lg.resolve(void 0)).constructor=lg,AF=op(q2.then,q2),Js=function(){AF(Df)}):sa?Js=function(){kF.nextTick(Df)}:(K2=op(K2,ne),Js=function(){K2(Df)}):(W2=!0,G2=BF.createTextNode(""),new OF(Df).observe(G2,{characterData:!0}),Js=function(){G2.data=W2=!W2}));var X2,TF,$R,_F,HR=zR||function(e){var t={fn:e,next:void 0};hd&&(hd.next=t),au||(au=t,Js()),hd=t},Lpe=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=Ca(t),this.reject=Ca(n)},VD={f:function(e){return new Lpe(e)}},G6=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Rpe=typeof window=="object",VR=MR.set,Mpe=Rt("species"),Xo="Promise",jF=sr.getterFor(Xo),zpe=sr.set,$pe=sr.getterFor(Xo),eu=G0&&G0.prototype,bo=G0,xf=eu,UR=ne.TypeError,q6=ne.document,UD=ne.process,hl=VD.f,Hpe=hl,Vpe=!!(q6&&q6.createEvent&&ne.dispatchEvent),WR=ot(ne.PromiseRejectionEvent),GR=!1,gd=$0(Xo,function(){var e=pm(bo),t=e!==String(bo);if(!t&&ep===66)return!0;if(ep>=51&&/native code/.test(e))return!1;var n=new bo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Mpe]=r,!(GR=n.then(function(){})instanceof r)||!t&&Rpe&&!WR}),Upe=gd||!IR(function(e){bo.all(e).catch(function(){})}),qR=function(e){var t;return!(!mt(e)||!ot(t=e.then))&&t},WD=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;HR(function(){for(var r=e.value,o=e.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(e.rejection===2&&Gpe(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(UR("Promise-chain cycle")):(u=qR(a))?lt(u,a,f,d):f(a)):d(r)}catch(y){p&&!s&&p.exit(),d(y)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Wpe(e)})}},KR=function(e,t,n){var r,o;Vpe?((r=q6.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),ne.dispatchEvent(r)):r={promise:t,reason:n},!WR&&(o=ne["on"+e])?o(r):e==="unhandledrejection"&&(function(i,a){var u=ne.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))})("Unhandled promise rejection",n)},Wpe=function(e){lt(VR,ne,function(){var t,n=e.facade,r=e.value;if(PF(e)&&(t=G6(function(){sa?UD.emit("unhandledRejection",r,n):KR("unhandledrejection",n,r)}),e.rejection=sa||PF(e)?2:1,t.error))throw t.value})},PF=function(e){return e.rejection!==1&&!e.parent},Gpe=function(e){lt(VR,ne,function(){var t=e.facade;sa?UD.emit("rejectionHandled",t):KR("rejectionhandled",t,e.value)})},ol=function(e,t,n){return function(r){e(t,r,n)}},gl=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,WD(e,!0))},K6=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw UR("Promise can't be resolved itself");var r=qR(t);r?HR(function(){var o={done:!1};try{lt(r,t,ol(K6,o,e),ol(gl,o,e))}catch(i){gl(o,i,e)}}):(e.value=t,e.state=1,WD(e,!1))}catch(o){gl({done:!1},o,e)}}};if(gd&&(xf=(bo=function(e){$D(this,xf),Ca(e),lt(X2,this);var t=jF(this);try{e(ol(K6,t),ol(gl,t))}catch(n){gl(t,n)}}).prototype,(X2=function(e){zpe(this,{type:Xo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=q0(xf,{then:function(e,t){var n=$pe(this),r=n.reactions,o=hl((function(i,a){var u,s=ln(i).constructor;return s===void 0||(u=ln(s)[Fpe])==null?a:(function(l){if(LD(l))return l;throw kpe(I0(l)+" is not a constructor")})(u)})(this,bo));return o.ok=!ot(e)||e,o.fail=ot(t)&&t,o.domain=sa?UD.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&WD(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),TF=function(){var e=new X2,t=jF(e);this.promise=e,this.resolve=ol(K6,t),this.reject=ol(gl,t)},VD.f=hl=function(e){return e===bo||e===$R?new TF(e):Hpe(e)},ot(G0)&&eu!==Object.prototype)){_F=eu.then,GR||(Tr(eu,"then",function(e,t){var n=this;return new bo(function(r,o){lt(_F,n,r,o)}).then(e,t)},{unsafe:!0}),Tr(eu,"catch",xf.catch,{unsafe:!0}));try{delete eu.constructor}catch{}Hl&&Hl(eu,xf)}function ap(e,t,n){return n===void 0&&(n=""),lm(this,void 0,void 0,function(){var r,o,i,a,u,s,l;return cm(this,function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return typeof(u=c.sent())=="string"?(e.alert(u,"error"),[2]):u==null?[2]:[4,a(t)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"<").replace(/>/g,">")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then(function(){N.insertNodes(e,l)}),o(l),[2]}})})}function Z2(){return jR("w-e-insert-video")}$n({global:!0,wrap:!0,forced:gd},{Promise:bo}),K0(bo,Xo,!1),(function(e){var t=Yu("Promise"),n=fi.f;ko&&t&&!t[vF]&&n(t,vF,{configurable:!0,get:function(){return this}})})(),$R=Yu(Xo),$n({target:Xo,stat:!0,forced:gd},{reject:function(e){var t=hl(this);return lt(t.reject,void 0,e),t.promise}}),$n({target:Xo,stat:!0,forced:gd},{resolve:function(e){return(function(t,n){if(ln(t),mt(n)&&n.constructor===t)return n;var r=VD.f(t);return(0,r.resolve)(n),r.promise})(this,e)}}),$n({target:Xo,stat:!0,forced:Upe},{all:function(e){var t=this,n=hl(t),r=n.resolve,o=n.reject,i=G6(function(){var a=Ca(t.resolve),u=[],s=0,l=1;X0(e,function(c){var f=s++,d=!1;l++,lt(a,t,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=hl(t),r=n.reject,o=G6(function(){var i=Ca(t.resolve);X0(e,function(a){lt(i,t,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var qpe=(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=Z2(),this.posterInputId=Z2(),this.buttonId=Z2()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(t).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!t.isVoid(r)})},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,u=Tu(nr(Q("videoModule.videoSrc"),o,Q("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Tu(nr(Q("videoModule.videoPoster"),i,Q("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=k(l),y=k(d),v=Tu(rc(a,Q("videoModule.ok")),1)[0];if(this.$content==null){var g=k("<div></div>");g.on("click","#"+a,function(h){return lm(n,void 0,void 0,function(){var b,w;return cm(this,function(D){switch(D.label){case 0:return h.preventDefault(),b=g.find("#"+o).val().trim(),w=g.find("#"+i).val().trim(),[4,ap(t,b,w)];case 1:return D.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=g}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(v),p.val(""),y.val(""),setTimeout(function(){p.focus()}),m[0]},e})(),Kpe=xe([].join),Xpe=AD!=Object,Zpe=(function(e,t){var n=[].join;return!!n&&ct(function(){n.call(null,",",1)})})();$n({target:"Array",proto:!0,forced:Xpe||!Zpe},{join:function(e){return Kpe(Ta(this),e===void 0?",":e)}});var ju,NF,IF,Ype=!ct(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),LF=jD("IE_PROTO"),X6=ne.Object,Jpe=X6.prototype,Z0=Ype?X6.getPrototypeOf:function(e){var t=dm(e);if(Wt(t,LF))return t[LF];var n=t.constructor;return ot(n)&&t instanceof n?n.prototype:t instanceof X6?Jpe:null},Z6=Rt("iterator"),XR=!1;[].keys&&("next"in(IF=[].keys())?(NF=Z0(Z0(IF)))!==Object.prototype&&(ju=NF):XR=!0);var Qpe=ju==null||ct(function(){var e={};return ju[Z6].call(e)!==e});Qpe&&(ju={}),ot(ju[Z6])||Tr(ju,Z6,function(){return this});var GD={IteratorPrototype:ju,BUGGY_SAFARI_ITERATORS:XR},ehe=GD.IteratorPrototype,the=function(){return this},nhe=pc.PROPER,rhe=pc.CONFIGURABLE,RF=GD.IteratorPrototype,Y2=GD.BUGGY_SAFARI_ITERATORS,Cf=Rt("iterator"),ohe=function(){return this},ZR=function(e,t,n,r,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=ND(ehe,{next:fm(1,h)}),K0(g,w,!1),Vl[w]=the})(n,t,r);var u,s,l=function(g){if(g===o&&y)return y;if(!Y2&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[Cf]||d["@@iterator"]||o&&d[o],y=!Y2&&p||l(o),v=t=="Array"&&d.entries||p;return v&&(u=Z0(v.call(new e)))!==Object.prototype&&u.next&&(Z0(u)!==RF&&(Hl?Hl(u,RF):ot(u[Cf])||Tr(u,Cf,ohe)),K0(u,c,!0)),nhe&&o=="values"&&p&&p.name!=="values"&&(rhe?ua(d,"name","values"):(f=!0,y=function(){return lt(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},$n({target:t,proto:!0,forced:Y2||f},s)),d[Cf]!==y&&Tr(d,Cf,y,{name:o}),Vl[t]=y,s},ihe=sr.set,ahe=sr.getterFor("Array Iterator"),Kf=ZR(Array,"Array",function(e,t){ihe(this,{type:"Array Iterator",target:Ta(e),index:0,kind:t})},function(){var e=ahe(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");Vl.Arguments=Vl.Array,dd("keys"),dd("values"),dd("entries");var uhe=_R.charAt,she=sr.set,lhe=sr.getterFor("String Iterator");ZR(String,"String",function(e){she(this,{type:"String Iterator",string:mr(e),index:0})},function(){var e,t=lhe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=uhe(n,r),t.index+=e.length,{value:e,done:!1})});var YR=function(e,t,n){var r=TD(t);r in e?fi.f(e,r,fm(0,n)):e[r]=n},che=ne.Array,fhe=Math.max,MF=z0.f,zF=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dhe={f:function(e){return zF&&xo(e)=="Window"?(function(t){try{return MF(t)}catch{return(function(n,r,o){for(var i=th(n),a=rp(void 0,i),u=rp(i,i),s=che(fhe(u-a,0)),l=0;a<u;a++,l++)YR(s,l,n[a]);return s.length=l,s})(zF)}})(e):MF(Ta(e))}},$F=ct(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),cg=Object.isExtensible,fu=ct(function(){cg(1)})||$F?function(e){return!!mt(e)&&(!$F||xo(e)!="ArrayBuffer")&&(!cg||cg(e))}:cg,phe=!ct(function(){return Object.isExtensible(Object.preventExtensions({}))}),qD=SD(function(e){var t=fi.f,n=!1,r=FD("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=z0.f,s=xe([].splice),l={};l[r]=1,u(l).length&&(z0.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},$n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:dhe.f}))},fastKey:function(u,s){if(!mt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Wt(u,r)){if(!fu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Wt(u,r)){if(!fu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return phe&&n&&fu(u)&&!Wt(u,r)&&i(u),u}};hm[r]=!0}),fg=qD.getWeakData,hhe=sr.set,ghe=sr.getterFor,vhe=RD.find,yhe=RD.findIndex,mhe=xe([].splice),bhe=0,dg=function(e){return e.frozen||(e.frozen=new JR)},JR=function(){this.entries=[]},J2=function(e,t){return vhe(e.entries,function(n){return n[0]===t})};JR.prototype={get:function(e){var t=J2(this,e);if(t)return t[1]},has:function(e){return!!J2(this,e)},set:function(e,t){var n=J2(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=yhe(this.entries,function(n){return n[0]===e});return~t&&mhe(this.entries,t,1),!!~t}};var Sf,QR={getConstructor:function(e,t,n,r){var o=e(function(s,l){$D(s,i),hhe(s,{type:t,id:bhe++,frozen:void 0}),l!=null&&X0(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=ghe(t),u=function(s,l,c){var f=a(s),d=fg(ln(l),!0);return d===!0?dg(f).set(l,c):d[f.id]=c,s};return q0(i,{delete:function(s){var l=a(this);if(!mt(s))return!1;var c=fg(s);return c===!0?dg(l).delete(s):c&&Wt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!mt(s))return!1;var c=fg(s);return c===!0?dg(l).has(s):c&&Wt(c,l.id)}}),q0(i,n?{get:function(s){var l=a(this);if(mt(s)){var c=fg(s);return c===!0?dg(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},pg=sr.enforce,whe=!ne.ActiveXObject&&"ActiveXObject"in ne,eM=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ehe=(function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=ne[e],u=a&&a.prototype,s=a,l={},c=function(g){var m=xe(u[g]);Tr(u,g,g=="add"?function(h){return m(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!mt(h))&&m(this,h===0?0:h)}:g=="get"?function(h){return o&&!mt(h)?void 0:m(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!mt(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if($0(e,!ot(a)||!(o||u.forEach&&!ct(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,i),qD.enable();else if($0(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ct(function(){f.has(1)}),y=IR(function(g){new a(g)}),v=!o&&ct(function(){for(var g=new a,m=5;m--;)g[i](m,m);return!g.has(-0)});y||((s=t(function(g,m){$D(g,u);var h=(function(b,w,D){var C,x;return Hl&&ot(C=w.constructor)&&C!==D&&mt(x=C.prototype)&&x!==D.prototype&&Hl(b,x),b})(new a,g,s);return m!=null&&X0(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,$n({global:!0,forced:s!=a},l),K0(s,e),o||n.setStrong(s,e,r),s})("WeakMap",eM,QR);if(mR&&whe){Sf=QR.getConstructor(eM,"WeakMap",!0),qD.enable();var Af=Ehe.prototype,HF=xe(Af.delete),hg=xe(Af.has),VF=xe(Af.get),UF=xe(Af.set);q0(Af,{delete:function(e){if(mt(e)&&!fu(e)){var t=pg(this);return t.frozen||(t.frozen=new Sf),HF(this,e)||t.frozen.delete(e)}return HF(this,e)},has:function(e){if(mt(e)&&!fu(e)){var t=pg(this);return t.frozen||(t.frozen=new Sf),hg(this,e)||t.frozen.has(e)}return hg(this,e)},get:function(e){if(mt(e)&&!fu(e)){var t=pg(this);return t.frozen||(t.frozen=new Sf),hg(this,e)?VF(this,e):t.frozen.get(e)}return VF(this,e)},set:function(e,t){if(mt(e)&&!fu(e)){var n=pg(this);n.frozen||(n.frozen=new Sf),hg(this,e)?UF(this,e,t):n.frozen.set(e,t)}else UF(this,e,t);return this}})}var tM={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},Q2=np("span").classList,WF=Q2&&Q2.constructor&&Q2.constructor.prototype,Dhe=WF===Object.prototype?void 0:WF,ew=Rt("iterator"),GF=Rt("toStringTag"),tw=Kf.values,nM=function(e,t){if(e){if(e[ew]!==tw)try{ua(e,ew,tw)}catch{e[ew]=tw}if(e[GF]||ua(e,GF,t),tM[t]){for(var n in Kf)if(e[n]!==Kf[n])try{ua(e,n,Kf[n])}catch{e[n]=Kf[n]}}}};for(var nw in tM)nM(ne[nw]&&ne[nw].prototype,nw);nM(Dhe,"DOMTokenList");var xhe=pc.EXISTS,Che=fi.f,rM=Function.prototype,She=xe(rM.toString),oM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Ahe=xe(oM.exec);ko&&!xhe&&Che(rM,"name",{configurable:!0,get:function(){try{return Ahe(oM,She(this))[1]}catch{return""}}});var Ohe=Rt("species"),Bhe=ep>=51||!ct(function(){var e=[];return(e.constructor={})[Ohe]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),khe=Rt("species"),rw=ne.Array,Fhe=Math.max;function iM(e){return e.getMenuConfig("uploadVideo")}$n({target:"Array",proto:!0,forced:!Bhe},{slice:function(e,t){var n,r,o,i=Ta(this),a=th(i),u=rp(e,a),s=rp(t===void 0?a:t,a);if(V0(i)&&(n=i.constructor,(LD(n)&&(n===rw||V0(n.prototype))||mt(n)&&(n=n[khe])===null)&&(n=void 0),n===rw||n===void 0))return LR(i,u,s);for(r=new(n===void 0?rw:n)(Fhe(s-u,0)),o=0;u<s;u++,o++)u in i&&YR(r,o,i[u]);return r.length=o,r}});var qF=new WeakMap;function The(e,t){return lm(this,void 0,void 0,function(){var n,r,o,i;return cm(this,function(a){switch(a.label){case 0:return n=(function(u){var s=qF.get(u);if(s!=null)return s;var l=iM(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,y=l.onError;return s=kN(N0(N0({},l),{onProgress:function(v){u.showProgressBar(v),f&&f(v)},onSuccess:function(v,g){if(p)return p(g,function(O,F){return ap(u,O,F)}),void c(v,g);var m=g.errno,h=m===void 0?1:m,b=g.data,w=b===void 0?{}:b;if(h===0){var D=w.url,C=D===void 0?"":D,x=w.poster;ap(u,C,x===void 0?"":x),c(v,g)}else d(v,g)},onError:function(v,g,m){y(v,g,m)}})),qF.set(u,s),s})(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}})})}var _he=(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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f){return ap(t,c,f)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=k("body"),l=k('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,d){var p,y;lm(this,void 0,void 0,function(){var v,g,m,h,b,w;return cm(this,function(D){switch(D.label){case 0:if(d==null)return[2];v=Array.prototype.slice.call(d),g=iM(f).customUpload,D.label=1;case 1:D.trys.push([1,9,10,15]),m=kfe(v),D.label=2;case 2:return[4,m.next()];case 3:return(h=D.sent()).done?[3,8]:(b=h.value,g?[4,g(b,function(C,x){return ap(f,C,x)})]:[3,5]);case 4:return D.sent(),[3,7];case 5:return[4,The(f,b)];case 6:D.sent(),D.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=D.sent(),p={error:w},[3,15];case 10:return D.trys.push([10,,13,14]),h&&!h.done&&(y=m.return)?[4,y.call(m)]:[3,12];case 11:D.sent(),D.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return[2]}})})})(t,c)})}},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(t).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!t.isVoid(r)})},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e})(),jhe=pc.PROPER,Y6=RegExp.prototype,aM=Y6.toString,Phe=xe(kR),Nhe=ct(function(){return aM.call({source:"a",flags:"b"})!="/a/b"}),Ihe=jhe&&aM.name!="toString";function ow(){return jR("w-e-insert-video")}(Nhe||Ihe)&&Tr(RegExp.prototype,"toString",function(){var e=ln(this),t=mr(e.source),n=e.flags;return"/"+t+"/"+mr(n===void 0&&Qd(Y6,e)&&!("flags"in Y6)?Phe(e):n)},{unsafe:!0});var Lhe=(function(){function e(){this.title=Q("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=ow(),this.heightInputId=ow(),this.buttonId=ow()}return e.prototype.getSelectedVideoNode=function(t){return A.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=n.widthInputId,o=n.heightInputId,i=n.buttonId,a=Tu(nr(Q("videoModule.width"),r,"auto"),2),u=a[0],s=k(a[1]),l=Tu(nr(Q("videoModule.height"),o,"auto"),2),c=l[0],f=k(l[1]),d=Tu(rc(i,Q("videoModule.ok")),1)[0];if(this.$content==null){var p=k("<div></div>");p.on("click","#"+i,function(w){w.preventDefault();var D=p.find("#"+r).val().trim(),C=p.find("#"+o).val().trim(),x=parseInt(D),O=parseInt(C),F=x?x.toString():"auto",R=O?O.toString():"auto";t.restoreSelection(),N.setNodes(t,{width:F,height:R},{match:function(H){return A.checkNodeType(H,"video")}}),t.hidePanelOrModal()}),this.$content=p}var y=this.$content;y.empty(),y.append(u),y.append(c),y.append(d);var v=this.getSelectedVideoNode(t);if(v==null)return y[0];var g=v.width,m=g===void 0?"auto":g,h=v.height,b=h===void 0?"auto":h;return s.val(m),f.val(b),setTimeout(function(){s.focus()}),y[0]},e})(),Rhe={renderElems:[_de],elemsToHtml:[jde],preParseHtml:[Lde],parseElemsHtml:[Wde],menus:[{key:"insertVideo",factory:function(){return new qpe},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new _he},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 Lhe}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="video"||t(o)},r.normalizeNode=function(o){var i=Tu(o,2),a=i[0],u=i[1];return A.getNodeType(a)==="video"&&A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};qn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),qn("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var KF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function KD(e){var t={exports:{}};return e(t,t.exports),t.exports}var _i,Qg,gg=function(e){return e&&e.Math==Math&&e},ee=gg(typeof globalThis=="object"&&globalThis)||gg(typeof window=="object"&&window)||gg(typeof self=="object"&&self)||gg(typeof KF=="object"&&KF)||(function(){return this})()||Function("return this")(),ht=function(e){try{return!!e()}catch{return!0}},Fo=!ht(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Of=Function.prototype.call,tt=Of.bind?Of.bind(Of):function(){return Of.apply(Of,arguments)},XF={}.propertyIsEnumerable,ZF=Object.getOwnPropertyDescriptor,Mhe={f:ZF&&!XF.call({1:2},1)?function(e){var t=ZF(this,e);return!!t&&t.enumerable}:XF},ym=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uM=Function.prototype,J6=uM.bind,Q6=uM.call,zhe=J6&&J6.bind(Q6),Te=J6?function(e){return e&&zhe(Q6,e)}:function(e){return e&&function(){return Q6.apply(e,arguments)}},$he=Te({}.toString),Hhe=Te("".slice),Xr=function(e){return Hhe($he(e),8,-1)},iw=ee.Object,Vhe=Te("".split),XD=ht(function(){return!iw("z").propertyIsEnumerable(0)})?function(e){return Xr(e)=="String"?Vhe(e,""):iw(e)}:iw,Uhe=ee.TypeError,up=function(e){if(e==null)throw Uhe("Can't call method on "+e);return e},_a=function(e){return XD(up(e))},ut=function(e){return typeof e=="function"},dt=function(e){return typeof e=="object"?e!==null:ut(e)},Whe=function(e){return ut(e)?e:void 0},Ju=function(e,t){return arguments.length<2?Whe(ee[e]):ee[e]&&ee[e][t]},sp=Te({}.isPrototypeOf),vl=Ju("navigator","userAgent")||"",YF=ee.process,JF=ee.Deno,QF=YF&&YF.versions||JF&&JF.version,eT=QF&&QF.v8;eT&&(Qg=(_i=eT.split("."))[0]>0&&_i[0]<4?1:+(_i[0]+_i[1])),!Qg&&vl&&(!(_i=vl.match(/Edge\/(\d+)/))||_i[1]>=74)&&(_i=vl.match(/Chrome\/(\d+)/))&&(Qg=+_i[1]);var lp=Qg,e3=!!Object.getOwnPropertySymbols&&!ht(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&lp&&lp<41}),ZD=e3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ghe=ee.Object,aw=ZD?function(e){return typeof e=="symbol"}:function(e){var t=Ju("Symbol");return ut(t)&&sp(t.prototype,Ghe(e))},qhe=ee.String,Y0=function(e){try{return qhe(e)}catch{return"Object"}},Khe=ee.TypeError,Sa=function(e){if(ut(e))return e;throw Khe(Y0(e)+" is not a function")},cp=function(e,t){var n=e[t];return n==null?void 0:Sa(n)},Xhe=ee.TypeError,Zhe=Object.defineProperty,YD=function(e,t){try{Zhe(ee,e,{value:t,configurable:!0,writable:!0})}catch{ee[e]=t}return t},la=ee["__core-js_shared__"]||YD("__core-js_shared__",{}),JD=KD(function(e){(e.exports=function(t,n){return la[t]||(la[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Yhe=ee.Object,QD=function(e){return Yhe(up(e))},Jhe=Te({}.hasOwnProperty),Gt=Object.hasOwn||function(e,t){return Jhe(QD(e),t)},Qhe=0,ege=Math.random(),tge=Te(1 .toString),ex=function(e){return"Symbol("+(e===void 0?"":e)+")_"+tge(++Qhe+ege,36)},Bf=JD("wks"),Pu=ee.Symbol,tT=Pu&&Pu.for,nge=ZD?Pu:Pu&&Pu.withoutSetter||ex,Mt=function(e){if(!Gt(Bf,e)||!e3&&typeof Bf[e]!="string"){var t="Symbol."+e;e3&&Gt(Pu,e)?Bf[e]=Pu[e]:Bf[e]=ZD&&tT?tT(t):nge(t)}return Bf[e]},rge=ee.TypeError,oge=Mt("toPrimitive"),tx=function(e){var t=(function(n,r){if(!dt(n)||aw(n))return n;var o,i=cp(n,oge);if(i){if(o=tt(i,n,r),!dt(o)||aw(o))return o;throw rge("Can't convert object to primitive value")}return(function(a,u){var s,l;if(ut(s=a.toString)&&!dt(l=tt(s,a))||ut(s=a.valueOf)&&!dt(l=tt(s,a)))return l;throw Xhe("Can't convert object to primitive value")})(n)})(e,"string");return aw(t)?t:t+""},t3=ee.document,ige=dt(t3)&&dt(t3.createElement),fp=function(e){return ige?t3.createElement(e):{}},sM=!Fo&&!ht(function(){return Object.defineProperty(fp("div"),"a",{get:function(){return 7}}).a!=7}),nT=Object.getOwnPropertyDescriptor,nx={f:Fo?nT:function(e,t){if(e=_a(e),t=tx(t),sM)try{return nT(e,t)}catch{}if(Gt(e,t))return ym(!tt(Mhe.f,e,t),e[t])}},age=ee.String,uge=ee.TypeError,cn=function(e){if(dt(e))return e;throw uge(age(e)+" is not an object")},sge=ee.TypeError,rT=Object.defineProperty,di={f:Fo?rT:function(e,t,n){if(cn(e),t=tx(t),cn(n),sM)try{return rT(e,t,n)}catch{}if("get"in n||"set"in n)throw sge("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Co=Fo?function(e,t,n){return di.f(e,t,ym(1,n))}:function(e,t,n){return e[t]=n,e},lge=Te(Function.toString);ut(la.inspectSource)||(la.inspectSource=function(e){return lge(e)});var J0,vd,Q0,mm=la.inspectSource,oT=ee.WeakMap,lM=ut(oT)&&/native code/.test(mm(oT)),iT=JD("keys"),rx=function(e){return iT[e]||(iT[e]=ex(e))},bm={},n3=ee.TypeError,cge=ee.WeakMap;if(lM||la.state){var Xa=la.state||(la.state=new cge),fge=Te(Xa.get),aT=Te(Xa.has),dge=Te(Xa.set);J0=function(e,t){if(aT(Xa,e))throw new n3("Object already initialized");return t.facade=e,dge(Xa,e,t),t},vd=function(e){return fge(Xa,e)||{}},Q0=function(e){return aT(Xa,e)}}else{var zs=rx("state");bm[zs]=!0,J0=function(e,t){if(Gt(e,zs))throw new n3("Object already initialized");return t.facade=e,Co(e,zs,t),t},vd=function(e){return Gt(e,zs)?e[zs]:{}},Q0=function(e){return Gt(e,zs)}}var lr={set:J0,get:vd,has:Q0,enforce:function(e){return Q0(e)?vd(e):J0(e,{})},getterFor:function(e){return function(t){var n;if(!dt(t)||(n=vd(t)).type!==e)throw n3("Incompatible receiver, "+e+" required");return n}}},cM=Function.prototype,pge=Fo&&Object.getOwnPropertyDescriptor,uw=Gt(cM,"name"),rh={EXISTS:uw,PROPER:uw&&(function(){}).name==="something",CONFIGURABLE:uw&&(!Fo||Fo&&pge(cM,"name").configurable)},_r=KD(function(e){var t=rh.CONFIGURABLE,n=lr.get,r=lr.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;ut(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Gt(u,"name")||t&&u.name!==p)&&Co(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==ee?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Co(i,a,u)):f?i[a]=u:YD(a,u)})(Function.prototype,"toString",function(){return ut(this)&&n(this).source||mm(this)})}),hge=Math.ceil,gge=Math.floor,ox=function(e){var t=+e;return t!=t||t===0?0:(t>0?gge:hge)(t)},vge=Math.max,yge=Math.min,dp=function(e,t){var n=ox(e);return n<0?vge(n+t,0):yge(n,t)},mge=Math.min,fM=function(e){return e>0?mge(ox(e),9007199254740991):0},oh=function(e){return fM(e.length)},bge=function(e){return function(t,n,r){for(var o=_a(t),i=oh(o),a=dp(r,i);i>a;a++)if(a in o&&o[a]===n)return a||0;return-1}},wge=bge(),uT=Te([].push),dM=function(e,t){var n,r=_a(e),o=0,i=[];for(n in r)!Gt(bm,n)&&Gt(r,n)&&uT(i,n);for(;t.length>o;)Gt(r,n=t[o++])&&(~wge(i,n)||uT(i,n));return i},ey=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ege=ey.concat("length","prototype"),ty={f:Object.getOwnPropertyNames||function(e){return dM(e,Ege)}},Dge={f:Object.getOwnPropertySymbols},xge=Te([].concat),Cge=Ju("Reflect","ownKeys")||function(e){var t=ty.f(cn(e)),n=Dge.f;return n?xge(t,n(e)):t},Sge=function(e,t){for(var n=Cge(t),r=di.f,o=nx.f,i=0;i<n.length;i++){var a=n[i];Gt(e,a)||r(e,a,o(t,a))}},Age=/#|\.prototype\./,ih=function(e,t){var n=Bge[Oge(e)];return n==Fge||n!=kge&&(ut(t)?ht(t):!!t)},Oge=ih.normalize=function(e){return String(e).replace(Age,".").toLowerCase()},Bge=ih.data={},kge=ih.NATIVE="N",Fge=ih.POLYFILL="P",ny=ih,Tge=nx.f,wo=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?ee:l?ee[u]||YD(u,{}):(ee[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Tge(n,r))&&a.value:n[r],!ny(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Sge(i,o)}(e.sham||o&&o.sham)&&Co(i,"sham",!0),_r(n,r,i,e)}},ry=Array.isArray||function(e){return Xr(e)=="Array"},pM={};pM[Mt("toStringTag")]="z";var ix=String(pM)==="[object z]",_ge=Mt("toStringTag"),jge=ee.Object,Pge=Xr((function(){return arguments})())=="Arguments",wm=ix?Xr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=jge(e),_ge))=="string"?n:Pge?Xr(t):(r=Xr(t))=="Object"&&ut(t.callee)?"Arguments":r},hM=function(){},Nge=[],gM=Ju("Reflect","construct"),ax=/^\s*(?:class|function)\b/,Ige=Te(ax.exec),Lge=!ax.exec(hM),kf=function(e){if(!ut(e))return!1;try{return gM(hM,Nge,e),!0}catch{return!1}},ux=!gM||ht(function(){var e;return kf(kf.call)||!kf(Object)||!kf(function(){e=!0})||e})?function(e){if(!ut(e))return!1;switch(wm(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Lge||!!Ige(ax,mm(e))}:kf,vM=function(e,t,n){var r=tx(t);r in e?di.f(e,r,ym(0,n)):e[r]=n},Rge=Mt("species"),yM=Te([].slice),Mge=lp>=51||!ht(function(){var e=[];return(e.constructor={})[Rge]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),zge=Mt("species"),sw=ee.Array,$ge=Math.max;wo({target:"Array",proto:!0,forced:!Mge},{slice:function(e,t){var n,r,o,i=_a(this),a=oh(i),u=dp(e,a),s=dp(t===void 0?a:t,a);if(ry(i)&&(n=i.constructor,(ux(n)&&(n===sw||ry(n.prototype))||dt(n)&&(n=n[zge])===null)&&(n=void 0),n===sw||n===void 0))return yM(i,u,s);for(r=new(n===void 0?sw:n)($ge(s-u,0)),o=0;u<s;u++,o++)u in i&&vM(r,o,i[u]);return r.length=o,r}});var Hge=ix?{}.toString:function(){return"[object "+wm(this)+"]"};ix||_r(Object.prototype,"toString",Hge,{unsafe:!0});var vg,Vge=ee.String,ca=function(e){if(wm(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Vge(e)},mM=function(){var e=cn(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},sx=ee.RegExp,r3=ht(function(){var e=sx("a","y");return e.lastIndex=2,e.exec("abcd")!=null});r3||ht(function(){return!sx("a","y").sticky});var bM={BROKEN_CARET:r3||ht(function(){var e=sx("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:r3},Uge=Object.keys||function(e){return dM(e,ey)},Wge=Fo?Object.defineProperties:function(e,t){cn(e);for(var n,r=_a(t),o=Uge(t),i=o.length,a=0;i>a;)di.f(e,n=o[a++],r[n]);return e},o3=Ju("document","documentElement"),wM=rx("IE_PROTO"),lw=function(){},EM=function(e){return"<script>"+e+"<\/script>"},sT=function(e){e.write(EM("")),e.close();var t=e.parentWindow.Object;return e=null,t},ev=function(){try{vg=new ActiveXObject("htmlfile")}catch{}var e,t;ev=typeof document<"u"?document.domain&&vg?sT(vg):((t=fp("iframe")).style.display="none",o3.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(EM("document.F=Object")),e.close(),e.F):sT(vg);for(var n=ey.length;n--;)delete ev.prototype[ey[n]];return ev()};bm[wM]=!0;var lT,cw,lx=Object.create||function(e,t){var n;return e!==null?(lw.prototype=cn(e),n=new lw,lw.prototype=null,n[wM]=e):n=ev(),t===void 0?n:Wge(n,t)},Gge=ee.RegExp,qge=ht(function(){var e=Gge(".","s");return!(e.dotAll&&e.exec(`
|
|
148
|
+
`)&&e.flags==="s")}),Kge=ee.RegExp,Xge=ht(function(){var e=Kge("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Zge=lr.get,Yge=JD("native-string-replace",String.prototype.replace),oy=RegExp.prototype.exec,i3=oy,Jge=Te("".charAt),Qge=Te("".indexOf),eve=Te("".replace),fw=Te("".slice),dw=(cw=/b*/g,tt(oy,lT=/a/,"a"),tt(oy,cw,"a"),lT.lastIndex!==0||cw.lastIndex!==0),cT=bM.BROKEN_CARET,pw=/()??/.exec("")[1]!==void 0;(dw||pw||cT||qge||Xge)&&(i3=function(e){var t,n,r,o,i,a,u,s=this,l=Zge(s),c=ca(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=tt(i3,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=cT&&s.sticky,y=tt(mM,s),v=s.source,g=0,m=c;if(p&&(y=eve(y,"y",""),Qge(y,"g")===-1&&(y+="g"),m=fw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Jge(c,s.lastIndex-1)!==`
|
|
149
|
+
`)&&(v="(?: "+v+")",m=" "+m,g++),n=new RegExp("^(?:"+v+")",y)),pw&&(n=new RegExp("^"+v+"$(?!\\s)",y)),dw&&(r=s.lastIndex),o=tt(oy,p?n:s,m),p?o?(o.input=fw(o.input,g),o[0]=fw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:dw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),pw&&o&&o.length>1&&tt(Yge,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=lx(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var pp=i3;wo({target:"RegExp",proto:!0,forced:/./.exec!==pp},{exec:pp});var cx=Function.prototype,fT=cx.apply,tve=cx.bind,dT=cx.call,DM=typeof Reflect=="object"&&Reflect.apply||(tve?dT.bind(fT):function(){return dT.apply(fT,arguments)}),nve=Mt("species"),hw=RegExp.prototype,rve=Mt("match"),ove=ee.TypeError,ive=Mt("species"),xM=function(e,t){var n,r=cn(e).constructor;return r===void 0||(n=cn(r)[ive])==null?t:(function(o){if(ux(o))return o;throw ove(Y0(o)+" is not a constructor")})(n)},ave=Te("".charAt),pT=Te("".charCodeAt),uve=Te("".slice),sve=function(e){return function(t,n){var r,o,i=ca(up(t)),a=ox(n),u=i.length;return a<0||a>=u?"":(r=pT(i,a))<55296||r>56319||a+1===u||(o=pT(i,a+1))<56320||o>57343?ave(i,a):uve(i,a,a+2)}},CM={charAt:sve()},lve=CM.charAt,cve=function(e,t,n){return t+(n?lve(e,t).length:1)},fve=ee.Array,dve=Math.max,a3=function(e,t,n){for(var r=oh(e),o=dp(t,r),i=dp(n===void 0?r:n,r),a=fve(dve(i-o,0)),u=0;o<i;o++,u++)vM(a,u,e[o]);return a.length=u,a},pve=ee.TypeError,hT=function(e,t){var n=e.exec;if(ut(n)){var r=tt(n,e,t);return r!==null&&cn(r),r}if(Xr(e)==="RegExp")return tt(pp,e,t);throw pve("RegExp#exec called on incompatible receiver")},$s=bM.UNSUPPORTED_Y,hve=Math.min,SM=[].push,gve=Te(/./.exec),Hs=Te(SM),Ff=Te("".slice);(function(e,t,n,r){var o=Mt(e),i=!ht(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!ht(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[nve]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Te(/./[o]),s=(function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,y){var v,g,m=ca(up(this)),h=y===void 0?4294967295:y>>>0;if(h===0)return[];if(p===void 0)return[m];if(!dt(v=p)||!((g=v[rve])!==void 0?g:Xr(v)=="RegExp"))return tt(c,m,p,h);for(var b,w,D,C=[],x=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),O=0,F=new RegExp(p.source,x+"g");(b=tt(pp,F,m))&&!((w=F.lastIndex)>O&&(Hs(C,Ff(m,O,b.index)),b.length>1&&b.index<m.length&&DM(SM,C,a3(b,1)),D=b[0].length,O=w,C.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return O===m.length?!D&&gve(F,"")||Hs(C,""):Hs(C,Ff(m,O)),C.length>h?a3(C,0,h):C}:"0".split(void 0,0).length?function(p,y){return p===void 0&&y===0?[]:tt(c,this,p,y)}:c,[function(p,y){var v=up(this),g=p==null?void 0:cp(p,l);return g?tt(g,p,v,y):tt(d,ca(v),p,y)},function(p,y){var v=cn(this),g=ca(p),m=f(d,v,g,y,d!==c);if(m.done)return m.value;var h=xM(v,RegExp),b=v.unicode,w=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+($s?"g":"y"),D=new h($s?"^(?:"+v.source+")":v,w),C=y===void 0?4294967295:y>>>0;if(C===0)return[];if(g.length===0)return hT(D,g)===null?[g]:[];for(var x=0,O=0,F=[];O<g.length;){D.lastIndex=$s?0:O;var R,H=hT(D,$s?Ff(g,O):g);if(H===null||(R=hve(fM(D.lastIndex+($s?O:0)),g.length))===x)O=cve(g,O,b);else{if(Hs(F,Ff(g,x,O)),F.length===C)return F;for(var M=1;M<=H.length-1;M++)if(Hs(F,H[M]),F.length===C)return F;O=x=R}}return Hs(F,Ff(g,x)),F}]})(o,""[e],function(l,c,f,d,p){var y=Te(l),v=c.exec;return v===pp||v===hw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:y(f,c,d)}:{done:!1}});_r(String.prototype,e,s[0]),_r(hw,o,s[1])}r&&Co(hw[o],"sham",!0)})("split",0,!!ht(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"}),$s);/*! *****************************************************************************
|
|
150
|
+
Copyright (c) Microsoft Corporation.
|
|
151
|
+
|
|
152
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
153
|
+
purpose with or without fee is hereby granted.
|
|
154
|
+
|
|
155
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
156
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
157
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
158
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
159
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
160
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
161
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
162
|
+
***************************************************************************** */var iy=function(){return iy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},iy.apply(this,arguments)};function fx(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(e,[])).next())})}function dx(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return(function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([s,l])}}}function vve(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=(function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"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(o){t[o]=e[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(i=e[o](i)).done,i.value)})}}}var u3=Mt("unscopables"),s3=Array.prototype;s3[u3]==null&&di.f(s3,u3,{configurable:!0,value:lx(null)});var Nu,gT,vT,gw=function(e){s3[u3][e]=!0},Ul={},yve=!ht(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),yT=rx("IE_PROTO"),l3=ee.Object,mve=l3.prototype,ay=yve?l3.getPrototypeOf:function(e){var t=QD(e);if(Gt(t,yT))return t[yT];var n=t.constructor;return ut(n)&&t instanceof n?n.prototype:t instanceof l3?mve:null},c3=Mt("iterator"),AM=!1;[].keys&&("next"in(vT=[].keys())?(gT=ay(ay(vT)))!==Object.prototype&&(Nu=gT):AM=!0);var bve=Nu==null||ht(function(){var e={};return Nu[c3].call(e)!==e});bve&&(Nu={}),ut(Nu[c3])||_r(Nu,c3,function(){return this});var px={IteratorPrototype:Nu,BUGGY_SAFARI_ITERATORS:AM},wve=di.f,mT=Mt("toStringTag"),uy=function(e,t,n){e&&!Gt(e=n?e:e.prototype,mT)&&wve(e,mT,{configurable:!0,value:t})},Eve=px.IteratorPrototype,Dve=function(){return this},xve=ee.String,Cve=ee.TypeError,Wl=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=Te(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return cn(r),(function(i){if(typeof i=="object"||ut(i))return i;throw Cve("Can't set "+xve(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),Sve=rh.PROPER,Ave=rh.CONFIGURABLE,bT=px.IteratorPrototype,vw=px.BUGGY_SAFARI_ITERATORS,Tf=Mt("iterator"),Ove=function(){return this},OM=function(e,t,n,r,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=lx(Eve,{next:ym(1,h)}),uy(g,w,!1),Ul[w]=Dve})(n,t,r);var u,s,l=function(g){if(g===o&&y)return y;if(!vw&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[Tf]||d["@@iterator"]||o&&d[o],y=!vw&&p||l(o),v=t=="Array"&&d.entries||p;return v&&(u=ay(v.call(new e)))!==Object.prototype&&u.next&&(ay(u)!==bT&&(Wl?Wl(u,bT):ut(u[Tf])||_r(u,Tf,Ove)),uy(u,c,!0)),Sve&&o=="values"&&p&&p.name!=="values"&&(Ave?Co(d,"name","values"):(f=!0,y=function(){return tt(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},wo({target:t,proto:!0,forced:vw||f},s)),d[Tf]!==y&&_r(d,Tf,y,{name:o}),Ul[t]=y,s},Bve=lr.set,kve=lr.getterFor("Array Iterator"),Xf=OM(Array,"Array",function(e,t){Bve(this,{type:"Array Iterator",target:_a(e),index:0,kind:t})},function(){var e=kve(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");Ul.Arguments=Ul.Array,gw("keys"),gw("values"),gw("entries");var Fve=CM.charAt,Tve=lr.set,_ve=lr.getterFor("String Iterator");OM(String,"String",function(e){Tve(this,{type:"String Iterator",string:ca(e),index:0})},function(){var e,t=_ve(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Fve(n,r),t.index+=e.length,{value:e,done:!1})});var sy=function(e,t,n){for(var r in t)_r(e,r,t[r],n);return e},wT=ty.f,ET=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],jve={f:function(e){return ET&&Xr(e)=="Window"?(function(t){try{return wT(t)}catch{return a3(ET)}})(e):wT(_a(e))}},DT=ht(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),yg=Object.isExtensible,du=ht(function(){yg(1)})||DT?function(e){return!!dt(e)&&(!DT||Xr(e)!="ArrayBuffer")&&(!yg||yg(e))}:yg,Pve=!ht(function(){return Object.isExtensible(Object.preventExtensions({}))}),hx=KD(function(e){var t=di.f,n=!1,r=ex("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=ty.f,s=Te([].splice),l={};l[r]=1,u(l).length&&(ty.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},wo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:jve.f}))},fastKey:function(u,s){if(!dt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Gt(u,r)){if(!du(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Gt(u,r)){if(!du(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Pve&&n&&du(u)&&!Gt(u,r)&&i(u),u}};bm[r]=!0}),xT=Te(Te.bind),hp=function(e,t){return Sa(e),t===void 0?e:xT?xT(e,t):function(){return e.apply(t,arguments)}},Nve=Mt("iterator"),Ive=Array.prototype,Lve=Mt("iterator"),CT=function(e){if(e!=null)return cp(e,Lve)||cp(e,"@@iterator")||Ul[wm(e)]},Rve=ee.TypeError,ST=function(e,t,n){var r,o;cn(e);try{if(!(r=cp(e,"return"))){if(t==="throw")throw n;return n}r=tt(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return cn(r),n},Mve=ee.TypeError,tv=function(e,t){this.stopped=e,this.result=t},AT=tv.prototype,ly=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),v=hp(t,f),g=function(h){return r&&ST(r,"normal",h),new tv(!0,h)},m=function(h){return d?(cn(h),y?v(h[0],h[1],g):v(h[0],h[1])):y?v(h,g):v(h)};if(p)r=e;else{if(!(o=CT(e)))throw Mve(Y0(e)+" is not iterable");if((c=o)!==void 0&&(Ul.Array===c||Ive[Nve]===c)){for(i=0,a=oh(e);a>i;i++)if((u=m(e[i]))&&sp(AT,u))return u;return new tv(!1)}r=(function(h,b){var w=arguments.length<2?CT(h):b;if(Sa(w))return cn(tt(w,h));throw Rve(Y0(h)+" is not iterable")})(e,o)}for(s=r.next;!(l=tt(s,r)).done;){try{u=m(l.value)}catch(h){ST(r,"throw",h)}if(typeof u=="object"&&u&&sp(AT,u))return u}return new tv(!1)},zve=ee.TypeError,gx=function(e,t){if(sp(t,e))return e;throw zve("Incorrect invocation")},BM=Mt("iterator"),kM=!1;try{var $ve=0,OT={next:function(){return{done:!!$ve++}},return:function(){kM=!0}};OT[BM]=function(){return this},Array.from(OT,function(){throw 2})}catch{}var FM=function(e,t){if(!kM)return!1;var n=!1;try{var r={};r[BM]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Hve=Mt("species"),BT=ee.Array,Vve=function(e,t){return new((function(n){var r;return ry(n)&&(r=n.constructor,(ux(r)&&(r===BT||ry(r.prototype))||dt(r)&&(r=r[Hve])===null)&&(r=void 0)),r===void 0?BT:r})(e))(t===0?0:t)},kT=Te([].push),yw=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,y=QD(s),v=XD(y),g=hp(l,c),m=oh(v),h=0,b=f||Vve,w=t?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in v)&&(p=g(d=v[h],h,y),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:kT(w,d)}else switch(e){case 4:return!1;case 7:kT(w,d)}return i?-1:r||o?o:w}},vx={forEach:yw(0),find:yw(5),findIndex:yw(6)},mg=hx.getWeakData,Uve=lr.set,Wve=lr.getterFor,Gve=vx.find,qve=vx.findIndex,Kve=Te([].splice),Xve=0,bg=function(e){return e.frozen||(e.frozen=new TM)},TM=function(){this.entries=[]},mw=function(e,t){return Gve(e.entries,function(n){return n[0]===t})};TM.prototype={get:function(e){var t=mw(this,e);if(t)return t[1]},has:function(e){return!!mw(this,e)},set:function(e,t){var n=mw(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=qve(this.entries,function(n){return n[0]===e});return~t&&Kve(this.entries,t,1),!!~t}};var _f,_M={getConstructor:function(e,t,n,r){var o=e(function(s,l){gx(s,i),Uve(s,{type:t,id:Xve++,frozen:void 0}),l!=null&&ly(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Wve(t),u=function(s,l,c){var f=a(s),d=mg(cn(l),!0);return d===!0?bg(f).set(l,c):d[f.id]=c,s};return sy(i,{delete:function(s){var l=a(this);if(!dt(s))return!1;var c=mg(s);return c===!0?bg(l).delete(s):c&&Gt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!dt(s))return!1;var c=mg(s);return c===!0?bg(l).has(s):c&&Gt(c,l.id)}}),sy(i,n?{get:function(s){var l=a(this);if(dt(s)){var c=mg(s);return c===!0?bg(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},wg=lr.enforce,Zve=!ee.ActiveXObject&&"ActiveXObject"in ee,jM=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Yve=(function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=ee[e],u=a&&a.prototype,s=a,l={},c=function(g){var m=Te(u[g]);_r(u,g,g=="add"?function(h){return m(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!dt(h))&&m(this,h===0?0:h)}:g=="get"?function(h){return o&&!dt(h)?void 0:m(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!dt(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(ny(e,!ut(a)||!(o||u.forEach&&!ht(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,i),hx.enable();else if(ny(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ht(function(){f.has(1)}),y=FM(function(g){new a(g)}),v=!o&&ht(function(){for(var g=new a,m=5;m--;)g[i](m,m);return!g.has(-0)});y||((s=t(function(g,m){gx(g,u);var h=(function(b,w,D){var C,x;return Wl&&ut(C=w.constructor)&&C!==D&&dt(x=C.prototype)&&x!==D.prototype&&Wl(b,x),b})(new a,g,s);return m!=null&&ly(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,wo({global:!0,forced:s!=a},l),uy(s,e),o||n.setStrong(s,e,r),s})("WeakMap",jM,_M);if(lM&&Zve){_f=_M.getConstructor(jM,"WeakMap",!0),hx.enable();var jf=Yve.prototype,FT=Te(jf.delete),Eg=Te(jf.has),TT=Te(jf.get),_T=Te(jf.set);sy(jf,{delete:function(e){if(dt(e)&&!du(e)){var t=wg(this);return t.frozen||(t.frozen=new _f),FT(this,e)||t.frozen.delete(e)}return FT(this,e)},has:function(e){if(dt(e)&&!du(e)){var t=wg(this);return t.frozen||(t.frozen=new _f),Eg(this,e)||t.frozen.has(e)}return Eg(this,e)},get:function(e){if(dt(e)&&!du(e)){var t=wg(this);return t.frozen||(t.frozen=new _f),Eg(this,e)?TT(this,e):t.frozen.get(e)}return TT(this,e)},set:function(e,t){if(dt(e)&&!du(e)){var n=wg(this);n.frozen||(n.frozen=new _f),Eg(this,e)?_T(this,e,t):n.frozen.set(e,t)}else _T(this,e,t);return this}})}var cy={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},bw=fp("span").classList,jT=bw&&bw.constructor&&bw.constructor.prototype,PM=jT===Object.prototype?void 0:jT,ww=Mt("iterator"),PT=Mt("toStringTag"),Ew=Xf.values,NM=function(e,t){if(e){if(e[ww]!==Ew)try{Co(e,ww,Ew)}catch{e[ww]=Ew}if(e[PT]||Co(e,PT,t),cy[t]){for(var n in Xf)if(e[n]!==Xf[n])try{Co(e,n,Xf[n])}catch{e[n]=Xf[n]}}}};for(var Dw in cy)NM(ee[Dw]&&ee[Dw].prototype,Dw);NM(PM,"DOMTokenList");var IM=function(e,t){var n=[][e];return!!n&&ht(function(){n.call(null,t||function(){throw 1},1)})},Jve=vx.forEach,xw=IM("forEach")?[].forEach:function(e){return Jve(this,e,arguments.length>1?arguments[1]:void 0)},LM=function(e){if(e&&e.forEach!==xw)try{Co(e,"forEach",xw)}catch{e.forEach=xw}};for(var Cw in cy)cy[Cw]&&LM(ee[Cw]&&ee[Cw].prototype);LM(PM);var gp,Vs,NT,Sw,fy=ee.Promise,IT=Mt("species"),RM=/(?:ipad|iphone|ipod).*applewebkit/i.test(vl),fa=Xr(ee.process)=="process",f3=ee.setImmediate,LT=ee.clearImmediate,Qve=ee.process,Aw=ee.Dispatch,e0e=ee.Function,RT=ee.MessageChannel,t0e=ee.String,Ow=0,yd={};try{gp=ee.location}catch{}var yx=function(e){if(Gt(yd,e)){var t=yd[e];delete yd[e],t()}},Bw=function(e){return function(){yx(e)}},MT=function(e){yx(e.data)},zT=function(e){ee.postMessage(t0e(e),gp.protocol+"//"+gp.host)};f3&<||(f3=function(e){var t=yM(arguments,1);return yd[++Ow]=function(){DM(ut(e)?e:e0e(e),void 0,t)},Vs(Ow),Ow},LT=function(e){delete yd[e]},fa?Vs=function(e){Qve.nextTick(Bw(e))}:Aw&&Aw.now?Vs=function(e){Aw.now(Bw(e))}:RT&&!RM?(Sw=(NT=new RT).port2,NT.port1.onmessage=MT,Vs=hp(Sw.postMessage,Sw)):ee.addEventListener&&ut(ee.postMessage)&&!ee.importScripts&&gp&&gp.protocol!=="file:"&&!ht(zT)?(Vs=zT,ee.addEventListener("message",MT,!1)):Vs="onreadystatechange"in fp("script")?function(e){o3.appendChild(fp("script")).onreadystatechange=function(){o3.removeChild(this),yx(e)}}:function(e){setTimeout(Bw(e),0)});var Pf,uu,md,Qs,kw,Fw,Tw,$T,MM={set:f3},n0e=/ipad|iphone|ipod/i.test(vl)&&ee.Pebble!==void 0,r0e=/web0s(?!.*chrome)/i.test(vl),o0e=nx.f,_w=MM.set,HT=ee.MutationObserver||ee.WebKitMutationObserver,VT=ee.document,UT=ee.process,Dg=ee.Promise,WT=o0e(ee,"queueMicrotask"),zM=WT&&WT.value;zM||(Pf=function(){var e,t;for(fa&&(e=UT.domain)&&e.exit();uu;){t=uu.fn,uu=uu.next;try{t()}catch(n){throw uu?Qs():md=void 0,n}}md=void 0,e&&e.enter()},RM||fa||r0e||!HT||!VT?!n0e&&Dg&&Dg.resolve?((Tw=Dg.resolve(void 0)).constructor=Dg,$T=hp(Tw.then,Tw),Qs=function(){$T(Pf)}):fa?Qs=function(){UT.nextTick(Pf)}:(_w=hp(_w,ee),Qs=function(){_w(Pf)}):(kw=!0,Fw=VT.createTextNode(""),new HT(Pf).observe(Fw,{characterData:!0}),Qs=function(){Fw.data=kw=!kw}));var jw,GT,$M,qT,HM=zM||function(e){var t={fn:e,next:void 0};md&&(md.next=t),uu||(uu=t,Qs()),md=t},i0e=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=Sa(t),this.reject=Sa(n)},mx={f:function(e){return new i0e(e)}},d3=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},a0e=typeof window=="object",VM=MM.set,u0e=Mt("species"),Zo="Promise",KT=lr.getterFor(Zo),s0e=lr.set,l0e=lr.getterFor(Zo),tu=fy&&fy.prototype,Eo=fy,Nf=tu,UM=ee.TypeError,p3=ee.document,bx=ee.process,yl=mx.f,c0e=yl,f0e=!!(p3&&p3.createEvent&&ee.dispatchEvent),WM=ut(ee.PromiseRejectionEvent),GM=!1,bd=ny(Zo,function(){var e=mm(Eo),t=e!==String(Eo);if(!t&&lp===66)return!0;if(lp>=51&&/native code/.test(e))return!1;var n=new Eo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[u0e]=r,!(GM=n.then(function(){})instanceof r)||!t&&a0e&&!WM}),d0e=bd||!FM(function(e){Eo.all(e).catch(function(){})}),qM=function(e){var t;return!(!dt(e)||!ut(t=e.then))&&t},wx=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;HM(function(){for(var r=e.value,o=e.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(e.rejection===2&&h0e(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(UM("Promise-chain cycle")):(u=qM(a))?tt(u,a,f,d):f(a)):d(r)}catch(y){p&&!s&&p.exit(),d(y)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&p0e(e)})}},KM=function(e,t,n){var r,o;f0e?((r=p3.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),ee.dispatchEvent(r)):r={promise:t,reason:n},!WM&&(o=ee["on"+e])?o(r):e==="unhandledrejection"&&(function(i,a){var u=ee.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))})("Unhandled promise rejection",n)},p0e=function(e){tt(VM,ee,function(){var t,n=e.facade,r=e.value;if(XT(e)&&(t=d3(function(){fa?bx.emit("unhandledRejection",r,n):KM("unhandledrejection",n,r)}),e.rejection=fa||XT(e)?2:1,t.error))throw t.value})},XT=function(e){return e.rejection!==1&&!e.parent},h0e=function(e){tt(VM,ee,function(){var t=e.facade;fa?bx.emit("rejectionHandled",t):KM("rejectionhandled",t,e.value)})},il=function(e,t,n){return function(r){e(t,r,n)}},ml=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,wx(e,!0))},h3=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw UM("Promise can't be resolved itself");var r=qM(t);r?HM(function(){var o={done:!1};try{tt(r,t,il(h3,o,e),il(ml,o,e))}catch(i){ml(o,i,e)}}):(e.value=t,e.state=1,wx(e,!1))}catch(o){ml({done:!1},o,e)}}};if(bd&&(Nf=(Eo=function(e){gx(this,Nf),Sa(e),tt(jw,this);var t=KT(this);try{e(il(h3,t),il(ml,t))}catch(n){ml(t,n)}}).prototype,(jw=function(e){s0e(this,{type:Zo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=sy(Nf,{then:function(e,t){var n=l0e(this),r=n.reactions,o=yl(xM(this,Eo));return o.ok=!ut(e)||e,o.fail=ut(t)&&t,o.domain=fa?bx.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&wx(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),GT=function(){var e=new jw,t=KT(e);this.promise=e,this.resolve=il(h3,t),this.reject=il(ml,t)},mx.f=yl=function(e){return e===Eo||e===$M?new GT(e):c0e(e)},ut(fy)&&tu!==Object.prototype)){qT=tu.then,GM||(_r(tu,"then",function(e,t){var n=this;return new Eo(function(r,o){tt(qT,n,r,o)}).then(e,t)},{unsafe:!0}),_r(tu,"catch",Nf.catch,{unsafe:!0}));try{delete tu.constructor}catch{}Wl&&Wl(tu,Nf)}wo({global:!0,wrap:!0,forced:bd},{Promise:Eo}),uy(Eo,Zo,!1),(function(e){var t=Ju("Promise"),n=di.f;Fo&&t&&!t[IT]&&n(t,IT,{configurable:!0,get:function(){return this}})})(),$M=Ju(Zo),wo({target:Zo,stat:!0,forced:bd},{reject:function(e){var t=yl(this);return tt(t.reject,void 0,e),t.promise}}),wo({target:Zo,stat:!0,forced:bd},{resolve:function(e){return(function(t,n){if(cn(t),dt(n)&&n.constructor===t)return n;var r=mx.f(t);return(0,r.resolve)(n),r.promise})(this,e)}}),wo({target:Zo,stat:!0,forced:d0e},{all:function(e){var t=this,n=yl(t),r=n.resolve,o=n.reject,i=d3(function(){var a=Sa(t.resolve),u=[],s=0,l=1;ly(e,function(c){var f=s++,d=!1;l++,tt(a,t,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=yl(t),r=n.reject,o=d3(function(){var i=Sa(t.resolve);ly(e,function(a){tt(i,t,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var g0e=rh.PROPER,g3=RegExp.prototype,XM=g3.toString,v0e=Te(mM),y0e=ht(function(){return XM.call({source:"a",flags:"b"})!="/a/b"}),m0e=g0e&&XM.name!="toString";(y0e||m0e)&&_r(RegExp.prototype,"toString",function(){var e=cn(this),t=ca(e.source),n=e.flags;return"/"+t+"/"+ca(n===void 0&&sp(g3,e)&&!("flags"in g3)?v0e(e):n)},{unsafe:!0});var b0e=rh.EXISTS,w0e=di.f,ZM=Function.prototype,E0e=Te(ZM.toString),YM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,D0e=Te(YM.exec);Fo&&!b0e&&w0e(ZM,"name",{configurable:!0,get:function(){try{return D0e(YM,E0e(this))[1]}catch{return""}}});var ZT=new WeakMap;function JM(e){return e.getMenuConfig("uploadImage")}function x0e(e,t){return fx(this,void 0,void 0,function(){return dx(this,function(n){return[2,new Promise(function(r){var o=new FileReader;o.readAsDataURL(t),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;Cu(e,a,t.name,u),r("ok")}}})]})})}function C0e(e,t){return fx(this,void 0,void 0,function(){var n,r,o,i;return dx(this,function(a){switch(a.label){case 0:return n=(function(u){var s=ZT.get(u);if(s!=null)return s;var l=JM(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,y=l.onError;return s=kN(iy(iy({},l),{onProgress:function(v){u.showProgressBar(v),f&&f(v)},onSuccess:function(v,g){if(p)return p(g,function(R,H,M){return Cu(u,R,H,M)}),void c(v,g);var m=g.errno,h=m===void 0?1:m,b=g.data,w=b===void 0?{}:b;if(h===0){if(Array.isArray(w))w.forEach(function(R){var H=R.url,M=H===void 0?"":H,K=R.alt,U=K===void 0?"":K,W=R.href;Cu(u,M,U,W===void 0?"":W)});else{var D=w.url,C=D===void 0?"":D,x=w.alt,O=x===void 0?"":x,F=w.href;Cu(u,C,O,F===void 0?"":F)}c(v,g)}else d(v,g)},onError:function(v,g,m){y(v,g,m)}})),ZT.set(u,s),s})(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}})})}function QM(e,t){var n,r;return fx(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,d;return dx(this,function(p){switch(p.label){case 0:if(t==null)return[2];o=Array.prototype.slice.call(t),i=JM(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=vve(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,x0e(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,function(y,v,g){return Cu(e,y,v,g)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,C0e(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[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 S0e=Te([].join),A0e=XD!=Object,O0e=IM("join",",");wo({target:"Array",proto:!0,forced:A0e||!O0e},{join:function(e){return S0e(_a(this),e===void 0?",":e)}}),Or&&(k.fn.append=Or),Oo&&(k.fn.on=Oo),Fl&&(k.fn.remove=Fl),Ao&&(k.fn.val=Ao),YS&&(k.fn.click=YS),Al&&(k.fn.hide=Al);var B0e=(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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return Xy(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f,d){return Cu(t,c,f,d)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=k("body"),l=k('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;QM(t,c)})}},e})(),k0e={menus:[{key:"uploadImage",factory:function(){return new B0e},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(Xy(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some(function(i){return(function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),d=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(p){c={error:p}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return d})(i.type.split("/"),1)[0]==="image"})?QM(e,o):t(r)}},n}};qn("en",{highLightModule:{selectLang:"Language"}}),qn("zh-CN",{highLightModule:{selectLang:"选择语言"}});var dy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ex(e){var t={exports:{}};return e(t,t.exports),t.exports}var ji,nv,xg=function(e){return e&&e.Math==Math&&e},Ne=xg(typeof globalThis=="object"&&globalThis)||xg(typeof window=="object"&&window)||xg(typeof self=="object"&&self)||xg(typeof dy=="object"&&dy)||(function(){return this})()||Function("return this")(),F0e=Object.defineProperty,Dx=function(e,t){try{F0e(Ne,e,{value:t,configurable:!0,writable:!0})}catch{Ne[e]=t}return t},da=Ne["__core-js_shared__"]||Dx("__core-js_shared__",{}),xx=Ex(function(e){(e.exports=function(t,n){return da[t]||(da[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),ez=Function.prototype,v3=ez.bind,y3=ez.call,T0e=v3&&v3.bind(y3),Je=v3?function(e){return e&&T0e(y3,e)}:function(e){return e&&function(){return y3.apply(e,arguments)}},_0e=Ne.TypeError,Gl=function(e){if(e==null)throw _0e("Can't call method on "+e);return e},j0e=Ne.Object,Cx=function(e){return j0e(Gl(e))},P0e=Je({}.hasOwnProperty),Sr=Object.hasOwn||function(e,t){return P0e(Cx(e),t)},N0e=0,I0e=Math.random(),L0e=Je(1 .toString),tz=function(e){return"Symbol("+(e===void 0?"":e)+")_"+L0e(++N0e+I0e,36)},jn=function(e){return typeof e=="function"},R0e=function(e){return jn(e)?e:void 0},ah=function(e,t){return arguments.length<2?R0e(Ne[e]):Ne[e]&&Ne[e][t]},Pw=ah("navigator","userAgent")||"",YT=Ne.process,JT=Ne.Deno,QT=YT&&YT.versions||JT&&JT.version,e_=QT&&QT.v8;e_&&(nv=(ji=e_.split("."))[0]>0&&ji[0]<4?1:+(ji[0]+ji[1])),!nv&&Pw&&(!(ji=Pw.match(/Edge\/(\d+)/))||ji[1]>=74)&&(ji=Pw.match(/Chrome\/(\d+)/))&&(nv=+ji[1]);var t_=nv,un=function(e){try{return!!e()}catch{return!0}},m3=!!Object.getOwnPropertySymbols&&!un(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t_&&t_<41}),Sx=m3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",If=xx("wks"),Iu=Ne.Symbol,n_=Iu&&Iu.for,M0e=Sx?Iu:Iu&&Iu.withoutSetter||tz,ja=function(e){if(!Sr(If,e)||!m3&&typeof If[e]!="string"){var t="Symbol."+e;m3&&Sr(Iu,e)?If[e]=Iu[e]:If[e]=Sx&&n_?n_(t):M0e(t)}return If[e]},nz={};nz[ja("toStringTag")]="z";var Ax=String(nz)==="[object z]",To=!un(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Qo=function(e){return typeof e=="object"?e!==null:jn(e)},b3=Ne.document,z0e=Qo(b3)&&Qo(b3.createElement),Ox=function(e){return z0e?b3.createElement(e):{}},rz=!To&&!un(function(){return Object.defineProperty(Ox("div"),"a",{get:function(){return 7}}).a!=7}),$0e=Ne.String,H0e=Ne.TypeError,Zr=function(e){if(Qo(e))return e;throw H0e($0e(e)+" is not an object")},Lf=Function.prototype.call,on=Lf.bind?Lf.bind(Lf):function(){return Lf.apply(Lf,arguments)},oz=Je({}.isPrototypeOf),V0e=Ne.Object,Nw=Sx?function(e){return typeof e=="symbol"}:function(e){var t=ah("Symbol");return jn(t)&&oz(t.prototype,V0e(e))},U0e=Ne.String,iz=function(e){try{return U0e(e)}catch{return"Object"}},W0e=Ne.TypeError,az=function(e){if(jn(e))return e;throw W0e(iz(e)+" is not a function")},uz=function(e,t){var n=e[t];return n==null?void 0:az(n)},G0e=Ne.TypeError,q0e=Ne.TypeError,K0e=ja("toPrimitive"),Bx=function(e){var t=(function(n,r){if(!Qo(n)||Nw(n))return n;var o,i=uz(n,K0e);if(i){if(o=on(i,n,r),!Qo(o)||Nw(o))return o;throw q0e("Can't convert object to primitive value")}return(function(a,u){var s,l;if(jn(s=a.toString)&&!Qo(l=on(s,a))||jn(s=a.valueOf)&&!Qo(l=on(s,a)))return l;throw G0e("Can't convert object to primitive value")})(n)})(e,"string");return Nw(t)?t:t+""},X0e=Ne.TypeError,r_=Object.defineProperty,Em={f:To?r_:function(e,t,n){if(Zr(e),t=Bx(t),Zr(n),rz)try{return r_(e,t,n)}catch{}if("get"in n||"set"in n)throw X0e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},kx=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ql=To?function(e,t,n){return Em.f(e,t,kx(1,n))}:function(e,t,n){return e[t]=n,e},Z0e=Je(Function.toString);jn(da.inspectSource)||(da.inspectSource=function(e){return Z0e(e)});var w3,py,E3,Fx=da.inspectSource,o_=Ne.WeakMap,Y0e=jn(o_)&&/native code/.test(Fx(o_)),i_=xx("keys"),sz=function(e){return i_[e]||(i_[e]=tz(e))},Tx={},a_=Ne.TypeError,J0e=Ne.WeakMap;if(Y0e||da.state){var Za=da.state||(da.state=new J0e),Q0e=Je(Za.get),u_=Je(Za.has),eye=Je(Za.set);w3=function(e,t){if(u_(Za,e))throw new a_("Object already initialized");return t.facade=e,eye(Za,e,t),t},py=function(e){return Q0e(Za,e)||{}},E3=function(e){return u_(Za,e)}}else{var Us=sz("state");Tx[Us]=!0,w3=function(e,t){if(Sr(e,Us))throw new a_("Object already initialized");return t.facade=e,ql(e,Us,t),t},py=function(e){return Sr(e,Us)?e[Us]:{}},E3=function(e){return Sr(e,Us)}}var D3={get:py,enforce:function(e){return E3(e)?py(e):w3(e,{})}},lz=Function.prototype,tye=To&&Object.getOwnPropertyDescriptor,s_=Sr(lz,"name"),cz={PROPER:s_&&(function(){}).name==="something",CONFIGURABLE:s_&&(!To||To&&tye(lz,"name").configurable)},vp=Ex(function(e){var t=cz.CONFIGURABLE,n=D3.get,r=D3.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;jn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Sr(u,"name")||t&&u.name!==p)&&ql(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Ne?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ql(i,a,u)):f?i[a]=u:Dx(a,u)})(Function.prototype,"toString",function(){return jn(this)&&n(this).source||Fx(this)})}),nye=Je({}.toString),rye=Je("".slice),pa=function(e){return rye(nye(e),8,-1)},oye=ja("toStringTag"),iye=Ne.Object,aye=pa((function(){return arguments})())=="Arguments",_x=Ax?pa:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=iye(e),oye))=="string"?n:aye?pa(t):(r=pa(t))=="Object"&&jn(t.callee)?"Arguments":r},uye=Ax?{}.toString:function(){return"[object "+_x(this)+"]"};Ax||vp(Object.prototype,"toString",uye,{unsafe:!0});var l_,c_={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},Iw=Ox("span").classList,f_=Iw&&Iw.constructor&&Iw.constructor.prototype,sye=f_===Object.prototype?void 0:f_,d_=Je(Je.bind),Lw=Ne.Object,lye=Je("".split),jx=un(function(){return!Lw("z").propertyIsEnumerable(0)})?function(e){return pa(e)=="String"?lye(e,""):Lw(e)}:Lw,cye=Math.ceil,fye=Math.floor,Px=function(e){var t=+e;return t!=t||t===0?0:(t>0?fye:cye)(t)},dye=Math.min,fz=function(e){return e>0?dye(Px(e),9007199254740991):0},Nx=function(e){return fz(e.length)},p_=Array.isArray||function(e){return pa(e)=="Array"},dz=function(){},pye=[],pz=ah("Reflect","construct"),Ix=/^\s*(?:class|function)\b/,hye=Je(Ix.exec),gye=!Ix.exec(dz),Rf=function(e){if(!jn(e))return!1;try{return pz(dz,pye,e),!0}catch{return!1}},hz=!pz||un(function(){var e;return Rf(Rf.call)||!Rf(Object)||!Rf(function(){e=!0})||e})?function(e){if(!jn(e))return!1;switch(_x(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return gye||!!hye(Ix,Fx(e))}:Rf,vye=ja("species"),h_=Ne.Array,yye=function(e,t){return new((function(n){var r;return p_(n)&&(r=n.constructor,(hz(r)&&(r===h_||p_(r.prototype))||Qo(r)&&(r=r[vye])===null)&&(r=void 0)),r===void 0?h_:r})(e))(t===0?0:t)},g_=Je([].push),Pi=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,y=Cx(s),v=jx(y),g=(function(D,C){return az(D),C===void 0?D:d_?d_(D,C):function(){return D.apply(C,arguments)}})(l,c),m=Nx(v),h=0,b=f||yye,w=t?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in v)&&(p=g(d=v[h],h,y),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:g_(w,d)}else switch(e){case 4:return!1;case 7:g_(w,d)}return i?-1:r||o?o:w}},mye=[Pi(0),Pi(1),Pi(2),Pi(3),Pi(4),Pi(5),Pi(6),Pi(7)][0],Rw=(l_=[].forEach)&&un(function(){l_.call(null,function(){throw 1},1)})?[].forEach:function(e){return mye(this,e,arguments.length>1?arguments[1]:void 0)},gz=function(e){if(e&&e.forEach!==Rw)try{ql(e,"forEach",Rw)}catch{e.forEach=Rw}};for(var Mw in c_)c_[Mw]&&gz(Ne[Mw]&&Ne[Mw].prototype);gz(sye);var v_={}.propertyIsEnumerable,y_=Object.getOwnPropertyDescriptor,vz={f:y_&&!v_.call({1:2},1)?function(e){var t=y_(this,e);return!!t&&t.enumerable}:v_},Dm=function(e){return jx(Gl(e))},m_=Object.getOwnPropertyDescriptor,yz={f:To?m_:function(e,t){if(e=Dm(e),t=Bx(t),rz)try{return m_(e,t)}catch{}if(Sr(e,t))return kx(!on(vz.f,e,t),e[t])}},bye=Math.max,wye=Math.min,x3=function(e,t){var n=Px(e);return n<0?bye(n+t,0):wye(n,t)},Eye=function(e){return function(t,n,r){for(var o=Dm(t),i=Nx(o),a=x3(r,i);i>a;a++)if(a in o&&o[a]===n)return a||0;return-1}},Dye=Eye(),b_=Je([].push),mz=function(e,t){var n,r=Dm(e),o=0,i=[];for(n in r)!Sr(Tx,n)&&Sr(r,n)&&b_(i,n);for(;t.length>o;)Sr(r,n=t[o++])&&(~Dye(i,n)||b_(i,n));return i},hy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xye=hy.concat("length","prototype"),Cye={f:Object.getOwnPropertyNames||function(e){return mz(e,xye)}},bz={f:Object.getOwnPropertySymbols},Sye=Je([].concat),Aye=ah("Reflect","ownKeys")||function(e){var t=Cye.f(Zr(e)),n=bz.f;return n?Sye(t,n(e)):t},Oye=function(e,t){for(var n=Aye(t),r=Em.f,o=yz.f,i=0;i<n.length;i++){var a=n[i];Sr(e,a)||r(e,a,o(t,a))}},Bye=/#|\.prototype\./,uh=function(e,t){var n=Fye[kye(e)];return n==_ye||n!=Tye&&(jn(t)?un(t):!!t)},kye=uh.normalize=function(e){return String(e).replace(Bye,".").toLowerCase()},Fye=uh.data={},Tye=uh.NATIVE="N",_ye=uh.POLYFILL="P",jye=uh,Pye=yz.f,xm=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ne:l?Ne[u]||Dx(u,{}):(Ne[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Pye(n,r))&&a.value:n[r],!jye(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Oye(i,o)}(e.sham||o&&o.sham)&&ql(i,"sham",!0),vp(n,r,i,e)}},rv=Object.keys||function(e){return mz(e,hy)},Ws=Object.assign,w_=Object.defineProperty,Nye=Je([].concat),E_=!Ws||un(function(){if(To&&Ws({b:1},Ws(w_({},"a",{enumerable:!0,get:function(){w_(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(o){t[o]=o}),Ws({},e)[n]!=7||rv(Ws({},t)).join("")!=r})?function(e,t){for(var n=Cx(e),r=arguments.length,o=1,i=bz.f,a=vz.f;r>o;)for(var u,s=jx(arguments[o++]),l=i?Nye(rv(s),i(s)):rv(s),c=l.length,f=0;c>f;)u=l[f++],To&&!on(a,s,u)||(n[u]=s[u]);return n}:Ws;xm({target:"Object",stat:!0,forced:Object.assign!==E_},{assign:E_});var D_=Ex(function(e){var t=(function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function g(m){return m instanceof u?new u(m.type,g(m.content),m.alias):Array.isArray(m)?m.map(g):m.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++o}),g.__id},clone:function g(m,h){var b,w;switch(h=h||{},a.util.type(m)){case"Object":if(w=a.util.objId(m),h[w])return h[w];for(var D in b={},h[w]=b,m)m.hasOwnProperty(D)&&(b[D]=g(m[D],h));return b;case"Array":return w=a.util.objId(m),h[w]?h[w]:(b=[],h[w]=b,m.forEach(function(C,x){b[x]=g(C,h)}),b);default:return m}},getLanguage:function(g){for(;g&&!r.test(g.className);)g=g.parentElement;return g?(g.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(g){var m=document.getElementsByTagName("script");for(var h in m)if(m[h].src==g)return m[h]}return null}},isActive:function(g,m,h){for(var b="no-"+m;g;){var w=g.classList;if(w.contains(m))return!0;if(w.contains(b))return!1;g=g.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(g,m){var h=a.util.clone(a.languages[g]);for(var b in m)h[b]=m[b];return h},insertBefore:function(g,m,h,b){var w=(b=b||a.languages)[g],D={};for(var C in w)if(w.hasOwnProperty(C)){if(C==m)for(var x in h)h.hasOwnProperty(x)&&(D[x]=h[x]);h.hasOwnProperty(C)||(D[C]=w[C])}var O=b[g];return b[g]=D,a.languages.DFS(a.languages,function(F,R){R===O&&F!=g&&(this[F]=D)}),D},DFS:function g(m,h,b,w){w=w||{};var D=a.util.objId;for(var C in m)if(m.hasOwnProperty(C)){h.call(m,C,m[C],b||C);var x=m[C],O=a.util.type(x);O!=="Object"||w[D(x)]?O!=="Array"||w[D(x)]||(w[D(x)]=!0,g(x,h,C,w)):(w[D(x)]=!0,g(x,h,null,w))}}},plugins:{},highlightAll:function(g,m){a.highlightAllUnder(document,g,m)},highlightAllUnder:function(g,m,h){var b={callback:h,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),a.hooks.run("before-all-elements-highlight",b);for(var w,D=0;w=b.elements[D++];)a.highlightElement(w,m===!0,b.callback)},highlightElement:function(g,m,h){var b=a.util.getLanguage(g),w=a.languages[b];g.className=g.className.replace(r,"").replace(/\s+/g," ")+" language-"+b;var D=g.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&(D.className=D.className.replace(r,"").replace(/\s+/g," ")+" language-"+b);var C={element:g,language:b,grammar:w,code:g.textContent};function x(F){C.highlightedCode=F,a.hooks.run("before-insert",C),C.element.innerHTML=C.highlightedCode,a.hooks.run("after-highlight",C),a.hooks.run("complete",C),h&&h.call(C.element)}if(a.hooks.run("before-sanity-check",C),(D=C.element.parentElement)&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.setAttribute("tabindex","0"),!C.code)return a.hooks.run("complete",C),void(h&&h.call(C.element));if(a.hooks.run("before-highlight",C),C.grammar)if(m&&n.Worker){var O=new Worker(a.filename);O.onmessage=function(F){x(F.data)},O.postMessage(JSON.stringify({language:C.language,code:C.code,immediateClose:!0}))}else x(a.highlight(C.code,C.grammar,C.language));else x(a.util.encode(C.code))},highlight:function(g,m,h){var b={code:g,grammar:m,language:h};return a.hooks.run("before-tokenize",b),b.tokens=a.tokenize(b.code,b.grammar),a.hooks.run("after-tokenize",b),u.stringify(a.util.encode(b.tokens),b.language)},tokenize:function(g,m){var h=m.rest;if(h){for(var b in h)m[b]=h[b];delete m.rest}var w=new c;return f(w,w.head,g),l(g,w,m,w.head,0),(function(D){for(var C=[],x=D.head.next;x!==D.tail;)C.push(x.value),x=x.next;return C})(w)},hooks:{all:{},add:function(g,m){var h=a.hooks.all;h[g]=h[g]||[],h[g].push(m)},run:function(g,m){var h=a.hooks.all[g];if(h&&h.length)for(var b,w=0;b=h[w++];)b(m)}},Token:u};function u(g,m,h,b){this.type=g,this.content=m,this.alias=h,this.length=0|(b||"").length}function s(g,m,h,b){g.lastIndex=m;var w=g.exec(h);if(w&&b&&w[1]){var D=w[1].length;w.index+=D,w[0]=w[0].slice(D)}return w}function l(g,m,h,b,w,D){for(var C in h)if(h.hasOwnProperty(C)&&h[C]){var x=h[C];x=Array.isArray(x)?x:[x];for(var O=0;O<x.length;++O){if(D&&D.cause==C+","+O)return;var F=x[O],R=F.inside,H=!!F.lookbehind,M=!!F.greedy,K=F.alias;if(M&&!F.pattern.global){var U=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,U+"g")}for(var W=F.pattern||F,q=b.next,te=w;q!==m.tail&&!(D&&te>=D.reach);te+=q.value.length,q=q.next){var se=q.value;if(m.length>g.length)return;if(!(se instanceof u)){var ue,ae=1;if(M){if(!(ue=s(W,te,g,H)))break;var B=ue.index,S=ue.index+ue[0].length,j=te;for(j+=q.value.length;B>=j;)j+=(q=q.next).value.length;if(te=j-=q.value.length,q.value instanceof u)continue;for(var $=q;$!==m.tail&&(j<S||typeof $.value=="string");$=$.next)ae++,j+=$.value.length;ae--,se=g.slice(te,j),ue.index-=te}else if(!(ue=s(W,0,se,H)))continue;B=ue.index;var X=ue[0],V=se.slice(0,B),ie=se.slice(B+X.length),ge=te+se.length;D&&ge>D.reach&&(D.reach=ge);var ve=q.prev;if(V&&(ve=f(m,ve,V),te+=V.length),d(m,ve,ae),q=f(m,ve,new u(C,R?a.tokenize(X,R):X,K,X)),ie&&f(m,q,ie),ae>1){var De={cause:C+","+O,reach:ge};l(g,m,h,q.prev,te,De),D&&De.reach>D.reach&&(D.reach=De.reach)}}}}}}function c(){var g={value:null,prev:null,next:null},m={value:null,prev:g,next:null};g.next=m,this.head=g,this.tail=m,this.length=0}function f(g,m,h){var b=m.next,w={value:h,prev:m,next:b};return m.next=w,b.prev=w,g.length++,w}function d(g,m,h){for(var b=m.next,w=0;w<h&&b!==g.tail;w++)b=b.next;m.next=b,b.prev=m,g.length-=w}if(n.Prism=a,u.stringify=function g(m,h){if(typeof m=="string")return m;if(Array.isArray(m)){var b="";return m.forEach(function(O){b+=g(O,h)}),b}var w={type:m.type,content:g(m.content,h),tag:"span",classes:["token",m.type],attributes:{},language:h},D=m.alias;D&&(Array.isArray(D)?Array.prototype.push.apply(w.classes,D):w.classes.push(D)),a.hooks.run("wrap",w);var C="";for(var x in w.attributes)C+=" "+x+'="'+(w.attributes[x]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+C+">"+w.content+"</"+w.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(g){var m=JSON.parse(g.data),h=m.language,b=m.code,w=m.immediateClose;n.postMessage(a.highlight(b,a.languages[h],h)),w&&n.close()},!1)),a;var p=a.util.currentScript();function y(){a.manual||a.highlightAll()}if(p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var v=document.readyState;v==="loading"||v==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return a})(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
|
|
163
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
164
|
+
*
|
|
165
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
166
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
167
|
+
* @namespace
|
|
168
|
+
* @public
|
|
169
|
+
*/e.exports&&(e.exports=t),dy!==void 0&&(dy.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(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},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(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.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\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,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:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.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)/.source,"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 n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",o='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(s){s.selector+=", "+o}),t.hooks.add("before-sanity-check",function(s){var l=s.element;if(l.matches(o)){s.code="",l.setAttribute(r,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var f=l.getAttribute("data-src"),d=s.language;if(d==="none"){var p=(/\.(\w+)$/.exec(f)||[,"none"])[1];d=n[p]||p}u(c,d),u(l,d);var y=t.plugins.autoloader;y&&y.loadLanguages(d);var v=new XMLHttpRequest;v.open("GET",f,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?(l.setAttribute(r,"loaded"),c.textContent=v.responseText,t.highlightElement(c)):(l.setAttribute(r,"failed"),v.status>=400?c.textContent="✖ Error "+v.status+" while fetching file: "+v.statusText:c.textContent="✖ Error: File does not exist or is empty"))},v.send(null)}}),t.plugins.fileHighlight={highlight:function(s){for(var l,c=(s||document).querySelectorAll(o),f=0;l=c[f++];)t.highlightElement(l)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(s,l){var c=s.className;c=c.replace(i," ")+" language-"+l,s.className=c.replace(/\s+/g," ").trim()}})()});(function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(s,l)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),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:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],d=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:d=!0),(d||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var p=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(p+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(p=a(s[c-1])+p,s.splice(c-1,1),c--),s[c]=new e.Token("plain-text",p,null,p)}f.content&&typeof f.content!="string"&&u(f.content)}};e.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.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(/&/,"&"))}),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 o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[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,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;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:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{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:a}},{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:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"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:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&e.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(s){e.languages["markup-templating"].tokenizePlaceholders(s,"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://,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*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),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*[;,=()])/.source),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*)*\.?/.source.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/.source.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+/.source.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+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.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(S,j){return S.replace(/<<(\d+)>>/g,function($,X){return"(?:"+j[+X]+")"})}function n(S,j,$){return RegExp(t(S,j),"")}function r(S,j){for(var $=0;$<j;$++)S=S.replace(/<<self>>/g,function(){return"(?:"+S+")"});return S.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="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*{)",u="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 s(S){return"\\b(?:"+S.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),y=r(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[v,p]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),h=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,h]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,y,h]),D=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),C=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[D,m,h]),x={keyword:c,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,F=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0},{pattern:RegExp(O),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,C]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:x},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:x},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:x},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,d,v]),inside:x}],keyword:c,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*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[y]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,m]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,p]),inside:{function:n(/^<<0>>/.source,[v]),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|[{;]|=>|$))/.source,[l,g,v,C,c.source,y,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,y]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(C),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 H=F+"|"+O,M=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[H]),K=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),U=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,W=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,K]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,W]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[K]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var q=/:[^}\r\n]+/.source,te=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),se=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[te,q]),ue=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[H]),2),ae=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ue,q]);function B(S,j){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[S]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[j,q]),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>>|[^\\{"])*"/.source,[se]),lookbehind:!0,greedy:!0,inside:B(se,te)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ae]),lookbehind:!0,greedy:!0,inside:B(ae,ue)}]})})(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/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),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]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].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(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),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 o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash})(Prism),(function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(l){return l=l.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(e.languages.markdown[l].inside.content.inside[c]=e.languages.markdown[c])})}),e.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||(function c(f){if(f&&typeof f!="string")for(var d=0,p=f.length;d<p;d++){var y=f[d];if(y.type==="code"){var v=y.content[1],g=y.content[3];if(v&&g&&v.type==="code-language"&&g.type==="code-block"&&typeof v.content=="string"){var m=v.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(m=(/[a-z][\w-]*/i.exec(m)||[""])[0].toLowerCase());g.alias?typeof g.alias=="string"?g.alias=[g.alias,h]:g.alias.push(h):g.alias=[h]}}else c(y.content)}})(l.tokens)}),e.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,d=l.classes.length;f<d;f++){var p=l.classes[f],y=/language-(.+)/.exec(p);if(y){c=y[1];break}}var v=e.languages[c];if(v)l.content=e.highlight((function(m){var h=m.replace(a,"");return h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,w){var D;return(w=w.toLowerCase())[0]==="#"?(D=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(D)):u[w]||b})})(l.content),v,c);else if(c&&c!=="none"&&e.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=g,e.plugins.autoloader.loadLanguages(c,function(){var m=document.getElementById(g);m&&(m.innerHTML=e.highlight(m.textContent,e.languages[c],c))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=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(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t==="/"?"regex":"gstring")}}});var Iye=["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"];function wz(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,n){return t+wz(n)},0)}var Cg,Lye=Ne.String,ri=function(e){if(_x(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Lye(e)},Ez=function(){var e=Zr(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},Lx=Ne.RegExp,C3=un(function(){var e=Lx("a","y");return e.lastIndex=2,e.exec("abcd")!=null});C3||un(function(){return!Lx("a","y").sticky});var Dz={BROKEN_CARET:C3||un(function(){var e=Lx("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:C3},Rye=To?Object.defineProperties:function(e,t){Zr(e);for(var n,r=Dm(t),o=rv(t),i=o.length,a=0;i>a;)Em.f(e,n=o[a++],r[n]);return e},Mye=ah("document","documentElement"),xz=sz("IE_PROTO"),zw=function(){},Cz=function(e){return"<script>"+e+"<\/script>"},x_=function(e){e.write(Cz("")),e.close();var t=e.parentWindow.Object;return e=null,t},ov=function(){try{Cg=new ActiveXObject("htmlfile")}catch{}var e,t;ov=typeof document<"u"?document.domain&&Cg?x_(Cg):((t=Ox("iframe")).style.display="none",Mye.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Cz("document.F=Object")),e.close(),e.F):x_(Cg);for(var n=hy.length;n--;)delete ov.prototype[hy[n]];return ov()};Tx[xz]=!0;var C_,$w,zye=Object.create||function(e,t){var n;return e!==null?(zw.prototype=Zr(e),n=new zw,zw.prototype=null,n[xz]=e):n=ov(),t===void 0?n:Rye(n,t)},$ye=Ne.RegExp,Hye=un(function(){var e=$ye(".","s");return!(e.dotAll&&e.exec(`
|
|
170
|
+
`)&&e.flags==="s")}),Vye=Ne.RegExp,Uye=un(function(){var e=Vye("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Wye=D3.get,Gye=xx("native-string-replace",String.prototype.replace),gy=RegExp.prototype.exec,S3=gy,qye=Je("".charAt),Kye=Je("".indexOf),Xye=Je("".replace),Hw=Je("".slice),Vw=($w=/b*/g,on(gy,C_=/a/,"a"),on(gy,$w,"a"),C_.lastIndex!==0||$w.lastIndex!==0),S_=Dz.BROKEN_CARET,Uw=/()??/.exec("")[1]!==void 0;(Vw||Uw||S_||Hye||Uye)&&(S3=function(e){var t,n,r,o,i,a,u,s=this,l=Wye(s),c=ri(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=on(S3,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=S_&&s.sticky,y=on(Ez,s),v=s.source,g=0,m=c;if(p&&(y=Xye(y,"y",""),Kye(y,"g")===-1&&(y+="g"),m=Hw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&qye(c,s.lastIndex-1)!==`
|
|
171
|
+
`)&&(v="(?: "+v+")",m=" "+m,g++),n=new RegExp("^(?:"+v+")",y)),Uw&&(n=new RegExp("^"+v+"$(?!\\s)",y)),Vw&&(r=s.lastIndex),o=on(gy,p?n:s,m),p?o?(o.input=Hw(o.input,g),o[0]=Hw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Vw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Uw&&o&&o.length>1&&on(Gye,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=zye(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var yp=S3;xm({target:"RegExp",proto:!0,forced:/./.exec!==yp},{exec:yp});var Rx=Function.prototype,A_=Rx.apply,Zye=Rx.bind,O_=Rx.call,Yye=typeof Reflect=="object"&&Reflect.apply||(Zye?O_.bind(A_):function(){return O_.apply(A_,arguments)}),Jye=ja("species"),Ww=RegExp.prototype,Qye=ja("match"),eme=Ne.TypeError,tme=ja("species"),nme=Je("".charAt),B_=Je("".charCodeAt),rme=Je("".slice),ome=function(e){return function(t,n){var r,o,i=ri(Gl(t)),a=Px(n),u=i.length;return a<0||a>=u?"":(r=B_(i,a))<55296||r>56319||a+1===u||(o=B_(i,a+1))<56320||o>57343?nme(i,a):rme(i,a,a+2)}},ime=ome(),ame=function(e,t,n){return t+(n?ime(e,t).length:1)},ume=Ne.Array,sme=Math.max,k_=function(e,t,n){for(var r,o,i,a,u=Nx(e),s=x3(t,u),l=x3(n===void 0?u:n,u),c=ume(sme(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=Bx(o))in r?Em.f(r,a,kx(0,i)):r[a]=i;return c.length=f,c},lme=Ne.TypeError,F_=function(e,t){var n=e.exec;if(jn(n)){var r=on(n,e,t);return r!==null&&Zr(r),r}if(pa(e)==="RegExp")return on(yp,e,t);throw lme("RegExp#exec called on incompatible receiver")},Gs=Dz.UNSUPPORTED_Y,cme=Math.min,Sz=[].push,fme=Je(/./.exec),qs=Je(Sz),Mf=Je("".slice);(function(e,t,n,r){var o=ja(e),i=!un(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!un(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Jye]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Je(/./[o]),s=(function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,y){var v,g,m=ri(Gl(this)),h=y===void 0?4294967295:y>>>0;if(h===0)return[];if(p===void 0)return[m];if(!Qo(v=p)||!((g=v[Qye])!==void 0?g:pa(v)=="RegExp"))return on(c,m,p,h);for(var b,w,D,C=[],x=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),O=0,F=new RegExp(p.source,x+"g");(b=on(yp,F,m))&&!((w=F.lastIndex)>O&&(qs(C,Mf(m,O,b.index)),b.length>1&&b.index<m.length&&Yye(Sz,C,k_(b,1)),D=b[0].length,O=w,C.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return O===m.length?!D&&fme(F,"")||qs(C,""):qs(C,Mf(m,O)),C.length>h?k_(C,0,h):C}:"0".split(void 0,0).length?function(p,y){return p===void 0&&y===0?[]:on(c,this,p,y)}:c,[function(p,y){var v=Gl(this),g=p==null?void 0:uz(p,l);return g?on(g,p,v,y):on(d,ri(v),p,y)},function(p,y){var v=Zr(this),g=ri(p),m=f(d,v,g,y,d!==c);if(m.done)return m.value;var h=(function(K,U){var W,q=Zr(K).constructor;return q===void 0||(W=Zr(q)[tme])==null?U:(function(te){if(hz(te))return te;throw eme(iz(te)+" is not a constructor")})(W)})(v,RegExp),b=v.unicode,w=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+(Gs?"g":"y"),D=new h(Gs?"^(?:"+v.source+")":v,w),C=y===void 0?4294967295:y>>>0;if(C===0)return[];if(g.length===0)return F_(D,g)===null?[g]:[];for(var x=0,O=0,F=[];O<g.length;){D.lastIndex=Gs?0:O;var R,H=F_(D,Gs?Mf(g,O):g);if(H===null||(R=cme(fz(D.lastIndex+(Gs?O:0)),g.length))===x)O=ame(g,O,b);else{if(qs(F,Mf(g,x,O)),F.length===C)return F;for(var M=1;M<=H.length-1;M++)if(qs(F,H[M]),F.length===C)return F;O=x=R}}return qs(F,Mf(g,x)),F}]})(o,""[e],function(l,c,f,d,p){var y=Je(l),v=c.exec;return v===yp||v===Ww.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:y(f,c,d)}:{done:!1}});vp(String.prototype,e,s[0]),vp(Ww,o,s[1])}r&&ql(Ww[o],"sham",!0)})("split",0,!!un(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"}),Gs),xm({global:!0},{globalThis:Ne}),Ar&&(k.fn.attr=Ar);var dme=cz.PROPER,A3=RegExp.prototype,Az=A3.toString,pme=Je(Ez),hme=un(function(){return Az.call({source:"a",flags:"b"})!="/a/b"}),gme=dme&&Az.name!="toString";(hme||gme)&&vp(RegExp.prototype,"toString",function(){var e=Zr(this),t=ri(e.source),n=e.flags;return"/"+t+"/"+ri(n===void 0&&oz(A3,e)&&!("flags"in A3)?pme(e):n)},{unsafe:!0});var vme=(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(t){var n=[],r=t.getMenuConfig("codeSelectLang").codeLangs,o=r===void 0?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(a){var u=a.text,s=a.value;n.push({text:u,value:s})});var i=this.getValue(t);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);if(n==null||!ce.isElement(n))return"";var r=n.language.toString(),o=t.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===r})?r:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,n){if(this.getSelectCodeElem(t)!=null){var r={language:n.toString()};N.setNodes(t,r,{match:function(o){return A.checkNodeType(o,"code")}})}},e.prototype.getSelectCodeElem=function(t){var n=A.getSelectedNodeByType(t,"code");if(n==null)return null;var r=A.getParentNode(t,n);return ce.isElement(r)?r.type!=="pre"?null:n:null},e})(),yme={renderStyle:function(e,t){var n=e,r=t,o="";return Iye.forEach(function(i){n[i]&&(o=i)}),o&&(function(i,a){i.data==null&&(i.data={});var u=i.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})})(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=k(e);if(!ce.isElement(t)||A.getNodeType(t)!=="code")return t;var o=t,i=r.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new vme},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>"}}]},mme=/"/g,bme=Je("".replace);xm({target:"String",proto:!0,forced:un(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=ri(Gl(this)),r="<a",(r+=' name="'+bme(ri(t),mme,""")+'"')+">"+n+"</a>";var t,n,r}});var Oz=function(e){var t,n,r,o=(function(m,h){var b=typeof Symbol=="function"&&m[Symbol.iterator];if(!b)return m;var w,D,C=b.call(m),x=[];try{for(;(h===void 0||h-- >0)&&!(w=C.next()).done;)x.push(w.value)}catch(O){D={error:O}}finally{try{w&&!w.done&&(b=C.return)&&b.call(C)}finally{if(D)throw D.error}}return x})(e,2),i=o[0],a=o[1],u=[],s=(function(m){if(!oe.isText(m))return null;var h=A.getParentNode(null,m);if(h&&A.getNodeType(h)==="code"){var b=A.getParentNode(null,h);if(b&&A.getNodeType(b)==="pre")return h}return null})(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=(function(m,h){if(!h)return[];var b=D_.languages[h];return b?D_.tokenize(m.text,b):[]})(i,c),d=0;try{for(var p=(function(m){var h=typeof Symbol=="function"&&Symbol.iterator,b=h&&m[h],w=0;if(b)return b.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&w>=m.length&&(m=void 0),{value:m&&m[w++],done:!m}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")})(f),y=p.next();!y.done;y=p.next()){var v=y.value,g=d+wz(v);typeof v!="string"&&u.push(((r={})[v.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:g},r)),d=g}}catch(m){t={error:m}}finally{try{y&&!y.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},St=function(){return St=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},St.apply(this,arguments)},nn=(function(){function e(){throw new Error(`不能实例化
|
|
172
|
+
Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=St(St({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=St(St({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=St(St({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=St(St({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){(function(r,o){var i=r.key,a=r.factory,u=r.config,s=br(br({},u),o||{});if(Md[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");Md[i]=a,(function(l,c){c!=null&&(ZP[l]=c)})(i,s)})(t,n)},e.registerRenderElem=function(t){(function(n){var r=n.type,o=n.renderElem;EN[r||""]=o})(t)},e.registerRenderStyle=function(t){(function(n){EE.push(n)})(t)},e.registerElemToHtml=function(t){(function(n){var r=n.type,o=n.elemToHtml;YP[r||""]=o})(t)},e.registerStyleToHtml=function(t){(function(n){gE.push(n)})(t)},e.registerPreParseHtml=function(t){(function(n){gN.push(n)})(t)},e.registerParseElemHtml=function(t){(function(n){var r=n.selector,o=n.parseElemHtml;t0[r]=o})(t)},e.registerParseStyleHtml=function(t){(function(n){Z8.push(n)})(t)},e.registerModule=function(t){nu(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e})();/*! *****************************************************************************
|
|
173
|
+
Copyright (c) Microsoft Corporation.
|
|
174
|
+
|
|
175
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
176
|
+
purpose with or without fee is hereby granted.
|
|
177
|
+
|
|
178
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
179
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
180
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
181
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
182
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
183
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
184
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
185
|
+
***************************************************************************** */function nu(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(c){return nn.registerMenu(c)}),n&&n.forEach(function(c){return nn.registerRenderElem(c)}),r&&nn.registerRenderStyle(r),o&&o.forEach(function(c){return nn.registerElemToHtml(c)}),i&&nn.registerStyleToHtml(i),a&&a.forEach(function(c){return nn.registerPreParseHtml(c)}),u&&u.forEach(function(c){return nn.registerParseElemHtml(c)}),s&&nn.registerParseStyleHtml(s),l&&nn.registerPlugin(l)}Sae.forEach(function(e){return nu(e)}),nu(nle),nu(Bfe),nu(Rhe),nu(k0e),nu(yme);var Bz='<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>',kz={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"]}},wme={hoverbarKeys:St(St({},kz),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};nn.setEditorConfig(St(St({},wme),{decorate:Oz}));var Eme={hoverbarKeys:kz};nn.setSimpleEditorConfig(St(St({},Eme),{decorate:Oz}));var Dme={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:Bz,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"]};nn.setToolbarConfig(Dme);var xme={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:Bz,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function Cme(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?"":t,r=e.content,o=r===void 0?[]:r,i=e.html,a=e.config,u=a===void 0?{}:a,s=e.mode,l=(s===void 0?"default":s)==="simple"?nn.simpleEditorConfig:nn.editorConfig,c=St(St({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return BQ({selector:n,config:St(St(St({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:nn.plugins})}function Sme(e){var t=e.selector,n=e.editor,r=e.config,o=r===void 0?{}:r,i=e.mode,a=i===void 0?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?nn.simpleToolbarConfig:nn.toolbarConfig,s=(function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,d=c.config,p=d===void 0?{}:d;if((function(g,m){return mN(g,"data-w-e-toolbar",m)})(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var y=br({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),v=new jQ(f,y);return $8.set(v,l),My.set(l,v),v})(n,{selector:t,config:St(St({},u),o)});return s}nn.setSimpleToolbarConfig(xme);var Ame=Object.defineProperty,Ome=Object.defineProperties,Bme=Object.getOwnPropertyDescriptors,T_=Object.getOwnPropertySymbols,kme=Object.prototype.hasOwnProperty,Fme=Object.prototype.propertyIsEnumerable,__=(e,t,n)=>t in e?Ame(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tme=(e,t)=>{for(var n in t||(t={}))kme.call(t,n)&&__(e,n,t[n]);if(T_)for(var n of T_(t))Fme.call(t,n)&&__(e,n,t[n]);return e},_me=(e,t)=>Ome(e,Bme(t));function Ni(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`
|
|
186
|
+
Please use '@${e}' event instead of props`,t}var Fz=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const jme=Ln.defineComponent({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=Ln.ref(null),r=Ln.shallowRef(null),o=Ln.ref(""),i=()=>{if(!n.value)return;const u=Ln.toRaw(e.defaultContent);Cme({selector:n.value,mode:e.mode,content:u||[],html:e.defaultHtml||e.modelValue||"",config:_me(Tme({},e.defaultConfig),{onCreated(s){if(r.value=s,t.emit("onCreated",s),e.defaultConfig.onCreated){const l=Ni("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,t.emit("update:modelValue",l),t.emit("onChange",s),e.defaultConfig.onChange){const c=Ni("onChange");throw new Error(c)}},onDestroyed(s){if(t.emit("onDestroyed",s),e.defaultConfig.onDestroyed){const l=Ni("onDestroyed");throw new Error(l)}},onMaxLength(s){if(t.emit("onMaxLength",s),e.defaultConfig.onMaxLength){const l=Ni("onMaxLength");throw new Error(l)}},onFocus(s){if(t.emit("onFocus",s),e.defaultConfig.onFocus){const l=Ni("onFocus");throw new Error(l)}},onBlur(s){if(t.emit("onBlur",s),e.defaultConfig.onBlur){const l=Ni("onBlur");throw new Error(l)}},customAlert(s,l){if(t.emit("customAlert",s,l),e.defaultConfig.customAlert){const c=Ni("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(e.defaultConfig.customPaste){const f=Ni("customPaste");throw new Error(f)}let c;return t.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=r.value;s!=null&&s.setHtml(u)}return Ln.onMounted(()=>{i()}),Ln.watch(()=>e.modelValue,u=>{u!==o.value&&a(u)}),{box:n}}}),Pme={ref:"box",style:{height:"100%"}};function Nme(e,t,n,r,o,i){return Ln.openBlock(),Ln.createElementBlock("div",Pme,null,512)}var Ime=Fz(jme,[["render",Nme]]);const Lme=Ln.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=Ln.ref(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");A.getToolbar(r)||Sme({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return Ln.watchEffect(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),Rme={ref:"selector"};function Mme(e,t,n,r,o,i){return Ln.openBlock(),Ln.createElementBlock("div",Rme,null,512)}var zme=Fz(Lme,[["render",Mme]]);exports.Editor=Ime;exports.Toolbar=zme;
|