@topdatasec/report 1.0.11 → 1.0.12
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/lib/t-report-ui.es.js +20 -26412
- package/lib/t-report-ui.umd.js +1 -205
- package/package.json +1 -2
- package/lib/style.css +0 -1
package/lib/t-report-ui.umd.js
CHANGED
|
@@ -1,205 +1 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${c}</span></div>`}},title:{show:a,text:"样例数据",textStyle:{color:"#333",fontSize:18},x:10,y:10},legend:{show:r,left:"70%",formatter:s=>{var c;const l=(c=u.series[0])==null?void 0:c.data.find(f=>f.name===s).value;return` ${s} | ${l}`},textStyle:{fontSize:il,color:Gi},data:t,orient:"vertical",itemWidth:10,itemHeight:10,borderRadius:10,x:"left",top:"center",align:"left",itemGap:15},series:[{type:"pie",center:i,radius:e===1?n?["10%","65%"]:["45%","70%"]:["0%","65%"],roseType:n,itemStyle:{borderRadius:1},label:{show:o,position:"outside",alignTo:"labelLine",backgroundColor:"#fff",height:0,width:0,lineHeight:0,distanceToLabelLine:0,borderRadius:3,borderWidth:1,borderColor:"inherit",padding:[3,-3,3,-3],formatter:function(s){return`{a|${s.name}(${s.value})}`},rich:{a:{padding:[20,-80,40,-80],fontSize:"12px",fontFamily:"MicrosoftYaHei",color:"#091158"},b:{padding:[0,-80,55,-80],fontSize:"15px",fontFamily:"MicrosoftYaHei-Bold, MicrosoftYaHei",fontWeight:"bold",color:"#001F3D"}}},labelLine:{show:!0,length:40,length2:85,align:"right",lineStyle:{width:1}},data:t}],graphic:[{invisible:!1,type:"text",left:"center",top:"44%",style:{text:"总量",fontSize:14,fill:"#86909c",fontWeight:"bold"}},{invisible:!1,type:"text",left:"center",top:"50%",style:{text:"151",fontSize:18,fill:"#86909c",fontWeight:"bold"}}]};return u},tW=(t,e,n={name:"name",value:"value"})=>{t.xAxis.data=e.map(r=>r[n.name]),Array.isArray(n.value)?n.value.forEach((r,o)=>{t.series[o].data=e.map(i=>i[r.value])}):typeof n.value=="string"&&(t.series[0].data=e.map(r=>r[n.value]))},eW=()=>({name:"",type:"line",symbol:"circle",smooth:!0,lineStyle:{width:1,color:`rgba(${Wn[0]}, 1)`},showSymbol:!1,itemStyle:{color:`rgba(${Wn[0]}, 1)`,label:{show:!0,position:"top",formatter:function(t){return t.value?t.value:0}}},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`rgba(${Wn[0]}, 0.7)`},{offset:1,color:`rgba(${Wn[0]}, 0.1)`}],global:!1}},data:[]}),db=(t=[{name:"2024-08",value:63},{name:"2024-09",value:45},{name:"2024-10",value:43}],e={name:"name",value:"value"})=>{const n={tooltip:{trigger:"axis"},title:{show:!0,text:"样例数据",textStyle:{color:"#333",fontSize:18},x:10,y:10},legend:{show:!0,itemWidth:30,textStyle:{color:Gi,fontSize:il,padding:[0,8,0,8]}},grid:cA(),xAxis:{type:"category",splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:lA}},axisLabel:{show:!0,fontSize:il,color:Gi},boundaryGap:!1,data:t.map(i=>i[e.name])},yAxis:{name:"",type:"value",splitLine:{show:!1},axisLine:{show:!1},axisTick:{show:!1},nameTextStyle:{fontSize:il,color:Gi,padding:[0,60,0,0]},axisLabel:{show:!0,fontSize:il,color:Gi}},series:[]},r=eW(),o=[];if(Array.isArray(e.value))e.value.forEach((i,a)=>{const u=Sg(r);u.name=i.name,u.lineStyle.color=`rgba(${Wn[a]}, 1)`,u.itemStyle.color=`rgba(${Wn[a]}, 1)`,u.areaStyle.color.colorStops[0].color=`rgba(${Wn[a]}, 0.7)`,u.areaStyle.color.colorStops[1].color=`rgba(${Wn[a]}, 0.1)`,u.data=t.map(s=>s[i.value]),o.push(u)});else if(typeof e.value=="string"){const i=Sg(r);i.data=t.map(a=>a[e.value]),o.push(i)}return n.series=o,n},pb=[{key:"assets",name:"资产名称"},{key:"type",name:"资产类型"},{key:"data",name:"资产数据"}],hb=[{assets:"name1",type:"type1",data:"data1"},{assets:"name2",type:"type2",data:"data2"},{assets:"name3",type:"type3",data:"data3"}],gb=[{data:[{name:"默认数据",value:180}],label:"name1"},{data:[{name:"默认数据",value:311}],label:"name2"},{data:[{name:"默认数据",value:42}],label:"name3"},{data:[{name:"默认数据",value:32391}],label:"name4"}],nW=[{data:63,label:"数据1"},{data:45,label:"数据2"},{data:43,label:"数据3"}],rW=[{type:"report-select",label:"资产:",value:"0",data:[{label:"全部",data:"0"},{label:"10.10.2.20_root",data:"743dbb32-8a41-4990-9d76-48925b000a93"},{label:"10.10.4.206_sysdba",data:"23193788-c895-47a8-8123-65799540394c"},{label:"10.10.4.26_root@/root/files/",data:"bb7b07c9-b96b-4caf-ac76-bb45ae849844"}],uri:"/da/report/sens/get_asset_all",id:Du()},{type:"range-time",data:[{start_time:"2024-08-20 19:49:34",end_time:"2024-09-12 19:49:34"}],id:Du()},{type:"h1",data:"报表名称",options:{size:24,color:"rgba(0,0,0,0.85)",fontWeight:500,letterSpacing:0,textIndent:0,textAlign:"left"},id:Du()},{type:"h2",data:"一级标题",name:"一级标题",options:{size:18,color:" rgba(0, 0, 0, 0.85)",fontWeight:500,letterSpacing:0,textIndent:0,textAlign:"left"},id:Du()},{type:"report-table",data:hb,showColumn:pb,name:"表格",options:{showColumn:{assets:!0,type:!0,data:!0},border:!0,showHeader:!0,stripe:!1},rp_item_uuid:"",id:Du()}],oW=[{type:"h1",data:"报表名称",name:"报表名称",options:{size:24,color:" rgba(0, 0, 0, 0.85)",fontWeight:500,letterSpacing:0,textIndent:0,textAlign:"left"},hide:!0,id:""},{type:"h2",data:"一级标题",name:"一级标题",options:{size:18,color:" rgba(0, 0, 0, 0.85)",fontWeight:500,letterSpacing:0,textIndent:0,textAlign:"left"},id:""},{type:"h3",data:"二级标题",name:"二级标题",options:{size:14,color:" rgba(0, 0, 0, 0.85)",fontWeight:500,letterSpacing:0,textIndent:0,textAlign:"left"},id:""},{type:"p",data:"正文",name:"正文",rp_item_uuid:"",id:""},{type:"report-table",data:hb,showColumn:pb,name:"表格",options:{border:!0,showHeader:!0,stripe:!1,showColumn:{assect:!0,type:!0,data:!0}},rp_item_uuid:"",id:""},{type:"bar",data:gb,showColumn:[{key:"label",value:"data"}],name:"图表",options:cb(),rp_item_uuid:"",id:""}],iW=t=>({bar:{type:"bar",data:gb,showColumn:[{key:"label",value:"data"}],name:"图表",options:cb(),rp_item_uuid:"",id:""},line:{type:"line",data:gb,showColumn:[{key:"label",value:"data"}],name:"图表",options:db(),rp_item_uuid:"",id:""},pie:{type:"pie",data:nW,showColumn:[{key:"label",value:"data"}],name:"图表",options:fb({isLegend:!0}),rp_item_uuid:"",id:""},"report-table":{type:"report-table",data:hb,showColumn:pb,name:"表格",options:{showColumn:{assect:!0,type:!0,data:!0},border:!0,showHeader:!0,stripe:!1},rp_item_uuid:"",id:""}})[t],Nr=uA.defineStore("tds-cl-report",{state:()=>({componentList:[],activeComponents:{},notDraggableList:[],titleComponent:{},prodType:4,filterForm:{range_time:1,filter_uuid:""}}),getters:{getActiveComponents:t=>t.activeComponents},actions:{setComponentList(t){this.componentList=t},async getReportDemo(t){let e=[];t?e=(await WU({report_uuid:t})).data:e={content:Sg(rW),range_time:1};const n=[];e.content.forEach(r=>{(r.type==="report-select"||r.type==="range-time")&&n.push(r),r.type==="h1"&&(this.titleComponent=r),r.id=Du()}),this.notDraggableList=n,this.filterForm.range_time=e.range_time,this.filterForm.filter_uuid=e.filter_uuid,e.content.splice(0,3),this.componentList=e.content},setActiveComponents(t){this.activeComponents=t},clearComponents(){this.activeComponents={},this.componentList=[],this.notDraggableList=[],this.titleComponent={},this.filterForm={range_time:1,filter_uuid:""}}}}),aW={class:"catalogue"},uW=["href","title"],sW=b.defineComponent({__name:"Catalogue",props:{data:{default:()=>[]}},setup(t){const e=t,n=b.computed(()=>e.data.filter(r=>["h2","h3","h4"].includes(r.type)));return(r,o)=>{const i=b.resolveComponent("el-divider");return b.openBlock(),b.createElementBlock("div",aW,[o[0]||(o[0]=b.createElementVNode("div",{class:"cata-title el-anchor__link"},"目录",-1)),(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(n.value,a=>(b.openBlock(),b.createElementBlock("div",{class:b.normalizeClass("level"+a.type),key:a.value},[a.type==="h2"?(b.openBlock(),b.createBlock(i,{key:0,style:{"margin-top":"10px","margin-bottom":"10px"}})):b.createCommentVNode("",!0),b.createElementVNode("a",{class:"el-anchor__link",href:"#"+a.id,title:a.data},b.toDisplayString(a.data),9,uW)],2))),128))])}}}),LEt="",Dg=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},lW=Dg(sW,[["__scopeId","data-v-1cd8aa2d"]]),cW={class:"chart-components"},fA=b.defineComponent({__name:"Bar",props:{value:{}},setup(t){const e=t,n=b.computed(()=>e.value.options);return b.ref(!1),(r,o)=>{const i=b.resolveComponent("TdsChart");return b.openBlock(),b.createElementBlock("div",cW,[b.createVNode(i,{option:n.value},null,8,["option"])])}}}),fW={class:"chart-components"},dA=b.defineComponent({__name:"Line",props:{value:{}},setup(t){const e=t,n=b.computed(()=>e.value.options);return(r,o)=>{const i=b.resolveComponent("TdsChart");return b.openBlock(),b.createElementBlock("div",fW,[b.createVNode(i,{option:n.value},null,8,["option"])])}}}),dW={class:"chart-components"},pA=b.defineComponent({__name:"Pie",props:{value:{}},setup(t){const e=t,n=b.computed(()=>e.value.options);return(r,o)=>{const i=b.resolveComponent("TdsChart");return b.openBlock(),b.createElementBlock("div",dW,[b.createVNode(i,{option:n.value},null,8,["option"])])}}}),pW={key:0},vb=b.defineComponent({__name:"ReportSelect",props:{value:{}},emits:["change"],setup(t,{emit:e}){const n=e,r=a=>{n("change",a)},o=t,i=b.ref(o.value);return(a,u)=>{const s=b.resolveComponent("el-option"),l=b.resolveComponent("el-select");return i.value.data?(b.openBlock(),b.createElementBlock("div",pW,[b.createVNode(l,{modelValue:i.value.value,"onUpdate:modelValue":u[0]||(u[0]=c=>i.value.value=c),multiple:"",style:{width:"100%"},onChange:r,placeholder:"全部"},{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(i.value.data,c=>(b.openBlock(),b.createBlock(s,{key:c.data,label:c.label,value:c.data},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):b.createCommentVNode("",!0)}}}),mb=b.defineComponent({__name:"RangeTime",props:{value:{}},emits:["change"],setup(t,{emit:e}){const n=e,r=t,o=b.ref(r.value),i=b.ref([]);function a(u){u?(o.value.data[0].start_time=u[0],o.value.data[0].end_time=u[1]):i.value=[],n("change",i.value)}return b.onMounted(()=>{i.value=[o.value.data[0].start_time,o.value.data[0].end_time]}),(u,s)=>{const l=b.resolveComponent("el-date-picker");return b.openBlock(),b.createElementBlock("div",null,[b.createVNode(l,{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=c=>i.value=c),type:"datetimerange",placeholder:"Pick a Date",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",onChange:a,clearable:!1},null,8,["modelValue"])])}}});function hW(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!b.isVNode(t)}const hA=b.defineComponent({__name:"ReportTable",props:{value:{}},setup(t){const e=t,n=r=>{let o;return b.createVNode(b.resolveComponent("el-table"),{data:r.data,border:e.value.options.border,"show-header":!!e.value.options.showHeader,stripe:e.value.options.stripe},hW(o=r.showColumn.map(i=>e.value.options.showColumn[i.key]===!0?b.createVNode(b.resolveComponent("el-table-column"),{prop:i.key,label:i.name},null):null))?o:{default:()=>[o]})};return(r,o)=>(b.openBlock(),b.createElementBlock("div",null,[b.createVNode(n,b.normalizeProps(b.guardReactiveProps(r.value)),null,16)]))}}),yb=b.defineComponent({__name:"ReportText",props:{value:{}},setup(t){const e=t,n=()=>{const r=e.value.options||{};return{color:r.color,"font-size":r.size+"px","font-weight":r.fontWeight,"letter-spacing":r.letterSpacing+"px","text-indent":r.textIndent+"px","text-align":r.textAlign}};return(r,o)=>(b.openBlock(),b.createElementBlock("div",{style:b.normalizeStyle(n())},b.toDisplayString(r.value.data),5))}}),gW={class:"chart-components"},gA=b.defineComponent({__name:"ReportChart",props:{value:{}},setup(t){const e=t,n=b.computed(()=>e.value),r=b.computed(()=>{if(n.value.type==="bar"){n.value.options.series=cb([]).series;const o=[];let i="";n.value.data.forEach(a=>{i=a.data[0].name,o.push({name:a.label,value:a.data[0].value})}),ZU(n.value.options,o,i)}if(n.value.type==="pie"&&(n.value.options=fb({isLegend:!0}),console.log(fb({isLegend:!0}),"chartsPie({ isLegend: true })"),JU({chartOption:n.value.options,data:n.value.data})),n.value.type==="line"){let o=[];n.value.data.forEach(u=>{o=u.data.map((s,l)=>({name:s.name,value:"value"+l}))});const i={name:"name",value:o},a=n.value.data.map(u=>{const s={name:u.label};return o.forEach((l,c)=>{s[l.value]=u.data[c].value}),s});console.log(db([],i),"chartsLine([], params)"),n.value.options.series=db([],i).series,tW(n.value.options,a,i)}return n.value.options});return(o,i)=>{const a=b.resolveComponent("TdsChart");return b.openBlock(),b.createElementBlock("div",gW,[b.createVNode(a,{option:r.value},null,8,["option"])])}}});function vW(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!b.isVNode(t)}const vA=b.defineComponent({__name:"ReportDescribe",props:{value:{}},setup(t){const e=t,n=r=>{let o;return b.createVNode(b.resolveComponent("el-descriptions"),{title:e.value.options.title,border:e.value.options.border,column:e.value.options.column,direction:e.value.options.direction},vW(o=r.showColumn.map(i=>b.createVNode(b.resolveComponent("el-descriptions-item"),{label:i.name},{default:()=>[e.value.data[i.key]]})))?o:{default:()=>[o]})};return(r,o)=>(b.openBlock(),b.createElementBlock("div",null,[b.createVNode(n,b.normalizeProps(b.guardReactiveProps(r.value)),null,16)]))}}),mW={class:"editor-box"},yW={class:"editor",id:"editor",style:{width:"100%"}},bW={class:"editor-content flex flex-start"},wW=["id"],EW=["innerHTML"],CW=b.defineComponent({__name:"index",props:b.mergeModels({reportId:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e={Bar:fA,Line:dA,Pie:pA,ReportSelect:vb,RangeTime:mb,ReportTable:hA,ReportText:yb,ReportChart:gA,ReportDescribe:vA},n=Nr(),r=t,o=b.useModel(t,"modelValue"),i=b.ref([]),a=b.ref([]),u=b.ref([]),s=b.ref(""),l=b.ref("");function c(){o.value="table"}const f=v=>{u.value=v,d()},p=v=>{v&&v.length>0&&(s.value=v[0],l.value=v[1]),d()},d=async()=>{const v={report_uuid:r.reportId,start_time:s.value,end_time:l.value,select_data:u.value.join(",")},m=await GU(v),h=[];m.data.forEach(w=>{(w.type==="report-select"||w.type==="range-time")&&h.push(w)}),i.value=h,m.data.splice(0,i.value.length),a.value=m.data};d();const y=()=>b.createVNode("div",null,[b.createTextVNode("未找到对应组件")]),g=v=>v==="h2"||v==="h3"||v==="h4"?oo(e,"ReportText"):v==="bar"||v==="pie"||v==="line"?oo(e,"ReportChart"):v?oo(e,v):b.createVNode(y,null,null);return(v,m)=>{const h=b.resolveComponent("el-button"),w=b.resolveComponent("el-card");return b.openBlock(),b.createBlock(w,{class:"editor view"},{default:b.withCtx(()=>[b.createElementVNode("div",mW,[b.createVNode(lW,{data:a.value},null,8,["data"]),b.createElementVNode("div",yW,[b.createElementVNode("div",bW,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(i.value,E=>(b.openBlock(),b.createElementBlock("div",{class:"item-input",key:E.id},[E.type==="report-select"?(b.openBlock(),b.createBlock(vb,{key:0,onChange:f,value:E},null,8,["value"])):b.createCommentVNode("",!0),E.type==="range-time"&&b.unref(n).filterForm.range_time?(b.openBlock(),b.createBlock(mb,{key:1,onChange:p,value:E},null,8,["value"])):b.createCommentVNode("",!0)]))),128)),b.createVNode(h,{plain:"",onClick:c,type:"primary",class:"custom-btn",style:{"margin-left":"auto"}},{default:b.withCtx(()=>m[0]||(m[0]=[b.createTextVNode("退出预览")])),_:1})]),(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(a.value,E=>(b.openBlock(),b.createElementBlock("div",{key:E.id,class:b.normalizeClass(["editor-content",["editor"+E.type]]),id:E.id},[E.type!=="p"?(b.openBlock(),b.createBlock(b.resolveDynamicComponent(g(E.type)),{key:0,class:b.normalizeClass(["editor"+E.type]),value:E},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(E.data),1)]),_:2},1032,["class","value"])):(b.openBlock(),b.createElementBlock("p",{key:1,innerHTML:E.data},null,8,EW))],10,wW))),128))])])]),_:1})}}}),REt="",xW=Dg(CW,[["__scopeId","data-v-2d59469a"]]);var SW=Object.defineProperty,Ag=Object.getOwnPropertySymbols,mA=Object.prototype.hasOwnProperty,yA=Object.prototype.propertyIsEnumerable,bA=(t,e,n)=>e in t?SW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,al=(t,e)=>{for(var n in e||(e={}))mA.call(e,n)&&bA(t,n,e[n]);if(Ag)for(var n of Ag(e))yA.call(e,n)&&bA(t,n,e[n]);return t},wA=(t,e)=>{var n={};for(var r in t)mA.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ag)for(var r of Ag(t))e.indexOf(r)<0&&yA.call(t,r)&&(n[r]=t[r]);return n};const EA="[vue-draggable-plus]: ";function DW(t){console.warn(EA+t)}function AW(t){console.error(EA+t)}function CA(t,e,n){return n>=0&&n<t.length&&t.splice(n,0,t.splice(e,1)[0]),t}function _W(t){return t.replace(/-(\w)/g,(e,n)=>n?n.toUpperCase():"")}function OW(t){return Object.keys(t).reduce((e,n)=>(typeof t[n]<"u"&&(e[_W(n)]=t[n]),e),{})}function xA(t,e){return Array.isArray(t)&&t.splice(e,1),t}function SA(t,e,n){return Array.isArray(t)&&t.splice(e,0,n),t}function kW(t){return typeof t>"u"}function BW(t){return typeof t=="string"}function DA(t,e,n){const r=t.children[n];t.insertBefore(e,r)}function bb(t){t.parentNode&&t.parentNode.removeChild(t)}function TW(t,e=document){var n;let r=null;return typeof(e==null?void 0:e.querySelector)=="function"?r=(n=e==null?void 0:e.querySelector)==null?void 0:n.call(e,t):r=document.querySelector(t),r||DW(`Element not found: ${t}`),r}function FW(t,e,n=null){return function(...r){return t.apply(n,r),e.apply(n,r)}}function PW(t,e){const n=al({},t);return Object.keys(e).forEach(r=>{n[r]?n[r]=FW(t[r],e[r]):n[r]=e[r]}),n}function NW(t){return t instanceof HTMLElement}function AA(t,e){Object.keys(t).forEach(n=>{e(n,t[n])})}function jW(t){return t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97)}const IW=Object.assign;/**!
|
|
3
|
-
* Sortable 1.15.2
|
|
4
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
5
|
-
* @author owenm <owen23355@gmail.com>
|
|
6
|
-
* @license MIT
|
|
7
|
-
*/function _A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function To(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_A(Object(n),!0).forEach(function(r){LW(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_A(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function _g(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_g=function(e){return typeof e}:_g=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_g(t)}function LW(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ci(){return ci=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ci.apply(this,arguments)}function RW(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function MW(t,e){if(t==null)return{};var n=RW(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var VW="1.15.2";function fi(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var di=fi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),bf=fi(/Edge/i),OA=fi(/firefox/i),wf=fi(/safari/i)&&!fi(/chrome/i)&&!fi(/android/i),kA=fi(/iP(ad|od|hone)/i),BA=fi(/chrome/i)&&fi(/android/i),TA={capture:!1,passive:!1};function oe(t,e,n){t.addEventListener(e,n,!di&&TA)}function ee(t,e,n){t.removeEventListener(e,n,!di&&TA)}function Og(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function zW(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function io(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&Og(t,e):Og(t,e))||r&&t===n)return t;if(t===n)break}while(t=zW(t))}return null}var FA=/\s+/g;function dr(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(FA," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(FA," ")}}function xt(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function ul(t,e){var n="";if(typeof t=="string")n=t;else do{var r=xt(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function PA(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function Fo(){var t=document.scrollingElement;return t||document.documentElement}function Xe(t,e,n,r,o){if(!(!t.getBoundingClientRect&&t!==window)){var i,a,u,s,l,c,f;if(t!==window&&t.parentNode&&t!==Fo()?(i=t.getBoundingClientRect(),a=i.top,u=i.left,s=i.bottom,l=i.right,c=i.height,f=i.width):(a=0,u=0,s=window.innerHeight,l=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!di))do if(o&&o.getBoundingClientRect&&(xt(o,"transform")!=="none"||n&&xt(o,"position")!=="static")){var p=o.getBoundingClientRect();a-=p.top+parseInt(xt(o,"border-top-width")),u-=p.left+parseInt(xt(o,"border-left-width")),s=a+i.height,l=u+i.width;break}while(o=o.parentNode);if(r&&t!==window){var d=ul(o||t),y=d&&d.a,g=d&&d.d;d&&(a/=g,u/=y,f/=y,c/=g,s=a+c,l=u+f)}return{top:a,left:u,bottom:s,right:l,width:f,height:c}}}function NA(t,e,n){for(var r=qi(t,!0),o=Xe(t)[e];r;){var i=Xe(r)[n],a=void 0;if(a=o>=i,!a)return r;if(r===Fo())break;r=qi(r,!1)}return!1}function sl(t,e,n,r){for(var o=0,i=0,a=t.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==St.ghost&&(r||a[i]!==St.dragged)&&io(a[i],n.draggable,t,!1)){if(o===e)return a[i];o++}i++}return null}function wb(t,e){for(var n=t.lastElementChild;n&&(n===St.ghost||xt(n,"display")==="none"||e&&!Og(n,e));)n=n.previousElementSibling;return n||null}function jr(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==St.clone&&(!e||Og(t,e))&&n++;return n}function jA(t){var e=0,n=0,r=Fo();if(t)do{var o=ul(t),i=o.a,a=o.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}function HW(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function qi(t,e){if(!t||!t.getBoundingClientRect)return Fo();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=xt(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Fo();if(r||e)return n;r=!0}}while(n=n.parentNode);return Fo()}function UW(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Eb(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var Ef;function IA(t,e){return function(){if(!Ef){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),Ef=setTimeout(function(){Ef=void 0},e)}}}function WW(){clearTimeout(Ef),Ef=void 0}function LA(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function RA(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function MA(t,e,n){var r={};return Array.from(t.children).forEach(function(o){var i,a,u,s;if(!(!io(o,e.draggable,t,!1)||o.animated||o===n)){var l=Xe(o);r.left=Math.min((i=r.left)!==null&&i!==void 0?i:1/0,l.left),r.top=Math.min((a=r.top)!==null&&a!==void 0?a:1/0,l.top),r.right=Math.max((u=r.right)!==null&&u!==void 0?u:-1/0,l.right),r.bottom=Math.max((s=r.bottom)!==null&&s!==void 0?s:-1/0,l.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var pr="Sortable"+new Date().getTime();function GW(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(r){if(!(xt(r,"display")==="none"||r===St.ghost)){t.push({target:r,rect:Xe(r)});var o=To({},t[t.length-1].rect);if(r.thisAnimationDuration){var i=ul(r,!0);i&&(o.top-=i.f,o.left-=i.e)}r.fromRect=o}})}},addAnimationState:function(n){t.push(n)},removeAnimationState:function(n){t.splice(HW(t,{target:n}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var o=!1,i=0;t.forEach(function(a){var u=0,s=a.target,l=s.fromRect,c=Xe(s),f=s.prevFromRect,p=s.prevToRect,d=a.rect,y=ul(s,!0);y&&(c.top-=y.f,c.left-=y.e),s.toRect=c,s.thisAnimationDuration&&Eb(f,c)&&!Eb(l,c)&&(d.top-c.top)/(d.left-c.left)===(l.top-c.top)/(l.left-c.left)&&(u=$W(d,f,p,r.options)),Eb(c,l)||(s.prevFromRect=l,s.prevToRect=c,u||(u=r.options.animation),r.animate(s,d,c,u)),u&&(o=!0,i=Math.max(i,u),clearTimeout(s.animationResetTimer),s.animationResetTimer=setTimeout(function(){s.animationTime=0,s.prevFromRect=null,s.fromRect=null,s.prevToRect=null,s.thisAnimationDuration=null},u),s.thisAnimationDuration=u)}),clearTimeout(e),o?e=setTimeout(function(){typeof n=="function"&&n()},i):typeof n=="function"&&n(),t=[]},animate:function(n,r,o,i){if(i){xt(n,"transition",""),xt(n,"transform","");var a=ul(this.el),u=a&&a.a,s=a&&a.d,l=(r.left-o.left)/(u||1),c=(r.top-o.top)/(s||1);n.animatingX=!!l,n.animatingY=!!c,xt(n,"transform","translate3d("+l+"px,"+c+"px,0)"),this.forRepaintDummy=qW(n),xt(n,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),xt(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){xt(n,"transition",""),xt(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},i)}}}}function qW(t){return t.offsetWidth}function $W(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var ll=[],Cb={initializeByDefault:!0},Cf={mount:function(t){for(var e in Cb)Cb.hasOwnProperty(e)&&!(e in t)&&(t[e]=Cb[e]);ll.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),ll.push(t)},pluginEvent:function(t,e,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=t+"Global";ll.forEach(function(i){e[i.pluginName]&&(e[i.pluginName][o]&&e[i.pluginName][o](To({sortable:e},n)),e.options[i.pluginName]&&e[i.pluginName][t]&&e[i.pluginName][t](To({sortable:e},n)))})},initializePlugins:function(t,e,n,r){ll.forEach(function(a){var u=a.pluginName;if(!(!t.options[u]&&!a.initializeByDefault)){var s=new a(t,e,t.options);s.sortable=t,s.options=t.options,t[u]=s,ci(n,s.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var i=this.modifyOption(t,o,t.options[o]);typeof i<"u"&&(t.options[o]=i)}},getEventProperties:function(t,e){var n={};return ll.forEach(function(r){typeof r.eventProperties=="function"&&ci(n,r.eventProperties.call(e[r.pluginName],t))}),n},modifyOption:function(t,e,n){var r;return ll.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[e]=="function"&&(r=o.optionListeners[e].call(t[o.pluginName],n))}),r}};function KW(t){var e=t.sortable,n=t.rootEl,r=t.name,o=t.targetEl,i=t.cloneEl,a=t.toEl,u=t.fromEl,s=t.oldIndex,l=t.newIndex,c=t.oldDraggableIndex,f=t.newDraggableIndex,p=t.originalEvent,d=t.putSortable,y=t.extraEventProperties;if(e=e||n&&n[pr],!!e){var g,v=e.options,m="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!di&&!bf?g=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(r,!0,!0)),g.to=a||n,g.from=u||n,g.item=o||n,g.clone=i,g.oldIndex=s,g.newIndex=l,g.oldDraggableIndex=c,g.newDraggableIndex=f,g.originalEvent=p,g.pullMode=d?d.lastPutMode:void 0;var h=To(To({},y),Cf.getEventProperties(r,e));for(var w in h)g[w]=h[w];n&&n.dispatchEvent(g),v[m]&&v[m].call(e,g)}}var YW=["evt"],Jn=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,o=MW(n,YW);Cf.pluginEvent.bind(St)(t,e,To({dragEl:it,parentEl:Re,ghostEl:Bt,rootEl:_e,nextEl:Au,lastDownEl:kg,cloneEl:Pe,cloneHidden:$i,dragStarted:Sf,putSortable:Dn,activeSortable:St.active,originalEvent:r,oldIndex:cl,oldDraggableIndex:xf,newIndex:hr,newDraggableIndex:Ki,hideGhostForTarget:qA,unhideGhostForTarget:$A,cloneNowHidden:function(){$i=!0},cloneNowShown:function(){$i=!1},dispatchSortableEvent:function(i){Gn({sortable:e,name:i,originalEvent:r})}},o))};function Gn(t){KW(To({putSortable:Dn,cloneEl:Pe,targetEl:it,rootEl:_e,oldIndex:cl,oldDraggableIndex:xf,newIndex:hr,newDraggableIndex:Ki},t))}var it,Re,Bt,_e,Au,kg,Pe,$i,cl,hr,xf,Ki,Bg,Dn,fl=!1,Tg=!1,Fg=[],_u,ao,xb,Sb,VA,zA,Sf,dl,Df,Af=!1,Pg=!1,Ng,Tn,Db=[],Ab=!1,jg=[],Ig=typeof document<"u",Lg=kA,HA=bf||di?"cssFloat":"float",XW=Ig&&!BA&&!kA&&"draggable"in document.createElement("div"),UA=function(){if(Ig){if(di)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),WA=function(t,e){var n=xt(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=sl(t,0,e),i=sl(t,1,e),a=o&&xt(o),u=i&&xt(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Xe(o).width,l=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+Xe(i).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&a.float!=="none"){var c=a.float==="left"?"left":"right";return i&&(u.clear==="both"||u.clear===c)?"vertical":"horizontal"}return o&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||s>=r&&n[HA]==="none"||i&&n[HA]==="none"&&s+l>r)?"vertical":"horizontal"},ZW=function(t,e,n){var r=n?t.left:t.top,o=n?t.right:t.bottom,i=n?t.width:t.height,a=n?e.left:e.top,u=n?e.right:e.bottom,s=n?e.width:e.height;return r===a||o===u||r+i/2===a+s/2},JW=function(t,e){var n;return Fg.some(function(r){var o=r[pr].options.emptyInsertThreshold;if(!(!o||wb(r))){var i=Xe(r),a=t>=i.left-o&&t<=i.right+o,u=e>=i.top-o&&e<=i.bottom+o;if(a&&u)return n=r}}),n},GA=function(t){function e(o,i){return function(a,u,s,l){var c=a.options.group.name&&u.options.group.name&&a.options.group.name===u.options.group.name;if(o==null&&(i||c))return!0;if(o==null||o===!1)return!1;if(i&&o==="clone")return o;if(typeof o=="function")return e(o(a,u,s,l),i)(a,u,s,l);var f=(i?a:u).options.group.name;return o===!0||typeof o=="string"&&o===f||o.join&&o.indexOf(f)>-1}}var n={},r=t.group;(!r||_g(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=e(r.pull,!0),n.checkPut=e(r.put),n.revertClone=r.revertClone,t.group=n},qA=function(){!UA&&Bt&&xt(Bt,"display","none")},$A=function(){!UA&&Bt&&xt(Bt,"display","")};Ig&&!BA&&document.addEventListener("click",function(t){if(Tg)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Tg=!1,!1},!0);var Ou=function(t){if(it){t=t.touches?t.touches[0]:t;var e=JW(t.clientX,t.clientY);if(e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[pr]._onDragOver(n)}}},QW=function(t){it&&it.parentNode[pr]._isOutsideThisEl(t.target)};function St(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=ci({},e),t[pr]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return WA(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:St.supportPointer!==!1&&"PointerEvent"in window&&!wf,emptyInsertThreshold:5};Cf.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);GA(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:XW,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?oe(t,"pointerdown",this._onTapStart):(oe(t,"mousedown",this._onTapStart),oe(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(oe(t,"dragover",this),oe(t,"dragenter",this)),Fg.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),ci(this,GW())}St.prototype={constructor:St,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(dl=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,it):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,r=this.options,o=r.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,u=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||u,l=r.filter;if(uG(n),!it&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||r.disabled)&&!s.isContentEditable&&!(!this.nativeDraggable&&wf&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=io(u,r.draggable,n,!1),!(u&&u.animated)&&kg!==u)){if(cl=jr(u),xf=jr(u,r.draggable),typeof l=="function"){if(l.call(this,t,u,this)){Gn({sortable:e,rootEl:s,name:"filter",targetEl:u,toEl:n,fromEl:n}),Jn("filter",e,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(l&&(l=l.split(",").some(function(c){if(c=io(s,c.trim(),n,!1),c)return Gn({sortable:e,rootEl:c,name:"filter",targetEl:u,fromEl:n,toEl:n}),Jn("filter",e,{evt:t}),!0}),l)){o&&t.cancelable&&t.preventDefault();return}r.handle&&!io(s,r.handle,n,!1)||this._prepareDragStart(t,a,u)}}},_prepareDragStart:function(t,e,n){var r=this,o=r.el,i=r.options,a=o.ownerDocument,u;if(n&&!it&&n.parentNode===o){var s=Xe(n);if(_e=o,it=n,Re=it.parentNode,Au=it.nextSibling,kg=n,Bg=i.group,St.dragged=it,_u={target:it,clientX:(e||t).clientX,clientY:(e||t).clientY},VA=_u.clientX-s.left,zA=_u.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,it.style["will-change"]="all",u=function(){if(Jn("delayEnded",r,{evt:t}),St.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!OA&&r.nativeDraggable&&(it.draggable=!0),r._triggerDragStart(t,e),Gn({sortable:r,name:"choose",originalEvent:t}),dr(it,i.chosenClass,!0)},i.ignore.split(",").forEach(function(l){PA(it,l.trim(),_b)}),oe(a,"dragover",Ou),oe(a,"mousemove",Ou),oe(a,"touchmove",Ou),oe(a,"mouseup",r._onDrop),oe(a,"touchend",r._onDrop),oe(a,"touchcancel",r._onDrop),OA&&this.nativeDraggable&&(this.options.touchStartThreshold=4,it.draggable=!0),Jn("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(bf||di))){if(St.eventCanceled){this._onDrop();return}oe(a,"mouseup",r._disableDelayedDrag),oe(a,"touchend",r._disableDelayedDrag),oe(a,"touchcancel",r._disableDelayedDrag),oe(a,"mousemove",r._delayedDragTouchMoveHandler),oe(a,"touchmove",r._delayedDragTouchMoveHandler),i.supportPointer&&oe(a,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(u,i.delay)}else u()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){it&&_b(it),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;ee(t,"mouseup",this._disableDelayedDrag),ee(t,"touchend",this._disableDelayedDrag),ee(t,"touchcancel",this._disableDelayedDrag),ee(t,"mousemove",this._delayedDragTouchMoveHandler),ee(t,"touchmove",this._delayedDragTouchMoveHandler),ee(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?oe(document,"pointermove",this._onTouchMove):e?oe(document,"touchmove",this._onTouchMove):oe(document,"mousemove",this._onTouchMove):(oe(it,"dragend",this),oe(_e,"dragstart",this._onDragStart));try{document.selection?Mg(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(fl=!1,_e&&it){Jn("dragStarted",this,{evt:e}),this.nativeDraggable&&oe(document,"dragover",QW);var n=this.options;!t&&dr(it,n.dragClass,!1),dr(it,n.ghostClass,!0),St.active=this,t&&this._appendGhost(),Gn({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(ao){this._lastX=ao.clientX,this._lastY=ao.clientY,qA();for(var t=document.elementFromPoint(ao.clientX,ao.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ao.clientX,ao.clientY),t!==e);)e=t;if(it.parentNode[pr]._isOutsideThisEl(t),e)do{if(e[pr]){var n=void 0;if(n=e[pr]._onDragOver({clientX:ao.clientX,clientY:ao.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);$A()}},_onTouchMove:function(t){if(_u){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,i=Bt&&ul(Bt,!0),a=Bt&&i&&i.a,u=Bt&&i&&i.d,s=Lg&&Tn&&jA(Tn),l=(o.clientX-_u.clientX+r.x)/(a||1)+(s?s[0]-Db[0]:0)/(a||1),c=(o.clientY-_u.clientY+r.y)/(u||1)+(s?s[1]-Db[1]:0)/(u||1);if(!St.active&&!fl){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(Bt){i?(i.e+=l-(xb||0),i.f+=c-(Sb||0)):i={a:1,b:0,c:0,d:1,e:l,f:c};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");xt(Bt,"webkitTransform",f),xt(Bt,"mozTransform",f),xt(Bt,"msTransform",f),xt(Bt,"transform",f),xb=l,Sb=c,ao=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Bt){var t=this.options.fallbackOnBody?document.body:_e,e=Xe(it,!0,Lg,!0,t),n=this.options;if(Lg){for(Tn=t;xt(Tn,"position")==="static"&&xt(Tn,"transform")==="none"&&Tn!==document;)Tn=Tn.parentNode;Tn!==document.body&&Tn!==document.documentElement?(Tn===document&&(Tn=Fo()),e.top+=Tn.scrollTop,e.left+=Tn.scrollLeft):Tn=Fo(),Db=jA(Tn)}Bt=it.cloneNode(!0),dr(Bt,n.ghostClass,!1),dr(Bt,n.fallbackClass,!0),dr(Bt,n.dragClass,!0),xt(Bt,"transition",""),xt(Bt,"transform",""),xt(Bt,"box-sizing","border-box"),xt(Bt,"margin",0),xt(Bt,"top",e.top),xt(Bt,"left",e.left),xt(Bt,"width",e.width),xt(Bt,"height",e.height),xt(Bt,"opacity","0.8"),xt(Bt,"position",Lg?"absolute":"fixed"),xt(Bt,"zIndex","100000"),xt(Bt,"pointerEvents","none"),St.ghost=Bt,t.appendChild(Bt),xt(Bt,"transform-origin",VA/parseInt(Bt.style.width)*100+"% "+zA/parseInt(Bt.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,r=t.dataTransfer,o=n.options;if(Jn("dragStart",this,{evt:t}),St.eventCanceled){this._onDrop();return}Jn("setupClone",this),St.eventCanceled||(Pe=RA(it),Pe.removeAttribute("id"),Pe.draggable=!1,Pe.style["will-change"]="",this._hideClone(),dr(Pe,this.options.chosenClass,!1),St.clone=Pe),n.cloneId=Mg(function(){Jn("clone",n),!St.eventCanceled&&(n.options.removeCloneOnHide||_e.insertBefore(Pe,it),n._hideClone(),Gn({sortable:n,name:"clone"}))}),!e&&dr(it,o.dragClass,!0),e?(Tg=!0,n._loopId=setInterval(n._emulateDragOver,50)):(ee(document,"mouseup",n._onDrop),ee(document,"touchend",n._onDrop),ee(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,it)),oe(document,"drop",n),xt(it,"transform","translateZ(0)")),fl=!0,n._dragStartId=Mg(n._dragStarted.bind(n,e,t)),oe(document,"selectstart",n),Sf=!0,wf&&xt(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,n=t.target,r,o,i,a=this.options,u=a.group,s=St.active,l=Bg===u,c=a.sort,f=Dn||s,p,d=this,y=!1;if(Ab)return;function g(J,st){Jn(J,d,To({evt:t,isOwner:l,axis:p?"vertical":"horizontal",revert:i,dragRect:r,targetRect:o,canSort:c,fromSortable:f,target:n,completed:m,onMove:function(lt,ct){return Rg(_e,e,it,r,lt,Xe(lt),t,ct)},changed:h},st))}function v(){g("dragOverAnimationCapture"),d.captureAnimationState(),d!==f&&f.captureAnimationState()}function m(J){return g("dragOverCompleted",{insertion:J}),J&&(l?s._hideClone():s._showClone(d),d!==f&&(dr(it,Dn?Dn.options.ghostClass:s.options.ghostClass,!1),dr(it,a.ghostClass,!0)),Dn!==d&&d!==St.active?Dn=d:d===St.active&&Dn&&(Dn=null),f===d&&(d._ignoreWhileAnimating=n),d.animateAll(function(){g("dragOverAnimationComplete"),d._ignoreWhileAnimating=null}),d!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(n===it&&!it.animated||n===e&&!n.animated)&&(dl=null),!a.dragoverBubble&&!t.rootEl&&n!==document&&(it.parentNode[pr]._isOutsideThisEl(t.target),!J&&Ou(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function h(){hr=jr(it),Ki=jr(it,a.draggable),Gn({sortable:d,name:"change",toEl:e,newIndex:hr,newDraggableIndex:Ki,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=io(n,a.draggable,e,!0),g("dragOver"),St.eventCanceled)return y;if(it.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||d._ignoreWhileAnimating===n)return m(!1);if(Tg=!1,s&&!a.disabled&&(l?c||(i=Re!==_e):Dn===this||(this.lastPutMode=Bg.checkPull(this,s,it,t))&&u.checkPut(this,s,it,t))){if(p=this._getDirection(t,n)==="vertical",r=Xe(it),g("dragOverValid"),St.eventCanceled)return y;if(i)return Re=_e,v(),this._hideClone(),g("revert"),St.eventCanceled||(Au?_e.insertBefore(it,Au):_e.appendChild(it)),m(!0);var w=wb(e,a.draggable);if(!w||rG(t,p,this)&&!w.animated){if(w===it)return m(!1);if(w&&e===t.target&&(n=w),n&&(o=Xe(n)),Rg(_e,e,it,r,n,o,t,!!n)!==!1)return v(),w&&w.nextSibling?e.insertBefore(it,w.nextSibling):e.appendChild(it),Re=e,h(),m(!0)}else if(w&&nG(t,p,this)){var E=sl(e,0,a,!0);if(E===it)return m(!1);if(n=E,o=Xe(n),Rg(_e,e,it,r,n,o,t,!1)!==!1)return v(),e.insertBefore(it,E),Re=e,h(),m(!0)}else if(n.parentNode===e){o=Xe(n);var C=0,D,S=it.parentNode!==e,A=!ZW(it.animated&&it.toRect||r,n.animated&&n.toRect||o,p),k=p?"top":"left",R=NA(n,"top","top")||NA(it,"top","top"),V=R?R.scrollTop:void 0;dl!==n&&(D=o[k],Af=!1,Pg=!A&&a.invertSwap||S),C=oG(t,n,o,p,A?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Pg,dl===n);var L;if(C!==0){var W=jr(it);do W-=C,L=Re.children[W];while(L&&(xt(L,"display")==="none"||L===Bt))}if(C===0||L===n)return m(!1);dl=n,Df=C;var H=n.nextElementSibling,U=!1;U=C===1;var $=Rg(_e,e,it,r,n,o,t,U);if($!==!1)return($===1||$===-1)&&(U=$===1),Ab=!0,setTimeout(eG,30),v(),U&&!H?e.appendChild(it):n.parentNode.insertBefore(it,U?H:n),R&&LA(R,0,V-R.scrollTop),Re=it.parentNode,D!==void 0&&!Pg&&(Ng=Math.abs(D-Xe(n)[k])),h(),m(!0)}if(e.contains(it))return m(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ee(document,"mousemove",this._onTouchMove),ee(document,"touchmove",this._onTouchMove),ee(document,"pointermove",this._onTouchMove),ee(document,"dragover",Ou),ee(document,"mousemove",Ou),ee(document,"touchmove",Ou)},_offUpEvents:function(){var t=this.el.ownerDocument;ee(t,"mouseup",this._onDrop),ee(t,"touchend",this._onDrop),ee(t,"pointerup",this._onDrop),ee(t,"touchcancel",this._onDrop),ee(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;if(hr=jr(it),Ki=jr(it,n.draggable),Jn("drop",this,{evt:t}),Re=it&&it.parentNode,hr=jr(it),Ki=jr(it,n.draggable),St.eventCanceled){this._nulling();return}fl=!1,Pg=!1,Af=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ob(this.cloneId),Ob(this._dragStartId),this.nativeDraggable&&(ee(document,"drop",this),ee(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),wf&&xt(document.body,"user-select",""),xt(it,"transform",""),t&&(Sf&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),Bt&&Bt.parentNode&&Bt.parentNode.removeChild(Bt),(_e===Re||Dn&&Dn.lastPutMode!=="clone")&&Pe&&Pe.parentNode&&Pe.parentNode.removeChild(Pe),it&&(this.nativeDraggable&&ee(it,"dragend",this),_b(it),it.style["will-change"]="",Sf&&!fl&&dr(it,Dn?Dn.options.ghostClass:this.options.ghostClass,!1),dr(it,this.options.chosenClass,!1),Gn({sortable:this,name:"unchoose",toEl:Re,newIndex:null,newDraggableIndex:null,originalEvent:t}),_e!==Re?(hr>=0&&(Gn({rootEl:Re,name:"add",toEl:Re,fromEl:_e,originalEvent:t}),Gn({sortable:this,name:"remove",toEl:Re,originalEvent:t}),Gn({rootEl:Re,name:"sort",toEl:Re,fromEl:_e,originalEvent:t}),Gn({sortable:this,name:"sort",toEl:Re,originalEvent:t})),Dn&&Dn.save()):hr!==cl&&hr>=0&&(Gn({sortable:this,name:"update",toEl:Re,originalEvent:t}),Gn({sortable:this,name:"sort",toEl:Re,originalEvent:t})),St.active&&((hr==null||hr===-1)&&(hr=cl,Ki=xf),Gn({sortable:this,name:"end",toEl:Re,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Jn("nulling",this),_e=it=Re=Bt=Au=Pe=kg=$i=_u=ao=Sf=hr=Ki=cl=xf=dl=Df=Dn=Bg=St.dragged=St.ghost=St.clone=St.active=null,jg.forEach(function(t){t.checked=!0}),jg.length=xb=Sb=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":it&&(this._onDragOver(t),tG(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)e=n[r],io(e,i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||aG(e));return t},sort:function(t,e){var n={},r=this.el;this.toArray().forEach(function(o,i){var a=r.children[i];io(a,this.options.draggable,r,!1)&&(n[o]=a)},this),e&&this.captureAnimationState(),t.forEach(function(o){n[o]&&(r.removeChild(n[o]),r.appendChild(n[o]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return io(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(e===void 0)return n[t];var r=Cf.modifyOption(this,t,e);typeof r<"u"?n[t]=r:n[t]=e,t==="group"&&GA(n)},destroy:function(){Jn("destroy",this);var t=this.el;t[pr]=null,ee(t,"mousedown",this._onTapStart),ee(t,"touchstart",this._onTapStart),ee(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(ee(t,"dragover",this),ee(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Fg.splice(Fg.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!$i){if(Jn("hideClone",this),St.eventCanceled)return;xt(Pe,"display","none"),this.options.removeCloneOnHide&&Pe.parentNode&&Pe.parentNode.removeChild(Pe),$i=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if($i){if(Jn("showClone",this),St.eventCanceled)return;it.parentNode==_e&&!this.options.group.revertClone?_e.insertBefore(Pe,it):Au?_e.insertBefore(Pe,Au):_e.appendChild(Pe),this.options.group.revertClone&&this.animate(it,Pe),xt(Pe,"display",""),$i=!1}}};function tG(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Rg(t,e,n,r,o,i,a,u){var s,l=t[pr],c=l.options.onMove,f;return window.CustomEvent&&!di&&!bf?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=e,s.from=t,s.dragged=n,s.draggedRect=r,s.related=o||e,s.relatedRect=i||Xe(e),s.willInsertAfter=u,s.originalEvent=a,t.dispatchEvent(s),c&&(f=c.call(l,s,a)),f}function _b(t){t.draggable=!1}function eG(){Ab=!1}function nG(t,e,n){var r=Xe(sl(n.el,0,n.options,!0)),o=MA(n.el,n.options,Bt),i=10;return e?t.clientX<o.left-i||t.clientY<r.top&&t.clientX<r.right:t.clientY<o.top-i||t.clientY<r.bottom&&t.clientX<r.left}function rG(t,e,n){var r=Xe(wb(n.el,n.options.draggable)),o=MA(n.el,n.options,Bt),i=10;return e?t.clientX>o.right+i||t.clientY>r.bottom&&t.clientX>r.left:t.clientY>o.bottom+i||t.clientX>r.right&&t.clientY>r.top}function oG(t,e,n,r,o,i,a,u){var s=r?t.clientY:t.clientX,l=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,p=!1;if(!a){if(u&&Ng<l*o){if(!Af&&(Df===1?s>c+l*i/2:s<f-l*i/2)&&(Af=!0),Af)p=!0;else if(Df===1?s<c+Ng:s>f-Ng)return-Df}else if(s>c+l*(1-o)/2&&s<f-l*(1-o)/2)return iG(e)}return p=p||a,p&&(s<c+l*i/2||s>f-l*i/2)?s>c+l/2?1:-1:0}function iG(t){return jr(it)<jr(t)?1:-1}function aG(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function uG(t){jg.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&jg.push(r)}}function Mg(t){return setTimeout(t,0)}function Ob(t){return clearTimeout(t)}Ig&&oe(document,"touchmove",function(t){(St.active||fl)&&t.cancelable&&t.preventDefault()}),St.utils={on:oe,off:ee,css:xt,find:PA,is:function(t,e){return!!io(t,e,t,!1)},extend:UW,throttle:IA,closest:io,toggleClass:dr,clone:RA,index:jr,nextTick:Mg,cancelNextTick:Ob,detectDirection:WA,getChild:sl},St.get=function(t){return t[pr]},St.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(St.utils=To(To({},St.utils),r.utils)),Cf.mount(r)})},St.create=function(t,e){return new St(t,e)},St.version=VW;var Ze=[],_f,kb,Bb=!1,Tb,Fb,Vg,Of;function sG(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(e){var n=e.originalEvent;this.sortable.nativeDraggable?oe(document,"dragover",this._handleAutoScroll):this.options.supportPointer?oe(document,"pointermove",this._handleFallbackAutoScroll):n.touches?oe(document,"touchmove",this._handleFallbackAutoScroll):oe(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var n=e.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?ee(document,"dragover",this._handleAutoScroll):(ee(document,"pointermove",this._handleFallbackAutoScroll),ee(document,"touchmove",this._handleFallbackAutoScroll),ee(document,"mousemove",this._handleFallbackAutoScroll)),KA(),zg(),WW()},nulling:function(){Vg=kb=_f=Bb=Of=Tb=Fb=null,Ze.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,n){var r=this,o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(o,i);if(Vg=e,n||this.options.forceAutoScrollFallback||bf||di||wf){Pb(e,this.options,a,n);var u=qi(a,!0);Bb&&(!Of||o!==Tb||i!==Fb)&&(Of&&KA(),Of=setInterval(function(){var s=qi(document.elementFromPoint(o,i),!0);s!==u&&(u=s,zg()),Pb(e,r.options,s,n)},10),Tb=o,Fb=i)}else{if(!this.options.bubbleScroll||qi(a,!0)===Fo()){zg();return}Pb(e,this.options,qi(a,!1),!1)}}},ci(t,{pluginName:"scroll",initializeByDefault:!0})}function zg(){Ze.forEach(function(t){clearInterval(t.pid)}),Ze=[]}function KA(){clearInterval(Of)}var Pb=IA(function(t,e,n,r){if(e.scroll){var o=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,u=e.scrollSpeed,s=Fo(),l=!1,c;kb!==n&&(kb=n,zg(),_f=e.scroll,c=e.scrollFn,_f===!0&&(_f=qi(n,!0)));var f=0,p=_f;do{var d=p,y=Xe(d),g=y.top,v=y.bottom,m=y.left,h=y.right,w=y.width,E=y.height,C=void 0,D=void 0,S=d.scrollWidth,A=d.scrollHeight,k=xt(d),R=d.scrollLeft,V=d.scrollTop;d===s?(C=w<S&&(k.overflowX==="auto"||k.overflowX==="scroll"||k.overflowX==="visible"),D=E<A&&(k.overflowY==="auto"||k.overflowY==="scroll"||k.overflowY==="visible")):(C=w<S&&(k.overflowX==="auto"||k.overflowX==="scroll"),D=E<A&&(k.overflowY==="auto"||k.overflowY==="scroll"));var L=C&&(Math.abs(h-o)<=a&&R+w<S)-(Math.abs(m-o)<=a&&!!R),W=D&&(Math.abs(v-i)<=a&&V+E<A)-(Math.abs(g-i)<=a&&!!V);if(!Ze[f])for(var H=0;H<=f;H++)Ze[H]||(Ze[H]={});(Ze[f].vx!=L||Ze[f].vy!=W||Ze[f].el!==d)&&(Ze[f].el=d,Ze[f].vx=L,Ze[f].vy=W,clearInterval(Ze[f].pid),(L!=0||W!=0)&&(l=!0,Ze[f].pid=setInterval((function(){r&&this.layer===0&&St.active._onTouchMove(Vg);var U=Ze[this.layer].vy?Ze[this.layer].vy*u:0,$=Ze[this.layer].vx?Ze[this.layer].vx*u:0;typeof c=="function"&&c.call(St.dragged.parentNode[pr],$,U,t,Vg,Ze[this.layer].el)!=="continue"||LA(Ze[this.layer].el,$,U)}).bind({layer:f}),24))),f++}while(e.bubbleScroll&&p!==s&&(p=qi(p,!1)));Bb=l}},30),YA=function(t){var e=t.originalEvent,n=t.putSortable,r=t.dragEl,o=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,u=t.unhideGhostForTarget;if(e){var s=n||o;a();var l=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,c=document.elementFromPoint(l.clientX,l.clientY);u(),s&&!s.el.contains(c)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Nb(){}Nb.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=sl(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:YA},ci(Nb,{pluginName:"revertOnSpill"});function jb(){}jb.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,r=n||this.sortable;r.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),r.animateAll()},drop:YA},ci(jb,{pluginName:"removeOnSpill"}),St.mount(new sG),St.mount(jb,Nb);function lG(t){return t==null?t:JSON.parse(JSON.stringify(t))}function cG(t){b.getCurrentInstance()&&b.onUnmounted(t)}function fG(t){b.getCurrentInstance()?b.onMounted(t):b.nextTick(t)}let XA=null,ZA=null;function JA(t=null,e=null){XA=t,ZA=e}function dG(){return{data:XA,clonedData:ZA}}const QA=Symbol("cloneElement");function pG(...t){var e,n;const r=(e=b.getCurrentInstance())==null?void 0:e.proxy;let o=null;const i=t[0];let[,a,u]=t;Array.isArray(b.unref(a))||(u=a,a=null);let s=null;const{immediate:l=!0,clone:c=lG,customUpdate:f}=(n=b.unref(u))!=null?n:{};function p(A){var k;const{from:R,oldIndex:V,item:L}=A;o=Array.from(R.childNodes);const W=b.unref((k=b.unref(a))==null?void 0:k[V]),H=c(W);JA(W,H),L[QA]=H}function d(A){const k=A.item[QA];if(!kW(k)){if(bb(A.item),b.isRef(a)){const R=[...b.unref(a)];a.value=SA(R,A.newDraggableIndex,k);return}SA(b.unref(a),A.newDraggableIndex,k)}}function y(A){const{from:k,item:R,oldIndex:V,oldDraggableIndex:L,pullMode:W,clone:H}=A;if(DA(k,R,V),W==="clone"){bb(H);return}if(b.isRef(a)){const U=[...b.unref(a)];a.value=xA(U,L);return}xA(b.unref(a),L)}function g(A){if(f){f(A);return}const{from:k,item:R,oldIndex:V,oldDraggableIndex:L,newDraggableIndex:W}=A;if(bb(R),DA(k,R,V),b.isRef(a)){const H=[...b.unref(a)];a.value=CA(H,L,W);return}CA(b.unref(a),L,W)}function v(A){const{newIndex:k,oldIndex:R,from:V,to:L}=A;let W=null;const H=k===R&&V===L;try{if(H){let U=null;o==null||o.some(($,J)=>{if(U&&(o==null?void 0:o.length)!==L.childNodes.length)return V.insertBefore(U,$.nextSibling),!0;const st=L.childNodes[J];U=L==null?void 0:L.replaceChild($,st)})}}catch(U){W=U}finally{o=null}b.nextTick(()=>{if(JA(),W)throw W})}const m={onUpdate:g,onStart:p,onAdd:d,onRemove:y,onEnd:v};function h(A){const k=b.unref(i);return A||(A=BW(k)?TW(k,r==null?void 0:r.$el):k),A&&!NW(A)&&(A=A.$el),A||AW("Root element not found"),A}function w(){var A;const k=(A=b.unref(u))!=null?A:{},R=wA(k,["immediate","clone"]);return AA(R,(V,L)=>{jW(V)&&(R[V]=(W,...H)=>{const U=dG();return IW(W,U),L(W,...H)})}),PW(a===null?{}:m,R)}const E=A=>{A=h(A),s&&C.destroy(),s=new St(A,w())};b.watch(()=>u,()=>{s&&AA(w(),(A,k)=>{s==null||s.option(A,k)})},{deep:!0});const C={option:(A,k)=>s==null?void 0:s.option(A,k),destroy:()=>{s==null||s.destroy(),s=null},save:()=>s==null?void 0:s.save(),toArray:()=>s==null?void 0:s.toArray(),closest:(...A)=>s==null?void 0:s.closest(...A)},D=()=>C==null?void 0:C.option("disabled",!0),S=()=>C==null?void 0:C.option("disabled",!1);return fG(()=>{l&&E()}),cG(C.destroy),al({start:E,pause:D,resume:S},C)}const Ib=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],hG=["clone","animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...Ib.map(t=>`on${t.replace(/^\S/,e=>e.toUpperCase())}`)],gG=b.defineComponent({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:hG,emits:["update:modelValue",...Ib],setup(t,{slots:e,emit:n,expose:r,attrs:o}){const i=Ib.reduce((c,f)=>{const p=`on${f.replace(/^\S/,d=>d.toUpperCase())}`;return c[p]=(...d)=>n(f,...d),c},{}),a=b.computed(()=>{const c=b.toRefs(t),f=wA(c,["modelValue"]),p=Object.entries(f).reduce((d,[y,g])=>{const v=b.unref(g);return v!==void 0&&(d[y]=v),d},{});return al(al({},i),OW(al(al({},o),p)))}),u=b.computed({get:()=>t.modelValue,set:c=>n("update:modelValue",c)}),s=b.ref(),l=b.reactive(pG(t.target||s,u,a));return r(l),()=>{var c;return b.h(t.tag||"div",{ref:s},(c=e==null?void 0:e.default)==null?void 0:c.call(e,l))}}}),vG={class:"editor"},mG={class:"editor-content edit"},yG=["onClick"],bG=["onClick"],wG=["innerHTML","draggable"],EG=b.defineComponent({__name:"Editor",setup(t){const e={Bar:fA,Line:dA,Pie:pA,ReportSelect:vb,RangeTime:mb,ReportTable:hA,ReportText:yb,ReportChart:gA,ReportDescribe:vA},{componentList:n,activeComponents:r,notDraggableList:o,titleComponent:i}=uA.storeToRefs(Nr()),a=Nr(),u=v=>{n.value.forEach((m,h)=>{m.id===v&&(n.value.splice(h,1),a.activeComponents=[])})},s=v=>{a.setActiveComponents(v)},l=()=>b.createVNode("div",null,[b.createTextVNode("未找到对应组件")]),c=v=>v==="h2"||v==="h3"||v==="h4"?oo(e,"ReportText"):v==="bar"||v==="pie"||v==="line"?oo(e,"ReportChart"):v?oo(e,v):b.createVNode(l,null,null),f=v=>{console.log(v,"evt")},p=b.ref(!1),d=()=>{p.value=!0},y=v=>{v.newIndex!==0&&(console.log(v),p.value=!1)},g=b.ref();return(v,m)=>{const h=b.resolveComponent("icon-material-symbols:cancel-outline");return b.openBlock(),b.createElementBlock("div",vG,[b.createElementVNode("div",{class:b.normalizeClass(["editor-content edit flex flex-start",[{active:b.unref(r).id==="filter"}]]),onClick:m[0]||(m[0]=w=>s({id:"filter",type:"filter"}))},[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(b.unref(o),w=>(b.openBlock(),b.createElementBlock("div",{class:"item-input",key:w.id},[w.type==="report-select"||w.type==="range-time"&&b.unref(a).filterForm.range_time?(b.openBlock(),b.createBlock(b.resolveDynamicComponent(b.unref(oo)(e,w.type)),{key:0,value:w},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(w.data),1)]),_:2},1032,["value"])):b.createCommentVNode("",!0)]))),128))],2),b.createElementVNode("div",mG,[b.createVNode(yb,{value:b.unref(i),onClick:m[1]||(m[1]=w=>s(b.unref(i)))},null,8,["value"])]),b.createVNode(b.unref(gG),{ref_key:"el",ref:g,modelValue:b.unref(n),"onUpdate:modelValue":m[2]||(m[2]=w=>b.isRef(n)?n.value=w:null),"on-change":f,animation:150,onStart:d,onEnd:y},{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(b.unref(n),w=>(b.openBlock(),b.createElementBlock("div",{key:w.id,class:b.normalizeClass(["editor-content edit",["editor"+w.type,{active:w.id===b.unref(r).id}]]),onClick:E=>s(w)},[b.createElementVNode("i",{onClick:b.withModifiers(E=>u(w.id),["stop"])},[b.createVNode(h,{class:"color-red"})],8,bG),w.type!=="p"?(b.openBlock(),b.createBlock(b.resolveDynamicComponent(c(w.type)),{key:0,class:b.normalizeClass(["editor"+w.type]),value:w,draggable:p.value},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(w.data),1)]),_:2},1032,["class","value","draggable"])):(b.openBlock(),b.createElementBlock("p",{key:1,innerHTML:w.data,draggable:p.value},null,8,wG))],10,yG))),128))]),_:1},8,["modelValue"])])}}}),CG={class:"label"},xG={class:"flex item-switch"},SG={class:"flex item-switch"},DG={class:"flex item-switch"},t_=b.defineComponent({__name:"SettingTable",setup(t){const e=Nr(),n=b.computed(()=>e.getActiveComponents);return(r,o)=>{const i=b.resolveComponent("el-switch"),a=b.resolveComponent("el-form-item"),u=b.resolveComponent("el-divider");return b.openBlock(),b.createElementBlock("div",null,[b.createVNode(a,{label:"控制列"},{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(n.value.showColumn,(s,l)=>(b.openBlock(),b.createElementBlock("p",{class:"flex item-switch",key:l},[b.createElementVNode("span",CG,b.toDisplayString(s.name),1),b.createVNode(i,{modelValue:n.value.options.showColumn[s.key],"onUpdate:modelValue":c=>n.value.options.showColumn[s.key]=c},null,8,["modelValue","onUpdate:modelValue"])]))),128))]),_:1}),b.createVNode(u),b.createVNode(a,{label:"表格样式"},{default:b.withCtx(()=>[b.createElementVNode("p",xG,[o[3]||(o[3]=b.createElementVNode("span",{class:"label"},"斑马纹",-1)),b.createVNode(i,{modelValue:n.value.options.stripe,"onUpdate:modelValue":o[0]||(o[0]=s=>n.value.options.stripe=s)},null,8,["modelValue"])]),b.createElementVNode("p",SG,[o[4]||(o[4]=b.createElementVNode("span",{class:"label"},"边框",-1)),b.createVNode(i,{modelValue:n.value.options.border,"onUpdate:modelValue":o[1]||(o[1]=s=>n.value.options.border=s)},null,8,["modelValue"])]),b.createElementVNode("p",DG,[o[5]||(o[5]=b.createElementVNode("span",{class:"label"},"表头",-1)),b.createVNode(i,{modelValue:n.value.options.showHeader,"onUpdate:modelValue":o[2]||(o[2]=s=>n.value.options.showHeader=s)},null,8,["modelValue"])])]),_:1})])}}}),AG={key:0},_G=b.defineComponent({__name:"ChartsUniConfig",setup(t){const e=Nr(),n=b.computed(()=>e.activeComponents);function r(o){o?(n.value.options.series[0].radius=["10%","65%"],n.value.options.graphic[0].invisible=!0,n.value.options.graphic[1].invisible=!0):(n.value.options.series[0].radius=["45%","70%"],n.value.options.graphic[0].invisible=!1,n.value.options.graphic[1].invisible=!1)}return b.ref("rgb(46, 145, 255)"),(o,i)=>{const a=b.resolveComponent("el-input"),u=b.resolveComponent("el-form-item"),s=b.resolveComponent("el-switch"),l=b.resolveComponent("el-col"),c=b.resolveComponent("el-color-picker"),f=b.resolveComponent("el-input-number"),p=b.resolveComponent("el-row"),d=b.resolveComponent("el-collapse-item"),y=b.resolveComponent("el-collapse");return n.value.options.title?(b.openBlock(),b.createElementBlock("div",AG,[b.createVNode(u,{label:"标题"},{default:b.withCtx(()=>[b.createVNode(a,{modelValue:n.value.options.title.text,"onUpdate:modelValue":i[0]||(i[0]=g=>n.value.options.title.text=g)},null,8,["modelValue"])]),_:1}),b.createVNode(y,null,{default:b.withCtx(()=>[b.createVNode(d,{title:"标题配置",name:"1"},{default:b.withCtx(()=>[b.createVNode(p,{class:"w-100%"},{default:b.withCtx(()=>[b.createVNode(l,{span:24},{default:b.withCtx(()=>[i[8]||(i[8]=b.createElementVNode("span",{class:"switch-label"},"显示标题",-1)),b.createVNode(s,{modelValue:n.value.options.title.show,"onUpdate:modelValue":i[1]||(i[1]=g=>n.value.options.title.show=g)},null,8,["modelValue"])]),_:1}),b.createVNode(l,{span:12},{default:b.withCtx(()=>[b.createVNode(c,{modelValue:n.value.options.title.textStyle.color,"onUpdate:modelValue":i[2]||(i[2]=g=>n.value.options.title.textStyle.color=g),"show-alpha":""},null,8,["modelValue"]),i[9]||(i[9]=b.createElementVNode("p",{class:"sub-title"},"颜色",-1))]),_:1}),b.createVNode(l,{span:12},{default:b.withCtx(()=>[b.createVNode(f,{modelValue:n.value.options.title.textStyle.fontSize,"onUpdate:modelValue":i[3]||(i[3]=g=>n.value.options.title.textStyle.fontSize=g),"controls-position":"right"},null,8,["modelValue"]),i[10]||(i[10]=b.createElementVNode("p",{class:"sub-title"},"字体大小",-1))]),_:1}),b.createVNode(l,{span:12},{default:b.withCtx(()=>[b.createVNode(f,{modelValue:n.value.options.title.x,"onUpdate:modelValue":i[4]||(i[4]=g=>n.value.options.title.x=g),"controls-position":"right"},null,8,["modelValue"]),i[11]||(i[11]=b.createElementVNode("p",{class:"sub-title"},"横向",-1))]),_:1}),b.createVNode(l,{span:12},{default:b.withCtx(()=>[b.createVNode(f,{modelValue:n.value.options.title.y,"onUpdate:modelValue":i[5]||(i[5]=g=>n.value.options.title.y=g),"controls-position":"right"},null,8,["modelValue"]),i[12]||(i[12]=b.createElementVNode("p",{class:"sub-title"},"纵向",-1))]),_:1})]),_:1})]),_:1}),b.createVNode(d,{title:"图形配置",name:"2"},{default:b.withCtx(()=>[n.value.options.color&&n.value.options.color.length&&n.value.type==="pie"?(b.openBlock(),b.createBlock(p,{key:0},{default:b.withCtx(()=>[b.createVNode(l,{span:24},{default:b.withCtx(()=>[i[13]||(i[13]=b.createElementVNode("span",{class:"switch-label"},"玫瑰图",-1)),b.createVNode(s,{onChange:r,modelValue:n.value.options.series[0].roseType,"onUpdate:modelValue":i[6]||(i[6]=g=>n.value.options.series[0].roseType=g)},null,8,["modelValue"])]),_:1})]),_:1})):b.createCommentVNode("",!0)]),_:1}),b.createVNode(d,{title:"图例配置",name:"3"},{default:b.withCtx(()=>[b.createVNode(p,null,{default:b.withCtx(()=>[b.createVNode(l,{span:24},{default:b.withCtx(()=>[i[14]||(i[14]=b.createElementVNode("span",{class:"switch-label"},"显示图例",-1)),n.value.options.legend?(b.openBlock(),b.createBlock(s,{key:0,modelValue:n.value.options.legend.show,"onUpdate:modelValue":i[7]||(i[7]=g=>n.value.options.legend.show=g)},null,8,["modelValue"])):b.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1})])):b.createCommentVNode("",!0)}}}),MEt="",OG=Dg(_G,[["__scopeId","data-v-e9859d3b"]]),e_=b.defineComponent({__name:"SettingDescribe",setup(t){const e=Nr(),n=b.computed(()=>e.getActiveComponents);return(r,o)=>{const i=b.resolveComponent("el-input"),a=b.resolveComponent("el-form-item"),u=b.resolveComponent("el-switch"),s=b.resolveComponent("el-input-number"),l=b.resolveComponent("el-radio"),c=b.resolveComponent("el-radio-group");return b.openBlock(),b.createElementBlock("div",null,[b.createVNode(a,{label:"标题"},{default:b.withCtx(()=>[b.createVNode(i,{modelValue:n.value.options.title,"onUpdate:modelValue":o[0]||(o[0]=f=>n.value.options.title=f)},null,8,["modelValue"])]),_:1}),b.createVNode(a,{label:"边框"},{default:b.withCtx(()=>[b.createVNode(u,{modelValue:n.value.options.border,"onUpdate:modelValue":o[1]||(o[1]=f=>n.value.options.border=f)},null,8,["modelValue"])]),_:1}),b.createVNode(a,{label:"每行展示数量"},{default:b.withCtx(()=>[b.createVNode(s,{modelValue:n.value.options.column,"onUpdate:modelValue":o[2]||(o[2]=f=>n.value.options.column=f),min:1,max:10,controls:!1},null,8,["modelValue"])]),_:1}),b.createVNode(a,{label:"排列方向"},{default:b.withCtx(()=>[b.createVNode(c,{modelValue:n.value.options.direction,"onUpdate:modelValue":o[3]||(o[3]=f=>n.value.options.direction=f)},{default:b.withCtx(()=>[b.createVNode(l,{value:"horizontal"},{default:b.withCtx(()=>o[4]||(o[4]=[b.createTextVNode("横向")])),_:1}),b.createVNode(l,{value:"vertical"},{default:b.withCtx(()=>o[5]||(o[5]=[b.createTextVNode("纵向")])),_:1})]),_:1},8,["modelValue"])]),_:1})])}}}),kG=b.defineComponent({__name:"SettingCharts",setup(t){const e=Nr(),n=b.ref(!1),r=b.computed(()=>e.getActiveComponents),o=[{value:"report-describe",name:"描述列表"},{value:"report-table",name:"表格"},{value:"line",name:"趋势图"},{value:"pie",name:"扇形图"},{value:"bar",name:"柱状图"}],i=b.ref(""),a=b.ref();async function u(c){const f=await sA({prod_type:e.prodType,chart_type:c,filter_uuid:e.filterForm.filter_uuid});a.value=f.data}function s(c){let f=a.value.find(d=>d.rp_item_uuid===c);const p=f.rp_item_content;if(f.rp_item_content.type,p.type==="report-table"){const d={};p.showColumn.forEach(y=>{d[y.key]=!0}),p.options={...p.options,showColumn:d,border:!0,showHeader:!0,stripe:!1}}p.type==="report-describe"&&(p.options={...p.options,title:"",border:!0,column:1,direction:"horizontal",...r.value.options}),Object.assign(e.activeComponents,p),e.activeComponents.rp_item_uuid=f.rp_item_uuid}b.onMounted(async()=>{i.value=r.value.type,await u(i.value)});async function l(c){try{n.value=!0,await u(c),Object.assign(e.activeComponents,iW(c)),n.value=!1}catch{n.value=!1}}return b.watch(()=>r.value,c=>{console.log(c,"activeComponents"),~["bar","pie","line","report-table","report-describe"].indexOf(c.type)&&(i.value=r.value.type,u(i.value))}),(c,f)=>{const p=b.resolveComponent("el-option"),d=b.resolveComponent("el-select"),y=b.resolveComponent("el-form-item"),g=b.resolveComponent("el-form"),v=b.resolveDirective("loading");return b.withDirectives((b.openBlock(),b.createElementBlock("div",null,[b.createVNode(g,{"label-position":"top"},{default:b.withCtx(()=>[b.createVNode(y,{label:"图表类型"},{default:b.withCtx(()=>[b.createVNode(d,{style:{width:"100%"},modelValue:i.value,"onUpdate:modelValue":f[0]||(f[0]=m=>i.value=m),onChange:l},{default:b.withCtx(()=>[(b.openBlock(),b.createElementBlock(b.Fragment,null,b.renderList(o,(m,h)=>b.createVNode(p,{key:h,label:m.name,value:m.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),b.createVNode(y,{label:"组件库"},{default:b.withCtx(()=>[b.createVNode(d,{style:{width:"100%"},modelValue:b.unref(e).activeComponents.rp_item_uuid,"onUpdate:modelValue":f[1]||(f[1]=m=>b.unref(e).activeComponents.rp_item_uuid=m),onChange:s},{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(a.value,(m,h)=>(b.openBlock(),b.createBlock(p,{key:h,label:m.rp_item_name,value:m.rp_item_uuid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.value==="report-table"&&r.value.options.showColumn?(b.openBlock(),b.createBlock(t_,{key:0})):b.createCommentVNode("",!0),i.value==="pie"||i.value==="bar"||i.value==="line"?(b.openBlock(),b.createBlock(OG,{key:1})):b.createCommentVNode("",!0),i.value==="report-describe"?(b.openBlock(),b.createBlock(e_,{key:2})):b.createCommentVNode("",!0)]),_:1})])),[[v,n.value]])}}}),VEt="";var he=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function BG(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ku(t){var e={exports:{}};return t(e,e.exports),e.exports}var Yi,Hg,Ug=function(t){return t&&t.Math==Math&&t},Tt=Ug(typeof globalThis=="object"&&globalThis)||Ug(typeof window=="object"&&window)||Ug(typeof self=="object"&&self)||Ug(typeof he=="object"&&he)||function(){return this}()||Function("return this")(),Lb=Function.prototype,n_=Lb.apply,TG=Lb.bind,r_=Lb.call,o_=typeof Reflect=="object"&&Reflect.apply||(TG?r_.bind(n_):function(){return r_.apply(n_,arguments)}),i_=Function.prototype,Rb=i_.bind,Mb=i_.call,FG=Rb&&Rb.bind(Mb),we=Rb?function(t){return t&&FG(Mb,t)}:function(t){return t&&function(){return Mb.apply(t,arguments)}},vn=function(t){return typeof t=="function"},Qn=function(t){try{return!!t()}catch{return!0}},tr=!Qn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),kf=Function.prototype.call,er=kf.bind?kf.bind(kf):function(){return kf.apply(kf,arguments)},a_={}.propertyIsEnumerable,u_=Object.getOwnPropertyDescriptor,PG=u_&&!a_.call({1:2},1)?function(t){var e=u_(this,t);return!!e&&e.enumerable}:a_,Vb={f:PG},uo=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},NG=we({}.toString),jG=we("".slice),Bu=function(t){return jG(NG(t),8,-1)},zb=Tt.Object,IG=we("".split),s_=Qn(function(){return!zb("z").propertyIsEnumerable(0)})?function(t){return Bu(t)=="String"?IG(t,""):zb(t)}:zb,LG=Tt.TypeError,Hb=function(t){if(t==null)throw LG("Can't call method on "+t);return t},Po=function(t){return s_(Hb(t))},gr=function(t){return typeof t=="object"?t!==null:vn(t)},vr={},l_=function(t){return vn(t)?t:void 0},pl=function(t,e){return arguments.length<2?l_(vr[t])||l_(Tt[t]):vr[t]&&vr[t][e]||Tt[t]&&Tt[t][e]},Bf=we({}.isPrototypeOf),Ub=pl("navigator","userAgent")||"",c_=Tt.process,f_=Tt.Deno,d_=c_&&c_.versions||f_&&f_.version,p_=d_&&d_.v8;p_&&(Hg=(Yi=p_.split("."))[0]>0&&Yi[0]<4?1:+(Yi[0]+Yi[1])),!Hg&&Ub&&(!(Yi=Ub.match(/Edge\/(\d+)/))||Yi[1]>=74)&&(Yi=Ub.match(/Chrome\/(\d+)/))&&(Hg=+Yi[1]);var Wg,Gg=Hg,No=!!Object.getOwnPropertySymbols&&!Qn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Gg&&Gg<41}),Wb=No&&!Symbol.sham&&typeof Symbol.iterator=="symbol",RG=Tt.Object,hl=Wb?function(t){return typeof t=="symbol"}:function(t){var e=pl("Symbol");return vn(e)&&Bf(e.prototype,RG(t))},MG=Tt.String,Gb=function(t){try{return MG(t)}catch{return"Object"}},VG=Tt.TypeError,qb=function(t){if(vn(t))return t;throw VG(Gb(t)+" is not a function")},qg=function(t,e){var n=t[e];return n==null?void 0:qb(n)},zG=Tt.TypeError,HG=Object.defineProperty,Xi=Tt["__core-js_shared__"]||function(t,e){try{HG(Tt,t,{value:e,configurable:!0,writable:!0})}catch{Tt[t]=e}return e}("__core-js_shared__",{}),Tu=ku(function(t){(t.exports=function(e,n){return Xi[e]||(Xi[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),UG=Tt.Object,Tf=function(t){return UG(Hb(t))},WG=we({}.hasOwnProperty),qt=Object.hasOwn||function(t,e){return WG(Tf(t),e)},GG=0,qG=Math.random(),$G=we(1 .toString),$g=function(t){return"Symbol("+(t===void 0?"":t)+")_"+$G(++GG+qG,36)},Ff=Tu("wks"),Fu=Tt.Symbol,h_=Fu&&Fu.for,KG=Wb?Fu:Fu&&Fu.withoutSetter||$g,Fn=function(t){if(!qt(Ff,t)||!No&&typeof Ff[t]!="string"){var e="Symbol."+t;No&&qt(Fu,t)?Ff[t]=Fu[t]:Ff[t]=Wb&&h_?h_(e):KG(e)}return Ff[t]},YG=Tt.TypeError,XG=Fn("toPrimitive"),ZG=function(t,e){if(!gr(t)||hl(t))return t;var n,r=qg(t,XG);if(r){if(e===void 0&&(e="default"),n=er(r,t,e),!gr(n)||hl(n))return n;throw YG("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&vn(a=o.toString)&&!gr(u=er(a,o))||vn(a=o.valueOf)&&!gr(u=er(a,o))||i!=="string"&&vn(a=o.toString)&&!gr(u=er(a,o)))return u;throw zG("Can't convert object to primitive value")}(t,e)},gl=function(t){var e=ZG(t,"string");return hl(e)?e:e+""},$b=Tt.document,JG=gr($b)&&gr($b.createElement),g_=function(t){return JG?$b.createElement(t):{}},v_=!tr&&!Qn(function(){return Object.defineProperty(g_("div"),"a",{get:function(){return 7}}).a!=7}),m_=Object.getOwnPropertyDescriptor,QG=tr?m_:function(t,e){if(t=Po(t),e=gl(e),v_)try{return m_(t,e)}catch{}if(qt(t,e))return uo(!er(Vb.f,t,e),t[e])},Kg={f:QG},tq=/#|\.prototype\./,Pf=function(t,e){var n=nq[eq(t)];return n==oq||n!=rq&&(vn(e)?Qn(e):!!e)},eq=Pf.normalize=function(t){return String(t).replace(tq,".").toLowerCase()},nq=Pf.data={},rq=Pf.NATIVE="N",oq=Pf.POLYFILL="P",iq=Pf,y_=we(we.bind),Kb=function(t,e){return qb(t),e===void 0?t:y_?y_(t,e):function(){return t.apply(e,arguments)}},aq=Tt.String,uq=Tt.TypeError,mr=function(t){if(gr(t))return t;throw uq(aq(t)+" is not an object")},sq=Tt.TypeError,b_=Object.defineProperty,lq=tr?b_:function(t,e,n){if(mr(t),e=gl(e),mr(n),v_)try{return b_(t,e,n)}catch{}if("get"in n||"set"in n)throw sq("Accessors not supported");return"value"in n&&(t[e]=n.value),t},Zi={f:lq},qn=tr?function(t,e,n){return Zi.f(t,e,uo(1,n))}:function(t,e,n){return t[e]=n,t},cq=Kg.f,fq=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return o_(t,this,arguments)};return e.prototype=t.prototype,e},pi=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,y=f?Tt:p?Tt[c]:(Tt[c]||{}).prototype,g=f?vr:vr[c]||qn(vr,c,{})[c],v=g.prototype;for(o in e)n=!iq(f?o:c+(p?".":"#")+o,t.forced)&&y&&qt(y,o),a=g[o],n&&(u=t.noTargetGet?(l=cq(y,o))&&l.value:y[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?Kb(i,Tt):t.wrap&&n?fq(i):d&&vn(i)?we(i):i,(t.sham||i&&i.sham||a&&a.sham)&&qn(s,"sham",!0),qn(g,o,s),d&&(qt(vr,r=c+"Prototype")||qn(vr,r,{}),qn(vr[r],o,i),t.real&&v&&!v[o]&&qn(v,o,i)))},w_=Tu("keys"),Yg=function(t){return w_[t]||(w_[t]=$g(t))},dq=!Qn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),E_=Yg("IE_PROTO"),Yb=Tt.Object,pq=Yb.prototype,Xg=dq?Yb.getPrototypeOf:function(t){var e=Tf(t);if(qt(e,E_))return e[E_];var n=e.constructor;return vn(n)&&e instanceof n?n.prototype:e instanceof Yb?pq:null},hq=Tt.String,gq=Tt.TypeError,Zg=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=we(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return mr(r),function(i){if(typeof i=="object"||vn(i))return i;throw gq("Can't set "+hq(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),vq=Math.ceil,mq=Math.floor,Xb=function(t){var e=+t;return e!=e||e===0?0:(e>0?mq:vq)(e)},yq=Math.max,bq=Math.min,Zb=function(t,e){var n=Xb(t);return n<0?yq(n+e,0):bq(n,e)},wq=Math.min,Nf=function(t){return(e=t.length)>0?wq(Xb(e),9007199254740991):0;var e},C_=function(t){return function(e,n,r){var o,i=Po(e),a=Nf(i),u=Zb(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Eq={includes:C_(!0),indexOf:C_(!1)},jf={},Cq=Eq.indexOf,x_=we([].push),S_=function(t,e){var n,r=Po(t),o=0,i=[];for(n in r)!qt(jf,n)&&qt(r,n)&&x_(i,n);for(;e.length>o;)qt(r,n=e[o++])&&(~Cq(i,n)||x_(i,n));return i},Jg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xq=Jg.concat("length","prototype"),Sq=Object.getOwnPropertyNames||function(t){return S_(t,xq)},Jb={f:Sq},Qg={f:Object.getOwnPropertySymbols},Dq=we([].concat),Aq=pl("Reflect","ownKeys")||function(t){var e=Jb.f(mr(t)),n=Qg.f;return n?Dq(e,n(t)):e},Qb=Object.keys||function(t){return S_(t,Jg)},_q=tr?Object.defineProperties:function(t,e){mr(t);for(var n,r=Po(e),o=Qb(e),i=o.length,a=0;i>a;)Zi.f(t,n=o[a++],r[n]);return t},Oq=pl("document","documentElement"),D_=Yg("IE_PROTO"),t2=function(){},A_=function(t){return"<script>"+t+"<\/script>"},__=function(t){t.write(A_("")),t.close();var e=t.parentWindow.Object;return t=null,e},t0=function(){try{Wg=new ActiveXObject("htmlfile")}catch{}var t,e;t0=typeof document<"u"?document.domain&&Wg?__(Wg):((e=g_("iframe")).style.display="none",Oq.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(A_("document.F=Object")),t.close(),t.F):__(Wg);for(var n=Jg.length;n--;)delete t0.prototype[Jg[n]];return t0()};jf[D_]=!0;var hi=Object.create||function(t,e){var n;return t!==null?(t2.prototype=mr(t),n=new t2,t2.prototype=null,n[D_]=t):n=t0(),e===void 0?n:_q(n,e)},e2=function(t,e,n){var r=gl(e);r in t?Zi.f(t,r,uo(0,n)):t[r]=n},kq=Tt.Array,Bq=Math.max,O_=function(t,e,n){for(var r=Nf(t),o=Zb(e,r),i=Zb(n===void 0?r:n,r),a=kq(Bq(i-o,0)),u=0;o<i;o++,u++)e2(a,u,t[o]);return a.length=u,a},Tq=we("".replace),Fq=we("".split),Pq=we([].join),n2=String(Error("zxcasd").stack),k_=/\n\s*at [^:]*:[^\n]*/,Nq=k_.test(n2),jq=/@[^\n]*\n/.test(n2)&&!/zxcasd/.test(n2),Iq=function(t,e){if(typeof t!="string")return t;if(Nq)for(;e--;)t=Tq(t,k_,"");else if(jq)return Pq(O_(Fq(t,`
|
|
8
|
-
`),e),`
|
|
9
|
-
`);return t},Lq=function(t,e){gr(e)&&"cause"in e&&qn(t,"cause",e.cause)},gi={},Rq=Fn("iterator"),Mq=Array.prototype,B_={};B_[Fn("toStringTag")]="z";var r2=String(B_)==="[object z]",Vq=Fn("toStringTag"),zq=Tt.Object,Hq=Bu(function(){return arguments}())=="Arguments",If=r2?Bu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=zq(t),Vq))=="string"?n:Hq?Bu(e):(r=Bu(e))=="Object"&&vn(e.callee)?"Arguments":r},Uq=Fn("iterator"),T_=function(t){if(t!=null)return qg(t,Uq)||qg(t,"@@iterator")||gi[If(t)]},Wq=Tt.TypeError,F_=function(t,e,n){var r,o;mr(t);try{if(!(r=qg(t,"return"))){if(e==="throw")throw n;return n}r=er(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return mr(r),n},Gq=Tt.TypeError,e0=function(t,e){this.stopped=t,this.result=e},P_=e0.prototype,qq=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),y=Kb(e,c),g=function(m){return r&&F_(r,"normal",m),new e0(!0,m)},v=function(m){return f?(mr(m),d?y(m[0],m[1],g):y(m[0],m[1])):d?y(m,g):y(m)};if(p)r=t;else{if(!(o=T_(t)))throw Gq(Gb(t)+" is not iterable");if(function(m){return m!==void 0&&(gi.Array===m||Mq[Rq]===m)}(o)){for(i=0,a=Nf(t);a>i;i++)if((u=v(t[i]))&&Bf(P_,u))return u;return new e0(!1)}r=function(m,h){var w=arguments.length<2?T_(m):h;if(qb(w))return mr(er(w,m));throw Wq(Gb(m)+" is not iterable")}(t,o)}for(s=r.next;!(l=er(s,r)).done;){try{u=v(l.value)}catch(m){F_(r,"throw",m)}if(typeof u=="object"&&u&&Bf(P_,u))return u}return new e0(!1)},$q=Tt.String,Lf=function(t){if(If(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $q(t)},Kq=function(t,e){return t===void 0?arguments.length<2?"":e:Lf(t)},Yq=!Qn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",uo(1,7)),t.stack!==7)}),Xq=Fn("toStringTag"),n0=Tt.Error,Zq=[].push,Rf=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Bf(o2,this);Zg?n=Zg(new n0(void 0),o?Xg(this):o2):(n=o?this:hi(o2),qn(n,Xq,"Error")),qn(n,"message",Kq(e,"")),Yq&&qn(n,"stack",Iq(n.stack,1)),Lq(n,r);var i=[];return qq(t,Zq,{that:i}),qn(n,"errors",i),n};Zg?Zg(Rf,n0):function(t,e){for(var n=Aq(e),r=Zi.f,o=Kg.f,i=0;i<n.length;i++){var a=n[i];qt(t,a)||r(t,a,o(e,a))}}(Rf,n0);var o2=Rf.prototype=hi(n0.prototype,{constructor:uo(1,Rf),message:uo(1,""),name:uo(1,"AggregateError")});pi({global:!0},{AggregateError:Rf});var Jq=we(Function.toString);vn(Xi.inspectSource)||(Xi.inspectSource=function(t){return Jq(t)});var r0,Mf,o0,N_=Xi.inspectSource,j_=Tt.WeakMap,Qq=vn(j_)&&/native code/.test(N_(j_)),i2=Tt.TypeError,t$=Tt.WeakMap;if(Qq||Xi.state){var Pu=Xi.state||(Xi.state=new t$),e$=we(Pu.get),I_=we(Pu.has),n$=we(Pu.set);r0=function(t,e){if(I_(Pu,t))throw new i2("Object already initialized");return e.facade=t,n$(Pu,t,e),e},Mf=function(t){return e$(Pu,t)||{}},o0=function(t){return I_(Pu,t)}}else{var vl=Yg("state");jf[vl]=!0,r0=function(t,e){if(qt(t,vl))throw new i2("Object already initialized");return e.facade=t,qn(t,vl,e),e},Mf=function(t){return qt(t,vl)?t[vl]:{}},o0=function(t){return qt(t,vl)}}var Ji,L_,R_,ml={set:r0,get:Mf,has:o0,enforce:function(t){return o0(t)?Mf(t):r0(t,{})},getterFor:function(t){return function(e){var n;if(!gr(e)||(n=Mf(e)).type!==t)throw i2("Incompatible receiver, "+t+" required");return n}}},M_=Function.prototype,r$=tr&&Object.getOwnPropertyDescriptor,a2=qt(M_,"name"),o$={EXISTS:a2,PROPER:a2&&(function(){}).name==="something",CONFIGURABLE:a2&&(!tr||tr&&r$(M_,"name").configurable)},yl=function(t,e,n,r){r&&r.enumerable?t[e]=n:qn(t,e,n)},u2=Fn("iterator"),V_=!1;[].keys&&("next"in(R_=[].keys())?(L_=Xg(Xg(R_)))!==Object.prototype&&(Ji=L_):V_=!0);var i$=Ji==null||Qn(function(){var t={};return Ji[u2].call(t)!==t});Ji=i$?{}:hi(Ji),vn(Ji[u2])||yl(Ji,u2,function(){return this});var z_={IteratorPrototype:Ji,BUGGY_SAFARI_ITERATORS:V_},a$=r2?{}.toString:function(){return"[object "+If(this)+"]"},u$=Zi.f,H_=Fn("toStringTag"),i0=function(t,e,n,r){if(t){var o=n?t:t.prototype;qt(o,H_)||u$(o,H_,{configurable:!0,value:e}),r&&!r2&&qn(o,"toString",a$)}},s$=z_.IteratorPrototype,l$=function(){return this},c$=o$.PROPER,a0=z_.BUGGY_SAFARI_ITERATORS,s2=Fn("iterator"),f$=function(){return this},U_=function(t,e,n,r,o,i,a){(function(m,h,w,E){var C=h+" Iterator";m.prototype=hi(s$,{next:uo(+!E,w)}),i0(m,C,!1,!0),gi[C]=l$})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!a0&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[s2]||d["@@iterator"]||o&&d[o],g=!a0&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=Xg(v.call(new t)))!==Object.prototype&&u.next&&(i0(u,f,!0,!0),gi[f]=f$),c$&&o=="values"&&y&&y.name!=="values"&&(p=!0,g=function(){return er(y,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(a0||p||!(l in d))&&yl(d,l,s[l]);else pi({target:e,proto:!0,forced:a0||p},s);return a&&d[s2]!==g&&yl(d,s2,g,{name:o}),gi[e]=g,s},d$=ml.set,p$=ml.getterFor("Array Iterator");U_(Array,"Array",function(t,e){d$(this,{type:"Array Iterator",target:Po(t),index:0,kind:e})},function(){var t=p$(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),gi.Arguments=gi.Array;var h$=we("".charAt),W_=we("".charCodeAt),g$=we("".slice),G_=function(t){return function(e,n){var r,o,i=Lf(Hb(e)),a=Xb(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=W_(i,a))<55296||r>56319||a+1===u||(o=W_(i,a+1))<56320||o>57343?t?h$(i,a):r:t?g$(i,a,a+2):o-56320+(r-55296<<10)+65536}},v$={codeAt:G_(!1),charAt:G_(!0)}.charAt,m$=ml.set,y$=ml.getterFor("String Iterator");U_(String,"String",function(t){m$(this,{type:"String Iterator",string:Lf(t),index:0})},function(){var t,e=y$(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=v$(n,r),e.index+=t.length,{value:t,done:!1})});var b$=vr.AggregateError,q_=Fn("toStringTag");for(var l2 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 $_=Tt[l2],c2=$_&&$_.prototype;c2&&If(c2)!==q_&&qn(c2,q_,l2),gi[l2]=gi.Array}var Qi,u0,w$=b$,s0=function(t){return t&&t.Math==Math&&t},Dt=s0(typeof globalThis=="object"&&globalThis)||s0(typeof window=="object"&&window)||s0(typeof self=="object"&&self)||s0(typeof he=="object"&&he)||function(){return this}()||Function("return this")(),mn=function(t){try{return!!t()}catch{return!0}},jo=!mn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Vf=Function.prototype.call,yn=Vf.bind?Vf.bind(Vf):function(){return Vf.apply(Vf,arguments)},K_={}.propertyIsEnumerable,Y_=Object.getOwnPropertyDescriptor,E$=Y_&&!K_.call({1:2},1)?function(t){var e=Y_(this,t);return!!e&&e.enumerable}:K_,C$={f:E$},ta=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},X_=Function.prototype,f2=X_.bind,d2=X_.call,x$=f2&&f2.bind(d2),de=f2?function(t){return t&&x$(d2,t)}:function(t){return t&&function(){return d2.apply(t,arguments)}},S$=de({}.toString),D$=de("".slice),Nu=function(t){return D$(S$(t),8,-1)},p2=Dt.Object,A$=de("".split),Z_=mn(function(){return!p2("z").propertyIsEnumerable(0)})?function(t){return Nu(t)=="String"?A$(t,""):p2(t)}:p2,_$=Dt.TypeError,l0=function(t){if(t==null)throw _$("Can't call method on "+t);return t},bl=function(t){return Z_(l0(t))},Je=function(t){return typeof t=="function"},so=function(t){return typeof t=="object"?t!==null:Je(t)},O$=function(t){return Je(t)?t:void 0},zf=function(t,e){return arguments.length<2?O$(Dt[t]):Dt[t]&&Dt[t][e]},c0=de({}.isPrototypeOf),h2=zf("navigator","userAgent")||"",J_=Dt.process,Q_=Dt.Deno,t9=J_&&J_.versions||Q_&&Q_.version,e9=t9&&t9.v8;e9&&(u0=(Qi=e9.split("."))[0]>0&&Qi[0]<4?1:+(Qi[0]+Qi[1])),!u0&&h2&&(!(Qi=h2.match(/Edge\/(\d+)/))||Qi[1]>=74)&&(Qi=h2.match(/Chrome\/(\d+)/))&&(u0=+Qi[1]);var n9=u0,g2=!!Object.getOwnPropertySymbols&&!mn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n9&&n9<41}),v2=g2&&!Symbol.sham&&typeof Symbol.iterator=="symbol",k$=Dt.Object,m2=v2?function(t){return typeof t=="symbol"}:function(t){var e=zf("Symbol");return Je(e)&&c0(e.prototype,k$(t))},B$=Dt.String,y2=function(t){try{return B$(t)}catch{return"Object"}},T$=Dt.TypeError,b2=function(t){if(Je(t))return t;throw T$(y2(t)+" is not a function")},Hf=function(t,e){var n=t[e];return n==null?void 0:b2(n)},F$=Dt.TypeError,P$=Object.defineProperty,w2=function(t,e){try{P$(Dt,t,{value:e,configurable:!0,writable:!0})}catch{Dt[t]=e}return e},ea=Dt["__core-js_shared__"]||w2("__core-js_shared__",{}),E2=ku(function(t){(t.exports=function(e,n){return ea[e]||(ea[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),N$=Dt.Object,C2=function(t){return N$(l0(t))},j$=de({}.hasOwnProperty),nr=Object.hasOwn||function(t,e){return j$(C2(t),e)},I$=0,L$=Math.random(),R$=de(1 .toString),r9=function(t){return"Symbol("+(t===void 0?"":t)+")_"+R$(++I$+L$,36)},Uf=E2("wks"),ju=Dt.Symbol,o9=ju&&ju.for,M$=v2?ju:ju&&ju.withoutSetter||r9,$n=function(t){if(!nr(Uf,t)||!g2&&typeof Uf[t]!="string"){var e="Symbol."+t;g2&&nr(ju,t)?Uf[t]=ju[t]:Uf[t]=v2&&o9?o9(e):M$(e)}return Uf[t]},V$=Dt.TypeError,z$=$n("toPrimitive"),H$=function(t,e){if(!so(t)||m2(t))return t;var n,r=Hf(t,z$);if(r){if(e===void 0&&(e="default"),n=yn(r,t,e),!so(n)||m2(n))return n;throw V$("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&Je(a=o.toString)&&!so(u=yn(a,o))||Je(a=o.valueOf)&&!so(u=yn(a,o))||i!=="string"&&Je(a=o.toString)&&!so(u=yn(a,o)))return u;throw F$("Can't convert object to primitive value")}(t,e)},x2=function(t){var e=H$(t,"string");return m2(e)?e:e+""},S2=Dt.document,U$=so(S2)&&so(S2.createElement),D2=function(t){return U$?S2.createElement(t):{}},i9=!jo&&!mn(function(){return Object.defineProperty(D2("div"),"a",{get:function(){return 7}}).a!=7}),a9=Object.getOwnPropertyDescriptor,W$=jo?a9:function(t,e){if(t=bl(t),e=x2(e),i9)try{return a9(t,e)}catch{}if(nr(t,e))return ta(!yn(C$.f,t,e),t[e])},A2={f:W$},G$=Dt.String,q$=Dt.TypeError,yr=function(t){if(so(t))return t;throw q$(G$(t)+" is not an object")},$$=Dt.TypeError,u9=Object.defineProperty,K$=jo?u9:function(t,e,n){if(yr(t),e=x2(e),yr(n),i9)try{return u9(t,e,n)}catch{}if("get"in n||"set"in n)throw $$("Accessors not supported");return"value"in n&&(t[e]=n.value),t},wl={f:K$},Kn=jo?function(t,e,n){return wl.f(t,e,ta(1,n))}:function(t,e,n){return t[e]=n,t},Y$=de(Function.toString);Je(ea.inspectSource)||(ea.inspectSource=function(t){return Y$(t)});var f0,Wf,d0,_2=ea.inspectSource,s9=Dt.WeakMap,X$=Je(s9)&&/native code/.test(_2(s9)),l9=E2("keys"),O2=function(t){return l9[t]||(l9[t]=r9(t))},k2={},B2=Dt.TypeError,Z$=Dt.WeakMap;if(X$||ea.state){var Iu=ea.state||(ea.state=new Z$),J$=de(Iu.get),c9=de(Iu.has),Q$=de(Iu.set);f0=function(t,e){if(c9(Iu,t))throw new B2("Object already initialized");return e.facade=t,Q$(Iu,t,e),e},Wf=function(t){return J$(Iu,t)||{}},d0=function(t){return c9(Iu,t)}}else{var El=O2("state");k2[El]=!0,f0=function(t,e){if(nr(t,El))throw new B2("Object already initialized");return e.facade=t,Kn(t,El,e),e},Wf=function(t){return nr(t,El)?t[El]:{}},d0=function(t){return nr(t,El)}}var Lu={set:f0,get:Wf,has:d0,enforce:function(t){return d0(t)?Wf(t):f0(t,{})},getterFor:function(t){return function(e){var n;if(!so(e)||(n=Wf(e)).type!==t)throw B2("Incompatible receiver, "+t+" required");return n}}},f9=Function.prototype,tK=jo&&Object.getOwnPropertyDescriptor,T2=nr(f9,"name"),F2={EXISTS:T2,PROPER:T2&&(function(){}).name==="something",CONFIGURABLE:T2&&(!jo||jo&&tK(f9,"name").configurable)},na=ku(function(t){var e=F2.CONFIGURABLE,n=Lu.get,r=Lu.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Je(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!nr(u,"name")||e&&u.name!==d)&&Kn(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Dt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Kn(i,a,u)):f?i[a]=u:w2(a,u)})(Function.prototype,"toString",function(){return Je(this)&&n(this).source||_2(this)})}),eK=Math.ceil,nK=Math.floor,P2=function(t){var e=+t;return e!=e||e===0?0:(e>0?nK:eK)(e)},rK=Math.max,oK=Math.min,N2=function(t,e){var n=P2(t);return n<0?rK(n+e,0):oK(n,e)},iK=Math.min,d9=function(t){return t>0?iK(P2(t),9007199254740991):0},p0=function(t){return d9(t.length)},p9=function(t){return function(e,n,r){var o,i=bl(e),a=p0(i),u=N2(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},aK={includes:p9(!0),indexOf:p9(!1)}.indexOf,h9=de([].push),g9=function(t,e){var n,r=bl(t),o=0,i=[];for(n in r)!nr(k2,n)&&nr(r,n)&&h9(i,n);for(;e.length>o;)nr(r,n=e[o++])&&(~aK(i,n)||h9(i,n));return i},h0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],uK=h0.concat("length","prototype"),sK=Object.getOwnPropertyNames||function(t){return g9(t,uK)},lK={f:sK},cK={f:Object.getOwnPropertySymbols},fK=de([].concat),dK=zf("Reflect","ownKeys")||function(t){var e=lK.f(yr(t)),n=cK.f;return n?fK(e,n(t)):e},v9=function(t,e){for(var n=dK(e),r=wl.f,o=A2.f,i=0;i<n.length;i++){var a=n[i];nr(t,a)||r(t,a,o(e,a))}},pK=/#|\.prototype\./,Gf=function(t,e){var n=gK[hK(t)];return n==mK||n!=vK&&(Je(e)?mn(e):!!e)},hK=Gf.normalize=function(t){return String(t).replace(pK,".").toLowerCase()},gK=Gf.data={},vK=Gf.NATIVE="N",mK=Gf.POLYFILL="P",yK=Gf,bK=A2.f,qf=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Dt:l?Dt[u]||w2(u,{}):(Dt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=bK(n,r))&&a.value:n[r],!yK(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;v9(i,o)}(t.sham||o&&o.sham)&&Kn(i,"sham",!0),na(n,r,i,t)}},m9={};m9[$n("toStringTag")]="z";var g0,j2=String(m9)==="[object z]",wK=$n("toStringTag"),EK=Dt.Object,CK=Nu(function(){return arguments}())=="Arguments",v0=j2?Nu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=EK(t),wK))=="string"?n:CK?Nu(e):(r=Nu(e))=="Object"&&Je(e.callee)?"Arguments":r},xK=Dt.String,Ru=function(t){if(v0(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return xK(t)},SK=function(){var t=yr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},I2=Dt.RegExp,L2=mn(function(){var t=I2("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),DK=L2||mn(function(){return!I2("a","y").sticky}),AK=L2||mn(function(){var t=I2("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),_K={BROKEN_CARET:AK,MISSED_STICKY:DK,UNSUPPORTED_Y:L2},OK=Object.keys||function(t){return g9(t,h0)},kK=jo?Object.defineProperties:function(t,e){yr(t);for(var n,r=bl(e),o=OK(e),i=o.length,a=0;i>a;)wl.f(t,n=o[a++],r[n]);return t},BK=zf("document","documentElement"),y9=O2("IE_PROTO"),R2=function(){},b9=function(t){return"<script>"+t+"<\/script>"},w9=function(t){t.write(b9("")),t.close();var e=t.parentWindow.Object;return t=null,e},m0=function(){try{g0=new ActiveXObject("htmlfile")}catch{}var t,e;m0=typeof document<"u"?document.domain&&g0?w9(g0):((e=D2("iframe")).style.display="none",BK.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(b9("document.F=Object")),t.close(),t.F):w9(g0);for(var n=h0.length;n--;)delete m0.prototype[h0[n]];return m0()};k2[y9]=!0;var E9,M2,$f=Object.create||function(t,e){var n;return t!==null?(R2.prototype=yr(t),n=new R2,R2.prototype=null,n[y9]=t):n=m0(),e===void 0?n:kK(n,e)},TK=Dt.RegExp,FK=mn(function(){var t=TK(".","s");return!(t.dotAll&&t.exec(`
|
|
10
|
-
`)&&t.flags==="s")}),PK=Dt.RegExp,NK=mn(function(){var t=PK("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),jK=Lu.get,IK=E2("native-string-replace",String.prototype.replace),y0=RegExp.prototype.exec,V2=y0,LK=de("".charAt),RK=de("".indexOf),MK=de("".replace),z2=de("".slice),H2=(M2=/b*/g,yn(y0,E9=/a/,"a"),yn(y0,M2,"a"),E9.lastIndex!==0||M2.lastIndex!==0),C9=_K.BROKEN_CARET,U2=/()??/.exec("")[1]!==void 0;(H2||U2||C9||FK||NK)&&(V2=function(t){var e,n,r,o,i,a,u,s=this,l=jK(s),c=Ru(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=yn(V2,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=C9&&s.sticky,y=yn(SK,s),g=s.source,v=0,m=c;if(d&&(y=MK(y,"y",""),RK(y,"g")===-1&&(y+="g"),m=z2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&LK(c,s.lastIndex-1)!==`
|
|
11
|
-
`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),U2&&(n=new RegExp("^"+g+"$(?!\\s)",y)),H2&&(r=s.lastIndex),o=yn(y0,d?n:s,m),d?o?(o.input=z2(o.input,v),o[0]=z2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:H2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),U2&&o&&o.length>1&&yn(IK,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=$f(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var b0=V2;qf({target:"RegExp",proto:!0,forced:/./.exec!==b0},{exec:b0});var VK=$n("species"),W2=RegExp.prototype,zK=de("".charAt),x9=de("".charCodeAt),HK=de("".slice),S9=function(t){return function(e,n){var r,o,i=Ru(l0(e)),a=P2(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=x9(i,a))<55296||r>56319||a+1===u||(o=x9(i,a+1))<56320||o>57343?t?zK(i,a):r:t?HK(i,a,a+2):o-56320+(r-55296<<10)+65536}},D9={codeAt:S9(!1),charAt:S9(!0)},UK=D9.charAt,WK=function(t,e,n){return e+(n?UK(t,e).length:1)},GK=Dt.TypeError,A9=function(t,e){var n=t.exec;if(Je(n)){var r=yn(n,t,e);return r!==null&&yr(r),r}if(Nu(t)==="RegExp")return yn(b0,t,e);throw GK("RegExp#exec called on incompatible receiver")};(function(t,e,n,r){var o=$n(t),i=!mn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!mn(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[VK]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=de(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=de(l),g=c.exec;return g===b0||g===W2.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});na(String.prototype,t,s[0]),na(W2,o,s[1])}r&&Kn(W2[o],"sham",!0)})("match",function(t,e,n){return[function(r){var o=l0(this),i=r==null?void 0:Hf(r,t);return i?yn(i,r,o):new RegExp(r)[t](Ru(o))},function(r){var o=yr(this),i=Ru(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return A9(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=A9(o,i))!==null;){var f=Ru(s[0]);l[c]=f,f===""&&(o.lastIndex=WK(i,d9(o.lastIndex),u)),c++}return c===0?null:l}]}),qf({global:!0},{globalThis:Dt});var qK=!mn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),_9=O2("IE_PROTO"),G2=Dt.Object,$K=G2.prototype,Kf=qK?G2.getPrototypeOf:function(t){var e=C2(t);if(nr(e,_9))return e[_9];var n=e.constructor;return Je(n)&&e instanceof n?n.prototype:e instanceof G2?$K:null},KK=Dt.String,YK=Dt.TypeError,Cl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=de(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return yr(r),function(i){if(typeof i=="object"||Je(i))return i;throw YK("Can't set "+KK(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),XK=Dt.Array,ZK=Math.max,JK=de("".replace),QK=de("".split),tY=de([].join),q2=String(Error("zxcasd").stack),O9=/\n\s*at [^:]*:[^\n]*/,eY=O9.test(q2),nY=/@[^\n]*\n/.test(q2)&&!/zxcasd/.test(q2),rY=function(t,e){if(typeof t!="string")return t;if(eY)for(;e--;)t=JK(t,O9,"");else if(nY)return tY(function(n,r,o){for(var i,a,u,s,l=p0(n),c=N2(r,l),f=N2(o===void 0?l:o,l),p=XK(ZK(f-c,0)),d=0;c<f;c++,d++)i=p,a=d,u=n[c],s=void 0,(s=x2(a))in i?wl.f(i,s,ta(0,u)):i[s]=u;return p.length=d,p}(QK(t,`
|
|
12
|
-
`),e),`
|
|
13
|
-
`);return t},oY=function(t,e){so(e)&&"cause"in e&&Kn(t,"cause",e.cause)},k9=de(de.bind),B9=function(t,e){return b2(t),e===void 0?t:k9?k9(t,e):function(){return t.apply(e,arguments)}},xl={},iY=$n("iterator"),aY=Array.prototype,uY=$n("iterator"),T9=function(t){if(t!=null)return Hf(t,uY)||Hf(t,"@@iterator")||xl[v0(t)]},sY=Dt.TypeError,F9=function(t,e,n){var r,o;yr(t);try{if(!(r=Hf(t,"return"))){if(e==="throw")throw n;return n}r=yn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return yr(r),n},lY=Dt.TypeError,w0=function(t,e){this.stopped=t,this.result=e},P9=w0.prototype,cY=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),y=B9(e,c),g=function(m){return r&&F9(r,"normal",m),new w0(!0,m)},v=function(m){return f?(yr(m),d?y(m[0],m[1],g):y(m[0],m[1])):d?y(m,g):y(m)};if(p)r=t;else{if(!(o=T9(t)))throw lY(y2(t)+" is not iterable");if(function(m){return m!==void 0&&(xl.Array===m||aY[iY]===m)}(o)){for(i=0,a=p0(t);a>i;i++)if((u=v(t[i]))&&c0(P9,u))return u;return new w0(!1)}r=function(m,h){var w=arguments.length<2?T9(m):h;if(b2(w))return yr(yn(w,m));throw sY(y2(m)+" is not iterable")}(t,o)}for(s=r.next;!(l=yn(s,r)).done;){try{u=v(l.value)}catch(m){F9(r,"throw",m)}if(typeof u=="object"&&u&&c0(P9,u))return u}return new w0(!1)},fY=function(t,e){return t===void 0?arguments.length<2?"":e:Ru(t)},dY=!mn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",ta(1,7)),t.stack!==7)}),pY=$n("toStringTag"),E0=Dt.Error,hY=[].push,Yf=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=c0($2,this);Cl?n=Cl(new E0(void 0),o?Kf(this):$2):(n=o?this:$f($2),Kn(n,pY,"Error")),Kn(n,"message",fY(e,"")),dY&&Kn(n,"stack",rY(n.stack,1)),oY(n,r);var i=[];return cY(t,hY,{that:i}),Kn(n,"errors",i),n};Cl?Cl(Yf,E0):v9(Yf,E0);var $2=Yf.prototype=$f(E0.prototype,{constructor:ta(1,Yf),message:ta(1,""),name:ta(1,"AggregateError")});qf({global:!0},{AggregateError:Yf});var K2=$n("unscopables"),Y2=Array.prototype;Y2[K2]==null&&wl.f(Y2,K2,{configurable:!0,value:$f(null)});var Mu,N9,j9,X2=function(t){Y2[K2][t]=!0},Z2=$n("iterator"),I9=!1;[].keys&&("next"in(j9=[].keys())?(N9=Kf(Kf(j9)))!==Object.prototype&&(Mu=N9):I9=!0);var gY=Mu==null||mn(function(){var t={};return Mu[Z2].call(t)!==t});gY&&(Mu={}),Je(Mu[Z2])||na(Mu,Z2,function(){return this});var J2={IteratorPrototype:Mu,BUGGY_SAFARI_ITERATORS:I9},vY=wl.f,L9=$n("toStringTag"),R9=function(t,e,n){t&&!nr(t=n?t:t.prototype,L9)&&vY(t,L9,{configurable:!0,value:e})},mY=J2.IteratorPrototype,yY=function(){return this},bY=F2.PROPER,wY=F2.CONFIGURABLE,M9=J2.IteratorPrototype,C0=J2.BUGGY_SAFARI_ITERATORS,Xf=$n("iterator"),EY=function(){return this},V9=function(t,e,n,r,o,i,a){(function(m,h,w,E){var C=h+" Iterator";m.prototype=$f(mY,{next:ta(+!E,w)}),R9(m,C,!1),xl[C]=yY})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!C0&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Xf]||d["@@iterator"]||o&&d[o],g=!C0&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=Kf(v.call(new t)))!==Object.prototype&&u.next&&(Kf(u)!==M9&&(Cl?Cl(u,M9):Je(u[Xf])||na(u,Xf,EY)),R9(u,f,!0)),bY&&o=="values"&&y&&y.name!=="values"&&(wY?Kn(d,"name","values"):(p=!0,g=function(){return yn(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(C0||p||!(l in d))&&na(d,l,s[l]);else qf({target:e,proto:!0,forced:C0||p},s);return d[Xf]!==g&&na(d,Xf,g,{name:o}),xl[e]=g,s},CY=Lu.set,xY=Lu.getterFor("Array Iterator"),Zf=V9(Array,"Array",function(t,e){CY(this,{type:"Array Iterator",target:bl(t),index:0,kind:e})},function(){var t=xY(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");xl.Arguments=xl.Array,X2("keys"),X2("values"),X2("entries");var SY=D9.charAt,DY=Lu.set,AY=Lu.getterFor("String Iterator");V9(String,"String",function(t){DY(this,{type:"String Iterator",string:Ru(t),index:0})},function(){var t,e=AY(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=SY(n,r),e.index+=t.length,{value:t,done:!1})});var Q2,x0={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},tw=D2("span").classList,z9=tw&&tw.constructor&&tw.constructor.prototype,H9=z9===Object.prototype?void 0:z9,ew=$n("iterator"),U9=$n("toStringTag"),nw=Zf.values,W9=function(t,e){if(t){if(t[ew]!==nw)try{Kn(t,ew,nw)}catch{t[ew]=nw}if(t[U9]||Kn(t,U9,e),x0[e]){for(var n in Zf)if(t[n]!==Zf[n])try{Kn(t,n,Zf[n])}catch{t[n]=Zf[n]}}}};for(var rw in x0)W9(Dt[rw]&&Dt[rw].prototype,rw);W9(H9,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
|
|
14
|
-
Sorry, wangEditor V5+ versions do not support IE browser.`),G9(),q9()):global&&(!((Q2=global.navigator)===null||Q2===void 0)&&Q2.userAgent.match("QQBrowser"))&&(G9(),q9());function G9(){typeof globalThis>"u"&&(window.globalThis=window)}function q9(){w$===void 0&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}var $9,S0=Array.isArray||function(t){return Bu(t)=="Array"},K9=function(){},_Y=[],Y9=pl("Reflect","construct"),ow=/^\s*(?:class|function)\b/,OY=we(ow.exec),kY=!ow.exec(K9),Jf=function(t){if(!vn(t))return!1;try{return Y9(K9,_Y,t),!0}catch{return!1}},BY=!Y9||Qn(function(){var t;return Jf(Jf.call)||!Jf(Object)||!Jf(function(){t=!0})||t})?function(t){if(!vn(t))return!1;switch(If(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return kY||!!OY(ow,N_(t))}:Jf,TY=Fn("species"),X9=Tt.Array,Z9=function(t,e){return new(function(n){var r;return S0(n)&&(r=n.constructor,(BY(r)&&(r===X9||S0(r.prototype))||gr(r)&&(r=r[TY])===null)&&(r=void 0)),r===void 0?X9:r}(t))(e===0?0:e)},FY=Fn("species"),J9=Fn("isConcatSpreadable"),Q9=Tt.TypeError,PY=Gg>=51||!Qn(function(){var t=[];return t[J9]=!1,t.concat()[0]!==t}),NY=($9="concat",Gg>=51||!Qn(function(){var t=[];return(t.constructor={})[FY]=function(){return{foo:1}},t[$9](Boolean).foo!==1})),jY=function(t){if(!gr(t))return!1;var e=t[J9];return e!==void 0?!!e:S0(t)};pi({target:"Array",proto:!0,forced:!PY||!NY},{concat:function(t){var e,n,r,o,i,a=Tf(this),u=Z9(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(jY(i=e===-1?a:arguments[e])){if(s+(o=Nf(i))>9007199254740991)throw Q9("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&e2(u,s,i[n])}else{if(s>=9007199254740991)throw Q9("Maximum allowed index exceeded");e2(u,s++,i)}return u.length=s,u}});var t7=Jb.f,e7=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],n7={f:function(t){return e7&&Bu(t)=="Window"?function(e){try{return t7(e)}catch{return O_(e7)}}(t):t7(Po(t))}},IY=we([].slice),iw={f:Fn},LY=Zi.f,Ue=function(t){var e=vr.Symbol||(vr.Symbol={});qt(e,t)||LY(e,t,{value:iw.f(t)})},r7=we([].push),ra=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=Tf(s),g=s_(y),v=Kb(l,c),m=Nf(g),h=0,w=f||Z9,E=e?w(s,m):n||a?w(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:r7(E,p)}else switch(t){case 4:return!1;case 7:r7(E,p)}return i?-1:r||o?o:E}},D0={forEach:ra(0),map:ra(1),filter:ra(2),some:ra(3),every:ra(4),find:ra(5),findIndex:ra(6),filterReject:ra(7)}.forEach,rr=Yg("hidden"),o7=Fn("toPrimitive"),RY=ml.set,i7=ml.getterFor("Symbol"),lo=Object.prototype,oa=Tt.Symbol,ia=oa&&oa.prototype,a7=Tt.TypeError,aw=Tt.QObject,Qf=pl("JSON","stringify"),u7=Kg.f,aa=Zi.f,s7=n7.f,MY=Vb.f,l7=we([].push),vi=Tu("symbols"),td=Tu("op-symbols"),uw=Tu("string-to-symbol-registry"),sw=Tu("symbol-to-string-registry"),VY=Tu("wks"),lw=!aw||!aw.prototype||!aw.prototype.findChild,cw=tr&&Qn(function(){return hi(aa({},"a",{get:function(){return aa(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=u7(lo,e);r&&delete lo[e],aa(t,e,n),r&&t!==lo&&aa(lo,e,r)}:aa,fw=function(t,e){var n=vi[t]=hi(ia);return RY(n,{type:"Symbol",tag:t,description:e}),tr||(n.description=e),n},A0=function(t,e,n){t===lo&&A0(td,e,n),mr(t);var r=gl(e);return mr(n),qt(vi,r)?(n.enumerable?(qt(t,rr)&&t[rr][r]&&(t[rr][r]=!1),n=hi(n,{enumerable:uo(0,!1)})):(qt(t,rr)||aa(t,rr,uo(1,{})),t[rr][r]=!0),cw(t,r,n)):aa(t,r,n)},c7=function(t,e){mr(t);var n=Po(e),r=Qb(n).concat(dw(n));return D0(r,function(o){tr&&!er(f7,n,o)||A0(t,o,n[o])}),t},f7=function(t){var e=gl(t),n=er(MY,this,e);return!(this===lo&&qt(vi,e)&&!qt(td,e))&&(!(n||!qt(this,e)||!qt(vi,e)||qt(this,rr)&&this[rr][e])||n)},d7=function(t,e){var n=Po(t),r=gl(e);if(n!==lo||!qt(vi,r)||qt(td,r)){var o=u7(n,r);return!o||!qt(vi,r)||qt(n,rr)&&n[rr][r]||(o.enumerable=!0),o}},p7=function(t){var e=s7(Po(t)),n=[];return D0(e,function(r){qt(vi,r)||qt(jf,r)||l7(n,r)}),n},dw=function(t){var e=t===lo,n=s7(e?td:Po(t)),r=[];return D0(n,function(o){!qt(vi,o)||e&&!qt(lo,o)||l7(r,vi[o])}),r};if(No||(ia=(oa=function(){if(Bf(ia,this))throw a7("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Lf(arguments[0]):void 0,e=$g(t),n=function(r){this===lo&&er(n,td,r),qt(this,rr)&&qt(this[rr],e)&&(this[rr][e]=!1),cw(this,e,uo(1,r))};return tr&&lw&&cw(lo,e,{configurable:!0,set:n}),fw(e,t)}).prototype,yl(ia,"toString",function(){return i7(this).tag}),yl(oa,"withoutSetter",function(t){return fw($g(t),t)}),Vb.f=f7,Zi.f=A0,Kg.f=d7,Jb.f=n7.f=p7,Qg.f=dw,iw.f=function(t){return fw(Fn(t),t)},tr&&aa(ia,"description",{configurable:!0,get:function(){return i7(this).description}})),pi({global:!0,wrap:!0,forced:!No,sham:!No},{Symbol:oa}),D0(Qb(VY),function(t){Ue(t)}),pi({target:"Symbol",stat:!0,forced:!No},{for:function(t){var e=Lf(t);if(qt(uw,e))return uw[e];var n=oa(e);return uw[e]=n,sw[n]=e,n},keyFor:function(t){if(!hl(t))throw a7(t+" is not a symbol");if(qt(sw,t))return sw[t]},useSetter:function(){lw=!0},useSimple:function(){lw=!1}}),pi({target:"Object",stat:!0,forced:!No,sham:!tr},{create:function(t,e){return e===void 0?hi(t):c7(hi(t),e)},defineProperty:A0,defineProperties:c7,getOwnPropertyDescriptor:d7}),pi({target:"Object",stat:!0,forced:!No},{getOwnPropertyNames:p7,getOwnPropertySymbols:dw}),pi({target:"Object",stat:!0,forced:Qn(function(){Qg.f(1)})},{getOwnPropertySymbols:function(t){return Qg.f(Tf(t))}}),Qf){var zY=!No||Qn(function(){var t=oa();return Qf([t])!="[null]"||Qf({a:t})!="{}"||Qf(Object(t))!="{}"});pi({target:"JSON",stat:!0,forced:zY},{stringify:function(t,e,n){var r=IY(arguments),o=e;if((gr(e)||t!==void 0)&&!hl(t))return S0(e)||(e=function(i,a){if(vn(o)&&(a=er(o,this,i,a)),!hl(a))return a}),r[1]=e,o_(Qf,null,r)}})}if(!ia[o7]){var HY=ia.valueOf;yl(ia,o7,function(t){return er(HY,this)})}i0(oa,"Symbol"),jf[rr]=!0,Ue("asyncIterator"),Ue("hasInstance"),Ue("isConcatSpreadable"),Ue("iterator"),Ue("match"),Ue("matchAll"),Ue("replace"),Ue("search"),Ue("species"),Ue("split"),Ue("toPrimitive"),Ue("toStringTag"),Ue("unscopables"),i0(Tt.JSON,"JSON",!0);var UY=vr.Symbol;Ue("asyncDispose"),Ue("dispose"),Ue("matcher"),Ue("metadata"),Ue("observable"),Ue("patternMatch"),Ue("replaceAll");var _0=UY,WY=iw.f("iterator"),GY=ku(function(t){function e(n){return typeof _0=="function"&&typeof WY=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof _0=="function"&&r.constructor===_0&&r!==_0.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),qY=BG(GY),h7=A2.f,$Y=mn(function(){h7(1)});if(qf({target:"Object",stat:!0,forced:!jo||$Y,sham:!jo},{getOwnPropertyDescriptor:function(t,e){return h7(bl(t),e)}}),(typeof global>"u"?"undefined":qY(global))==="object"){var KY=Object.getOwnPropertyDescriptor(global,"window");global.window&&!KY.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(t){return nodeCrypto.randomFillSync(t)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
|
|
15
|
-
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
16
|
-
*
|
|
17
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
18
|
-
* Released under the MIT License.
|
|
19
|
-
*/function g7(t){return Object.prototype.toString.call(t)==="[object Object]"}function Pn(t){var e,n;return g7(t)!==!1&&((e=t.constructor)===void 0||g7(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function co(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Vu(t){return!!t&&!!t[br]}function zu(t){return!!t&&(function(e){if(!e||typeof e!="object")return!1;var n=Object.getPrototypeOf(e);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===tX}(t)||Array.isArray(t)||!!t[D7]||!!t.constructor[D7]||hw(t)||gw(t))}function ed(t,e,n){n===void 0&&(n=!1),Sl(t)===0?(n?Object.keys:_w)(t).forEach(function(r){n&&typeof r=="symbol"||e(r,t[r],t)}):t.forEach(function(r,o){return e(o,r,t)})}function Sl(t){var e=t[br];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:hw(t)?2:gw(t)?3:0}function pw(t,e){return Sl(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function v7(t,e,n){var r=Sl(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function hw(t){return JY&&t instanceof Map}function gw(t){return QY&&t instanceof Set}function Hu(t){return t.o||t.t}function vw(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=eX(t);delete e[br];for(var n=_w(e),r=0;r<n.length;r++){var o=n[r],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function mw(t,e){return e===void 0&&(e=!1),yw(t)||Vu(t)||!zu(t)||(Sl(t)>1&&(t.set=t.add=t.clear=t.delete=YY),Object.freeze(t),e&&ed(t,function(n,r){return mw(r,!0)},!0)),t}function YY(){co(2)}function yw(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function mi(t){var e=nX[t];return e||co(18,t),e}function m7(){return nd}function bw(t,e){e&&(mi("Patches"),t.u=[],t.s=[],t.v=e)}function O0(t){ww(t),t.p.forEach(XY),t.p=null}function ww(t){t===nd&&(nd=t.l)}function y7(t){return nd={p:[],l:nd,h:t,m:!0,_:0}}function XY(t){var e=t[br];e.i===0||e.i===1?e.j():e.O=!0}function Ew(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.g||mi("ES5").S(e,t,r),r?(n[br].P&&(O0(e),co(4)),zu(t)&&(t=k0(e,t),e.l||B0(e,t)),e.u&&mi("Patches").M(n[br],t,e.u,e.s)):t=k0(e,n,[]),O0(e),e.u&&e.v(e.u,e.s),t!==S7?t:void 0}function k0(t,e,n){if(yw(e))return e;var r=e[br];if(!r)return ed(e,function(i,a){return b7(t,r,e,i,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return B0(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=vw(r.k):r.o;ed(r.i===3?new Set(o):o,function(i,a){return b7(t,r,o,i,a,n)}),B0(t,o,!1),n&&t.u&&mi("Patches").R(r,n,t.u,t.s)}return r.o}function b7(t,e,n,r,o,i){if(Vu(o)){var a=k0(t,o,i&&e&&e.i!==3&&!pw(e.D,r)?i.concat(r):void 0);if(v7(n,r,a),!Vu(a))return;t.m=!1}if(zu(o)&&!yw(o)){if(!t.h.F&&t._<1)return;k0(t,o),e&&e.A.l||B0(t,o)}}function B0(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&mw(e,n)}function Cw(t,e){var n=t[br];return(n?Hu(n):t)[e]}function w7(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function xw(t){t.P||(t.P=!0,t.l&&xw(t.l))}function Sw(t){t.o||(t.o=vw(t.t))}function Dw(t,e,n){var r=hw(e)?mi("MapSet").N(e,n):gw(e)?mi("MapSet").T(e,n):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:m7(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=T0;a&&(s=[u],l=F0);var c=Proxy.revocable(s,l),f=c.revoke,p=c.proxy;return u.k=p,u.j=f,p}(e,n):mi("ES5").J(e,n);return(n?n.A:m7()).p.push(r),r}function ZY(t){return Vu(t)||co(22,t),function e(n){if(!zu(n))return n;var r,o=n[br],i=Sl(n);if(o){if(!o.P&&(o.i<4||!mi("ES5").K(o)))return o.t;o.I=!0,r=E7(n,i),o.I=!1}else r=E7(n,i);return ed(r,function(a,u){o&&function(s,l){return Sl(s)===2?s.get(l):s[l]}(o.t,a)===u||v7(r,a,e(u))}),i===3?new Set(r):r}(t)}function E7(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return vw(t)}var C7,nd,Aw=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",JY=typeof Map<"u",QY=typeof Set<"u",x7=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",S7=Aw?Symbol.for("immer-nothing"):((C7={})["immer-nothing"]=!0,C7),D7=Aw?Symbol.for("immer-draftable"):"__$immer_draftable",br=Aw?Symbol.for("immer-state"):"__$immer_state",tX=""+Object.prototype.constructor,_w=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,eX=Object.getOwnPropertyDescriptors||function(t){var e={};return _w(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},nX={},T0={get:function(t,e){if(e===br)return t;var n=Hu(t);if(!pw(n,e))return function(o,i,a){var u,s=w7(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(t,n,e);var r=n[e];return t.I||!zu(r)?r:r===Cw(t.t,e)?(Sw(t),t.o[e]=Dw(t.A.h,r,t)):r},has:function(t,e){return e in Hu(t)},ownKeys:function(t){return Reflect.ownKeys(Hu(t))},set:function(t,e,n){var r=w7(Hu(t),e);if(r!=null&&r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=Cw(Hu(t),e),i=o==null?void 0:o[br];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(n,o)&&(n!==void 0||pw(t.t,e)))return!0;Sw(t),xw(t)}return t.o[e]===n&&typeof n!="number"&&(n!==void 0||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return Cw(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,Sw(t),xw(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=Hu(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty:function(){co(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){co(12)}},F0={};ed(T0,function(t,e){F0[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),F0.deleteProperty=function(t,e){return T0.deleteProperty.call(this,t[0],e)},F0.set=function(t,e,n){return T0.set.call(this,t[0],e,n,t[0])};var rX=function(){function t(n){var r=this;this.g=x7,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(d){var y=this;d===void 0&&(d=u);for(var g=arguments.length,v=Array(g>1?g-1:0),m=1;m<g;m++)v[m-1]=arguments[m];return s.produce(d,function(h){var w;return(w=i).call.apply(w,[y,h].concat(v))})}}var l;if(typeof i!="function"&&co(6),a!==void 0&&typeof a!="function"&&co(7),zu(o)){var c=y7(r),f=Dw(r,o,void 0),p=!0;try{l=i(f),p=!1}finally{p?O0(c):ww(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(d){return bw(c,a),Ew(d,c)},function(d){throw O0(c),d}):(bw(c,a),Ew(l,c))}if(!o||typeof o!="object")return(l=i(o))===S7?void 0:(l===void 0&&(l=o),r.F&&mw(l,!0),l);co(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(p){return o.apply(void 0,[p].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 e=t.prototype;return e.createDraft=function(n){zu(n)||co(8),Vu(n)&&(n=ZY(n));var r=y7(this),o=Dw(this,n,void 0);return o[br].C=!0,ww(r),o},e.finishDraft=function(n,r){var o=(n&&n[br]).A;return bw(o,r),Ew(void 0,o)},e.setAutoFreeze=function(n){this.F=n},e.setUseProxies=function(n){n&&!x7&&co(20),this.g=n},e.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=mi("Patches").$;return Vu(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},t}(),wr=new rX,P0=wr.produce;wr.produceWithPatches.bind(wr),wr.setAutoFreeze.bind(wr),wr.setUseProxies.bind(wr),wr.applyPatches.bind(wr);var A7=wr.createDraft.bind(wr),_7=wr.finishDraft.bind(wr);function Io(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var N0=new WeakMap,rd=new WeakMap,O7=new WeakMap,k7=new WeakMap,B7=new WeakMap,T7=new WeakMap;function F7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function j0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?F7(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var oX=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var n of x.pathRefs(t))NX.transform(n,e);for(var r of x.pointRefs(t))jX.transform(r,e);for(var o of x.rangeRefs(t))LX.transform(o,e);var i=new Set,a=[],u=p=>{if(p){var d=p.join(",");i.has(d)||(i.add(d),a.push(p))}},s=N0.get(t)||[],l=iX(e);for(var c of s)u(j.transform(c,e));for(var f of l)u(f);N0.set(t,a),I.transform(t,e),t.operations.push(e),x.normalize(t),e.type==="set_selection"&&(t.marks=null),rd.get(t)||(rd.set(t,!0),Promise.resolve().then(()=>{rd.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,n)=>{var{selection:r}=t;if(r)if(z.isExpanded(r))I.setNodes(t,{[e]:n},{match:at.isText,split:!0});else{var o=j0(j0({},x.marks(t)||{}),{},{[e]:n});t.marks=o,rd.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:n}=t;n&&z.isCollapsed(n)&&I.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:n}=t;n&&z.isCollapsed(n)&&I.delete(t,{unit:e})},deleteFragment:e=>{var{selection:n}=t;n&&z.isExpanded(n)&&I.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?tt.fragment(t,e):[]},insertBreak:()=>{I.splitNodes(t,{always:!0})},insertFragment:e=>{I.insertFragment(t,e)},insertNode:e=>{I.insertNodes(t,e)},insertText:e=>{var{selection:n,marks:r}=t;if(n){if(r){var o=j0({text:e},r);I.insertNodes(t,o)}else I.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[n,r]=e;if(!at.isText(n))if(dt.isElement(n)&&n.children.length===0)I.insertNodes(t,{text:""},{at:r.concat(0),voids:!0});else for(var o=!x.isEditor(n)&&dt.isElement(n)&&(t.isInline(n)||n.children.length===0||at.isText(n.children[0])||t.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=tt.get(t,r);if(!at.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(at.isText(s)||dt.isElement(s)&&t.isInline(s))!==o?(I.removeNodes(t,{at:r.concat(i),voids:!0}),i--):dt.isElement(s)?t.isInline(s)&&(l!=null&&at.isText(l)?c&&(I.insertNodes(t,{text:""},{at:r.concat(i+1),voids:!0}),i++):(I.insertNodes(t,{text:""},{at:r.concat(i),voids:!0}),i++)):l!=null&&at.isText(l)&&(at.equals(s,l,{loose:!0})?(I.mergeNodes(t,{at:r.concat(i),voids:!0}),i--):l.text===""?(I.removeNodes(t,{at:r.concat(i-1),voids:!0}),i--):s.text===""&&(I.removeNodes(t,{at:r.concat(i),voids:!0}),i--))}}},removeMark:e=>{var{selection:n}=t;if(n)if(z.isExpanded(n))I.unsetNodes(t,e,{match:at.isText,split:!0});else{var r=j0({},x.marks(t)||{});delete r[e],t.marks=r,rd.get(t)||t.onChange()}}};return t},iX=t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return j.levels(e);case"insert_node":var{node:n,path:r}=t,o=j.levels(r),i=at.isText(n)?[]:Array.from(tt.nodes(n),E=>{var[,C]=E;return r.concat(C)});return[...o,...i];case"merge_node":var{path:a}=t;return[...j.ancestors(a),j.previous(a)];case"move_node":var{path:u,newPath:s}=t;if(j.equals(u,s))return[];var l=[],c=[];for(var f of j.ancestors(u)){var p=j.transform(f,t);l.push(p)}for(var d of j.ancestors(s)){var y=j.transform(d,t);c.push(y)}var g=c[c.length-1],v=s[s.length-1],m=g.concat(v);return[...l,...c,m];case"remove_node":var{path:h}=t;return[...j.ancestors(h)];case"split_node":var{path:w}=t;return[...j.levels(w),j.next(w)];default:return[]}};function yi(t,e){if(t==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}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var Ot,Ow=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!e,r=e?cX(t):t,o=Ot.None,i=Ot.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=CX(s,l);if([o,i]=n?[i,c]:[c,o],Dl(o,Ot.ZWJ)&&Dl(i,Ot.ExtPict)&&!AX(n?t.substring(0,a):t.substring(0,t.length-a))||Dl(o,Ot.RI)&&Dl(i,Ot.RI)&&!(u=u!==null?!u:!!n||OX(t.substring(0,t.length-a)))||o!==Ot.None&&i!==Ot.None&&SX(o,i))break;a+=s.length}return a||1},aX=/\s/,uX=/[\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]/,sX=/['\u2018\u2019]/,kw=(t,e,n)=>{if(n){var r=t.length-e;return[t.slice(r,t.length),t.slice(0,r)]}return[t.slice(0,e),t.slice(e)]},lX=function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(aX.test(e))return!1;if(sX.test(e)){var o=Ow(n,r),[i,a]=kw(n,o,r);if(t(i,a,r))return!0}return!uX.test(e)},cX=function*(t){for(var e=t.length-1,n=0;n<t.length;n++){var r=t.charAt(e-n);if(dX(r.charCodeAt(0))){var o=t.charAt(e-n-1);if(fX(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},fX=t=>t>=55296&&t<=56319,dX=t=>t>=56320&&t<=57343;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(Ot||(Ot={}));var pX=/^(?:[\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])$/,hX=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,gX=/^(?:[\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])$/,vX=/^[\u1100-\u115F\uA960-\uA97C]$/,mX=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,yX=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,bX=/^[\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]$/,wX=/^[\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]$/,EX=/^(?:[\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])$/,CX=(t,e)=>{var n=Ot.Any;return t.search(pX)!==-1&&(n|=Ot.Extend),e===8205&&(n|=Ot.ZWJ),e>=127462&&e<=127487&&(n|=Ot.RI),t.search(hX)!==-1&&(n|=Ot.Prepend),t.search(gX)!==-1&&(n|=Ot.SpacingMark),t.search(vX)!==-1&&(n|=Ot.L),t.search(mX)!==-1&&(n|=Ot.V),t.search(yX)!==-1&&(n|=Ot.T),t.search(bX)!==-1&&(n|=Ot.LV),t.search(wX)!==-1&&(n|=Ot.LVT),t.search(EX)!==-1&&(n|=Ot.ExtPict),n};function Dl(t,e){return(t&e)!=0}var xX=[[Ot.L,Ot.L|Ot.V|Ot.LV|Ot.LVT],[Ot.LV|Ot.V,Ot.V|Ot.T],[Ot.LVT|Ot.T,Ot.T],[Ot.Any,Ot.Extend|Ot.ZWJ],[Ot.Any,Ot.SpacingMark],[Ot.Prepend,Ot.Any],[Ot.ZWJ,Ot.ExtPict],[Ot.RI,Ot.RI]];function SX(t,e){return xX.findIndex(n=>Dl(t,n[0])&&Dl(e,n[1]))===-1}var DX=/(?:[\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$/,AX=t=>t.search(DX)!==-1,_X=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,OX=t=>{var e=t.match(_X);return e!==null&&e[0].length/2%2==1},P7=t=>Pn(t)&&tt.isNodeList(t.children)&&!x.isEditor(t),dt={isAncestor:t=>Pn(t)&&tt.isNodeList(t.children),isElement:P7,isElementList:t=>Array.isArray(t)&&t.every(e=>dt.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return P7(t)&&t[n]===e},matches(t,e){for(var n in e)if(n!=="children"&&t[n]!==e[n])return!1;return!0}},kX=["text"],BX=["text"];function N7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Al(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?N7(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var j7=new WeakMap,x={above(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=t.selection,match:i}=e;if(o){var a=x.path(t,o),u=r==="lowest";for(var[s,l]of x.levels(t,{at:a,voids:n,match:i,reverse:u}))if(!at.isText(s)&&!j.equals(a,l))return[s,l]}},addMark(t,e,n){t.addMark(e,n)},after(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:x.point(t,e,{edge:"end"}),focus:x.end(t,[])},{distance:i=1}=r,a=0;for(var u of x.positions(t,Al(Al({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=u),a++}return n},before(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:x.start(t,[]),focus:x.point(t,e,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of x.positions(t,Al(Al({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=u),a++}return n},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=e;t.deleteFragment(n)},edges:(t,e)=>[x.start(t,e),x.end(t,e)],end:(t,e)=>x.point(t,e,{edge:"end"}),first(t,e){var n=x.path(t,e,{edge:"start"});return x.node(t,n)},fragment(t,e){var n=x.range(t,e);return tt.fragment(t,n)},hasBlocks:(t,e)=>e.children.some(n=>x.isBlock(t,n)),hasInlines:(t,e)=>e.children.some(n=>at.isText(n)||x.isInline(t,n)),hasTexts:(t,e)=>e.children.every(n=>at.isText(n)),insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>dt.isElement(e)&&!t.isInline(e),isEditor(t){if(!Pn(t))return!1;var e=j7.get(t);if(e!==void 0)return e;var n=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteBackward=="function"&&typeof t.deleteForward=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isInline=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&(t.marks===null||Pn(t.marks))&&(t.selection===null||z.isRange(t.selection))&&tt.isNodeList(t.children)&&ua.isOperationList(t.operations);return j7.set(t,n),n},isEnd(t,e,n){var r=x.end(t,n);return Nt.equals(e,r)},isEdge:(t,e,n)=>x.isStart(t,e,n)||x.isEnd(t,e,n),isEmpty(t,e){var{children:n}=e,[r]=n;return n.length===0||n.length===1&&at.isText(r)&&r.text===""&&!t.isVoid(e)},isInline:(t,e)=>dt.isElement(e)&&t.isInline(e),isNormalizing(t){var e=O7.get(t);return e===void 0||e},isStart(t,e,n){if(e.offset!==0)return!1;var r=x.start(t,n);return Nt.equals(e,r)},isVoid:(t,e)=>dt.isElement(e)&&t.isVoid(e),last(t,e){var n=x.path(t,e,{edge:"end"});return x.node(t,n)},leaf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=x.path(t,e,n);return[tt.leaf(t,r),r]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,reverse:r=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),n){var a=[],u=x.path(t,n);for(var[s,l]of tt.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&x.isVoid(t,s)))break;r&&a.reverse(),yield*a}},marks(t){var{marks:e,selection:n}=t;if(!n)return null;if(e)return e;if(z.isExpanded(n)){var[r]=x.nodes(t,{match:at.isText});if(r){var[o]=r;return yi(o,kX)}return{}}var{anchor:i}=n,{path:a}=i,[u]=x.leaf(t,a);if(i.offset===0){var s=x.previous(t,{at:a,match:at.isText}),l=x.above(t,{match:d=>x.isBlock(t,d)});if(s&&l){var[c,f]=s,[,p]=l;j.isAncestor(p,f)&&(u=c)}}return yi(u,BX)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=x.after(t,i,{voids:r});if(a){var[,u]=x.last(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(j.isPath(i)){var[l]=x.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=x.nodes(t,{at:s,match:o,mode:n,voids:r});return c}}},node(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=x.path(t,e,n);return[tt.get(t,r),r]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=e,{match:u}=e;if(u||(u=()=>!0),n){var s,l;if(TX.isSpan(n))s=n[0],l=n[1];else{var c=x.path(t,n,{edge:"start"}),f=x.path(t,n,{edge:"end"});s=i?f:c,l=i?c:f}var p,d=tt.nodes(t,{reverse:i,from:s,to:l,pass:w=>{var[E]=w;return!a&&x.isVoid(t,E)}}),y=[];for(var[g,v]of d){var m=p&&j.compare(v,p[1])===0;if(r!=="highest"||!m){if(u(g,v))if(r==="lowest"&&m)p=[g,v];else{var h=r==="lowest"?p:[g,v];h&&(o?y.push(h):yield h),p=[g,v]}else if(o&&!m&&at.isText(g))return}}r==="lowest"&&p&&(o?y.push(p):yield p),o&&(yield*y)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=e,r=i=>N0.get(i)||[];if(x.isNormalizing(t)){if(n){var o=Array.from(tt.nodes(t),i=>{var[,a]=i;return a});N0.set(t,o)}r(t).length!==0&&x.withoutNormalizing(t,()=>{for(var i of r(t))if(tt.has(t,i)){var a=x.node(t,i),[u,s]=a;dt.isElement(u)&&u.children.length===0&&t.normalizeNode(a)}for(var l=42*r(t).length,c=0;r(t).length!==0;){if(c>l)throw new Error(`
|
|
20
|
-
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.
|
|
21
|
-
`));var f=r(t).pop();if(tt.has(t,f)){var p=x.node(t,f);t.normalizeNode(p)}c++}})}},parent(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=x.path(t,e,n),o=j.parent(r);return x.node(t,o)},path(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(j.isPath(e)){if(o==="start"){var[,i]=tt.first(t,e);e=i}else if(o==="end"){var[,a]=tt.last(t,e);e=a}}return z.isRange(e)&&(e=o==="start"?z.start(e):o==="end"?z.end(e):j.common(e.anchor.path,e.focus.path)),Nt.isPoint(e)&&(e=e.path),r!=null&&(e=e.slice(0,r)),e},hasPath:(t,e)=>tt.has(t,e),pathRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return x.pathRefs(t).delete(o),o.current=null,i}};return x.pathRefs(t).add(o),o},pathRefs(t){var e=k7.get(t);return e||(e=new Set,k7.set(t,e)),e},point(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(j.isPath(e)){var o;if(r==="end"){var[,i]=tt.last(t,e);o=i}else{var[,a]=tt.first(t,e);o=a}var u=tt.get(t,o);if(!at.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if(z.isRange(e)){var[s,l]=z.edges(e);return r==="start"?s:l}return e},pointRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return x.pointRefs(t).delete(o),o.current=null,i}};return x.pointRefs(t).add(o),o},pointRefs(t){var e=B7.get(t);return e||(e=new Set,B7.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=e;if(n){var a=x.range(t,n),[u,s]=z.edges(a),l=o?s:u,c=!1,f="",p=0,d=0,y=0;for(var[g,v]of x.nodes(t,{at:n,reverse:o,voids:i})){if(dt.isElement(g)){if(!i&&t.isVoid(g)){yield x.start(t,v);continue}if(t.isInline(g))continue;if(x.hasInlines(t,g)){var m=j.isAncestor(v,s.path)?s:x.end(t,v),h=j.isAncestor(v,u.path)?u:x.start(t,v);f=x.string(t,{anchor:h,focus:m},{voids:i}),c=!0}}if(at.isText(g)){var w=j.equals(v,l.path);for(w?(d=o?l.offset:g.text.length-l.offset,y=l.offset):(d=g.text.length,y=o?d:0),(w||c||r==="offset")&&(yield{path:v,offset:y},c=!1);;){if(p===0){if(f==="")break;p=E(f,r,o),f=kw(f,p,o)[1]}if(y=o?y-p:y+p,(d-=p)<0){p=-d;break}p=0,yield{path:v,offset:y}}}}}function E(C,D,S){return D==="character"?Ow(C,S):D==="word"?function(A){for(var k=arguments.length>1&&arguments[1]!==void 0&&arguments[1],R=0,V=!1;A.length>0;){var L=Ow(A,k),[W,H]=kw(A,L,k);if(lX(W,H,k))V=!0,R+=L;else{if(V)break;R+=L}A=H}return R}(C,S):D==="line"||D==="block"?C.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=x.before(t,i,{voids:r});if(a){var[,u]=x.first(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(j.isPath(i)){var[l]=x.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=x.nodes(t,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(t,e,n)=>z.isRange(e)&&!n?e:{anchor:x.start(t,e),focus:x.end(t,n||e)},rangeRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return x.rangeRefs(t).delete(o),o.current=null,i}};return x.rangeRefs(t).add(o),o},rangeRefs(t){var e=T7.get(t);return e||(e=new Set,T7.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){O7.set(t,e)},start:(t,e)=>x.point(t,e,{edge:"start"}),string(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=x.range(t,e),[i,a]=z.edges(o),u="";for(var[s,l]of x.nodes(t,{at:o,match:at.isText,voids:r})){var c=s.text;j.equals(l,a.path)&&(c=c.slice(0,a.offset)),j.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=z.edges(e);if(o.offset!==0||i.offset!==0||z.isCollapsed(e))return e;var a=x.above(t,{at:i,match:p=>x.isBlock(t,p)}),u=a?a[1]:[],s={anchor:x.start(t,[]),focus:i},l=!0;for(var[c,f]of x.nodes(t,{at:s,match:at.isText,reverse:!0,voids:r}))if(l)l=!1;else if(c.text!==""||j.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return x.above(t,Al(Al({},e),{},{match:n=>x.isVoid(t,n)}))},withoutNormalizing(t,e){var n=x.isNormalizing(t);x.setNormalizing(t,!1);try{e()}finally{x.setNormalizing(t,n)}x.normalize(t)}},TX={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(j.isPath)},FX=["children"],PX=["text"],I7=new WeakMap,tt={ancestor(t,e){var n=tt.get(t,e);if(at.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of j.ancestors(e,n)){var o=[tt.ancestor(t,r),r];yield o}},child(t,e){if(at.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var n=t.children[e];if(n==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return n},*children(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=tt.ancestor(t,e),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=tt.child(o,a),s=e.concat(a);yield[u,s],a=r?a-1:a+1}},common(t,e,n){var r=j.common(e,n);return[tt.get(t,r),r]},descendant(t,e){var n=tt.get(t,e);if(x.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of tt.nodes(t,e))r.length!==0&&(yield[n,r])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of tt.nodes(t,e))dt.isElement(n)&&(yield[n,r])},extractProps:t=>dt.isAncestor(t)?yi(t,FX):yi(t,PX),first(t,e){for(var n=e.slice(),r=tt.get(t,n);r&&!at.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(t,e){if(at.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var n=P0({children:t.children},r=>{var[o,i]=z.edges(e),a=tt.nodes(r,{reverse:!0,pass:p=>{var[,d]=p;return!z.includes(e,d)}});for(var[,u]of a){if(!z.includes(e,u)){var s=tt.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(j.equals(u,i.path)){var c=tt.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(j.equals(u,o.path)){var f=tt.leaf(r,u);f.text=f.text.slice(o.offset)}}x.isEditor(r)&&(r.selection=null)});return n.children},get(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(at.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(JSON.stringify(t)));n=n.children[o]}return n},has(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(at.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:t=>at.isText(t)||dt.isElement(t)||x.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=I7.get(t);if(e!==void 0)return e;var n=t.every(r=>tt.isNode(r));return I7.set(t,n),n},last(t,e){for(var n=e.slice(),r=tt.get(t,n);r&&!at.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(t,e){var n=tt.get(t,e);if(!at.isText(n))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of j.levels(e,n)){var o=tt.get(t,r);yield[o,r]}},matches:(t,e)=>dt.isElement(t)&&dt.isElementProps(e)&&dt.matches(t,e)||at.isText(t)&&at.isTextProps(e)&&at.matches(t,e),*nodes(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=e,{from:o=[],to:i}=e,a=new Set,u=[],s=t;!i||!(r?j.isBefore(u,i):j.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||at.isText(s)||s.children.length===0||n!=null&&n([s,u])!==!1){if(u.length===0)break;if(!r){var l=j.next(u);if(tt.has(t,l)){u=l,s=tt.get(t,u);continue}}r&&u[u.length-1]!==0?(u=j.previous(u),s=tt.get(t,u)):(u=j.parent(u),s=tt.get(t,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;j.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=tt.get(t,u)}},parent(t,e){var n=j.parent(e),r=tt.get(t,n);if(at.isText(r))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:t=>at.isText(t)?t.text:t.children.map(tt.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of tt.nodes(t,e))at.isText(n)&&(yield[n,r])}};function L7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Qe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?L7(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ua={isNodeOperation:t=>ua.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!Pn(t))return!1;switch(t.type){case"insert_node":case"remove_node":return j.isPath(t.path)&&tt.isNode(t.node);case"insert_text":case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&j.isPath(t.path);case"merge_node":return typeof t.position=="number"&&j.isPath(t.path)&&Pn(t.properties);case"move_node":return j.isPath(t.path)&&j.isPath(t.newPath);case"set_node":return j.isPath(t.path)&&Pn(t.properties)&&Pn(t.newProperties);case"set_selection":return t.properties===null&&z.isRange(t.newProperties)||t.newProperties===null&&z.isRange(t.properties)||Pn(t.properties)&&Pn(t.newProperties);case"split_node":return j.isPath(t.path)&&typeof t.position=="number"&&Pn(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>ua.isOperation(e)),isSelectionOperation:t=>ua.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>ua.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return Qe(Qe({},t),{},{type:"remove_node"});case"insert_text":return Qe(Qe({},t),{},{type:"remove_text"});case"merge_node":return Qe(Qe({},t),{},{type:"split_node",path:j.previous(t.path)});case"move_node":var{newPath:e,path:n}=t;if(j.equals(e,n))return t;if(j.isSibling(n,e))return Qe(Qe({},t),{},{path:e,newPath:n});var r=j.transform(n,t),o=j.transform(j.next(n),t);return Qe(Qe({},t),{},{path:r,newPath:o});case"remove_node":return Qe(Qe({},t),{},{type:"insert_node"});case"remove_text":return Qe(Qe({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return Qe(Qe({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return Qe(Qe({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Qe(Qe({},t),{},{type:"merge_node",path:j.next(t.path)})}}},j={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=j.levels(t,e);return r=n?r.slice(1):r.slice(0,-1)},common(t,e){for(var n=[],r=0;r<t.length&&r<e.length;r++){var o=t[r];if(o!==e[r])break;n.push(o)}return n},compare(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){if(t[r]<e[r])return-1;if(t[r]>e[r])return 1}return 0},endsAfter(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return j.equals(r,o)&&i>a},endsAt(t,e){var n=t.length,r=t.slice(0,n),o=e.slice(0,n);return j.equals(r,o)},endsBefore(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return j.equals(r,o)&&i<a},equals:(t,e)=>t.length===e.length&&t.every((n,r)=>n===e[r]),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>j.compare(t,e)===1,isAncestor:(t,e)=>t.length<e.length&&j.compare(t,e)===0,isBefore:(t,e)=>j.compare(t,e)===-1,isChild:(t,e)=>t.length===e.length+1&&j.compare(t,e)===0,isCommon:(t,e)=>t.length<=e.length&&j.compare(t,e)===0,isDescendant:(t,e)=>t.length>e.length&&j.compare(t,e)===0,isParent:(t,e)=>t.length+1===e.length&&j.compare(t,e)===0,isPath:t=>Array.isArray(t)&&(t.length===0||typeof t[0]=="number"),isSibling(t,e){if(t.length!==e.length)return!1;var n=t.slice(0,-1),r=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&j.equals(n,r)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=[],o=0;o<=t.length;o++)r.push(t.slice(0,o));return n&&r.reverse(),r},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!j.isAncestor(e,t)&&!j.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return P0(t,r=>{var{affinity:o="forward"}=n;if(t&&(t==null?void 0:t.length)!==0){if(r===null)return null;switch(e.type){case"insert_node":var{path:i}=e;(j.equals(i,r)||j.endsBefore(i,r)||j.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=e;if(j.equals(a,r)||j.isAncestor(a,r))return null;j.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;j.equals(u,r)||j.endsBefore(u,r)?r[u.length-1]-=1:j.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(j.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else j.endsBefore(l,r)?r[l.length-1]+=1:j.isAncestor(l,r)&&t[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:p}=e;if(j.equals(f,p))return;if(j.isAncestor(f,r)||j.equals(f,r)){var d=p.slice();return j.endsBefore(f,p)&&f.length<p.length&&(d[f.length-1]-=1),d.concat(r.slice(f.length))}j.isSibling(f,p)&&(j.isAncestor(p,r)||j.equals(p,r))?j.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:j.endsBefore(p,r)||j.equals(p,r)||j.isAncestor(p,r)?(j.endsBefore(f,r)&&(r[f.length-1]-=1),r[p.length-1]+=1):j.endsBefore(f,r)&&(j.equals(p,r)&&(r[p.length-1]+=1),r[f.length-1]-=1)}}})}},NX={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=j.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}};function R7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function M7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?R7(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Nt={compare(t,e){var n=j.compare(t.path,e.path);return n===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:n},isAfter:(t,e)=>Nt.compare(t,e)===1,isBefore:(t,e)=>Nt.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&j.equals(t.path,e.path),isPoint:t=>Pn(t)&&typeof t.offset=="number"&&j.isPath(t.path),transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return P0(t,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(e.type){case"insert_node":case"move_node":r.path=j.transform(i,e,n);break;case"insert_text":j.equals(e.path,i)&&e.offset<=a&&(r.offset+=e.text.length);break;case"merge_node":j.equals(e.path,i)&&(r.offset+=e.position),r.path=j.transform(i,e,n);break;case"remove_text":j.equals(e.path,i)&&e.offset<=a&&(r.offset-=Math.min(a-e.offset,e.text.length));break;case"remove_node":if(j.equals(e.path,i)||j.isAncestor(e.path,i))return null;r.path=j.transform(i,e,n);break;case"split_node":if(j.equals(e.path,i)){if(e.position===a&&o==null)return null;(e.position<a||e.position===a&&o==="forward")&&(r.offset-=e.position,r.path=j.transform(i,e,M7(M7({},n),{},{affinity:"forward"})))}else r.path=j.transform(i,e,n)}})}},jX={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=Nt.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},IX=["anchor","focus"];function V7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}var z={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:o}=t;return z.isBackward(t)===n?[r,o]:[o,r]},end(t){var[,e]=z.edges(t);return e},equals:(t,e)=>Nt.equals(t.anchor,e.anchor)&&Nt.equals(t.focus,e.focus),includes(t,e){if(z.isRange(e)){if(z.includes(t,e.anchor)||z.includes(t,e.focus))return!0;var[n,r]=z.edges(t),[o,i]=z.edges(e);return Nt.isBefore(n,o)&&Nt.isAfter(r,i)}var[a,u]=z.edges(t),s=!1,l=!1;return Nt.isPoint(e)?(s=Nt.compare(e,a)>=0,l=Nt.compare(e,u)<=0):(s=j.compare(e,a.path)>=0,l=j.compare(e,u.path)<=0),s&&l},intersection(t,e){var n=yi(t,IX),[r,o]=z.edges(t),[i,a]=z.edges(e),u=Nt.isBefore(r,i)?i:r,s=Nt.isBefore(o,a)?o:a;return Nt.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?V7(Object(f),!0).forEach(function(p){Io(l,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):V7(Object(f)).forEach(function(p){Object.defineProperty(l,p,Object.getOwnPropertyDescriptor(f,p))})}return l}({anchor:u,focus:s},n)},isBackward(t){var{anchor:e,focus:n}=t;return Nt.isAfter(e,n)},isCollapsed(t){var{anchor:e,focus:n}=t;return Nt.equals(e,n)},isExpanded:t=>!z.isCollapsed(t),isForward:t=>!z.isBackward(t),isRange:t=>Pn(t)&&Nt.isPoint(t.anchor)&&Nt.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=z.edges(t);return e},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return P0(t,r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var u=z.isCollapsed(r);z.isForward(r)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?z.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=Nt.transform(r.anchor,e,{affinity:o}),l=Nt.transform(r.focus,e,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l})}},LX={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=z.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},z7=(t,e)=>{for(var n in t){var r=t[n],o=e[n];if(Pn(r)&&Pn(o)){if(!z7(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 e)if(t[a]===void 0&&e[a]!==void 0)return!1;return!0},RX=["text"],MX=["anchor","focus"];function H7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function bi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?H7(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var at={equals(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return yi(i,RX)}return z7(r?o(t):t,r?o(e):e)},isText:t=>Pn(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>at.isText(e)),isTextProps:t=>t.text!==void 0,matches(t,e){for(var n in e)if(n!=="text"&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;return!0},decorations(t,e){var n=[bi({},t)];for(var r of e){var o=yi(r,MX),[i,a]=z.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 p=l,d=void 0,y=void 0;if(a.offset<s){var g=a.offset-f;y=bi(bi({},p),{},{text:p.text.slice(g)}),p=bi(bi({},p),{},{text:p.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;d=bi(bi({},p),{},{text:p.text.slice(0,v)}),p=bi(bi({},p),{},{text:p.text.slice(v)})}Object.assign(p,o),d&&u.push(d),u.push(p),y&&u.push(y)}}n=u}return n}};function U7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function od(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?U7(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var VX={transform(t,e){t.children=A7(t.children);var n=t.selection&&A7(t.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=tt.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 z.points(o))o[f]=Nt.transform(c,i);break;case"insert_text":var{path:p,offset:d,text:y}=i;if(y.length===0)break;var g=tt.leaf(r,p),v=g.text.slice(0,d),m=g.text.slice(d);if(g.text=v+y+m,o)for(var[h,w]of z.points(o))o[w]=Nt.transform(h,i);break;case"merge_node":var{path:E}=i,C=tt.get(r,E),D=j.previous(E),S=tt.get(r,D),A=tt.parent(r,E),k=E[E.length-1];if(at.isText(C)&&at.isText(S))S.text+=C.text;else{if(at.isText(C)||at.isText(S))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(E,"] to nodes of different interfaces: ").concat(C," ").concat(S));S.children.push(...C.children)}if(A.children.splice(k,1),o)for(var[R,V]of z.points(o))o[V]=Nt.transform(R,i);break;case"move_node":var{path:L,newPath:W}=i;if(j.isAncestor(L,W))throw new Error("Cannot move a path [".concat(L,"] to new path [").concat(W,"] because the destination is inside itself."));var H=tt.get(r,L),U=tt.parent(r,L),$=L[L.length-1];U.children.splice($,1);var J=j.transform(L,i),st=tt.get(r,j.parent(J)),lt=J[J.length-1];if(st.children.splice(lt,0,H),o)for(var[ct,B]of z.points(o))o[B]=Nt.transform(ct,i);break;case"remove_node":var{path:_}=i,N=_[_.length-1];if(tt.parent(r,_).children.splice(N,1),o)for(var[q,X]of z.points(o)){var K=Nt.transform(q,i);if(o!=null&&K!=null)o[X]=K;else{var ut=void 0,mt=void 0;for(var[bt,_t]of tt.texts(r)){if(j.compare(_t,_)!==-1){mt=[bt,_t];break}ut=[bt,_t]}var Y=!1;ut&&mt&&(Y=j.equals(mt[1],_)?!j.hasPrevious(mt[1]):j.common(ut[1],_).length<j.common(mt[1],_).length),ut&&!Y?(q.path=ut[1],q.offset=ut[0].text.length):mt?(q.path=mt[1],q.offset=0):o=null}}break;case"remove_text":var{path:Ht,offset:Ft,text:gt}=i;if(gt.length===0)break;var Pt=tt.leaf(r,Ht),ze=Pt.text.slice(0,Ft),Yt=Pt.text.slice(Ft+gt.length);if(Pt.text=ze+Yt,o)for(var[le,Ae]of z.points(o))o[Ae]=Nt.transform(le,i);break;case"set_node":var{path:Mn,properties:Gt,newProperties:cr}=i;if(Mn.length===0)throw new Error("Cannot set properties on the root node!");var Do=tt.get(r,Mn);for(var ii in cr){if(ii==="children"||ii==="text")throw new Error('Cannot set the "'.concat(ii,'" property of nodes!'));var hf=cr[ii];hf==null?delete Do[ii]:Do[ii]=hf}for(var el in Gt)cr.hasOwnProperty(el)||delete Do[el];break;case"set_selection":var{newProperties:Ao}=i;if(Ao==null)o=Ao;else{if(o==null){if(!z.isRange(Ao))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Ao)," when there is no current selection."));o=od({},Ao)}for(var ai in Ao){var Li=Ao[ai];if(Li==null){if(ai==="anchor"||ai==="focus")throw new Error('Cannot remove the "'.concat(ai,'" selection property'));delete o[ai]}else o[ai]=Li}}break;case"split_node":var{path:Vn,position:zn,properties:Hn}=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 Xn,Sn=tt.get(r,Vn),no=tt.parent(r,Vn),wg=Vn[Vn.length-1];if(at.isText(Sn)){var wu=Sn.text.slice(0,zn),Ri=Sn.text.slice(zn);Sn.text=wu,Xn=od(od({},Hn),{},{text:Ri})}else{var gf=Sn.children.slice(0,zn),nl=Sn.children.slice(zn);Sn.children=gf,Xn=od(od({},Hn),{},{children:nl})}if(no.children.splice(wg+1,0,Xn),o)for(var[vf,_o]of z.points(o))o[_o]=Nt.transform(vf,i)}return o})(t,n,e)}finally{t.children=_7(t.children),t.selection=n?Vu(n)?_7(n):n:null}}},zX=["text"],HX=["children"];function W7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function G7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?W7(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var UX={insertNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};x.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(tt.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(a||(a=t.selection?t.selection:t.children.length>0?x.end(t,[]):[0],s=!0),s==null&&(s=!1),z.isRange(a))if(r||(a=x.unhangRange(t,a)),z.isCollapsed(a))a=a.anchor;else{var[,c]=z.edges(a),f=x.pointRef(t,c);I.delete(t,{at:a}),a=f.unref()}if(Nt.isPoint(a)){u==null&&(u=at.isText(l)?D=>at.isText(D):t.isInline(l)?D=>at.isText(D)||x.isInline(t,D):D=>x.isBlock(t,D));var[p]=x.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!p)return;var[,d]=p,y=x.pathRef(t,d),g=x.isEnd(t,a,d);I.splitNodes(t,{at:a,match:u,mode:i,voids:o});var v=y.unref();a=g?j.next(v):v}var m=j.parent(a),h=a[a.length-1];if(o||!x.void(t,{at:m})){for(var w of e){var E=m.concat(h);h++,t.apply({type:"insert_node",path:E,node:w}),a=j.next(a)}if(a=j.previous(a),s){var C=x.end(t,a);C&&I.select(t,C)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};x.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:r="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=j.isPath(n)?_l(t,n):w=>x.isBlock(t,w)),n){var a=x.nodes(t,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,w=>{var[,E]=w;return x.pathRef(t,E)});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=x.node(t,j.parent(l)),[f,p]=c,d=l[l.length-1],{length:y}=f.children;if(y===1){var g=j.next(p);I.moveNodes(t,{at:l,to:g,voids:o}),I.removeNodes(t,{at:p,voids:o})}else if(d===0)I.moveNodes(t,{at:l,to:p,voids:o});else if(d===y-1){var v=j.next(p);I.moveNodes(t,{at:l,to:v,voids:o})}else{var m=j.next(l),h=j.next(p);I.splitNodes(t,{at:m,voids:o}),I.moveNodes(t,{at:l,to:h,voids:o})}}}})},mergeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};x.withoutNormalizing(t,()=>{var{match:n,at:r=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(r){if(n==null)if(j.isPath(r)){var[u]=x.parent(t,r);n=k=>u.children.includes(k)}else n=k=>x.isBlock(t,k);if(!o&&z.isRange(r)&&(r=x.unhangRange(t,r)),z.isRange(r))if(z.isCollapsed(r))r=r.anchor;else{var[,s]=z.edges(r),l=x.pointRef(t,s);I.delete(t,{at:r}),r=l.unref(),e.at==null&&I.select(t,r)}var[c]=x.nodes(t,{at:r,match:n,voids:i,mode:a}),f=x.previous(t,{at:r,match:n,voids:i,mode:a});if(c&&f){var[p,d]=c,[y,g]=f;if(d.length!==0&&g.length!==0){var v,m,h=j.next(g),w=j.common(d,g),E=j.isSibling(d,g),C=Array.from(x.levels(t,{at:d}),k=>{var[R]=k;return R}).slice(w.length).slice(0,-1),D=x.above(t,{at:d,mode:"highest",match:k=>C.includes(k)&&q7(t,k)}),S=D&&x.pathRef(t,D[1]);if(at.isText(p)&&at.isText(y)){var A=yi(p,zX);m=y.text.length,v=A}else{if(!dt.isElement(p)||!dt.isElement(y))throw new Error("Cannot merge the node at path [".concat(d,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(p)," ").concat(JSON.stringify(y)));A=yi(p,HX),m=y.children.length,v=A}E||I.moveNodes(t,{at:d,to:h,voids:i}),S&&I.removeNodes(t,{at:S.current,voids:i}),dt.isElement(y)&&x.isEmpty(t,y)||at.isText(y)&&y.text===""&&g[g.length-1]!==0?I.removeNodes(t,{at:g,voids:i}):t.apply({type:"merge_node",path:h,position:m,properties:v}),S&&S.unref()}}}})},moveNodes(t,e){x.withoutNormalizing(t,()=>{var{to:n,at:r=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(r){a==null&&(a=j.isPath(r)?_l(t,r):d=>x.isBlock(t,d));var u=x.pathRef(t,n),s=x.nodes(t,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,d=>{var[,y]=d;return x.pathRef(t,y)});for(var c of l){var f=c.unref(),p=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:p}),u.current&&j.isSibling(p,f)&&j.isAfter(p,f)&&(u.current=j.next(u.current))}u.unref()}})},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};x.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?_l(t,i):p=>x.isBlock(t,p)),!n&&z.isRange(i)&&(i=x.unhangRange(t,i));var u=x.nodes(t,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,p=>{var[,d]=p;return x.pathRef(t,d)});for(var l of s){var c=l.unref();if(c){var[f]=x.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};x.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=j.isPath(o)?_l(t,o):C=>x.isBlock(t,C)),!i&&z.isRange(o)&&(o=x.unhangRange(t,o)),u&&z.isRange(o)){if(z.isCollapsed(o)&&x.leaf(t,o.anchor)[0].text.length>0)return;var l=x.rangeRef(t,o,{affinity:"inward"}),[c,f]=z.edges(o),p=a==="lowest"?"lowest":"highest",d=x.isEnd(t,f,f.path);I.splitNodes(t,{at:f,match:r,mode:p,voids:s,always:!d});var y=x.isStart(t,c,c.path);I.splitNodes(t,{at:c,match:r,mode:p,voids:s,always:!y}),o=l.unref(),n.at==null&&I.select(t,o)}for(var[g,v]of x.nodes(t,{at:o,match:r,mode:a,voids:s})){var m={},h={};if(v.length!==0){var w=!1;for(var E in e)E!=="children"&&E!=="text"&&e[E]!==g[E]&&(w=!0,g.hasOwnProperty(E)&&(m[E]=g[E]),e[E]!=null&&(h[E]=e[E]));w&&t.apply({type:"set_node",path:v,properties:m,newProperties:h})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};x.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection,height:a=0,always:u=!1}=e;if(o==null&&(o=H=>x.isBlock(t,H)),z.isRange(i)&&(i=WX(t,i)),j.isPath(i)){var s=i,l=x.point(t,s),[c]=x.parent(t,s);o=H=>H===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=x.pointRef(t,i,{affinity:"backward"}),[p]=x.nodes(t,{at:i,match:o,mode:n,voids:r});if(p){var d=x.void(t,{at:i,mode:"highest"});if(!r&&d){var[y,g]=d;if(dt.isElement(y)&&t.isInline(y)){var v=x.after(t,g);if(!v){var m=j.next(g);I.insertNodes(t,{text:""},{at:m,voids:r}),v=x.point(t,m)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var h=x.pointRef(t,i),w=i.path.length-a,[,E]=p,C=i.path.slice(0,w),D=a===0?i.offset:i.path[w]+0;for(var[S,A]of x.levels(t,{at:C,reverse:!0,voids:r})){var k=!1;if(A.length<E.length||A.length===0||!r&&x.isVoid(t,S))break;var R=f.current,V=x.isEnd(t,R,A);if(u||!f||!x.isEdge(t,R,A)){k=!0;var L=tt.extractProps(S);t.apply({type:"split_node",path:A,position:D,properties:L})}D=A[A.length-1]+(k||V?1:0)}if(e.at==null){var W=h.current||x.end(t,[]);I.select(t,W)}f.unref(),h.unref()}}})},unsetNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var o of e)r[o]=null;I.setNodes(t,r,n)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};x.withoutNormalizing(t,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?_l(t,i):p=>x.isBlock(t,p)),j.isPath(i)&&(i=x.range(t,i));var u=z.isRange(i)?x.rangeRef(t,i):null,s=x.nodes(t,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,p=>{var[,d]=p;return x.pathRef(t,d)}).reverse(),c=function(p){var d=p.unref(),[y]=x.node(t,d),g=x.range(t,d);r&&u&&(g=z.intersection(u.current,g)),I.liftNodes(t,{at:g,match:v=>dt.isAncestor(y)&&y.children.includes(v),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};x.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=t.selection}=n;if(u){if(a==null&&(a=j.isPath(u)?_l(t,u):t.isInline(e)?v=>x.isInline(t,v)||at.isText(v):v=>x.isBlock(t,v)),o&&z.isRange(u)){var[s,l]=z.edges(u),c=x.rangeRef(t,u,{affinity:"inward"});I.splitNodes(t,{at:l,match:a,voids:i}),I.splitNodes(t,{at:s,match:a,voids:i}),u=c.unref(),n.at==null&&I.select(t,u)}var f=Array.from(x.nodes(t,{at:u,match:t.isInline(e)?v=>x.isBlock(t,v):v=>x.isEditor(v),mode:"lowest",voids:i}));for(var[,p]of f){var d=z.isRange(u)?z.intersection(u,x.range(t,p)):u;if(d){var y=Array.from(x.nodes(t,{at:d,match:a,mode:r,voids:i}));if(y.length>0){var g=function(){var[v]=y,m=y[y.length-1],[,h]=v,[,w]=m;if(h.length===0&&w.length===0)return"continue";var E=j.equals(h,w)?j.parent(h):j.common(h,w),C=x.range(t,h,w),D=x.node(t,E),[S]=D,A=E.length+1,k=j.next(w.slice(0,A)),R=G7(G7({},e),{},{children:[]});I.insertNodes(t,R,{at:k,voids:i}),I.moveNodes(t,{at:C,match:V=>dt.isAncestor(S)&&S.children.includes(V),to:k.concat(0),voids:i})}();if(g==="continue")continue}}}}})}},q7=(t,e)=>{if(dt.isElement(e)){var n=e;return!!x.isVoid(t,e)||n.children.length===1&&q7(t,n.children[0])}return!x.isEditor(e)},WX=(t,e)=>{if(z.isCollapsed(e))return e.anchor;var[,n]=z.edges(e),r=x.pointRef(t,n);return I.delete(t,{at:e}),r.unref()},_l=(t,e)=>{var[n]=x.node(t,e);return r=>r===n};function $7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function K7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$7(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var GX={collapse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=e,{selection:r}=t;if(r){if(n==="anchor")I.select(t,r.anchor);else if(n==="focus")I.select(t,r.focus);else if(n==="start"){var[o]=z.edges(r);I.select(t,o)}else if(n==="end"){var[,i]=z.edges(r);I.select(t,i)}}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:r=1,unit:o="character",reverse:i=!1}=e,{edge:a=null}=e;if(n){a==="start"&&(a=z.isBackward(n)?"focus":"anchor"),a==="end"&&(a=z.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(a==null||a==="anchor"){var f=i?x.before(t,u,l):x.after(t,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var p=i?x.before(t,s,l):x.after(t,s,l);p&&(c.focus=p)}I.setSelection(t,c)}},select(t,e){var{selection:n}=t;if(e=x.range(t,e),n)I.setSelection(t,e);else{if(!z.isRange(e))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(e)));t.apply({type:"set_selection",properties:n,newProperties:e})}},setPoint(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=t,{edge:o="both"}=n;if(r){o==="start"&&(o=z.isBackward(r)?"focus":"anchor"),o==="end"&&(o=z.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;I.setSelection(t,{[o==="anchor"?"anchor":"focus"]:K7(K7({},u),e)})}},setSelection(t,e){var{selection:n}=t,r={},o={};if(n){for(var i in e)(i==="anchor"&&e.anchor!=null&&!Nt.equals(e.anchor,n.anchor)||i==="focus"&&e.focus!=null&&!Nt.equals(e.focus,n.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==n[i])&&(r[i]=n[i],o[i]=e[i]);Object.keys(r).length>0&&t.apply({type:"set_selection",properties:r,newProperties:o})}}},qX={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};x.withoutNormalizing(t,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=e,{at:a=t.selection,hanging:u=!1}=e;if(a){if(z.isRange(a)&&z.isCollapsed(a)&&(a=a.anchor),Nt.isPoint(a)){var s=x.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?x.before(t,a,c)||x.start(t,[]):x.after(t,a,c)||x.end(t,[])},u=!0}}if(j.isPath(a))I.removeNodes(t,{at:a,voids:i});else if(!z.isCollapsed(a)){if(!u){var[,f]=z.edges(a),p=x.end(t,[]);Nt.equals(f,p)||(a=x.unhangRange(t,a,{voids:i}))}var[d,y]=z.edges(a),g=x.above(t,{match:mt=>x.isBlock(t,mt),at:d,voids:i}),v=x.above(t,{match:mt=>x.isBlock(t,mt),at:y,voids:i}),m=g&&v&&!j.equals(g[1],v[1]),h=j.equals(d.path,y.path),w=i?null:x.void(t,{at:d,mode:"highest"}),E=i?null:x.void(t,{at:y,mode:"highest"});if(w){var C=x.before(t,d);C&&g&&j.isAncestor(g[1],C.path)&&(d=C)}if(E){var D=x.after(t,y);D&&v&&j.isAncestor(v[1],D.path)&&(y=D)}var S,A=[];for(var k of x.nodes(t,{at:a,voids:i})){var[R,V]=k;S&&j.compare(V,S)===0||(!i&&x.isVoid(t,R)||!j.isCommon(V,d.path)&&!j.isCommon(V,y.path))&&(A.push(k),S=V)}var L=Array.from(A,mt=>{var[,bt]=mt;return x.pathRef(t,bt)}),W=x.pointRef(t,d),H=x.pointRef(t,y);if(!h&&!w){var U=W.current,[$]=x.leaf(t,U),{path:J}=U,{offset:st}=d,lt=$.text.slice(st);lt.length>0&&t.apply({type:"remove_text",path:J,offset:st,text:lt})}for(var ct of L){var B=ct.unref();I.removeNodes(t,{at:B,voids:i})}if(!E){var _=H.current,[N]=x.leaf(t,_),{path:q}=_,X=h?d.offset:0,K=N.text.slice(X,y.offset);K.length>0&&t.apply({type:"remove_text",path:q,offset:X,text:K})}!h&&m&&H.current&&W.current&&I.mergeNodes(t,{at:H.current,hanging:!0,voids:i});var ut=n?W.unref()||H.unref():H.unref()||W.unref();e.at==null&&ut&&I.select(t,ut)}}})},insertFragment(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};x.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=t.selection}=n;if(e.length&&i){if(z.isRange(i))if(r||(i=x.unhangRange(t,i)),z.isCollapsed(i))i=i.anchor;else{var[,a]=z.edges(i);if(!o&&x.void(t,{at:a}))return;var u=x.pointRef(t,a);I.delete(t,{at:i}),i=u.unref()}else j.isPath(i)&&(i=x.start(t,i));if(o||!x.void(t,{at:i})){var s=x.above(t,{at:i,match:_=>x.isInline(t,_),mode:"highest",voids:o});if(s){var[,l]=s;x.isEnd(t,i,l)?i=x.after(t,l):x.isStart(t,i,l)&&(i=x.before(t,l))}var c=x.above(t,{match:_=>x.isBlock(t,_),at:i,voids:o}),[,f]=c,p=x.isStart(t,i,f),d=x.isEnd(t,i,f),y=p&&d,g=!p||p&&d,v=!d,[,m]=tt.first({children:e},[]),[,h]=tt.last({children:e},[]),w=[],E=_=>{var[N,q]=_;return q.length!==0&&(!!y||!(g&&j.isAncestor(q,m)&&dt.isElement(N)&&!t.isVoid(N)&&!t.isInline(N))&&!(v&&j.isAncestor(q,h)&&dt.isElement(N)&&!t.isVoid(N)&&!t.isInline(N)))};for(var C of tt.nodes({children:e},{pass:E}))E(C)&&w.push(C);var D=[],S=[],A=[],k=!0,R=!1;for(var[V]of w)dt.isElement(V)&&!t.isInline(V)?(k=!1,R=!0,S.push(V)):k?D.push(V):A.push(V);var[L]=x.nodes(t,{at:i,match:_=>at.isText(_)||x.isInline(t,_),mode:"highest",voids:o}),[,W]=L,H=x.isStart(t,i,W),U=x.isEnd(t,i,W),$=x.pathRef(t,d?j.next(f):f),J=x.pathRef(t,U?j.next(W):W),st=x.pathRef(t,f);I.splitNodes(t,{at:i,match:_=>R?x.isBlock(t,_):at.isText(_)||x.isInline(t,_),mode:R?"lowest":"highest",voids:o});var lt=x.pathRef(t,!H||H&&U?j.next(W):W);if(I.insertNodes(t,D,{at:lt.current,match:_=>at.isText(_)||x.isInline(t,_),mode:"highest",voids:o}),y&&S.length&&I.delete(t,{at:st.unref(),voids:o}),I.insertNodes(t,S,{at:$.current,match:_=>x.isBlock(t,_),mode:"lowest",voids:o}),I.insertNodes(t,A,{at:J.current,match:_=>at.isText(_)||x.isInline(t,_),mode:"highest",voids:o}),!n.at){var ct;ct=A.length>0?j.previous(J.current):S.length>0?j.previous($.current):j.previous(lt.current);var B=x.end(t,ct);I.select(t,B)}lt.unref(),$.unref(),J.unref()}}})},insertText(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};x.withoutNormalizing(t,()=>{var{voids:r=!1}=n,{at:o=t.selection}=n;if(o){if(j.isPath(o)&&(o=x.range(t,o)),z.isRange(o))if(z.isCollapsed(o))o=o.anchor;else{var i=z.end(o);if(!r&&x.void(t,{at:i}))return;var a=x.pointRef(t,i);I.delete(t,{at:o,voids:r}),o=a.unref(),I.setSelection(t,{anchor:o,focus:o})}if(r||!x.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}})}};function Y7(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function I0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Y7(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y7(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var I=I0(I0(I0(I0({},VX),UX),GX),qX),Bw="[object Map]",Tw="[object Set]",$X=/^\[object .+?Constructor\]$/,KX=/^(?:0|[1-9]\d*)$/,YX="[\\ud800-\\udfff]",Fw="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Pw="\\ud83c[\\udffb-\\udfff]",X7="[^\\ud800-\\udfff]",Z7="(?:\\ud83c[\\udde6-\\uddff]){2}",J7="[\\ud800-\\udbff][\\udc00-\\udfff]",Q7="(?:"+Fw+"|"+Pw+")?",XX="[\\ufe0e\\ufe0f]?"+Q7+("(?:\\u200d(?:"+[X7,Z7,J7].join("|")+")[\\ufe0e\\ufe0f]?"+Q7+")*"),ZX="(?:"+[X7+Fw+"?",Fw,Z7,J7,YX].join("|")+")",JX=RegExp(Pw+"(?="+Pw+")|"+ZX+XX,"g"),QX=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),tZ=typeof he=="object"&&he&&he.Object===Object&&he,eZ=typeof self=="object"&&self&&self.Object===Object&&self,Uu=tZ||eZ||Function("return this")();function nZ(t,e){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}(e,function(n){return t[n]})}function rZ(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function oZ(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}function iZ(t){return function(e){return QX.test(e)}(t)?function(e){return e.match(JX)||[]}(t):function(e){return e.split("")}(t)}var tO,eO,aZ=Function.prototype,L0=Object.prototype,Nw=Uu["__core-js_shared__"],nO=function(){var t=/[^.]+$/.exec(Nw&&Nw.keys&&Nw.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),rO=aZ.toString,R0=L0.hasOwnProperty,id=L0.toString,uZ=RegExp("^"+rO.call(R0).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oO=Uu.Symbol,jw=oO?oO.iterator:void 0,sZ=L0.propertyIsEnumerable,lZ=(tO=Object.keys,eO=Object,function(t){return tO(eO(t))}),Iw=ad(Uu,"DataView"),Lw=ad(Uu,"Map"),Rw=ad(Uu,"Promise"),Mw=ad(Uu,"Set"),Vw=ad(Uu,"WeakMap"),cZ=Gu(Iw),fZ=Gu(Lw),dZ=Gu(Rw),pZ=Gu(Mw),hZ=Gu(Vw);function gZ(t,e){var n=iO(t)||function(a){return function(u){return sO(u)&&zw(u)}(a)&&R0.call(a,"callee")&&(!sZ.call(a,"callee")||id.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],r=n.length,o=!!r;for(var i in t)!e&&!R0.call(t,i)||o&&(i=="length"||yZ(i,r))||n.push(i);return n}function vZ(t){if(!uO(t)||function(n){return!!nO&&nO in n}(t))return!1;var e=aO(t)||function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch{}return r}(t)?uZ:$X;return e.test(Gu(t))}function mZ(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||L0,e!==r)return lZ(t);var e,n,r,o=[];for(var i in Object(t))R0.call(t,i)&&i!="constructor"&&o.push(i);return o}function ad(t,e){var n=function(r,o){return r==null?void 0:r[o]}(t,e);return vZ(n)?n:void 0}var Wu=function(t){return id.call(t)};function yZ(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||KX.test(t))&&t>-1&&t%1==0&&t<e}function Gu(t){if(t!=null){try{return rO.call(t)}catch{}try{return t+""}catch{}}return""}(Iw&&Wu(new Iw(new ArrayBuffer(1)))!="[object DataView]"||Lw&&Wu(new Lw)!=Bw||Rw&&Wu(Rw.resolve())!="[object Promise]"||Mw&&Wu(new Mw)!=Tw||Vw&&Wu(new Vw)!="[object WeakMap]")&&(Wu=function(t){var e=id.call(t),n=e=="[object Object]"?t.constructor:void 0,r=n?Gu(n):void 0;if(r)switch(r){case cZ:return"[object DataView]";case fZ:return Bw;case dZ:return"[object Promise]";case pZ:return Tw;case hZ:return"[object WeakMap]"}return e});var iO=Array.isArray;function zw(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!aO(t)}function aO(t){var e=uO(t)?id.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function uO(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function sO(t){return!!t&&typeof t=="object"}function bZ(t){return t?nZ(t,function(e){return zw(e)?gZ(e):mZ(e)}(t)):[]}var lO=function(t){if(!t)return[];if(zw(t))return function(n){return typeof n=="string"||!iO(n)&&sO(n)&&id.call(n)=="[object String]"}(t)?iZ(t):function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o<i;)r[o]=n[o];return r}(t);if(jw&&t[jw])return function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o}(t[jw]());var e=Wu(t);return(e==Bw?rZ:e==Tw?oZ:bZ)(t)};function cO(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Hw(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(n){t[n]===void 0?t[n]=e[n]:cO(e[n])&&cO(t[n])&&Object.keys(e[n]).length>0&&Hw(t[n],e[n])})}var fO={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 ud(){var t=typeof document<"u"?document:{};return Hw(t,fO),t}var wZ={document:fO,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(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout<"u"&&clearTimeout(t)}};function qu(){var t=typeof window<"u"?window:{};return Hw(t,wZ),t}function Uw(t){return Uw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Uw(t)}function M0(t,e){return M0=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},M0(t,e)}function EZ(){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 Ww(t,e,n){return Ww=EZ()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&M0(u,i.prototype),u},Ww.apply(null,arguments)}function Gw(t){var e=typeof Map=="function"?new Map:void 0;return Gw=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(e!==void 0){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return Ww(n,arguments,Uw(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),M0(r,n)},Gw(t)}var sa=function(t){var e,n;function r(o){var i,a,u;return i=t.call.apply(t,[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=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(Gw(Array));function V0(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,V0(n)):e.push(n)}),e}function dO(t,e){return Array.prototype.filter.call(t,e)}function T(t,e){var n=qu(),r=ud(),o=[];if(!e&&t instanceof sa)return t;if(!t)return new sa(o);if(typeof t=="string"){var i=t.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=[],p=c.querySelectorAll(l),d=0;d<p.length;d+=1)f.push(p[d]);return f}(t.trim(),e||r)}else if(t.nodeType||t===n||t===r)o.push(t);else if(Array.isArray(t)){if(t instanceof sa)return t;o=t}return new sa(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 Ol(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=V0(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,r)}),this}function kl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=V0(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,r)}),this}function Bl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=V0(e.map(function(o){return o.split(" ")}));return dO(this,function(o){return r.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function Ir(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(t,e);else for(var r in t)this[n][r]=t[r],this[n].setAttribute(r,t[r]);return this}function z0(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function Tl(){var t=this[0];if(t){var e,n={};if(t.dataset)for(var r in t.dataset)n[r]=t.dataset[r];else for(var o=0;o<t.attributes.length;o+=1){var i=t.attributes[o];i.name.indexOf("data-")>=0&&(n[e=i.name.split("data-")[1],e.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 Lo(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<e.selectedOptions.length;r+=1)n.push(e.selectedOptions[r].value);return n}return e.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(t)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=t.indexOf(i.options[a].value)>=0;else i.value=t}return this}function Ro(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];function u(g){var v=g.target;if(v){var m=g.target.dom7EventData||[];if(m.indexOf(g)<0&&m.unshift(g),T(v).is(o))i.apply(v,m);else for(var h=T(v).parents(),w=0;w<h.length;w+=1)T(h[w]).is(o)&&i.apply(h[w],m)}}function s(g){var v=g&&g.target&&g.target.dom7EventData||[];v.indexOf(g)<0&&v.unshift(g),i.apply(this,v)}typeof e[1]=="function"&&(r=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var p=this[f];if(o)for(l=0;l<c.length;l+=1){var d=c[l];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[d]||(p.dom7LiveListeners[d]=[]),p.dom7LiveListeners[d].push({listener:i,proxyListener:u}),p.addEventListener(d,u,a)}else for(l=0;l<c.length;l+=1){var y=c[l];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[y]||(p.dom7Listeners[y]=[]),p.dom7Listeners[y].push({listener:i,proxyListener:s}),p.addEventListener(y,s,a)}}return this}function pO(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];typeof e[1]=="function"&&(r=e[0],i=e[1],a=e[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],p=void 0;if(!o&&f.dom7Listeners?p=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(p=f.dom7LiveListeners[l]),p&&p.length)for(var d=p.length-1;d>=0;d-=1){var y=p[d];i&&y.listener===i||i&&y.listener&&y.listener.dom7proxy&&y.listener.dom7proxy===i?(f.removeEventListener(l,y.proxyListener,a),p.splice(d,1)):i||(f.removeEventListener(l,y.proxyListener,a),p.splice(d,1))}}return this}function H0(){var t=qu();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function U0(){var t=qu();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function hO(){if(this.length>0){var t=qu(),e=ud(),n=this[0],r=n.getBoundingClientRect(),o=e.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===t?t.scrollY:n.scrollTop,s=n===t?t.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Fl(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function W0(){for(var t=qu(),e=0;e<this.length;e+=1){var n=this[e];n.style.display==="none"&&(n.style.display=""),t.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function G0(t,e){var n,r=qu();if(arguments.length===1){if(typeof t!="string"){for(n=0;n<this.length;n+=1)for(var o in t)this[n].style[o]=t[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(t)}if(arguments.length===2&&typeof t=="string"){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this}function q0(t){return t?(this.forEach(function(e,n){t.apply(e,[e,n])}),this):this}function gO(t){return T(dO(this,t))}function la(t){if(t===void 0)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function $0(t){if(t===void 0)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function vO(t){var e,n,r=qu(),o=ud(),i=this[0];if(!i||t===void 0)return!1;if(typeof t=="string"){if(i.matches)return i.matches(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);for(e=T(t),n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}if(t===o)return i===o;if(t===r)return i===r;if(t.nodeType||t instanceof sa){for(e=t.nodeType?[t]:t,n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}return!1}function Lr(){for(var t,e=ud(),n=0;n<arguments.length;n+=1){t=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof t=="string"){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[r].appendChild(o.firstChild)}else if(t instanceof sa)for(var i=0;i<t.length;i+=1)this[r].appendChild(t[i]);else this[r].appendChild(t)}return this}function mO(t){var e,n,r=ud();for(e=0;e<this.length;e+=1)if(typeof t=="string"){var o=r.createElement("div");for(o.innerHTML=t,n=o.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(o.childNodes[n],this[e].childNodes[0])}else if(t instanceof sa)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function Pl(t){for(var e=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(t?T(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return T(e)}function K0(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)t?T(r).is(t)&&e.push(r):e.push(r),r=r.parentNode;return T(e)}function Nl(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(t),o=0;o<r.length;o+=1)e.push(r[o]);return T(e)}function jl(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)t&&!T(r[o]).is(t)||e.push(r[o]);return T(e)}function Il(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function Ll(){for(var t=0;t<this.length;t+=1){var e=this[t];if(e.nodeType===1){for(var n=0;n<e.childNodes.length;n+=1)e.childNodes[n].parentNode&&e.childNodes[n].parentNode.removeChild(e.childNodes[n]);e.textContent=""}}return this}T.fn=sa.prototype;var CZ="resize scroll".split(" ");function yO(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)CZ.indexOf(t)<0&&(t in this[o]?this[o][t]():T(this[o]).trigger(t));return this}return this.on.apply(this,[t].concat(n))}}var bO=yO("click"),ca=yO("focus"),xZ="[object GeneratorFunction]",SZ=/^(?:0|[1-9]\d*)$/;function DZ(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}var Y0=Object.prototype,qw=Y0.hasOwnProperty,wO=Y0.toString,AZ=Y0.propertyIsEnumerable,_Z=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object);function OZ(t,e){var n=CO(t)||function(a){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&$w(u)}(a)&&qw.call(a,"callee")&&(!AZ.call(a,"callee")||wO.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],r=n.length,o=!!r;for(var i in t)!e&&!qw.call(t,i)||o&&(i=="length"||FZ(i,r))||n.push(i);return n}var EO,kZ=(EO=function(t,e){return t&&BZ(t,e,PZ)},function(t,e){if(t==null)return t;if(!$w(t))return EO(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&e(o[r],r,o)!==!1;);return t}),BZ=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),u=a.length;u--;){var s=a[t?u:++o];if(n(i[s],s,i)===!1)break}return e}}();function TZ(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||Y0,e!==r)return _Z(t);var e,n,r,o=[];for(var i in Object(t))qw.call(t,i)&&i!="constructor"&&o.push(i);return o}function FZ(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||SZ.test(t))&&t>-1&&t%1==0&&t<e}var CO=Array.isArray;function $w(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var n=function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")}(e)?wO.call(e):"";return n=="[object Function]"||n==xZ}(t)}function PZ(t){return $w(t)?OZ(t):TZ(t)}function NZ(t){return t}var Kw=function(t,e){return(CO(t)?DZ:kZ)(t,typeof e=="function"?e:NZ)};let xO=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e};var jZ=/^\s+|\s+$/g,IZ=/^[-+]0x[0-9a-f]+$/i,LZ=/^0b[01]+$/i,RZ=/^0o[0-7]+$/i,MZ=parseInt,VZ=typeof he=="object"&&he&&he.Object===Object&&he,zZ=typeof self=="object"&&self&&self.Object===Object&&self,HZ=VZ||zZ||Function("return this")(),UZ=Object.prototype.toString,WZ=Math.max,GZ=Math.min,Yw=function(){return HZ.Date.now()};function qZ(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(w){var E=r,C=o;return r=o=void 0,l=w,a=t.apply(C,E)}function y(w){return l=w,u=setTimeout(v,e),c?d(w):a}function g(w){var E=w-s;return s===void 0||E>=e||E<0||f&&w-l>=i}function v(){var w=Yw();if(g(w))return m(w);u=setTimeout(v,function(E){var C=e-(E-s);return f?GZ(C,i-(E-l)):C}(w))}function m(w){return u=void 0,p&&r?d(w):(r=o=void 0,a)}function h(){var w=Yw(),E=g(w);if(r=arguments,o=this,s=w,E){if(u===void 0)return y(s);if(f)return u=setTimeout(v,e),d(s)}return u===void 0&&(u=setTimeout(v,e)),a}return e=SO(e)||0,X0(n)&&(c=!!n.leading,i=(f="maxWait"in n)?WZ(SO(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),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(Yw())},h}function X0(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function SO(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&UZ.call(r)=="[object Symbol]"}(t))return NaN;if(X0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=X0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(jZ,"");var n=LZ.test(t);return n||RZ.test(t)?MZ(t.slice(2),n?2:8):IZ.test(t)?NaN:+t}var $u=function(t,e,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return X0(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),qZ(t,e,{leading:r,maxWait:e,trailing:o})};const $Z={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,n){return document.createElementNS(t,e,n)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return t.nodeType===1},isText:function(t){return t.nodeType===3},isComment:function(t){return t.nodeType===8}};function sd(t,e,n,r,o){return{sel:t,data:e,children:n,text:r,elm:o,key:e===void 0?void 0:e.key}}const Xw=Array.isArray;function Z0(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function Zw(t){return t===void 0}function Er(t){return t!==void 0}const DO=sd("",{},[],void 0,void 0);function ld(t,e){var n,r;const o=t.key===e.key,i=((n=t.data)===null||n===void 0?void 0:n.is)===((r=e.data)===null||r===void 0?void 0:r.is);return t.sel===e.sel&&o&&i}function KZ(t,e,n){var r;const o={};for(let i=e;i<=n;++i){const a=(r=t[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const YZ=["create","update","remove","destroy","pre","post"];function XZ(t,e){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=e!==void 0?e:$Z;for(const f of YZ)for(const p of t){const d=p[f];d!==void 0&&n[f].push(d)}function o(f){const p=f.id?"#"+f.id:"",d=f.getAttribute("class"),y=d?"."+d.split(" ").join("."):"";return sd(r.tagName(f).toLowerCase()+p+y,{},[],void 0,f)}function i(f,p){return function(){if(--p==0){const d=r.parentNode(f);r.removeChild(d,f)}}}function a(f,p){var d,y;let g,v=f.data;if(v!==void 0){const w=(d=v.hook)===null||d===void 0?void 0:d.init;Er(w)&&(w(f),v=f.data)}const m=f.children,h=f.sel;if(h==="!")Zw(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(h!==void 0){const w=h.indexOf("#"),E=h.indexOf(".",w),C=w>0?w:h.length,D=E>0?E:h.length,S=w!==-1||E!==-1?h.slice(0,Math.min(C,D)):h,A=f.elm=Er(v)&&Er(g=v.ns)?r.createElementNS(g,S,v):r.createElement(S,v);for(C<D&&A.setAttribute("id",h.slice(C+1,D)),E>0&&A.setAttribute("class",h.slice(D+1).replace(/\./g," ")),g=0;g<n.create.length;++g)n.create[g](DO,f);if(Xw(m))for(g=0;g<m.length;++g){const R=m[g];R!=null&&r.appendChild(A,a(R,p))}else Z0(f.text)&&r.appendChild(A,r.createTextNode(f.text));const k=f.data.hook;Er(k)&&((y=k.create)===null||y===void 0||y.call(k,DO,f),k.insert&&p.push(f))}else f.elm=r.createTextNode(f.text);return f.elm}function u(f,p,d,y,g,v){for(;y<=g;++y){const m=d[y];m!=null&&r.insertBefore(f,a(m,v),p)}}function s(f){var p,d;const y=f.data;if(y!==void 0){(d=(p=y==null?void 0:y.hook)===null||p===void 0?void 0:p.destroy)===null||d===void 0||d.call(p,f);for(let g=0;g<n.destroy.length;++g)n.destroy[g](f);if(f.children!==void 0)for(let g=0;g<f.children.length;++g){const v=f.children[g];v!=null&&typeof v!="string"&&s(v)}}}function l(f,p,d,y){for(var g,v;d<=y;++d){let m,h;const w=p[d];if(w!=null)if(Er(w.sel)){s(w),m=n.remove.length+1,h=i(w.elm,m);for(let C=0;C<n.remove.length;++C)n.remove[C](w,h);const E=(v=(g=w==null?void 0:w.data)===null||g===void 0?void 0:g.hook)===null||v===void 0?void 0:v.remove;Er(E)?E(w,h):h()}else r.removeChild(f,w.elm)}}function c(f,p,d){var y,g,v,m,h;const w=(y=p.data)===null||y===void 0?void 0:y.hook;(g=w==null?void 0:w.prepatch)===null||g===void 0||g.call(w,f,p);const E=p.elm=f.elm,C=f.children,D=p.children;if(f!==p){if(p.data!==void 0){for(let S=0;S<n.update.length;++S)n.update[S](f,p);(m=(v=p.data.hook)===null||v===void 0?void 0:v.update)===null||m===void 0||m.call(v,f,p)}Zw(p.text)?Er(C)&&Er(D)?C!==D&&function(S,A,k,R){let V,L,W,H,U=0,$=0,J=A.length-1,st=A[0],lt=A[J],ct=k.length-1,B=k[0],_=k[ct];for(;U<=J&&$<=ct;)st==null?st=A[++U]:lt==null?lt=A[--J]:B==null?B=k[++$]:_==null?_=k[--ct]:ld(st,B)?(c(st,B,R),st=A[++U],B=k[++$]):ld(lt,_)?(c(lt,_,R),lt=A[--J],_=k[--ct]):ld(st,_)?(c(st,_,R),r.insertBefore(S,st.elm,r.nextSibling(lt.elm)),st=A[++U],_=k[--ct]):ld(lt,B)?(c(lt,B,R),r.insertBefore(S,lt.elm,st.elm),lt=A[--J],B=k[++$]):(V===void 0&&(V=KZ(A,U,J)),L=V[B.key],Zw(L)?r.insertBefore(S,a(B,R),st.elm):(W=A[L],W.sel!==B.sel?r.insertBefore(S,a(B,R),st.elm):(c(W,B,R),A[L]=void 0,r.insertBefore(S,W.elm,st.elm))),B=k[++$]);(U<=J||$<=ct)&&(U>J?(H=k[ct+1]==null?null:k[ct+1].elm,u(S,H,k,$,ct,R)):l(S,A,U,J))}(E,C,D,d):Er(D)?(Er(f.text)&&r.setTextContent(E,""),u(E,null,D,0,D.length-1,d)):Er(C)?l(E,C,0,C.length-1):Er(f.text)&&r.setTextContent(E,""):f.text!==p.text&&(Er(C)&&l(E,C,0,C.length-1),r.setTextContent(E,p.text)),(h=w==null?void 0:w.postpatch)===null||h===void 0||h.call(w,f,p)}}return function(f,p){let d,y,g;const v=[];for(d=0;d<n.pre.length;++d)n.pre[d]();for(function(m){return m.sel!==void 0}(f)||(f=o(f)),ld(f,p)?c(f,p,v):(y=f.elm,g=r.parentNode(y),a(p,v),g!==null&&(r.insertBefore(g,p.elm,r.nextSibling(y)),l(g,[f],0,0))),d=0;d<v.length;++d)v[d].data.hook.insert(v[d]);for(d=0;d<n.post.length;++d)n.post[d]();return p}}function AO(t,e,n){if(t.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&e!==void 0)for(let r=0;r<e.length;++r){const o=e[r].data;o!==void 0&&AO(o,e[r].children,e[r].sel)}}function Rl(t,e,n){let r,o,i,a={};if(n!==void 0?(e!==null&&(a=e),Xw(n)?r=n:Z0(n)?o=n.toString():n&&n.sel&&(r=[n])):e!=null&&(Xw(e)?r=e:Z0(e)?o=e.toString():e&&e.sel?r=[e]:a=e),r!==void 0)for(i=0;i<r.length;++i)Z0(r[i])&&(r[i]=sd(void 0,void 0,void 0,r[i],void 0));return t[0]!=="s"||t[1]!=="v"||t[2]!=="g"||t.length!==3&&t[3]!=="."&&t[3]!=="#"||AO(a,r,t),sd(t,a,r,o,void 0)}function _O(t,e){let n;const r=e.elm;let o=t.data.attrs,i=e.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 ZZ={create:_O,update:_O};function OO(t,e){let n,r;const o=e.elm;let i=t.data.class,a=e.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 JZ={create:OO,update:OO},kO=/[A-Z]/g;function BO(t,e){const n=e.elm;let r,o=t.data.dataset,i=e.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(kO,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(kO,"-$&").toLowerCase(),i[r]))}const QZ={create:BO,update:BO};function TO(t,e,n){if(typeof t=="function")t.call(e,n,e);else if(typeof t=="object")for(let r=0;r<t.length;r++)TO(t[r],e,n)}function tJ(t,e){const n=t.type,r=e.data.on;r&&r[n]&&TO(r[n],e,t)}function Jw(t,e){const n=t.data.on,r=t.listener,o=t.elm,i=e&&e.data.on,a=e&&e.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=e.listener=t.listener||function l(c){tJ(c,l.vnode)};if(s.vnode=e,n)for(u in i)n[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const eJ={create:Jw,update:Jw,destroy:Jw};function FO(t,e){let n,r,o;const i=e.elm;let a=t.data.props,u=e.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 nJ={create:FO,update:FO},PO=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let Qw=!1;function rJ(t,e,n){(function(r){PO(function(){PO(r)})})(function(){t[e]=n})}function NO(t,e){let n,r;const o=e.elm;let i=t.data.style,a=e.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]||rJ(o.style,s,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const oJ={pre:function(){Qw=!1},create:NO,update:NO,destroy:function(t){let e,n;const r=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(n in e)r.style[n]=e[n]},remove:function(t,e){const n=t.data.style;if(!n||!n.remove)return void e();let r;Qw||(t.elm.offsetLeft,Qw=!0);const o=t.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&&e()})}};function jO(t,e){for(const n of t)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?jO(n,e):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?e.push(sd(void 0,void 0,void 0,String(n),void 0)):e.push(n));return e}function wt(t,e,...n){const r=jO(n,[]);return typeof t=="function"?t(e,r):r.length===1&&!r[0].sel&&r[0].text?Rl(t,e,r[0].text):Rl(t,e,r)}wt||(wt={});var iJ=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,aJ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,IO="\\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",uJ="[\\ud800-\\udfff]",LO="["+IO+"]",J0="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",RO="\\d+",sJ="[\\u2700-\\u27bf]",MO="[a-z\\xdf-\\xf6\\xf8-\\xff]",VO="[^\\ud800-\\udfff"+IO+RO+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",tE="\\ud83c[\\udffb-\\udfff]",zO="[^\\ud800-\\udfff]",eE="(?:\\ud83c[\\udde6-\\uddff]){2}",nE="[\\ud800-\\udbff][\\udc00-\\udfff]",Ml="[A-Z\\xc0-\\xd6\\xd8-\\xde]",HO="(?:"+MO+"|"+VO+")",lJ="(?:"+Ml+"|"+VO+")",UO="(?:"+J0+"|"+tE+")?",WO="[\\ufe0e\\ufe0f]?"+UO+("(?:\\u200d(?:"+[zO,eE,nE].join("|")+")[\\ufe0e\\ufe0f]?"+UO+")*"),cJ="(?:"+[sJ,eE,nE].join("|")+")"+WO,fJ="(?:"+[zO+J0+"?",J0,eE,nE,uJ].join("|")+")",dJ=RegExp("['’]","g"),pJ=RegExp(J0,"g"),hJ=RegExp(tE+"(?="+tE+")|"+fJ+WO,"g"),gJ=RegExp([Ml+"?"+MO+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[LO,Ml,"$"].join("|")+")",lJ+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[LO,Ml+HO,"$"].join("|")+")",Ml+"?"+HO+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ml+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",RO,cJ].join("|"),"g"),vJ=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),mJ=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yJ=typeof he=="object"&&he&&he.Object===Object&&he,bJ=typeof self=="object"&&self&&self.Object===Object&&self,wJ=yJ||bJ||Function("return this")(),rE,EJ=(rE={À:"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(t){return rE==null?void 0:rE[t]});function GO(t){return vJ.test(t)}function CJ(t){return GO(t)?function(e){return e.match(hJ)||[]}(t):function(e){return e.split("")}(t)}var xJ=Object.prototype.toString,qO=wJ.Symbol,$O=qO?qO.prototype:void 0,KO=$O?$O.toString:void 0;function SJ(t){if(typeof t=="string")return t;if(function(n){return typeof n=="symbol"||function(r){return!!r&&typeof r=="object"}(n)&&xJ.call(n)=="[object Symbol]"}(t))return KO?KO.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function DJ(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t: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}(t,e,n)}function Q0(t){return t==null?"":SJ(t)}for(var YO,AJ=(YO=function(t,e,n){return e=e.toLowerCase(),t+(n?_J(Q0(e).toLowerCase()):e)},function(t){return function(e,n,r,o){var i=-1,a=e?e.length:0;for(o&&a&&(r=e[++i]);++i<a;)r=n(r,e[i],i,e);return r}(function(e,n,r){return e=Q0(e),(n=r?void 0:n)===void 0?function(o){return mJ.test(o)}(e)?function(o){return o.match(gJ)||[]}(e):function(o){return o.match(iJ)||[]}(e):e.match(n)||[]}(function(e){return(e=Q0(e))&&e.replace(aJ,EJ).replace(pJ,"")}(t).replace(dJ,"")),YO,"")}),XO,_J=(XO="toUpperCase",function(t){var e=GO(t=Q0(t))?CJ(t):void 0,n=e?e[0]:t.charAt(0),r=e?DJ(e,1).join(""):t.slice(1);return n[XO]()+r}),OJ=AJ,kJ=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),oE={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},ZO={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:kJ?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},iE={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},tv=1;tv<20;tv++)iE["f"+tv]=111+tv;function JO(t,e,n){e&&!("byKey"in e)&&(n=e,e=null),Array.isArray(t)||(t=[t]);var r=t.map(function(i){return function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var p in oE)l[oE[p]]=!1;var d=!0,y=!1,g=void 0;try{for(var v,m=c[Symbol.iterator]();!(d=(v=m.next()).done);d=!0){var h=v.value,w=h.endsWith("?")&&h.length>1;w&&(h=h.slice(0,-1));var E=QO(h),C=oE[E];if(h.length>1&&!C&&!ZO[h]&&!iE[E])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&C||(s?l.key=E:l.which=BJ(h)),C&&(l[C]=!w||null)}}catch(D){y=!0,g=D}finally{try{!d&&m.return&&m.return()}finally{if(y)throw g}}return l}(i,e)}),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 BJ(t){return t=QO(t),iE[t]||t.toUpperCase().charCodeAt(0)}function QO(t){return t=t.toLowerCase(),t=ZO[t]||t}var TJ=JO,aE=function(t,e){return JO(t,{byKey:!0},e)},FJ=/^\s+|\s+$/g,PJ=/^[-+]0x[0-9a-f]+$/i,NJ=/^0b[01]+$/i,jJ=/^0o[0-7]+$/i,IJ=parseInt,LJ=typeof he=="object"&&he&&he.Object===Object&&he,RJ=typeof self=="object"&&self&&self.Object===Object&&self,MJ=LJ||RJ||Function("return this")(),VJ=Object.prototype.toString,zJ=Math.max,HJ=Math.min,uE=function(){return MJ.Date.now()};function sE(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function tk(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&VJ.call(r)=="[object Symbol]"}(t))return NaN;if(sE(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=sE(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(FJ,"");var n=NJ.test(t);return n||jJ.test(t)?IJ(t.slice(2),n?2:8):PJ.test(t)?NaN:+t}var Vl,ek=function(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(w){var E=r,C=o;return r=o=void 0,l=w,a=t.apply(C,E)}function y(w){return l=w,u=setTimeout(v,e),c?d(w):a}function g(w){var E=w-s;return s===void 0||E>=e||E<0||f&&w-l>=i}function v(){var w=uE();if(g(w))return m(w);u=setTimeout(v,function(E){var C=e-(E-s);return f?HJ(C,i-(E-l)):C}(w))}function m(w){return u=void 0,p&&r?d(w):(r=o=void 0,a)}function h(){var w=uE(),E=g(w);if(r=arguments,o=this,s=w,E){if(u===void 0)return y(s);if(f)return u=setTimeout(v,e),d(s)}return u===void 0&&(u=setTimeout(v,e)),a}return e=tk(e)||0,sE(n)&&(c=!!n.leading,i=(f="maxWait"in n)?zJ(tk(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),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(uE())},h},nk=ku(function(t,e){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]",p="[object Promise]",d="[object RegExp]",y="[object Set]",g="[object String]",v="[object Symbol]",m="[object WeakMap]",h="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",C="[object Float64Array]",D="[object Int8Array]",S="[object Int16Array]",A="[object Int32Array]",k="[object Uint8Array]",R="[object Uint8ClampedArray]",V="[object Uint16Array]",L="[object Uint32Array]",W=/\w*$/,H=/^\[object .+?Constructor\]$/,U=/^(?:0|[1-9]\d*)$/,$={};$[o]=$["[object Array]"]=$[h]=$[w]=$[i]=$[a]=$[E]=$[C]=$[D]=$[S]=$[A]=$[l]=$[c]=$[f]=$[d]=$[y]=$[g]=$[v]=$[k]=$[R]=$[V]=$[L]=!0,$["[object Error]"]=$[u]=$[m]=!1;var J=typeof he=="object"&&he&&he.Object===Object&&he,st=typeof self=="object"&&self&&self.Object===Object&&self,lt=J||st||Function("return this")(),ct=e&&!e.nodeType&&e,B=ct&&t&&!t.nodeType&&t,_=B&&B.exports===ct;function N(F,G){return F.set(G[0],G[1]),F}function q(F,G){return F.add(G),F}function X(F,G,nt,ft){var Wt=-1,xe=F?F.length:0;for(ft&&xe&&(nt=F[++Wt]);++Wt<xe;)nt=G(nt,F[Wt],Wt,F);return nt}function K(F){var G=!1;if(F!=null&&typeof F.toString!="function")try{G=!!(F+"")}catch{}return G}function ut(F){var G=-1,nt=Array(F.size);return F.forEach(function(ft,Wt){nt[++G]=[Wt,ft]}),nt}function mt(F,G){return function(nt){return F(G(nt))}}function bt(F){var G=-1,nt=Array(F.size);return F.forEach(function(ft){nt[++G]=ft}),nt}var _t=Array.prototype,Y=Function.prototype,Ht=Object.prototype,Ft=lt["__core-js_shared__"],gt=function(){var F=/[^.]+$/.exec(Ft&&Ft.keys&&Ft.keys.IE_PROTO||"");return F?"Symbol(src)_1."+F:""}(),Pt=Y.toString,ze=Ht.hasOwnProperty,Yt=Ht.toString,le=RegExp("^"+Pt.call(ze).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ae=_?lt.Buffer:void 0,Mn=lt.Symbol,Gt=lt.Uint8Array,cr=mt(Object.getPrototypeOf,Object),Do=Object.create,ii=Ht.propertyIsEnumerable,hf=_t.splice,el=Object.getOwnPropertySymbols,Ao=Ae?Ae.isBuffer:void 0,ai=mt(Object.keys,Object),Li=ui(lt,"DataView"),Vn=ui(lt,"Map"),zn=ui(lt,"Promise"),Hn=ui(lt,"Set"),Xn=ui(lt,"WeakMap"),Sn=ui(Object,"create"),no=li(Li),wg=li(Vn),wu=li(zn),Ri=li(Hn),gf=li(Xn),nl=Mn?Mn.prototype:void 0,vf=nl?nl.valueOf:void 0;function _o(F){var G=-1,nt=F?F.length:0;for(this.clear();++G<nt;){var ft=F[G];this.set(ft[0],ft[1])}}function ro(F){var G=-1,nt=F?F.length:0;for(this.clear();++G<nt;){var ft=F[G];this.set(ft[0],ft[1])}}function Mi(F){var G=-1,nt=F?F.length:0;for(this.clear();++G<nt;){var ft=F[G];this.set(ft[0],ft[1])}}function Oo(F){this.__data__=new ro(F)}function Eu(F,G){var nt=P(F)||function(fe){return function(Jt){return function(gn){return!!gn&&typeof gn=="object"}(Jt)&&M(Jt)}(fe)&&ze.call(fe,"callee")&&(!ii.call(fe,"callee")||Yt.call(fe)==o)}(F)?function(fe,Jt){for(var gn=-1,Un=Array(fe);++gn<fe;)Un[gn]=Jt(gn);return Un}(F.length,String):[],ft=nt.length,Wt=!!ft;for(var xe in F)!G&&!ze.call(F,xe)||Wt&&(xe=="length"||nb(xe,ft))||nt.push(xe);return nt}function tb(F,G,nt){var ft=F[G];ze.call(F,G)&&rb(ft,nt)&&(nt!==void 0||G in F)||(F[G]=nt)}function Pr(F,G){for(var nt=F.length;nt--;)if(rb(F[nt][0],G))return nt;return-1}function Eg(F,G,nt,ft,Wt,xe,fe){var Jt;if(ft&&(Jt=xe?ft(F,Wt,xe,fe):ft(F)),Jt!==void 0)return Jt;if(!ce(F))return F;var gn=P(F);if(gn){if(Jt=function(Ct){var re=Ct.length,Ye=Ct.constructor(re);return re&&typeof Ct[0]=="string"&&ze.call(Ct,"index")&&(Ye.index=Ct.index,Ye.input=Ct.input),Ye}(F),!G)return function(Ct,re){var Ye=-1,Ut=Ct.length;for(re||(re=Array(Ut));++Ye<Ut;)re[Ye]=Ct[Ye];return re}(F,Jt)}else{var Un=si(F),rl=Un==u||Un==s;if(Q(F))return function(Ct,re){if(re)return Ct.slice();var Ye=new Ct.constructor(Ct.length);return Ct.copy(Ye),Ye}(F,G);if(Un==f||Un==o||rl&&!xe){if(K(F))return xe?F:{};if(Jt=function(Ct){return typeof Ct.constructor!="function"||Cu(Ct)?{}:(re=cr(Ct),ce(re)?Do(re):{});var re}(rl?{}:F),!G)return function(Ct,re){return eb(Ct,Cg(Ct),re)}(F,function(Ct,re){return Ct&&eb(re,Vt(re),Ct)}(Jt,F))}else{if(!$[Un])return xe?F:{};Jt=function(Ct,re,Ye,Ut){var Qt=Ct.constructor;switch(re){case h:return mf(Ct);case i:case a:return new Qt(+Ct);case w:return function(te,He){var Zn=He?mf(te.buffer):te.buffer;return new te.constructor(Zn,te.byteOffset,te.byteLength)}(Ct,Ut);case E:case C:case D:case S:case A:case k:case R:case V:case L:return function(te,He){var Zn=He?mf(te.buffer):te.buffer;return new te.constructor(Zn,te.byteOffset,te.length)}(Ct,Ut);case l:return function(te,He,Zn){return X(He?Zn(ut(te),!0):ut(te),N,new te.constructor)}(Ct,Ut,Ye);case c:case g:return new Qt(Ct);case d:return function(te){var He=new te.constructor(te.source,W.exec(te));return He.lastIndex=te.lastIndex,He}(Ct);case y:return function(te,He,Zn){return X(He?Zn(bt(te),!0):bt(te),q,new te.constructor)}(Ct,Ut,Ye);case v:return function(te){return vf?Object(vf.call(te)):{}}(Ct)}}(F,Un,Eg,G)}}fe||(fe=new Oo);var Hi=fe.get(F);if(Hi)return Hi;if(fe.set(F,Jt),!gn)var xu=nt?function(Ct){return function(re,Ye,Ut){var Qt=Ye(re);return P(re)?Qt:function(te,He){for(var Zn=-1,fr=He.length,ko=te.length;++Zn<fr;)te[ko+Zn]=He[Zn];return te}(Qt,Ut(re))}(Ct,Vt,Cg)}(F):Vt(F);return function(Ct,re){for(var Ye=-1,Ut=Ct?Ct.length:0;++Ye<Ut&&re(Ct[Ye],Ye,Ct)!==!1;);}(xu||F,function(Ct,re){xu&&(Ct=F[re=Ct]),tb(Jt,re,Eg(Ct,G,nt,ft,re,F,fe))}),Jt}function Vi(F){return!(!ce(F)||function(G){return!!gt&> in G}(F))&&(vt(F)||K(F)?le:H).test(li(F))}function mf(F){var G=new F.constructor(F.byteLength);return new Gt(G).set(new Gt(F)),G}function eb(F,G,nt,ft){nt||(nt={});for(var Wt=-1,xe=G.length;++Wt<xe;){var fe=G[Wt],Jt=ft?ft(nt[fe],F[fe],fe,nt,F):void 0;tb(nt,fe,Jt===void 0?F[fe]:Jt)}return nt}function zi(F,G){var nt,ft,Wt=F.__data__;return((ft=typeof(nt=G))=="string"||ft=="number"||ft=="symbol"||ft=="boolean"?nt!=="__proto__":nt===null)?Wt[typeof G=="string"?"string":"hash"]:Wt.map}function ui(F,G){var nt=function(ft,Wt){return ft==null?void 0:ft[Wt]}(F,G);return Vi(nt)?nt:void 0}_o.prototype.clear=function(){this.__data__=Sn?Sn(null):{}},_o.prototype.delete=function(F){return this.has(F)&&delete this.__data__[F]},_o.prototype.get=function(F){var G=this.__data__;if(Sn){var nt=G[F];return nt===n?void 0:nt}return ze.call(G,F)?G[F]:void 0},_o.prototype.has=function(F){var G=this.__data__;return Sn?G[F]!==void 0:ze.call(G,F)},_o.prototype.set=function(F,G){return this.__data__[F]=Sn&&G===void 0?n:G,this},ro.prototype.clear=function(){this.__data__=[]},ro.prototype.delete=function(F){var G=this.__data__,nt=Pr(G,F);return!(nt<0)&&(nt==G.length-1?G.pop():hf.call(G,nt,1),!0)},ro.prototype.get=function(F){var G=this.__data__,nt=Pr(G,F);return nt<0?void 0:G[nt][1]},ro.prototype.has=function(F){return Pr(this.__data__,F)>-1},ro.prototype.set=function(F,G){var nt=this.__data__,ft=Pr(nt,F);return ft<0?nt.push([F,G]):nt[ft][1]=G,this},Mi.prototype.clear=function(){this.__data__={hash:new _o,map:new(Vn||ro),string:new _o}},Mi.prototype.delete=function(F){return zi(this,F).delete(F)},Mi.prototype.get=function(F){return zi(this,F).get(F)},Mi.prototype.has=function(F){return zi(this,F).has(F)},Mi.prototype.set=function(F,G){return zi(this,F).set(F,G),this},Oo.prototype.clear=function(){this.__data__=new ro},Oo.prototype.delete=function(F){return this.__data__.delete(F)},Oo.prototype.get=function(F){return this.__data__.get(F)},Oo.prototype.has=function(F){return this.__data__.has(F)},Oo.prototype.set=function(F,G){var nt=this.__data__;if(nt instanceof ro){var ft=nt.__data__;if(!Vn||ft.length<199)return ft.push([F,G]),this;nt=this.__data__=new Mi(ft)}return nt.set(F,G),this};var Cg=el?mt(el,Object):function(){return[]},si=function(F){return Yt.call(F)};function nb(F,G){return!!(G=G??r)&&(typeof F=="number"||U.test(F))&&F>-1&&F%1==0&&F<G}function Cu(F){var G=F&&F.constructor;return F===(typeof G=="function"&&G.prototype||Ht)}function li(F){if(F!=null){try{return Pt.call(F)}catch{}try{return F+""}catch{}}return""}function rb(F,G){return F===G||F!=F&&G!=G}(Li&&si(new Li(new ArrayBuffer(1)))!=w||Vn&&si(new Vn)!=l||zn&&si(zn.resolve())!=p||Hn&&si(new Hn)!=y||Xn&&si(new Xn)!=m)&&(si=function(F){var G=Yt.call(F),nt=G==f?F.constructor:void 0,ft=nt?li(nt):void 0;if(ft)switch(ft){case no:return w;case wg:return l;case wu:return p;case Ri:return y;case gf:return m}return G});var P=Array.isArray;function M(F){return F!=null&&function(G){return typeof G=="number"&&G>-1&&G%1==0&&G<=r}(F.length)&&!vt(F)}var Q=Ao||function(){return!1};function vt(F){var G=ce(F)?Yt.call(F):"";return G==u||G==s}function ce(F){var G=typeof F;return!!F&&(G=="object"||G=="function")}function Vt(F){return M(F)?Eu(F):function(G){if(!Cu(G))return ai(G);var nt=[];for(var ft in Object(G))ze.call(G,ft)&&ft!="constructor"&&nt.push(ft);return nt}(F)}t.exports=function(F){return Eg(F,!0,!0)}});function rk(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var UJ=0;function WJ(t){return"__private_"+UJ+++"_"+t}function GJ(t,e,n){const r=[];return t.forEach(o=>typeof o!="string"?r.push(o):e[Symbol.split](o).forEach((i,a,u)=>{i!==""&&r.push(i),a<u.length-1&&r.push(n)})),r}/**
|
|
22
|
-
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
|
23
|
-
* and replaces it with values from options `{smart_count: 5}`
|
|
24
|
-
*
|
|
25
|
-
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
|
|
26
|
-
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
|
|
27
|
-
*
|
|
28
|
-
* @param {string} phrase that needs interpolation, with placeholders
|
|
29
|
-
* @param {object} options with values that will be used to replace placeholders
|
|
30
|
-
* @returns {any[]} interpolated
|
|
31
|
-
*/function ok(t,e){const n=/\$/g;let r=[t];if(e==null)return r;for(const o of Object.keys(e))if(o!=="_"){let i=e[o];typeof i=="string"&&(i=n[Symbol.replace](i,"$$$$")),r=GJ(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var ik=(Vl=WJ("apply"),class{constructor(t){Object.defineProperty(this,Vl,{value:qJ}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(rk(this,Vl)[Vl],this):rk(this,Vl)[Vl](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,t))throw new Error(`missing string: ${t}`);const n=this.locale.strings[t];if(typeof n=="object"){if(e&&e.smart_count!==void 0)return ok(n[this.locale.pluralize(e.smart_count)],e);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return ok(n,e)}});function qJ(t){if(t==null||!t.strings)return;const e=this.locale;this.locale={...e,strings:{...e.strings,...t.strings}},this.locale.pluralize=t.pluralize||e.pluralize}var ak=function(){var t={},e=t._fns={};return t.emit=function(n,r,o,i,a,u,s){var l=function(c){for(var f=e[c]?e[c]:[],p=c.indexOf(":"),d=p===-1?[c]:[c.substring(0,p),c.substring(p+1)],y=Object.keys(e),g=0,v=y.length;g<v;g++){var m=y[g];if(m==="*"&&(f=f.concat(e[m])),d.length===2&&d[0]===m){f=f.concat(e[m]);break}}return f}(n);l.length&&function(c,f,p){for(var d=0,y=f.length;d<y&&f[d];d++)f[d].event=c,f[d].apply(f[d],p)}(n,l,[r,o,i,a,u,s])},t.on=function(n,r){e[n]||(e[n]=[]),e[n].push(r)},t.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),t.off(n,o)})},t.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]},t},$J={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:KJ}=$J,uk=t=>crypto.getRandomValues(new Uint8Array(t)),sk=(t,e,n)=>{let r=(2<<Math.log(t.length-1)/Math.LN2)-1,o=-~(1.6*r*e/t.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=t[a[u]&r]||"",i.length===e)return i}}};var YJ={nanoid:(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e},customAlphabet:(t,e)=>sk(t,e,uk),customRandom:sk,urlAlphabet:KJ,random:uk},lE=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var r=Math.min(Math.floor(Math.log(t)/Math.log(1024)),n.length-1);t=Number(t/Math.pow(1024,r));var o=n[r];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function lk(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}lk.prototype.match=function(t){var e,n,r=!0,o=this.parts,i=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(n=(t||"").split(this.separator),e=0;r&&e<i;e++)o[e]!=="*"&&(r=e<n.length&&o[e]===n[e]);r=r&&n}else r=!1;else if(typeof t.splice=="function")for(r=[],e=t.length;e--;)this.match(t[e])&&(r[r.length]=t[e]);else if(typeof t=="object")for(var a in r={},t)this.match(a)&&(r[a]=t[a]);return r};var XJ=/[\/\+\.]/,ZJ=function(t,e){function n(r){var o=function(i,a,u){var s=new lk(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(r,t,XJ);return o&&o.length>=2}return e?n(e.split(";")[0]):n},JJ=0;function QJ(t){return"__private_"+JJ+++"_"+t}var cE=QJ("publish");class ck{constructor(){Object.defineProperty(this,cE,{value:tQ}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const n={...this.state},r={...this.state,...e};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,cE)[cE](n,r,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function tQ(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.callbacks.forEach(r=>{r(...e)})}ck.VERSION="2.0.3";var fk=function(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}},dk={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 pk(t){let e="";return t.replace(/[^A-Z0-9]/gi,n=>(e+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+e}var eQ=function(t){if(t==null&&(t=typeof navigator<"u"?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const n=e[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 fE(t){return t<10?`0${t}`:t.toString()}var ev=function(){const t=new Date;return`${fE(t.getHours())}:${fE(t.getMinutes())}:${fE(t.getSeconds())}`},hk={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${ev()}]`,...e)}},debugLogger:{debug:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.debug(`[Uppy] [${ev()}]`,...e)},warn:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.warn(`[Uppy] [${ev()}]`,...e)},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${ev()}]`,...e)}}},nQ={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}"}}},gk=YJ;let vk,mk;function pt(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var rQ=0;function tn(t){return"__private_"+rQ+++"_"+t}const{nanoid:oQ}=gk,{justErrorsLogger:iQ,debugLogger:aQ}=hk;class Mo extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class uQ extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var An=tn("plugins"),cd=tn("storeUnsubscribe"),wi=tn("emitter"),Ku=tn("preProcessors"),Yu=tn("uploaders"),Ei=tn("postProcessors"),fd=tn("checkRestrictions"),dE=tn("checkMinNumberOfFiles"),dd=tn("checkRequiredMetaFieldsOnFile"),pE=tn("checkRequiredMetaFields"),cn=tn("showOrLogErrorAndThrow"),pd=tn("assertNewUploadAllowed"),hd=tn("checkAndCreateFileStateObject"),gd=tn("startIfAutoProceed"),hE=tn("addListeners"),fo=tn("updateOnlineStatus"),Ci=tn("createUpload"),gE=tn("getUpload"),Xu=tn("removeUpload"),xi=tn("runUpload");vk=Symbol.for("uppy test: getPlugins"),mk=Symbol.for("uppy test: createUpload");class yk{constructor(e){Object.defineProperty(this,xi,{value:wQ}),Object.defineProperty(this,Xu,{value:bQ}),Object.defineProperty(this,gE,{value:yQ}),Object.defineProperty(this,Ci,{value:mQ}),Object.defineProperty(this,hE,{value:vQ}),Object.defineProperty(this,gd,{value:gQ}),Object.defineProperty(this,hd,{value:hQ}),Object.defineProperty(this,pd,{value:pQ}),Object.defineProperty(this,cn,{value:dQ}),Object.defineProperty(this,pE,{value:fQ}),Object.defineProperty(this,dd,{value:cQ}),Object.defineProperty(this,dE,{value:lQ}),Object.defineProperty(this,fd,{value:sQ}),Object.defineProperty(this,An,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,cd,{writable:!0,value:void 0}),Object.defineProperty(this,wi,{writable:!0,value:ak()}),Object.defineProperty(this,Ku,{writable:!0,value:new Set}),Object.defineProperty(this,Yu,{writable:!0,value:new Set}),Object.defineProperty(this,Ei,{writable:!0,value:new Set}),Object.defineProperty(this,fo,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=nQ;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 ck,logger:iQ,infoTimeout:5e3};if(this.opts={...n,...e,restrictions:{...n.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=aQ),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:eQ(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),pt(this,cd)[cd]=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),pt(this,hE)[hE]()}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];pt(this,wi)[wi].emit(e,...r)}on(e,n){return pt(this,wi)[wi].on(e,n),this}once(e,n){return pt(this,wi)[wi].once(e,n),this}off(e,n){return pt(this,wi)[wi].off(e,n),this}updateAll(e){this.iteratePlugins(n=>{n.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,n){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...n}}})}i18nInit(){const e=new ik([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const e={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,...e},r[o]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){pt(this,Ku)[Ku].add(e)}removePreProcessor(e){return pt(this,Ku)[Ku].delete(e)}addPostProcessor(e){pt(this,Ei)[Ei].add(e)}removePostProcessor(e){return pt(this,Ei)[Ei].delete(e)}addUploader(e){pt(this,Yu)[Yu].add(e)}removeUploader(e){return pt(this,Yu)[Yu].delete(e)}setMeta(e){const n={...this.getState().meta,...e},r={...this.getState().files};Object.keys(r).forEach(o=>{r[o]={...r[o],meta:{...r[o].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:n,files:r})}setFileMeta(e,n){const r={...this.getState().files};if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o={...r[e].meta,...n};r[e]={...r[e],meta:o},this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:n,error:r}=this.getState(),o=Object.values(e),i=o.filter(y=>{let{progress:g}=y;return!g.uploadComplete&&g.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),p=i.filter(y=>!y.isPaused),d=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:p,processingFiles:d,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===o.length&&d.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(e,n){try{return pt(this,fd)[fd](e,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(e){const{files:n}=this.getState();return!(!n[e]||n[e].isGhost)}addFile(e){pt(this,pd)[pd](e);const{files:n}=this.getState();let r=pt(this,hd)[hd](n,e);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:e.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}`),pt(this,gd)[gd](),r.id}addFiles(e){pt(this,pd)[pd]();const n={...this.getState().files},r=[],o=[];for(let i=0;i<e.length;i++)try{let a=pt(this,hd)[hd](n,e[i]);n[a.id]&&n[a.id].isGhost&&(a={...n[a.id],data:e[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}
|
|
32
|
-
id: ${r[i].id}
|
|
33
|
-
type: ${r[i].type}`)}),r.length>0&&pt(this,gd)[gd](),o.length>0){let i=`Multiple errors occurred while adding files:
|
|
34
|
-
`;if(o.forEach(a=>{i+=`
|
|
35
|
-
* ${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(e,n){const{files:r,currentUploads:o}=this.getState(),i={...r},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{r[f]&&(u[f]=r[f],delete i[f])}),Object.keys(a).forEach(f=>{const p=o[f].fileIDs.filter(s);p.length!==0?a[f]={...o[f],fileIDs:p}: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(e,n){n===void 0&&(n=null),this.removeFiles([e],n)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const n=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!0};e[n]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!1,error:null};e[n]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},n=Object.keys(e).filter(o=>e[o].error);if(n.forEach(o=>{const i={...e[o],isPaused:!1,error:null};e[o]=i}),this.setState({files:e,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=pt(this,Ci)[Ci](n,{forceAllowNewUpload:!0});return pt(this,xi)[xi](r)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),n=Object.keys(e);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const n=pt(this,Ci)[Ci]([e],{forceAllowNewUpload:!0});return pt(this,xi)[xi](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,n){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(e.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=e.filter(s=>s.progress.bytesTotal!=null),r=e.filter(s=>s.progress.bytesTotal==null);if(n.length===0){const s=100*e.length,l=r.reduce((f,p)=>f+p.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(e,n){if(typeof e!="function")throw new TypeError(`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const r=new e(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}'.
|
|
36
|
-
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return e.VERSION&&this.log(`Using ${o} v${e.VERSION}`),r.type in pt(this,An)[An]?pt(this,An)[An][r.type].push(r):pt(this,An)[An][r.type]=[r],r.install(),this}getPlugin(e){for(const n of Object.values(pt(this,An)[An])){const r=n.find(o=>o.id===e);if(r!=null)return r}}[vk](e){return pt(this,An)[An][e]}iteratePlugins(e){Object.values(pt(this,An)[An]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const n=pt(this,An)[An][e.type],r=n.findIndex(i=>i.id===e.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),pt(this,cd)[cd](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",pt(this,fo)[fo]),window.removeEventListener("offline",pt(this,fo)[fo]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:n,message:o?e.message:e,details:o?e.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(e,n){const{logger:r}=this.opts;switch(n){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?pt(this,xi)[xi](e):(pt(this,Xu)[Xu](e),Promise.reject(new Error("Nonexistent upload")))}[mk](){return pt(this,Ci)[Ci](...arguments)}addResultData(e,n){if(!pt(this,gE)[gE](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),o={...r[e],result:{...r[e].result,...n}};this.setState({currentUploads:{...r,[e]:o}})}upload(){var e;(e=pt(this,An)[An].uploader)!=null&&e.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(()=>{pt(this,dE)[dE](n),pt(this,pE)[pE](n)}).catch(o=>{pt(this,cn)[cn](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=pt(this,Ci)[Ci](a);return pt(this,xi)[xi](u)}).catch(o=>{pt(this,cn)[cn](o,{showInformer:!1})}))}}function sQ(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new Mo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&ZJ(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new Mo(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&t.size!=null){let u=0;if(u+=t.size,e.forEach(s=>{u+=s.size}),u>o)throw new Mo(this.i18n("exceedsSize",{size:lE(o),file:t.name}))}if(n&&t.size!=null&&t.size>n)throw new Mo(this.i18n("exceedsSize",{size:lE(n),file:t.name}));if(r&&t.size!=null&&t.size<r)throw new Mo(this.i18n("inferiorSize",{size:lE(r)}))}function lQ(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new Mo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function cQ(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<e.length;i++)if(!n.call(t.meta,e[i])||t.meta[e[i]]===""){const a=new Mo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);r.push(a),o.push(e[i]),pt(this,cn)[cn](a,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),r}function fQ(t){const e=Object.keys(t).flatMap(n=>{const r=this.getFile(n);return pt(this,dd)[dd](r)});if(e.length)throw new uQ(e,`${this.i18n("missingRequiredMetaField")}`)}function dQ(t,e){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=e===void 0?{}:e;const i=typeof t=="object"?t.message:t,a=typeof t=="object"&&t.details?t.details:"";let u=i;if(a&&(u+=` ${a}`),t.isRestriction?(this.log(u),this.emit("restriction-failed",r,t)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function pQ(t){const{allowNewUpload:e}=this.getState();e===!1&&pt(this,cn)[cn](new Mo(this.i18n("noMoreFilesAllowed")),{file:t})}function hQ(t,e){const n=function(f){var p;if(f.type)return f.type;const d=f.name?(p=fk(f.name).extension)==null?void 0:p.toLowerCase():null;return d&&d in dk?dk[d]:"application/octet-stream"}(e),r=function(f,p){return p.name?p.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,e),o=fk(r).extension,i=!!e.isRemote,a=function(f){let p="uppy";return typeof f.name=="string"&&(p+=`-${pk(f.name.toLowerCase())}`),f.type!==void 0&&(p+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(p+=`-${pk(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(p+=`-${f.data.size}`),f.data.lastModified!==void 0&&(p+=`-${f.data.lastModified}`),p}({...e,type:n});if(this.checkIfFileAlreadyExists(a)){const f=new Mo(this.i18n("noDuplicates",{fileName:r}));pt(this,cn)[cn](f,{file:e})}const u=e.meta||{};u.name=r,u.type=n;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(l,t);c===!1?pt(this,cn)[cn](new Mo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(t).map(p=>t[p]);pt(this,fd)[fd](l,f)}catch(f){pt(this,cn)[cn](f,{file:l})}return l}function gQ(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(t=>{t.isRestriction||this.log(t.stack||t.message||t)})},4))}function vQ(){const t=(e,n,r)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,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:e.name}),pt(this,cn)[cn](o,{throwErr:!1})}else pt(this,cn)[cn](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,n)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...r,postprocess:pt(this,Ei)[Ei].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n={...this.getState().files};n[e.id]={...n[e.id],progress:{...n[e.id].progress}},delete n[e.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n={...this.getState().files};n[e.id]={...n[e.id],progress:{...n[e.id].progress}},delete n[e.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&pt(this,dd)[dd](e)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",pt(this,fo)[fo]),window.addEventListener("offline",pt(this,fo)[fo]),setTimeout(pt(this,fo)[fo],3e3))}function mQ(t,e){e===void 0&&(e={});const{forceAllowNewUpload:n=!1}=e,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=oQ();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:t,step:0,result:{}}}}),i}function yQ(t){const{currentUploads:e}=this.getState();return e[t]}function bQ(t){const e={...this.getState().currentUploads};delete e[t],this.setState({currentUploads:e})}async function wQ(t){let{currentUploads:e}=this.getState(),n=e[t];const r=n.step||0,o=[...pt(this,Ku)[Ku],...pt(this,Yu)[Yu],...pt(this,Ei)[Ei]];try{for(let a=r;a<o.length&&n;a++){const u=o[a],s={...n,step:a};this.setState({currentUploads:{...e,[t]:s}}),await u(s.fileIDs,t),e=this.getState().currentUploads,n=e[t]}}catch(a){throw this.emit("error",a),pt(this,Xu)[Xu](t),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(t,{successful:u,failed:s,uploadID:t}),e=this.getState().currentUploads,n=e[t]}let i;return n&&(i=n.result,this.emit("complete",i),pt(this,Xu)[Xu](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i}yk.VERSION="2.1.3";var bk=yk,EQ=ku(function(t,e){var n,r,o,i,a,u,s,l,c={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(B,_){for(var N in _)B[N]=_[N];return B}function y(B){var _=B.parentNode;_&&_.removeChild(B)}function g(B,_,N){var q,X,K,ut={};for(K in _)K=="key"?q=_[K]:K=="ref"?X=_[K]:ut[K]=_[K];if(arguments.length>2&&(ut.children=arguments.length>3?n.call(arguments,2):N),typeof B=="function"&&B.defaultProps!=null)for(K in B.defaultProps)ut[K]===void 0&&(ut[K]=B.defaultProps[K]);return v(B,ut,q,X,null)}function v(B,_,N,q,X){var K={type:B,props:_,key:N,ref:q,__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(K),K}function m(B){return B.children}function h(B,_){this.props=B,this.context=_}function w(B,_){if(_==null)return B.__?w(B.__,B.__.__k.indexOf(B)+1):null;for(var N;_<B.__k.length;_++)if((N=B.__k[_])!=null&&N.__e!=null)return N.__e;return typeof B.type=="function"?w(B):null}function E(B){var _,N;if((B=B.__)!=null&&B.__c!=null){for(B.__e=B.__c.base=null,_=0;_<B.__k.length;_++)if((N=B.__k[_])!=null&&N.__e!=null){B.__e=B.__c.base=N.__e;break}return E(B)}}function C(B){(!B.__d&&(B.__d=!0)&&a.push(B)&&!D.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(D)}function D(){for(var B;D.__r=a.length;)B=a.sort(function(_,N){return _.__v.__b-N.__v.__b}),a=[],B.some(function(_){var N,q,X,K,ut,mt;_.__d&&(ut=(K=(N=_).__v).__e,(mt=N.__P)&&(q=[],(X=d({},K)).__v=K.__v+1,H(mt,K,X,N.__n,mt.ownerSVGElement!==void 0,K.__h!=null?[ut]:null,q,ut??w(K),K.__h),U(q,K),K.__e!=ut&&E(K)))})}function S(B,_,N,q,X,K,ut,mt,bt,_t){var Y,Ht,Ft,gt,Pt,ze,Yt,le=q&&q.__k||f,Ae=le.length;for(N.__k=[],Y=0;Y<_.length;Y++)if((gt=N.__k[Y]=(gt=_[Y])==null||typeof gt=="boolean"?null:typeof gt=="string"||typeof gt=="number"||typeof gt=="bigint"?v(null,gt,null,null,gt):Array.isArray(gt)?v(m,{children:gt},null,null,null):gt.__b>0?v(gt.type,gt.props,gt.key,null,gt.__v):gt)!=null){if(gt.__=N,gt.__b=N.__b+1,(Ft=le[Y])===null||Ft&>.key==Ft.key&>.type===Ft.type)le[Y]=void 0;else for(Ht=0;Ht<Ae;Ht++){if((Ft=le[Ht])&>.key==Ft.key&>.type===Ft.type){le[Ht]=void 0;break}Ft=null}H(B,gt,Ft=Ft||c,X,K,ut,mt,bt,_t),Pt=gt.__e,(Ht=gt.ref)&&Ft.ref!=Ht&&(Yt||(Yt=[]),Ft.ref&&Yt.push(Ft.ref,null,gt),Yt.push(Ht,gt.__c||Pt,gt)),Pt!=null?(ze==null&&(ze=Pt),typeof gt.type=="function"&>.__k===Ft.__k?gt.__d=bt=A(gt,bt,B):bt=k(B,gt,Ft,le,Pt,bt),typeof N.type=="function"&&(N.__d=bt)):bt&&Ft.__e==bt&&bt.parentNode!=B&&(bt=w(Ft))}for(N.__e=ze,Y=Ae;Y--;)le[Y]!=null&&(typeof N.type=="function"&&le[Y].__e!=null&&le[Y].__e==N.__d&&(N.__d=w(q,Y+1)),st(le[Y],le[Y]));if(Yt)for(Y=0;Y<Yt.length;Y++)J(Yt[Y],Yt[++Y],Yt[++Y])}function A(B,_,N){for(var q,X=B.__k,K=0;X&&K<X.length;K++)(q=X[K])&&(q.__=B,_=typeof q.type=="function"?A(q,_,N):k(N,q,q,X,q.__e,_));return _}function k(B,_,N,q,X,K){var ut,mt,bt;if(_.__d!==void 0)ut=_.__d,_.__d=void 0;else if(N==null||X!=K||X.parentNode==null)t:if(K==null||K.parentNode!==B)B.appendChild(X),ut=null;else{for(mt=K,bt=0;(mt=mt.nextSibling)&&bt<q.length;bt+=2)if(mt==X)break t;B.insertBefore(X,K),ut=K}return ut!==void 0?ut:X.nextSibling}function R(B,_,N){_[0]==="-"?B.setProperty(_,N):B[_]=N==null?"":typeof N!="number"||p.test(_)?N:N+"px"}function V(B,_,N,q,X){var K;t:if(_==="style")if(typeof N=="string")B.style.cssText=N;else{if(typeof q=="string"&&(B.style.cssText=q=""),q)for(_ in q)N&&_ in N||R(B.style,_,"");if(N)for(_ in N)q&&N[_]===q[_]||R(B.style,_,N[_])}else if(_[0]==="o"&&_[1]==="n")K=_!==(_=_.replace(/Capture$/,"")),_=_.toLowerCase()in B?_.toLowerCase().slice(2):_.slice(2),B.l||(B.l={}),B.l[_+K]=N,N?q||B.addEventListener(_,K?W:L,K):B.removeEventListener(_,K?W:L,K);else if(_!=="dangerouslySetInnerHTML"){if(X)_=_.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(_!=="href"&&_!=="list"&&_!=="form"&&_!=="tabIndex"&&_!=="download"&&_ in B)try{B[_]=N??"";break t}catch{}typeof N=="function"||(N!=null&&(N!==!1||_[0]==="a"&&_[1]==="r")?B.setAttribute(_,N):B.removeAttribute(_))}}function L(B){this.l[B.type+!1](r.event?r.event(B):B)}function W(B){this.l[B.type+!0](r.event?r.event(B):B)}function H(B,_,N,q,X,K,ut,mt,bt){var _t,Y,Ht,Ft,gt,Pt,ze,Yt,le,Ae,Mn,Gt=_.type;if(_.constructor!==void 0)return null;N.__h!=null&&(bt=N.__h,mt=_.__e=N.__e,_.__h=null,K=[mt]),(_t=r.__b)&&_t(_);try{t:if(typeof Gt=="function"){if(Yt=_.props,le=(_t=Gt.contextType)&&q[_t.__c],Ae=_t?le?le.props.value:_t.__:q,N.__c?ze=(Y=_.__c=N.__c).__=Y.__E:("prototype"in Gt&&Gt.prototype.render?_.__c=Y=new Gt(Yt,Ae):(_.__c=Y=new h(Yt,Ae),Y.constructor=Gt,Y.render=lt),le&&le.sub(Y),Y.props=Yt,Y.state||(Y.state={}),Y.context=Ae,Y.__n=q,Ht=Y.__d=!0,Y.__h=[]),Y.__s==null&&(Y.__s=Y.state),Gt.getDerivedStateFromProps!=null&&(Y.__s==Y.state&&(Y.__s=d({},Y.__s)),d(Y.__s,Gt.getDerivedStateFromProps(Yt,Y.__s))),Ft=Y.props,gt=Y.state,Ht)Gt.getDerivedStateFromProps==null&&Y.componentWillMount!=null&&Y.componentWillMount(),Y.componentDidMount!=null&&Y.__h.push(Y.componentDidMount);else{if(Gt.getDerivedStateFromProps==null&&Yt!==Ft&&Y.componentWillReceiveProps!=null&&Y.componentWillReceiveProps(Yt,Ae),!Y.__e&&Y.shouldComponentUpdate!=null&&Y.shouldComponentUpdate(Yt,Y.__s,Ae)===!1||_.__v===N.__v){Y.props=Yt,Y.state=Y.__s,_.__v!==N.__v&&(Y.__d=!1),Y.__v=_,_.__e=N.__e,_.__k=N.__k,_.__k.forEach(function(cr){cr&&(cr.__=_)}),Y.__h.length&&ut.push(Y);break t}Y.componentWillUpdate!=null&&Y.componentWillUpdate(Yt,Y.__s,Ae),Y.componentDidUpdate!=null&&Y.__h.push(function(){Y.componentDidUpdate(Ft,gt,Pt)})}Y.context=Ae,Y.props=Yt,Y.state=Y.__s,(_t=r.__r)&&_t(_),Y.__d=!1,Y.__v=_,Y.__P=B,_t=Y.render(Y.props,Y.state,Y.context),Y.state=Y.__s,Y.getChildContext!=null&&(q=d(d({},q),Y.getChildContext())),Ht||Y.getSnapshotBeforeUpdate==null||(Pt=Y.getSnapshotBeforeUpdate(Ft,gt)),Mn=_t!=null&&_t.type===m&&_t.key==null?_t.props.children:_t,S(B,Array.isArray(Mn)?Mn:[Mn],_,N,q,X,K,ut,mt,bt),Y.base=_.__e,_.__h=null,Y.__h.length&&ut.push(Y),ze&&(Y.__E=Y.__=null),Y.__e=!1}else K==null&&_.__v===N.__v?(_.__k=N.__k,_.__e=N.__e):_.__e=$(N.__e,_,N,q,X,K,ut,bt);(_t=r.diffed)&&_t(_)}catch(cr){_.__v=null,(bt||K!=null)&&(_.__e=mt,_.__h=!!bt,K[K.indexOf(mt)]=null),r.__e(cr,_,N)}}function U(B,_){r.__c&&r.__c(_,B),B.some(function(N){try{B=N.__h,N.__h=[],B.some(function(q){q.call(N)})}catch(q){r.__e(q,N.__v)}})}function $(B,_,N,q,X,K,ut,mt){var bt,_t,Y,Ht=N.props,Ft=_.props,gt=_.type,Pt=0;if(gt==="svg"&&(X=!0),K!=null){for(;Pt<K.length;Pt++)if((bt=K[Pt])&&"setAttribute"in bt==!!gt&&(gt?bt.localName===gt:bt.nodeType===3)){B=bt,K[Pt]=null;break}}if(B==null){if(gt===null)return document.createTextNode(Ft);B=X?document.createElementNS("http://www.w3.org/2000/svg",gt):document.createElement(gt,Ft.is&&Ft),K=null,mt=!1}if(gt===null)Ht===Ft||mt&&B.data===Ft||(B.data=Ft);else{if(K=K&&n.call(B.childNodes),_t=(Ht=N.props||c).dangerouslySetInnerHTML,Y=Ft.dangerouslySetInnerHTML,!mt){if(K!=null)for(Ht={},Pt=0;Pt<B.attributes.length;Pt++)Ht[B.attributes[Pt].name]=B.attributes[Pt].value;(Y||_t)&&(Y&&(_t&&Y.__html==_t.__html||Y.__html===B.innerHTML)||(B.innerHTML=Y&&Y.__html||""))}if(function(ze,Yt,le,Ae,Mn){var Gt;for(Gt in le)Gt==="children"||Gt==="key"||Gt in Yt||V(ze,Gt,null,le[Gt],Ae);for(Gt in Yt)Mn&&typeof Yt[Gt]!="function"||Gt==="children"||Gt==="key"||Gt==="value"||Gt==="checked"||le[Gt]===Yt[Gt]||V(ze,Gt,Yt[Gt],le[Gt],Ae)}(B,Ft,Ht,X,mt),Y)_.__k=[];else if(Pt=_.props.children,S(B,Array.isArray(Pt)?Pt:[Pt],_,N,q,X&>!=="foreignObject",K,ut,K?K[0]:N.__k&&w(N,0),mt),K!=null)for(Pt=K.length;Pt--;)K[Pt]!=null&&y(K[Pt]);mt||("value"in Ft&&(Pt=Ft.value)!==void 0&&(Pt!==Ht.value||Pt!==B.value||gt==="progress"&&!Pt)&&V(B,"value",Pt,Ht.value,!1),"checked"in Ft&&(Pt=Ft.checked)!==void 0&&Pt!==B.checked&&V(B,"checked",Pt,Ht.checked,!1))}return B}function J(B,_,N){try{typeof B=="function"?B(_):B.current=_}catch(q){r.__e(q,N)}}function st(B,_,N){var q,X;if(r.unmount&&r.unmount(B),(q=B.ref)&&(q.current&&q.current!==B.__e||J(q,null,_)),(q=B.__c)!=null){if(q.componentWillUnmount)try{q.componentWillUnmount()}catch(K){r.__e(K,_)}q.base=q.__P=null}if(q=B.__k)for(X=0;X<q.length;X++)q[X]&&st(q[X],_,typeof B.type!="function");N||B.__e==null||y(B.__e),B.__e=B.__d=void 0}function lt(B,_,N){return this.constructor(B,N)}function ct(B,_,N){var q,X,K;r.__&&r.__(B,_),X=(q=typeof N=="function")?null:N&&N.__k||_.__k,K=[],H(_,B=(!q&&N||_).__k=g(m,null,[B]),X||c,c,_.ownerSVGElement!==void 0,!q&&N?[N]:X?null:_.firstChild?n.call(_.childNodes):null,K,!q&&N?N:X?X.__e:_.firstChild,q),U(K,B)}n=f.slice,r={__e:function(B,_){for(var N,q,X;_=_.__;)if((N=_.__c)&&!N.__)try{if((q=N.constructor)&&q.getDerivedStateFromError!=null&&(N.setState(q.getDerivedStateFromError(B)),X=N.__d),N.componentDidCatch!=null&&(N.componentDidCatch(B),X=N.__d),X)return N.__E=N}catch(K){B=K}throw B}},o=0,i=function(B){return B!=null&&B.constructor===void 0},h.prototype.setState=function(B,_){var N;N=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=d({},this.state),typeof B=="function"&&(B=B(d({},N),this.props)),B&&d(N,B),B!=null&&this.__v&&(_&&this.__h.push(_),C(this))},h.prototype.forceUpdate=function(B){this.__v&&(this.__e=!0,B&&this.__h.push(B),C(this))},h.prototype.render=m,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D.__r=0,l=0,e.Component=h,e.Fragment=m,e.cloneElement=function(B,_,N){var q,X,K,ut=d({},B.props);for(K in _)K=="key"?q=_[K]:K=="ref"?X=_[K]:ut[K]=_[K];return arguments.length>2&&(ut.children=arguments.length>3?n.call(arguments,2):N),v(B.type,ut,q||B.key,X||B.ref,null)},e.createContext=function(B,_){var N={__c:_="__cC"+l++,__:B,Consumer:function(q,X){return q.children(X)},Provider:function(q){var X,K;return this.getChildContext||(X=[],(K={})[_]=this,this.getChildContext=function(){return K},this.shouldComponentUpdate=function(ut){this.props.value!==ut.value&&X.some(C)},this.sub=function(ut){X.push(ut);var mt=ut.componentWillUnmount;ut.componentWillUnmount=function(){X.splice(X.indexOf(ut),1),mt&&mt.call(ut)}}),q.children}};return N.Provider.__=N.Consumer.contextType=N},e.createElement=g,e.createRef=function(){return{current:null}},e.h=g,e.hydrate=function B(_,N){ct(_,N,B)},e.isValidElement=i,e.options=r,e.render=ct,e.toChildArray=function B(_,N){return N=N||[],_==null||typeof _=="boolean"||(Array.isArray(_)?_.some(function(q){B(q,N)}):N.push(_)),N}}),CQ=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((n=t)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?t:null;var n},vE=class{constructor(t,e){e===void 0&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:{...e,[this.id]:{...e[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new ik([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),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 wk(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var xQ=0;function SQ(t){return"__private_"+xQ+++"_"+t}const{render:Ek}=EQ;var vd=SQ("updateUI");class mE extends vE{constructor(){super(...arguments),Object.defineProperty(this,vd,{writable:!0,value:void 0})}mount(e,n){const r=n.id,o=CQ(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return wk(this,vd)[vd]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,p=new Array(f),d=0;d<f;d++)p[d]=arguments[d];return c=p,l||(l=Promise.resolve().then(()=>(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(Ek(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),Ek(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof e=="object"&&e instanceof mE)i=e;else if(typeof e=="function"){const u=e;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 e=="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(e){var n,r;this.el!=null&&((n=(r=wk(this,vd))[vd])==null||n.call(r,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var DQ=mE;const{debugLogger:AQ}=hk;var md=bk,_Q=bk,OQ=DQ,kQ=vE,BQ=AQ;md.Uppy=_Q,md.UIPlugin=OQ,md.BasePlugin=kQ,md.debugLogger=BQ;class TQ extends Error{constructor(e,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=e,this.isNetworkError=!0,this.request=n}}var yE=TQ,bE=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new yE(t)})};class FQ extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var nv,fa,Vo,da,Ck,PQ=FQ;function zo(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var NQ=0;function wE(t){return"__private_"+NQ+++"_"+t}async function EE(t){if(t.status===401)throw new PQ;const e=t.json();if(t.status<200||t.status>300){let n=`Failed request with status: ${t.status}. ${t.statusText}`;try{const r=await e;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return e}var CE=(fa=wE("getPostResponseFunc"),Vo=wE("getUrl"),da=wE("errorHandler"),Ck=nv=class zU{constructor(e,n){Object.defineProperty(this,da,{value:IQ}),Object.defineProperty(this,Vo,{value:jQ}),Object.defineProperty(this,fa,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=e,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),n=this.opts.companionUrl;return(e&&e[n]?e[n]:n).replace(/\/$/,"")}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve({...zU.defaultHeaders,...e})}onReceiveResponse(e){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(zo(this,Vo)[Vo](e),{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(e){return Promise.all([this.preflight(e),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(e,n){return this.preflightAndHeaders(e).then(r=>bE(zo(this,Vo)[Vo](e),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(zo(this,fa)[fa](n)).then(EE).catch(zo(this,da)[da]("get",e))}post(e,n,r){const o="post";return this.preflightAndHeaders(e).then(i=>bE(zo(this,Vo)[Vo](e),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(zo(this,fa)[fa](r)).then(EE).catch(zo(this,da)[da](o,e))}delete(e,n,r){const o="delete";return this.preflightAndHeaders(e).then(i=>bE(`${this.hostname}/${e}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(zo(this,fa)[fa](r)).then(EE).catch(zo(this,da)[da](o,e))}},nv.VERSION="2.0.4",nv.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${nv.VERSION}`},Ck);function jQ(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function IQ(t,e){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${t} ${zo(this,Vo)[Vo](e)}`);o.cause=n,n=o}return Promise.reject(n)}}var LQ={setItem:(t,e)=>new Promise(n=>{localStorage.setItem(t,e),n()}),getItem:t=>Promise.resolve(localStorage.getItem(t)),removeItem:t=>new Promise(e=>{localStorage.removeItem(t),e()})},Ho,pa,Rr,Nn,rv;let xk,Sk;function en(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var RQ=0;function yd(t){return"__private_"+RQ+++"_"+t}var MQ=(Ho=yd("queued"),pa=yd("emitter"),Rr=yd("isOpen"),Nn=yd("socket"),rv=yd("handleMessage"),xk=Symbol.for("uppy test: getSocket"),Sk=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,Ho,{writable:!0,value:[]}),Object.defineProperty(this,pa,{writable:!0,value:ak()}),Object.defineProperty(this,Rr,{writable:!0,value:!1}),Object.defineProperty(this,Nn,{writable:!0,value:void 0}),Object.defineProperty(this,rv,{writable:!0,value:e=>{try{const n=JSON.parse(e.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=t,t&&t.autoOpen===!1||this.open()}get isOpen(){return en(this,Rr)[Rr]}[xk](){return en(this,Nn)[Nn]}[Sk](){return en(this,Ho)[Ho]}open(){en(this,Nn)[Nn]=new WebSocket(this.opts.target),en(this,Nn)[Nn].onopen=()=>{for(en(this,Rr)[Rr]=!0;en(this,Ho)[Ho].length>0&&en(this,Rr)[Rr];){const t=en(this,Ho)[Ho].shift();this.send(t.action,t.payload)}},en(this,Nn)[Nn].onclose=()=>{en(this,Rr)[Rr]=!1},en(this,Nn)[Nn].onmessage=en(this,rv)[rv]}close(){var t;(t=en(this,Nn)[Nn])==null||t.close()}send(t,e){en(this,Rr)[Rr]?en(this,Nn)[Nn].send(JSON.stringify({action:t,payload:e})):en(this,Ho)[Ho].push({action:t,payload:e})}on(t,e){en(this,pa)[pa].on(t,e)}emit(t,e){en(this,pa)[pa].emit(t,e)}once(t,e){en(this,pa)[pa].once(t,e)}}),VQ={RequestClient:CE,Provider:class extends CE{constructor(t,e){super(t,e),this.provider=e.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(t=>{let[e,n]=t;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...r}})}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),n=e.getPluginState().authenticated?t.status!==401:t.status<400;return e.setPluginState({authenticated:n}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(t){return t===void 0&&(t={}),this.preAuthToken&&(t.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(t)}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(t=>{this.preAuthToken=t.token}).catch(t=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")}):Promise.resolve()}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then(t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(t=>{let[e]=t;return e})}static initPlugin(t,e,n){if(t.type="acquirer",t.files=[],n&&(t.opts={...n,...e}),e.serverUrl||e.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(e.companionAllowedHosts){const r=e.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(e.companionUrl)?t.opts.companionAllowedHosts=`https://${e.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(e.companionUrl).origin;t.storage=t.opts.storage||LQ}},SearchProvider:class extends CE{constructor(t,e){super(t,e),this.provider=e.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}fileUrl(t){return`${this.hostname}/search/${this.id}/get/${t}`}search(t,e){return e=e?`&${e}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(t)}${e}`)}},Socket:MQ},ha,zl,zQ=$u(function(t,e,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=e;r&&(t.uppy.log(`Upload progress: ${r}`),t.uppy.emit("upload-progress",n,{uploader:t,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function bd(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var HQ=0;function Dk(t){return"__private_"+HQ+++"_"+t}var Ak=(ha=Dk("emitter"),zl=Dk("events"),class{constructor(t){Object.defineProperty(this,ha,{writable:!0,value:void 0}),Object.defineProperty(this,zl,{writable:!0,value:[]}),bd(this,ha)[ha]=t}on(t,e){return bd(this,zl)[zl].push([t,e]),bd(this,ha)[ha].on(t,e)}remove(){for(const[t,e]of bd(this,zl)[zl].splice(0))bd(this,ha)[ha].off(t,e)}});function Mr(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var UQ=0;function ov(t){return"__private_"+UQ+++"_"+t}var Si=ov("aliveTimer"),Zu=ov("isDone"),wd=ov("onTimedOut"),Ju=ov("timeout"),_k=class{constructor(t,e){Object.defineProperty(this,Si,{writable:!0,value:void 0}),Object.defineProperty(this,Zu,{writable:!0,value:!1}),Object.defineProperty(this,wd,{writable:!0,value:void 0}),Object.defineProperty(this,Ju,{writable:!0,value:void 0}),Mr(this,Ju)[Ju]=t,Mr(this,wd)[wd]=e}progress(){Mr(this,Zu)[Zu]||Mr(this,Ju)[Ju]>0&&(clearTimeout(Mr(this,Si)[Si]),Mr(this,Si)[Si]=setTimeout(Mr(this,wd)[wd],Mr(this,Ju)[Ju]))}done(){Mr(this,Zu)[Zu]||(clearTimeout(Mr(this,Si)[Si]),Mr(this,Si)[Si]=null,Mr(this,Zu)[Zu]=!0)}};function nn(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var WQ=0;function Qu(t){return"__private_"+WQ+++"_"+t}function GQ(){return new Error("Cancelled")}var Cr=Qu("activeRequests"),Yn=Qu("queuedHandlers"),Ed=Qu("call"),Cd=Qu("queueNext"),xE=Qu("next"),SE=Qu("queue"),DE=Qu("dequeue");function qQ(t){nn(this,Cr)[Cr]+=1;let e,n=!1;try{e=t()}catch(r){throw nn(this,Cr)[Cr]-=1,r}return{abort:()=>{n||(n=!0,nn(this,Cr)[Cr]-=1,e(),nn(this,Cd)[Cd]())},done:()=>{n||(n=!0,nn(this,Cr)[Cr]-=1,nn(this,Cd)[Cd]())}}}function $Q(){queueMicrotask(()=>nn(this,xE)[xE]())}function KQ(){if(nn(this,Cr)[Cr]>=this.limit||nn(this,Yn)[Yn].length===0)return;const t=nn(this,Yn)[Yn].shift(),e=nn(this,Ed)[Ed](t.fn);t.abort=e.abort,t.done=e.done}function YQ(t,e){e===void 0&&(e={});const n={fn:t,priority:e.priority||0,abort:()=>{nn(this,DE)[DE](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=nn(this,Yn)[Yn].findIndex(o=>n.priority>o.priority);return r===-1?nn(this,Yn)[Yn].push(n):nn(this,Yn)[Yn].splice(r,0,n),n}function XQ(t){const e=nn(this,Yn)[Yn].indexOf(t);e!==-1&&nn(this,Yn)[Yn].splice(e,1)}var ZQ={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,DE,{value:XQ}),Object.defineProperty(this,SE,{value:YQ}),Object.defineProperty(this,xE,{value:KQ}),Object.defineProperty(this,Cd,{value:$Q}),Object.defineProperty(this,Ed,{value:qQ}),Object.defineProperty(this,Cr,{writable:!0,value:0}),Object.defineProperty(this,Yn,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return nn(this,Cr)[Cr]<this.limit?nn(this,Ed)[Ed](t):nn(this,SE)[SE](t,e)}wrapPromiseFunction(t,e){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(t(...o))}catch(p){f=Promise.reject(p)}return f.then(p=>{c?l(c):(a.done(),s(p))},p=>{c?l(c):(a.done(),l(p))}),()=>{c=GQ()}},e)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},Ok,kk,Bk=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},JQ={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:QQ}=gk,{Provider:ttt,RequestClient:ett,Socket:ntt}=VQ,{RateLimitedQueue:rtt,internalRateLimitedQueue:AE}=ZQ;function Tk(t,e){let n=e;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})),Bk(t)?(n=new yE(n,t),n):(n.request=t,n)}function Fk(t){return t.data.slice(0,t.data.size,t.meta.type)}var ott=(kk=Ok=class extends vE{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=JQ;const n={formData:!0,fieldName:e.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){t.log(i)}return o},getResponseError(r,o){let i=new Error("Upload error");return Bk(o)&&(i=new yE(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),AE in this.opts?this.requests=this.opts[AE]:this.requests=new rtt(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(t){const e=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...e||{},...t.xhrUpload||{},headers:{}};return typeof n=="function"?r.headers=n(t):Object.assign(r.headers,this.opts.headers),e&&Object.assign(r.headers,e.headers),t.xhrUpload&&Object.assign(r.headers,t.xhrUpload.headers),r}addMetadata(t,e,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(e)).forEach(r=>{t.append(r,e[r])})}createFormDataUpload(t,e){const n=new FormData;this.addMetadata(n,t.meta,e);const r=Fk(t);return t.name?n.append(e.fieldName,r,t.meta.name):n.append(e.fieldName,r),n}createBundledUpload(t,e){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,e),t.forEach(o=>{const i=this.getOptions(o),a=Fk(o);o.name?n.append(i.fieldName,a,o.name):n.append(i.fieldName,a)}),n}upload(t,e,n){const r=this.getOptions(t);return this.uppy.log(`uploading ${e} of ${n}`),new Promise((o,i)=>{this.uppy.emit("upload-started",t);const a=r.formData?this.createFormDataUpload(t,r):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new Ak(this.uppy);const s=new _k(r.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",t,f),i(f)}),l=QQ();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",t,{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[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r.validateStatus(f.target.status,u.responseText,u)){const g=r.getResponseData(u.responseText,u),v=g[r.responseUrlFieldName],m={status:f.target.status,body:g,uploadURL:v};return this.uppy.emit("upload-success",t,m),v&&this.uppy.log(`Download ${t.name} from ${v}`),o(t)}const p=r.getResponseData(u.responseText,u),d=Tk(u,r.getResponseError(u.responseText,u)),y={status:f.target.status,body:p};return this.uppy.emit("upload-error",t,d,y),i(d)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const f=Tk(u,r.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,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",t);const f=this.getOptions(t);return Object.keys(f.headers).forEach(p=>{u.setRequestHeader(p,f.headers[p])}),u.send(a),()=>{s.done(),u.abort()}});this.onFileRemove(t.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(t.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(t){const e=this.getOptions(t);return new Promise((n,r)=>{this.uppy.emit("upload-started",t);const o={};(Array.isArray(e.metaFields)?e.metaFields:Object.keys(t.meta)).forEach(i=>{o[i]=t.meta[i]}),new(t.remote.providerOptions.provider?ttt:ett)(this.uppy,t.remote.providerOptions).post(t.remote.url,{...t.remote.body,endpoint:e.endpoint,size:t.data.size,fieldname:e.fieldName,metadata:o,httpMethod:e.method,useFormData:e.formData,headers:e.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}`}(t.remote.companionUrl),s=new ntt({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[t.id]=new Ak(this.uppy),this.onFileRemove(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",c=>zQ(this,c,t)),s.on("success",c=>{const f=e.getResponseData(c.response.responseText,c.response),p=f[e.responseUrlFieldName],d={status:c.response.status,body:f,uploadURL:p};return this.uppy.emit("upload-success",t,d),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n()}),s.on("error",c=>{const f=c.response,p=f?e.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",t,p),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r(p)});const l=this.requests.run(()=>(s.open(),t.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",t,i),r(i)})})}uploadBundle(t){return new Promise((e,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(t,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new _k(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=>{t.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&&t.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 p=this.opts.getResponseData(u.responseText,u),d={status:c.target.status,body:p};return t.forEach(y=>{this.uppy.emit("upload-success",y,d)}),e()}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),t.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(t){const e=t.map((n,r)=>{const o=parseInt(r,10)+1,i=t.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}))}(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",n=>{t===n.id&&e(n.id)})}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",n=>{t===n&&e()})}onRetryAll(t,e){this.uploaderEvents[t].on("retry-all",()=>{this.uppy.getFile(t)&&e()})}onCancelAll(t,e){this.uploaderEvents[t].on("cancel-all",()=>{this.uppy.getFile(t)&&e()})}handleUpload(t){if(t.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[AE]||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 e=t.map(n=>this.uppy.getFile(n));if(this.opts.bundle){if(e.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(e)}return this.uploadFiles(e).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Ok.VERSION="2.0.6",kk),Pk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xd(t){var e={exports:{}};return t(e,e.exports),e.exports}var ga,iv,av=function(t){return t&&t.Math==Math&&t},Z=av(typeof globalThis=="object"&&globalThis)||av(typeof window=="object"&&window)||av(typeof self=="object"&&self)||av(typeof Pk=="object"&&Pk)||function(){return this}()||Function("return this")(),itt=Object.defineProperty,_E=function(t,e){try{itt(Z,t,{value:e,configurable:!0,writable:!0})}catch{Z[t]=e}return e},va=Z["__core-js_shared__"]||_E("__core-js_shared__",{}),OE=xd(function(t){(t.exports=function(e,n){return va[e]||(va[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Nk=Function.prototype,kE=Nk.bind,BE=Nk.call,att=kE&&kE.bind(BE),ht=kE?function(t){return t&&att(BE,t)}:function(t){return t&&function(){return BE.apply(t,arguments)}},utt=Z.TypeError,Vr=function(t){if(t==null)throw utt("Can't call method on "+t);return t},stt=Z.Object,ma=function(t){return stt(Vr(t))},ltt=ht({}.hasOwnProperty),We=Object.hasOwn||function(t,e){return ltt(ma(t),e)},ctt=0,ftt=Math.random(),dtt=ht(1 .toString),TE=function(t){return"Symbol("+(t===void 0?"":t)+")_"+dtt(++ctt+ftt,36)},ue=function(t){return typeof t=="function"},ptt=function(t){return ue(t)?t:void 0},ts=function(t,e){return arguments.length<2?ptt(Z[t]):Z[t]&&Z[t][e]},Hl=ts("navigator","userAgent")||"",jk=Z.process,Ik=Z.Deno,Lk=jk&&jk.versions||Ik&&Ik.version,Rk=Lk&&Lk.v8;Rk&&(iv=(ga=Rk.split("."))[0]>0&&ga[0]<4?1:+(ga[0]+ga[1])),!iv&&Hl&&(!(ga=Hl.match(/Edge\/(\d+)/))||ga[1]>=74)&&(ga=Hl.match(/Chrome\/(\d+)/))&&(iv=+ga[1]);var Sd=iv,ne=function(t){try{return!!t()}catch{return!0}},FE=!!Object.getOwnPropertySymbols&&!ne(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Sd&&Sd<41}),PE=FE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Dd=OE("wks"),es=Z.Symbol,Mk=es&&es.for,htt=PE?es:es&&es.withoutSetter||TE,Oe=function(t){if(!We(Dd,t)||!FE&&typeof Dd[t]!="string"){var e="Symbol."+t;FE&&We(es,t)?Dd[t]=es[t]:Dd[t]=PE&&Mk?Mk(e):htt(e)}return Dd[t]},Vk={};Vk[Oe("toStringTag")]="z";var NE=String(Vk)==="[object z]",bn=!ne(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),me=function(t){return typeof t=="object"?t!==null:ue(t)},jE=Z.document,gtt=me(jE)&&me(jE.createElement),Ad=function(t){return gtt?jE.createElement(t):{}},zk=!bn&&!ne(function(){return Object.defineProperty(Ad("div"),"a",{get:function(){return 7}}).a!=7}),vtt=Z.String,mtt=Z.TypeError,Ge=function(t){if(me(t))return t;throw mtt(vtt(t)+" is not an object")},_d=Function.prototype.call,$t=_d.bind?_d.bind(_d):function(){return _d.apply(_d,arguments)},ns=ht({}.isPrototypeOf),ytt=Z.Object,IE=PE?function(t){return typeof t=="symbol"}:function(t){var e=ts("Symbol");return ue(e)&&ns(e.prototype,ytt(t))},btt=Z.String,uv=function(t){try{return btt(t)}catch{return"Object"}},wtt=Z.TypeError,ya=function(t){if(ue(t))return t;throw wtt(uv(t)+" is not a function")},rs=function(t,e){var n=t[e];return n==null?void 0:ya(n)},Ett=Z.TypeError,Ctt=Z.TypeError,xtt=Oe("toPrimitive"),LE=function(t){var e=function(n,r){if(!me(n)||IE(n))return n;var o,i=rs(n,xtt);if(i){if(r===void 0&&(r="default"),o=$t(i,n,r),!me(o)||IE(o))return o;throw Ctt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&ue(s=a.toString)&&!me(l=$t(s,a))||ue(s=a.valueOf)&&!me(l=$t(s,a))||u!=="string"&&ue(s=a.toString)&&!me(l=$t(s,a)))return l;throw Ett("Can't convert object to primitive value")}(n,r)}(t,"string");return IE(e)?e:e+""},Stt=Z.TypeError,Hk=Object.defineProperty,po={f:bn?Hk:function(t,e,n){if(Ge(t),e=LE(e),Ge(n),zk)try{return Hk(t,e,n)}catch{}if("get"in n||"set"in n)throw Stt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},sv=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ho=bn?function(t,e,n){return po.f(t,e,sv(1,n))}:function(t,e,n){return t[e]=n,t},Dtt=ht(Function.toString);ue(va.inspectSource)||(va.inspectSource=function(t){return Dtt(t)});var lv,Od,cv,fv=va.inspectSource,Uk=Z.WeakMap,Wk=ue(Uk)&&/native code/.test(fv(Uk)),Gk=OE("keys"),RE=function(t){return Gk[t]||(Gk[t]=TE(t))},dv={},ME=Z.TypeError,Att=Z.WeakMap;if(Wk||va.state){var os=va.state||(va.state=new Att),_tt=ht(os.get),qk=ht(os.has),Ott=ht(os.set);lv=function(t,e){if(qk(os,t))throw new ME("Object already initialized");return e.facade=t,Ott(os,t,e),e},Od=function(t){return _tt(os,t)||{}},cv=function(t){return qk(os,t)}}else{var Ul=RE("state");dv[Ul]=!0,lv=function(t,e){if(We(t,Ul))throw new ME("Object already initialized");return e.facade=t,ho(t,Ul,e),e},Od=function(t){return We(t,Ul)?t[Ul]:{}},cv=function(t){return We(t,Ul)}}var jn={set:lv,get:Od,has:cv,enforce:function(t){return cv(t)?Od(t):lv(t,{})},getterFor:function(t){return function(e){var n;if(!me(e)||(n=Od(e)).type!==t)throw ME("Incompatible receiver, "+t+" required");return n}}},$k=Function.prototype,ktt=bn&&Object.getOwnPropertyDescriptor,VE=We($k,"name"),Wl={EXISTS:VE,PROPER:VE&&(function(){}).name==="something",CONFIGURABLE:VE&&(!bn||bn&&ktt($k,"name").configurable)},or=xd(function(t){var e=Wl.CONFIGURABLE,n=jn.get,r=jn.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;ue(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!We(u,"name")||e&&u.name!==d)&&ho(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Z?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ho(i,a,u)):f?i[a]=u:_E(a,u)})(Function.prototype,"toString",function(){return ue(this)&&n(this).source||fv(this)})}),Btt=ht({}.toString),Ttt=ht("".slice),go=function(t){return Ttt(Btt(t),8,-1)},Ftt=Oe("toStringTag"),Ptt=Z.Object,Ntt=go(function(){return arguments}())=="Arguments",pv=NE?go:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Ptt(t),Ftt))=="string"?n:Ntt?go(e):(r=go(e))=="Object"&&ue(e.callee)?"Arguments":r},jtt=NE?{}.toString:function(){return"[object "+pv(this)+"]"};NE||or(Object.prototype,"toString",jtt,{unsafe:!0});var hv={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},zE=Ad("span").classList,Kk=zE&&zE.constructor&&zE.constructor.prototype,Yk=Kk===Object.prototype?void 0:Kk,Xk=ht(ht.bind),is=function(t,e){return ya(t),e===void 0?t:Xk?Xk(t,e):function(){return t.apply(e,arguments)}},HE=Z.Object,Itt=ht("".split),gv=ne(function(){return!HE("z").propertyIsEnumerable(0)})?function(t){return go(t)=="String"?Itt(t,""):HE(t)}:HE,Ltt=Math.ceil,Rtt=Math.floor,kd=function(t){var e=+t;return e!=e||e===0?0:(e>0?Rtt:Ltt)(e)},Mtt=Math.min,Gl=function(t){return t>0?Mtt(kd(t),9007199254740991):0},as=function(t){return Gl(t.length)},vv=Array.isArray||function(t){return go(t)=="Array"},Zk=function(){},Vtt=[],Jk=ts("Reflect","construct"),UE=/^\s*(?:class|function)\b/,ztt=ht(UE.exec),Htt=!UE.exec(Zk),Bd=function(t){if(!ue(t))return!1;try{return Jk(Zk,Vtt,t),!0}catch{return!1}},mv=!Jk||ne(function(){var t;return Bd(Bd.call)||!Bd(Object)||!Bd(function(){t=!0})||t})?function(t){if(!ue(t))return!1;switch(pv(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Htt||!!ztt(UE,fv(t))}:Bd,Utt=Oe("species"),Qk=Z.Array,tB=function(t,e){return new(function(n){var r;return vv(n)&&(r=n.constructor,(mv(r)&&(r===Qk||vv(r.prototype))||me(r)&&(r=r[Utt])===null)&&(r=void 0)),r===void 0?Qk:r}(t))(e===0?0:e)},eB=ht([].push),ba=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=ma(s),g=gv(y),v=is(l,c),m=as(g),h=0,w=f||tB,E=e?w(s,m):n||a?w(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:eB(E,p)}else switch(t){case 4:return!1;case 7:eB(E,p)}return i?-1:r||o?o:E}},ql={forEach:ba(0),map:ba(1),filter:ba(2),some:ba(3),every:ba(4),find:ba(5),findIndex:ba(6),filterReject:ba(7)},nB=function(t,e){var n=[][t];return!!n&&ne(function(){n.call(null,e||function(){throw 1},1)})},Wtt=ql.forEach,WE=nB("forEach")?[].forEach:function(t){return Wtt(this,t,arguments.length>1?arguments[1]:void 0)},rB=function(t){if(t&&t.forEach!==WE)try{ho(t,"forEach",WE)}catch{t.forEach=WE}};for(var GE in hv)hv[GE]&&rB(Z[GE]&&Z[GE].prototype);rB(Yk);var oB={}.propertyIsEnumerable,iB=Object.getOwnPropertyDescriptor,Gtt=iB&&!oB.call({1:2},1)?function(t){var e=iB(this,t);return!!e&&e.enumerable}:oB,aB={f:Gtt},wa=function(t){return gv(Vr(t))},uB=Object.getOwnPropertyDescriptor,Td={f:bn?uB:function(t,e){if(t=wa(t),e=LE(e),zk)try{return uB(t,e)}catch{}if(We(t,e))return sv(!$t(aB.f,t,e),t[e])}},qtt=Math.max,$tt=Math.min,$l=function(t,e){var n=kd(t);return n<0?qtt(n+e,0):$tt(n,e)},sB=function(t){return function(e,n,r){var o,i=wa(e),a=as(i),u=$l(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},lB={includes:sB(!0),indexOf:sB(!1)},Ktt=lB.indexOf,cB=ht([].push),fB=function(t,e){var n,r=wa(t),o=0,i=[];for(n in r)!We(dv,n)&&We(r,n)&&cB(i,n);for(;e.length>o;)We(r,n=e[o++])&&(~Ktt(i,n)||cB(i,n));return i},yv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ytt=yv.concat("length","prototype"),Fd={f:Object.getOwnPropertyNames||function(t){return fB(t,Ytt)}},dB={f:Object.getOwnPropertySymbols},Xtt=ht([].concat),Ztt=ts("Reflect","ownKeys")||function(t){var e=Fd.f(Ge(t)),n=dB.f;return n?Xtt(e,n(t)):e},Jtt=function(t,e){for(var n=Ztt(e),r=po.f,o=Td.f,i=0;i<n.length;i++){var a=n[i];We(t,a)||r(t,a,o(e,a))}},Qtt=/#|\.prototype\./,Pd=function(t,e){var n=eet[tet(t)];return n==ret||n!=net&&(ue(e)?ne(e):!!e)},tet=Pd.normalize=function(t){return String(t).replace(Qtt,".").toLowerCase()},eet=Pd.data={},net=Pd.NATIVE="N",ret=Pd.POLYFILL="P",Nd=Pd,oet=Td.f,ke=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Z:l?Z[u]||_E(u,{}):(Z[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=oet(n,r))&&a.value:n[r],!Nd(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Jtt(i,o)}(t.sham||o&&o.sham)&&ho(i,"sham",!0),or(n,r,i,t)}},Kl=Object.keys||function(t){return fB(t,yv)},iet=ne(function(){Kl(1)});/*!
|
|
37
|
-
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
38
|
-
*
|
|
39
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
40
|
-
* Released under the MIT License.
|
|
41
|
-
*/function pB(t){return Object.prototype.toString.call(t)==="[object Object]"}ke({target:"Object",stat:!0,forced:iet},{keys:function(t){return Kl(ma(t))}});var aet={isHistory(t){return pB(e=t)!==!1&&((n=e.constructor)===void 0||pB(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||ua.isOperationList(t.redos[0]))&&(t.undos.length===0||ua.isOperationList(t.undos[0]));var e,n,r}},qE=new WeakMap,$E=new WeakMap,Yl={isHistoryEditor:t=>aet.isHistory(t.history)&&x.isEditor(t),isMerging:t=>$E.get(t),isSaving:t=>qE.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var n=Yl.isMerging(t);$E.set(t,!1),e(),$E.set(t,n)},withoutSaving(t,e){var n=Yl.isSaving(t);qE.set(t,!1),e(),qE.set(t,n)}},uet=Z.String,ge=function(t){if(pv(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return uet(t)},KE=function(){var t=Ge(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},set=Wl.PROPER,YE=RegExp.prototype,hB=YE.toString,cet=ht(KE),fet=ne(function(){return hB.call({source:"a",flags:"b"})!="/a/b"}),det=set&&hB.name!="toString";(fet||det)&&or(RegExp.prototype,"toString",function(){var t=Ge(this),e=ge(t.source),n=t.flags;return"/"+e+"/"+ge(n===void 0&&ns(YE,t)&&!("flags"in YE)?cet(t):n)},{unsafe:!0});var bv,pet=bn?Object.defineProperties:function(t,e){Ge(t);for(var n,r=wa(e),o=Kl(e),i=o.length,a=0;i>a;)po.f(t,n=o[a++],r[n]);return t},XE=ts("document","documentElement"),gB=RE("IE_PROTO"),ZE=function(){},vB=function(t){return"<script>"+t+"<\/script>"},mB=function(t){t.write(vB("")),t.close();var e=t.parentWindow.Object;return t=null,e},wv=function(){try{bv=new ActiveXObject("htmlfile")}catch{}var t,e;wv=typeof document<"u"?document.domain&&bv?mB(bv):((e=Ad("iframe")).style.display="none",XE.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(vB("document.F=Object")),t.close(),t.F):mB(bv);for(var n=yv.length;n--;)delete wv.prototype[yv[n]];return wv()};dv[gB]=!0;var Ev=Object.create||function(t,e){var n;return t!==null?(ZE.prototype=Ge(t),n=new ZE,ZE.prototype=null,n[gB]=t):n=wv(),e===void 0?n:pet(n,e)},JE=Oe("unscopables"),QE=Array.prototype;QE[JE]==null&&po.f(QE,JE,{configurable:!0,value:Ev(null)});var jd=function(t){QE[JE][t]=!0},het=lB.includes;ke({target:"Array",proto:!0},{includes:function(t){return het(this,t,arguments.length>1?arguments[1]:void 0)}}),jd("includes");var get=Oe("match"),t4=function(t){var e;return me(t)&&((e=t[get])!==void 0?!!e:go(t)=="RegExp")},vet=Z.TypeError,e4=function(t){if(t4(t))throw vet("The method doesn't accept regular expressions");return t},met=Oe("match"),n4=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[met]=!1,"/./"[t](e)}catch{}}return!1},yet=ht("".indexOf);ke({target:"String",proto:!0,forced:!n4("includes")},{includes:function(t){return!!~yet(ge(Vr(this)),ge(e4(t)),arguments.length>1?arguments[1]:void 0)}});var bet=/"/g,wet=ht("".replace);ke({target:"String",proto:!0,forced:ne(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=ge(Vr(this)),r="<a",(r+=' name="'+wet(ge(e),bet,""")+'"')+">"+n+"</a>";var e,n,r}});var r4=function(t,e,n){var r,o;Ge(t);try{if(!(r=rs(t,"return"))){if(e==="throw")throw n;return n}r=$t(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Ge(r),n},Eet=function(t,e,n,r){try{return r?e(Ge(n)[0],n[1]):e(n)}catch(o){r4(t,"throw",o)}},Xl={},Cet=Oe("iterator"),xet=Array.prototype,yB=function(t){return t!==void 0&&(Xl.Array===t||xet[Cet]===t)},Id=function(t,e,n){var r=LE(e);r in t?po.f(t,r,sv(0,n)):t[r]=n},Det=Oe("iterator"),o4=function(t){if(t!=null)return rs(t,Det)||rs(t,"@@iterator")||Xl[pv(t)]},Aet=Z.TypeError,bB=function(t,e){var n=arguments.length<2?o4(t):e;if(ya(n))return Ge($t(n,t));throw Aet(uv(t)+" is not iterable")},wB=Z.Array,EB=Oe("iterator"),CB=!1;try{var _et=0,xB={next:function(){return{done:!!_et++}},return:function(){CB=!0}};xB[EB]=function(){return this},Array.from(xB,function(){throw 2})}catch{}var i4=function(t,e){if(!e&&!CB)return!1;var n=!1;try{var r={};r[EB]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},Oet=!i4(function(t){Array.from(t)});ke({target:"Array",stat:!0,forced:Oet},{from:function(t){var e=ma(t),n=mv(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=is(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,p=o4(e),d=0;if(!p||this==wB&&yB(p))for(a=as(e),u=n?new this(a):wB(a);a>d;d++)f=i?o(e[d],d):e[d],Id(u,d,f);else for(c=(l=bB(e,p)).next,u=n?new this:[];!(s=$t(c,l)).done;d++)f=i?Eet(l,o,[s.value,d],!0):s.value,Id(u,d,f);return u.length=d,u}});var us,SB,DB,ket=ht("".charAt),AB=ht("".charCodeAt),Bet=ht("".slice),_B=function(t){return function(e,n){var r,o,i=ge(Vr(e)),a=kd(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=AB(i,a))<55296||r>56319||a+1===u||(o=AB(i,a+1))<56320||o>57343?t?ket(i,a):r:t?Bet(i,a,a+2):o-56320+(r-55296<<10)+65536}},OB={codeAt:_B(!1),charAt:_B(!0)},Tet=!ne(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),kB=RE("IE_PROTO"),a4=Z.Object,Fet=a4.prototype,Cv=Tet?a4.getPrototypeOf:function(t){var e=ma(t);if(We(e,kB))return e[kB];var n=e.constructor;return ue(n)&&e instanceof n?n.prototype:e instanceof a4?Fet:null},u4=Oe("iterator"),BB=!1;[].keys&&("next"in(DB=[].keys())?(SB=Cv(Cv(DB)))!==Object.prototype&&(us=SB):BB=!0);var Pet=us==null||ne(function(){var t={};return us[u4].call(t)!==t});Pet&&(us={}),ue(us[u4])||or(us,u4,function(){return this});var s4={IteratorPrototype:us,BUGGY_SAFARI_ITERATORS:BB},Net=po.f,TB=Oe("toStringTag"),xv=function(t,e,n){t&&!We(t=n?t:t.prototype,TB)&&Net(t,TB,{configurable:!0,value:e})},jet=s4.IteratorPrototype,Iet=function(){return this},Let=Z.String,Ret=Z.TypeError,Zl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ht(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Ge(r),function(i){if(typeof i=="object"||ue(i))return i;throw Ret("Can't set "+Let(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),Met=Wl.PROPER,Vet=Wl.CONFIGURABLE,FB=s4.IteratorPrototype,Sv=s4.BUGGY_SAFARI_ITERATORS,Ld=Oe("iterator"),zet=function(){return this},l4=function(t,e,n,r,o,i,a){(function(m,h,w,E){var C=h+" Iterator";m.prototype=Ev(jet,{next:sv(1,w)}),xv(m,C,!1),Xl[C]=Iet})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!Sv&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[Ld]||d["@@iterator"]||o&&d[o],g=!Sv&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=Cv(v.call(new t)))!==Object.prototype&&u.next&&(Cv(u)!==FB&&(Zl?Zl(u,FB):ue(u[Ld])||or(u,Ld,zet)),xv(u,f,!0)),Met&&o=="values"&&y&&y.name!=="values"&&(Vet?ho(d,"name","values"):(p=!0,g=function(){return $t(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Sv||p||!(l in d))&&or(d,l,s[l]);else ke({target:e,proto:!0,forced:Sv||p},s);return d[Ld]!==g&&or(d,Ld,g,{name:o}),Xl[e]=g,s},Het=OB.charAt,Uet=jn.set,Wet=jn.getterFor("String Iterator");l4(String,"String",function(t){Uet(this,{type:"String Iterator",string:ge(t),index:0})},function(){var t,e=Wet(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Het(n,r),e.index+=t.length,{value:t,done:!1})});var c4,Get=Td.f,PB=ht("".endsWith),qet=ht("".slice),$et=Math.min,NB=n4("endsWith"),Ket=!(NB||(c4=Get(String.prototype,"endsWith"),!c4||c4.writable));ke({target:"String",proto:!0,forced:!Ket&&!NB},{endsWith:function(t){var e=ge(Vr(this));e4(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=n===void 0?r:$et(Gl(n),r),i=ge(t);return PB?PB(e,i,o):qet(e,o-i.length,o)===i}});var Yet=ht([].join),Xet=gv!=Object,Zet=nB("join",",");ke({target:"Array",proto:!0,forced:Xet||!Zet},{join:function(t){return Yet(wa(this),t===void 0?",":t)}});var Jet=Oe("species"),Dv=function(t){return Sd>=51||!ne(function(){var e=[];return(e.constructor={})[Jet]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Qet=ql.map,tnt=Dv("map");ke({target:"Array",proto:!0,forced:!tnt},{map:function(t){return Qet(this,t,arguments.length>1?arguments[1]:void 0)}});var f4=Z.RegExp,d4=ne(function(){var t=f4("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),ent=d4||ne(function(){return!f4("a","y").sticky}),Av={BROKEN_CARET:d4||ne(function(){var t=f4("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:ent,UNSUPPORTED_Y:d4},nnt=Z.RegExp,p4=ne(function(){var t=nnt(".","s");return!(t.dotAll&&t.exec(`
|
|
42
|
-
`)&&t.flags==="s")}),rnt=Z.RegExp,h4=ne(function(){var t=rnt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),ont=jn.get,int=OE("native-string-replace",String.prototype.replace),_v=RegExp.prototype.exec,g4=_v,ant=ht("".charAt),unt=ht("".indexOf),snt=ht("".replace),v4=ht("".slice),m4=function(){var t=/a/,e=/b*/g;return $t(_v,t,"a"),$t(_v,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),jB=Av.BROKEN_CARET,y4=/()??/.exec("")[1]!==void 0;(m4||y4||jB||p4||h4)&&(g4=function(t){var e,n,r,o,i,a,u,s=this,l=ont(s),c=ge(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=$t(g4,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=jB&&s.sticky,y=$t(KE,s),g=s.source,v=0,m=c;if(d&&(y=snt(y,"y",""),unt(y,"g")===-1&&(y+="g"),m=v4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&ant(c,s.lastIndex-1)!==`
|
|
43
|
-
`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),y4&&(n=new RegExp("^"+g+"$(?!\\s)",y)),m4&&(r=s.lastIndex),o=$t(_v,d?n:s,m),d?o?(o.input=v4(o.input,v),o[0]=v4(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:m4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),y4&&o&&o.length>1&&$t(int,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=Ev(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Rd=g4;ke({target:"RegExp",proto:!0,forced:/./.exec!==Rd},{exec:Rd});var b4=Function.prototype,IB=b4.apply,lnt=b4.bind,LB=b4.call,w4=typeof Reflect=="object"&&Reflect.apply||(lnt?LB.bind(IB):function(){return LB.apply(IB,arguments)}),cnt=Oe("species"),E4=RegExp.prototype,C4=function(t,e,n,r){var o=Oe(t),i=!ne(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ne(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[cnt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=ht(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=ht(l),g=c.exec;return g===Rd||g===E4.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});or(String.prototype,t,s[0]),or(E4,o,s[1])}r&&ho(E4[o],"sham",!0)},fnt=OB.charAt,x4=function(t,e,n){return e+(n?fnt(t,e).length:1)},dnt=Math.floor,S4=ht("".charAt),pnt=ht("".replace),D4=ht("".slice),hnt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,gnt=/\$([$&'`]|\d{1,2})/g,vnt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=gnt;return o!==void 0&&(o=ma(o),s=hnt),pnt(i,s,function(l,c){var f;switch(S4(c,0)){case"$":return"$";case"&":return t;case"`":return D4(e,0,n);case"'":return D4(e,a);case"<":f=o[D4(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=dnt(p/10);return d===0?l:d<=u?r[d-1]===void 0?S4(c,1):r[d-1]+S4(c,1):l}f=r[p-1]}return f===void 0?"":f})},mnt=Z.TypeError,Md=function(t,e){var n=t.exec;if(ue(n)){var r=$t(n,t,e);return r!==null&&Ge(r),r}if(go(t)==="RegExp")return $t(Rd,t,e);throw mnt("RegExp#exec called on incompatible receiver")},A4=Oe("replace"),ynt=Math.max,bnt=Math.min,wnt=ht([].concat),_4=ht([].push),RB=ht("".indexOf),MB=ht("".slice),Ent="a".replace(/./,"$0")==="$0",VB=!!/./[A4]&&/./[A4]("a","$0")==="";C4("replace",function(t,e,n){var r=VB?"$":"$0";return[function(o,i){var a=Vr(this),u=o==null?void 0:rs(o,A4);return u?$t(u,o,a,i):$t(e,ge(a),o,i)},function(o,i){var a=Ge(this),u=ge(o);if(typeof i=="string"&&RB(i,r)===-1&&RB(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=ue(i);l||(i=ge(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=Md(a,u);if(d===null||(_4(p,d),!c))break;ge(d[0])===""&&(a.lastIndex=x4(u,Gl(a.lastIndex),f))}for(var y,g="",v=0,m=0;m<p.length;m++){for(var h=ge((d=p[m])[0]),w=ynt(bnt(kd(d.index),u.length),0),E=[],C=1;C<d.length;C++)_4(E,(y=d[C])===void 0?y:String(y));var D=d.groups;if(l){var S=wnt([h],E,w,u);D!==void 0&&_4(S,D);var A=ge(w4(i,void 0,S))}else A=vnt(h,u,w,E,D,i);w>=v&&(g+=MB(u,v,w)+A,v=w+h.length)}return g+MB(u,v)}]},!!ne(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Ent||VB);/*! *****************************************************************************
|
|
44
|
-
Copyright (c) Microsoft Corporation.
|
|
45
|
-
|
|
46
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
47
|
-
purpose with or without fee is hereby granted.
|
|
48
|
-
|
|
49
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
50
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
51
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
52
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
53
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
54
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
55
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
56
|
-
***************************************************************************** */var O4=function(t,e){return O4=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])},O4(t,e)};function Jl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}O4(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var zr=function(){return zr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},zr.apply(this,arguments)};function Hr(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Kt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >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 k4(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}var Cnt=0,zB=function(){this.id=""+Cnt++},xnt=jn.set,Snt=jn.getterFor("Array Iterator"),Vd=l4(Array,"Array",function(t,e){xnt(this,{type:"Array Iterator",target:wa(t),index:0,kind:e})},function(){var t=Snt(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Xl.Arguments=Xl.Array,jd("keys"),jd("values"),jd("entries");var Ql=function(t,e,n){for(var r in e)or(t,r,e[r],n);return t},Dnt=Z.Array,Ant=Math.max,B4=function(t,e,n){for(var r=as(t),o=$l(e,r),i=$l(n===void 0?r:n,r),a=Dnt(Ant(i-o,0)),u=0;o<i;o++,u++)Id(a,u,t[o]);return a.length=u,a},HB=Fd.f,UB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_nt={f:function(t){return UB&&go(t)=="Window"?function(e){try{return HB(e)}catch{return B4(UB)}}(t):HB(wa(t))}},WB=ne(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Ov=Object.isExtensible,ss=ne(function(){Ov(1)})||WB?function(t){return!!me(t)&&(!WB||go(t)!="ArrayBuffer")&&(!Ov||Ov(t))}:Ov,Ont=!ne(function(){return Object.isExtensible(Object.preventExtensions({}))}),kv=xd(function(t){var e=po.f,n=!1,r=TE("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=Fd.f,s=ht([].splice),l={};l[r]=1,u(l).length&&(Fd.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},ke({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:_nt.f}))},fastKey:function(u,s){if(!me(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!We(u,r)){if(!ss(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!We(u,r)){if(!ss(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Ont&&n&&ss(u)&&!We(u,r)&&i(u),u}};dv[r]=!0}),knt=Z.TypeError,Bv=function(t,e){this.stopped=t,this.result=e},GB=Bv.prototype,zd=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),y=is(e,c),g=function(m){return r&&r4(r,"normal",m),new Bv(!0,m)},v=function(m){return f?(Ge(m),d?y(m[0],m[1],g):y(m[0],m[1])):d?y(m,g):y(m)};if(p)r=t;else{if(!(o=o4(t)))throw knt(uv(t)+" is not iterable");if(yB(o)){for(i=0,a=as(t);a>i;i++)if((u=v(t[i]))&&ns(GB,u))return u;return new Bv(!1)}r=bB(t,o)}for(s=r.next;!(l=$t(s,r)).done;){try{u=v(l.value)}catch(m){r4(r,"throw",m)}if(typeof u=="object"&&u&&ns(GB,u))return u}return new Bv(!1)},Bnt=Z.TypeError,Tv=function(t,e){if(ns(e,t))return t;throw Bnt("Incorrect invocation")},qB=function(t,e,n){var r,o;return Zl&&ue(r=e.constructor)&&r!==n&&me(o=r.prototype)&&o!==n.prototype&&Zl(t,o),t},$B=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=Z[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=ht(u[v]);or(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!me(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!me(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!me(h))&&m(this,h===0?0:h)}:function(h,w){return m(this,h===0?0:h,w),this})};if(Nd(t,!ue(a)||!(o||u.forEach&&!ne(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),kv.enable();else if(Nd(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=ne(function(){f.has(1)}),y=i4(function(v){new a(v)}),g=!o&&ne(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){Tv(v,u);var h=qB(new a,v,s);return m!=null&&zd(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,ke({global:!0,forced:s!=a},l),xv(s,t),o||n.setStrong(s,t,r),s},Fv=kv.getWeakData,Tnt=jn.set,Fnt=jn.getterFor,Pnt=ql.find,Nnt=ql.findIndex,jnt=ht([].splice),Int=0,Pv=function(t){return t.frozen||(t.frozen=new KB)},KB=function(){this.entries=[]},T4=function(t,e){return Pnt(t.entries,function(n){return n[0]===e})};KB.prototype={get:function(t){var e=T4(this,t);if(e)return e[1]},has:function(t){return!!T4(this,t)},set:function(t,e){var n=T4(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Nnt(this.entries,function(n){return n[0]===t});return~e&&jnt(this.entries,e,1),!!~e}};var Hd,YB={getConstructor:function(t,e,n,r){var o=t(function(s,l){Tv(s,i),Tnt(s,{type:e,id:Int++,frozen:void 0}),l!=null&&zd(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Fnt(e),u=function(s,l,c){var f=a(s),p=Fv(Ge(l),!0);return p===!0?Pv(f).set(l,c):p[f.id]=c,s};return Ql(i,{delete:function(s){var l=a(this);if(!me(s))return!1;var c=Fv(s);return c===!0?Pv(l).delete(s):c&&We(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!me(s))return!1;var c=Fv(s);return c===!0?Pv(l).has(s):c&&We(c,l.id)}}),Ql(i,n?{get:function(s){var l=a(this);if(me(s)){var c=Fv(s);return c===!0?Pv(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}},Nv=jn.enforce,Lnt=!Z.ActiveXObject&&"ActiveXObject"in Z,XB=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Rnt=$B("WeakMap",XB,YB);if(Wk&&Lnt){Hd=YB.getConstructor(XB,"WeakMap",!0),kv.enable();var Ud=Rnt.prototype,ZB=ht(Ud.delete),jv=ht(Ud.has),JB=ht(Ud.get),QB=ht(Ud.set);Ql(Ud,{delete:function(t){if(me(t)&&!ss(t)){var e=Nv(this);return e.frozen||(e.frozen=new Hd),ZB(this,t)||e.frozen.delete(t)}return ZB(this,t)},has:function(t){if(me(t)&&!ss(t)){var e=Nv(this);return e.frozen||(e.frozen=new Hd),jv(this,t)||e.frozen.has(t)}return jv(this,t)},get:function(t){if(me(t)&&!ss(t)){var e=Nv(this);return e.frozen||(e.frozen=new Hd),jv(this,t)?JB(this,t):e.frozen.get(t)}return JB(this,t)},set:function(t,e){if(me(t)&&!ss(t)){var n=Nv(this);n.frozen||(n.frozen=new Hd),jv(this,t)?QB(this,t,e):n.frozen.set(t,e)}else QB(this,t,e);return this}})}var F4=Oe("iterator"),tT=Oe("toStringTag"),P4=Vd.values,eT=function(t,e){if(t){if(t[F4]!==P4)try{ho(t,F4,P4)}catch{t[F4]=P4}if(t[tT]||ho(t,tT,e),hv[e]){for(var n in Vd)if(t[n]!==Vd[n])try{ho(t,n,Vd[n])}catch{t[n]=Vd[n]}}}};for(var N4 in hv)eT(Z[N4]&&Z[N4].prototype,N4);eT(Yk,"DOMTokenList");var j4=new WeakMap,I4=new WeakMap,L4=new WeakMap,Iv=new WeakMap,R4=new WeakMap,Lv=new WeakMap,M4=new WeakMap,V4=new WeakMap,Rv=new WeakMap,nT=new WeakMap,rT=new WeakMap,oT=new WeakMap,iT=new WeakMap,Wd=new WeakMap,tc=new WeakMap,z4=new WeakMap,Mv=new WeakMap,H4=new WeakMap,Vv=new WeakMap,zv=new WeakMap,aT=new WeakMap,ls=new WeakMap,U4=new WeakMap,uT=new WeakMap,W4=new WeakMap,Mnt=ql.find,sT=!0;"find"in[]&&Array(1).find(function(){sT=!1}),ke({target:"Array",proto:!0,forced:sT},{find:function(t){return Mnt(this,t,arguments.length>1?arguments[1]:void 0)}}),jd("find"),ke({global:!0},{globalThis:Z});const Vnt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];G0&&(T.fn.css=G0),Lr&&(T.fn.append=Lr),Ol&&(T.fn.addClass=Ol),kl&&(T.fn.removeClass=kl),Bl&&(T.fn.hasClass=Bl),Ro&&(T.fn.on=Ro),ca&&(T.fn.focus=ca),Ir&&(T.fn.attr=Ir),z0&&(T.fn.removeAttr=z0),Fl&&(T.fn.hide=Fl),W0&&(T.fn.show=W0),hO&&(T.fn.offset=hO),H0&&(T.fn.width=H0),U0&&(T.fn.height=U0),Pl&&(T.fn.parent=Pl),K0&&(T.fn.parents=K0),vO&&(T.fn.is=vO),Tl&&(T.fn.dataset=Tl),Lo&&(T.fn.val=Lo),$0&&(T.fn.text=$0),la&&(T.fn.html=la),jl&&(T.fn.children=jl),Il&&(T.fn.remove=Il),Nl&&(T.fn.find=Nl),q0&&(T.fn.each=q0),Ll&&(T.fn.empty=Ll);var Uo,In,G4=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},vo=function(t){return cs(t)&&t.nodeType===1},cs=function(t){var e=G4(t);return!!e&&t instanceof e.Node},lT=function(t){var e=t&&t.anchorNode&&G4(t.anchorNode);return!!e&&t instanceof e.Selection},cT=function(t){return cs(t)&&t.nodeType===3},q4=function(t){var e,n,r;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(t))||null},fT=function(t,e,n){for(var r,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(cs(r=i)&&r.nodeType===8||vo(i)&&i.childNodes.length===0||vo(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=e-1,n="backward"):a<0?(s=!0,a=e+1,n="forward"):(i=o[a],e=a,a+=n==="forward"?1:-1);return[i,e]},znt=function(t,e,n){return Kt(fT(t,e,n),1)[0]},Hnt=function t(e){var n,r,o="";if(cT(e)&&e.nodeValue)return e.nodeValue;if(vo(e)){try{for(var i=Hr(Array.from(e.childNodes)),a=i.next();!a.done;a=i.next())o+=t(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(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=`
|
|
57
|
-
`)}return o};function dT(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var n=t.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?e(o,t):i!=1&&i!=9&&i!=11||dT(o,e)}}function pT(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==Uo.ELEMENT_NODE?"":e.tagName.toLowerCase()}(In=Uo||(Uo={}))[In.ELEMENT_NODE=1]="ELEMENT_NODE",In[In.TEXT_NODE=3]="TEXT_NODE",In[In.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",In[In.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",In[In.COMMENT_NODE=8]="COMMENT_NODE",In[In.DOCUMENT_NODE=9]="DOCUMENT_NODE",In[In.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",In[In.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var $4=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Gd=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),qd=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Unt=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Wnt=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),K4=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),$d=!Wnt&&!Unt&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",O={getWindow:function(t){var e=aT.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var n=zv.get(e);return n||(n=new zB,zv.set(e,n)),n},setNewKey:function(t){var e=new zB;zv.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var o=tc.get(r);if(o==null){if(x.isEditor(r))return n;break}var i=Wd.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(e))},findDocumentOrShadowRoot:function(t){if(t.isDestroyed)return window.document;var e=O.toDOMNode(t,t),n=e.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:e.ownerDocument},getParentNode:function(t,e){return tc.get(e)||null},getParentsNodes:function(t,e){for(var n=[],r=e;r!==t&&r!=null;){var o=O.getParentNode(t,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(t,e){var n=[O.findPath(t,e)[0]];return tt.get(t,n)},toDOMNode:function(t,e){var n;if(x.isEditor(e))n=z4.get(t);else{var r=O.findKey(t,e);n=H4.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return n},hasDOMNode:function(t,e,n){n===void 0&&(n={});var r,o=n.editable,i=o!==void 0&&o,a=O.toDOMNode(t,t);try{r=vo(e)?e:e.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(t,e){var n=e.anchor,r=e.focus,o=z.isBackward(e),i=O.toDOMPoint(t,n),a=z.isCollapsed(e)?i:O.toDOMPoint(t,r),u=O.getWindow(t).document.createRange(),s=Kt(o?a:i,2),l=s[0],c=s[1],f=Kt(o?i:a,2),p=f[0],d=f[1],y=!!(vo(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(vo(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,y?1:c),u.setEnd(p,g?1:d),u},toDOMPoint:function(t,e){var n,r,o,i=Kt(x.node(t,e.path),1)[0],a=O.toDOMNode(t,i);x.void(t,{at:e})&&(e={path:e.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=Hr(u),c=l.next();!c.done;c=l.next()){var f=c.value,p=f.childNodes[0];if(p!=null&&p.textContent!=null){var d=p.textContent.length,y=f.getAttribute("data-slate-length"),g=s+(y==null?d:parseInt(y,10));if(e.offset<=g){o=[p,Math.min(d,Math.max(0,e.offset-s))];break}s=g}}}catch(v){n={error:v}}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(e));return o},toSlateNode:function(t,e){var n=vo(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Mv.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var n=e.clientX,r=e.clientY,o=e.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);var i,a=O.toSlateNode(t,e.target),u=O.findPath(t,a);if(x.isVoid(t,a)){var s=o.getBoundingClientRect(),l=t.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=x.point(t,u,{edge:l?"start":"end"}),f=l?x.before(t,c):x.after(t,c);if(f)return x.range(t,f)}var p=this.getWindow(t).document;if(p.caretRangeFromPoint)i=p.caretRangeFromPoint(n,r);else{var d=p.caretPositionFromPoint(n,r);d&&((i=p.createRange()).setStart(d.offsetNode,d.offset),i.setEnd(d.offsetNode,d.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);return O.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(t,e,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((lT(e)?e.anchorNode:e.startContainer)&&(lT(e)?(r=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=K4&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(r=e.startContainer,o=e.startOffset,i=e.endContainer,a=e.endOffset,u=e.collapsed)),r==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+e);var c=O.toSlatePoint(t,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:O.toSlatePoint(t,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var p={anchor:c,focus:f};return z.isExpanded(p)&&z.isForward(p)&&vo(i)&&x.void(t,{at:p.focus,mode:"highest"})&&(p=x.unhangRange(t,p,{voids:!0})),p},toSlatePoint:function(t,e,n){var r,o=n.exactMatch,i=n.suppressThrow,a=Kt(o?e:function(h){var w,E=Kt(h,2),C=E[0],D=E[1];if(vo(C)&&C.childNodes.length){var S=D===C.childNodes.length,A=S?D-1:D;for(C=(w=Kt(fT(C,A,S?"backward":"forward"),2))[0],S=(A=w[1])<D;vo(C)&&C.childNodes.length;){var k=S?C.childNodes.length-1:0;C=znt(C,k,S?"backward":"forward")}D=S&&C.textContent!=null?C.textContent.length:0}return[C,D]}(e),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var p=l.closest('[data-slate-void="true"]'),d=l.closest("[data-slate-leaf]"),y=null;if(d){c=d.closest('[data-slate-node="text"]');var g=O.getWindow(t).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();k4(k4([],Kt(lO(v.querySelectorAll("[data-slate-zero-width]")))),Kt(lO(v.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=v.textContent.length,y=c}else p&&((d=p.querySelector("[data-slate-leaf]"))?(c=d.closest('[data-slate-node="text"]'),f=(y=d).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")||Gd&&(!((r=y.textContent)===null||r===void 0)&&r.endsWith(`
|
|
58
|
-
`)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var m=O.toSlateNode(t,c);return{path:O.findPath(t,m),offset:f}},hasRange:function(t,e){var n=e.anchor,r=e.focus;return x.hasPath(t,n.path)&&x.hasPath(t,r.path)},getNodeType:function(t){return dt.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(e){return tt.string(e)}).join("")},getSelectedElems:function(t){var e,n,r=[],o=x.nodes(t,{universal:!0});try{for(var i=Hr(o),a=i.next();!a.done;a=i.next()){var u=Kt(a.value,1)[0];dt.isElement(u)&&r.push(u)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},getSelectedNodeByType:function(t,e){var n=this,r=Kt(x.nodes(t,{match:function(i){return n.checkNodeType(i,e)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(t){var e=Kt(x.nodes(t,{match:function(r){return at.isText(r)},universal:!0}),1),n=e[0];return n==null?null:n[0]},isNodeSelected:function(t,e){var n=Kt(x.nodes(t,{match:function(o){return o===e},universal:!0}),1),r=n[0];return r!=null&&Kt(r,1)[0]===e},isSelectionAtLineEnd:function(t,e){var n=t.selection;return!!n&&(x.isEnd(t,n.anchor,e)||x.isEnd(t,n.focus,e))},getTextarea:function(t){var e=j4.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return Iv.get(t)||null},getHoverbar:function(t){return Lv.get(t)||null},normalizeContent:function(t){t.children.forEach(function(e,n){t.normalizeNode([e,[n]])})},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),n=e.maxLength,r=e.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var o=n-t.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,n,r,o,i=O.getTextarea(t).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=Hr(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(g){e={error:g}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var c=x.nodes(t,{match:function(g){return!(!dt.isElement(g)||t.isInline(g))},universal:!0});try{for(var f=Hr(c),p=f.next();!p.done;p=f.next()){var d=p.value;if(d!=null){var y=d[0];dT(O.toDOMNode(t,y),function(g,v){var m=T(v);m.attr("data-slate-string")||m.attr("data-slate-zero-width")||m.attr("data-w-e-reserve")||v.removeChild(g)})}}}catch(g){r={error:g}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(t,e){var n=t.children||[];return n[n.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,n,r=x.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var i=Hr(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return o>0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(e==null||z.isExpanded(e))return!1;var n=O.getSelectedNodeByType(t,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(t,e){var n=x.node(t,e);if(n==null)return!1;var r=Kt(n,1)[0].children;return r.length===1&&r[0].text===""}},Gnt=1,hT={},Kd={},qnt=ql.filter,$nt=Dv("filter");ke({target:"Array",proto:!0,forced:!$nt},{filter:function(t){return qnt(this,t,arguments.length>1?arguments[1]:void 0)}});var Y4=`
|
|
59
|
-
\v\f\r \u2028\u2029\uFEFF`,gT=ht("".replace),Hv="["+Y4+"]",Knt=RegExp("^"+Hv+Hv+"*"),Ynt=RegExp(Hv+Hv+"*$"),X4=function(t){return function(e){var n=ge(Vr(e));return 1&t&&(n=gT(n,Knt,"")),2&t&&(n=gT(n,Ynt,"")),n}},Xnt={start:X4(1),end:X4(2),trim:X4(3)},Znt=Wl.PROPER,Jnt=Xnt.trim;ke({target:"String",proto:!0,forced:function(t){return ne(function(){return!!Y4[t]()||"
"[t]()!=="
"||Znt&&Y4[t].name!==t})}("trim")},{trim:function(){return Jnt(this)}});var Z4=[],vT={};function Qnt(t,e,n){var r=n.isInline(t)?"span":"div";return"<"+r+">"+e+"</"+r+">"}var Yd,ec,mT,J4,Uv=Z.Promise,yT=Oe("species"),Q4=function(t){var e=ts(t),n=po.f;bn&&e&&!e[yT]&&n(e,yT,{configurable:!0,get:function(){return this}})},trt=Z.TypeError,ert=Oe("species"),bT=function(t,e){var n,r=Ge(t).constructor;return r===void 0||(n=Ge(r)[ert])==null?e:function(o){if(mv(o))return o;throw trt(uv(o)+" is not a constructor")}(n)},wT=ht([].slice),ET=/(?:ipad|iphone|ipod).*applewebkit/i.test(Hl),Ea=go(Z.process)=="process",tC=Z.setImmediate,eC=Z.clearImmediate,nrt=Z.process,nC=Z.Dispatch,rrt=Z.Function,CT=Z.MessageChannel,ort=Z.String,rC=0,Xd={};try{Yd=Z.location}catch{}var oC=function(t){if(We(Xd,t)){var e=Xd[t];delete Xd[t],e()}},iC=function(t){return function(){oC(t)}},xT=function(t){oC(t.data)},ST=function(t){Z.postMessage(ort(t),Yd.protocol+"//"+Yd.host)};tC&&eC||(tC=function(t){var e=wT(arguments,1);return Xd[++rC]=function(){w4(ue(t)?t:rrt(t),void 0,e)},ec(rC),rC},eC=function(t){delete Xd[t]},Ea?ec=function(t){nrt.nextTick(iC(t))}:nC&&nC.now?ec=function(t){nC.now(iC(t))}:CT&&!ET?(J4=(mT=new CT).port2,mT.port1.onmessage=xT,ec=is(J4.postMessage,J4)):Z.addEventListener&&ue(Z.postMessage)&&!Z.importScripts&&Yd&&Yd.protocol!=="file:"&&!ne(ST)?(ec=ST,Z.addEventListener("message",xT,!1)):ec="onreadystatechange"in Ad("script")?function(t){XE.appendChild(Ad("script")).onreadystatechange=function(){XE.removeChild(this),oC(t)}}:function(t){setTimeout(iC(t),0)});var Zd,fs,Jd,nc,aC,uC,sC,DT,AT={set:tC,clear:eC},irt=/ipad|iphone|ipod/i.test(Hl)&&Z.Pebble!==void 0,art=/web0s(?!.*chrome)/i.test(Hl),urt=Td.f,lC=AT.set,_T=Z.MutationObserver||Z.WebKitMutationObserver,OT=Z.document,kT=Z.process,Wv=Z.Promise,BT=urt(Z,"queueMicrotask"),TT=BT&&BT.value;TT||(Zd=function(){var t,e;for(Ea&&(t=kT.domain)&&t.exit();fs;){e=fs.fn,fs=fs.next;try{e()}catch(n){throw fs?nc():Jd=void 0,n}}Jd=void 0,t&&t.enter()},ET||Ea||art||!_T||!OT?!irt&&Wv&&Wv.resolve?((sC=Wv.resolve(void 0)).constructor=Wv,DT=is(sC.then,sC),nc=function(){DT(Zd)}):Ea?nc=function(){kT.nextTick(Zd)}:(lC=is(lC,Z),nc=function(){lC(Zd)}):(aC=!0,uC=OT.createTextNode(""),new _T(Zd).observe(uC,{characterData:!0}),nc=function(){uC.data=aC=!aC}));var cC,FT,PT,NT,jT=TT||function(t){var e={fn:t,next:void 0};Jd&&(Jd.next=e),fs||(fs=e,nc()),Jd=e},srt=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=ya(e),this.reject=ya(n)},fC={f:function(t){return new srt(t)}},dC=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},lrt=typeof window=="object",IT=AT.set,crt=Oe("species"),Wo="Promise",LT=jn.getterFor(Wo),frt=jn.set,drt=jn.getterFor(Wo),ds=Uv&&Uv.prototype,Go=Uv,Qd=ds,RT=Z.TypeError,pC=Z.document,hC=Z.process,rc=fC.f,prt=rc,hrt=!!(pC&&pC.createEvent&&Z.dispatchEvent),MT=ue(Z.PromiseRejectionEvent),VT=!1,tp=Nd(Wo,function(){var t=fv(Go),e=t!==String(Go);if(!e&&Sd===66)return!0;if(Sd>=51&&/native code/.test(t))return!1;var n=new Go(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[crt]=r,!(VT=n.then(function(){})instanceof r)||!e&&lrt&&!MT}),grt=tp||!i4(function(t){Go.all(t).catch(function(){})}),zT=function(t){var e;return!(!me(t)||!ue(e=t.then))&&e},gC=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;jT(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&mrt(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(RT("Promise-chain cycle")):(u=zT(a))?$t(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&vrt(t)})}},HT=function(t,e,n){var r,o;hrt?((r=pC.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),Z.dispatchEvent(r)):r={promise:e,reason:n},!MT&&(o=Z["on"+t])?o(r):t==="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)},vrt=function(t){$t(IT,Z,function(){var e,n=t.facade,r=t.value;if(UT(t)&&(e=dC(function(){Ea?hC.emit("unhandledRejection",r,n):HT("unhandledrejection",n,r)}),t.rejection=Ea||UT(t)?2:1,e.error))throw e.value})},UT=function(t){return t.rejection!==1&&!t.parent},mrt=function(t){$t(IT,Z,function(){var e=t.facade;Ea?hC.emit("rejectionHandled",e):HT("rejectionhandled",e,t.value)})},oc=function(t,e,n){return function(r){t(e,r,n)}},ic=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,gC(t,!0))},vC=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw RT("Promise can't be resolved itself");var r=zT(e);r?jT(function(){var o={done:!1};try{$t(r,e,oc(vC,o,t),oc(ic,o,t))}catch(i){ic(o,i,t)}}):(t.value=e,t.state=1,gC(t,!1))}catch(o){ic({done:!1},o,t)}}};if(tp&&(Qd=(Go=function(t){Tv(this,Qd),ya(t),$t(cC,this);var e=LT(this);try{t(oc(vC,e),oc(ic,e))}catch(n){ic(e,n)}}).prototype,(cC=function(t){frt(this,{type:Wo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Ql(Qd,{then:function(t,e){var n=drt(this),r=n.reactions,o=rc(bT(this,Go));return o.ok=!ue(t)||t,o.fail=ue(e)&&e,o.domain=Ea?hC.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&gC(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),FT=function(){var t=new cC,e=LT(t);this.promise=t,this.resolve=oc(vC,e),this.reject=oc(ic,e)},fC.f=rc=function(t){return t===Go||t===PT?new FT(t):prt(t)},ue(Uv)&&ds!==Object.prototype)){NT=ds.then,VT||(or(ds,"then",function(t,e){var n=this;return new Go(function(r,o){$t(NT,n,r,o)}).then(t,e)},{unsafe:!0}),or(ds,"catch",Qd.catch,{unsafe:!0}));try{delete ds.constructor}catch{}Zl&&Zl(ds,Qd)}ke({global:!0,wrap:!0,forced:tp},{Promise:Go}),xv(Go,Wo,!1),Q4(Wo),PT=ts(Wo),ke({target:Wo,stat:!0,forced:tp},{reject:function(t){var e=rc(this);return $t(e.reject,void 0,t),e.promise}}),ke({target:Wo,stat:!0,forced:tp},{resolve:function(t){return function(e,n){if(Ge(e),me(n)&&n.constructor===e)return n;var r=fC.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),ke({target:Wo,stat:!0,forced:grt},{all:function(t){var e=this,n=rc(e),r=n.resolve,o=n.reject,i=dC(function(){var a=ya(e.resolve),u=[],s=0,l=1;zd(t,function(c){var f=s++,p=!1;l++,$t(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=rc(e),r=n.reject,o=dC(function(){var i=ya(e.resolve);zd(t,function(a){$t(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var ac=Av.UNSUPPORTED_Y,yrt=Math.min,WT=[].push,brt=ht(/./.exec),uc=ht(WT),ep=ht("".slice);function Ur(t){Promise.resolve().then(t)}function GT(t,e){return dt.isElement(t)?function(n,r){var o=n.type,i=o===void 0?"":o,a=n.children,u=a===void 0?[]:a,s=x.isVoid(r,n),l="";s||(l=u.map(function(m){return GT(m,r)}).join(""));var c=function(m){return vT[m]||Qnt}(i),f=c(n,l,r),p="";if(p=typeof f=="string"?f:f.html||"",s||Z4.forEach(function(m){return p=m(n,p)}),typeof f=="string")return p;var d=f.prefix,y=d===void 0?"":d,g=f.suffix,v=g===void 0?"":g;return y&&(p=y+p),v&&(p+=v),p}(t,e):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=O.getParentsNodes(r,n).some(function(s){return O.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/ /g," ")),i===""){var u=O.getParentNode(null,n);if(!u||u.children.length!==0)return i;i="<br>"}return Z4.forEach(function(s){return i=s(n,i)}),i}(t,e)}function qT(t){return"w-e-element-"+t}C4("split",function(t,e,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=ge(Vr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!t4(o))return $t(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,y=new RegExp(o.source,p+"g");(s=$t(Rd,y,a))&&!((l=y.lastIndex)>d&&(uc(f,ep(a,d,s.index)),s.length>1&&s.index<a.length&&w4(WT,f,B4(s,1)),c=s[0].length,d=l,f.length>=u));)y.lastIndex===s.index&&y.lastIndex++;return d===a.length?!c&&brt(y,"")||uc(f,""):uc(f,ep(a,d)),f.length>u?B4(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:$t(e,this,o,i)}:e,[function(o,i){var a=Vr(this),u=o==null?void 0:rs(o,t);return u?$t(u,o,a,i):$t(r,ge(a),o,i)},function(o,i){var a=Ge(this),u=ge(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=bT(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ac?"g":"y"),p=new l(ac?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return Md(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g<u.length;){p.lastIndex=ac?0:g;var m,h=Md(p,ac?ep(u,g):u);if(h===null||(m=yrt(Gl(p.lastIndex+(ac?g:0)),u.length))===y)g=x4(u,g,c);else{if(uc(v,ep(u,y,g)),v.length===d)return v;for(var w=1;w<=h.length-1;w++)if(uc(v,h[w]),v.length===d)return v;g=y=m}}return uc(v,ep(u,y)),v}]},!!ne(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),ac);var $T=function(t,e){var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},KT=function(t,e,n){var r=O.toDOMRange(t,e).getBoundingClientRect(),o=O.toDOMRange(t,n).getBoundingClientRect();return $T(r,o)&&$T(o,r)},YT=["span","b","strong","i","em","s","strike","u","font","sub","sup"],XT=[],mC=[],Gv={},wrt=po.f,Ert=Fd.f,Crt=jn.enforce,xrt=Oe("match"),Di=Z.RegExp,sc=Di.prototype,Srt=Z.SyntaxError,Drt=ht(KE),Art=ht(sc.exec),qv=ht("".charAt),ZT=ht("".replace),JT=ht("".indexOf),_rt=ht("".slice),Ort=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ps=/a/g,yC=/a/g,krt=new Di(ps)!==ps,QT=Av.MISSED_STICKY,Brt=Av.UNSUPPORTED_Y,Trt=bn&&(!krt||QT||p4||h4||ne(function(){return yC[xrt]=!1,Di(ps)!=ps||Di(yC)==yC||Di(ps,"i")!="/a/i"}));if(Nd("RegExp",Trt)){for(var Ca=function(t,e){var n,r,o,i,a,u,s=ns(sc,this),l=t4(t),c=e===void 0,f=[],p=t;if(!s&&l&&c&&t.constructor===Ca)return t;if((l||ns(sc,t))&&(t=t.source,c&&(e="flags"in p?p.flags:Drt(p))),t=t===void 0?"":ge(t),e=e===void 0?"":ge(e),p=t,p4&&"dotAll"in ps&&(r=!!e&&JT(e,"s")>-1)&&(e=ZT(e,/s/g,"")),n=e,QT&&"sticky"in ps&&(o=!!e&&JT(e,"y")>-1)&&Brt&&(e=ZT(e,/y/g,"")),h4&&(i=function(d){for(var y,g=d.length,v=0,m="",h=[],w={},E=!1,C=!1,D=0,S="";v<=g;v++){if((y=qv(d,v))==="\\")y+=qv(d,++v);else if(y==="]")E=!1;else if(!E)switch(!0){case y==="[":E=!0;break;case y==="(":Art(Ort,_rt(d,v+1))&&(v+=2,C=!0),m+=y,D++;continue;case(y===">"&&C):if(S===""||We(w,S))throw new Srt("Invalid capture group name");w[S]=!0,h[h.length]=[S,D],C=!1,S="";continue}C?S+=y:m+=y}return[m,h]}(t),t=i[0],f=i[1]),a=qB(Di(t,e),s?this:sc,Ca),(r||o||f.length)&&(u=Crt(a),r&&(u.dotAll=!0,u.raw=Ca(function(d){for(var y,g=d.length,v=0,m="",h=!1;v<=g;v++)(y=qv(d,v))!=="\\"?h||y!=="."?(y==="["?h=!0:y==="]"&&(h=!1),m+=y):m+="[\\s\\S]":m+=y+qv(d,++v);return m}(t),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==p)try{ho(a,"source",p===""?"(?:)":p)}catch{}return a},Frt=function(t){t in Ca||wrt(Ca,t,{configurable:!0,get:function(){return Di[t]},set:function(e){Di[t]=e}})},tF=Ert(Di),eF=0;tF.length>eF;)Frt(tF[eF++]);sc.constructor=Ca,Ca.prototype=sc,or(Z,"RegExp",Ca)}Q4("RegExp");var Prt=new RegExp(String.fromCharCode(160),"g");function nF(t){return t.replace(Prt," ")}function rF(t,e){var n=t.length;if(n){var r=t[n-1];if(at.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+e,!0}}return!1}function Nrt(t,e,n){return{type:"paragraph",children:[{text:T(t).text().replace(/\s+/gm," ")}]}}function bC(t,e){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!==Uo.ELEMENT_NODE){if(l.nodeType===Uo.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
|
|
60
|
-
`)>=0)return;c&&(c=nF(c),rF(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(rF(u,`
|
|
61
|
-
`)||u.push({text:`
|
|
62
|
-
`}));var f=EC(T(l),a);Array.isArray(f)?f.forEach(function(p){return u.push(p)}):u.push(f)}}),u)}(t,e),r=function(i){for(var a in Gv)if(i[0].matches(a))return Gv[a];return Nrt}(t),o=r(t[0],n,e);return Array.isArray(o)||(o=[o]),o.forEach(function(i){x.isVoid(e,i)||(n.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),mC.forEach(function(a){i=a(t[0],i,e)}))}),o}function wC(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
|
|
63
|
-
`));var n=t[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=nF(n)};return mC.forEach(function(o){r=o(t[0],r,e)}),r}function EC(t,e){XT.forEach(function(r){var o=r.selector,i=r.preParseHtml;t[0].matches(o)&&(t=T(i(t[0])))});var n=pT(t);return n==="span"?t.attr("data-w-e-type")?bC(t,e):wC(t,e):n==="code"?pT(t.parent())==="pre"?bC(t,e):wC(t,e):YT.includes(n)?wC(t,e):bC(t,e)}function oF(t,e,n){var r=T(n);return!!r.attr(e)||(r.attr(e,"true"),t.on("destroyed",function(){r.removeAttr(e)}),!1)}function iF(t,e){e===void 0&&(e="");var n=[];e===""&&(e="<p><br></p>"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=T("<div>"+e+"</div>");return Array.from(r.children()).forEach(function(o){var i=EC(T(o),t);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var jrt=po.f,aF=kv.fastKey,uF=jn.set,CC=jn.getterFor,Irt={getConstructor:function(t,e,n,r){var o=t(function(l,c){Tv(l,i),uF(l,{type:e,index:Ev(null),first:void 0,last:void 0,size:0}),bn||(l.size=0),c!=null&&zd(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=CC(e),u=function(l,c,f){var p,d,y=a(l),g=s(l,c);return g?g.value=f:(y.last=g={index:d=aF(c,!0),key:c,value:f,previous:p=y.last,next:void 0,removed:!1},y.first||(y.first=g),p&&(p.next=g),bn?y.size++:l.size++,d!=="F"&&(y.index[d]=g)),l},s=function(l,c){var f,p=a(l),d=aF(c);if(d!=="F")return p.index[d];for(f=p.first;f;f=f.next)if(f.key==c)return f};return Ql(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,bn?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),p=s(c,l);if(p){var d=p.next,y=p.previous;delete f.index[p.index],p.removed=!0,y&&(y.next=d),d&&(d.previous=y),f.first==p&&(f.first=d),f.last==p&&(f.last=y),bn?f.size--:c.size--}return!!p},forEach:function(l){for(var c,f=a(this),p=is(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(p(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),Ql(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)}}),bn&&jrt(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=CC(e),i=CC(r);l4(t,e,function(a,u){uF(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),Q4(e)}};$B("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Irt);var sF=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function lF(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):I.insertNodes(t,e,{mode:"highest"})}var Lrt=function(t){var e=t,n=e.insertText;return e.insertFragment,e.setFragmentData=function(r){var o=e.selection;if(o){var i=Kt(z.edges(o),2),a=i[0],u=i[1],s=x.void(e,{at:a.path}),l=x.void(e,{at:u.path});if(!z.isCollapsed(o)||s){var c=O.toDOMRange(e,o),f=c.cloneContents(),p=f.childNodes[0];if(f.childNodes.forEach(function(C){C.textContent&&C.textContent.trim()!==""&&(p=C)}),l){var d=Kt(l,1)[0],y=c.cloneRange(),g=O.toDOMNode(e,d);y.setEndAfter(g),f=y.cloneContents()}if(s&&(p=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(C){var D=C.getAttribute("data-slate-zero-width")==="n";C.textContent=D?`
|
|
64
|
-
`:""}),cT(p)){var v=p.ownerDocument.createElement("span");v.style.whiteSpace="pre",v.appendChild(p),f.appendChild(v),p=v}var m=e.getFragment(),h=JSON.stringify(m),w=window.btoa(encodeURIComponent(h));p.setAttribute("data-slate-fragment",w),r.setData("application/x-slate-fragment",w);var E=f.ownerDocument.createElement("div");return E.appendChild(f),E.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(E),r.setData("text/html",E.innerHTML),r.setData("text/plain",Hnt(E)),f.ownerDocument.body.removeChild(E),r}}},e.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);e.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),p=!1;try{for(var d=Hr(f),y=d.next();!y.done;y=d.next()){var g=y.value;p&&I.splitNodes(e,{always:!0}),n(g),p=!0}}catch(v){o={error:v}}finally{try{y&&!y.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}},e},np=function(t){return t!=null},Rrt={object:!0,function:!0,undefined:!0},Mrt=/^\s*class[\s{/}]/,Vrt=Function.prototype.toString,cF=function(t){return!!function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!function(n){if(!function(r){return!!np(r)&&hasOwnProperty.call(Rrt,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(e)}(t)&&!Mrt.test(Vrt.call(t))},xC=function(t){return t!=null},zrt=Object.keys,Hrt=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(t){return zrt(xC(t)?Object(t):t)},Urt=function(t){if(!xC(t))throw new TypeError("Cannot use null or undefined");return t},Wrt=Math.max,fF=function(){var t,e=Object.assign;return typeof e=="function"&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var n,r,o,i=Wrt(arguments.length,2);for(t=Object(Urt(t)),o=function(a){try{t[a]=e[a]}catch(u){n||(n=u)}},r=1;r<i;++r)Hrt(e=arguments[r]).forEach(o);if(n!==void 0)throw n;return t},Grt=Array.prototype.forEach,qrt=Object.create,$rt=function(t,e){var n;for(n in t)e[n]=t[n]},dF=function(t){var e=qrt(null);return Grt.call(arguments,function(n){xC(n)&&$rt(Object(n),e)}),e},SC="razdwatrzy",Krt=String.prototype.indexOf,rp=typeof SC.contains=="function"&&SC.contains("dwa")===!0&&SC.contains("foo")===!1?String.prototype.contains:function(t){return Krt.call(this,t,arguments[1])>-1},$v=xd(function(t){var e=t.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],np(n)?(o=rp.call(n,"c"),i=rp.call(n,"e"),a=rp.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?fF(dF(u),s):s};e.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],np(r)?cF(r)?np(o)?cF(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,np(n)?(i=rp.call(n,"c"),a=rp.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?fF(dF(u),s):s}}),DC=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},Yrt=xd(function(t,e){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,p=Object.defineProperty,d=Object.defineProperties,y=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(v,m){var h;return DC(m),y.call(this,"__ee__")?h=this.__ee__:(h=g.value=f(null),p(this,"__ee__",g),g.value=null),h[v]?typeof h[v]=="object"?h[v].push(m):h[v]=[h[v],m]:h[v]=m,this},r=function(v,m){var h,w;return DC(m),w=this,n.call(this,v,h=function(){o.call(w,v,h),l.call(m,this,arguments)}),h.__eeOnceListener__=m,this},o=function(v,m){var h,w,E,C;if(DC(m),!y.call(this,"__ee__"))return this;if(!(h=this.__ee__)[v])return this;if(typeof(w=h[v])=="object")for(C=0;E=w[C];++C)E!==m&&E.__eeOnceListener__!==m||(w.length===2?h[v]=w[C?0:1]:w.splice(C,1));else w!==m&&w.__eeOnceListener__!==m||delete h[v];return this},i=function(v){var m,h,w,E,C;if(y.call(this,"__ee__")&&(E=this.__ee__[v]))if(typeof E=="object"){for(h=arguments.length,C=new Array(h-1),m=1;m<h;++m)C[m-1]=arguments[m];for(E=E.slice(),m=0;w=E[m];++m)l.call(w,this,C)}else switch(arguments.length){case 1:c.call(E,this);break;case 2:c.call(E,this,arguments[1]);break;case 3:c.call(E,this,arguments[1],arguments[2]);break;default:for(h=arguments.length,C=new Array(h-1),m=1;m<h;++m)C[m-1]=arguments[m];l.call(E,this,C)}},a={on:n,once:r,off:o,emit:i},u={on:$v(n),once:$v(r),off:$v(o),emit:$v(i)},s=d({},u),t.exports=e=function(v){return v==null?f(s):d(Object(v),u)},e.methods=a});function Kv(t){var e=uT.get(t);return e==null&&(e=Yrt(),uT.set(t,e)),e}var Yv=new WeakMap;function pF(t,e){var n=Yv.get(t);n==null&&(n=new Set,Yv.set(t,n)),n.add(e)}function Xrt(t){return Yv.get(t)||new Set}function Zrt(t){Yv.set(t,new Set)}function AC(t){var e=O.getTextarea(t).$textAreaContainer,n=e.width(),r=e.height(),o=e.offset();return{top:o.top,left:o.left,width:n,height:r}}function _C(t){var e={top:"0",left:"0"},n=t.selection;if(n==null)return e;var r=AC(t);if(r==null)return e;var o=r.top,i=r.left,a=r.width,u=r.height,s=O.toDOMRange(t,n).getClientRects()[0];if(s==null)return e;s.width;var l=s.height,c={},f=s.top-o,p=s.left-i;if(p>a/2){var d=a-p;c.right=d+5+"px"}else c.left=p+5+"px";if(f>u/2){var y=u-f;c.bottom=y+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function OC(t,e,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(t.selection==null)return r;var o=dt.isElement(e)&&t.isVoid(e),i=dt.isElement(e)&&t.isInline(e),a=Vv.get(e);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var p=function(S){var A=[];A.push(S);for(var k=0;A.length>0;){var R=A.pop();if(R==null||++k>1e4)break;var V=R.nodeName;if(R.nodeType===1){var L=V.toLowerCase();if(Vnt.includes(L)||L==="iframe"||L==="video")return R;var W=R.children||[],H=W.length;if(H)for(var U=H-1;U>=0;U--)A.push(W[U])}}return null}(a);if(p!=null){var d=p.getBoundingClientRect();s=d.top,c=d.height}}var y=AC(t);if(y==null)return r;var g,v=y.top,m=y.left,h=y.width,w=y.height,E={},C=s-v,D=l-m;if(n==="bar")return E.left=D+"px",C>40?E.bottom=w-C+5+"px":E.top=C+c+5+"px",E;if(n==="modal")return o?i?D>(h-f)/2?E.right=h-D+5+"px":E.left=D+f+5+"px":E.left="20px":E.left=D+"px",o?((g=C)<0&&(g=0),E.top=g+"px"):C>(w-c)/2?E.bottom=w-C+5+"px":((g=C+c)<0&&(g=0),E.top=g+5+"px"),E;throw new Error("type '"+n+"' is invalid")}function kC(t,e){Ur(function(){var n=AC(t);if(n!=null){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),p=e.height(),d=l-o,y=c-i,g=e.attr("style");if(g.indexOf("top")>=0&&(r=d+p-u)>0){var v=e.css("top"),m=parseInt(v.toString())-r;m<0&&(m=0),e.css("top",m+"px")}if(g.indexOf("bottom")>=0&&l<0){var h=e.css("bottom"),w=parseInt(h.toString())-Math.abs(l);e.css("bottom",w+"px")}if(g.indexOf("left")>=0&&(r=y+f-a)>0){var E=e.css("left"),C=parseInt(E.toString())-r;C<0&&(C=0),e.css("left",C+"px")}if(g.indexOf("right")>=0&&c<0){var D=e.css("right"),S=parseInt(D.toString())-Math.abs(c);e.css("right",S+"px")}}})}var Jrt=Dv("slice"),Qrt=Oe("species"),BC=Z.Array,tot=Math.max;ke({target:"Array",proto:!0,forced:!Jrt},{slice:function(t,e){var n,r,o,i=wa(this),a=as(i),u=$l(t,a),s=$l(e===void 0?a:e,a);if(vv(i)&&(n=i.constructor,(mv(n)&&(n===BC||vv(n.prototype))||me(n)&&(n=n[Qrt])===null)&&(n=void 0),n===BC||n===void 0))return wT(i,u,s);for(r=new(n===void 0?BC:n)(tot(s-u,0)),o=0;u<s;u++,o++)u in i&&Id(r,o,i[u]);return r.length=o,r}});var eot=Td.f,hF=ht("".startsWith),not=ht("".slice),rot=Math.min,gF=n4("startsWith"),oot=!gF&&!!function(){var t=eot(String.prototype,"startsWith");return t&&!t.writable}();ke({target:"String",proto:!0,forced:!oot&&!gF},{startsWith:function(t){var e=ge(Vr(this));e4(t);var n=Gl(rot(arguments.length>1?arguments[1]:void 0,e.length)),r=ge(t);return hF?hF(e,r,n):not(e,n,n+r.length)===r}});var lc=Object.assign,vF=Object.defineProperty,iot=ht([].concat),mF=!lc||ne(function(){if(bn&&lc({b:1},lc(vF({},"a",{enumerable:!0,get:function(){vF(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),lc({},t)[n]!=7||Kl(lc({},e)).join("")!=r})?function(t,e){for(var n=ma(t),r=arguments.length,o=1,i=dB.f,a=aB.f;r>o;)for(var u,s=gv(arguments[o++]),l=i?iot(Kl(s),i(s)):Kl(s),c=l.length,f=0;c>f;)u=l[f++],bn&&!$t(a,s,u)||(n[u]=s[u]);return n}:lc;ke({target:"Object",stat:!0,forced:Object.assign!==mF},{assign:mF});var aot=["props","attrs","style","dataset","on","hook"];function yF(t){var e=t.data,n=e===void 0?{}:e,r=t.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(i){var a,u,s=n[i];if(i!=="key"){if(!aot.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=OJ(l),function(c,f){c.data==null&&(c.data={});var p=c.data;p.dataset==null&&(p.dataset={}),Object.assign(p.dataset,f)}(t,((a={})[l]=s,a)),void delete n[i]}(function(c,f){c.data==null&&(c.data={});var p=c.data;p.props==null&&(p.props={}),Object.assign(p.props,f)})(t,(u={},u[i]=s,u)),delete n[i]}}else t.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&yF(i)})}var TC=[],bF={};function uot(t,e,n){return wt(n.isInline(t)?"span":"div",null,e)}function wF(t,e){return e===void 0&&(e=!1),wt("span",{"data-slate-string":!0},e?t+`
|
|
65
|
-
`:t)}function FC(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),wt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?wt("br",null):null)}function PC(t,e,n,r){return Wd.set(t,e),tc.set(t,n),dt.isElement(t)?function(o,i){var a,u=O.findKey(i,o),s=i.isInline(o),l=x.isVoid(i,o),c=qT(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},p=o.type,d=o.children,y=d===void 0?[]:d,g=function(C){return bF[C]||uot}(p);a=l?null:y.map(function(C,D){return PC(C,D,o,i)});var v=g(o,a,i);if(l){f["data-slate-void"]=!0;var m=s?"span":"div",h=Kt(tt.texts(o),1),w=Kt(h[0],1)[0],E=wt(m,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},PC(w,0,o,i));v=wt(m,{style:{position:"relative"}},v,E),Wd.set(w,0),tc.set(w,o)}return v.data==null&&(v.data={}),Object.assign(v.data,f),l||s||(v=function(C,D){var S=D;return TC.forEach(function(A){S=A(C,D)}),S}(o,v)),Ur(function(){var C=q4(c);C!=null&&(H4.set(u,C),Vv.set(o,C),Mv.set(C,o))}),v}(t,r):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=O.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=O.findPath(a,o),c=s([o,l]),f=at.decorations(o,c),p=f.map(function(g,v){var m=function(h,w,E,C,D){w===void 0&&(w=!1);var S=h.text,A=O.findPath(D,E),k=j.parent(A);if(x.isEditor(C))throw new Error("Text node "+JSON.stringify(E)+" parent is Editor");return D.isVoid(C)?FC(tt.string(C).length):S!==""||C.children[C.children.length-1]!==E||D.isInline(C)||x.string(D,k)!==""?S===""?FC():w&&S.slice(-1)===`
|
|
66
|
-
`?wF(S,!0):wF(S):FC(0,!0)}(g,v===f.length-1,o,i,a);return m=function(h,w){var E=w;return TC.forEach(function(C){E=C(h,E)}),E}(g,m),wt("span",{"data-slate-leaf":!0},m)}),d=function(g){return"w-e-text-"+g}(u.id),y=wt("span",{"data-slate-node":"text",id:d,key:u.id},p);return Ur(function(){var g=q4(d);g!=null&&(H4.set(u,g),Vv.set(o,g),Mv.set(g,o))}),y}(t,n,r)}function sot(t,e){var n,r=t.$scroll,o=function(g){return"w-e-textarea-"+g}(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(g,v){return v===void 0&&(v=!1),Rl("div#"+g,{props:{contentEditable:!v}})}(o,a),l=e.children||[];s.children=l.map(function(g,v){var m=PC(g,v,e,e);return yF(m),m});var c=rT.get(t);if(c==null&&(c=!0),c){var f=function(g,v){return T(`<div
|
|
67
|
-
id="`+g+`"
|
|
68
|
-
data-slate-editor
|
|
69
|
-
data-slate-node="value"
|
|
70
|
-
suppressContentEditableWarning
|
|
71
|
-
role="textarea"
|
|
72
|
-
spellCheck="true"
|
|
73
|
-
autoCorrect="true"
|
|
74
|
-
autoCapitalize="true"
|
|
75
|
-
></div>`)}(o);r.append(f),t.$textArea=f,n=f[0],(d=XZ([JZ,nJ,oJ,QZ,eJ,ZZ]))(n,s),rT.set(t,!1),oT.set(t,d)}else{var p=iT.get(t),d=oT.get(t);if(p==null||d==null)return;n=p.elm,d(p,s)}if(n!=null||(n=q4(o))!=null){if((c?u:e.isFocused())&&n.focus({preventScroll:!0}),c){var y=G4(n);y&&aT.set(e,y)}z4.set(e,n),Vv.set(e,n),Mv.set(n,e),iT.set(t,s)}}function EF(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function CF(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function NC(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return CF(n.overflowY,e)||CF(n.overflowX,e)||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)}(t)}return!1}function Xv(t,e,n,r,o,i,a,u){return i<t&&a>e||i>t&&a<e?0:i<=t&&u<=n||a>=e&&u>=n?i-t-r:a>e&&u<n||i<t&&u>n?a-e+o:0}function xF(t,e){var n=window,r=e.scrollMode,o=e.block,i=e.inline,a=e.boundary,u=e.skipOverflowHiddenElements,s=typeof a=="function"?a:function(_t){return _t!==a};if(!EF(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;EF(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&NC(f)&&!NC(document.documentElement)||f!=null&&NC(f,u)&&c.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,d=n.visualViewport?n.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=t.getBoundingClientRect(),m=v.height,h=v.width,w=v.top,E=v.right,C=v.bottom,D=v.left,S=o==="start"||o==="nearest"?w:o==="end"?C:w+m/2,A=i==="center"?D+h/2:i==="end"?E:D,k=[],R=0;R<c.length;R++){var V=c[R],L=V.getBoundingClientRect(),W=L.height,H=L.width,U=L.top,$=L.right,J=L.bottom,st=L.left;if(r==="if-needed"&&w>=0&&D>=0&&C<=d&&E<=p&&w>=U&&C<=J&&D>=st&&E<=$)return k;var lt=getComputedStyle(V),ct=parseInt(lt.borderLeftWidth,10),B=parseInt(lt.borderTopWidth,10),_=parseInt(lt.borderRightWidth,10),N=parseInt(lt.borderBottomWidth,10),q=0,X=0,K="offsetWidth"in V?V.offsetWidth-V.clientWidth-ct-_:0,ut="offsetHeight"in V?V.offsetHeight-V.clientHeight-B-N:0;if(l===V)q=o==="start"?S:o==="end"?S-d:o==="nearest"?Xv(g,g+d,d,B,N,g+S,g+S+m,m):S-d/2,X=i==="start"?A:i==="center"?A-p/2:i==="end"?A-p:Xv(y,y+p,p,ct,_,y+A,y+A+h,h),q=Math.max(0,q+g),X=Math.max(0,X+y);else{q=o==="start"?S-U-B:o==="end"?S-J+N+ut:o==="nearest"?Xv(U,J,W,B,N+ut,S,S+m,m):S-(U+W/2)+ut/2,X=i==="start"?A-st-ct:i==="center"?A-(st+H/2)+K/2:i==="end"?A-$+_+K:Xv(st,$,H,ct,_+K,A,A+h,h);var mt=V.scrollLeft,bt=V.scrollTop;S+=bt-(q=Math.max(0,Math.min(bt+q,V.scrollHeight-W+ut))),A+=mt-(X=Math.max(0,Math.min(mt+X,V.scrollWidth-H+K)))}k.push({el:V,top:q,left:X})}return k}function SF(t){return t===Object(t)&&Object.keys(t).length!==0}function Wr(t,e){return cs(e)&&O.hasDOMNode(t,e,{editable:!0})}function DF(t,e){if(t.getConfig().readOnly)return!1;var n=cc(t,e)&&O.toSlateNode(t,e);return x.isVoid(t,n)}function cc(t,e){return cs(e)&&O.hasDOMNode(t,e)}function AF(t,e,n){n===void 0&&(n=!1);var r=e.selection,o=e.getConfig(),i=O.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||n)&&e.isFocused()){var a=i.type!=="None";if(r||a){var u=z4.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=O.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&z.equals(l,r)){var c=!0;if(z.isCollapsed(r)){var f=i.anchorNode,p=i.anchorOffset;if(f===u){var d=u.childNodes,y=void 0;(y=d[p])&&y.matches("table")&&(c=!1),(y=d[p-1])&&y.matches("table")&&(c=!1)}}if(c)return}}if(!r||O.hasRange(e,r)){t.isUpdatingSelection=!0;var g=r&&O.toDOMRange(e,r);if(g){z.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var m=document.body;(function(h,w){var E=!h.ownerDocument.documentElement.contains(h);if(SF(w)&&typeof w.behavior=="function")return w.behavior(E?[]:xF(h,w));if(!E){var C=function(D){return D===!1?{block:"end",inline:"nearest"}:SF(D)?D:{block:"start",inline:"nearest"}}(w);(function(D,S){S===void 0&&(S="auto");var A="scrollBehavior"in document.body.style;D.forEach(function(k){var R=k.el,V=k.top,L=k.left;R.scroll&&A?R.scroll({top:V,left:L,behavior:S}):(R.scrollTop=V,R.scrollLeft=L)})})(xF(h,C),C.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:m,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){g&&Gd&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=O.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var jC=new WeakMap,_F=new WeakMap,lot={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"},cot={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"},fot={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Se=function(t){var e=lot[t],n=cot[t],r=fot[t],o=e&&aE(e),i=n&&aE(n),a=r&&aE(r);return function(u){return!(!o||!o(u))||!!($4&&i&&i(u))||!($4||!a||!a(u))}},Be={isBold:Se("bold"),isCompose:Se("compose"),isMoveBackward:Se("moveBackward"),isMoveForward:Se("moveForward"),isDeleteBackward:Se("deleteBackward"),isDeleteForward:Se("deleteForward"),isDeleteLineBackward:Se("deleteLineBackward"),isDeleteLineForward:Se("deleteLineForward"),isDeleteWordBackward:Se("deleteWordBackward"),isDeleteWordForward:Se("deleteWordForward"),isExtendBackward:Se("extendBackward"),isExtendForward:Se("extendForward"),isExtendLineBackward:Se("extendLineBackward"),isExtendLineForward:Se("extendLineForward"),isItalic:Se("italic"),isMoveLineBackward:Se("moveLineBackward"),isMoveLineForward:Se("moveLineForward"),isMoveWordBackward:Se("moveWordBackward"),isMoveWordForward:Se("moveWordForward"),isRedo:Se("redo"),isSplitBlock:Se("splitBlock"),isTransposeCharacter:Se("transposeCharacter"),isUndo:Se("undo"),isTab:Se("tab"),isSelectAll:Se("selectAll")};function rn(t){t.preventDefault()}var dot={beforeinput:function(t,e,n){var r=t,o=n.getConfig().readOnly;if($d&&!o&&Wr(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=Kt(r.getTargetRanges(),1)[0];if(s){var l=O.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&z.equals(i,l)||I.select(n,l)}}if(i&&z.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";x.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":x.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":x.deleteForward(n);break;case"deleteContentBackward":x.deleteBackward(n);break;case"deleteEntireSoftLine":x.deleteBackward(n,{unit:"line"}),x.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":x.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":x.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":x.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":x.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":x.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":x.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":x.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!W4.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&x.insertText(n,u)}}}},blur:function(t,e,n){var r=t,o=e.isUpdatingSelection,i=e.latestElement;if(!n.getConfig().readOnly&&!o&&Wr(n,r.target)){var a=O.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===O.toDOMNode(n,n)||vo(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&cs(u)&&O.hasDOMNode(n,u)){var s=O.toSlateNode(n,u);if(dt.isElement(s)&&!n.isVoid(s))return}if(qd){var l=a.getSelection();l==null||l.removeAllRanges()}ls.delete(n)}}}},focus:function(t,e,n){var r=O.toDOMNode(n,n),o=O.findDocumentOrShadowRoot(n);e.latestElement=o.activeElement,Gd&&t.target!==r?r.focus():ls.set(n,!0)},click:function(t,e,n){if(!n.getConfig().readOnly&&cc(n,t.target)&&cs(t.target)){var r=O.toSlateNode(n,t.target),o=O.findPath(n,r);if(x.hasPath(n,o)&&tt.get(n,o)===r){var i=x.start(n,o),a=x.end(n,o),u=x.void(n,{at:i}),s=x.void(n,{at:a});if(u&&s&&j.equals(u[1],s[1])){var l=x.range(n,i);I.select(n,l)}}}},compositionstart:function(t,e,n){if(Wr(n,t.target)){var r=n.selection;if(r&&z.isExpanded(r)&&(x.deleteFragment(n),Promise.resolve().then(function(){AF(e,n,!0)})),r&&z.isCollapsed(r)){var o=O.toDOMRange(n,r).startContainer,i=o.textContent||"";jC.set(n,i),_F.set(n,o)}e.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)}(e,n)}},compositionend:function(t,e,n){var r=t;if(Wr(n,r.target)){e.isComposing=!1;var o=n.selection;if(o!=null){(K4||Gd)&&O.cleanExposedTexNodeInSelectionBlock(n);for(var i=z.isBackward(o)?o.focus:o.anchor,a=Kt(x.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Kt(x.node(n,i.path.slice(0,u+1)),1)[0];if(dt.isElement(s)&&((qd||Gd)&&s.type==="link"||s.type==="code")){O.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=O.getLeftLengthOfMaxLength(n);c<l.length?(O.toDOMRange(n,o).startContainer.textContent=jC.get(n)||"",c>0&&x.insertText(n,l.slice(0,c)),e.changeViewState()):x.insertText(n,l)}else x.insertText(n,l);qd||setTimeout(function(){var f=n.selection;if(f!=null){var p=_F.get(n);p!=null&&O.toDOMRange(n,f).startContainer!==p&&(p.textContent=jC.get(n)||"")}})}}}},compositionupdate:function(t,e,n){Wr(n,t.target)&&(e.isComposing=!0)},keydown:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&!e.isComposing&&Wr(n,r.target)){if(function(a,u){var s=Iv.get(a),l=s&&s.getMenus(),c=Lv.get(a),f=c&&c.getMenus(),p=zr(zr({},l),f);for(var d in p){var y=p[d],g=y.hotkey;if(g&&TJ(g,u)&&!y.isDisabled(a)){var v=y.getValue(a);y.exec(a,v)}}}(n,r),Be.isTab(r))return rn(r),void n.handleTab();if(Be.isRedo(r))return rn(r),void(typeof n.redo=="function"&&n.redo());if(Be.isUndo(r))return rn(r),void(typeof n.undo=="function"&&n.undo());if(Be.isMoveLineBackward(r))return rn(r),void I.move(n,{unit:"line",reverse:!0});if(Be.isMoveLineForward(r))return rn(r),void I.move(n,{unit:"line"});if(Be.isExtendLineBackward(r))return rn(r),void I.move(n,{unit:"line",edge:"focus",reverse:!0});if(Be.isExtendLineForward(r))return rn(r),void I.move(n,{unit:"line",edge:"focus"});if(Be.isMoveBackward(r))return rn(r),void(o&&z.isCollapsed(o)?I.move(n,{reverse:!0}):I.collapse(n,{edge:"start"}));if(Be.isMoveForward(r))return rn(r),void(o&&z.isCollapsed(o)?I.move(n):I.collapse(n,{edge:"end"}));if(Be.isMoveWordBackward(r))return rn(r),o&&z.isExpanded(o)&&I.collapse(n,{edge:"focus"}),void I.move(n,{unit:"word",reverse:!0});if(Be.isMoveWordForward(r))return rn(r),o&&z.isExpanded(o)&&I.collapse(n,{edge:"focus"}),void I.move(n,{unit:"word"});if(Be.isSelectAll(r))return rn(r),void n.selectAll();if($d){if((K4||qd)&&o&&(Be.isDeleteBackward(r)||Be.isDeleteForward(r))&&z.isCollapsed(o)){var i=tt.parent(n,o.anchor.path);if(dt.isElement(i)&&x.isVoid(n,i)&&x.isInline(n,i))return r.preventDefault(),void I.delete(n,{unit:"block"})}}else{if(Be.isBold(r)||Be.isItalic(r)||Be.isTransposeCharacter(r))return void rn(r);if(Be.isSplitBlock(r))return rn(r),void x.insertBreak(n);if(Be.isDeleteBackward(r))return rn(r),void(o&&z.isExpanded(o)?x.deleteFragment(n,{direction:"backward"}):x.deleteBackward(n));if(Be.isDeleteForward(r))return rn(r),void(o&&z.isExpanded(o)?x.deleteFragment(n,{direction:"forward"}):x.deleteForward(n));if(Be.isDeleteLineBackward(r))return rn(r),void(o&&z.isExpanded(o)?x.deleteFragment(n,{direction:"backward"}):x.deleteBackward(n,{unit:"line"}));if(Be.isDeleteLineForward(r))return rn(r),void(o&&z.isExpanded(o)?x.deleteFragment(n,{direction:"forward"}):x.deleteForward(n,{unit:"line"}));if(Be.isDeleteWordBackward(r))return rn(r),void(o&&z.isExpanded(o)?x.deleteFragment(n,{direction:"backward"}):x.deleteBackward(n,{unit:"word"}));if(Be.isDeleteWordForward(r))return rn(r),void(o&&z.isExpanded(o)?x.deleteFragment(n,{direction:"forward"}):x.deleteForward(n,{unit:"word"}))}}},keypress:function(t,e,n){if(!$d&&!n.getConfig().readOnly&&Wr(n,t.target)){t.preventDefault();var r=t.key;x.insertText(n,r)}},copy:function(t,e,n){var r=t;if(Wr(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&Wr(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(z.isExpanded(o))x.deleteFragment(n);else{var a=tt.parent(n,o.anchor.path);x.isVoid(n,a)&&I.delete(n)}}},paste:function(t,e,n){W4.set(n,!0);var r=t;if(!n.getConfig().readOnly&&Wr(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void W4.set(n,!1);if(!$d||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(t,e,n){if(cc(n,t.target)){var r=O.toSlateNode(n,t.target);x.isVoid(n,r)&&t.preventDefault()}},dragstart:function(t,e,n){var r=t;if(cc(n,r.target)&&!n.getConfig().readOnly){var o=O.toSlateNode(n,r.target),i=O.findPath(n,o);if(x.isVoid(n,o)||x.void(n,{at:i,voids:!0})){var a=x.range(n,i);I.select(n,a)}var u=r.dataTransfer;u!=null&&(e.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(t,e,n){var r=t;n.getConfig().readOnly||e.isDraggingInternally&&cc(n,r.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,n){var r=t,o=r.dataTransfer;if(!n.getConfig().readOnly&&cc(n,r.target)&&o!=null&&!($d&&qd&&o.files.length>0)){r.preventDefault();var i=n.selection,a=O.findEventRange(n,r);I.select(n,a),e.isDraggingInternally&&(i&&I.delete(n,{at:i}),e.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},pot=1,hot=function(){function t(e){var n=this;this.id=pot++,this.$textArea=null,this.$progressBar=T('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=T('<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 p=O.findDocumentOrShadowRoot(s),d=p.activeElement,y=O.toDOMNode(s,s),g=p.getSelection();if(d===y?(u.latestElement=d,ls.set(s,!0)):ls.delete(s),!g)return I.deselect(s);var v=g.anchorNode,m=g.focusNode,h=Wr(s,v)||DF(s,v),w=Wr(s,m)||DF(s,m);if(h&&w){var E=O.toSlateRange(s,g,{exactMatch:!1,suppressThrow:!1});I.select(s,E)}else I.deselect(s)}})(n,a)},100);var r=T(e);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=r;var o=T('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=T('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,Ur(function(){var a=n.editorInstance,u=O.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(t.prototype,"editorInstance",{get:function(){var e=I4.get(this);if(e==null)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var e=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(Kw(dot,function(i,a){n.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",$u(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){e.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return i&&i(n)}):e.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),e.latestEditorSelection=n.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,n=e.getConfig().maxLength;if(n){var r=n-O.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},t.prototype.changeProgress=function(e){var n=this.$progressBar;n.css("width",e+"%"),e>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},t.prototype.changeViewState=function(){var e=this,n=this.editorInstance;sot(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=T('<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),Ur(function(){AF(e,n)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function IC(t){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&IC(e)}function LC(){return T('<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 OF(){return T('<div class="w-e-bar-divider"></div>')}function kF(t,e,n,r,o){if(o===void 0&&(o=!1),e){if(r){var i=$4?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(t.attr("data-tooltip",r),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=r?n+`
|
|
76
|
-
`+r:n;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}C4("match",function(t,e,n){return[function(r){var o=Vr(this),i=r==null?void 0:rs(r,t);return i?$t(i,r,o):new RegExp(r)[t](ge(o))},function(r){var o=Ge(this),i=ge(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return Md(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Md(o,i))!==null;){var f=ge(s[0]);l[c]=f,f===""&&(o.lastIndex=x4(i,Gl(o.lastIndex),u)),c++}return c===0?null:l}]});var RC=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=T('<div class="w-e-bar-item"></div>'),this.$button=T('<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,p=this.$button;if(f){var d=T(f);IC(d),p.append(d)}else p.text(u);kF(p,f,u,l,r),r&&f&&p.append(T('<span class="title">'+u+"</span>")),a&&p.css("width",a+"px"),p.attr("data-menu-key",e),this.$elem.append(p),Ur(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),Sr(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=Sr(this),n=this.menu,r=n.getValue(e);n.exec(e,r)},t.prototype.setActive=function(){var e=Sr(this),n=this.$button,r="active";this.menu.isActive(e)?n.addClass(r):n.removeClass(r)},t.prototype.setDisabled=function(){var e=Sr(this),n=this.$button,r=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),got=function(t){function e(n,r,o){return o===void 0&&(o=!1),t.call(this,n,r,o)||this}return Jl(e,t),e.prototype.onButtonClick=function(){},e}(RC),MC=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var n=V4.get(e);n==null&&(n=new Set,V4.set(e,n)),n.add(this),Rv.set(this,e)},t.prototype.renderContent=function(e){var n=this.$elem;n.empty(),n.append(e);var r=this.genSelfElem();r&&n.append(r)},t.prototype.appendTo=function(e){var n=this.$elem;e.append(n)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=Rv.get(this);e&&e.emit("modalOrPanelShow",this)}},t.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=Rv.get(this);e&&e.emit("modalOrPanelHide")}},t}(),vot=function(t){function e(n){var r=t.call(this,n)||this;return r.type="dropPanel",r.$elem=T('<div class="w-e-drop-panel"></div>'),r}return Jl(e,t),e.prototype.genSelfElem=function(){return null},e}(MC),mot=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;if(i.dropPanel=null,i.menu=r,r.showDropPanel){var a=LC();i.$button.append(a)}return i}return Jl(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=Sr(this);if(this.dropPanel==null){var o=new vot(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"})}}},e}(RC),yot=function(t){function e(n,r){r===void 0&&(r=0);var o=t.call(this,n)||this;o.type="modal",o.$elem=T('<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 Jl(e,t),e.prototype.genSelfElem=function(){var n=this,r=T('<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=Rv.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},e.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},e}(MC);function xr(t,e,n){var r=T('<label class="babel-container"></label>');r.append("<span>"+t+"</span>");var o=T('<input type="text" id="'+e+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function fc(t,e){var n=T('<div class="button-container"></div>'),r=T('<button type="button" id="'+t+'">'+e+"</button>");return n.append(r),[n[0],r[0]]}var bot=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;return i.$body=T("body"),i.modal=null,i.menu=r,i}return Jl(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var n=Sr(this),r=this.menu.getModalPositionNode(n);return dt.isElement(r)?OC(n,r,"modal"):_C(n)},e.prototype.handleModal=function(){var n=Sr(this),r=this.menu;if(this.modal==null){var o=new yot(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=Sr(this),i=this.menu;if(i.getModalContentElem!=null){var a=O.getTextarea(o),u=O.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||kC(o,n.$elem),setTimeout(function(){o.blur()})}},e}(RC),wot=function(t){function e(n,r){var o=t.call(this,n)||this;return o.type="selectList",o.$elem=T('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return Jl(e,t),e.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=T("<ul></ul>");n.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=T('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=T('<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(T('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)}),r.append(o)},e.prototype.genSelfElem=function(){return null},e}(MC),Eot=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=T('<div class="w-e-bar-item"></div>'),this.$button=T('<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 p=this.$button;u&&p.css("width",u+"px"),p.attr("data-menu-key",e),kF(p,l,a,f,r),this.$elem.append(p),this.menu=n,Ur(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),Sr(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,n=Sr(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new wot(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=T(u).attr("data-value");e.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},t.prototype.onChange=function(e){var n=Sr(this),r=this.menu;r.exec&&r.exec(n,e)},t.prototype.setSelectedValue=function(){var e=Sr(this),n=this.menu,r=n.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var p=u[f];if(p.value===s){c=p.text;break}}return c}(n.getOptions(e),r.toString()),i=this.$button,a=LC();i.empty(),i.text(o),i.append(a)},t.prototype.setDisabled=function(){var e=Sr(this),n=this.menu.isDisabled(e),r=this.$button;(e.selection==null||e.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),BF=function(){function t(e){this.$elem=T('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=T('<div class="w-e-bar-item-menus-container"></div>'),this.$button=T('<button type="button"></button>');var n=e.key,r=e.iconSvg,o=e.title,i=this.$elem,a=this.$button;if(r){var u=T(r);IC(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=LC();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return t.prototype.appendBarItem=function(e){var n=e.$elem;this.$container.append(n)},t.prototype.observe=function(e){var n=this.$container;e.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=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){T(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),e.observe(o)}});return o},t}(),TF=new WeakMap;function Sr(t){var e=M4.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function FF(t,e,n){n===void 0&&(n=!1);var r=TF.get(e);if(r)return r;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;r=i?new mot(t,e,n):a?new bot(t,e,n):new got(t,e,n)}if(o==="select"&&(r=new Eot(t,e,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return TF.set(e,r),r}function Cot(t,e){var n=t.selection;return n!=null&&!z.isCollapsed(n)&&!O.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!at.isText(e)}var xot=function(){function t(){var e=this;this.$elem=T('<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=ek(function(){var n=e.isShow,r=e.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,u=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&dt.isElement(i)&&n&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)},200),Ur(function(){var n=e.getEditorInstance(),r=e.$elem;r.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),O.getTextarea(n).$textAreaContainer.append(r),n.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},t.prototype.checkPositionBottom=function(){var e=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-e[0].getBoundingClientRect().bottom<360&&(n=!0),n?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var e=this;Ur(function(){e.hoverbarItems.forEach(function(n){n.changeMenuState()})})},t.prototype.registerItems=function(e){var n=this,r=this.$elem;e.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var i=OF();r.append(i)}})},t.prototype.registerSingleItem=function(e){var n=this.getEditorInstance(),r=this.menus,o=r[e];if(o==null){var i=Kd[e];if(i==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");o=i(),r[e]=o}var a=FF(e,o);this.hoverbarItems.push(a),M4.set(a,n),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),dt.isElement(e)){var o=OC(n,e,"bar");return r.css(o),void kC(n,r)}if(at.isText(e))return o=_C(n),r.css(o),void kC(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.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,p=l||function(g,v){return O.checkNodeType(v,u)},d=Kt(x.nodes(e,{match:function(g){return p(e,g)},universal:!0}),1),y=d[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}},t.prototype.getEditorInstance=function(){var e=R4.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,n=e===void 0?{}:e,r=n.text;return r&&r.match==null&&(r.match=Cot),n},t.prototype.isSamePath=function(e,n){if(e==null||n==null)return!1;var r=O.findPath(null,e),o=O.findPath(null,n);return j.equals(r,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function PF(t,e,n,r){if(Wd.set(t,e),tc.set(t,n),dt.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return PF(u,s,t,r)}),x.isVoid(r,t)){var i=Kt(tt.texts(t),1),a=Kt(i[0],1)[0];Wd.set(a,0),tc.set(a,t)}}}function Sot(t){var e=t.selector,n=e===void 0?"":e,r=t.config,o=r===void 0?{}:r,i=t.content,a=t.html,u=t.plugins,s=u===void 0?[]:u,l=(m=>{var h=m,{apply:w}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:E}=h,{redos:C}=E;if(C.length>0){var D=C[C.length-1];Yl.withoutSaving(h,()=>{x.withoutNormalizing(h,()=>{for(var S of D)h.apply(S)})}),E.redos.pop(),E.undos.push(D)}},h.undo=()=>{var{history:E}=h,{undos:C}=E;if(C.length>0){var D=C[C.length-1];Yl.withoutSaving(h,()=>{x.withoutNormalizing(h,()=>{var S=D.map(ua.inverse).reverse();for(var A of S)h.apply(A)})}),E.redos.push(D),E.undos.pop()}},h.apply=E=>{var{operations:C,history:D}=h,{undos:S}=D,A=S[S.length-1],k=A&&A[A.length-1],R=((H,U)=>!(!U||H.type!=="set_selection"||U.type!=="set_selection"))(E,k),V=Yl.isSaving(h),L=Yl.isMerging(h);if(V==null&&(V=((H,U)=>H.type!=="set_selection"||H.properties!=null&&H.newProperties!=null)(E)),V){if(L==null&&(L=A!=null&&(C.length!==0||((H,U)=>H.type==="set_selection"||!(!U||H.type!=="insert_text"||U.type!=="insert_text"||H.offset!==U.offset+U.text.length||!j.equals(H.path,U.path))||!(!U||H.type!=="remove_text"||U.type!=="remove_text"||H.offset+H.text.length!==U.offset||!j.equals(H.path,U.path)))(E,k)||R)),A&&L)R&&A.pop(),A.push(E);else{var W=[E];S.push(W)}for(;S.length>100;)S.shift();(H=>H.type!=="set_selection")(E)&&(D.redos=[])}w(E)},h})(function(m){var h=m,w=h.insertText,E=h.insertNode,C=h.insertFragment,D=h.dangerouslyInsertHtml;return h.insertText=function(S){if(h.getConfig().maxLength){var A=O.getLeftLengthOfMaxLength(h);A<=0||(A<S.length?w(S.slice(0,A)):w(S))}else w(S)},h.insertNode=function(S){if(h.getConfig().maxLength){var A=O.getLeftLengthOfMaxLength(h);A<=0||A<tt.string(S).length||E(S)}else E(S)},h.insertFragment=function(S){if(h.getConfig().maxLength)if(S.length!==1)S.forEach(function(k){h.insertNode(k)});else{var A=S[0];if(O.getLeftLengthOfMaxLength(h)<tt.string(A).length)return;C(S)}else C(S)},h.dangerouslyInsertHtml=function(S,A){if(S===void 0&&(S=""),A===void 0&&(A=!1),S)if(h.getConfig().maxLength){var k=O.getLeftLengthOfMaxLength(h);if(!(k<=0)){var R=document.createElement("div");R.innerHTML=S;var V=Array.from(R.childNodes).reduce(function(L,W){var H=W.nodeType,U=W.nodeName;return W?H===Uo.TEXT_NODE?L+(W.textContent||""):H===Uo.ELEMENT_NODE?sF.has(U.toLowerCase())?L:L+(W.textContent||""):L:L},"");k<V.length||D(S,A)}}else D(S,A)},h}(function(m){var h=m;return h.on=function(w,E){var C=Kv(h);if(C.on(w,E),w==="destroyed"&&pF(h,E),w!=="destroyed"){var D=function(){return C.off(w,E)};C.on("destroyed",D),pF(h,D)}},h.once=function(w,E){Kv(h).once(w,E)},h.off=function(w,E){Kv(h).off(w,E)},h.emit=function(w){for(var E=[],C=1;C<arguments.length;C++)E[C-1]=arguments[C];var D=Kv(h);D.emit.apply(D,k4([w],Kt(E))),w==="destroyed"&&(Xrt(h).forEach(function(S){return D.off("destroyed",S)}),Zrt(h))},h}(function(m){var h=m;return h.select=function(w){I.select(h,w)},h.deselect=function(){var w=h.selection,E=O.findDocumentOrShadowRoot(h).getSelection();E&&E.rangeCount>0&&E.removeAllRanges(),w&&I.deselect(m)},h.move=function(w,E){E===void 0&&(E=!1),w&&(w<0||I.move(m,{distance:w,unit:"character",reverse:E}))},h.moveReverse=function(w){h.move(w,!0)},h.restoreSelection=function(){var w=U4.get(h);w!=null&&(h.focus(),I.select(h,w))},h.getSelectionPosition=function(){return _C(h)},h.getNodePosition=function(w){return OC(h,w)},h.isSelectedAll=function(){var w=h.selection;if(w==null)return!1;var E=Kt(z.edges(w),2),C=E[0],D=E[1],S=Kt(x.edges(h,[]),2),A=S[0],k=S[1];return!(!Nt.equals(C,A)||!Nt.equals(D,k))},h.selectAll=function(){var w=x.start(h,[]),E=x.end(h,[]);I.select(h,{anchor:w,focus:E})},h}(function(m){var h=m,w=h.onChange,E=h.insertText,C=h.apply,D=h.deleteBackward;return h.insertText=function(S){h.getConfig().readOnly||E(S)},h.apply=function(S){var A,k,R,V,L,W,H,U,$=[];switch(S.type){case"insert_text":case"remove_text":case"set_node":try{for(var J=Hr(x.levels(h,{at:S.path})),st=J.next();!st.done;st=J.next()){var lt=Kt(st.value,2),ct=lt[0],B=lt[1],_=O.findKey(h,ct);$.push([B,_])}}catch(Ht){A={error:Ht}}finally{try{st&&!st.done&&(k=J.return)&&k.call(J)}finally{if(A)throw A.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var N=Hr(x.levels(h,{at:j.parent(S.path)})),q=N.next();!q.done;q=N.next()){var X=Kt(q.value,2);ct=X[0],B=X[1],_=O.findKey(h,ct),$.push([B,_])}}catch(Ht){R={error:Ht}}finally{try{q&&!q.done&&(V=N.return)&&V.call(N)}finally{if(R)throw R.error}}break;case"move_node":try{for(var K=Hr(x.levels(h,{at:j.common(j.parent(S.path),j.parent(S.newPath))})),ut=K.next();!ut.done;ut=K.next()){var mt=Kt(ut.value,2);ct=mt[0],B=mt[1],_=O.findKey(h,ct),$.push([B,_])}}catch(Ht){L={error:Ht}}finally{try{ut&&!ut.done&&(W=K.return)&&W.call(K)}finally{if(L)throw L.error}}}C(S);try{for(var bt=Hr($),_t=bt.next();!_t.done;_t=bt.next()){var Y=Kt(_t.value,2);B=Y[0],_=Y[1],ct=Kt(x.node(h,B),1)[0],zv.set(ct,_)}}catch(Ht){H={error:Ht}}finally{try{_t&&!_t.done&&(U=bt.return)&&U.call(bt)}finally{if(H)throw H.error}}},h.deleteBackward=function(S){if(S!=="line")return D(S);if(m.selection&&z.isCollapsed(m.selection)){var A=x.above(m,{match:function(L){return x.isBlock(m,L)},at:m.selection});if(A){var k=Kt(A,2)[1],R=x.range(m,k,m.selection.anchor),V=function(L,W){var H=x.range(L,z.end(W)),U=Array.from(x.positions(L,{at:W})),$=0,J=U.length,st=Math.floor(J/2);if(KT(L,x.range(L,U[$]),H))return x.range(L,U[$],H);if(U.length<2)return x.range(L,U[U.length-1],H);for(;st!==U.length&&st!==$;)KT(L,x.range(L,U[st]),H)?J=st:$=st,st=Math.floor(($+J)/2);return x.range(L,U[J],H)}(h,R);z.isCollapsed(V)||I.delete(m,{at:V})}}},h.onChange=function(){var S=h.selection;S!=null&&U4.set(h,S),h.emit("change"),w()},h.handleTab=function(){h.insertText(" ")},h.getHtml=function(){var S=h.children;return(S===void 0?[]:S).map(function(A){return GT(A,h)}).join("")},h.getText=function(){var S=h.children;return(S===void 0?[]:S).map(function(A){return tt.string(A)}).join(`
|
|
77
|
-
`)},h.getSelectionText=function(){var S=h.selection;return S==null?"":x.string(m,S)},h.getElemsByType=function(S,A){var k,R;A===void 0&&(A=!1);var V=[],L=x.nodes(h,{at:[],universal:!0});try{for(var W=Hr(L),H=W.next();!H.done;H=W.next()){var U=Kt(H.value,1)[0];if(dt.isElement(U)&&(A?U.type.indexOf(S)>=0:U.type===S)){var $=qT(O.findKey(h,U).id);V.push(zr(zr({},U),{id:$}))}}}catch(J){k={error:J}}finally{try{H&&!H.done&&(R=W.return)&&R.call(W)}finally{if(k)throw k.error}}return V},h.getElemsByTypePrefix=function(S){return h.getElemsByType(S,!0)},h.isEmpty=function(){var S=h.children,A=S===void 0?[]:S;if(A.length>1)return!1;var k=A[0];if(k==null)return!0;if(dt.isElement(k)&&k.type==="paragraph"){var R=k.children,V=R===void 0?[]:R;if(V.length>1)return!1;var L=V[0];if(L==null||at.isText(L)&&L.text==="")return!0}return!1},h.clear=function(){I.delete(h,{at:{anchor:x.start(h,[]),focus:x.end(h,[])}}),h.children.length===0&&I.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(S){return O.getParentNode(h,S)},h.dangerouslyInsertHtml=function(S,A){if(S===void 0&&(S=""),A===void 0&&(A=!1),S){var k=document.createElement("div");k.innerHTML=S;var R=Array.from(k.childNodes);if(R=R.filter(function(H){var U=H.nodeType,$=H.nodeName;return U===Uo.TEXT_NODE||U===Uo.ELEMENT_NODE&&!sF.has($.toLowerCase())}),R.length!==0){var V=h.selection;if(V!=null){var L=null;O.isSelectedEmptyParagraph(h)&&!A&&(L=[V.focus.path[0]]),k.setAttribute("hidden","true"),document.body.appendChild(k);var W=0;R.forEach(function(H){var U=H.nodeType,$=H.nodeName,J=H.textContent,st=J===void 0?"":J;if(U!==Uo.TEXT_NODE)if($!=="BR"){var lt=H,ct=!1;if(YT.includes($.toLowerCase()))ct=!0;else for(var B in Gv)if(lt.matches(B)){ct=!0;break}if(ct){var _=EC(T(lt),h);return Array.isArray(_)?(_.forEach(function(q){return lF(h,q)}),W++):(lF(h,_),W++),void(O.isSelectedVoidNode(h)&&h.move(1))}var N=window.getComputedStyle(lt).display;O.isSelectedEmptyParagraph(h)||N.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(lt.innerHTML,!0)}else h.insertText(`
|
|
78
|
-
`);else{if(!st||!st.trim())return;h.insertNode({text:st})}}),W&&L&&O.isEmptyPath(h,L)&&I.removeNodes(h,{at:L}),k.remove()}}}},h.setHtml=function(S){S===void 0&&(S="");var A=h.isDisabled(),k=h.isFocused(),R=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var V=iF(h,S);if(I.insertFragment(h,V),k||(h.deselect(),h.blur()),A&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(R))}catch{h.select(x.start(h,[]))}},h}(function(m){var h=m;return h.getAllMenuKeys=function(){var w=[];for(var E in Kd)w.push(E);return w},h.getConfig=function(){var w=nT.get(h);if(w==null)throw new Error("Can not get editor config");return w},h.getMenuConfig=function(w){var E=h.getConfig().MENU_CONF;return(E===void 0?{}:E)[w]||{}},h.alert=function(w,E){E===void 0&&(E="info");var C=h.getConfig().customAlert;C&&C(w,E)},h}(function(m){var h=Lrt(oX());return h.id="wangEditor-"+Gnt++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(w){if(O.toDOMNode(h,h).focus({preventScroll:!0}),ls.set(h,!0),w){var E=x.end(h,[]);I.select(h,E)}else{var C=U4.get(h);C?I.select(h,C):I.select(h,x.start(h,[]))}},h.isFocused=function(){return!!ls.get(h)},h.blur=function(){O.toDOMNode(h,h).blur(),I.deselect(h),ls.set(h,!1)},h.updateView=function(){O.getTextarea(h).changeViewState();var w=O.getToolbar(h);w&&w.changeToolbarState();var E=O.getHoverbar(h);E&&E.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var w=O.getTextarea(h);w.destroy(),j4.delete(h),I4.delete(w);var E=O.getToolbar(h);E&&(E.destroy(),Iv.delete(h),L4.delete(E));var C=O.getHoverbar(h);C&&(C.destroy(),Lv.delete(h),R4.delete(C)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(w){if(!h.getConfig().scroll){var E="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return E+=`
|
|
79
|
-
You has disabled editor scroll, please do this yourself`,void console.warn(E)}var C=T("#"+w);if(C.length!==0){var D=C[0];if(!O.hasDOMNode(h,D))return E="Element (found by id is '"+w+"') is not in editor DOM",E+=`
|
|
80
|
-
通过 id '`+w+"' 找到的 element 不在 editor DOM 之内",void console.error(E,D);var S=O.getTextarea(h),A=S.$textAreaContainer,k=S.$scroll,R=C.offset().top,V=A.offset().top;k[0].scrollBy({top:R-V,behavior:"smooth"})}},h.showProgressBar=function(w){w<1||O.getTextarea(h).changeProgress(w)},h.hidePanelOrModal=function(){var w=V4.get(h);w!=null&&w.forEach(function(E){return E.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(w){return O.toDOMNode(h,w)},h.fullScreen=function(){if(!h.isFullScreen){var w=null,E=O.getToolbar(h);E&&(w=E.$box);var C=O.getTextarea(h).$box.parent();if(w&&w.parent()[0]!==C[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
|
|
81
|
-
不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);C.addClass("w-e-full-screen-container");var D=C.css("z-index");C.attr("data-z-index",D.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var w=O.getTextarea(h).$box.parent();setTimeout(function(){w.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return O.getTextarea(h).$textAreaContainer[0]},h}()))))));if(n&&function(m,h){return oF(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=nk(hT),w={},E=m.MENU_CONF,C=E===void 0?{}:E;return Kw(h,function(D,S){w[S]=zr(zr({},D),C[S]||{})}),delete m.MENU_CONF,zr({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:w,hoverbarKeys:{},customAlert:function(D,S){window.alert(S+`:
|
|
82
|
-
`+D)}},m)}(o);nT.set(l,c);var f=c.hoverbarKeys,p=f===void 0?{}:f;if(s.forEach(function(m){l=m(l)}),a!=null&&(l.children=iF(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),O.normalizeContent(l),n){var d=new hot(n);j4.set(l,d),I4.set(d,l),d.changeViewState(),Ur(function(){var m=d.$scroll;m!=null&&m.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
|
|
83
|
-
Textarea height < 300px . This may be cause modal and hoverbar position error`,m)});var y=void 0;Object.keys(p).length>0&&(y=new xot,R4.set(y,l),Lv.set(l,y)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(m,h){return PF(m,h,l,l)});var g=c.onCreated,v=c.onDestroyed;return g&&l.on("created",function(){return g(l)}),v&&l.on("destroyed",function(){return v(l)}),Ur(function(){return l.emit("created")}),l}var Dot=Dv("splice"),Aot=Z.TypeError,_ot=Math.max,Oot=Math.min;ke({target:"Array",proto:!0,forced:!Dot},{splice:function(t,e){var n,r,o,i,a,u,s=ma(this),l=as(s),c=$l(t,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=Oot(_ot(kd(e),0),l-c)),l+n-r>9007199254740991)throw Aot("Maximum allowed length exceeded");for(o=tB(s,r),i=0;i<r;i++)(a=c+i)in s&&Id(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 kot=function(){function t(e,n){var r=this;this.$toolbar=T('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=ek(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var o=T(e);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),Ur(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var e=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=nk(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(y,g){f.splice(s.index+g,0,y)}));var p=f.filter(function(y){if(typeof y=="string"){if(c.includes(y))return!1}else if(c.includes(y.key))return!1;return!0}),d=p.length;p.forEach(function(y,g){if(y==="|"){if(g===0||g+1===d||n==="|")return;var v=OF();return r.append(v),void(n=y)}if(typeof y=="string")return e.registerSingleItem(y,e),void(n=y);e.registerGroup(y),n="group"})},t.prototype.registerGroup=function(e){var n=this,r=this.$toolbar,o=function(l){return new BF(l)}(e),i=e.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)},t.prototype.registerSingleItem=function(e,n){var r=this.getEditorInstance(),o=n instanceof BF,i=this.menus,a=i[e];if(a==null){var u=Kd[e];if(u==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");a=u(),i[e]=a}else console.warn("Duplicated toolbar menu key '"+e+`'
|
|
84
|
-
重复注册了菜单栏 menu '`+e+"'");var s=FF(e,a,o);this.toolbarItems.push(s),M4.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=L4.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},t}(),Bot=Wl.EXISTS,Tot=po.f,NF=Function.prototype,Fot=ht(NF.toString),jF=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Pot=ht(jF.exec);function IF(t){var e=t.server,n=e===void 0?"":e,r=t.fieldName,o=r===void 0?"":r,i=t.maxFileSize,a=i===void 0?10485760:i,u=t.maxNumberOfFiles,s=u===void 0?100:u,l=t.meta,c=l===void 0?{}:l,f=t.metaWithUrl,p=f!==void 0&&f,d=t.headers,y=d===void 0?{}:d,g=t.withCredentials,v=g!==void 0&&g,m=t.timeout,h=m===void 0?1e4:m,w=t.onBeforeUpload,E=w===void 0?function(W){return W}:w,C=t.onSuccess,D=C===void 0?function(W,H){}:C,S=t.onError,A=S===void 0?function(W,H,U){console.error(W.name+" upload error",H,U)}:S,k=t.onProgress,R=k===void 0?function(W){}:k;if(!n)throw new Error(`Cannot get upload server address
|
|
85
|
-
没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
|
|
86
|
-
没有配置 fieldName`);var V=n;p&&(V=function(W,H){var U=Kt(W.split("#"),2),$=U[0],J=U[1],st=[];Kw(H,function(ct,B){st.push(B+"="+ct)});var lt=st.join("&");return $=$.indexOf("?")>0?$+"&"+lt:$+"?"+lt,J?$+"#"+J:$}(V,c));var L=new md({onBeforeUpload:E,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(ott,{endpoint:V,headers:y,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:h});return L.on("upload-success",function(W,H){var U=H.body,$=U===void 0?{}:U;try{D(W,$)}catch(J){console.error("wangEditor upload file - onSuccess error",J)}L.removeFile(W.id)}),L.on("progress",function(W){W<1||R(W)}),L.on("upload-error",function(W,H,U){try{A(W,H,U)}catch($){console.error("wangEditor upload file - onError error",$)}L.removeFile(W.id)}),L.on("restriction-failed",function(W,H){try{A(W,H)}catch(U){console.error("wangEditor upload file - onError error",U)}L.removeFile(W.id)}),L}function xa(t){return xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xa(t)}function Not(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function on(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},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){Not(t,o,n[o])})}return t}function Ai(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function LF(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _i(t,e,n){return e&&LF(t.prototype,e),n&&LF(t,n),t}function hs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function op(t,e){if(e&&(xa(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hs(t)}function dc(t){return dc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dc(t)}function VC(t,e){return VC=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},VC(t,e)}function Zv(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&VC(t,e)}bn&&!Bot&&Tot(NF,"name",{configurable:!0,get:function(){try{return Pot(jF,Fot(this))[1]}catch{return""}}});var jot={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},Oi=new(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ai(this,t),this.init(e,n)}return _i(t,[{key:"init",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||jot,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,n,r,o){return o&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[n](e))}},{key:"create",value:function(e){return new t(this.logger,on({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),Sa=function(){function t(){Ai(this,t),this.observers={}}return _i(t,[{key:"on",value:function(e,n){var r=this;return e.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)}),this}},{key:"off",value:function(e,n){this.observers[e]&&(n?this.observers[e]=this.observers[e].filter(function(r){return r!==n}):delete this.observers[e])}},{key:"emit",value:function(e){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[e]){var i=[].concat(this.observers[e]);i.forEach(function(u){u.apply(void 0,r)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[e].concat(r))})}}}]),t}();function ip(){var t,e,n=new Promise(function(r,o){t=r,e=o});return n.resolve=t,n.reject=e,n}function RF(t){return t==null?"":""+t}function Iot(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function zC(t,e,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!t||typeof t=="string"}for(var i=typeof e!="string"?[].concat(e):e.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!t[a]&&n&&(t[a]=new n),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return o()?{}:{obj:t,k:r(i.shift())}}function MF(t,e,n){var r=zC(t,e,Object);r.obj[r.k]=n}function Jv(t,e){var n=zC(t,e),r=n.obj,o=n.k;if(r)return r[o]}function VF(t,e,n){var r=Jv(t,n);return r!==void 0?r:Jv(e,n)}function zF(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):zF(t[r],e[r],n):t[r]=e[r]);return t}function pc(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Lot={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Rot(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return Lot[e]}):t}var Qv=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function HF(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),o=t,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?HF(s,l,n):void 0}o=o[r[i]]}return o}}var Mot=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Ai(this,e),r=op(this,dc(e).call(this)),Qv&&Sa.call(hs(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 Zv(e,Sa),_i(e,[{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=Jv(this.data,s);return l||!u||typeof o!="string"?l:HF(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),MF(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=Jv(this.data,s)||{};i?zF(l,o,a):l=on({},l,o),MF(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"?on({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),e}(),UF={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,o){var i=this;return t.forEach(function(a){i.processors[a]&&(e=i.processors[a].process(e,n,r,o))}),e}},WF={},GF=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ai(this,e),r=op(this,dc(e).call(this)),Qv&&Sa.call(hs(r)),Iot(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,hs(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Oi.create("translator"),r}return Zv(e,Sa),_i(e,[{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(xa(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,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){var d=r.nsSeparator||this.options.nsSeparator;return c+d+s}return s}var y=this.resolve(n,r),g=y&&y.res,v=y&&y.usedKey||s,m=y&&y.exactUsedKey||s,h=Object.prototype.toString.apply(g),w=["[object Number]","[object Function]","[object RegExp]"],E=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject,D=typeof g!="string"&&typeof g!="boolean"&&typeof g!="number";if(C&&g&&D&&w.indexOf(h)<0&&(typeof E!="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(v,g,on({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var S=h==="[object Array]",A=S?[]:{},k=S?m:v;for(var R in g)if(Object.prototype.hasOwnProperty.call(g,R)){var V="".concat(k).concat(a).concat(R);A[R]=this.translate(V,on({},r,{joinArrays:!1,ns:l})),A[R]===V&&(A[R]=g[R])}g=A}}else if(C&&typeof E=="string"&&h==="[object Array]")(g=g.join(E))&&(g=this.extendTranslation(g,n,r,o));else{var L=!1,W=!1,H=r.count!==void 0&&typeof r.count!="string",U=e.hasDefaultValue(r),$=H?this.pluralResolver.getSuffix(f,r.count):"",J=r["defaultValue".concat($)]||r.defaultValue;!this.isValidLookup(g)&&U&&(L=!0,g=J),this.isValidLookup(g)||(W=!0,g=s);var st=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,lt=st&&W?void 0:g,ct=U&&J!==g&&this.options.updateMissing;if(W||L||ct){if(this.logger.log(ct?"updateKey":"missingKey",f,c,s,ct?J:g),a){var B=this.resolve(s,on({},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 _=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&N&&N[0])for(var q=0;q<N.length;q++)_.push(N[q]);else this.options.saveMissingTo==="all"?_=this.languageUtils.toResolveHierarchy(r.lng||this.language):_.push(r.lng||this.language);var X=function(K,ut,mt){i.options.missingKeyHandler?i.options.missingKeyHandler(K,c,ut,ct?mt:lt,ct,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(K,c,ut,ct?mt:lt,ct,r),i.emit("missingKey",K,c,ut,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?_.forEach(function(K){i.pluralResolver.getSuffixes(K).forEach(function(ut){X([K],s+ut,r["defaultValue".concat(ut)]||J)})}):X(_,s,J))}g=this.extendTranslation(g,n,r,y,o),W&&g===s&&this.options.appendNamespaceToMissingKey&&(g="".concat(c,":").concat(s)),(W||L)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{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(on({},o,{interpolation:on({},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=on({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,o.lng||this.language,o),l){var p=n.match(this.interpolator.nestingRegexp);s<(p&&p.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var g=arguments.length,v=new Array(g),m=0;m<g;m++)v[m]=arguments[m];return a&&a[0]===v[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(v[0]," in key: ").concat(r[0])),null):u.translate.apply(u,v.concat([r]))},o)),o.interpolation&&this.interpolator.reset()}var d=o.postProcess||this.options.postProcess,y=typeof d=="string"?[d]:d;return n!=null&&y&&y.length&&o.applyPostProcessor!==!1&&(n=UF.handle(y,n,r,this.options&&this.options.postProcessPassResolved?on({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),p=f.key;o=p;var d=f.namespaces;s.options.fallbackNS&&(d=d.concat(s.options.fallbackNS));var y=l.count!==void 0&&typeof l.count!="string",g=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",v=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);d.forEach(function(m){s.isValidLookup(r)||(u=m,!WF["".concat(v[0],"-").concat(m)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(WF["".concat(v[0],"-").concat(m)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(v.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!!!")),v.forEach(function(h){if(!s.isValidLookup(r)){a=h;var w,E,C=p,D=[C];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(D,p,h,m,l):(y&&(w=s.pluralResolver.getSuffix(h,l.count)),y&&g&&D.push(C+w),g&&D.push(C+="".concat(s.options.contextSeparator).concat(l.context)),y&&D.push(C+=w));E=D.pop();)s.isValidLookup(r)||(i=E,r=s.getResource(h,m,E,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}}]),e}();function HC(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Vot=function(){function t(e){Ai(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Oi.create("languageUtils")}return _i(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.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]=HC(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]=HC(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=HC(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n,r=this;return e?(e.forEach(function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}}),!n&&this.options.supportedLngs&&e.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(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];var r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),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 e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),o.forEach(function(u){i.indexOf(u)<0&&a(r.formatLanguageCode(u))}),i}}]),t}(),zot=[{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}],Hot={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};function Uot(){var t={};return zot.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:Hot[e.fc]}})}),t}var Wot=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ai(this,t),this.languageUtils=e,this.options=n,this.logger=Oi.create("pluralResolver"),this.rules=Uot()}return _i(t,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=this.getRule(e);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){return this.getSuffixes(e).map(function(r){return n+r})}},{key:"getSuffixes",value:function(e){var n=this,r=this.getRule(e);return r?r.numbers.map(function(o){return n.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,n){var r=this,o=this.getRule(e);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(e)),""}}]),t}(),Got=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ai(this,t),this.logger=Oi.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return _i(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=n.escape!==void 0?n.escape:Rot,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?pc(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?pc(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?pc(n.nestingPrefix):n.nestingPrefixEscaped||pc("$t("),this.nestingSuffix=n.nestingSuffix?pc(n.nestingSuffix):n.nestingSuffixEscaped||pc(")"),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 e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"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(e,n,r,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(g){return g.replace(/\$/g,"$$$$")}var f=function(g){if(g.indexOf(s.formatSeparator)<0){var v=VF(n,l,g);return s.alwaysFormat?s.format(v,void 0,r,on({},o,n,{interpolationkey:g})):v}var m=g.split(s.formatSeparator),h=m.shift().trim(),w=m.join(s.formatSeparator).trim();return s.format(VF(n,l,h),w,r,on({},o,n,{interpolationkey:h}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,y=[{regex:this.regexpUnescape,safeValue:function(g){return c(g)}},{regex:this.regexp,safeValue:function(g){return s.escapeValue?c(s.escape(g)):c(g)}}];return y.forEach(function(g){for(u=0;i=g.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof p=="function"){var v=p(e,i,o);a=typeof v=="string"?v:""}else{if(d){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=RF(a));var m=g.safeValue(a);if(e=e.replace(i[0],m),d?(g.regex.lastIndex+=m.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,++u>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=on({},a);function s(p,d){var y=this.nestingOptionsSeparator;if(p.indexOf(y)<0)return p;var g=p.split(new RegExp("".concat(y,"[ ]*{"))),v="{".concat(g[1]);p=g[0],v=(v=this.interpolate(v,u)).replace(/'/g,'"');try{u=JSON.parse(v),d&&(u=on({},d,u))}catch(m){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),m),"".concat(p).concat(y).concat(v)}return delete u.defaultValue,p}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(p){return p.trim()});r[1]=f.shift(),l=f,c=!0}if((o=n(s.call(this,r[1].trim(),u),u))&&r[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=RF(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(p,d){return i.format(p,d,a.lng,on({},a,{interpolationkey:r[1].trim()}))},o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),t}(),qot=function(t){function e(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Ai(this,e),i=op(this,dc(e).call(this)),Qv&&Sa.call(hs(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Oi.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return Zv(e,Sa),_i(e,[{key:"queueLoad",value:function(n,r,o,i){var a=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var p=!0;r.forEach(function(d){var y="".concat(f,"|").concat(d);!o.reload&&a.store.hasResourceBundle(f,d)?a.state[y]=2:a.state[y]<0||(a.state[y]===1?s.indexOf(y)<0&&s.push(y):(a.state[y]=1,p=!1,s.indexOf(y)<0&&s.push(y),u.indexOf(y)<0&&u.push(y),c.indexOf(d)<0&&c.push(d)))}),p||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,p,d){var y=zC(c,f,Object),g=y.obj,v=y.k;g[v]=g[v]||[],g[v].push(p)})(l.loaded,[a],u),function(c,f){for(var p=c.indexOf(f);p!==-1;)c.splice(p,1),p=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,on({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),e}();function $ot(){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(t){var e={};if(xa(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),xa(t[2])==="object"||xa(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(r){e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function qF(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function tm(){}var Kot=function(t){function e(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Ai(this,e),n=op(this,dc(e).call(this)),Qv&&Sa.call(hs(n)),n.options=qF(r),n.services={},n.logger=Oi,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),op(n,hs(n));setTimeout(function(){n.init(r,o)},0)}return n}return Zv(e,Sa),_i(e,[{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(d){return d?typeof d=="function"?new d:d: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=on({},$ot(),this.options,qF(r)),this.format=this.options.interpolation.format,o||(o=tm),!this.options.isClone){this.modules.logger?Oi.init(i(this.modules.logger),this.options):Oi.init(null,this.options);var a=new Vot(this.options);this.store=new Mot(this.options.resources,this.options);var u=this.services;u.logger=Oi,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new Wot(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Got(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new qot(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(d){for(var y=arguments.length,g=new Array(y>1?y-1:0),v=1;v<y;v++)g[v-1]=arguments[v];n.emit.apply(n,[d].concat(g))}),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 GF(this.services,this.options),this.translator.on("*",function(d){for(var y=arguments.length,g=new Array(y>1?y-1:0),v=1;v<y;v++)g[v-1]=arguments[v];n.emit.apply(n,[d].concat(g))}),this.modules.external.forEach(function(d){d.init&&d.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(d){n[d]=function(){var y;return(y=n.store)[d].apply(y,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(d){n[d]=function(){var y;return(y=n.store)[d].apply(y,arguments),n}});var f=ip(),p=function(){var d=function(y,g){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(g),o(y,g)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return d(null,n.t.bind(n));n.changeLanguage(n.options.lng,d)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),f}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tm,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=ip();return n||(n=this.languages),r||(r=this.options.ns),o||(o=tm),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"&&UF.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=ip();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(xa(l)!=="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),d=2;d<f;d++)p[d-2]=arguments[d];c=i.options.overloadTranslationOptionHandler([s,l].concat(p))}else c=on({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var y=i.options.keySeparator||".",g=o?"".concat(o).concat(y).concat(s):s;return i.t(g,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 p=r.services.backendConnector.state["".concat(c,"|").concat(f)];return p===-1||p===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=ip();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=ip();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 e(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]:tm,i=on({},this.options,r,{isClone:!0}),a=new e(i),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=on({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new GF(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}}}]),e}(),em=new Kot;function ir(t,e){em.addResourceBundle(t,"translation",e,!0,!0)}em.init({lng:"zh-CN",resources:{}});var et=em.t.bind(em);ir("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),ir("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Yot=j2?{}.toString:function(){return"[object "+v0(this)+"]"};j2||na(Object.prototype,"toString",Yot,{unsafe:!0});var $F=Array.isArray||function(t){return Nu(t)=="Array"},KF=function(){},Xot=[],YF=zf("Reflect","construct"),UC=/^\s*(?:class|function)\b/,Zot=de(UC.exec),Jot=!UC.exec(KF),ap=function(t){if(!Je(t))return!1;try{return YF(KF,Xot,t),!0}catch{return!1}},Qot=!YF||mn(function(){var t;return ap(ap.call)||!ap(Object)||!ap(function(){t=!0})||t})?function(t){if(!Je(t))return!1;switch(v0(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Jot||!!Zot(UC,_2(t))}:ap,tit=$n("species"),XF=Dt.Array,eit=function(t,e){return new(function(n){var r;return $F(n)&&(r=n.constructor,(Qot(r)&&(r===XF||$F(r.prototype))||so(r)&&(r=r[tit])===null)&&(r=void 0)),r===void 0?XF:r}(t))(e===0?0:e)},ZF=de([].push),Da=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=C2(s),g=Z_(y),v=B9(l,c),m=p0(g),h=0,w=f||eit,E=e?w(s,m):n||a?w(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:ZF(E,p)}else switch(t){case 4:return!1;case 7:ZF(E,p)}return i?-1:r||o?o:E}},nit={forEach:Da(0),map:Da(1),filter:Da(2),some:Da(3),every:Da(4),find:Da(5),findIndex:Da(6),filterReject:Da(7)}.forEach,rit=function(t,e){var n=[][t];return!!n&&mn(function(){n.call(null,e||function(){throw 1},1)})}("forEach"),WC=rit?[].forEach:function(t){return nit(this,t,arguments.length>1?arguments[1]:void 0)},JF=function(t){if(t&&t.forEach!==WC)try{Kn(t,"forEach",WC)}catch{t.forEach=WC}};for(var GC in x0)x0[GC]&&JF(Dt[GC]&&Dt[GC].prototype);JF(H9),ir("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"}}),ir("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 oit={type:"paragraph",renderElem:function(t,e,n){return wt("p",null,e)}},nm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rm(t){var e={exports:{}};return t(e,e.exports),e.exports}var Aa,om,im=function(t){return t&&t.Math==Math&&t},kt=im(typeof globalThis=="object"&&globalThis)||im(typeof window=="object"&&window)||im(typeof self=="object"&&self)||im(typeof nm=="object"&&nm)||function(){return this}()||Function("return this")(),Te=function(t){try{return!!t()}catch{return!0}},mo=!Te(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),up=Function.prototype.call,Me=up.bind?up.bind(up):function(){return up.apply(up,arguments)},QF={}.propertyIsEnumerable,tP=Object.getOwnPropertyDescriptor,iit=tP&&!QF.call({1:2},1)?function(t){var e=tP(this,t);return!!e&&e.enumerable}:QF,eP={f:iit},qC=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},nP=Function.prototype,$C=nP.bind,KC=nP.call,ait=$C&&$C.bind(KC),yt=$C?function(t){return t&&ait(KC,t)}:function(t){return t&&function(){return KC.apply(t,arguments)}},uit=yt({}.toString),sit=yt("".slice),_a=function(t){return sit(uit(t),8,-1)},YC=kt.Object,lit=yt("".split),am=Te(function(){return!YC("z").propertyIsEnumerable(0)})?function(t){return _a(t)=="String"?lit(t,""):YC(t)}:YC,cit=kt.TypeError,Gr=function(t){if(t==null)throw cit("Can't call method on "+t);return t},hc=function(t){return am(Gr(t))},_n=function(t){return typeof t=="function"},qr=function(t){return typeof t=="object"?t!==null:_n(t)},fit=function(t){return _n(t)?t:void 0},sp=function(t,e){return arguments.length<2?fit(kt[t]):kt[t]&&kt[t][e]},rP=yt({}.isPrototypeOf),XC=sp("navigator","userAgent")||"",oP=kt.process,iP=kt.Deno,aP=oP&&oP.versions||iP&&iP.version,uP=aP&&aP.v8;uP&&(om=(Aa=uP.split("."))[0]>0&&Aa[0]<4?1:+(Aa[0]+Aa[1])),!om&&XC&&(!(Aa=XC.match(/Edge\/(\d+)/))||Aa[1]>=74)&&(Aa=XC.match(/Chrome\/(\d+)/))&&(om=+Aa[1]);var ZC=om,JC=!!Object.getOwnPropertySymbols&&!Te(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ZC&&ZC<41}),QC=JC&&!Symbol.sham&&typeof Symbol.iterator=="symbol",dit=kt.Object,tx=QC?function(t){return typeof t=="symbol"}:function(t){var e=sp("Symbol");return _n(e)&&rP(e.prototype,dit(t))},pit=kt.String,sP=function(t){try{return pit(t)}catch{return"Object"}},hit=kt.TypeError,lP=function(t){if(_n(t))return t;throw hit(sP(t)+" is not a function")},um=function(t,e){var n=t[e];return n==null?void 0:lP(n)},git=kt.TypeError,vit=Object.defineProperty,ex=function(t,e){try{vit(kt,t,{value:e,configurable:!0,writable:!0})}catch{kt[t]=e}return e},Oa=kt["__core-js_shared__"]||ex("__core-js_shared__",{}),nx=rm(function(t){(t.exports=function(e,n){return Oa[e]||(Oa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),mit=kt.Object,lp=function(t){return mit(Gr(t))},yit=yt({}.hasOwnProperty),$r=Object.hasOwn||function(t,e){return yit(lp(t),e)},bit=0,wit=Math.random(),Eit=yt(1 .toString),cP=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Eit(++bit+wit,36)},cp=nx("wks"),gs=kt.Symbol,fP=gs&&gs.for,Cit=QC?gs:gs&&gs.withoutSetter||cP,Dr=function(t){if(!$r(cp,t)||!JC&&typeof cp[t]!="string"){var e="Symbol."+t;JC&&$r(gs,t)?cp[t]=gs[t]:cp[t]=QC&&fP?fP(e):Cit(e)}return cp[t]},xit=kt.TypeError,Sit=Dr("toPrimitive"),rx=function(t){var e=function(n,r){if(!qr(n)||tx(n))return n;var o,i=um(n,Sit);if(i){if(r===void 0&&(r="default"),o=Me(i,n,r),!qr(o)||tx(o))return o;throw xit("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&_n(s=a.toString)&&!qr(l=Me(s,a))||_n(s=a.valueOf)&&!qr(l=Me(s,a))||u!=="string"&&_n(s=a.toString)&&!qr(l=Me(s,a)))return l;throw git("Can't convert object to primitive value")}(n,r)}(t,"string");return tx(e)?e:e+""},ox=kt.document,Dit=qr(ox)&&qr(ox.createElement),ix=function(t){return Dit?ox.createElement(t):{}},dP=!mo&&!Te(function(){return Object.defineProperty(ix("div"),"a",{get:function(){return 7}}).a!=7}),pP=Object.getOwnPropertyDescriptor,ax={f:mo?pP:function(t,e){if(t=hc(t),e=rx(e),dP)try{return pP(t,e)}catch{}if($r(t,e))return qC(!Me(eP.f,t,e),t[e])}},Ait=kt.String,_it=kt.TypeError,Ar=function(t){if(qr(t))return t;throw _it(Ait(t)+" is not an object")},Oit=kt.TypeError,hP=Object.defineProperty,gc={f:mo?hP:function(t,e,n){if(Ar(t),e=rx(e),Ar(n),dP)try{return hP(t,e,n)}catch{}if("get"in n||"set"in n)throw Oit("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},vc=mo?function(t,e,n){return gc.f(t,e,qC(1,n))}:function(t,e,n){return t[e]=n,t},kit=yt(Function.toString);_n(Oa.inspectSource)||(Oa.inspectSource=function(t){return kit(t)});var sm,fp,lm,ux=Oa.inspectSource,gP=kt.WeakMap,Bit=_n(gP)&&/native code/.test(ux(gP)),vP=nx("keys"),mP=function(t){return vP[t]||(vP[t]=cP(t))},sx={},lx=kt.TypeError,Tit=kt.WeakMap;if(Bit||Oa.state){var vs=Oa.state||(Oa.state=new Tit),Fit=yt(vs.get),yP=yt(vs.has),Pit=yt(vs.set);sm=function(t,e){if(yP(vs,t))throw new lx("Object already initialized");return e.facade=t,Pit(vs,t,e),e},fp=function(t){return Fit(vs,t)||{}},lm=function(t){return yP(vs,t)}}else{var mc=mP("state");sx[mc]=!0,sm=function(t,e){if($r(t,mc))throw new lx("Object already initialized");return e.facade=t,vc(t,mc,e),e},fp=function(t){return $r(t,mc)?t[mc]:{}},lm=function(t){return $r(t,mc)}}var cx={set:sm,get:fp,has:lm,enforce:function(t){return lm(t)?fp(t):sm(t,{})},getterFor:function(t){return function(e){var n;if(!qr(e)||(n=fp(e)).type!==t)throw lx("Incompatible receiver, "+t+" required");return n}}},bP=Function.prototype,Nit=mo&&Object.getOwnPropertyDescriptor,fx=$r(bP,"name"),cm={EXISTS:fx,PROPER:fx&&(function(){}).name==="something",CONFIGURABLE:fx&&(!mo||mo&&Nit(bP,"name").configurable)},dp=rm(function(t){var e=cm.CONFIGURABLE,n=cx.get,r=cx.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;_n(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!$r(u,"name")||e&&u.name!==d)&&vc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==kt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:vc(i,a,u)):f?i[a]=u:ex(a,u)})(Function.prototype,"toString",function(){return _n(this)&&n(this).source||ux(this)})}),jit=Math.ceil,Iit=Math.floor,yc=function(t){var e=+t;return e!=e||e===0?0:(e>0?Iit:jit)(e)},Lit=Math.max,Rit=Math.min,pp=function(t,e){var n=yc(t);return n<0?Lit(n+e,0):Rit(n,e)},Mit=Math.min,hp=function(t){return t>0?Mit(yc(t),9007199254740991):0},fm=function(t){return hp(t.length)},wP=function(t){return function(e,n,r){var o,i=hc(e),a=fm(i),u=pp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},EP={includes:wP(!0),indexOf:wP(!1)},Vit=EP.indexOf,CP=yt([].push),xP=function(t,e){var n,r=hc(t),o=0,i=[];for(n in r)!$r(sx,n)&&$r(r,n)&&CP(i,n);for(;e.length>o;)$r(r,n=e[o++])&&(~Vit(i,n)||CP(i,n));return i},dm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zit=dm.concat("length","prototype"),Hit={f:Object.getOwnPropertyNames||function(t){return xP(t,zit)}},SP={f:Object.getOwnPropertySymbols},Uit=yt([].concat),Wit=sp("Reflect","ownKeys")||function(t){var e=Hit.f(Ar(t)),n=SP.f;return n?Uit(e,n(t)):e},Git=function(t,e){for(var n=Wit(e),r=gc.f,o=ax.f,i=0;i<n.length;i++){var a=n[i];$r(t,a)||r(t,a,o(e,a))}},qit=/#|\.prototype\./,gp=function(t,e){var n=Kit[$it(t)];return n==Xit||n!=Yit&&(_n(e)?Te(e):!!e)},$it=gp.normalize=function(t){return String(t).replace(qit,".").toLowerCase()},Kit=gp.data={},Yit=gp.NATIVE="N",Xit=gp.POLYFILL="P",Zit=gp,Jit=ax.f,fn=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?kt:l?kt[u]||ex(u,{}):(kt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Jit(n,r))&&a.value:n[r],!Zit(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Git(i,o)}(t.sham||o&&o.sham)&&vc(i,"sham",!0),dp(n,r,i,t)}},DP=yt(yt.bind),pm=Array.isArray||function(t){return _a(t)=="Array"},AP={};AP[Dr("toStringTag")]="z";var dx=String(AP)==="[object z]",Qit=Dr("toStringTag"),tat=kt.Object,eat=_a(function(){return arguments}())=="Arguments",px=dx?_a:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=tat(t),Qit))=="string"?n:eat?_a(e):(r=_a(e))=="Object"&&_n(e.callee)?"Arguments":r},_P=function(){},nat=[],OP=sp("Reflect","construct"),hx=/^\s*(?:class|function)\b/,rat=yt(hx.exec),oat=!hx.exec(_P),vp=function(t){if(!_n(t))return!1;try{return OP(_P,nat,t),!0}catch{return!1}},gx=!OP||Te(function(){var t;return vp(vp.call)||!vp(Object)||!vp(function(){t=!0})||t})?function(t){if(!_n(t))return!1;switch(px(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return oat||!!rat(hx,ux(t))}:vp,iat=Dr("species"),kP=kt.Array,aat=function(t,e){return new(function(n){var r;return pm(n)&&(r=n.constructor,(gx(r)&&(r===kP||pm(r.prototype))||qr(r)&&(r=r[iat])===null)&&(r=void 0)),r===void 0?kP:r}(t))(e===0?0:e)},BP=yt([].push),ka=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=lp(s),g=am(y),v=function(C,D){return lP(C),D===void 0?C:DP?DP(C,D):function(){return C.apply(D,arguments)}}(l,c),m=fm(g),h=0,w=f||aat,E=e?w(s,m):n||a?w(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:BP(E,p)}else switch(t){case 4:return!1;case 7:BP(E,p)}return i?-1:r||o?o:E}},hm={forEach:ka(0),map:ka(1),filter:ka(2),some:ka(3),every:ka(4),find:ka(5),findIndex:ka(6),filterReject:ka(7)},uat=Dr("species"),vx=function(t){return ZC>=51||!Te(function(){var e=[];return(e.constructor={})[uat]=function(){return{foo:1}},e[t](Boolean).foo!==1})},sat=hm.filter;fn({target:"Array",proto:!0,forced:!vx("filter")},{filter:function(t){return sat(this,t,arguments.length>1?arguments[1]:void 0)}});var lat=dx?{}.toString:function(){return"[object "+px(this)+"]"};dx||dp(Object.prototype,"toString",lat,{unsafe:!0});var gm,cat=kt.String,Fe=function(t){if(px(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return cat(t)},TP=function(){var t=Ar(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},mx=kt.RegExp,yx=Te(function(){var t=mx("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),fat=yx||Te(function(){return!mx("a","y").sticky}),FP={BROKEN_CARET:yx||Te(function(){var t=mx("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:fat,UNSUPPORTED_Y:yx},bc=Object.keys||function(t){return xP(t,dm)},dat=mo?Object.defineProperties:function(t,e){Ar(t);for(var n,r=hc(e),o=bc(e),i=o.length,a=0;i>a;)gc.f(t,n=o[a++],r[n]);return t},pat=sp("document","documentElement"),PP=mP("IE_PROTO"),bx=function(){},NP=function(t){return"<script>"+t+"<\/script>"},jP=function(t){t.write(NP("")),t.close();var e=t.parentWindow.Object;return t=null,e},vm=function(){try{gm=new ActiveXObject("htmlfile")}catch{}var t,e;vm=typeof document<"u"?document.domain&&gm?jP(gm):((e=ix("iframe")).style.display="none",pat.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(NP("document.F=Object")),t.close(),t.F):jP(gm);for(var n=dm.length;n--;)delete vm.prototype[dm[n]];return vm()};sx[PP]=!0;var IP,wx,LP=Object.create||function(t,e){var n;return t!==null?(bx.prototype=Ar(t),n=new bx,bx.prototype=null,n[PP]=t):n=vm(),e===void 0?n:dat(n,e)},hat=kt.RegExp,gat=Te(function(){var t=hat(".","s");return!(t.dotAll&&t.exec(`
|
|
87
|
-
`)&&t.flags==="s")}),vat=kt.RegExp,mat=Te(function(){var t=vat("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),yat=cx.get,bat=nx("native-string-replace",String.prototype.replace),mm=RegExp.prototype.exec,Ex=mm,wat=yt("".charAt),Eat=yt("".indexOf),Cat=yt("".replace),Cx=yt("".slice),xx=(wx=/b*/g,Me(mm,IP=/a/,"a"),Me(mm,wx,"a"),IP.lastIndex!==0||wx.lastIndex!==0),RP=FP.BROKEN_CARET,Sx=/()??/.exec("")[1]!==void 0;(xx||Sx||RP||gat||mat)&&(Ex=function(t){var e,n,r,o,i,a,u,s=this,l=yat(s),c=Fe(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Me(Ex,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=RP&&s.sticky,y=Me(TP,s),g=s.source,v=0,m=c;if(d&&(y=Cat(y,"y",""),Eat(y,"g")===-1&&(y+="g"),m=Cx(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&wat(c,s.lastIndex-1)!==`
|
|
88
|
-
`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),Sx&&(n=new RegExp("^"+g+"$(?!\\s)",y)),xx&&(r=s.lastIndex),o=Me(mm,d?n:s,m),d?o?(o.input=Cx(o.input,v),o[0]=Cx(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:xx&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Sx&&o&&o.length>1&&Me(bat,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=LP(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var mp=Ex;fn({target:"RegExp",proto:!0,forced:/./.exec!==mp},{exec:mp});var Dx=Function.prototype,MP=Dx.apply,xat=Dx.bind,VP=Dx.call,zP=typeof Reflect=="object"&&Reflect.apply||(xat?VP.bind(MP):function(){return VP.apply(MP,arguments)}),Sat=Dr("species"),Ax=RegExp.prototype,_x=function(t,e,n,r){var o=Dr(t),i=!Te(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Te(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[Sat]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=yt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=yt(l),g=c.exec;return g===mp||g===Ax.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});dp(String.prototype,t,s[0]),dp(Ax,o,s[1])}r&&vc(Ax[o],"sham",!0)},Dat=yt("".charAt),HP=yt("".charCodeAt),Aat=yt("".slice),_at=function(t){return function(e,n){var r,o,i=Fe(Gr(e)),a=yc(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=HP(i,a))<55296||r>56319||a+1===u||(o=HP(i,a+1))<56320||o>57343?t?Dat(i,a):r:t?Aat(i,a,a+2):o-56320+(r-55296<<10)+65536}},Oat=_at(!0),Ox=function(t,e,n){return e+(n?Oat(t,e).length:1)},kat=Math.floor,kx=yt("".charAt),Bat=yt("".replace),Bx=yt("".slice),Tat=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Fat=/\$([$&'`]|\d{1,2})/g,Pat=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Fat;return o!==void 0&&(o=lp(o),s=Tat),Bat(i,s,function(l,c){var f;switch(kx(c,0)){case"$":return"$";case"&":return t;case"`":return Bx(e,0,n);case"'":return Bx(e,a);case"<":f=o[Bx(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=kat(p/10);return d===0?l:d<=u?r[d-1]===void 0?kx(c,1):r[d-1]+kx(c,1):l}f=r[p-1]}return f===void 0?"":f})},Nat=kt.TypeError,yp=function(t,e){var n=t.exec;if(_n(n)){var r=Me(n,t,e);return r!==null&&Ar(r),r}if(_a(t)==="RegExp")return Me(mp,t,e);throw Nat("RegExp#exec called on incompatible receiver")},Tx=Dr("replace"),jat=Math.max,Iat=Math.min,Lat=yt([].concat),Fx=yt([].push),UP=yt("".indexOf),WP=yt("".slice),Rat="a".replace(/./,"$0")==="$0",GP=!!/./[Tx]&&/./[Tx]("a","$0")==="";_x("replace",function(t,e,n){var r=GP?"$":"$0";return[function(o,i){var a=Gr(this),u=o==null?void 0:um(o,Tx);return u?Me(u,o,a,i):Me(e,Fe(a),o,i)},function(o,i){var a=Ar(this),u=Fe(o);if(typeof i=="string"&&UP(i,r)===-1&&UP(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=_n(i);l||(i=Fe(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=yp(a,u);if(d===null||(Fx(p,d),!c))break;Fe(d[0])===""&&(a.lastIndex=Ox(u,hp(a.lastIndex),f))}for(var y,g="",v=0,m=0;m<p.length;m++){for(var h=Fe((d=p[m])[0]),w=jat(Iat(yc(d.index),u.length),0),E=[],C=1;C<d.length;C++)Fx(E,(y=d[C])===void 0?y:String(y));var D=d.groups;if(l){var S=Lat([h],E,w,u);D!==void 0&&Fx(S,D);var A=Fe(zP(i,void 0,S))}else A=Pat(h,u,w,E,D,i);w>=v&&(g+=WP(u,v,w)+A,v=w+h.length)}return g+WP(u,v)}]},!!Te(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Rat||GP);var Px=Dr("unscopables"),Nx=Array.prototype;Nx[Px]==null&&gc.f(Nx,Px,{configurable:!0,value:LP(null)});var qP=function(t){Nx[Px][t]=!0},Mat=hm.find,$P=!0;"find"in[]&&Array(1).find(function(){$P=!1}),fn({target:"Array",proto:!0,forced:$P},{find:function(t){return Mat(this,t,arguments.length>1?arguments[1]:void 0)}}),qP("find");var Vat=Dr("match"),KP=function(t){var e;return qr(t)&&((e=t[Vat])!==void 0?!!e:_a(t)=="RegExp")},zat=kt.TypeError,Hat=Dr("species"),YP=function(t,e,n){var r=rx(e);r in t?gc.f(t,r,qC(0,n)):t[r]=n},Uat=kt.Array,Wat=Math.max,XP=function(t,e,n){for(var r=fm(t),o=pp(e,r),i=pp(n===void 0?r:n,r),a=Uat(Wat(i-o,0)),u=0;o<i;o++,u++)YP(a,u,t[o]);return a.length=u,a},wc=FP.UNSUPPORTED_Y,Gat=Math.min,ZP=[].push,qat=yt(/./.exec),Ec=yt(ZP),bp=yt("".slice);_x("split",function(t,e,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=Fe(Gr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!KP(o))return Me(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,y=new RegExp(o.source,p+"g");(s=Me(mp,y,a))&&!((l=y.lastIndex)>d&&(Ec(f,bp(a,d,s.index)),s.length>1&&s.index<a.length&&zP(ZP,f,XP(s,1)),c=s[0].length,d=l,f.length>=u));)y.lastIndex===s.index&&y.lastIndex++;return d===a.length?!c&&qat(y,"")||Ec(f,""):Ec(f,bp(a,d)),f.length>u?XP(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Me(e,this,o,i)}:e,[function(o,i){var a=Gr(this),u=o==null?void 0:um(o,t);return u?Me(u,o,a,i):Me(r,Fe(a),o,i)},function(o,i){var a=Ar(this),u=Fe(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(E,C){var D,S=Ar(E).constructor;return S===void 0||(D=Ar(S)[Hat])==null?C:function(A){if(gx(A))return A;throw zat(sP(A)+" is not a constructor")}(D)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(wc?"g":"y"),p=new l(wc?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return yp(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g<u.length;){p.lastIndex=wc?0:g;var m,h=yp(p,wc?bp(u,g):u);if(h===null||(m=Gat(hp(p.lastIndex+(wc?g:0)),u.length))===y)g=Ox(u,g,c);else{if(Ec(v,bp(u,y,g)),v.length===d)return v;for(var w=1;w<=h.length-1;w++)if(Ec(v,h[w]),v.length===d)return v;g=y=m}}return Ec(v,bp(u,y)),v}]},!!Te(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),wc);var jx=`
|
|
89
|
-
\v\f\r \u2028\u2029\uFEFF`,JP=yt("".replace),ym="["+jx+"]",$at=RegExp("^"+ym+ym+"*"),Kat=RegExp(ym+ym+"*$"),Ix=function(t){return function(e){var n=Fe(Gr(e));return 1&t&&(n=JP(n,$at,"")),2&t&&(n=JP(n,Kat,"")),n}},Yat={start:Ix(1),end:Ix(2),trim:Ix(3)},Xat=cm.PROPER,Zat=Yat.trim;function Lx(t){return T("<div>"+t+"</div>").children().filter(function(e){return e.tagName!=="BR"}).length===0}function Cc(t){return t.length===0?"":t[0].outerHTML}function xc(t){return t.length?t[0].tagName.toLowerCase():""}function yo(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===e&&(n=u[1].trim())}}return n}fn({target:"String",proto:!0,forced:Te(function(){return!!jx.trim()||"
".trim()!=="
"||Xat&&jx.trim.name!=="trim"})},{trim:function(){return Zat(this)}}),fn({global:!0},{globalThis:kt}),G0&&(T.fn.css=G0),Lr&&(T.fn.append=Lr),mO&&(T.fn.prepend=mO),Ol&&(T.fn.addClass=Ol),kl&&(T.fn.removeClass=kl),Bl&&(T.fn.hasClass=Bl),Ro&&(T.fn.on=Ro),pO&&(T.fn.off=pO),ca&&(T.fn.focus=ca),Ir&&(T.fn.attr=Ir),z0&&(T.fn.removeAttr=z0),Fl&&(T.fn.hide=Fl),W0&&(T.fn.show=W0),K0&&(T.fn.parents=K0),Tl&&(T.fn.dataset=Tl),Lo&&(T.fn.val=Lo),$0&&(T.fn.text=$0),la&&(T.fn.html=la),jl&&(T.fn.children=jl),Il&&(T.fn.remove=Il),Nl&&(T.fn.find=Nl),H0&&(T.fn.width=H0),U0&&(T.fn.height=U0),gO&&(T.fn.filter=gO),Ll&&(T.fn.empty=Ll);var Jat={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=T(t);return(e=e.filter(function(o){return!!at.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},Rx=function(t,e){return Rx=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])},Rx(t,e);/*! *****************************************************************************
|
|
90
|
-
Copyright (c) Microsoft Corporation.
|
|
91
|
-
|
|
92
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
93
|
-
purpose with or without fee is hereby granted.
|
|
94
|
-
|
|
95
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
96
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
97
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
98
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
99
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
100
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
101
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
102
|
-
***************************************************************************** */};function De(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Rx(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Ba=function(){return Ba=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ba.apply(this,arguments)};function Ta(t,e,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(t,e||[])).next())})}function Fa(t,e){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=e.call(t,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 QP(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >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 tN(t){var e=Xt(x.nodes(t,{match:function(i){return t.children[0]===i},mode:"highest"}),1)[0];if(e==null)return!1;var n=e[0];if(!dt.isElement(n)||n.type==="paragraph"||tt.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!at.isText(o[0])&&(I.setNodes(t,{type:"paragraph"}),!0)}var Qat={renderElems:[oit],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[Jat],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(o){tN(r)||e(o)},r.deleteForward=function(o){tN(r)||n(o)},r}},tut=/"/g,eut=yt("".replace),wp=function(t,e,n,r){var o=Fe(Gr(t)),i="<"+e;return n!==""&&(i+=" "+n+'="'+eut(Fe(r),tut,""")+'"'),i+">"+o+"</"+e+">"},Ep=function(t){return Te(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function Mx(t,e){var n=e,r=t,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 ms(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}fn({target:"String",proto:!0,forced:Ep("bold")},{bold:function(){return wp(this,"b","","")}}),fn({target:"String",proto:!0,forced:Ep("italics")},{italics:function(){return wp(this,"i","","")}}),fn({target:"String",proto:!0,forced:Ep("sub")},{sub:function(){return wp(this,"sub","","")}}),fn({target:"String",proto:!0,forced:Ep("sup")},{sup:function(){return wp(this,"sup","","")}});var eN={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},Vx=ix("span").classList,nN=Vx&&Vx.constructor&&Vx.constructor.prototype,nut=nN===Object.prototype?void 0:nN,rN=function(t,e){var n=[][t];return!!n&&Te(function(){n.call(null,e||function(){throw 1},1)})},rut=hm.forEach,zx=rN("forEach")?[].forEach:function(t){return rut(this,t,arguments.length>1?arguments[1]:void 0)},oN=function(t){if(t&&t.forEach!==zx)try{vc(t,"forEach",zx)}catch{t.forEach=zx}};for(var Hx in eN)eN[Hx]&&oN(kt[Hx]&&kt[Hx].prototype);function iN(t,e){return t.selection==null||!!Xt(x.nodes(t,{match:function(n){return O.getNodeType(n)==="pre"||!!x.isVoid(t,n)},universal:!0}),1)[0]}function out(t,e){Object.keys(e).forEach(function(n){n!=="text"&&x.removeMark(t,n)})}oN(nut),fn({target:"Object",stat:!0,forced:Te(function(){bc(1)})},{keys:function(t){return bc(lp(t))}});var ys=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var n=this.mark,r=x.marks(e);return r?r[n]:!!Xt(x.nodes(e,{match:function(o){return o[n]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return iN(e,this.mark)},t.prototype.exec=function(e,n){var r=this.mark,o=this.marksNeedToRemove;n?e.removeMark(r):(e.addMark(r,!0),o&&o.forEach(function(i){return e.removeMark(i)}))},t}(),iut='<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>',aut='<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>',uut='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',sut='<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>',lut='<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>',aN='<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>',uN='<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>',cut='<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>',fut='<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>',dut='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',put='<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>',hut='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',gut='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',vut='<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>',mut='<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>',yut='<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>',but='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',wut='<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>',Eut='<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>',Cut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="bold",n.title=et("textStyle.bold"),n.iconSvg=iut,n.hotkey="mod+b",n}return De(e,t),e}(ys),xut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="code",n.title=et("textStyle.code"),n.iconSvg=lut,n.hotkey="mod+e",n}return De(e,t),e}(ys),Sut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="italic",n.title=et("textStyle.italic"),n.iconSvg=uut,n.hotkey="mod+i",n}return De(e,t),e}(ys),Dut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="through",n.title=et("textStyle.through"),n.iconSvg=sut,n.hotkey="mod+shift+x",n}return De(e,t),e}(ys),Aut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="underline",n.title=et("textStyle.underline"),n.iconSvg=aut,n.hotkey="mod+u",n}return De(e,t),e}(ys),_ut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=et("textStyle.sub"),n.iconSvg=Eut,n.hotkey="",n}return De(e,t),e}(ys),Out=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=et("textStyle.sup"),n.iconSvg=wut,n.hotkey="",n}return De(e,t),e}(ys),kut=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return iN(e)},t.prototype.exec=function(e,n){var r,o,i=x.nodes(e,{match:function(s){return at.isText(s)},universal:!0});try{for(var a=QP(i),u=a.next();!u.done;u=a.next())out(e,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}}},t}(),But={renderStyle:function(t,e){var n=t,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=e;return r&&(c=wt("strong",null,c)),a&&(c=wt("code",null,c)),o&&(c=wt("em",null,c)),i&&(c=wt("u",null,c)),u&&(c=wt("s",null,c)),s&&(c=wt("sub",null,c)),l&&(c=wt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Cut}},{key:"underline",factory:function(){return new Aut}},{key:"italic",factory:function(){return new Sut}},{key:"through",factory:function(){return new Dut}},{key:"code",factory:function(){return new xut}},{key:"sub",factory:function(){return new _ut}},{key:"sup",factory:function(){return new Out}},{key:"clearStyle",factory:function(){return new kut}}],styleToHtml:function(t,e){if(!at.isText(t))return e;if(Lx(e))return Mx(t,e);var n=T(e);if(xc(n)==="br")return Mx(t,"<br>");var r=n.html();return r=Mx(t,r),n.html(r),Cc(n)},parseStyleHtml:function(t,e,n){var r=T(t);if(!at.isText(e))return e;var o=e;return ms(r,"b,strong")&&(o.bold=!0),ms(r,"i,em")&&(o.italic=!0),ms(r,"u")&&(o.underline=!0),ms(r,"s,strike")&&(o.through=!0),ms(r,"sub")&&(o.sub=!0),ms(r,"sup")&&(o.sup=!0),ms(r,"code")&&(o.code=!0),o}};function Cp(t){return function(e,n,r){return wt("h"+t,null,n)}}var Tut={type:"header1",renderElem:Cp(1)},Fut={type:"header2",renderElem:Cp(2)},Put={type:"header3",renderElem:Cp(3)},Nut={type:"header4",renderElem:Cp(4)},jut={type:"header5",renderElem:Cp(5)},Iut=cm.PROPER,Ux=RegExp.prototype,sN=Ux.toString,Lut=yt(TP),Rut=Te(function(){return sN.call({source:"a",flags:"b"})!="/a/b"}),Mut=Iut&&sN.name!="toString";(Rut||Mut)&&dp(RegExp.prototype,"toString",function(){var t=Ar(this),e=Fe(t.source),n=t.flags;return"/"+e+"/"+Fe(n===void 0&&rP(Ux,t)&&!("flags"in Ux)?Lut(t):n)},{unsafe:!0});var Wx,Vut=kt.TypeError,lN=function(t){if(KP(t))throw Vut("The method doesn't accept regular expressions");return t},zut=Dr("match"),cN=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[zut]=!1,"/./"[t](e)}catch{}}return!1},Hut=ax.f,fN=yt("".startsWith),Uut=yt("".slice),Wut=Math.min,dN=cN("startsWith");function pN(t){var e=Xt(x.nodes(t,{match:function(o){return O.getNodeType(o).startsWith("header")},universal:!0}),1),n=e[0];if(n==null)return"paragraph";var r=Xt(n,1)[0];return O.getNodeType(r)}function hN(t){return t.selection==null||!Xt(x.nodes(t,{match:function(e){var n=O.getNodeType(e);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function gN(t,e){e&&I.setNodes(t,{type:e})}fn({target:"String",proto:!0,forced:!(!dN&&(Wx=Hut(String.prototype,"startsWith"),Wx&&!Wx.writable)||dN)},{startsWith:function(t){var e=Fe(Gr(this));lN(t);var n=hp(Wut(arguments.length>1?arguments[1]:void 0,e.length)),r=Fe(t);return fN?fN(e,r,n):Uut(e,n,n+r.length)===r}});var Gut=function(){function t(){this.title=et("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 t.prototype.getOptions=function(e){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:et("header.text")}],r=this.getValue(e).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return pN(e)},t.prototype.isDisabled=function(e){return hN(e)},t.prototype.exec=function(e,n){gN(e,n.toString())},t}(),xp=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return pN(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return hN(e)},t.prototype.exec=function(e,n){var r=this.type;gN(e,n===r?"paragraph":r)},t}(),qut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return De(e,t),e}(xp),$ut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return De(e,t),e}(xp),Kut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return De(e,t),e}(xp),Yut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return De(e,t),e}(xp),Xut=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return De(e,t),e}(xp),Zut={key:"headerSelect",factory:function(){return new Gut}},Jut={key:"header1",factory:function(){return new qut}},Qut={key:"header2",factory:function(){return new $ut}},tst={key:"header3",factory:function(){return new Kut}},est={key:"header4",factory:function(){return new Yut}},nst={key:"header5",factory:function(){return new Xut}};function Sp(t){return function(e,n){return"<h"+t+">"+n+"</h"+t+">"}}function Dp(t){return function(e,n,r){var o=T(e);return(n=n.filter(function(i){return!!at.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var rst={renderElems:[Tut,Fut,Put,Nut,jut],elemsToHtml:[{type:"header1",elemToHtml:Sp(1)},{type:"header2",elemToHtml:Sp(2)},{type:"header3",elemToHtml:Sp(3)},{type:"header4",elemToHtml:Sp(4)},{type:"header5",elemToHtml:Sp(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Dp(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Dp(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Dp(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Dp(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Dp(5)}],menus:[Zut,Jut,Qut,tst,est,nst],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var n=t;return n.insertBreak=function(){var r=Xt(x.nodes(n,{match:function(o){return O.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&O.isSelectionAtLineEnd(t,r[1])?I.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},n}},Sc=Object.assign,vN=Object.defineProperty,ost=yt([].concat),mN=!Sc||Te(function(){if(mo&&Sc({b:1},Sc(vN({},"a",{enumerable:!0,get:function(){vN(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),Sc({},t)[n]!=7||bc(Sc({},e)).join("")!=r})?function(t,e){for(var n=lp(t),r=arguments.length,o=1,i=SP.f,a=eP.f;r>o;)for(var u,s=am(arguments[o++]),l=i?ost(bc(s),i(s)):bc(s),c=l.length,f=0;c>f;)u=l[f++],mo&&!Me(a,s,u)||(n[u]=s[u]);return n}:Sc;function bs(t,e){t.data==null&&(t.data={});var n=t.data;n.style==null&&(n.style={}),Object.assign(n.style,e)}fn({target:"Object",stat:!0,forced:Object.assign!==mN},{assign:mN});var ist={selector:"font",preParseHtml:function(t){var e=T(t);if(xc(e)!=="font")return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},yN=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){var n=this.mark,r=x.marks(e);return r&&r[n]?r[n]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!Xt(x.nodes(e,{match:function(n){return O.getNodeType(n)==="pre"||!!x.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var n=this.mark;if(this.$content==null){var r=T('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),e.selection!=null)){var f=T(c).attr("data-value");f==="0"?x.removeMark(e,n):x.addMark(e,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(l){var c=T('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=T('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";n==="color"&&(u=et("color.default")),n==="bgColor"&&(u=et("color.clear"));var s=T(`
|
|
103
|
-
<li data-value="0" class="clear">
|
|
104
|
-
<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>
|
|
105
|
-
`+u+`
|
|
106
|
-
</li>
|
|
107
|
-
`);return o.prepend(s),o[0]},t}(),ast=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("color.color"),n.iconSvg=cut,n.mark="color",n}return De(e,t),e}(yN),ust=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("color.bgColor"),n.iconSvg=fut,n.mark="bgColor",n}return De(e,t),e}(yN),bN=["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)"],sst={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&bs(i,{color:r}),o&&bs(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!at.isText(t))return e;var n,r=t,o=r.color,i=r.bgColor;return o||i?((Lx(e)||xc(n=T(e))!=="span")&&(n=T("<span>"+e+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),Cc(n)):e},preParseHtml:[ist],parseStyleHtml:function(t,e,n){var r=T(t);if(!at.isText(e))return e;var o=e,i=yo(r,"color");i&&(o.color=i);var a=yo(r,"background-color");return a||(a=yo(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new ast},config:{colors:bN}},{key:"bgColor",factory:function(){return new ust},config:{colors:bN}}]},lst=/^(?:\w+:)?\/\/(\S+)$/,cst=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,fst=/^[^\s\.]+\.\S{2,}$/,dst=EP.includes;function bm(t){return t===void 0&&(t="r"),t+"-"+xO()}function Gx(t){return t.replace(/</g,"<").replace(/>/g,">")}function wN(t,e,n,r){return Ta(this,void 0,void 0,function(){var o,i;return Fa(this,function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return e.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function EN(t,e,n){return Ta(this,void 0,void 0,function(){var r;return Fa(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function qx(t){return t.selection==null||!!O.getSelectedElems(t).some(function(e){var n=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(n)||void 0})}function $x(t,e){return{type:"link",url:Gx(t),children:e?[{text:e}]:[]}}function CN(t,e,n){return Ta(this,void 0,void 0,function(){var r,o,i;return Fa(this,function(a){switch(a.label){case 0:return n?(e||(e=n),t.restoreSelection(),qx(t)?[2]:[4,wN("insertLink",t,e,n)]):[2];case 1:return a.sent()?[4,EN("insertLink",t,n)]:[2];case 2:return r=a.sent(),(o=t.selection)==null||(z.isCollapsed(o)?(t.insertText(" "),i=$x(r,e),I.insertNodes(t,i),t.insertFragment([{text:" "}])):x.string(t,o)!==e?(t.deleteFragment(),i=$x(r,e),I.insertNodes(t,i)):(i=$x(r),I.wrapNodes(t,i,{split:!0}),I.collapse(t,{edge:"end"}))),[2]}})})}fn({target:"Array",proto:!0},{includes:function(t){return dst(this,t,arguments.length>1?arguments[1]:void 0)}}),qP("includes");var pst={type:"link",renderElem:function(t,e,n){var r=t,o=r.url,i=r.target;return wt("a",{href:o,target:i===void 0?"_blank":i},e)}},hst={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=T(t);return(e=e.filter(function(o){return!!at.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:e}}};function Kx(){return bm("w-e-insert-link")}var gst=function(){function t(){this.title=et("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=Kx(),this.urlInputId=Kx(),this.buttonId=Kx()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return qx(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=e.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,u=Xt(xr(et("link.text"),o),2),s=u[0],l=T(u[1]),c=Xt(xr(et("link.url"),i),2),f=c[0],p=T(c[1]),d=Xt(fc(a,et("common.ok")),1)[0];if(this.$content==null){var y=T("<div></div>");y.on("click","#"+a,function(m){m.preventDefault();var h=y.find("#"+o).val(),w=y.find("#"+i).val();CN(e,h,w),e.hidePanelOrModal()}),this.$content=y}var g=this.$content;if(g.empty(),g.append(s),g.append(f),g.append(d),n==null||z.isCollapsed(n))l.val("");else{var v=x.string(e,n);l.val(v)}return p.val(""),setTimeout(function(){l.focus()}),g[0]},t}();function xN(){return bm("w-e-update-link")}var vst=function(){function t(){this.title=et("link.edit"),this.iconSvg=aN,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=xN(),this.buttonId=xN()}return t.prototype.getSelectedLinkElem=function(e){var n=O.getSelectedNodeByType(e,"link");return n??null},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.getModalPositionNode=function(e){return O.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var n=this.urlInputId,r=this.buttonId,o=Xt(xr(et("link.url"),n),2),i=o[0],a=T(o[1]),u=Xt(fc(r,et("common.ok")),1)[0];if(this.$content==null){var s=T("<div></div>");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var p=O.getSelectedNodeByType(e,"link"),d=p?tt.string(p):"",y=s.find("#"+n).val();(function(g,v,m){Ta(this,void 0,void 0,function(){var h,w;return Fa(this,function(E){switch(E.label){case 0:return m?[4,wN("editLink",g,v,m)]:[2];case 1:return E.sent()?[4,EN("editLink",g,m)]:[2];case 2:return h=E.sent(),w={url:Gx(h)},I.setNodes(g,w,{match:function(C){return O.checkNodeType(C,"link")}}),[2]}})})})(e,d,y),e.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(e);return a.val(c),setTimeout(function(){a.focus()}),l[0]},t}(),mst=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||O.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||I.unwrapNodes(e,{match:function(r){return O.checkNodeType(r,"link")}})},t}(),yst=function(){function t(){this.title=et("link.view"),this.iconSvg=uN,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var n=O.getSelectedNodeByType(e,"link");return n??null},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},t}(),SN={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},bst={renderElems:[pst],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+e+"</a>"}}],parseElemsHtml:[hst],menus:[{key:"insertLink",factory:function(){return new gst},config:SN},{key:"editLink",factory:function(){return new vst},config:SN},{key:"unLink",factory:function(){return new mst}},{key:"viewLink",factory:function(){return new yst}}],editorPlugin:function(t){var e=t.isInline,n=t.insertData,r=t.normalizeNode;t.insertNode,t.insertText;var o=t;return o.isInline=function(i){return i.type==="link"||e(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(lst);if(!c)return!1;var f=c[1];return!(!f||!cst.test(f)&&!fst.test(f))}(a)){if(!qx(o)){var u=o.selection;if(u!=null){var s=x.string(o,u);CN(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=Xt(i,2),u=a[0],s=a[1];return O.getNodeType(u)!=="link"?r([u,s]):tt.string(u)===""?I.removeNodes(o,{at:s}):r([u,s])},o}},wst=yt(1 .valueOf),Est=kt.RangeError,Cst=kt.RangeError,DN=kt.String,AN=Math.floor,Yx=yt(function(t){var e=Fe(Gr(this)),n="",r=yc(t);if(r<0||r==1/0)throw Est("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}),_N=yt("".slice),Ap=yt(1 .toFixed),Dc=function(t,e,n){return e===0?n:e%2==1?Dc(t,e-1,n*t):Dc(t*t,e/2,n)},Ac=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=AN(o/1e7)},Xx=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=AN(r/e),r=r%e*1e7},ON=function(t){for(var e=6,n="";--e>=0;)if(n!==""||e===0||t[e]!==0){var r=DN(t[e]);n=n===""?r:n+Yx("0",7-r.length)+r}return n};function kN(t,e){return"w-e-image-container-"+O.findKey(t,e).id}fn({target:"Number",proto:!0,forced:Te(function(){return Ap(8e-5,3)!=="0.000"||Ap(.9,0)!=="1"||Ap(1.255,2)!=="1.25"||Ap(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Te(function(){Ap({})})},{toFixed:function(t){var e,n,r,o,i=wst(this),a=yc(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Cst("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return DN(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(e=function(c){for(var f=0,p=c;p>=4096;)f+=12,p/=4096;for(;p>=2;)f+=1,p/=2;return f}(i*Dc(2,69,1))-69)<0?i*Dc(2,-e,1):i/Dc(2,e,1),n*=4503599627370496,(e=52-e)>0){for(Ac(u,0,n),r=a;r>=7;)Ac(u,1e7,0),r-=7;for(Ac(u,Dc(10,r,1),0),r=e-1;r>=23;)Xx(u,1<<23),r-=23;Xx(u,1<<r),Ac(u,1,1),Xx(u,2),l=ON(u)}else Ac(u,0,n),Ac(u,1<<-e,0),l=ON(u)+Yx("0",a);return a>0?s+((o=l.length)<=a?"0."+Yx("0",a-o)+l:_N(l,0,o-a)+"."+_N(l,o-a)):s+l}});var xst={type:"image",renderElem:function(t,e,n){var r=t,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,p=f===void 0?"":f,d=c.height,y=d===void 0?"":d,g=O.isNodeSelected(n,t),v={};p&&(v.width="100%"),y&&(v.height="100%");var m=wt("img",{style:v,src:o,alt:a,"data-href":s}),h=n.isDisabled();return g&&!h?function(w,E,C,D){var S=T("body"),A=kN(w,E),k=D.width,R=D.height,V=0,L=0,W=0,H=!1,U=null;function $(ct){U=function(){var N=T("#"+A);if(N.length===0)throw new Error("Cannot find image container elem");return N}(),V=ct;var B=U.find("img");if(B.length===0)throw new Error("Cannot find image elem");L=B.width(),W=B.height(),S.on("mousemove",J),S.on("mouseup",st);var _=O.getHoverbar(w);_&&_.hideAndClean()}var J=$u(function(ct){ct.preventDefault();var B=ct.clientX,_=L+(H?V-B:B-V),N=W*(_/L);U!=null&&(_<=15||N<=15||(U.css("width",_+"px"),U.css("height",N+"px")))},100);function st(ct){if(S.off("mousemove",J),U!=null){var B=U.width().toFixed(2),_=U.height().toFixed(2),N={style:Ba(Ba({},E.style),{width:B+"px",height:_+"px"})};I.setNodes(w,N,{at:O.findPath(w,E)}),S.off("mouseup",st)}}var lt={};return k&&(lt.width=k),R&&(lt.height=R),wt("div",{id:A,style:lt,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(ct){var B=T(ct.target);B.hasClass("w-e-image-dragger")&&(ct.preventDefault(),(B.hasClass("left-top")||B.hasClass("left-bottom"))&&(H=!0),$(ct.clientX))}}},C,wt("div",{className:"w-e-image-dragger left-top"}),wt("div",{className:"w-e-image-dragger right-top"}),wt("div",{className:"w-e-image-dragger left-bottom"}),wt("div",{className:"w-e-image-dragger right-bottom"}))}(n,t,m,{width:p,height:y}):function(w,E,C,D){var S=D.width,A=D.height,k={};return S&&(k.width=S),A&&(k.height=A),wt("div",{id:kN(w,E),style:k,className:"w-e-image-container"},C)}(n,t,m,{width:p,height:y})}},Sst={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=T(t),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:yo(r,"width"),height:yo(r,"height")},children:[{text:""}]}}};function BN(t,e,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),Ta(this,void 0,void 0,function(){var i,a;return Fa(this,function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return e.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function TN(t,e,n){return Ta(this,void 0,void 0,function(){var r;return Fa(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function ws(t,e,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),Ta(this,void 0,void 0,function(){var o,i,a;return Fa(this,function(u){switch(u.label){case 0:return[4,BN("insertImage",t,e,n,r)];case 1:return u.sent()?[4,TN("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:Gx(o),href:r,alt:n,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),O.getSelectedNodeByType(t,"image")&&t.move(1),wm(t)||(I.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function wm(t){var e=t.selection;return e==null||!z.isCollapsed(e)||!!Xt(x.nodes(t,{match:function(n){var r=O.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!x.isVoid(t,n)},universal:!0}),1)[0]}function Em(){return bm("w-e-insert-image")}var Dst=function(){function t(){this.title=et("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=Em(),this.altInputId=Em(),this.hrefInputId=Em(),this.buttonId=Em()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return wm(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=Xt(xr(et("image.src"),o),2),l=s[0],c=T(s[1]),f=Xt(xr(et("image.desc"),i),2),p=f[0],d=T(f[1]),y=Xt(xr(et("image.link"),a),2),g=y[0],v=T(y[1]),m=Xt(fc(u,et("common.ok")),1)[0];if(this.$content==null){var h=T("<div></div>");h.on("click","#"+u,function(E){E.preventDefault();var C=h.find("#"+o).val().trim(),D=h.find("#"+i).val().trim(),S=h.find("#"+a).val().trim();n.insertImage(e,C,D,S),e.hidePanelOrModal()}),this.$content=h}var w=this.$content;return w.empty(),w.append(l),w.append(p),w.append(g),w.append(m),c.val(""),d.val(""),v.val(""),setTimeout(function(){c.focus()}),w[0]},t.prototype.insertImage=function(e,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(e.restoreSelection(),this.isDisabled(e)||ws(e,n,r,o))},t}(),Ast=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||O.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||I.removeNodes(e,{match:function(r){return O.checkNodeType(r,"image")}})},t}();function Cm(){return bm("w-e-edit-image")}var _st=function(){function t(){this.title=et("image.edit"),this.iconSvg=aN,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Cm(),this.altInputId=Cm(),this.hrefInputId=Cm(),this.buttonId=Cm()}return t.prototype.getValue=function(e){return""},t.prototype.getImageNode=function(e){return O.getSelectedNodeByType(e,"image")},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!z.isCollapsed(n)||O.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=Xt(xr(et("image.src"),o),2),c=l[0],f=T(l[1]),p=Xt(xr(et("image.desc"),i),2),d=p[0],y=T(p[1]),g=Xt(xr(et("image.link"),a),2),v=g[0],m=T(g[1]),h=Xt(fc(u,et("common.ok")),1)[0];if(this.$content==null){var w=T("<div></div>");w.on("click","#"+u,function(V){V.preventDefault();var L=w.find("#"+o).val(),W=w.find("#"+i).val(),H=w.find("#"+a).val();n.updateImage(e,L,W,H),e.hidePanelOrModal()}),this.$content=w}var E=this.$content;E.empty(),E.append(c),E.append(d),E.append(v),E.append(h);var C=s,D=C.src,S=C.alt,A=S===void 0?"":S,k=C.href,R=k===void 0?"":k;return f.val(D),y.val(A),m.val(R),setTimeout(function(){f.focus()}),E[0]},t.prototype.updateImage=function(e,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(e.restoreSelection(),this.isDisabled(e)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Ta(this,void 0,void 0,function(){var f,p,d,y,g,v;return Fa(this,function(m){switch(m.label){case 0:return[4,BN("editImage",a,u,s,l)];case 1:return m.sent()?[4,TN("editImage",a,u)]:[2];case 2:return f=m.sent(),(p=O.getSelectedNodeByType(a,"image"))==null||(d=p.style,y={src:f,alt:s,href:l,style:Ba(Ba({},d===void 0?{}:d),c)},I.setNodes(a,y,{match:function(h){return O.checkNodeType(h,"image")}}),g=O.getSelectedNodeByType(a,"image"),(v=a.getMenuConfig("editImage").onUpdatedImage)&&v(g)),[2]}})})}(e,n,r,o,i))},t}(),Ost=function(){function t(){this.title=et("image.viewLink"),this.iconSvg=uN,this.tag="button"}return t.prototype.getValue=function(e){var n=O.getSelectedNodeByType(e,"image");return n&&n.href||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},t}(),Zx=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getSelectedNode=function(e){return O.getSelectedNodeByType(e,"image")},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.getSelectedNode(e);if(r!=null){var o=O.getHoverbar(e);o&&o.hideAndClean();var i=r.style,a={style:Ba(Ba({},i===void 0?{}:i),{width:this.value,height:""})};I.setNodes(e,a,{match:function(u){return O.checkNodeType(u,"image")}})}}},t}(),kst=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return De(e,t),e}(Zx),Bst=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return De(e,t),e}(Zx),Tst=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return De(e,t),e}(Zx),FN={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},Fst={renderElems:[xst],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var n=t,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,p=l.height,d=p===void 0?"":p,y="";return f&&(y+="width: "+f+";"),d&&(y+="height: "+d+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+y+'"/>'}}],parseElemsHtml:[Sst],menus:[{key:"insertImage",factory:function(){return new Dst},config:FN},{key:"deleteImage",factory:function(){return new Ast}},{key:"editImage",factory:function(){return new _st},config:FN},{key:"viewImageLink",factory:function(){return new Ost}},{key:"imageWidth30",factory:function(){return new kst}},{key:"imageWidth50",factory:function(){return new Bst}},{key:"imageWidth100",factory:function(){return new Tst}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(o){return o.type==="image"||e(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},Pst={type:"todo",renderElem:function(t,e,n){var r=!1;n.isDisabled()&&(r=!0);var o=wt("div",{style:{margin:"5px 0"}},wt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},wt("input",{type:"checkbox",checked:t.checked,disabled:r,on:{change:function(i){var a=O.findPath(n,t),u={checked:i.target.checked};I.setNodes(n,u,{at:a})}}})),wt("span",null,e));return o}},Nst=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!O.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(n){if(x.isVoid(e,n)&&x.isBlock(e,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},t.prototype.exec=function(e,n){var r=this.isActive(e);I.setNodes(e,{type:r?"paragraph":"todo"})},t}(),jst={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var r=T(t);(e=e.filter(function(i){return!!at.isText(i)||!!n.isInline(i)})).length===0&&(e=[{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:e}}},Ist={renderElems:[Pst],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=T(t).find("li"),n=T('<div data-w-e-type="todo"></div>'),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[jst],menus:[{key:"todo",factory:function(){return new Nst}}],editorPlugin:function(t){var e=t.deleteBackward,n=t;return n.deleteBackward=function(r){var o=t.selection;if(o&&z.isCollapsed(o)){var i=O.getSelectedNodeByType(t,"todo");if(i&&tt.string(i).length===0)return void I.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(r)},n}},Lst={type:"blockquote",renderElem:function(t,e,n){return wt("blockquote",null,e)}},Rst={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=T(t);return(e=e.filter(function(o){return!!at.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},Mst=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!O.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!Xt(x.nodes(e,{match:function(n){var r=O.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.isActive(e)?"paragraph":"blockquote";I.setNodes(e,{type:r},{mode:"highest"})}},t}(),Vst={key:"blockquote",factory:function(){return new Mst}},zst=yt([].slice),Hst=vx("slice"),Ust=Dr("species"),Jx=kt.Array,Wst=Math.max;fn({target:"Array",proto:!0,forced:!Hst},{slice:function(t,e){var n,r,o,i=hc(this),a=fm(i),u=pp(t,a),s=pp(e===void 0?a:e,a);if(pm(i)&&(n=i.constructor,(gx(n)&&(n===Jx||pm(n.prototype))||qr(n)&&(n=n[Ust])===null)&&(n=void 0),n===Jx||n===void 0))return zst(i,u,s);for(r=new(n===void 0?Jx:n)(Wst(s-u,0)),o=0;u<s;u++,o++)u in i&&YP(r,o,i[u]);return r.length=o,r}});var Gst={renderElems:[Lst],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[Rst],menus:[Vst],editorPlugin:function(t){var e=t.insertBreak,n=t.insertText,r=t;return r.insertBreak=function(){var o=r.selection;if(o==null)return e();var i=Xt(x.nodes(t,{match:function(c){return O.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return e();var a=i[0],u=O.findPath(t,a),s=x.end(t,u);if(Nt.equals(s,o.focus)){var l=tt.string(a);if(l&&l.slice(-1)===`
|
|
108
|
-
`)return t.deleteBackward("character"),void I.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
|
|
109
|
-
`)},r}},qst=function(){function t(){this.title=et("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 t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!Xt(x.nodes(e,{match:function(n){return O.getNodeType(n)==="pre"||!!x.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var n=T('<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=T(a).text();e.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=T("<li>"+i+"</li>");r.append(a)}),r[0]},t}(),$st={menus:[{key:"emotion",factory:function(){return new qst},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Kst={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Yst={selector:"font",preParseHtml:function(t){var e=T(t);if(xc(e)!=="font")return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",Kst[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},Xst=yt("".indexOf);fn({target:"String",proto:!0,forced:!cN("includes")},{includes:function(t){return!!~Xst(Fe(Gr(this)),Fe(lN(t)),arguments.length>1?arguments[1]:void 0)}});var Pa,xm,Sm=function(t){return t&&t.Math==Math&&t},jt=Sm(typeof globalThis=="object"&&globalThis)||Sm(typeof window=="object"&&window)||Sm(typeof self=="object"&&self)||Sm(typeof nm=="object"&&nm)||function(){return this}()||Function("return this")(),Qx=Function.prototype,PN=Qx.apply,Zst=Qx.bind,NN=Qx.call,jN=typeof Reflect=="object"&&Reflect.apply||(Zst?NN.bind(PN):function(){return NN.apply(PN,arguments)}),IN=Function.prototype,tS=IN.bind,eS=IN.call,Jst=tS&&tS.bind(eS),Ve=tS?function(t){return t&&Jst(eS,t)}:function(t){return t&&function(){return eS.apply(t,arguments)}},On=function(t){return typeof t=="function"},_r=function(t){try{return!!t()}catch{return!0}},ar=!_r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),_p=Function.prototype.call,bo=_p.bind?_p.bind(_p):function(){return _p.apply(_p,arguments)},LN={}.propertyIsEnumerable,RN=Object.getOwnPropertyDescriptor,Qst=RN&&!LN.call({1:2},1)?function(t){var e=RN(this,t);return!!e&&e.enumerable}:LN,nS={f:Qst},Es=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},tlt=Ve({}.toString),elt=Ve("".slice),Cs=function(t){return elt(tlt(t),8,-1)},rS=jt.Object,nlt=Ve("".split),MN=_r(function(){return!rS("z").propertyIsEnumerable(0)})?function(t){return Cs(t)=="String"?nlt(t,""):rS(t)}:rS,rlt=jt.TypeError,oS=function(t){if(t==null)throw rlt("Can't call method on "+t);return t},qo=function(t){return MN(oS(t))},Kr=function(t){return typeof t=="object"?t!==null:On(t)},Yr={},VN=function(t){return On(t)?t:void 0},Op=function(t,e){return arguments.length<2?VN(Yr[t])||VN(jt[t]):Yr[t]&&Yr[t][e]||jt[t]&&jt[t][e]},zN=Ve({}.isPrototypeOf),iS=Op("navigator","userAgent")||"",HN=jt.process,UN=jt.Deno,WN=HN&&HN.versions||UN&&UN.version,GN=WN&&WN.v8;GN&&(xm=(Pa=GN.split("."))[0]>0&&Pa[0]<4?1:+(Pa[0]+Pa[1])),!xm&&iS&&(!(Pa=iS.match(/Edge\/(\d+)/))||Pa[1]>=74)&&(Pa=iS.match(/Chrome\/(\d+)/))&&(xm=+Pa[1]);var Dm=xm,$o=!!Object.getOwnPropertySymbols&&!_r(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Dm&&Dm<41}),aS=$o&&!Symbol.sham&&typeof Symbol.iterator=="symbol",olt=jt.Object,_c=aS?function(t){return typeof t=="symbol"}:function(t){var e=Op("Symbol");return On(e)&&zN(e.prototype,olt(t))},ilt=jt.String,alt=jt.TypeError,qN=function(t){if(On(t))return t;throw alt(function(e){try{return ilt(e)}catch{return"Object"}}(t)+" is not a function")},ult=jt.TypeError,slt=Object.defineProperty,Na=jt["__core-js_shared__"]||function(t,e){try{slt(jt,t,{value:e,configurable:!0,writable:!0})}catch{jt[t]=e}return e}("__core-js_shared__",{}),xs=rm(function(t){(t.exports=function(e,n){return Na[e]||(Na[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),llt=jt.Object,kp=function(t){return llt(oS(t))},clt=Ve({}.hasOwnProperty),Zt=Object.hasOwn||function(t,e){return clt(kp(t),e)},flt=0,dlt=Math.random(),plt=Ve(1 .toString),Am=function(t){return"Symbol("+(t===void 0?"":t)+")_"+plt(++flt+dlt,36)},Bp=xs("wks"),Ss=jt.Symbol,$N=Ss&&Ss.for,hlt=aS?Ss:Ss&&Ss.withoutSetter||Am,Or=function(t){if(!Zt(Bp,t)||!$o&&typeof Bp[t]!="string"){var e="Symbol."+t;$o&&Zt(Ss,t)?Bp[t]=Ss[t]:Bp[t]=aS&&$N?$N(e):hlt(e)}return Bp[t]},glt=jt.TypeError,vlt=Or("toPrimitive"),Oc=function(t){var e=function(n,r){if(!Kr(n)||_c(n))return n;var o,i,a=(o=n[vlt])==null?void 0:qN(o);if(a){if(r===void 0&&(r="default"),i=bo(a,n,r),!Kr(i)||_c(i))return i;throw glt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(u,s){var l,c;if(s==="string"&&On(l=u.toString)&&!Kr(c=bo(l,u))||On(l=u.valueOf)&&!Kr(c=bo(l,u))||s!=="string"&&On(l=u.toString)&&!Kr(c=bo(l,u)))return c;throw ult("Can't convert object to primitive value")}(n,r)}(t,"string");return _c(e)?e:e+""},uS=jt.document,mlt=Kr(uS)&&Kr(uS.createElement),KN=function(t){return mlt?uS.createElement(t):{}},YN=!ar&&!_r(function(){return Object.defineProperty(KN("div"),"a",{get:function(){return 7}}).a!=7}),XN=Object.getOwnPropertyDescriptor,sS={f:ar?XN:function(t,e){if(t=qo(t),e=Oc(e),YN)try{return XN(t,e)}catch{}if(Zt(t,e))return Es(!bo(nS.f,t,e),t[e])}},ylt=/#|\.prototype\./,Tp=function(t,e){var n=wlt[blt(t)];return n==Clt||n!=Elt&&(On(e)?_r(e):!!e)},blt=Tp.normalize=function(t){return String(t).replace(ylt,".").toLowerCase()},wlt=Tp.data={},Elt=Tp.NATIVE="N",Clt=Tp.POLYFILL="P",xlt=Tp,ZN=Ve(Ve.bind),JN=function(t,e){return qN(t),e===void 0?t:ZN?ZN(t,e):function(){return t.apply(e,arguments)}},Slt=jt.String,Dlt=jt.TypeError,Ds=function(t){if(Kr(t))return t;throw Dlt(Slt(t)+" is not an object")},Alt=jt.TypeError,QN=Object.defineProperty,As={f:ar?QN:function(t,e,n){if(Ds(t),e=Oc(e),Ds(n),YN)try{return QN(t,e,n)}catch{}if("get"in n||"set"in n)throw Alt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Ko=ar?function(t,e,n){return As.f(t,e,Es(1,n))}:function(t,e,n){return t[e]=n,t},_lt=sS.f,Olt=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return jN(t,this,arguments)};return e.prototype=t.prototype,e},ja=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,y=f?jt:p?jt[c]:(jt[c]||{}).prototype,g=f?Yr:Yr[c]||Ko(Yr,c,{})[c],v=g.prototype;for(o in e)n=!xlt(f?o:c+(p?".":"#")+o,t.forced)&&y&&Zt(y,o),a=g[o],n&&(u=t.noTargetGet?(l=_lt(y,o))&&l.value:y[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?JN(i,jt):t.wrap&&n?Olt(i):d&&On(i)?Ve(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Ko(s,"sham",!0),Ko(g,o,s),d&&(Zt(Yr,r=c+"Prototype")||Ko(Yr,r,{}),Ko(Yr[r],o,i),t.real&&v&&!v[o]&&Ko(v,o,i)))},_m=Array.isArray||function(t){return Cs(t)=="Array"},klt=Math.ceil,Blt=Math.floor,lS=function(t){var e=+t;return e!=e||e===0?0:(e>0?Blt:klt)(e)},Tlt=Math.min,Om=function(t){return(e=t.length)>0?Tlt(lS(e),9007199254740991):0;var e},cS=function(t,e,n){var r=Oc(e);r in t?As.f(t,r,Es(0,n)):t[r]=n},tj={};tj[Or("toStringTag")]="z";var fS=String(tj)==="[object z]",Flt=Or("toStringTag"),Plt=jt.Object,Nlt=Cs(function(){return arguments}())=="Arguments",km=fS?Cs:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Plt(t),Flt))=="string"?n:Nlt?Cs(e):(r=Cs(e))=="Object"&&On(e.callee)?"Arguments":r},jlt=Ve(Function.toString);On(Na.inspectSource)||(Na.inspectSource=function(t){return jlt(t)});var ej=Na.inspectSource,nj=function(){},Ilt=[],rj=Op("Reflect","construct"),dS=/^\s*(?:class|function)\b/,Llt=Ve(dS.exec),Rlt=!dS.exec(nj),Fp=function(t){if(!On(t))return!1;try{return rj(nj,Ilt,t),!0}catch{return!1}},Mlt=!rj||_r(function(){var t;return Fp(Fp.call)||!Fp(Object)||!Fp(function(){t=!0})||t})?function(t){if(!On(t))return!1;switch(km(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Rlt||!!Llt(dS,ej(t))}:Fp,Vlt=Or("species"),oj=jt.Array,ij=function(t,e){return new(function(n){var r;return _m(n)&&(r=n.constructor,(Mlt(r)&&(r===oj||_m(r.prototype))||Kr(r)&&(r=r[Vlt])===null)&&(r=void 0)),r===void 0?oj:r}(t))(e===0?0:e)},zlt=Or("species"),aj=Or("isConcatSpreadable"),uj=jt.TypeError,Hlt=Dm>=51||!_r(function(){var t=[];return t[aj]=!1,t.concat()[0]!==t}),Ult=Dm>=51||!_r(function(){var t=[];return(t.constructor={})[zlt]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),Wlt=function(t){if(!Kr(t))return!1;var e=t[aj];return e!==void 0?!!e:_m(t)};ja({target:"Array",proto:!0,forced:!Hlt||!Ult},{concat:function(t){var e,n,r,o,i,a=kp(this),u=ij(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(Wlt(i=e===-1?a:arguments[e])){if(s+(o=Om(i))>9007199254740991)throw uj("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&cS(u,s,i[n])}else{if(s>=9007199254740991)throw uj("Maximum allowed index exceeded");cS(u,s++,i)}return u.length=s,u}});var Bm,Glt=jt.String,Tm=function(t){if(km(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Glt(t)},qlt=Math.max,$lt=Math.min,pS=function(t,e){var n=lS(t);return n<0?qlt(n+e,0):$lt(n,e)},sj=function(t){return function(e,n,r){var o,i=qo(e),a=Om(i),u=pS(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Klt={includes:sj(!0),indexOf:sj(!1)},Pp={},Ylt=Klt.indexOf,lj=Ve([].push),cj=function(t,e){var n,r=qo(t),o=0,i=[];for(n in r)!Zt(Pp,n)&&Zt(r,n)&&lj(i,n);for(;e.length>o;)Zt(r,n=e[o++])&&(~Ylt(i,n)||lj(i,n));return i},Fm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hS=Object.keys||function(t){return cj(t,Fm)},Xlt=ar?Object.defineProperties:function(t,e){Ds(t);for(var n,r=qo(e),o=hS(e),i=o.length,a=0;i>a;)As.f(t,n=o[a++],r[n]);return t},Zlt=Op("document","documentElement"),fj=xs("keys"),Pm=function(t){return fj[t]||(fj[t]=Am(t))},dj=Pm("IE_PROTO"),gS=function(){},pj=function(t){return"<script>"+t+"<\/script>"},hj=function(t){t.write(pj("")),t.close();var e=t.parentWindow.Object;return t=null,e},Nm=function(){try{Bm=new ActiveXObject("htmlfile")}catch{}var t,e;Nm=typeof document<"u"?document.domain&&Bm?hj(Bm):((e=KN("iframe")).style.display="none",Zlt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(pj("document.F=Object")),t.close(),t.F):hj(Bm);for(var n=Fm.length;n--;)delete Nm.prototype[Fm[n]];return Nm()};Pp[dj]=!0;var jm,Np,Im,_s=Object.create||function(t,e){var n;return t!==null?(gS.prototype=Ds(t),n=new gS,gS.prototype=null,n[dj]=t):n=Nm(),e===void 0?n:Xlt(n,e)},Jlt=Fm.concat("length","prototype"),gj={f:Object.getOwnPropertyNames||function(t){return cj(t,Jlt)}},Qlt=jt.Array,tct=Math.max,vj=gj.f,mj=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yj={f:function(t){return mj&&Cs(t)=="Window"?function(e){try{return vj(e)}catch{return function(r,o,i){for(var a=Om(r),u=pS(void 0,a),s=pS(a,a),l=Qlt(tct(s-u,0)),c=0;u<s;u++,c++)cS(l,c,r[u]);return l.length=c,l}(mj)}}(t):vj(qo(t))}},vS={f:Object.getOwnPropertySymbols},ect=Ve([].slice),kc=function(t,e,n,r){r&&r.enumerable?t[e]=n:Ko(t,e,n)},mS={f:Or},nct=As.f,qe=function(t){var e=Yr.Symbol||(Yr.Symbol={});Zt(e,t)||nct(e,t,{value:mS.f(t)})},rct=fS?{}.toString:function(){return"[object "+km(this)+"]"},oct=As.f,bj=Or("toStringTag"),Lm=function(t,e,n,r){if(t){var o=n?t:t.prototype;Zt(o,bj)||oct(o,bj,{configurable:!0,value:e}),r&&!fS&&Ko(o,"toString",rct)}},wj=jt.WeakMap,ict=On(wj)&&/native code/.test(ej(wj)),yS=jt.TypeError,act=jt.WeakMap;if(ict||Na.state){var Os=Na.state||(Na.state=new act),uct=Ve(Os.get),Ej=Ve(Os.has),sct=Ve(Os.set);jm=function(t,e){if(Ej(Os,t))throw new yS("Object already initialized");return e.facade=t,sct(Os,t,e),e},Np=function(t){return uct(Os,t)||{}},Im=function(t){return Ej(Os,t)}}else{var Bc=Pm("state");Pp[Bc]=!0,jm=function(t,e){if(Zt(t,Bc))throw new yS("Object already initialized");return e.facade=t,Ko(t,Bc,e),e},Np=function(t){return Zt(t,Bc)?t[Bc]:{}},Im=function(t){return Zt(t,Bc)}}var Tc={set:jm,get:Np,has:Im,enforce:function(t){return Im(t)?Np(t):jm(t,{})},getterFor:function(t){return function(e){var n;if(!Kr(e)||(n=Np(e)).type!==t)throw yS("Incompatible receiver, "+t+" required");return n}}},Cj=Ve([].push),Ia=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=kp(s),g=MN(y),v=JN(l,c),m=Om(g),h=0,w=f||ij,E=e?w(s,m):n||a?w(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:Cj(E,p)}else switch(t){case 4:return!1;case 7:Cj(E,p)}return i?-1:r||o?o:E}},Rm=[Ia(0),Ia(1),Ia(2),Ia(3),Ia(4),Ia(5),Ia(6),Ia(7)][0],ur=Pm("hidden"),xj=Or("toPrimitive"),lct=Tc.set,Sj=Tc.getterFor("Symbol"),wo=Object.prototype,La=jt.Symbol,Ra=La&&La.prototype,Dj=jt.TypeError,bS=jt.QObject,jp=Op("JSON","stringify"),Aj=sS.f,Ma=As.f,_j=yj.f,cct=nS.f,Oj=Ve([].push),ki=xs("symbols"),Ip=xs("op-symbols"),wS=xs("string-to-symbol-registry"),ES=xs("symbol-to-string-registry"),fct=xs("wks"),CS=!bS||!bS.prototype||!bS.prototype.findChild,xS=ar&&_r(function(){return _s(Ma({},"a",{get:function(){return Ma(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=Aj(wo,e);r&&delete wo[e],Ma(t,e,n),r&&t!==wo&&Ma(wo,e,r)}:Ma,SS=function(t,e){var n=ki[t]=_s(Ra);return lct(n,{type:"Symbol",tag:t,description:e}),ar||(n.description=e),n},Mm=function(t,e,n){t===wo&&Mm(Ip,e,n),Ds(t);var r=Oc(e);return Ds(n),Zt(ki,r)?(n.enumerable?(Zt(t,ur)&&t[ur][r]&&(t[ur][r]=!1),n=_s(n,{enumerable:Es(0,!1)})):(Zt(t,ur)||Ma(t,ur,Es(1,{})),t[ur][r]=!0),xS(t,r,n)):Ma(t,r,n)},kj=function(t,e){Ds(t);var n=qo(e),r=hS(n).concat(DS(n));return Rm(r,function(o){ar&&!bo(Bj,n,o)||Mm(t,o,n[o])}),t},Bj=function(t){var e=Oc(t),n=bo(cct,this,e);return!(this===wo&&Zt(ki,e)&&!Zt(Ip,e))&&(!(n||!Zt(this,e)||!Zt(ki,e)||Zt(this,ur)&&this[ur][e])||n)},Tj=function(t,e){var n=qo(t),r=Oc(e);if(n!==wo||!Zt(ki,r)||Zt(Ip,r)){var o=Aj(n,r);return!o||!Zt(ki,r)||Zt(n,ur)&&n[ur][r]||(o.enumerable=!0),o}},Fj=function(t){var e=_j(qo(t)),n=[];return Rm(e,function(r){Zt(ki,r)||Zt(Pp,r)||Oj(n,r)}),n},DS=function(t){var e=t===wo,n=_j(e?Ip:qo(t)),r=[];return Rm(n,function(o){!Zt(ki,o)||e&&!Zt(wo,o)||Oj(r,ki[o])}),r};if($o||(Ra=(La=function(){if(zN(Ra,this))throw Dj("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Tm(arguments[0]):void 0,e=Am(t),n=function(r){this===wo&&bo(n,Ip,r),Zt(this,ur)&&Zt(this[ur],e)&&(this[ur][e]=!1),xS(this,e,Es(1,r))};return ar&&CS&&xS(wo,e,{configurable:!0,set:n}),SS(e,t)}).prototype,kc(Ra,"toString",function(){return Sj(this).tag}),kc(La,"withoutSetter",function(t){return SS(Am(t),t)}),nS.f=Bj,As.f=Mm,sS.f=Tj,gj.f=yj.f=Fj,vS.f=DS,mS.f=function(t){return SS(Or(t),t)},ar&&Ma(Ra,"description",{configurable:!0,get:function(){return Sj(this).description}})),ja({global:!0,wrap:!0,forced:!$o,sham:!$o},{Symbol:La}),Rm(hS(fct),function(t){qe(t)}),ja({target:"Symbol",stat:!0,forced:!$o},{for:function(t){var e=Tm(t);if(Zt(wS,e))return wS[e];var n=La(e);return wS[e]=n,ES[n]=e,n},keyFor:function(t){if(!_c(t))throw Dj(t+" is not a symbol");if(Zt(ES,t))return ES[t]},useSetter:function(){CS=!0},useSimple:function(){CS=!1}}),ja({target:"Object",stat:!0,forced:!$o,sham:!ar},{create:function(t,e){return e===void 0?_s(t):kj(_s(t),e)},defineProperty:Mm,defineProperties:kj,getOwnPropertyDescriptor:Tj}),ja({target:"Object",stat:!0,forced:!$o},{getOwnPropertyNames:Fj,getOwnPropertySymbols:DS}),ja({target:"Object",stat:!0,forced:_r(function(){vS.f(1)})},{getOwnPropertySymbols:function(t){return vS.f(kp(t))}}),jp){var dct=!$o||_r(function(){var t=La();return jp([t])!="[null]"||jp({a:t})!="{}"||jp(Object(t))!="{}"});ja({target:"JSON",stat:!0,forced:dct},{stringify:function(t,e,n){var r=ect(arguments),o=e;if((Kr(e)||t!==void 0)&&!_c(t))return _m(e)||(e=function(i,a){if(On(o)&&(a=bo(o,this,i,a)),!_c(a))return a}),r[1]=e,jN(jp,null,r)}})}if(!Ra[xj]){var pct=Ra.valueOf;kc(Ra,xj,function(t){return bo(pct,this)})}Lm(La,"Symbol"),Pp[ur]=!0,qe("asyncIterator"),qe("hasInstance"),qe("isConcatSpreadable"),qe("iterator"),qe("match"),qe("matchAll"),qe("replace"),qe("search"),qe("species"),qe("split"),qe("toPrimitive"),qe("toStringTag"),qe("unscopables"),Lm(jt.JSON,"JSON",!0);var Va,Pj,Nj,hct=Yr.Symbol,ks={},jj=Function.prototype,gct=ar&&Object.getOwnPropertyDescriptor,AS=Zt(jj,"name"),vct={EXISTS:AS,PROPER:AS&&(function(){}).name==="something",CONFIGURABLE:AS&&(!ar||ar&&gct(jj,"name").configurable)},mct=!_r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Ij=Pm("IE_PROTO"),_S=jt.Object,yct=_S.prototype,OS=mct?_S.getPrototypeOf:function(t){var e=kp(t);if(Zt(e,Ij))return e[Ij];var n=e.constructor;return On(n)&&e instanceof n?n.prototype:e instanceof _S?yct:null},kS=Or("iterator"),Lj=!1;[].keys&&("next"in(Nj=[].keys())?(Pj=OS(OS(Nj)))!==Object.prototype&&(Va=Pj):Lj=!0);var bct=Va==null||_r(function(){var t={};return Va[kS].call(t)!==t});Va=bct?{}:_s(Va),On(Va[kS])||kc(Va,kS,function(){return this});var Rj={IteratorPrototype:Va,BUGGY_SAFARI_ITERATORS:Lj},wct=Rj.IteratorPrototype,Ect=function(){return this};jt.String,jt.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{Ve(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch{}}();var Cct=vct.PROPER,Vm=Rj.BUGGY_SAFARI_ITERATORS,BS=Or("iterator"),xct=function(){return this},Mj=function(t,e,n,r,o,i,a){(function(m,h,w,E){var C=h+" Iterator";m.prototype=_s(wct,{next:Es(1,w)}),Lm(m,C,!1,!0),ks[C]=Ect})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!Vm&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[BS]||d["@@iterator"]||o&&d[o],g=!Vm&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=OS(v.call(new t)))!==Object.prototype&&u.next&&(Lm(u,f,!0,!0),ks[f]=xct),Cct&&o=="values"&&y&&y.name!=="values"&&(p=!0,g=function(){return bo(y,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Vm||p||!(l in d))&&kc(d,l,s[l]);else ja({target:e,proto:!0,forced:Vm||p},s);return a&&d[BS]!==g&&kc(d,BS,g,{name:o}),ks[e]=g,s},Sct=Tc.set,Dct=Tc.getterFor("Array Iterator");Mj(Array,"Array",function(t,e){Sct(this,{type:"Array Iterator",target:qo(t),index:0,kind:e})},function(){var t=Dct(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),ks.Arguments=ks.Array;var Vj=Or("toStringTag");for(var TS 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 zj=jt[TS],FS=zj&&zj.prototype;FS&&km(FS)!==Vj&&Ko(FS,Vj,TS),ks[TS]=ks.Array}var Act=hct;qe("asyncDispose"),qe("dispose"),qe("matcher"),qe("metadata"),qe("observable"),qe("patternMatch"),qe("replaceAll");var zm=Act,_ct=Ve("".charAt),Hj=Ve("".charCodeAt),Oct=Ve("".slice),kct=function(t){return function(e,n){var r,o,i=Tm(oS(e)),a=lS(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Hj(i,a))<55296||r>56319||a+1===u||(o=Hj(i,a+1))<56320||o>57343?t?_ct(i,a):r:t?Oct(i,a,a+2):o-56320+(r-55296<<10)+65536}},Bct=kct(!0),Tct=Tc.set,Fct=Tc.getterFor("String Iterator");Mj(String,"String",function(t){Tct(this,{type:"String Iterator",string:Tm(t),index:0})},function(){var t,e=Fct(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Bct(n,r),e.index+=t.length,{value:t,done:!1})});var Pct=mS.f("iterator"),Nct=rm(function(t){function e(n){return typeof zm=="function"&&typeof Pct=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof zm=="function"&&r.constructor===zm&&r!==zm.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),Uj=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Nct),jct=cm.EXISTS,Ict=gc.f,Wj=Function.prototype,Lct=yt(Wj.toString),Gj=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Rct=yt(Gj.exec);mo&&!jct&&Ict(Wj,"name",{configurable:!0,get:function(){try{return Rct(Gj,Lct(this))[1]}catch{return""}}});var qj=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.mark,r=x.marks(e);return r&&r[n]?r[n]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!Xt(x.nodes(e,{match:function(n){return O.getNodeType(n)==="pre"||!!x.isVoid(e,n)},universal:!0}),1)[0])},t.prototype.exec=function(e,n){var r=this.mark;n?e.addMark(r,n):e.removeMark(r)},t}(),Mct=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("fontSize.title"),n.iconSvg=dut,n.mark="fontSize",n}return De(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:et("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(Uj(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},e}(qj),Vct=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("fontFamily.title"),n.iconSvg=put,n.mark="fontFamily",n.selectPanelWidth=150,n}return De(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:et("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(Uj(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},e}(qj),zct={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&bs(i,{fontSize:r}),o&&bs(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!at.isText(t))return e;var n,r=t,o=r.fontSize,i=r.fontFamily;return o||i?((Lx(e)||xc(n=T(e))!=="span")&&(n=T("<span>"+e+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),Cc(n)):e},preParseHtml:[Yst],parseStyleHtml:function(t,e,n){var r=T(t);if(!at.isText(e))return e;var o=e,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=yo(r,"font-size"),s=a.find(function(d){return d.value&&d.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=yo(r,"font-family").replace(/"/g,""),p=c.find(function(d){return d.value&&d.value===f})||c.includes(f);return f&&p&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new Mct},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 Vct},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Hct={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=T(t),n=yo(e,"padding-left");return/\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}},$j=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var n=Xt(x.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":Xt(r,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Xt(x.nodes(e,{match:function(r){var o=O.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t}(),Uct=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("indent.decrease"),n.iconSvg=hut,n}return De(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},e.prototype.exec=function(n,r){I.setNodes(n,{indent:null},{match:function(o){return dt.isElement(o)}})},e}($j),Wct=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("indent.increase"),n.iconSvg=gut,n}return De(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},e.prototype.exec=function(n,r){I.setNodes(n,{indent:"2em"},{match:function(o){return dt.isElement(o)},mode:"highest"})},e}($j),Gct={renderStyle:function(t,e){if(!dt.isElement(t))return e;var n=t.indent,r=e;return n&&bs(r,{textIndent:n}),r},styleToHtml:function(t,e){if(!dt.isElement(t))return e;var n=t.indent;if(!n)return e;var r=T(e);return r.css("text-indent",n),Cc(r)},preParseHtml:[Hct],parseStyleHtml:function(t,e,n){var r=T(t);if(!dt.isElement(e))return e;var o=e,i=yo(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Wct}},{key:"delIndent",factory:function(){return new Uct}}]},Hm=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Xt(x.nodes(e,{match:function(r){var o=O.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(n){if(x.isVoid(e,n)&&x.isBlock(e,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},t}(),qct=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("justify.left"),n.iconSvg=vut,n}return De(e,t),e.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"left"},{match:function(o){return dt.isElement(o)&&!n.isInline(o)}})},e}(Hm),$ct=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("justify.right"),n.iconSvg=mut,n}return De(e,t),e.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"right"},{match:function(o){return dt.isElement(o)&&!n.isInline(o)}})},e}(Hm),Kct=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("justify.center"),n.iconSvg=yut,n}return De(e,t),e.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"center"},{match:function(o){return dt.isElement(o)&&!n.isInline(o)}})},e}(Hm),Yct=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=et("justify.justify"),n.iconSvg=but,n}return De(e,t),e.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"justify"},{match:function(o){return dt.isElement(o)&&!n.isInline(o)}})},e}(Hm),Xct={renderStyle:function(t,e){if(!dt.isElement(t))return e;var n=t.textAlign,r=e;return n&&bs(r,{textAlign:n}),r},styleToHtml:function(t,e){if(!dt.isElement(t))return e;var n=t.textAlign;if(!n)return e;var r=T(e);return r.css("text-align",n),Cc(r)},parseStyleHtml:function(t,e,n){var r=T(t);if(!dt.isElement(e))return e;var o=e,i=yo(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new qct}},{key:"justifyRight",factory:function(){return new $ct}},{key:"justifyCenter",factory:function(){return new Kct}},{key:"justifyJustify",factory:function(){return new Yct}}]},Zct=function(){function t(){this.title=et("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 t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:et("lineHeight.default"),value:""}),o.forEach(function(a){n.push({text:a,value:a})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.getMatchNode=function(e){var n=Xt(x.nodes(e,{match:function(r){var o=O.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getMatchNode(e);return n==null?"":dt.isElement(n)&&n.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,n){I.setNodes(e,{lineHeight:n.toString()},{mode:"highest"})},t}(),Jct={renderStyle:function(t,e){if(!dt.isElement(t))return e;var n=t.lineHeight,r=e;return n&&bs(r,{lineHeight:n}),r},styleToHtml:function(t,e){if(!dt.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var r=T(e);return r.css("line-height",n),Cc(r)},parseStyleHtml:function(t,e,n){var r=T(t);if(!dt.isElement(e))return e;var o=e,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=yo(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new Zct},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Qct=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.redo=="function"&&e.redo()},t}(),tft=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.undo=="function"&&e.undo()},t}(),eft={menus:[{key:"redo",factory:function(){return new Qct}},{key:"undo",factory:function(){return new tft}}]},nft={type:"divider",renderElem:function(t,e,n){return Rl("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:O.isNodeSelected(n,t)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[Rl("hr")])}},rft=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var r=O.getNodeType(n);return r==="table"||r==="pre"||void 0})},t.prototype.exec=function(e,n){I.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),oft={renderElems:[nft],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new rft}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="divider"||e(o)},r.normalizeNode=function(o){var i=Xt(o,2),a=i[0],u=i[1];if(O.getNodeType(a)!=="divider")return n([a,u]);O.isLastNode(r,a)&&I.insertNodes(r,O.genEmptyParagraph(),{at:[u[0]+1]})},r}},ift=hm.map;fn({target:"Array",proto:!0,forced:!vx("map")},{map:function(t){return ift(this,t,arguments.length>1?arguments[1]:void 0)}});var aft=yt([].join),uft=am!=Object,sft=rN("join",",");fn({target:"Array",proto:!0,forced:uft||!sft},{join:function(t){return aft(hc(this),t===void 0?",":t)}});var lft=function(){function t(){this.title=et("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 t.prototype.getSelectCodeElem=function(e){var n=O.getSelectedNodeByType(e,"code");if(n==null)return null;var r=O.getParentNode(e,n);return r==null||O.getNodeType(r)!=="pre"?null:n},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);return n==null?"":n.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var n=O.getSelectedElems(e);return!!n.some(function(r){return e.isVoid(r)})||!n.some(function(r){var o=O.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,n){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,n.toString())},t.prototype.changeToPlainText=function(e){var n=this.getSelectCodeElem(e);if(n!=null){var r=tt.string(n);I.removeNodes(e,{mode:"highest"});var o=r.split(`
|
|
110
|
-
`).map(function(i){return{type:"paragraph",children:[{text:i}]}});I.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,n){var r,o,i=[],a=x.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=QP(a),s=u.next();!s.done;s=u.next()){var l=Xt(s.value,1)[0];l&&i.push(tt.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}I.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
|
|
111
|
-
`)}]}]};I.insertNodes(e,c,{mode:"highest"})},t}(),cft={key:"codeBlock",factory:function(){return new lft}};fn({target:"String",proto:!0,forced:Ep("anchor")},{anchor:function(t){return wp(this,"a","name",t)}}),_x("match",function(t,e,n){return[function(r){var o=Gr(this),i=r==null?void 0:um(r,t);return i?Me(i,r,o):new RegExp(r)[t](Fe(o))},function(r){var o=Ar(this),i=Fe(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return yp(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=yp(o,i))!==null;){var f=Fe(s[0]);l[c]=f,f===""&&(o.lastIndex=Ox(i,hp(o.lastIndex),u)),c++}return c===0?null:l}]});var fft={type:"pre",renderElem:function(t,e,n){return wt("pre",null,e)}},dft={type:"code",renderElem:function(t,e,n){return wt("code",null,e)}},pft={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=T(t);return(e=e.filter(function(o){return O.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return O.getNodeType(o)==="code"})}}},hft={menus:[cft],editorPlugin:function(t){var e=t.insertBreak,n=t.normalizeNode,r=t.insertData;t.insertNode;var o=t;return o.insertBreak=function(){var i=O.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var p=tt.string(l),d=f.anchor.offset,y=p.slice(0,d).split(`
|
|
112
|
-
`),g=y.length;return g===0?"":y[g-1]}(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
|
|
113
|
-
`+s)}}o.insertText(`
|
|
114
|
-
`)}else e()},o.normalizeNode=function(i){var a=Xt(i,2),u=a[0],s=a[1],l=O.getNodeType(u);return l==="code"&&s.length<=1&&I.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(O.isLastNode(o,u)&&I.insertNodes(o,O.genEmptyParagraph(),{at:[s[0]+1]}),O.getNodeType(u.children[0])!=="code"&&(I.unwrapNodes(o),I.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([u,s])},o.insertData=function(i){if(O.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");x.insertText(o,a)}else r(i)},o},renderElems:[fft,dft],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return"<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=T(t);if(xc(e)!=="code")return t;var n=e.find("xmp");if(n.length===0)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return{type:"code",language:"",children:[{text:T(t)[0].textContent||""}]}}},pft]},gft=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return e.isFullScreen},t.prototype.isDisabled=function(e){return!1},t.prototype.exec=function(e,n){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),vft={menus:[{key:"fullScreen",factory:function(){return new gft}}]},mft=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!!z.isExpanded(n)},t.prototype.exec=function(e,n){var r=e.selection;if(r!=null){var o=[r.anchor.path[0]];I.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(x.start(e,o))}},t}(),yft=[But,sst,zct,Gct,Xct,Jct,Fst,oft,$st,bst,hft,Gst,rst,Qat,Ist,eft,vft,{menus:[{key:"enter",factory:function(){return new mft}}]}];ir("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),ir("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Kj=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function PS(t){var e={exports:{}};return t(e,e.exports),e.exports}var za,Um,Wm=function(t){return t&&t.Math==Math&&t},Et=Wm(typeof globalThis=="object"&&globalThis)||Wm(typeof window=="object"&&window)||Wm(typeof self=="object"&&self)||Wm(typeof Kj=="object"&&Kj)||function(){return this}()||Function("return this")(),Yj=Function.prototype,NS=Yj.bind,jS=Yj.call,bft=NS&&NS.bind(jS),Rt=NS?function(t){return t&&bft(jS,t)}:function(t){return t&&function(){return jS.apply(t,arguments)}},Ne=function(t){try{return!!t()}catch{return!0}},wft=Rt({}.toString),Eft=Rt("".slice),Bi=function(t){return Eft(wft(t),8,-1)},IS=Et.Object,Cft=Rt("".split),Xj=Ne(function(){return!IS("z").propertyIsEnumerable(0)})?function(t){return Bi(t)=="String"?Cft(t,""):IS(t)}:IS,xft=Et.TypeError,Gm=function(t){if(t==null)throw xft("Can't call method on "+t);return t},Fc=function(t){return Xj(Gm(t))},Sft=Object.defineProperty,LS=function(t,e){try{Sft(Et,t,{value:e,configurable:!0,writable:!0})}catch{Et[t]=e}return e},Ha=Et["__core-js_shared__"]||LS("__core-js_shared__",{}),RS=PS(function(t){(t.exports=function(e,n){return Ha[e]||(Ha[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Dft=Et.Object,Lp=function(t){return Dft(Gm(t))},Aft=Rt({}.hasOwnProperty),dn=Object.hasOwn||function(t,e){return Aft(Lp(t),e)},_ft=0,Oft=Math.random(),kft=Rt(1 .toString),MS=function(t){return"Symbol("+(t===void 0?"":t)+")_"+kft(++_ft+Oft,36)},je=function(t){return typeof t=="function"},Bft=function(t){return je(t)?t:void 0},Rp=function(t,e){return arguments.length<2?Bft(Et[t]):Et[t]&&Et[t][e]},VS=Rp("navigator","userAgent")||"",Zj=Et.process,Jj=Et.Deno,Qj=Zj&&Zj.versions||Jj&&Jj.version,tI=Qj&&Qj.v8;tI&&(Um=(za=tI.split("."))[0]>0&&za[0]<4?1:+(za[0]+za[1])),!Um&&VS&&(!(za=VS.match(/Edge\/(\d+)/))||za[1]>=74)&&(za=VS.match(/Chrome\/(\d+)/))&&(Um=+za[1]);var qm,zS=Um,HS=!!Object.getOwnPropertySymbols&&!Ne(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&zS&&zS<41}),US=HS&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Mp=RS("wks"),Bs=Et.Symbol,eI=Bs&&Bs.for,Tft=US?Bs:Bs&&Bs.withoutSetter||MS,kn=function(t){if(!dn(Mp,t)||!HS&&typeof Mp[t]!="string"){var e="Symbol."+t;HS&&dn(Bs,t)?Mp[t]=Bs[t]:Mp[t]=US&&eI?eI(e):Tft(e)}return Mp[t]},Ie=function(t){return typeof t=="object"?t!==null:je(t)},Fft=Et.String,Pft=Et.TypeError,sr=function(t){if(Ie(t))return t;throw Pft(Fft(t)+" is not an object")},Ua=!Ne(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),WS=Et.document,Nft=Ie(WS)&&Ie(WS.createElement),GS=function(t){return Nft?WS.createElement(t):{}},nI=!Ua&&!Ne(function(){return Object.defineProperty(GS("div"),"a",{get:function(){return 7}}).a!=7}),Vp=Function.prototype.call,pn=Vp.bind?Vp.bind(Vp):function(){return Vp.apply(Vp,arguments)},$m=Rt({}.isPrototypeOf),jft=Et.Object,qS=US?function(t){return typeof t=="symbol"}:function(t){var e=Rp("Symbol");return je(e)&&$m(e.prototype,jft(t))},Ift=Et.String,$S=function(t){try{return Ift(t)}catch{return"Object"}},Lft=Et.TypeError,KS=function(t){if(je(t))return t;throw Lft($S(t)+" is not a function")},zp=function(t,e){var n=t[e];return n==null?void 0:KS(n)},Rft=Et.TypeError,Mft=Et.TypeError,Vft=kn("toPrimitive"),YS=function(t){var e=function(n,r){if(!Ie(n)||qS(n))return n;var o,i=zp(n,Vft);if(i){if(r===void 0&&(r="default"),o=pn(i,n,r),!Ie(o)||qS(o))return o;throw Mft("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&je(s=a.toString)&&!Ie(l=pn(s,a))||je(s=a.valueOf)&&!Ie(l=pn(s,a))||u!=="string"&&je(s=a.toString)&&!Ie(l=pn(s,a)))return l;throw Rft("Can't convert object to primitive value")}(n,r)}(t,"string");return qS(e)?e:e+""},zft=Et.TypeError,rI=Object.defineProperty,Ts={f:Ua?rI:function(t,e,n){if(sr(t),e=YS(e),sr(n),nI)try{return rI(t,e,n)}catch{}if("get"in n||"set"in n)throw zft("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Hft=Math.ceil,Uft=Math.floor,Hp=function(t){var e=+t;return e!=e||e===0?0:(e>0?Uft:Hft)(e)},Wft=Math.max,Gft=Math.min,XS=function(t,e){var n=Hp(t);return n<0?Wft(n+e,0):Gft(n,e)},qft=Math.min,oI=function(t){return t>0?qft(Hp(t),9007199254740991):0},Pc=function(t){return oI(t.length)},iI=function(t){return function(e,n,r){var o,i=Fc(e),a=Pc(i),u=XS(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},aI={includes:iI(!0),indexOf:iI(!1)},Km={},$ft=aI.indexOf,uI=Rt([].push),sI=function(t,e){var n,r=Fc(t),o=0,i=[];for(n in r)!dn(Km,n)&&dn(r,n)&&uI(i,n);for(;e.length>o;)dn(r,n=e[o++])&&(~$ft(i,n)||uI(i,n));return i},Ym=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Kft=Object.keys||function(t){return sI(t,Ym)},Yft=Ua?Object.defineProperties:function(t,e){sr(t);for(var n,r=Fc(e),o=Kft(e),i=o.length,a=0;i>a;)Ts.f(t,n=o[a++],r[n]);return t},Xft=Rp("document","documentElement"),lI=RS("keys"),ZS=function(t){return lI[t]||(lI[t]=MS(t))},cI=ZS("IE_PROTO"),JS=function(){},fI=function(t){return"<script>"+t+"<\/script>"},dI=function(t){t.write(fI("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xm=function(){try{qm=new ActiveXObject("htmlfile")}catch{}var t,e;Xm=typeof document<"u"?document.domain&&qm?dI(qm):((e=GS("iframe")).style.display="none",Xft.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(fI("document.F=Object")),t.close(),t.F):dI(qm);for(var n=Ym.length;n--;)delete Xm.prototype[Ym[n]];return Xm()};Km[cI]=!0;var QS=Object.create||function(t,e){var n;return t!==null?(JS.prototype=sr(t),n=new JS,JS.prototype=null,n[cI]=t):n=Xm(),e===void 0?n:Yft(n,e)},tD=kn("unscopables"),eD=Array.prototype;eD[tD]==null&&Ts.f(eD,tD,{configurable:!0,value:QS(null)});var Up=function(t){eD[tD][t]=!0},Nc={},Zft=Rt(Function.toString);je(Ha.inspectSource)||(Ha.inspectSource=function(t){return Zft(t)});var Zm,Wp,Jm,nD=Ha.inspectSource,pI=Et.WeakMap,hI=je(pI)&&/native code/.test(nD(pI)),Qm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Wa=Ua?function(t,e,n){return Ts.f(t,e,Qm(1,n))}:function(t,e,n){return t[e]=n,t},rD=Et.TypeError,Jft=Et.WeakMap;if(hI||Ha.state){var Fs=Ha.state||(Ha.state=new Jft),Qft=Rt(Fs.get),gI=Rt(Fs.has),tdt=Rt(Fs.set);Zm=function(t,e){if(gI(Fs,t))throw new rD("Object already initialized");return e.facade=t,tdt(Fs,t,e),e},Wp=function(t){return Qft(Fs,t)||{}},Jm=function(t){return gI(Fs,t)}}else{var jc=ZS("state");Km[jc]=!0,Zm=function(t,e){if(dn(t,jc))throw new rD("Object already initialized");return e.facade=t,Wa(t,jc,e),e},Wp=function(t){return dn(t,jc)?t[jc]:{}},Jm=function(t){return dn(t,jc)}}var Ps,vI,mI,Yo={set:Zm,get:Wp,has:Jm,enforce:function(t){return Jm(t)?Wp(t):Zm(t,{})},getterFor:function(t){return function(e){var n;if(!Ie(e)||(n=Wp(e)).type!==t)throw rD("Incompatible receiver, "+t+" required");return n}}},yI={}.propertyIsEnumerable,bI=Object.getOwnPropertyDescriptor,edt={f:bI&&!yI.call({1:2},1)?function(t){var e=bI(this,t);return!!e&&e.enumerable}:yI},wI=Object.getOwnPropertyDescriptor,EI={f:Ua?wI:function(t,e){if(t=Fc(t),e=YS(e),nI)try{return wI(t,e)}catch{}if(dn(t,e))return Qm(!pn(edt.f,t,e),t[e])}},CI=Function.prototype,ndt=Ua&&Object.getOwnPropertyDescriptor,oD=dn(CI,"name"),iD={EXISTS:oD,PROPER:oD&&(function(){}).name==="something",CONFIGURABLE:oD&&(!Ua||Ua&&ndt(CI,"name").configurable)},Xo=PS(function(t){var e=iD.CONFIGURABLE,n=Yo.get,r=Yo.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;je(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!dn(u,"name")||e&&u.name!==d)&&Wa(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Et?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Wa(i,a,u)):f?i[a]=u:LS(a,u)})(Function.prototype,"toString",function(){return je(this)&&n(this).source||nD(this)})}),rdt=Ym.concat("length","prototype"),ty={f:Object.getOwnPropertyNames||function(t){return sI(t,rdt)}},odt={f:Object.getOwnPropertySymbols},idt=Rt([].concat),adt=Rp("Reflect","ownKeys")||function(t){var e=ty.f(sr(t)),n=odt.f;return n?idt(e,n(t)):e},udt=function(t,e){for(var n=adt(e),r=Ts.f,o=EI.f,i=0;i<n.length;i++){var a=n[i];dn(t,a)||r(t,a,o(e,a))}},sdt=/#|\.prototype\./,Gp=function(t,e){var n=cdt[ldt(t)];return n==ddt||n!=fdt&&(je(e)?Ne(e):!!e)},ldt=Gp.normalize=function(t){return String(t).replace(sdt,".").toLowerCase()},cdt=Gp.data={},fdt=Gp.NATIVE="N",ddt=Gp.POLYFILL="P",aD=Gp,pdt=EI.f,Ga=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Et:l?Et[u]||LS(u,{}):(Et[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=pdt(n,r))&&a.value:n[r],!aD(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;udt(i,o)}(t.sham||o&&o.sham)&&Wa(i,"sham",!0),Xo(n,r,i,t)}},hdt=!Ne(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),xI=ZS("IE_PROTO"),uD=Et.Object,gdt=uD.prototype,ey=hdt?uD.getPrototypeOf:function(t){var e=Lp(t);if(dn(e,xI))return e[xI];var n=e.constructor;return je(n)&&e instanceof n?n.prototype:e instanceof uD?gdt:null},sD=kn("iterator"),SI=!1;[].keys&&("next"in(mI=[].keys())?(vI=ey(ey(mI)))!==Object.prototype&&(Ps=vI):SI=!0);var vdt=Ps==null||Ne(function(){var t={};return Ps[sD].call(t)!==t});vdt&&(Ps={}),je(Ps[sD])||Xo(Ps,sD,function(){return this});var lD={IteratorPrototype:Ps,BUGGY_SAFARI_ITERATORS:SI},mdt=Ts.f,DI=kn("toStringTag"),cD=function(t,e,n){t&&!dn(t=n?t:t.prototype,DI)&&mdt(t,DI,{configurable:!0,value:e})},ydt=lD.IteratorPrototype,bdt=function(){return this},wdt=Et.String,Edt=Et.TypeError,ny=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Rt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return sr(r),function(i){if(typeof i=="object"||je(i))return i;throw Edt("Can't set "+wdt(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),Cdt=iD.PROPER,xdt=iD.CONFIGURABLE,AI=lD.IteratorPrototype,ry=lD.BUGGY_SAFARI_ITERATORS,qp=kn("iterator"),Sdt=function(){return this},_I=function(t,e,n,r,o,i,a){(function(m,h,w,E){var C=h+" Iterator";m.prototype=QS(ydt,{next:Qm(1,w)}),cD(m,C,!1),Nc[C]=bdt})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!ry&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[qp]||d["@@iterator"]||o&&d[o],g=!ry&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=ey(v.call(new t)))!==Object.prototype&&u.next&&(ey(u)!==AI&&(ny?ny(u,AI):je(u[qp])||Xo(u,qp,Sdt)),cD(u,f,!0)),Cdt&&o=="values"&&y&&y.name!=="values"&&(xdt?Wa(d,"name","values"):(p=!0,g=function(){return pn(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(ry||p||!(l in d))&&Xo(d,l,s[l]);else Ga({target:e,proto:!0,forced:ry||p},s);return d[qp]!==g&&Xo(d,qp,g,{name:o}),Nc[e]=g,s},Ddt=Yo.set,Adt=Yo.getterFor("Array Iterator"),$p=_I(Array,"Array",function(t,e){Ddt(this,{type:"Array Iterator",target:Fc(t),index:0,kind:e})},function(){var t=Adt(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Nc.Arguments=Nc.Array,Up("keys"),Up("values"),Up("entries");var OI={};OI[kn("toStringTag")]="z";var fD=String(OI)==="[object z]",_dt=kn("toStringTag"),Odt=Et.Object,kdt=Bi(function(){return arguments}())=="Arguments",oy=fD?Bi:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Odt(t),_dt))=="string"?n:kdt?Bi(e):(r=Bi(e))=="Object"&&je(e.callee)?"Arguments":r},Bdt=fD?{}.toString:function(){return"[object "+oy(this)+"]"};fD||Xo(Object.prototype,"toString",Bdt,{unsafe:!0});var Tdt=Et.String,Ti=function(t){if(oy(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Tdt(t)},Fdt=Rt("".charAt),kI=Rt("".charCodeAt),Pdt=Rt("".slice),BI=function(t){return function(e,n){var r,o,i=Ti(Gm(e)),a=Hp(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=kI(i,a))<55296||r>56319||a+1===u||(o=kI(i,a+1))<56320||o>57343?t?Fdt(i,a):r:t?Pdt(i,a,a+2):o-56320+(r-55296<<10)+65536}},TI={codeAt:BI(!1),charAt:BI(!0)},Ndt=TI.charAt,jdt=Yo.set,Idt=Yo.getterFor("String Iterator");_I(String,"String",function(t){jdt(this,{type:"String Iterator",string:Ti(t),index:0})},function(){var t,e=Idt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Ndt(n,r),e.index+=t.length,{value:t,done:!1})});var dD=function(t,e,n){for(var r in e)Xo(t,r,e[r],n);return t},Ldt=Et.Array,Rdt=Math.max,FI=ty.f,PI=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Mdt={f:function(t){return PI&&Bi(t)=="Window"?function(e){try{return FI(e)}catch{return function(r,o,i){for(var a,u,s,l,c=Pc(r),f=XS(void 0,c),p=XS(c,c),d=Ldt(Rdt(p-f,0)),y=0;f<p;f++,y++)a=d,u=y,s=r[f],(l=YS(u))in a?Ts.f(a,l,Qm(0,s)):a[l]=s;return d.length=y,d}(PI)}}(t):FI(Fc(t))}},NI=Ne(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),iy=Object.isExtensible,Ns=Ne(function(){iy(1)})||NI?function(t){return!!Ie(t)&&(!NI||Bi(t)!="ArrayBuffer")&&(!iy||iy(t))}:iy,Vdt=!Ne(function(){return Object.isExtensible(Object.preventExtensions({}))}),pD=PS(function(t){var e=Ts.f,n=!1,r=MS("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=ty.f,s=Rt([].splice),l={};l[r]=1,u(l).length&&(ty.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},Ga({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Mdt.f}))},fastKey:function(u,s){if(!Ie(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!dn(u,r)){if(!Ns(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!dn(u,r)){if(!Ns(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Vdt&&n&&Ns(u)&&!dn(u,r)&&i(u),u}};Km[r]=!0}),jI=Rt(Rt.bind),hD=function(t,e){return KS(t),e===void 0?t:jI?jI(t,e):function(){return t.apply(e,arguments)}},zdt=kn("iterator"),Hdt=Array.prototype,Udt=kn("iterator"),II=function(t){if(t!=null)return zp(t,Udt)||zp(t,"@@iterator")||Nc[oy(t)]},Wdt=Et.TypeError,LI=function(t,e,n){var r,o;sr(t);try{if(!(r=zp(t,"return"))){if(e==="throw")throw n;return n}r=pn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return sr(r),n},Gdt=Et.TypeError,ay=function(t,e){this.stopped=t,this.result=e},RI=ay.prototype,MI=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=hD(e,f),v=function(h){return r&&LI(r,"normal",h),new ay(!0,h)},m=function(h){return p?(sr(h),y?g(h[0],h[1],v):g(h[0],h[1])):y?g(h,v):g(h)};if(d)r=t;else{if(!(o=II(t)))throw Gdt($S(t)+" is not iterable");if((c=o)!==void 0&&(Nc.Array===c||Hdt[zdt]===c)){for(i=0,a=Pc(t);a>i;i++)if((u=m(t[i]))&&$m(RI,u))return u;return new ay(!1)}r=function(h,w){var E=arguments.length<2?II(h):w;if(KS(E))return sr(pn(E,h));throw Wdt($S(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=pn(s,r)).done;){try{u=m(l.value)}catch(h){LI(r,"throw",h)}if(typeof u=="object"&&u&&$m(RI,u))return u}return new ay(!1)},qdt=Et.TypeError,VI=function(t,e){if($m(e,t))return t;throw qdt("Incorrect invocation")},zI=kn("iterator"),HI=!1;try{var $dt=0,UI={next:function(){return{done:!!$dt++}},return:function(){HI=!0}};UI[zI]=function(){return this},Array.from(UI,function(){throw 2})}catch{}var gD=Array.isArray||function(t){return Bi(t)=="Array"},WI=function(){},Kdt=[],GI=Rp("Reflect","construct"),vD=/^\s*(?:class|function)\b/,Ydt=Rt(vD.exec),Xdt=!vD.exec(WI),Kp=function(t){if(!je(t))return!1;try{return GI(WI,Kdt,t),!0}catch{return!1}},Zdt=!GI||Ne(function(){var t;return Kp(Kp.call)||!Kp(Object)||!Kp(function(){t=!0})||t})?function(t){if(!je(t))return!1;switch(oy(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Xdt||!!Ydt(vD,nD(t))}:Kp,Jdt=kn("species"),qI=Et.Array,$I=function(t,e){return new(function(n){var r;return gD(n)&&(r=n.constructor,(Zdt(r)&&(r===qI||gD(r.prototype))||Ie(r)&&(r=r[Jdt])===null)&&(r=void 0)),r===void 0?qI:r}(t))(e===0?0:e)},KI=Rt([].push),qa=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=Lp(s),g=Xj(y),v=hD(l,c),m=Pc(g),h=0,w=f||$I,E=e?w(s,m):n||a?w(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:KI(E,p)}else switch(t){case 4:return!1;case 7:KI(E,p)}return i?-1:r||o?o:E}},mD={forEach:qa(0),map:qa(1),filter:qa(2),some:qa(3),every:qa(4),find:qa(5),findIndex:qa(6),filterReject:qa(7)},uy=pD.getWeakData,Qdt=Yo.set,tpt=Yo.getterFor,ept=mD.find,npt=mD.findIndex,rpt=Rt([].splice),opt=0,sy=function(t){return t.frozen||(t.frozen=new YI)},YI=function(){this.entries=[]},yD=function(t,e){return ept(t.entries,function(n){return n[0]===e})};YI.prototype={get:function(t){var e=yD(this,t);if(e)return e[1]},has:function(t){return!!yD(this,t)},set:function(t,e){var n=yD(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=npt(this.entries,function(n){return n[0]===t});return~e&&rpt(this.entries,e,1),!!~e}};var Yp,XI={getConstructor:function(t,e,n,r){var o=t(function(s,l){VI(s,i),Qdt(s,{type:e,id:opt++,frozen:void 0}),l!=null&&MI(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=tpt(e),u=function(s,l,c){var f=a(s),p=uy(sr(l),!0);return p===!0?sy(f).set(l,c):p[f.id]=c,s};return dD(i,{delete:function(s){var l=a(this);if(!Ie(s))return!1;var c=uy(s);return c===!0?sy(l).delete(s):c&&dn(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Ie(s))return!1;var c=uy(s);return c===!0?sy(l).has(s):c&&dn(c,l.id)}}),dD(i,n?{get:function(s){var l=a(this);if(Ie(s)){var c=uy(s);return c===!0?sy(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}},ly=Yo.enforce,ipt=!Et.ActiveXObject&&"ActiveXObject"in Et,ZI=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},apt=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=Et[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=Rt(u[v]);Xo(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!Ie(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!Ie(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!Ie(h))&&m(this,h===0?0:h)}:function(h,w){return m(this,h===0?0:h,w),this})};if(aD(t,!je(a)||!(o||u.forEach&&!Ne(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),pD.enable();else if(aD(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Ne(function(){f.has(1)}),y=function(v,m){if(!HI)return!1;var h=!1;try{var w={};w[zI]=function(){return{next:function(){return{done:h=!0}}}},function(E){new a(E)}(w)}catch{}return h}(),g=!o&&Ne(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){VI(v,u);var h=function(w,E,C){var D,S;return ny&&je(D=E.constructor)&&D!==C&&Ie(S=D.prototype)&&S!==C.prototype&&ny(w,S),w}(new a,v,s);return m!=null&&MI(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Ga({global:!0,forced:s!=a},l),cD(s,t),o||n.setStrong(s,t,r),s}("WeakMap",ZI,XI);if(hI&&ipt){Yp=XI.getConstructor(ZI,"WeakMap",!0),pD.enable();var Xp=apt.prototype,JI=Rt(Xp.delete),cy=Rt(Xp.has),QI=Rt(Xp.get),tL=Rt(Xp.set);dD(Xp,{delete:function(t){if(Ie(t)&&!Ns(t)){var e=ly(this);return e.frozen||(e.frozen=new Yp),JI(this,t)||e.frozen.delete(t)}return JI(this,t)},has:function(t){if(Ie(t)&&!Ns(t)){var e=ly(this);return e.frozen||(e.frozen=new Yp),cy(this,t)||e.frozen.has(t)}return cy(this,t)},get:function(t){if(Ie(t)&&!Ns(t)){var e=ly(this);return e.frozen||(e.frozen=new Yp),cy(this,t)?QI(this,t):e.frozen.get(t)}return QI(this,t)},set:function(t,e){if(Ie(t)&&!Ns(t)){var n=ly(this);n.frozen||(n.frozen=new Yp),cy(this,t)?tL(this,t,e):n.frozen.set(t,e)}else tL(this,t,e);return this}})}var eL={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},bD=GS("span").classList,nL=bD&&bD.constructor&&bD.constructor.prototype,upt=nL===Object.prototype?void 0:nL,wD=kn("iterator"),rL=kn("toStringTag"),ED=$p.values,oL=function(t,e){if(t){if(t[wD]!==ED)try{Wa(t,wD,ED)}catch{t[wD]=ED}if(t[rL]||Wa(t,rL,e),eL[e]){for(var n in $p)if(t[n]!==$p[n])try{Wa(t,n,$p[n])}catch{t[n]=$p[n]}}}};for(var CD in eL)oL(Et[CD]&&Et[CD].prototype,CD);oL(upt,"DOMTokenList");var xD=new WeakMap,spt={type:"list-item",renderElem:function(t,e,n){xD.set(t,n);var r=t,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,p){var d=p,y=d.type,g=d.level,v=g===void 0?0:g,m=d.ordered,h=m!==void 0&&m;if(!h)return-1;var w=1,E=p,C=O.findPath(f,E);if(C[0]===0)return 1;for(;C[0]>0;){var D=j.previous(C),S=x.node(f,D);if(S==null)break;var A=S[0],k=A.level,R=k===void 0?0:k,V=A.type,L=A.ordered;if(V!==y||R<v)break;if(R===v){if(L!==h)break;w++}E=A,C=D}return w}(n,t);s=l+"."}else s=function(f){f===void 0&&(f=0);var p="";switch(f){case 0:p="•";break;case 1:p="◦";break;default:p="▪"}return p}(i);var c=function(f){var p,d=f.children||[],y=d.length;if(y===0)return"";for(var g=0;g<y&&!p;g++){var v=d[g];at.isText(v)&&(p=v)}return p==null?"":p.color||""}(t);return wt("div",{style:u},wt("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),wt("span",null,e))}},SD=function(t,e){return SD=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])},SD(t,e);/*! *****************************************************************************
|
|
115
|
-
Copyright (c) Microsoft Corporation.
|
|
116
|
-
|
|
117
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
118
|
-
purpose with or without fee is hereby granted.
|
|
119
|
-
|
|
120
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
121
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
122
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
123
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
124
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
125
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
126
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
127
|
-
***************************************************************************** */};function iL(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}SD(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function aL(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Zp(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >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 uL(t){return x.nodes(t,{at:t.selection||void 0,match:function(e){return O.findPath(t,e).length===1}})}var lpt=aI.includes;Ga({target:"Array",proto:!0},{includes:function(t){return lpt(this,t,arguments.length>1?arguments[1]:void 0)}}),Up("includes");var sL,DD,cpt=function(){var t=sr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},AD=Et.RegExp,_D=Ne(function(){var t=AD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),fpt=_D||Ne(function(){return!AD("a","y").sticky}),dpt={BROKEN_CARET:_D||Ne(function(){var t=AD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:fpt,UNSUPPORTED_Y:_D},ppt=Et.RegExp,hpt=Ne(function(){var t=ppt(".","s");return!(t.dotAll&&t.exec(`
|
|
128
|
-
`)&&t.flags==="s")}),gpt=Et.RegExp,vpt=Ne(function(){var t=gpt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),mpt=Yo.get,ypt=RS("native-string-replace",String.prototype.replace),fy=RegExp.prototype.exec,OD=fy,bpt=Rt("".charAt),wpt=Rt("".indexOf),Ept=Rt("".replace),kD=Rt("".slice),BD=(DD=/b*/g,pn(fy,sL=/a/,"a"),pn(fy,DD,"a"),sL.lastIndex!==0||DD.lastIndex!==0),lL=dpt.BROKEN_CARET,TD=/()??/.exec("")[1]!==void 0;(BD||TD||lL||hpt||vpt)&&(OD=function(t){var e,n,r,o,i,a,u,s=this,l=mpt(s),c=Ti(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=pn(OD,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=lL&&s.sticky,y=pn(cpt,s),g=s.source,v=0,m=c;if(d&&(y=Ept(y,"y",""),wpt(y,"g")===-1&&(y+="g"),m=kD(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&bpt(c,s.lastIndex-1)!==`
|
|
129
|
-
`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),TD&&(n=new RegExp("^"+g+"$(?!\\s)",y)),BD&&(r=s.lastIndex),o=pn(fy,d?n:s,m),d?o?(o.input=kD(o.input,v),o[0]=kD(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:BD&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),TD&&o&&o.length>1&&pn(ypt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=QS(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var dy=OD;Ga({target:"RegExp",proto:!0,forced:/./.exec!==dy},{exec:dy});var cL=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var n=this.type;return O.getSelectedNodeByType(e,n)},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){var n=this.getListNode(e);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(n){if(x.isVoid(e,n)&&x.isBlock(e,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},t.prototype.exec=function(e,n){this.isActive(e)?I.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):I.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),Cpt='<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>',xpt='<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>',Spt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!1,n.title=et("listModule.unOrderedList"),n.iconSvg=Cpt,n}return iL(e,t),e}(cL),Dpt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!0,n.title=et("listModule.orderedList"),n.iconSvg=xpt,n}return iL(e,t),e}(cL),Apt={key:"bulletedList",factory:function(){return new Spt}},_pt={key:"numberedList",factory:function(){return new Dpt}},fL=[],Opt={type:"list-item",elemToHtml:function(t,e){var n="",r="",o=t.ordered,i=o!==void 0&&o?"ol":"ul",a=function(l){var c=xD.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,y=d!==void 0&&d,g=f.level,v=g===void 0?0:g,m=O.findPath(c,l);if(m[0]===0)return v+1;var h=j.previous(m),w=x.node(c,h);if(!w)return 0;var E=Zp(w,1)[0];if(O.getNodeType(E)!==p)return v+1;var C=E,D=C.ordered,S=D!==void 0&&D,A=C.level,k=A===void 0?0:A;return k<v?v-k:k>v?0:k===v?S===y?0:1:0}(t);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",fL.push(i);var s=function(l){var c=xD.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,y=d!==void 0&&d,g=f.level,v=g===void 0?0:g,m=O.findPath(c,l);if(m[0]===c.children.length-1)return v+1;var h=j.next(m),w=x.node(c,h);if(!w)return 0;var E=Zp(w,1)[0];if(O.getNodeType(E)!==p)return v+1;var C=E,D=C.ordered,S=D!==void 0&&D,A=C.level,k=A===void 0?0:A;return k<v?v-k:k>v?0:k===v?S===y?0:1:0}(t);if(s>0)for(u=0;u<s;u++)r+="</"+fL.pop()+">";return{html:"<li>"+e+"</li>",prefix:n,suffix:r}}},kpt=kn("species"),Bpt=mD.filter,Tpt=zS>=51||!Ne(function(){var t=[];return(t.constructor={})[kpt]=function(){return{foo:1}},t.filter(Boolean).foo!==1});Ga({target:"Array",proto:!0,forced:!Tpt},{filter:function(t){return Bpt(this,t,arguments.length>1?arguments[1]:void 0)}});var FD=Function.prototype,dL=FD.apply,Fpt=FD.bind,pL=FD.call,Ppt=typeof Reflect=="object"&&Reflect.apply||(Fpt?pL.bind(dL):function(){return pL.apply(dL,arguments)}),hL=(kn("species"),RegExp.prototype),Npt=TI.charAt,jpt=function(t,e,n){return e+(n?Npt(t,e).length:1)},Ipt=Math.floor,PD=Rt("".charAt),Lpt=Rt("".replace),ND=Rt("".slice),Rpt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Mpt=/\$([$&'`]|\d{1,2})/g,Vpt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Mpt;return o!==void 0&&(o=Lp(o),s=Rpt),Lpt(i,s,function(l,c){var f;switch(PD(c,0)){case"$":return"$";case"&":return t;case"`":return ND(e,0,n);case"'":return ND(e,a);case"<":f=o[ND(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Ipt(p/10);return d===0?l:d<=u?r[d-1]===void 0?PD(c,1):r[d-1]+PD(c,1):l}f=r[p-1]}return f===void 0?"":f})},zpt=Et.TypeError,Hpt=function(t,e){var n=t.exec;if(je(n)){var r=pn(n,t,e);return r!==null&&sr(r),r}if(Bi(t)==="RegExp")return pn(dy,t,e);throw zpt("RegExp#exec called on incompatible receiver")},jD=kn("replace"),Upt=Math.max,Wpt=Math.min,Gpt=Rt([].concat),ID=Rt([].push),gL=Rt("".indexOf),vL=Rt("".slice),qpt="a".replace(/./,"$0")==="$0",mL=!!/./[jD]&&/./[jD]("a","$0")==="";(function(t,e,n,r){var o=kn(t),i=!Ne(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Ne(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Rt(/./[o]),s=function(l,c,f){var p=mL?"$":"$0";return[function(d,y){var g=Gm(this),v=d==null?void 0:zp(d,jD);return v?pn(v,d,g,y):pn(c,Ti(g),d,y)},function(d,y){var g=sr(this),v=Ti(d);if(typeof y=="string"&&gL(y,p)===-1&&gL(y,"$<")===-1){var m=f(c,g,v,y);if(m.done)return m.value}var h=je(y);h||(y=Ti(y));var w=g.global;if(w){var E=g.unicode;g.lastIndex=0}for(var C=[];;){var D=Hpt(g,v);if(D===null||(ID(C,D),!w))break;Ti(D[0])===""&&(g.lastIndex=jpt(v,oI(g.lastIndex),E))}for(var S,A="",k=0,R=0;R<C.length;R++){for(var V=Ti((D=C[R])[0]),L=Upt(Wpt(Hp(D.index),v.length),0),W=[],H=1;H<D.length;H++)ID(W,(S=D[H])===void 0?S:String(S));var U=D.groups;if(h){var $=Gpt([V],W,L,v);U!==void 0&&ID($,U);var J=Ti(Ppt(y,void 0,$))}else J=Vpt(V,v,L,W,U,y);L>=k&&(A+=vL(v,k,L)+J,k=L+V.length)}return A+vL(v,k)}]}(0,""[t],function(l,c,f,p,d){var y=Rt(l),g=c.exec;return g===dy||g===hL.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});Xo(String.prototype,t,s[0]),Xo(hL,o,s[1])}})("replace",0,!!Ne(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!qpt||mL);var $pt=Et.TypeError,yL=function(t,e,n,r,o,i,a,u){for(var s,l,c=o,f=0,p=!!a&&hD(a,u);f<r;){if(f in n){if(s=p?p(n[f],f,e):n[f],i>0&&gD(s))l=Pc(s),c=yL(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw $pt("Exceed the acceptable array length");t[c]=s}c++}f++}return c},Kpt=yL;function LD(t){return t.length?t[0].tagName.toLowerCase():""}Ga({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=Lp(this),n=Pc(e),r=$I(e,0);return r.length=Kpt(r,e,e,n,0,t===void 0?1:Hp(t)),r}}),Up("flat"),Ga({global:!0},{globalThis:Et}),Lr&&(T.fn.append=Lr),Ir&&(T.fn.attr=Ir),Pl&&(T.fn.parent=Pl);var Ypt={renderElems:[spt],editorPlugin:function(t){var e=t.deleteBackward,n=t.handleTab,r=t.normalizeNode,o=t;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(z.isExpanded(a))e(i);else{var u=O.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)e(i);else{var s=u.level,l=s===void 0?0:s;l>0?I.setNodes(o,{level:l-1}):I.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else e(i)}else e(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(z.isCollapsed(l)){var c=O.getSelectedNodeByType(o,"list-item");if(c==null)return void n();if(l.focus.offset===0){var f=c.level,p=f===void 0?0:f;return void I.setNodes(o,{level:p+1})}}if(z.isExpanded(l)){var d=0,y=!1;try{for(var g=aL(uL(o)),v=g.next();!v.done;v=g.next()){var m=Zp(v.value,1)[0];O.getNodeType(m)==="list-item"?d++:y=!0}}catch(S){i={error:S}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}if(y||d<=1)return void n();try{for(var h=aL(uL(o)),w=h.next();!w.done;w=h.next()){var E=Zp(w.value,2),C=(m=E[0],E[1]),D=m.level;p=D===void 0?0:D,I.setNodes(o,{level:p+1},{at:C})}}catch(S){u={error:S}}finally{try{w&&!w.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else n()}else n()},o.normalizeNode=function(i){var a=Zp(i,2),u=a[0],s=a[1],l=O.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||I.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[Apt,_pt],elemsToHtml:[Opt],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,n){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=T(t);(e=e.filter(function(a){return!!at.isText(a)||!!n.isInline(a)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(a){return LD(a.parent())==="ol"}(r),i=function(a){for(var u=0,s=a.parent(),l=LD(s);l==="ul"||l==="ol";)l=LD(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:o,level:i,children:e}}}]},bL=ku(function(t,e){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]",p="[object Object]",d="[object Promise]",y="[object RegExp]",g="[object Set]",v="[object String]",m="[object Symbol]",h="[object WeakMap]",w="[object ArrayBuffer]",E="[object DataView]",C=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[o]=S[i]=S[w]=S[a]=S[E]=S[u]=S[s]=S[l]=S[c]=S[f]=S[p]=S[y]=S[g]=S[v]=S[h]=!1;var A=typeof he=="object"&&he&&he.Object===Object&&he,k=typeof self=="object"&&self&&self.Object===Object&&self,R=A||k||Function("return this")(),V=e&&!e.nodeType&&e,L=V&&t&&!t.nodeType&&t,W=L&&L.exports===V,H=W&&A.process,U=function(){try{return H&&H.binding&&H.binding("util")}catch{}}(),$=U&&U.isTypedArray;function J(P,M){for(var Q=-1,vt=P==null?0:P.length;++Q<vt;)if(M(P[Q],Q,P))return!0;return!1}function st(P){var M=-1,Q=Array(P.size);return P.forEach(function(vt,ce){Q[++M]=[ce,vt]}),Q}function lt(P){var M=-1,Q=Array(P.size);return P.forEach(function(vt){Q[++M]=vt}),Q}var ct=Array.prototype,B=Function.prototype,_=Object.prototype,N=R["__core-js_shared__"],q=B.toString,X=_.hasOwnProperty,K=function(){var P=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||"");return P?"Symbol(src)_1."+P:""}(),ut=_.toString,mt=RegExp("^"+q.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=W?R.Buffer:void 0,_t=R.Symbol,Y=R.Uint8Array,Ht=_.propertyIsEnumerable,Ft=ct.splice,gt=_t?_t.toStringTag:void 0,Pt=Object.getOwnPropertySymbols,ze=bt?bt.isBuffer:void 0,Yt=function(P,M){return function(Q){return P(M(Q))}}(Object.keys,Object),le=Eu(R,"DataView"),Ae=Eu(R,"Map"),Mn=Eu(R,"Promise"),Gt=Eu(R,"Set"),cr=Eu(R,"WeakMap"),Do=Eu(Object,"create"),ii=Vi(le),hf=Vi(Ae),el=Vi(Mn),Ao=Vi(Gt),ai=Vi(cr),Li=_t?_t.prototype:void 0,Vn=Li?Li.valueOf:void 0;function zn(P){var M=-1,Q=P==null?0:P.length;for(this.clear();++M<Q;){var vt=P[M];this.set(vt[0],vt[1])}}function Hn(P){var M=-1,Q=P==null?0:P.length;for(this.clear();++M<Q;){var vt=P[M];this.set(vt[0],vt[1])}}function Xn(P){var M=-1,Q=P==null?0:P.length;for(this.clear();++M<Q;){var vt=P[M];this.set(vt[0],vt[1])}}function Sn(P){var M=-1,Q=P==null?0:P.length;for(this.__data__=new Xn;++M<Q;)this.add(P[M])}function no(P){var M=this.__data__=new Hn(P);this.size=M.size}function wg(P,M){var Q=zi(P),vt=!Q&&eb(P),ce=!Q&&!vt&&ui(P),Vt=!Q&&!vt&&!ce&&li(P),F=Q||vt||ce||Vt,G=F?function(Wt,xe){for(var fe=-1,Jt=Array(Wt);++fe<Wt;)Jt[fe]=xe(fe);return Jt}(P.length,String):[],nt=G.length;for(var ft in P)!M&&!X.call(P,ft)||F&&(ft=="length"||ce&&(ft=="offset"||ft=="parent")||Vt&&(ft=="buffer"||ft=="byteLength"||ft=="byteOffset")||Eg(ft,nt))||G.push(ft);return G}function wu(P,M){for(var Q=P.length;Q--;)if(mf(P[Q][0],M))return Q;return-1}function Ri(P){return P==null?P===void 0?"[object Undefined]":"[object Null]":gt&> in Object(P)?function(M){var Q=X.call(M,gt),vt=M[gt];try{M[gt]=void 0;var ce=!0}catch{}var Vt=ut.call(M);return ce&&(Q?M[gt]=vt:delete M[gt]),Vt}(P):function(M){return ut.call(M)}(P)}function gf(P){return Cu(P)&&Ri(P)==o}function nl(P,M,Q,vt,ce){return P===M||(P==null||M==null||!Cu(P)&&!Cu(M)?P!=P&&M!=M:function(Vt,F,G,nt,ft,Wt){var xe=zi(Vt),fe=zi(F),Jt=xe?i:Pr(Vt),gn=fe?i:Pr(F),Un=(Jt=Jt==o?p:Jt)==p,rl=(gn=gn==o?p:gn)==p,Hi=Jt==gn;if(Hi&&ui(Vt)){if(!ui(F))return!1;xe=!0,Un=!1}if(Hi&&!Un)return Wt||(Wt=new no),xe||li(Vt)?ro(Vt,F,G,nt,ft,Wt):function(Ut,Qt,te,He,Zn,fr,ko){switch(te){case E:if(Ut.byteLength!=Qt.byteLength||Ut.byteOffset!=Qt.byteOffset)return!1;Ut=Ut.buffer,Qt=Qt.buffer;case w:return!(Ut.byteLength!=Qt.byteLength||!fr(new Y(Ut),new Y(Qt)));case a:case u:case f:return mf(+Ut,+Qt);case s:return Ut.name==Qt.name&&Ut.message==Qt.message;case y:case v:return Ut==Qt+"";case c:var Su=st;case g:var xg=1&He;if(Su||(Su=lt),Ut.size!=Qt.size&&!xg)return!1;var ob=ko.get(Ut);if(ob)return ob==Qt;He|=2,ko.set(Ut,Qt);var yf=ro(Su(Ut),Su(Qt),He,Zn,fr,ko);return ko.delete(Ut),yf;case m:if(Vn)return Vn.call(Ut)==Vn.call(Qt)}return!1}(Vt,F,Jt,G,nt,ft,Wt);if(!(1&G)){var xu=Un&&X.call(Vt,"__wrapped__"),Ct=rl&&X.call(F,"__wrapped__");if(xu||Ct){var re=xu?Vt.value():Vt,Ye=Ct?F.value():F;return Wt||(Wt=new no),ft(re,Ye,G,nt,Wt)}}return Hi?(Wt||(Wt=new no),function(Ut,Qt,te,He,Zn,fr){var ko=1&te,Su=Mi(Ut),xg=Su.length,ob=Mi(Qt).length;if(xg!=ob&&!ko)return!1;for(var yf=xg;yf--;){var ol=Su[yf];if(!(ko?ol in Qt:X.call(Qt,ol)))return!1}var MU=fr.get(Ut);if(MU&&fr.get(Qt))return MU==Qt;var ib=!0;fr.set(Ut,Qt),fr.set(Qt,Ut);for(var aA=ko;++yf<xg;){var ab=Ut[ol=Su[yf]],ub=Qt[ol];if(He)var VU=ko?He(ub,ab,ol,Qt,Ut,fr):He(ab,ub,ol,Ut,Qt,fr);if(!(VU===void 0?ab===ub||Zn(ab,ub,te,He,fr):VU)){ib=!1;break}aA||(aA=ol=="constructor")}if(ib&&!aA){var sb=Ut.constructor,lb=Qt.constructor;sb==lb||!("constructor"in Ut)||!("constructor"in Qt)||typeof sb=="function"&&sb instanceof sb&&typeof lb=="function"&&lb instanceof lb||(ib=!1)}return fr.delete(Ut),fr.delete(Qt),ib}(Vt,F,G,nt,ft,Wt)):!1}(P,M,Q,vt,nl,ce))}function vf(P){return!(!nb(P)||function(M){return!!K&&K in M}(P))&&(Cg(P)?mt:C).test(Vi(P))}function _o(P){if(Q=(M=P)&&M.constructor,vt=typeof Q=="function"&&Q.prototype||_,M!==vt)return Yt(P);var M,Q,vt,ce=[];for(var Vt in Object(P))X.call(P,Vt)&&Vt!="constructor"&&ce.push(Vt);return ce}function ro(P,M,Q,vt,ce,Vt){var F=1&Q,G=P.length,nt=M.length;if(G!=nt&&!(F&&nt>G))return!1;var ft=Vt.get(P);if(ft&&Vt.get(M))return ft==M;var Wt=-1,xe=!0,fe=2&Q?new Sn:void 0;for(Vt.set(P,M),Vt.set(M,P);++Wt<G;){var Jt=P[Wt],gn=M[Wt];if(vt)var Un=F?vt(gn,Jt,Wt,M,P,Vt):vt(Jt,gn,Wt,P,M,Vt);if(Un!==void 0){if(Un)continue;xe=!1;break}if(fe){if(!J(M,function(rl,Hi){if(xu=Hi,!fe.has(xu)&&(Jt===rl||ce(Jt,rl,Q,vt,Vt)))return fe.push(Hi);var xu})){xe=!1;break}}else if(Jt!==gn&&!ce(Jt,gn,Q,vt,Vt)){xe=!1;break}}return Vt.delete(P),Vt.delete(M),xe}function Mi(P){return function(M,Q,vt){var ce=Q(M);return zi(M)?ce:function(Vt,F){for(var G=-1,nt=F.length,ft=Vt.length;++G<nt;)Vt[ft+G]=F[G];return Vt}(ce,vt(M))}(P,rb,tb)}function Oo(P,M){var Q,vt,ce=P.__data__;return((vt=typeof(Q=M))=="string"||vt=="number"||vt=="symbol"||vt=="boolean"?Q!=="__proto__":Q===null)?ce[typeof M=="string"?"string":"hash"]:ce.map}function Eu(P,M){var Q=function(vt,ce){return vt==null?void 0:vt[ce]}(P,M);return vf(Q)?Q:void 0}zn.prototype.clear=function(){this.__data__=Do?Do(null):{},this.size=0},zn.prototype.delete=function(P){var M=this.has(P)&&delete this.__data__[P];return this.size-=M?1:0,M},zn.prototype.get=function(P){var M=this.__data__;if(Do){var Q=M[P];return Q===n?void 0:Q}return X.call(M,P)?M[P]:void 0},zn.prototype.has=function(P){var M=this.__data__;return Do?M[P]!==void 0:X.call(M,P)},zn.prototype.set=function(P,M){var Q=this.__data__;return this.size+=this.has(P)?0:1,Q[P]=Do&&M===void 0?n:M,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.prototype.delete=function(P){var M=this.__data__,Q=wu(M,P);return!(Q<0)&&(Q==M.length-1?M.pop():Ft.call(M,Q,1),--this.size,!0)},Hn.prototype.get=function(P){var M=this.__data__,Q=wu(M,P);return Q<0?void 0:M[Q][1]},Hn.prototype.has=function(P){return wu(this.__data__,P)>-1},Hn.prototype.set=function(P,M){var Q=this.__data__,vt=wu(Q,P);return vt<0?(++this.size,Q.push([P,M])):Q[vt][1]=M,this},Xn.prototype.clear=function(){this.size=0,this.__data__={hash:new zn,map:new(Ae||Hn),string:new zn}},Xn.prototype.delete=function(P){var M=Oo(this,P).delete(P);return this.size-=M?1:0,M},Xn.prototype.get=function(P){return Oo(this,P).get(P)},Xn.prototype.has=function(P){return Oo(this,P).has(P)},Xn.prototype.set=function(P,M){var Q=Oo(this,P),vt=Q.size;return Q.set(P,M),this.size+=Q.size==vt?0:1,this},Sn.prototype.add=Sn.prototype.push=function(P){return this.__data__.set(P,n),this},Sn.prototype.has=function(P){return this.__data__.has(P)},no.prototype.clear=function(){this.__data__=new Hn,this.size=0},no.prototype.delete=function(P){var M=this.__data__,Q=M.delete(P);return this.size=M.size,Q},no.prototype.get=function(P){return this.__data__.get(P)},no.prototype.has=function(P){return this.__data__.has(P)},no.prototype.set=function(P,M){var Q=this.__data__;if(Q instanceof Hn){var vt=Q.__data__;if(!Ae||vt.length<199)return vt.push([P,M]),this.size=++Q.size,this;Q=this.__data__=new Xn(vt)}return Q.set(P,M),this.size=Q.size,this};var tb=Pt?function(P){return P==null?[]:(P=Object(P),function(M,Q){for(var vt=-1,ce=M==null?0:M.length,Vt=0,F=[];++vt<ce;){var G=M[vt];Q(G,vt,M)&&(F[Vt++]=G)}return F}(Pt(P),function(M){return Ht.call(P,M)}))}:function(){return[]},Pr=Ri;function Eg(P,M){return!!(M=M??r)&&(typeof P=="number"||D.test(P))&&P>-1&&P%1==0&&P<M}function Vi(P){if(P!=null){try{return q.call(P)}catch{}try{return P+""}catch{}}return""}function mf(P,M){return P===M||P!=P&&M!=M}(le&&Pr(new le(new ArrayBuffer(1)))!=E||Ae&&Pr(new Ae)!=c||Mn&&Pr(Mn.resolve())!=d||Gt&&Pr(new Gt)!=g||cr&&Pr(new cr)!=h)&&(Pr=function(P){var M=Ri(P),Q=M==p?P.constructor:void 0,vt=Q?Vi(Q):"";if(vt)switch(vt){case ii:return E;case hf:return c;case el:return d;case Ao:return g;case ai:return h}return M});var eb=gf(function(){return arguments}())?gf:function(P){return Cu(P)&&X.call(P,"callee")&&!Ht.call(P,"callee")},zi=Array.isArray,ui=ze||function(){return!1};function Cg(P){if(!nb(P))return!1;var M=Ri(P);return M==l||M=="[object GeneratorFunction]"||M=="[object AsyncFunction]"||M=="[object Proxy]"}function si(P){return typeof P=="number"&&P>-1&&P%1==0&&P<=r}function nb(P){var M=typeof P;return P!=null&&(M=="object"||M=="function")}function Cu(P){return P!=null&&typeof P=="object"}var li=$?function(P){return function(M){return P(M)}}($):function(P){return Cu(P)&&si(P.length)&&!!S[Ri(P)]};function rb(P){return(M=P)!=null&&si(M.length)&&!Cg(M)?wg(P):_o(P);var M}t.exports=function(P,M){return nl(P,M)}});ir("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"}}),ir("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var wL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function EL(t){var e={exports:{}};return t(e,e.exports),e.exports}var $a,py,hy=function(t){return t&&t.Math==Math&&t},It=hy(typeof globalThis=="object"&&globalThis)||hy(typeof window=="object"&&window)||hy(typeof self=="object"&&self)||hy(typeof wL=="object"&&wL)||function(){return this}()||Function("return this")(),an=function(t){try{return!!t()}catch{return!0}},Ka=!an(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Jp=Function.prototype.call,un=Jp.bind?Jp.bind(Jp):function(){return Jp.apply(Jp,arguments)},CL={}.propertyIsEnumerable,xL=Object.getOwnPropertyDescriptor,Xpt={f:xL&&!CL.call({1:2},1)?function(t){var e=xL(this,t);return!!e&&e.enumerable}:CL},RD=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},SL=Function.prototype,MD=SL.bind,VD=SL.call,Zpt=MD&&MD.bind(VD),zt=MD?function(t){return t&&Zpt(VD,t)}:function(t){return t&&function(){return VD.apply(t,arguments)}},Jpt=zt({}.toString),Qpt=zt("".slice),Ya=function(t){return Qpt(Jpt(t),8,-1)},zD=It.Object,tht=zt("".split),DL=an(function(){return!zD("z").propertyIsEnumerable(0)})?function(t){return Ya(t)=="String"?tht(t,""):zD(t)}:zD,eht=It.TypeError,Xa=function(t){if(t==null)throw eht("Can't call method on "+t);return t},Qp=function(t){return DL(Xa(t))},Bn=function(t){return typeof t=="function"},Xr=function(t){return typeof t=="object"?t!==null:Bn(t)},nht=function(t){return Bn(t)?t:void 0},th=function(t,e){return arguments.length<2?nht(It[t]):It[t]&&It[t][e]},AL=zt({}.isPrototypeOf),HD=th("navigator","userAgent")||"",_L=It.process,OL=It.Deno,kL=_L&&_L.versions||OL&&OL.version,BL=kL&&kL.v8;BL&&(py=($a=BL.split("."))[0]>0&&$a[0]<4?1:+($a[0]+$a[1])),!py&&HD&&(!($a=HD.match(/Edge\/(\d+)/))||$a[1]>=74)&&($a=HD.match(/Chrome\/(\d+)/))&&(py=+$a[1]);var UD=py,WD=!!Object.getOwnPropertySymbols&&!an(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&UD&&UD<41}),GD=WD&&!Symbol.sham&&typeof Symbol.iterator=="symbol",rht=It.Object,qD=GD?function(t){return typeof t=="symbol"}:function(t){var e=th("Symbol");return Bn(e)&&AL(e.prototype,rht(t))},oht=It.String,TL=function(t){try{return oht(t)}catch{return"Object"}},iht=It.TypeError,FL=function(t){if(Bn(t))return t;throw iht(TL(t)+" is not a function")},$D=function(t,e){var n=t[e];return n==null?void 0:FL(n)},aht=It.TypeError,uht=Object.defineProperty,KD=function(t,e){try{uht(It,t,{value:e,configurable:!0,writable:!0})}catch{It[t]=e}return e},Za=It["__core-js_shared__"]||KD("__core-js_shared__",{}),YD=EL(function(t){(t.exports=function(e,n){return Za[e]||(Za[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),sht=It.Object,XD=function(t){return sht(Xa(t))},lht=zt({}.hasOwnProperty),Zr=Object.hasOwn||function(t,e){return lht(XD(t),e)},cht=0,fht=Math.random(),dht=zt(1 .toString),PL=function(t){return"Symbol("+(t===void 0?"":t)+")_"+dht(++cht+fht,36)},eh=YD("wks"),js=It.Symbol,NL=js&&js.for,pht=GD?js:js&&js.withoutSetter||PL,Jr=function(t){if(!Zr(eh,t)||!WD&&typeof eh[t]!="string"){var e="Symbol."+t;WD&&Zr(js,t)?eh[t]=js[t]:eh[t]=GD&&NL?NL(e):pht(e)}return eh[t]},hht=It.TypeError,ght=Jr("toPrimitive"),ZD=function(t){var e=function(n,r){if(!Xr(n)||qD(n))return n;var o,i=$D(n,ght);if(i){if(r===void 0&&(r="default"),o=un(i,n,r),!Xr(o)||qD(o))return o;throw hht("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&Bn(s=a.toString)&&!Xr(l=un(s,a))||Bn(s=a.valueOf)&&!Xr(l=un(s,a))||u!=="string"&&Bn(s=a.toString)&&!Xr(l=un(s,a)))return l;throw aht("Can't convert object to primitive value")}(n,r)}(t,"string");return qD(e)?e:e+""},JD=It.document,vht=Xr(JD)&&Xr(JD.createElement),QD=function(t){return vht?JD.createElement(t):{}},jL=!Ka&&!an(function(){return Object.defineProperty(QD("div"),"a",{get:function(){return 7}}).a!=7}),IL=Object.getOwnPropertyDescriptor,LL={f:Ka?IL:function(t,e){if(t=Qp(t),e=ZD(e),jL)try{return IL(t,e)}catch{}if(Zr(t,e))return RD(!un(Xpt.f,t,e),t[e])}},mht=It.String,yht=It.TypeError,Qr=function(t){if(Xr(t))return t;throw yht(mht(t)+" is not an object")},bht=It.TypeError,RL=Object.defineProperty,nh={f:Ka?RL:function(t,e,n){if(Qr(t),e=ZD(e),Qr(n),jL)try{return RL(t,e,n)}catch{}if("get"in n||"set"in n)throw bht("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Ic=Ka?function(t,e,n){return nh.f(t,e,RD(1,n))}:function(t,e,n){return t[e]=n,t},wht=zt(Function.toString);Bn(Za.inspectSource)||(Za.inspectSource=function(t){return wht(t)});var gy,rh,vy,t3=Za.inspectSource,ML=It.WeakMap,Eht=Bn(ML)&&/native code/.test(t3(ML)),VL=YD("keys"),zL=function(t){return VL[t]||(VL[t]=PL(t))},e3={},n3=It.TypeError,Cht=It.WeakMap;if(Eht||Za.state){var Is=Za.state||(Za.state=new Cht),xht=zt(Is.get),HL=zt(Is.has),Sht=zt(Is.set);gy=function(t,e){if(HL(Is,t))throw new n3("Object already initialized");return e.facade=t,Sht(Is,t,e),e},rh=function(t){return xht(Is,t)||{}},vy=function(t){return HL(Is,t)}}else{var Lc=zL("state");e3[Lc]=!0,gy=function(t,e){if(Zr(t,Lc))throw new n3("Object already initialized");return e.facade=t,Ic(t,Lc,e),e},rh=function(t){return Zr(t,Lc)?t[Lc]:{}},vy=function(t){return Zr(t,Lc)}}var r3={set:gy,get:rh,has:vy,enforce:function(t){return vy(t)?rh(t):gy(t,{})},getterFor:function(t){return function(e){var n;if(!Xr(e)||(n=rh(e)).type!==t)throw n3("Incompatible receiver, "+t+" required");return n}}},UL=Function.prototype,Dht=Ka&&Object.getOwnPropertyDescriptor,o3=Zr(UL,"name"),i3={EXISTS:o3,PROPER:o3&&(function(){}).name==="something",CONFIGURABLE:o3&&(!Ka||Ka&&Dht(UL,"name").configurable)},oh=EL(function(t){var e=i3.CONFIGURABLE,n=r3.get,r=r3.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Bn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Zr(u,"name")||e&&u.name!==d)&&Ic(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==It?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Ic(i,a,u)):f?i[a]=u:KD(a,u)})(Function.prototype,"toString",function(){return Bn(this)&&n(this).source||t3(this)})}),Aht=Math.ceil,_ht=Math.floor,my=function(t){var e=+t;return e!=e||e===0?0:(e>0?_ht:Aht)(e)},Oht=Math.max,kht=Math.min,ih=function(t,e){var n=my(t);return n<0?Oht(n+e,0):kht(n,e)},Bht=Math.min,a3=function(t){return t>0?Bht(my(t),9007199254740991):0},yy=function(t){return a3(t.length)},Tht=function(t){return function(e,n,r){var o,i=Qp(e),a=yy(i),u=ih(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Fht=Tht(!1),WL=zt([].push),GL=function(t,e){var n,r=Qp(t),o=0,i=[];for(n in r)!Zr(e3,n)&&Zr(r,n)&&WL(i,n);for(;e.length>o;)Zr(r,n=e[o++])&&(~Fht(i,n)||WL(i,n));return i},by=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pht=by.concat("length","prototype"),Nht={f:Object.getOwnPropertyNames||function(t){return GL(t,Pht)}},jht={f:Object.getOwnPropertySymbols},Iht=zt([].concat),Lht=th("Reflect","ownKeys")||function(t){var e=Nht.f(Qr(t)),n=jht.f;return n?Iht(e,n(t)):e},Rht=function(t,e){for(var n=Lht(e),r=nh.f,o=LL.f,i=0;i<n.length;i++){var a=n[i];Zr(t,a)||r(t,a,o(e,a))}},Mht=/#|\.prototype\./,ah=function(t,e){var n=zht[Vht(t)];return n==Uht||n!=Hht&&(Bn(e)?an(e):!!e)},Vht=ah.normalize=function(t){return String(t).replace(Mht,".").toLowerCase()},zht=ah.data={},Hht=ah.NATIVE="N",Uht=ah.POLYFILL="P",Wht=ah,Ght=LL.f,Ja=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?It:l?It[u]||KD(u,{}):(It[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Ght(n,r))&&a.value:n[r],!Wht(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Rht(i,o)}(t.sham||o&&o.sham)&&Ic(i,"sham",!0),oh(n,r,i,t)}},qL={};qL[Jr("toStringTag")]="z";var u3=String(qL)==="[object z]",qht=Jr("toStringTag"),$ht=It.Object,Kht=Ya(function(){return arguments}())=="Arguments",s3=u3?Ya:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=$ht(t),qht))=="string"?n:Kht?Ya(e):(r=Ya(e))=="Object"&&Bn(e.callee)?"Arguments":r},Yht=It.String,Ln=function(t){if(s3(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Yht(t)},Xht=/"/g,Zht=zt("".replace);Ja({target:"String",proto:!0,forced:an(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=Ln(Xa(this)),r="<a",(r+=' name="'+Zht(Ln(e),Xht,""")+'"')+">"+n+"</a>";var e,n,r}});var wy,$L=function(){var t=Qr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},l3=It.RegExp,c3=an(function(){var t=l3("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Jht=c3||an(function(){return!l3("a","y").sticky}),KL={BROKEN_CARET:c3||an(function(){var t=l3("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Jht,UNSUPPORTED_Y:c3},Qht=Object.keys||function(t){return GL(t,by)},tgt=Ka?Object.defineProperties:function(t,e){Qr(t);for(var n,r=Qp(e),o=Qht(e),i=o.length,a=0;i>a;)nh.f(t,n=o[a++],r[n]);return t},egt=th("document","documentElement"),YL=zL("IE_PROTO"),f3=function(){},XL=function(t){return"<script>"+t+"<\/script>"},ZL=function(t){t.write(XL("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ey=function(){try{wy=new ActiveXObject("htmlfile")}catch{}var t,e;Ey=typeof document<"u"?document.domain&&wy?ZL(wy):((e=QD("iframe")).style.display="none",egt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(XL("document.F=Object")),t.close(),t.F):ZL(wy);for(var n=by.length;n--;)delete Ey.prototype[by[n]];return Ey()};e3[YL]=!0;var JL,d3,QL=Object.create||function(t,e){var n;return t!==null?(f3.prototype=Qr(t),n=new f3,f3.prototype=null,n[YL]=t):n=Ey(),e===void 0?n:tgt(n,e)},ngt=It.RegExp,rgt=an(function(){var t=ngt(".","s");return!(t.dotAll&&t.exec(`
|
|
130
|
-
`)&&t.flags==="s")}),ogt=It.RegExp,igt=an(function(){var t=ogt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),agt=r3.get,ugt=YD("native-string-replace",String.prototype.replace),Cy=RegExp.prototype.exec,p3=Cy,sgt=zt("".charAt),lgt=zt("".indexOf),cgt=zt("".replace),h3=zt("".slice),g3=(d3=/b*/g,un(Cy,JL=/a/,"a"),un(Cy,d3,"a"),JL.lastIndex!==0||d3.lastIndex!==0),tR=KL.BROKEN_CARET,v3=/()??/.exec("")[1]!==void 0;(g3||v3||tR||rgt||igt)&&(p3=function(t){var e,n,r,o,i,a,u,s=this,l=agt(s),c=Ln(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=un(p3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=tR&&s.sticky,y=un($L,s),g=s.source,v=0,m=c;if(d&&(y=cgt(y,"y",""),lgt(y,"g")===-1&&(y+="g"),m=h3(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&sgt(c,s.lastIndex-1)!==`
|
|
131
|
-
`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),v3&&(n=new RegExp("^"+g+"$(?!\\s)",y)),g3&&(r=s.lastIndex),o=un(Cy,d?n:s,m),d?o?(o.input=h3(o.input,v),o[0]=h3(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:g3&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),v3&&o&&o.length>1&&un(ugt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=QL(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var uh=p3;Ja({target:"RegExp",proto:!0,forced:/./.exec!==uh},{exec:uh});var xy=Array.isArray||function(t){return Ya(t)=="Array"},eR=function(){},fgt=[],nR=th("Reflect","construct"),m3=/^\s*(?:class|function)\b/,dgt=zt(m3.exec),pgt=!m3.exec(eR),sh=function(t){if(!Bn(t))return!1;try{return nR(eR,fgt,t),!0}catch{return!1}},y3=!nR||an(function(){var t;return sh(sh.call)||!sh(Object)||!sh(function(){t=!0})||t})?function(t){if(!Bn(t))return!1;switch(s3(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return pgt||!!dgt(m3,t3(t))}:sh,rR=function(t,e,n){var r=ZD(e);r in t?nh.f(t,r,RD(0,n)):t[r]=n},hgt=Jr("species"),b3=function(t){return UD>=51||!an(function(){var e=[];return(e.constructor={})[hgt]=function(){return{foo:1}},e[t](Boolean).foo!==1})},ggt=zt([].slice),vgt=b3("slice"),mgt=Jr("species"),w3=It.Array,ygt=Math.max;function Eo(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >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 oR(t){var e=t.selection;if(e==null)return!1;var n=Eo(x.nodes(t,{match:function(i){return O.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=Eo(n,2)[1],o=x.start(t,r);if(Nt.equals(e.anchor,o))return!0}return!1}function iR(t,e){var n,r,o=x.nodes(t,{at:e,match:function(s){return O.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}Ja({target:"Array",proto:!0,forced:!vgt},{slice:function(t,e){var n,r,o,i=Qp(this),a=yy(i),u=ih(t,a),s=ih(e===void 0?a:e,a);if(xy(i)&&(n=i.constructor,(y3(n)&&(n===w3||xy(n.prototype))||Xr(n)&&(n=n[mgt])===null)&&(n=void 0),n===w3||n===void 0))return ggt(i,u,s);for(r=new(n===void 0?w3:n)(ygt(s-u,0)),o=0;u<s;u++,o++)u in i&&rR(r,o,i[u]);return r.length=o,r}});var aR=zt(zt.bind),bgt=Jr("species"),uR=It.Array,wgt=function(t,e){return new(function(n){var r;return xy(n)&&(r=n.constructor,(y3(r)&&(r===uR||xy(r.prototype))||Xr(r)&&(r=r[bgt])===null)&&(r=void 0)),r===void 0?uR:r}(t))(e===0?0:e)},sR=zt([].push),Qa=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=XD(s),g=DL(y),v=function(C,D){return FL(C),D===void 0?C:aR?aR(C,D):function(){return C.apply(D,arguments)}}(l,c),m=yy(g),h=0,w=f||wgt,E=e?w(s,m):n||a?w(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:sR(E,p)}else switch(t){case 4:return!1;case 7:sR(E,p)}return i?-1:r||o?o:E}},Sy={forEach:Qa(0),map:Qa(1),filter:Qa(2),some:Qa(3),every:Qa(4),find:Qa(5),findIndex:Qa(6),filterReject:Qa(7)},Egt=Sy.map;Ja({target:"Array",proto:!0,forced:!b3("map")},{map:function(t){return Egt(this,t,arguments.length>1?arguments[1]:void 0)}});var Cgt=u3?{}.toString:function(){return"[object "+s3(this)+"]"};function Dy(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function lR(t){return Dy(t).every(function(e){return!!e.isHeader})}u3||oh(Object.prototype,"toString",Cgt,{unsafe:!0});var xgt=i3.PROPER,E3=RegExp.prototype,cR=E3.toString,Sgt=zt($L),Dgt=an(function(){return cR.call({source:"a",flags:"b"})!="/a/b"}),Agt=xgt&&cR.name!="toString";(Dgt||Agt)&&oh(RegExp.prototype,"toString",function(){var t=Qr(this),e=Ln(t.source),n=t.flags;return"/"+e+"/"+Ln(n===void 0&&AL(E3,t)&&!("flags"in E3)?Sgt(t):n)},{unsafe:!0});var C3=Jr("unscopables"),x3=Array.prototype;x3[C3]==null&&nh.f(x3,C3,{configurable:!0,value:QL(null)});var _gt=Sy.find,fR=!0;"find"in[]&&Array(1).find(function(){fR=!1}),Ja({target:"Array",proto:!0,forced:fR},{find:function(t){return _gt(this,t,arguments.length>1?arguments[1]:void 0)}}),x3[C3].find=!0;var S3=Function.prototype,dR=S3.apply,Ogt=S3.bind,pR=S3.call,hR=typeof Reflect=="object"&&Reflect.apply||(Ogt?pR.bind(dR):function(){return pR.apply(dR,arguments)}),kgt=Jr("species"),D3=RegExp.prototype,gR=function(t,e,n,r){var o=Jr(t),i=!an(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!an(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[kgt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=zt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var y=zt(l),g=c.exec;return g===uh||g===D3.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});oh(String.prototype,t,s[0]),oh(D3,o,s[1])}r&&Ic(D3[o],"sham",!0)},Bgt=Jr("match"),Tgt=It.TypeError,Fgt=Jr("species"),Pgt=zt("".charAt),vR=zt("".charCodeAt),Ngt=zt("".slice),jgt=function(t){return function(e,n){var r,o,i=Ln(Xa(e)),a=my(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=vR(i,a))<55296||r>56319||a+1===u||(o=vR(i,a+1))<56320||o>57343?t?Pgt(i,a):r:t?Ngt(i,a,a+2):o-56320+(r-55296<<10)+65536}},Igt=jgt(!0),mR=function(t,e,n){return e+(n?Igt(t,e).length:1)},Lgt=It.Array,Rgt=Math.max,yR=function(t,e,n){for(var r=yy(t),o=ih(e,r),i=ih(n===void 0?r:n,r),a=Lgt(Rgt(i-o,0)),u=0;o<i;o++,u++)rR(a,u,t[o]);return a.length=u,a},Mgt=It.TypeError,A3=function(t,e){var n=t.exec;if(Bn(n)){var r=un(n,t,e);return r!==null&&Qr(r),r}if(Ya(t)==="RegExp")return un(uh,t,e);throw Mgt("RegExp#exec called on incompatible receiver")},Rc=KL.UNSUPPORTED_Y,Vgt=Math.min,bR=[].push,zgt=zt(/./.exec),Mc=zt(bR),lh=zt("".slice);gR("split",function(t,e,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=Ln(Xa(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!Xr(a=o)||!((u=a[Bgt])!==void 0?u:Ya(a)=="RegExp"))return un(e,s,o,l);for(var c,f,p,d=[],y=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),g=0,v=new RegExp(o.source,y+"g");(c=un(uh,v,s))&&!((f=v.lastIndex)>g&&(Mc(d,lh(s,g,c.index)),c.length>1&&c.index<s.length&&hR(bR,d,yR(c,1)),p=c[0].length,g=f,d.length>=l));)v.lastIndex===c.index&&v.lastIndex++;return g===s.length?!p&&zgt(v,"")||Mc(d,""):Mc(d,lh(s,g)),d.length>l?yR(d,0,l):d}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:un(e,this,o,i)}:e,[function(o,i){var a=Xa(this),u=o==null?void 0:$D(o,t);return u?un(u,o,a,i):un(r,Ln(a),o,i)},function(o,i){var a=Qr(this),u=Ln(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(E,C){var D,S=Qr(E).constructor;return S===void 0||(D=Qr(S)[Fgt])==null?C:function(A){if(y3(A))return A;throw Tgt(TL(A)+" is not a constructor")}(D)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Rc?"g":"y"),p=new l(Rc?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return A3(p,u)===null?[u]:[];for(var y=0,g=0,v=[];g<u.length;){p.lastIndex=Rc?0:g;var m,h=A3(p,Rc?lh(u,g):u);if(h===null||(m=Vgt(a3(p.lastIndex+(Rc?g:0)),u.length))===y)g=mR(u,g,c);else{if(Mc(v,lh(u,y,g)),v.length===d)return v;for(var w=1;w<=h.length-1;w++)if(Mc(v,h[w]),v.length===d)return v;g=y=m}}return Mc(v,lh(u,y)),v}]},!!an(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Rc);var _3=`
|
|
132
|
-
\v\f\r \u2028\u2029\uFEFF`,wR=zt("".replace),Ay="["+_3+"]",Hgt=RegExp("^"+Ay+Ay+"*"),Ugt=RegExp(Ay+Ay+"*$"),O3=function(t){return function(e){var n=Ln(Xa(e));return 1&t&&(n=wR(n,Hgt,"")),2&t&&(n=wR(n,Ugt,"")),n}},Wgt={start:O3(1),end:O3(2),trim:O3(3)},Ggt=i3.PROPER,qgt=Wgt.trim;function ER(t){return t.length?t[0].tagName.toLowerCase():""}Ja({target:"String",proto:!0,forced:function(t){return an(function(){return!!_3[t]()||"
"[t]()!=="
"||Ggt&&_3[t].name!==t})}("trim")},{trim:function(){return qgt(this)}}),Ja({global:!0},{globalThis:It}),Lr&&(T.fn.append=Lr),Ro&&(T.fn.on=Ro),ca&&(T.fn.focus=ca),Ir&&(T.fn.attr=Ir),Lo&&(T.fn.val=Lo),la&&(T.fn.html=la),Tl&&(T.fn.dataset=Tl),Ol&&(T.fn.addClass=Ol),kl&&(T.fn.removeClass=kl),jl&&(T.fn.children=jl),q0&&(T.fn.each=q0),Nl&&(T.fn.find=Nl);var ch=!1,CR=0,xR=0,fh=null,dh=null,ph=T("body");function SR(t){ch=!1,dh=null,fh=null,ph.off("mousemove",DR),ph.off("mouseup",SR)}ph.on("mousedown",function(t){var e=t.target;if((e.tagName==="TH"||e.tagName==="TD")&&e.style.cursor==="col-resize"){e.style.cursor="auto",t.preventDefault(),ch=!0;var n=t.clientX;CR=n;var r=e.getBoundingClientRect().width;xR=r,ph.on("mousemove",DR),ph.on("mouseup",SR)}});var DR=$u(function(t){if(ch&&dh!=null&&fh!=null){t.preventDefault();var e=t.clientX,n=xR+(e-CR);(n=Math.floor(100*n)/100)<30&&(n=30),I.setNodes(dh,{width:n.toString()},{at:fh})}},100),$gt={type:"table",renderElem:function(t,e,n){var r=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||z.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,p=O.findPath(u,s),d=x.start(u,p),y=x.end(u,p),g=Nt.compare(c,y)<=0&&Nt.compare(c,d)>=0,v=Nt.compare(f,y)<=0&&Nt.compare(f,d)>=0;return!!(g&&v&&j.equals(c.path.slice(0,3),f.path.slice(0,3)))}(n,t),o=t.width,i=o===void 0?"auto":o,a=wt("div",{className:"table-container","data-selected":O.isNodeSelected(n,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=O.findPath(n,t),l=x.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},wt("table",{width:i,contentEditable:r},wt("colgroup",null,Dy(t).map(function(u){var s=u.width;return wt("col",{width:s===void 0?"auto":s})})),wt("tbody",null,e)));return a}},Kgt={type:"table-row",renderElem:function(t,e,n){return wt("tr",null,e)}},Ygt={type:"table-cell",renderElem:function(t,e,n){var r=function(p,d){var y=O.getParentNode(p,d);if(y==null)return!1;var g=O.getParentNode(p,y);return g!=null&&Dy(g).some(function(v){return v===d})}(n,t),o=t,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 wt("td",{colSpan:a,rowSpan:s},e);var f=wt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:$u(function(p){var d=this.elm;if(d!=null){var y=d.getBoundingClientRect(),g=y.left,v=y.width,m=y.top,h=y.height,w=p.clientX,E=p.clientY;ch||(w>g+v-5&&w<g+v&&E>m&&E<m+h?(d.style.cursor="col-resize",dh=n,fh=O.findPath(n,t)):ch||(d.style.cursor="auto",dh=null,fh=null))}},100)}},e);return f}},Xgt={selector:"table",preParseHtml:function(t){var e=T(t);if(ER(e)!=="table")return t;var n=e.find("tbody");if(n.length===0)return t;var r=e.find("tr");return e.append(r),n.remove(),e[0]}},Zgt=Sy.filter;Ja({target:"Array",proto:!0,forced:!b3("filter")},{filter:function(t){return Zgt(this,t,arguments.length>1?arguments[1]:void 0)}});var Jgt=Math.floor,k3=zt("".charAt),Qgt=zt("".replace),B3=zt("".slice),t0t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,e0t=/\$([$&'`]|\d{1,2})/g,n0t=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=e0t;return o!==void 0&&(o=XD(o),s=t0t),Qgt(i,s,function(l,c){var f;switch(k3(c,0)){case"$":return"$";case"&":return t;case"`":return B3(e,0,n);case"'":return B3(e,a);case"<":f=o[B3(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Jgt(p/10);return d===0?l:d<=u?r[d-1]===void 0?k3(c,1):r[d-1]+k3(c,1):l}f=r[p-1]}return f===void 0?"":f})},T3=Jr("replace"),r0t=Math.max,o0t=Math.min,i0t=zt([].concat),F3=zt([].push),AR=zt("".indexOf),_R=zt("".slice),a0t="a".replace(/./,"$0")==="$0",OR=!!/./[T3]&&/./[T3]("a","$0")==="";gR("replace",function(t,e,n){var r=OR?"$":"$0";return[function(o,i){var a=Xa(this),u=o==null?void 0:$D(o,T3);return u?un(u,o,a,i):un(e,Ln(a),o,i)},function(o,i){var a=Qr(this),u=Ln(o);if(typeof i=="string"&&AR(i,r)===-1&&AR(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=Bn(i);l||(i=Ln(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=A3(a,u);if(d===null||(F3(p,d),!c))break;Ln(d[0])===""&&(a.lastIndex=mR(u,a3(a.lastIndex),f))}for(var y,g="",v=0,m=0;m<p.length;m++){for(var h=Ln((d=p[m])[0]),w=r0t(o0t(my(d.index),u.length),0),E=[],C=1;C<d.length;C++)F3(E,(y=d[C])===void 0?y:String(y));var D=d.groups;if(l){var S=i0t([h],E,w,u);D!==void 0&&F3(S,D);var A=Ln(hR(i,void 0,S))}else A=n0t(h,u,w,E,D,i);w>=v&&(g+=_R(u,v,w)+A,v=w+h.length)}return g+_R(u,v)}]},!!an(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!a0t||OR);var u0t={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=T(t);(e=e.filter(function(u){return!!at.isText(u)||!!n.isInline(u)})).length===0&&(e=[{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:ER(r)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},s0t={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"table-row",children:e.filter(function(r){return O.getNodeType(r)==="table-cell"})}}},l0t={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=T(t),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 p=f.split(":");p[0].trim()==="width"&&(u=p[1].trim())}}return u}(r)==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:e.filter(function(i){return O.getNodeType(i)==="table-row"})}}},c0t=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!z.isCollapsed(n)||!!O.getSelectedElems(e).some(function(r){var o=O.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getPanelContentElem=function(e){var n=this;if(this.$content)return this.$content[0];for(var r=T('<div class="w-e-panel-content-table"></div>'),o=T("<span>0 × 0</span>"),i=T("<table></table>"),a=0;a<10;a++){for(var u=T("<tr></tr>"),s=0;s<10;s++){var l=T("<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 p=T(f).dataset(),d=p.x,y=p.y;o[0].innerHTML=d+1+" × "+(y+1),i.children().each(function(g){T(g).children().each(function(v){var m=T(v),h=m.dataset(),w=h.x,E=h.y;w<=d&&E<=y?m.addClass("active"):m.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var p=T(f).dataset(),d=p.x,y=p.y;n.insertTable(e,y+1,d+1)}})}i.append(u)}return r.append(i),r.append(o),this.$content=r,r[0]},t.prototype.insertTable=function(e,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){O.isSelectedEmptyParagraph(e)&&I.removeNodes(e,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],p=0;p<s;p++){var d={type:"table-cell",children:[{text:""}]};c===0&&(d.isHeader=!0),f.push(d)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(o,i);I.insertNodes(e,a,{mode:"highest"})}},t}(),f0t=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||I.removeNodes(e,{mode:"highest"})},t}(),d0t=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!z.isCollapsed(n)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=Eo(x.nodes(e,{match:function(d){return O.checkNodeType(d,"table-cell")},universal:!0}),1),o=Eo(r[0],2),i=o[0],a=o[1],u=O.getParentNode(e,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=j.parent(a),p=j.next(f);I.insertNodes(e,l,{at:p})}}},t}(),p0t=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!z.isCollapsed(n)||O.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=Eo(x.nodes(e,{match:function(s){return O.checkNodeType(s,"table-row")},universal:!0}),1),o=Eo(r[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i);((u==null?void 0:u.children.length)||0)<=1?I.removeNodes(e,{mode:"highest"}):I.removeNodes(e,{at:a})}},t}(),kR={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},P3=QD("span").classList,BR=P3&&P3.constructor&&P3.constructor.prototype,h0t=BR===Object.prototype?void 0:BR,g0t=Sy.forEach,v0t=function(t,e){var n=[].forEach;return!!n&&an(function(){n.call(null,function(){throw 1},1)})}(),N3=v0t?[].forEach:function(t){return g0t(this,t,arguments.length>1?arguments[1]:void 0)},TR=function(t){if(t&&t.forEach!==N3)try{Ic(t,"forEach",N3)}catch{t.forEach=N3}};for(var j3 in kR)kR[j3]&&TR(It[j3]&&It[j3].prototype);TR(h0t);var m0t=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!z.isCollapsed(n)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=Eo(x.nodes(e,{match:function(l){return O.checkNodeType(l,"table-cell")},universal:!0}),1),o=Eo(r[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i);if(u!=null){var s=O.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){dt.isElement(l)&&(l.children||[]).forEach(function(f){var p=O.findPath(e,f);if(p.length===a.length&&bL(p.slice(-1),a.slice(-1))){var d={type:"table-cell",children:[{text:""}]};c===0&&lR(s)&&(d.isHeader=!0),I.insertNodes(e,d,{at:p})}})})}}},t}(),y0t=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!z.isCollapsed(n)||O.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=Eo(x.nodes(e,{match:function(c){return O.checkNodeType(c,"table-cell")},universal:!0}),1),o=Eo(r[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)I.removeNodes(e,{mode:"highest"});else{var l=O.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){dt.isElement(c)&&(c.children||[]).forEach(function(f){var p=O.findPath(e,f);p.length===a.length&&bL(p.slice(-1),a.slice(-1))&&I.removeNodes(e,{at:p})})})}}},t}(),b0t=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){var n=O.getSelectedNodeByType(e,"table");return n!=null&&lR(n)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!z.isCollapsed(n)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=!n,o=O.getSelectedNodeByType(e,"table");o!=null&&Dy(o).forEach(function(i){return I.setNodes(e,{isHeader:r},{at:O.findPath(e,i)})})}},t}(),w0t=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){var n=O.getSelectedNodeByType(e,"table");return n!=null&&n.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!z.isCollapsed(n)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r={width:n?"auto":"100%"};I.setNodes(e,r,{mode:"highest"})}},t}(),E0t={renderElems:[$gt,Kgt,Ygt],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var n=t.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+e+"</tbody></table>"}},{type:"table-row",elemToHtml:function(t,e){return"<tr>"+e+"</tr>"}},{type:"table-cell",elemToHtml:function(t,e){var n=t,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)+'">'+e+"</"+c+">"}}],preParseHtml:[Xgt],parseElemsHtml:[u0t,s0t,l0t],menus:[{key:"insertTable",factory:function(){return new c0t}},{key:"deleteTable",factory:function(){return new f0t}},{key:"insertTableRow",factory:function(){return new d0t}},{key:"deleteTableRow",factory:function(){return new p0t}},{key:"insertTableCol",factory:function(){return new m0t}},{key:"deleteTableCol",factory:function(){return new y0t}},{key:"tableHeader",factory:function(){return new b0t}},{key:"tableFullWidth",factory:function(){return new w0t}}],editorPlugin:function(t){var e=t.insertBreak,n=t.deleteBackward,r=t.deleteForward,o=t.normalizeNode,i=t.insertData,a=t.handleTab,u=t.selectAll,s=t;return s.insertBreak=function(){O.getSelectedNodeByType(s,"table")==null?e():s.insertText(`
|
|
133
|
-
`)},s.deleteBackward=function(l){if(!oR(s)){var c=s.selection;if(c){var f=x.before(s,c);if(f){var p=iR(s,f),d=iR(s,c);if(p&&!d)return}}n(l)}},s.handleTab=function(){var l;if(O.getSelectedNodeByType(s,"table")){var c=x.above(t);O.checkNodeType(c[0],"table-cell")&&I.select(t,c[1]);var f=x.next(t);if(f)f[0]&&f[0].text&&(f=(l=x.above(t,{at:f[1]}))!==null&&l!==void 0?l:f),I.select(t,f[1]);else{var p=s.children||[],d=p.length;if(O.checkNodeType(p[d-1],"table")){var y=O.genEmptyParagraph();I.insertNodes(s,y,{at:[d]}),s.handleTab()}}}else a()},s.deleteForward=function(l){oR(s)||r(l)},s.normalizeNode=function(l){var c=Eo(l,2),f=c[0],p=c[1];if(O.getNodeType(f)!=="table")return o([f,p]);if(O.isLastNode(s,f)){var d=O.genEmptyParagraph();I.insertNodes(s,d,{at:[p[0]+1]})}},s.insertData=function(l){if(O.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
|
|
134
|
-
`||/<img[^>]+>/.test(l.getData("text/html"))?i(l):x.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=O.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,p=l.focus;if(j.equals(f.path.slice(0,3),p.path.slice(0,3)))if(tt.string(c).length!==0){var d=O.findPath(s,c),y={anchor:x.start(s,d),focus:x.end(s,d)};s.select(y)}else u();else u()}else u()}else u()},s}};ir("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"}}),ir("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
|
|
135
|
-
Copyright (c) Microsoft Corporation.
|
|
136
|
-
|
|
137
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
138
|
-
purpose with or without fee is hereby granted.
|
|
139
|
-
|
|
140
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
141
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
142
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
143
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
144
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
145
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
146
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
147
|
-
***************************************************************************** */var _y=function(){return _y=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},_y.apply(this,arguments)};function Oy(t,e,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(t,e||[])).next())})}function ky(t,e){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=e.call(t,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 Ls(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >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 C0t(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=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.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(p){s({value:p,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var FR=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function I3(t){var e={exports:{}};return t(e,e.exports),e.exports}var tu,By,Ty=function(t){return t&&t.Math==Math&&t},ot=Ty(typeof globalThis=="object"&&globalThis)||Ty(typeof window=="object"&&window)||Ty(typeof self=="object"&&self)||Ty(typeof FR=="object"&&FR)||function(){return this}()||Function("return this")(),ye=function(t){try{return!!t()}catch{return!0}},Zo=!ye(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),hh=Function.prototype.call,ve=hh.bind?hh.bind(hh):function(){return hh.apply(hh,arguments)},PR={}.propertyIsEnumerable,NR=Object.getOwnPropertyDescriptor,x0t={f:NR&&!PR.call({1:2},1)?function(t){var e=NR(this,t);return!!e&&e.enumerable}:PR},Fy=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},jR=Function.prototype,L3=jR.bind,R3=jR.call,S0t=L3&&L3.bind(R3),At=L3?function(t){return t&&S0t(R3,t)}:function(t){return t&&function(){return R3.apply(t,arguments)}},D0t=At({}.toString),A0t=At("".slice),Jo=function(t){return A0t(D0t(t),8,-1)},M3=ot.Object,_0t=At("".split),V3=ye(function(){return!M3("z").propertyIsEnumerable(0)})?function(t){return Jo(t)=="String"?_0t(t,""):M3(t)}:M3,O0t=ot.TypeError,gh=function(t){if(t==null)throw O0t("Can't call method on "+t);return t},eu=function(t){return V3(gh(t))},se=function(t){return typeof t=="function"},Ee=function(t){return typeof t=="object"?t!==null:se(t)},k0t=function(t){return se(t)?t:void 0},Rs=function(t,e){return arguments.length<2?k0t(ot[t]):ot[t]&&ot[t][e]},vh=At({}.isPrototypeOf),Vc=Rs("navigator","userAgent")||"",IR=ot.process,LR=ot.Deno,RR=IR&&IR.versions||LR&&LR.version,MR=RR&&RR.v8;MR&&(By=(tu=MR.split("."))[0]>0&&tu[0]<4?1:+(tu[0]+tu[1])),!By&&Vc&&(!(tu=Vc.match(/Edge\/(\d+)/))||tu[1]>=74)&&(tu=Vc.match(/Chrome\/(\d+)/))&&(By=+tu[1]);var mh=By,z3=!!Object.getOwnPropertySymbols&&!ye(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&mh&&mh<41}),H3=z3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",B0t=ot.Object,U3=H3?function(t){return typeof t=="symbol"}:function(t){var e=Rs("Symbol");return se(e)&&vh(e.prototype,B0t(t))},T0t=ot.String,Py=function(t){try{return T0t(t)}catch{return"Object"}},F0t=ot.TypeError,nu=function(t){if(se(t))return t;throw F0t(Py(t)+" is not a function")},yh=function(t,e){var n=t[e];return n==null?void 0:nu(n)},P0t=ot.TypeError,N0t=Object.defineProperty,W3=function(t,e){try{N0t(ot,t,{value:e,configurable:!0,writable:!0})}catch{ot[t]=e}return e},ru=ot["__core-js_shared__"]||W3("__core-js_shared__",{}),G3=I3(function(t){(t.exports=function(e,n){return ru[e]||(ru[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),j0t=ot.Object,Ny=function(t){return j0t(gh(t))},I0t=At({}.hasOwnProperty),sn=Object.hasOwn||function(t,e){return I0t(Ny(t),e)},L0t=0,R0t=Math.random(),M0t=At(1 .toString),q3=function(t){return"Symbol("+(t===void 0?"":t)+")_"+M0t(++L0t+R0t,36)},bh=G3("wks"),Ms=ot.Symbol,VR=Ms&&Ms.for,V0t=H3?Ms:Ms&&Ms.withoutSetter||q3,$e=function(t){if(!sn(bh,t)||!z3&&typeof bh[t]!="string"){var e="Symbol."+t;z3&&sn(Ms,t)?bh[t]=Ms[t]:bh[t]=H3&&VR?VR(e):V0t(e)}return bh[t]},z0t=ot.TypeError,H0t=$e("toPrimitive"),$3=function(t){var e=function(n,r){if(!Ee(n)||U3(n))return n;var o,i=yh(n,H0t);if(i){if(r===void 0&&(r="default"),o=ve(i,n,r),!Ee(o)||U3(o))return o;throw z0t("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&se(s=a.toString)&&!Ee(l=ve(s,a))||se(s=a.valueOf)&&!Ee(l=ve(s,a))||u!=="string"&&se(s=a.toString)&&!Ee(l=ve(s,a)))return l;throw P0t("Can't convert object to primitive value")}(n,r)}(t,"string");return U3(e)?e:e+""},K3=ot.document,U0t=Ee(K3)&&Ee(K3.createElement),wh=function(t){return U0t?K3.createElement(t):{}},zR=!Zo&&!ye(function(){return Object.defineProperty(wh("div"),"a",{get:function(){return 7}}).a!=7}),HR=Object.getOwnPropertyDescriptor,Y3={f:Zo?HR:function(t,e){if(t=eu(t),e=$3(e),zR)try{return HR(t,e)}catch{}if(sn(t,e))return Fy(!ve(x0t.f,t,e),t[e])}},W0t=ot.String,G0t=ot.TypeError,wn=function(t){if(Ee(t))return t;throw G0t(W0t(t)+" is not an object")},q0t=ot.TypeError,UR=Object.defineProperty,Fi={f:Zo?UR:function(t,e,n){if(wn(t),e=$3(e),wn(n),zR)try{return UR(t,e,n)}catch{}if("get"in n||"set"in n)throw q0t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},ou=Zo?function(t,e,n){return Fi.f(t,e,Fy(1,n))}:function(t,e,n){return t[e]=n,t},$0t=At(Function.toString);se(ru.inspectSource)||(ru.inspectSource=function(t){return $0t(t)});var jy,Eh,Iy,Ly=ru.inspectSource,WR=ot.WeakMap,GR=se(WR)&&/native code/.test(Ly(WR)),qR=G3("keys"),X3=function(t){return qR[t]||(qR[t]=q3(t))},Ry={},Z3=ot.TypeError,K0t=ot.WeakMap;if(GR||ru.state){var Vs=ru.state||(ru.state=new K0t),Y0t=At(Vs.get),$R=At(Vs.has),X0t=At(Vs.set);jy=function(t,e){if($R(Vs,t))throw new Z3("Object already initialized");return e.facade=t,X0t(Vs,t,e),e},Eh=function(t){return Y0t(Vs,t)||{}},Iy=function(t){return $R(Vs,t)}}else{var zc=X3("state");Ry[zc]=!0,jy=function(t,e){if(sn(t,zc))throw new Z3("Object already initialized");return e.facade=t,ou(t,zc,e),e},Eh=function(t){return sn(t,zc)?t[zc]:{}},Iy=function(t){return sn(t,zc)}}var kr={set:jy,get:Eh,has:Iy,enforce:function(t){return Iy(t)?Eh(t):jy(t,{})},getterFor:function(t){return function(e){var n;if(!Ee(e)||(n=Eh(e)).type!==t)throw Z3("Incompatible receiver, "+t+" required");return n}}},KR=Function.prototype,Z0t=Zo&&Object.getOwnPropertyDescriptor,J3=sn(KR,"name"),Hc={EXISTS:J3,PROPER:J3&&(function(){}).name==="something",CONFIGURABLE:J3&&(!Zo||Zo&&Z0t(KR,"name").configurable)},Br=I3(function(t){var e=Hc.CONFIGURABLE,n=kr.get,r=kr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;se(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!sn(u,"name")||e&&u.name!==d)&&ou(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==ot?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ou(i,a,u)):f?i[a]=u:W3(a,u)})(Function.prototype,"toString",function(){return se(this)&&n(this).source||Ly(this)})}),J0t=Math.ceil,Q0t=Math.floor,My=function(t){var e=+t;return e!=e||e===0?0:(e>0?Q0t:J0t)(e)},tvt=Math.max,evt=Math.min,Ch=function(t,e){var n=My(t);return n<0?tvt(n+e,0):evt(n,e)},nvt=Math.min,YR=function(t){return t>0?nvt(My(t),9007199254740991):0},xh=function(t){return YR(t.length)},XR=function(t){return function(e,n,r){var o,i=eu(e),a=xh(i),u=Ch(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},ZR={includes:XR(!0),indexOf:XR(!1)},rvt=ZR.indexOf,JR=At([].push),QR=function(t,e){var n,r=eu(t),o=0,i=[];for(n in r)!sn(Ry,n)&&sn(r,n)&&JR(i,n);for(;e.length>o;)sn(r,n=e[o++])&&(~rvt(i,n)||JR(i,n));return i},Vy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ovt=Vy.concat("length","prototype"),zy={f:Object.getOwnPropertyNames||function(t){return QR(t,ovt)}},ivt={f:Object.getOwnPropertySymbols},avt=At([].concat),uvt=Rs("Reflect","ownKeys")||function(t){var e=zy.f(wn(t)),n=ivt.f;return n?avt(e,n(t)):e},svt=function(t,e){for(var n=uvt(e),r=Fi.f,o=Y3.f,i=0;i<n.length;i++){var a=n[i];sn(t,a)||r(t,a,o(e,a))}},lvt=/#|\.prototype\./,Sh=function(t,e){var n=fvt[cvt(t)];return n==pvt||n!=dvt&&(se(e)?ye(e):!!e)},cvt=Sh.normalize=function(t){return String(t).replace(lvt,".").toLowerCase()},fvt=Sh.data={},dvt=Sh.NATIVE="N",pvt=Sh.POLYFILL="P",Hy=Sh,hvt=Y3.f,lr=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?ot:l?ot[u]||W3(u,{}):(ot[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=hvt(n,r))&&a.value:n[r],!Hy(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;svt(i,o)}(t.sham||o&&o.sham)&&ou(i,"sham",!0),Br(n,r,i,t)}},tM={};tM[$e("toStringTag")]="z";var Q3=String(tM)==="[object z]",gvt=$e("toStringTag"),vvt=ot.Object,mvt=Jo(function(){return arguments}())=="Arguments",Uy=Q3?Jo:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=vvt(t),gvt))=="string"?n:mvt?Jo(e):(r=Jo(e))=="Object"&&se(e.callee)?"Arguments":r},yvt=ot.String,to=function(t){if(Uy(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return yvt(t)},t6=`
|
|
148
|
-
\v\f\r \u2028\u2029\uFEFF`,eM=At("".replace),Wy="["+t6+"]",bvt=RegExp("^"+Wy+Wy+"*"),wvt=RegExp(Wy+Wy+"*$"),e6=function(t){return function(e){var n=to(gh(e));return 1&t&&(n=eM(n,bvt,"")),2&t&&(n=eM(n,wvt,"")),n}},Evt={start:e6(1),end:e6(2),trim:e6(3)},Cvt=Hc.PROPER,xvt=Evt.trim;function nM(t){return t.length?t[0].tagName.toLowerCase():""}function rM(t,e,n){e===void 0&&(e="auto"),n===void 0&&(n="auto");var r=T(t);return r.attr("width",e),r.attr("height",n),r[0].outerHTML}lr({target:"String",proto:!0,forced:ye(function(){return!!t6.trim()||"
".trim()!=="
"||Cvt&&t6.trim.name!=="trim"})},{trim:function(){return xvt(this)}}),lr({global:!0},{globalThis:ot}),Lr&&(T.fn.append=Lr),Ro&&(T.fn.on=Ro),ca&&(T.fn.focus=ca),Ir&&(T.fn.attr=Ir),Lo&&(T.fn.val=Lo),la&&(T.fn.html=la),Pl&&(T.fn.parent=Pl),Bl&&(T.fn.hasClass=Bl),Ll&&(T.fn.empty=Ll);var Gy,Svt={type:"video",renderElem:function(t,e,n){var r,o=t,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,p=f===void 0?"auto":f,d=O.isNodeSelected(n,t);if(a.trim().indexOf("<iframe ")===0)r=wt("div",{className:"w-e-textarea-video-container","data-selected":d?"true":"",innerHTML:rM(a,c,p)});else{var y=wt("video",{poster:s,controls:!0},wt("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
|
|
149
|
-
抱歉,浏览器不支持 video 视频`);c!=="auto"&&(y.data.width=c),p!=="auto"&&(y.data.height=p),r=wt("div",{className:"w-e-textarea-video-container","data-selected":d?"true":""},y)}return Rl("div",{props:{contentEditable:!1},on:{mousedown:function(g){return g.preventDefault()}}},r)}},Dvt={type:"video",elemToHtml:function(t,e){var n=t,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>
|
|
150
|
-
`;return o.trim().indexOf("<iframe ")===0?f+=rM(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
|
|
151
|
-
</div>`}},Avt=Object.keys||function(t){return QR(t,Vy)},_vt=Zo?Object.defineProperties:function(t,e){wn(t);for(var n,r=eu(e),o=Avt(e),i=o.length,a=0;i>a;)Fi.f(t,n=o[a++],r[n]);return t},n6=Rs("document","documentElement"),oM=X3("IE_PROTO"),r6=function(){},iM=function(t){return"<script>"+t+"<\/script>"},aM=function(t){t.write(iM("")),t.close();var e=t.parentWindow.Object;return t=null,e},qy=function(){try{Gy=new ActiveXObject("htmlfile")}catch{}var t,e;qy=typeof document<"u"?document.domain&&Gy?aM(Gy):((e=wh("iframe")).style.display="none",n6.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(iM("document.F=Object")),t.close(),t.F):aM(Gy);for(var n=Vy.length;n--;)delete qy.prototype[Vy[n]];return qy()};Ry[oM]=!0;var o6=Object.create||function(t,e){var n;return t!==null?(r6.prototype=wn(t),n=new r6,r6.prototype=null,n[oM]=t):n=qy(),e===void 0?n:_vt(n,e)},i6=$e("unscopables"),a6=Array.prototype;a6[i6]==null&&Fi.f(a6,i6,{configurable:!0,value:o6(null)});var Dh=function(t){a6[i6][t]=!0},Ovt=ZR.includes;lr({target:"Array",proto:!0},{includes:function(t){return Ovt(this,t,arguments.length>1?arguments[1]:void 0)}}),Dh("includes");var kvt={selector:"iframe,video,p",preParseHtml:function(t){var e=T(t),n=e;if(nM(e)==="p"){var r=e.children();if(r.length===1){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=T(o))}}var a=nM(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var u=T('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},uM=At(At.bind),Ah=function(t,e){return nu(t),e===void 0?t:uM?uM(t,e):function(){return t.apply(e,arguments)}},$y=Array.isArray||function(t){return Jo(t)=="Array"},sM=function(){},Bvt=[],lM=Rs("Reflect","construct"),u6=/^\s*(?:class|function)\b/,Tvt=At(u6.exec),Fvt=!u6.exec(sM),_h=function(t){if(!se(t))return!1;try{return lM(sM,Bvt,t),!0}catch{return!1}},s6=!lM||ye(function(){var t;return _h(_h.call)||!_h(Object)||!_h(function(){t=!0})||t})?function(t){if(!se(t))return!1;switch(Uy(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Fvt||!!Tvt(u6,Ly(t))}:_h,Pvt=$e("species"),cM=ot.Array,Nvt=function(t,e){return new(function(n){var r;return $y(n)&&(r=n.constructor,(s6(r)&&(r===cM||$y(r.prototype))||Ee(r)&&(r=r[Pvt])===null)&&(r=void 0)),r===void 0?cM:r}(t))(e===0?0:e)},fM=At([].push),iu=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=Ny(s),g=V3(y),v=Ah(l,c),m=xh(g),h=0,w=f||Nvt,E=e?w(s,m):n||a?w(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:fM(E,p)}else switch(t){case 4:return!1;case 7:fM(E,p)}return i?-1:r||o?o:E}},l6={forEach:iu(0),map:iu(1),filter:iu(2),some:iu(3),every:iu(4),find:iu(5),findIndex:iu(6),filterReject:iu(7)},jvt=l6.find,dM=!0;"find"in[]&&Array(1).find(function(){dM=!1}),lr({target:"Array",proto:!0,forced:dM},{find:function(t){return jvt(this,t,arguments.length>1?arguments[1]:void 0)}}),Dh("find");var Ivt=Q3?{}.toString:function(){return"[object "+Uy(this)+"]"};function pM(t,e,n,r){return e===void 0&&(e=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:t,poster:e,width:n,height:r,children:[{text:""}]}}Q3||Br(Object.prototype,"toString",Ivt,{unsafe:!0});var hM,c6,Lvt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=T(t),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",pM(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",pM(o,i=l.attr("poster")||"",a,u)}},gM=function(){var t=wn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},f6=ot.RegExp,d6=ye(function(){var t=f6("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Rvt=d6||ye(function(){return!f6("a","y").sticky}),Mvt={BROKEN_CARET:d6||ye(function(){var t=f6("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Rvt,UNSUPPORTED_Y:d6},Vvt=ot.RegExp,zvt=ye(function(){var t=Vvt(".","s");return!(t.dotAll&&t.exec(`
|
|
152
|
-
`)&&t.flags==="s")}),Hvt=ot.RegExp,Uvt=ye(function(){var t=Hvt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Wvt=kr.get,Gvt=G3("native-string-replace",String.prototype.replace),Ky=RegExp.prototype.exec,p6=Ky,qvt=At("".charAt),$vt=At("".indexOf),Kvt=At("".replace),h6=At("".slice),g6=(c6=/b*/g,ve(Ky,hM=/a/,"a"),ve(Ky,c6,"a"),hM.lastIndex!==0||c6.lastIndex!==0),vM=Mvt.BROKEN_CARET,v6=/()??/.exec("")[1]!==void 0;(g6||v6||vM||zvt||Uvt)&&(p6=function(t){var e,n,r,o,i,a,u,s=this,l=Wvt(s),c=to(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ve(p6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=vM&&s.sticky,y=ve(gM,s),g=s.source,v=0,m=c;if(d&&(y=Kvt(y,"y",""),$vt(y,"g")===-1&&(y+="g"),m=h6(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&qvt(c,s.lastIndex-1)!==`
|
|
153
|
-
`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),v6&&(n=new RegExp("^"+g+"$(?!\\s)",y)),g6&&(r=s.lastIndex),o=ve(Ky,d?n:s,m),d?o?(o.input=h6(o.input,v),o[0]=h6(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:g6&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),v6&&o&&o.length>1&&ve(Gvt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=o6(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Yy=p6;lr({target:"RegExp",proto:!0,forced:/./.exec!==Yy},{exec:Yy});var m6=Function.prototype,mM=m6.apply,Yvt=m6.bind,yM=m6.call,bM=typeof Reflect=="object"&&Reflect.apply||(Yvt?yM.bind(mM):function(){return yM.apply(mM,arguments)}),wM=($e("species"),RegExp.prototype),Xvt=At("".charAt),EM=At("".charCodeAt),Zvt=At("".slice),CM=function(t){return function(e,n){var r,o,i=to(gh(e)),a=My(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=EM(i,a))<55296||r>56319||a+1===u||(o=EM(i,a+1))<56320||o>57343?t?Xvt(i,a):r:t?Zvt(i,a,a+2):o-56320+(r-55296<<10)+65536}},xM={codeAt:CM(!1),charAt:CM(!0)},Jvt=xM.charAt,Qvt=function(t,e,n){return e+(n?Jvt(t,e).length:1)},tmt=Math.floor,y6=At("".charAt),emt=At("".replace),b6=At("".slice),nmt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,rmt=/\$([$&'`]|\d{1,2})/g,omt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=rmt;return o!==void 0&&(o=Ny(o),s=nmt),emt(i,s,function(l,c){var f;switch(y6(c,0)){case"$":return"$";case"&":return t;case"`":return b6(e,0,n);case"'":return b6(e,a);case"<":f=o[b6(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=tmt(p/10);return d===0?l:d<=u?r[d-1]===void 0?y6(c,1):r[d-1]+y6(c,1):l}f=r[p-1]}return f===void 0?"":f})},imt=ot.TypeError,amt=function(t,e){var n=t.exec;if(se(n)){var r=ve(n,t,e);return r!==null&&wn(r),r}if(Jo(t)==="RegExp")return ve(Yy,t,e);throw imt("RegExp#exec called on incompatible receiver")},w6=$e("replace"),umt=Math.max,smt=Math.min,lmt=At([].concat),E6=At([].push),SM=At("".indexOf),DM=At("".slice),cmt="a".replace(/./,"$0")==="$0",AM=!!/./[w6]&&/./[w6]("a","$0")==="";function _M(t){return t===void 0&&(t="r"),t+"-"+xO()}(function(t,e,n,r){var o=$e(t),i=!ye(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ye(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=At(/./[o]),s=function(l,c,f){var p=AM?"$":"$0";return[function(d,y){var g=gh(this),v=d==null?void 0:yh(d,w6);return v?ve(v,d,g,y):ve(c,to(g),d,y)},function(d,y){var g=wn(this),v=to(d);if(typeof y=="string"&&SM(y,p)===-1&&SM(y,"$<")===-1){var m=f(c,g,v,y);if(m.done)return m.value}var h=se(y);h||(y=to(y));var w=g.global;if(w){var E=g.unicode;g.lastIndex=0}for(var C=[];;){var D=amt(g,v);if(D===null||(E6(C,D),!w))break;to(D[0])===""&&(g.lastIndex=Qvt(v,YR(g.lastIndex),E))}for(var S,A="",k=0,R=0;R<C.length;R++){for(var V=to((D=C[R])[0]),L=umt(smt(My(D.index),v.length),0),W=[],H=1;H<D.length;H++)E6(W,(S=D[H])===void 0?S:String(S));var U=D.groups;if(h){var $=lmt([V],W,L,v);U!==void 0&&E6($,U);var J=to(bM(y,void 0,$))}else J=omt(V,v,L,W,U,y);L>=k&&(A+=DM(v,k,L)+J,k=L+V.length)}return A+DM(v,k)}]}(0,""[t],function(l,c,f,p,d){var y=At(l),g=c.exec;return g===Yy||g===wM.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});Br(String.prototype,t,s[0]),Br(wM,o,s[1])}})("replace",0,!!ye(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!cmt||AM);var Xy=ot.Promise,Zy=function(t,e,n){for(var r in e)Br(t,r,e[r],n);return t},fmt=ot.String,dmt=ot.TypeError,Uc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=At(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return wn(r),function(i){if(typeof i=="object"||se(i))return i;throw dmt("Can't set "+fmt(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),pmt=Fi.f,OM=$e("toStringTag"),Jy=function(t,e,n){t&&!sn(t=n?t:t.prototype,OM)&&pmt(t,OM,{configurable:!0,value:e})},kM=$e("species"),hmt=ot.TypeError,C6=function(t,e){if(vh(e,t))return t;throw hmt("Incorrect invocation")},Wc={},gmt=$e("iterator"),vmt=Array.prototype,mmt=$e("iterator"),BM=function(t){if(t!=null)return yh(t,mmt)||yh(t,"@@iterator")||Wc[Uy(t)]},ymt=ot.TypeError,TM=function(t,e,n){var r,o;wn(t);try{if(!(r=yh(t,"return"))){if(e==="throw")throw n;return n}r=ve(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return wn(r),n},bmt=ot.TypeError,Qy=function(t,e){this.stopped=t,this.result=e},FM=Qy.prototype,t1=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Ah(e,f),v=function(h){return r&&TM(r,"normal",h),new Qy(!0,h)},m=function(h){return p?(wn(h),y?g(h[0],h[1],v):g(h[0],h[1])):y?g(h,v):g(h)};if(d)r=t;else{if(!(o=BM(t)))throw bmt(Py(t)+" is not iterable");if((c=o)!==void 0&&(Wc.Array===c||vmt[gmt]===c)){for(i=0,a=xh(t);a>i;i++)if((u=m(t[i]))&&vh(FM,u))return u;return new Qy(!1)}r=function(h,w){var E=arguments.length<2?BM(h):w;if(nu(E))return wn(ve(E,h));throw ymt(Py(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=ve(s,r)).done;){try{u=m(l.value)}catch(h){TM(r,"throw",h)}if(typeof u=="object"&&u&&vh(FM,u))return u}return new Qy(!1)},PM=$e("iterator"),NM=!1;try{var wmt=0,jM={next:function(){return{done:!!wmt++}},return:function(){NM=!0}};jM[PM]=function(){return this},Array.from(jM,function(){throw 2})}catch{}var Oh,Gc,IM,x6,LM=function(t,e){if(!e&&!NM)return!1;var n=!1;try{var r={};r[PM]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},Emt=ot.TypeError,Cmt=$e("species"),RM=At([].slice),MM=/(?:ipad|iphone|ipod).*applewebkit/i.test(Vc),au=Jo(ot.process)=="process",S6=ot.setImmediate,D6=ot.clearImmediate,xmt=ot.process,A6=ot.Dispatch,Smt=ot.Function,VM=ot.MessageChannel,Dmt=ot.String,_6=0,kh={};try{Oh=ot.location}catch{}var O6=function(t){if(sn(kh,t)){var e=kh[t];delete kh[t],e()}},k6=function(t){return function(){O6(t)}},zM=function(t){O6(t.data)},HM=function(t){ot.postMessage(Dmt(t),Oh.protocol+"//"+Oh.host)};S6&&D6||(S6=function(t){var e=RM(arguments,1);return kh[++_6]=function(){bM(se(t)?t:Smt(t),void 0,e)},Gc(_6),_6},D6=function(t){delete kh[t]},au?Gc=function(t){xmt.nextTick(k6(t))}:A6&&A6.now?Gc=function(t){A6.now(k6(t))}:VM&&!MM?(x6=(IM=new VM).port2,IM.port1.onmessage=zM,Gc=Ah(x6.postMessage,x6)):ot.addEventListener&&se(ot.postMessage)&&!ot.importScripts&&Oh&&Oh.protocol!=="file:"&&!ye(HM)?(Gc=HM,ot.addEventListener("message",zM,!1)):Gc="onreadystatechange"in wh("script")?function(t){n6.appendChild(wh("script")).onreadystatechange=function(){n6.removeChild(this),O6(t)}}:function(t){setTimeout(k6(t),0)});var Bh,zs,Th,qc,B6,T6,F6,UM,WM={set:S6,clear:D6},Amt=/ipad|iphone|ipod/i.test(Vc)&&ot.Pebble!==void 0,_mt=/web0s(?!.*chrome)/i.test(Vc),Omt=Y3.f,P6=WM.set,GM=ot.MutationObserver||ot.WebKitMutationObserver,qM=ot.document,$M=ot.process,e1=ot.Promise,KM=Omt(ot,"queueMicrotask"),YM=KM&&KM.value;YM||(Bh=function(){var t,e;for(au&&(t=$M.domain)&&t.exit();zs;){e=zs.fn,zs=zs.next;try{e()}catch(n){throw zs?qc():Th=void 0,n}}Th=void 0,t&&t.enter()},MM||au||_mt||!GM||!qM?!Amt&&e1&&e1.resolve?((F6=e1.resolve(void 0)).constructor=e1,UM=Ah(F6.then,F6),qc=function(){UM(Bh)}):au?qc=function(){$M.nextTick(Bh)}:(P6=Ah(P6,ot),qc=function(){P6(Bh)}):(B6=!0,T6=qM.createTextNode(""),new GM(Bh).observe(T6,{characterData:!0}),qc=function(){T6.data=B6=!B6}));var N6,XM,ZM,JM,QM=YM||function(t){var e={fn:t,next:void 0};Th&&(Th.next=e),zs||(zs=e,qc()),Th=e},kmt=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=nu(e),this.reject=nu(n)},j6={f:function(t){return new kmt(t)}},I6=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Bmt=typeof window=="object",tV=WM.set,Tmt=$e("species"),Pi="Promise",eV=kr.getterFor(Pi),Fmt=kr.set,Pmt=kr.getterFor(Pi),Hs=Xy&&Xy.prototype,Qo=Xy,Fh=Hs,nV=ot.TypeError,L6=ot.document,R6=ot.process,$c=j6.f,Nmt=$c,jmt=!!(L6&&L6.createEvent&&ot.dispatchEvent),rV=se(ot.PromiseRejectionEvent),oV=!1,Ph=Hy(Pi,function(){var t=Ly(Qo),e=t!==String(Qo);if(!e&&mh===66)return!0;if(mh>=51&&/native code/.test(t))return!1;var n=new Qo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Tmt]=r,!(oV=n.then(function(){})instanceof r)||!e&&Bmt&&!rV}),Imt=Ph||!LM(function(t){Qo.all(t).catch(function(){})}),iV=function(t){var e;return!(!Ee(t)||!se(e=t.then))&&e},M6=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;QM(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&Rmt(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(nV("Promise-chain cycle")):(u=iV(a))?ve(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Lmt(t)})}},aV=function(t,e,n){var r,o;jmt?((r=L6.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),ot.dispatchEvent(r)):r={promise:e,reason:n},!rV&&(o=ot["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=ot.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},Lmt=function(t){ve(tV,ot,function(){var e,n=t.facade,r=t.value;if(uV(t)&&(e=I6(function(){au?R6.emit("unhandledRejection",r,n):aV("unhandledrejection",n,r)}),t.rejection=au||uV(t)?2:1,e.error))throw e.value})},uV=function(t){return t.rejection!==1&&!t.parent},Rmt=function(t){ve(tV,ot,function(){var e=t.facade;au?R6.emit("rejectionHandled",e):aV("rejectionhandled",e,t.value)})},Kc=function(t,e,n){return function(r){t(e,r,n)}},Yc=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,M6(t,!0))},V6=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw nV("Promise can't be resolved itself");var r=iV(e);r?QM(function(){var o={done:!1};try{ve(r,e,Kc(V6,o,t),Kc(Yc,o,t))}catch(i){Yc(o,i,t)}}):(t.value=e,t.state=1,M6(t,!1))}catch(o){Yc({done:!1},o,t)}}};if(Ph&&(Fh=(Qo=function(t){C6(this,Fh),nu(t),ve(N6,this);var e=eV(this);try{t(Kc(V6,e),Kc(Yc,e))}catch(n){Yc(e,n)}}).prototype,(N6=function(t){Fmt(this,{type:Pi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Zy(Fh,{then:function(t,e){var n=Pmt(this),r=n.reactions,o=$c(function(i,a){var u,s=wn(i).constructor;return s===void 0||(u=wn(s)[Cmt])==null?a:function(l){if(s6(l))return l;throw Emt(Py(l)+" is not a constructor")}(u)}(this,Qo));return o.ok=!se(t)||t,o.fail=se(e)&&e,o.domain=au?R6.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&M6(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),XM=function(){var t=new N6,e=eV(t);this.promise=t,this.resolve=Kc(V6,e),this.reject=Kc(Yc,e)},j6.f=$c=function(t){return t===Qo||t===ZM?new XM(t):Nmt(t)},se(Xy)&&Hs!==Object.prototype)){JM=Hs.then,oV||(Br(Hs,"then",function(t,e){var n=this;return new Qo(function(r,o){ve(JM,n,r,o)}).then(t,e)},{unsafe:!0}),Br(Hs,"catch",Fh.catch,{unsafe:!0}));try{delete Hs.constructor}catch{}Uc&&Uc(Hs,Fh)}function Nh(t,e,n){return n===void 0&&(n=""),Oy(this,void 0,void 0,function(){var r,o,i,a,u,s,l;return ky(this,function(c){switch(c.label){case 0:return e?(t.restoreSelection(),r=t.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(e,n)]):[2];case 1:return typeof(u=c.sent())=="string"?(t.alert(u,"error"),[2]):u==null?[2]:[4,a(e)];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(){I.insertNodes(t,l)}),o(l),[2]}})})}function z6(){return _M("w-e-insert-video")}lr({global:!0,wrap:!0,forced:Ph},{Promise:Qo}),Jy(Qo,Pi,!1),function(t){var e=Rs("Promise"),n=Fi.f;Zo&&e&&!e[kM]&&n(e,kM,{configurable:!0,get:function(){return this}})}(),ZM=Rs(Pi),lr({target:Pi,stat:!0,forced:Ph},{reject:function(t){var e=$c(this);return ve(e.reject,void 0,t),e.promise}}),lr({target:Pi,stat:!0,forced:Ph},{resolve:function(t){return function(e,n){if(wn(e),Ee(n)&&n.constructor===e)return n;var r=j6.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),lr({target:Pi,stat:!0,forced:Imt},{all:function(t){var e=this,n=$c(e),r=n.resolve,o=n.reject,i=I6(function(){var a=nu(e.resolve),u=[],s=0,l=1;t1(t,function(c){var f=s++,p=!1;l++,ve(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=$c(e),r=n.reject,o=I6(function(){var i=nu(e.resolve);t1(t,function(a){ve(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Mmt=function(){function t(){this.title=et("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=z6(),this.posterInputId=z6(),this.buttonId=z6()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!z.isCollapsed(n)||!!O.getSelectedElems(e).some(function(r){var o=O.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,u=Ls(xr(et("videoModule.videoSrc"),o,et("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Ls(xr(et("videoModule.videoPoster"),i,et("videoModule.videoPosterPlaceHolder")),2),f=c[0],p=c[1],d=T(l),y=T(p),g=Ls(fc(a,et("videoModule.ok")),1)[0];if(this.$content==null){var v=T("<div></div>");v.on("click","#"+a,function(h){return Oy(n,void 0,void 0,function(){var w,E;return ky(this,function(C){switch(C.label){case 0:return h.preventDefault(),w=v.find("#"+o).val().trim(),E=v.find("#"+i).val().trim(),[4,Nh(e,w,E)];case 1:return C.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=v}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(g),d.val(""),y.val(""),setTimeout(function(){d.focus()}),m[0]},t}(),Vmt=At([].join),zmt=V3!=Object,Hmt=function(t,e){var n=[].join;return!!n&&ye(function(){n.call(null,",",1)})}();lr({target:"Array",proto:!0,forced:zmt||!Hmt},{join:function(t){return Vmt(eu(this),t===void 0?",":t)}});var Us,sV,lV,Umt=!ye(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),cV=X3("IE_PROTO"),H6=ot.Object,Wmt=H6.prototype,n1=Umt?H6.getPrototypeOf:function(t){var e=Ny(t);if(sn(e,cV))return e[cV];var n=e.constructor;return se(n)&&e instanceof n?n.prototype:e instanceof H6?Wmt:null},U6=$e("iterator"),fV=!1;[].keys&&("next"in(lV=[].keys())?(sV=n1(n1(lV)))!==Object.prototype&&(Us=sV):fV=!0);var Gmt=Us==null||ye(function(){var t={};return Us[U6].call(t)!==t});Gmt&&(Us={}),se(Us[U6])||Br(Us,U6,function(){return this});var W6={IteratorPrototype:Us,BUGGY_SAFARI_ITERATORS:fV},qmt=W6.IteratorPrototype,$mt=function(){return this},Kmt=Hc.PROPER,Ymt=Hc.CONFIGURABLE,dV=W6.IteratorPrototype,r1=W6.BUGGY_SAFARI_ITERATORS,jh=$e("iterator"),Xmt=function(){return this},pV=function(t,e,n,r,o,i,a){(function(m,h,w,E){var C=h+" Iterator";m.prototype=o6(qmt,{next:Fy(1,w)}),Jy(m,C,!1),Wc[C]=$mt})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!r1&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[jh]||d["@@iterator"]||o&&d[o],g=!r1&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=n1(v.call(new t)))!==Object.prototype&&u.next&&(n1(u)!==dV&&(Uc?Uc(u,dV):se(u[jh])||Br(u,jh,Xmt)),Jy(u,f,!0)),Kmt&&o=="values"&&y&&y.name!=="values"&&(Ymt?ou(d,"name","values"):(p=!0,g=function(){return ve(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(r1||p||!(l in d))&&Br(d,l,s[l]);else lr({target:e,proto:!0,forced:r1||p},s);return d[jh]!==g&&Br(d,jh,g,{name:o}),Wc[e]=g,s},Zmt=kr.set,Jmt=kr.getterFor("Array Iterator"),Ih=pV(Array,"Array",function(t,e){Zmt(this,{type:"Array Iterator",target:eu(t),index:0,kind:e})},function(){var t=Jmt(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Wc.Arguments=Wc.Array,Dh("keys"),Dh("values"),Dh("entries");var Qmt=xM.charAt,tyt=kr.set,eyt=kr.getterFor("String Iterator");pV(String,"String",function(t){tyt(this,{type:"String Iterator",string:to(t),index:0})},function(){var t,e=eyt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Qmt(n,r),e.index+=t.length,{value:t,done:!1})});var hV=function(t,e,n){var r=$3(e);r in t?Fi.f(t,r,Fy(0,n)):t[r]=n},nyt=ot.Array,ryt=Math.max,gV=zy.f,vV=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],oyt={f:function(t){return vV&&Jo(t)=="Window"?function(e){try{return gV(e)}catch{return function(r,o,i){for(var a=xh(r),u=Ch(void 0,a),s=Ch(a,a),l=nyt(ryt(s-u,0)),c=0;u<s;u++,c++)hV(l,c,r[u]);return l.length=c,l}(vV)}}(t):gV(eu(t))}},mV=ye(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),o1=Object.isExtensible,Ws=ye(function(){o1(1)})||mV?function(t){return!!Ee(t)&&(!mV||Jo(t)!="ArrayBuffer")&&(!o1||o1(t))}:o1,iyt=!ye(function(){return Object.isExtensible(Object.preventExtensions({}))}),G6=I3(function(t){var e=Fi.f,n=!1,r=q3("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=zy.f,s=At([].splice),l={};l[r]=1,u(l).length&&(zy.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},lr({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:oyt.f}))},fastKey:function(u,s){if(!Ee(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!sn(u,r)){if(!Ws(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!sn(u,r)){if(!Ws(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return iyt&&n&&Ws(u)&&!sn(u,r)&&i(u),u}};Ry[r]=!0}),i1=G6.getWeakData,ayt=kr.set,uyt=kr.getterFor,syt=l6.find,lyt=l6.findIndex,cyt=At([].splice),fyt=0,a1=function(t){return t.frozen||(t.frozen=new yV)},yV=function(){this.entries=[]},q6=function(t,e){return syt(t.entries,function(n){return n[0]===e})};yV.prototype={get:function(t){var e=q6(this,t);if(e)return e[1]},has:function(t){return!!q6(this,t)},set:function(t,e){var n=q6(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=lyt(this.entries,function(n){return n[0]===t});return~e&&cyt(this.entries,e,1),!!~e}};var Lh,bV={getConstructor:function(t,e,n,r){var o=t(function(s,l){C6(s,i),ayt(s,{type:e,id:fyt++,frozen:void 0}),l!=null&&t1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=uyt(e),u=function(s,l,c){var f=a(s),p=i1(wn(l),!0);return p===!0?a1(f).set(l,c):p[f.id]=c,s};return Zy(i,{delete:function(s){var l=a(this);if(!Ee(s))return!1;var c=i1(s);return c===!0?a1(l).delete(s):c&&sn(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Ee(s))return!1;var c=i1(s);return c===!0?a1(l).has(s):c&&sn(c,l.id)}}),Zy(i,n?{get:function(s){var l=a(this);if(Ee(s)){var c=i1(s);return c===!0?a1(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}},u1=kr.enforce,dyt=!ot.ActiveXObject&&"ActiveXObject"in ot,wV=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},pyt=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=ot[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=At(u[v]);Br(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!Ee(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!Ee(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!Ee(h))&&m(this,h===0?0:h)}:function(h,w){return m(this,h===0?0:h,w),this})};if(Hy(t,!se(a)||!(o||u.forEach&&!ye(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),G6.enable();else if(Hy(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=ye(function(){f.has(1)}),y=LM(function(v){new a(v)}),g=!o&&ye(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){C6(v,u);var h=function(w,E,C){var D,S;return Uc&&se(D=E.constructor)&&D!==C&&Ee(S=D.prototype)&&S!==C.prototype&&Uc(w,S),w}(new a,v,s);return m!=null&&t1(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,lr({global:!0,forced:s!=a},l),Jy(s,t),o||n.setStrong(s,t,r),s}("WeakMap",wV,bV);if(GR&&dyt){Lh=bV.getConstructor(wV,"WeakMap",!0),G6.enable();var Rh=pyt.prototype,EV=At(Rh.delete),s1=At(Rh.has),CV=At(Rh.get),xV=At(Rh.set);Zy(Rh,{delete:function(t){if(Ee(t)&&!Ws(t)){var e=u1(this);return e.frozen||(e.frozen=new Lh),EV(this,t)||e.frozen.delete(t)}return EV(this,t)},has:function(t){if(Ee(t)&&!Ws(t)){var e=u1(this);return e.frozen||(e.frozen=new Lh),s1(this,t)||e.frozen.has(t)}return s1(this,t)},get:function(t){if(Ee(t)&&!Ws(t)){var e=u1(this);return e.frozen||(e.frozen=new Lh),s1(this,t)?CV(this,t):e.frozen.get(t)}return CV(this,t)},set:function(t,e){if(Ee(t)&&!Ws(t)){var n=u1(this);n.frozen||(n.frozen=new Lh),s1(this,t)?xV(this,t,e):n.frozen.set(t,e)}else xV(this,t,e);return this}})}var SV={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},$6=wh("span").classList,DV=$6&&$6.constructor&&$6.constructor.prototype,hyt=DV===Object.prototype?void 0:DV,K6=$e("iterator"),AV=$e("toStringTag"),Y6=Ih.values,_V=function(t,e){if(t){if(t[K6]!==Y6)try{ou(t,K6,Y6)}catch{t[K6]=Y6}if(t[AV]||ou(t,AV,e),SV[e]){for(var n in Ih)if(t[n]!==Ih[n])try{ou(t,n,Ih[n])}catch{t[n]=Ih[n]}}}};for(var X6 in SV)_V(ot[X6]&&ot[X6].prototype,X6);_V(hyt,"DOMTokenList");var gyt=Hc.EXISTS,vyt=Fi.f,OV=Function.prototype,myt=At(OV.toString),kV=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,yyt=At(kV.exec);Zo&&!gyt&&vyt(OV,"name",{configurable:!0,get:function(){try{return yyt(kV,myt(this))[1]}catch{return""}}});var byt=$e("species"),wyt=mh>=51||!ye(function(){var t=[];return(t.constructor={})[byt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),Eyt=$e("species"),Z6=ot.Array,Cyt=Math.max;function BV(t){return t.getMenuConfig("uploadVideo")}lr({target:"Array",proto:!0,forced:!wyt},{slice:function(t,e){var n,r,o,i=eu(this),a=xh(i),u=Ch(t,a),s=Ch(e===void 0?a:e,a);if($y(i)&&(n=i.constructor,(s6(n)&&(n===Z6||$y(n.prototype))||Ee(n)&&(n=n[Eyt])===null)&&(n=void 0),n===Z6||n===void 0))return RM(i,u,s);for(r=new(n===void 0?Z6:n)(Cyt(s-u,0)),o=0;u<s;u++,o++)u in i&&hV(r,o,i[u]);return r.length=o,r}});var TV=new WeakMap;function xyt(t,e){return Oy(this,void 0,void 0,function(){var n,r,o,i;return ky(this,function(a){switch(a.label){case 0:return n=function(u){var s=TV.get(u);if(s!=null)return s;var l=BV(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,y=l.onError;return s=IF(_y(_y({},l),{onProgress:function(g){u.showProgressBar(g),f&&f(g)},onSuccess:function(g,v){if(d)return d(v,function(A,k){return Nh(u,A,k)}),void c(g,v);var m=v.errno,h=m===void 0?1:m,w=v.data,E=w===void 0?{}:w;if(h===0){var C=E.url,D=C===void 0?"":C,S=E.poster;Nh(u,D,S===void 0?"":S),c(g,v)}else p(g,v)},onError:function(g,v,m){y(g,v,m)}})),TV.set(u,s),s}(t),r=e.name,o=e.type,i=e.size,n.addFile({name:r,type:o,size:i,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}})})}var Syt=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f){return Nh(e,c,f)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=T("body"),l=T('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,p){var d,y;Oy(this,void 0,void 0,function(){var g,v,m,h,w,E;return ky(this,function(C){switch(C.label){case 0:if(p==null)return[2];g=Array.prototype.slice.call(p),v=BV(f).customUpload,C.label=1;case 1:C.trys.push([1,9,10,15]),m=C0t(g),C.label=2;case 2:return[4,m.next()];case 3:return(h=C.sent()).done?[3,8]:(w=h.value,v?[4,v(w,function(D,S){return Nh(f,D,S)})]:[3,5]);case 4:return C.sent(),[3,7];case 5:return[4,xyt(f,w)];case 6:C.sent(),C.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return E=C.sent(),d={error:E},[3,15];case 10:return C.trys.push([10,,13,14]),h&&!h.done&&(y=m.return)?[4,y.call(m)]:[3,12];case 11:C.sent(),C.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})})(e,c)})}},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!z.isCollapsed(n)||!!O.getSelectedElems(e).some(function(r){var o=O.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}(),Dyt=Hc.PROPER,J6=RegExp.prototype,FV=J6.toString,Ayt=At(gM),_yt=ye(function(){return FV.call({source:"a",flags:"b"})!="/a/b"}),Oyt=Dyt&&FV.name!="toString";function Q6(){return _M("w-e-insert-video")}(_yt||Oyt)&&Br(RegExp.prototype,"toString",function(){var t=wn(this),e=to(t.source),n=t.flags;return"/"+e+"/"+to(n===void 0&&vh(J6,t)&&!("flags"in J6)?Ayt(t):n)},{unsafe:!0});var kyt=function(){function t(){this.title=et("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Q6(),this.heightInputId=Q6(),this.buttonId=Q6()}return t.prototype.getSelectedVideoNode=function(e){return O.getSelectedNodeByType(e,"video")},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedVideoNode(e)==null},t.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=n.widthInputId,o=n.heightInputId,i=n.buttonId,a=Ls(xr(et("videoModule.width"),r,"auto"),2),u=a[0],s=T(a[1]),l=Ls(xr(et("videoModule.height"),o,"auto"),2),c=l[0],f=T(l[1]),p=Ls(fc(i,et("videoModule.ok")),1)[0];if(this.$content==null){var d=T("<div></div>");d.on("click","#"+i,function(E){E.preventDefault();var C=d.find("#"+r).val().trim(),D=d.find("#"+o).val().trim(),S=parseInt(C),A=parseInt(D),k=S?S.toString():"auto",R=A?A.toString():"auto";e.restoreSelection(),I.setNodes(e,{width:k,height:R},{match:function(V){return O.checkNodeType(V,"video")}}),e.hidePanelOrModal()}),this.$content=d}var y=this.$content;y.empty(),y.append(u),y.append(c),y.append(p);var g=this.getSelectedVideoNode(e);if(g==null)return y[0];var v=g.width,m=v===void 0?"auto":v,h=g.height,w=h===void 0?"auto":h;return s.val(m),f.val(w),setTimeout(function(){s.focus()}),y[0]},t}(),Byt={renderElems:[Svt],elemsToHtml:[Dvt],preParseHtml:[kvt],parseElemsHtml:[Lvt],menus:[{key:"insertVideo",factory:function(){return new Mmt},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new Syt},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+" upload error",e,n)}}},{key:"editVideoSize",factory:function(){return new kyt}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="video"||e(o)},r.normalizeNode=function(o){var i=Ls(o,2),a=i[0],u=i[1];return O.getNodeType(a)==="video"&&O.isLastNode(r,a)&&I.insertNodes(r,O.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};ir("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),ir("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var PV=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function t5(t){var e={exports:{}};return t(e,e.exports),e.exports}var uu,l1,c1=function(t){return t&&t.Math==Math&&t},rt=c1(typeof globalThis=="object"&&globalThis)||c1(typeof window=="object"&&window)||c1(typeof self=="object"&&self)||c1(typeof PV=="object"&&PV)||function(){return this}()||Function("return this")(),Ce=function(t){try{return!!t()}catch{return!0}},ti=!Ce(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Mh=Function.prototype.call,ie=Mh.bind?Mh.bind(Mh):function(){return Mh.apply(Mh,arguments)},NV={}.propertyIsEnumerable,jV=Object.getOwnPropertyDescriptor,Tyt={f:jV&&!NV.call({1:2},1)?function(t){var e=jV(this,t);return!!e&&e.enumerable}:NV},f1=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},IV=Function.prototype,e5=IV.bind,n5=IV.call,Fyt=e5&&e5.bind(n5),Lt=e5?function(t){return t&&Fyt(n5,t)}:function(t){return t&&function(){return n5.apply(t,arguments)}},Pyt=Lt({}.toString),Nyt=Lt("".slice),Co=function(t){return Nyt(Pyt(t),8,-1)},r5=rt.Object,jyt=Lt("".split),o5=Ce(function(){return!r5("z").propertyIsEnumerable(0)})?function(t){return Co(t)=="String"?jyt(t,""):r5(t)}:r5,Iyt=rt.TypeError,Vh=function(t){if(t==null)throw Iyt("Can't call method on "+t);return t},su=function(t){return o5(Vh(t))},pe=function(t){return typeof t=="function"},be=function(t){return typeof t=="object"?t!==null:pe(t)},Lyt=function(t){return pe(t)?t:void 0},Gs=function(t,e){return arguments.length<2?Lyt(rt[t]):rt[t]&&rt[t][e]},zh=Lt({}.isPrototypeOf),Xc=Gs("navigator","userAgent")||"",LV=rt.process,RV=rt.Deno,MV=LV&&LV.versions||RV&&RV.version,VV=MV&&MV.v8;VV&&(l1=(uu=VV.split("."))[0]>0&&uu[0]<4?1:+(uu[0]+uu[1])),!l1&&Xc&&(!(uu=Xc.match(/Edge\/(\d+)/))||uu[1]>=74)&&(uu=Xc.match(/Chrome\/(\d+)/))&&(l1=+uu[1]);var Hh=l1,i5=!!Object.getOwnPropertySymbols&&!Ce(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Hh&&Hh<41}),a5=i5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ryt=rt.Object,u5=a5?function(t){return typeof t=="symbol"}:function(t){var e=Gs("Symbol");return pe(e)&&zh(e.prototype,Ryt(t))},Myt=rt.String,d1=function(t){try{return Myt(t)}catch{return"Object"}},Vyt=rt.TypeError,lu=function(t){if(pe(t))return t;throw Vyt(d1(t)+" is not a function")},Uh=function(t,e){var n=t[e];return n==null?void 0:lu(n)},zyt=rt.TypeError,Hyt=Object.defineProperty,s5=function(t,e){try{Hyt(rt,t,{value:e,configurable:!0,writable:!0})}catch{rt[t]=e}return e},cu=rt["__core-js_shared__"]||s5("__core-js_shared__",{}),l5=t5(function(t){(t.exports=function(e,n){return cu[e]||(cu[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Uyt=rt.Object,c5=function(t){return Uyt(Vh(t))},Wyt=Lt({}.hasOwnProperty),ln=Object.hasOwn||function(t,e){return Wyt(c5(t),e)},Gyt=0,qyt=Math.random(),$yt=Lt(1 .toString),f5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+$yt(++Gyt+qyt,36)},Wh=l5("wks"),qs=rt.Symbol,zV=qs&&qs.for,Kyt=a5?qs:qs&&qs.withoutSetter||f5,Ke=function(t){if(!ln(Wh,t)||!i5&&typeof Wh[t]!="string"){var e="Symbol."+t;i5&&ln(qs,t)?Wh[t]=qs[t]:Wh[t]=a5&&zV?zV(e):Kyt(e)}return Wh[t]},Yyt=rt.TypeError,Xyt=Ke("toPrimitive"),d5=function(t){var e=function(n,r){if(!be(n)||u5(n))return n;var o,i=Uh(n,Xyt);if(i){if(r===void 0&&(r="default"),o=ie(i,n,r),!be(o)||u5(o))return o;throw Yyt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&pe(s=a.toString)&&!be(l=ie(s,a))||pe(s=a.valueOf)&&!be(l=ie(s,a))||u!=="string"&&pe(s=a.toString)&&!be(l=ie(s,a)))return l;throw zyt("Can't convert object to primitive value")}(n,r)}(t,"string");return u5(e)?e:e+""},p5=rt.document,Zyt=be(p5)&&be(p5.createElement),Gh=function(t){return Zyt?p5.createElement(t):{}},HV=!ti&&!Ce(function(){return Object.defineProperty(Gh("div"),"a",{get:function(){return 7}}).a!=7}),UV=Object.getOwnPropertyDescriptor,h5={f:ti?UV:function(t,e){if(t=su(t),e=d5(e),HV)try{return UV(t,e)}catch{}if(ln(t,e))return f1(!ie(Tyt.f,t,e),t[e])}},Jyt=rt.String,Qyt=rt.TypeError,En=function(t){if(be(t))return t;throw Qyt(Jyt(t)+" is not an object")},t1t=rt.TypeError,WV=Object.defineProperty,Ni={f:ti?WV:function(t,e,n){if(En(t),e=d5(e),En(n),HV)try{return WV(t,e,n)}catch{}if("get"in n||"set"in n)throw t1t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},ei=ti?function(t,e,n){return Ni.f(t,e,f1(1,n))}:function(t,e,n){return t[e]=n,t},e1t=Lt(Function.toString);pe(cu.inspectSource)||(cu.inspectSource=function(t){return e1t(t)});var p1,qh,h1,g1=cu.inspectSource,GV=rt.WeakMap,qV=pe(GV)&&/native code/.test(g1(GV)),$V=l5("keys"),g5=function(t){return $V[t]||($V[t]=f5(t))},v1={},v5=rt.TypeError,n1t=rt.WeakMap;if(qV||cu.state){var $s=cu.state||(cu.state=new n1t),r1t=Lt($s.get),KV=Lt($s.has),o1t=Lt($s.set);p1=function(t,e){if(KV($s,t))throw new v5("Object already initialized");return e.facade=t,o1t($s,t,e),e},qh=function(t){return r1t($s,t)||{}},h1=function(t){return KV($s,t)}}else{var Zc=g5("state");v1[Zc]=!0,p1=function(t,e){if(ln(t,Zc))throw new v5("Object already initialized");return e.facade=t,ei(t,Zc,e),e},qh=function(t){return ln(t,Zc)?t[Zc]:{}},h1=function(t){return ln(t,Zc)}}var Tr={set:p1,get:qh,has:h1,enforce:function(t){return h1(t)?qh(t):p1(t,{})},getterFor:function(t){return function(e){var n;if(!be(e)||(n=qh(e)).type!==t)throw v5("Incompatible receiver, "+t+" required");return n}}},YV=Function.prototype,i1t=ti&&Object.getOwnPropertyDescriptor,m5=ln(YV,"name"),$h={EXISTS:m5,PROPER:m5&&(function(){}).name==="something",CONFIGURABLE:m5&&(!ti||ti&&i1t(YV,"name").configurable)},Fr=t5(function(t){var e=$h.CONFIGURABLE,n=Tr.get,r=Tr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;pe(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ln(u,"name")||e&&u.name!==d)&&ei(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==rt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ei(i,a,u)):f?i[a]=u:s5(a,u)})(Function.prototype,"toString",function(){return pe(this)&&n(this).source||g1(this)})}),a1t=Math.ceil,u1t=Math.floor,y5=function(t){var e=+t;return e!=e||e===0?0:(e>0?u1t:a1t)(e)},s1t=Math.max,l1t=Math.min,Kh=function(t,e){var n=y5(t);return n<0?s1t(n+e,0):l1t(n,e)},c1t=Math.min,XV=function(t){return t>0?c1t(y5(t),9007199254740991):0},Yh=function(t){return XV(t.length)},f1t=function(t){return function(e,n,r){var o,i=su(e),a=Yh(i),u=Kh(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},d1t=f1t(!1),ZV=Lt([].push),JV=function(t,e){var n,r=su(t),o=0,i=[];for(n in r)!ln(v1,n)&&ln(r,n)&&ZV(i,n);for(;e.length>o;)ln(r,n=e[o++])&&(~d1t(i,n)||ZV(i,n));return i},m1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],p1t=m1.concat("length","prototype"),y1={f:Object.getOwnPropertyNames||function(t){return JV(t,p1t)}},h1t={f:Object.getOwnPropertySymbols},g1t=Lt([].concat),v1t=Gs("Reflect","ownKeys")||function(t){var e=y1.f(En(t)),n=h1t.f;return n?g1t(e,n(t)):e},m1t=function(t,e){for(var n=v1t(e),r=Ni.f,o=h5.f,i=0;i<n.length;i++){var a=n[i];ln(t,a)||r(t,a,o(e,a))}},y1t=/#|\.prototype\./,Xh=function(t,e){var n=w1t[b1t(t)];return n==C1t||n!=E1t&&(pe(e)?Ce(e):!!e)},b1t=Xh.normalize=function(t){return String(t).replace(y1t,".").toLowerCase()},w1t=Xh.data={},E1t=Xh.NATIVE="N",C1t=Xh.POLYFILL="P",b1=Xh,x1t=h5.f,ni=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?rt:l?rt[u]||s5(u,{}):(rt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=x1t(n,r))&&a.value:n[r],!b1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;m1t(i,o)}(t.sham||o&&o.sham)&&ei(i,"sham",!0),Fr(n,r,i,t)}},w1=Array.isArray||function(t){return Co(t)=="Array"},QV={};QV[Ke("toStringTag")]="z";var b5=String(QV)==="[object z]",S1t=Ke("toStringTag"),D1t=rt.Object,A1t=Co(function(){return arguments}())=="Arguments",E1=b5?Co:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=D1t(t),S1t))=="string"?n:A1t?Co(e):(r=Co(e))=="Object"&&pe(e.callee)?"Arguments":r},tz=function(){},_1t=[],ez=Gs("Reflect","construct"),w5=/^\s*(?:class|function)\b/,O1t=Lt(w5.exec),k1t=!w5.exec(tz),Zh=function(t){if(!pe(t))return!1;try{return ez(tz,_1t,t),!0}catch{return!1}},E5=!ez||Ce(function(){var t;return Zh(Zh.call)||!Zh(Object)||!Zh(function(){t=!0})||t})?function(t){if(!pe(t))return!1;switch(E1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return k1t||!!O1t(w5,g1(t))}:Zh,nz=function(t,e,n){var r=d5(e);r in t?Ni.f(t,r,f1(0,n)):t[r]=n},B1t=Ke("species"),rz=Lt([].slice),T1t=Hh>=51||!Ce(function(){var t=[];return(t.constructor={})[B1t]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),F1t=Ke("species"),C5=rt.Array,P1t=Math.max;ni({target:"Array",proto:!0,forced:!T1t},{slice:function(t,e){var n,r,o,i=su(this),a=Yh(i),u=Kh(t,a),s=Kh(e===void 0?a:e,a);if(w1(i)&&(n=i.constructor,(E5(n)&&(n===C5||w1(n.prototype))||be(n)&&(n=n[F1t])===null)&&(n=void 0),n===C5||n===void 0))return rz(i,u,s);for(r=new(n===void 0?C5:n)(P1t(s-u,0)),o=0;u<s;u++,o++)u in i&&nz(r,o,i[u]);return r.length=o,r}});var N1t=b5?{}.toString:function(){return"[object "+E1(this)+"]"};b5||Fr(Object.prototype,"toString",N1t,{unsafe:!0});var C1,j1t=rt.String,fu=function(t){if(E1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return j1t(t)},oz=function(){var t=En(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},x5=rt.RegExp,S5=Ce(function(){var t=x5("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),I1t=S5||Ce(function(){return!x5("a","y").sticky}),iz={BROKEN_CARET:S5||Ce(function(){var t=x5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:I1t,UNSUPPORTED_Y:S5},L1t=Object.keys||function(t){return JV(t,m1)},R1t=ti?Object.defineProperties:function(t,e){En(t);for(var n,r=su(e),o=L1t(e),i=o.length,a=0;i>a;)Ni.f(t,n=o[a++],r[n]);return t},D5=Gs("document","documentElement"),az=g5("IE_PROTO"),A5=function(){},uz=function(t){return"<script>"+t+"<\/script>"},sz=function(t){t.write(uz("")),t.close();var e=t.parentWindow.Object;return t=null,e},x1=function(){try{C1=new ActiveXObject("htmlfile")}catch{}var t,e;x1=typeof document<"u"?document.domain&&C1?sz(C1):((e=Gh("iframe")).style.display="none",D5.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(uz("document.F=Object")),t.close(),t.F):sz(C1);for(var n=m1.length;n--;)delete x1.prototype[m1[n]];return x1()};v1[az]=!0;var lz,_5,O5=Object.create||function(t,e){var n;return t!==null?(A5.prototype=En(t),n=new A5,A5.prototype=null,n[az]=t):n=x1(),e===void 0?n:R1t(n,e)},M1t=rt.RegExp,V1t=Ce(function(){var t=M1t(".","s");return!(t.dotAll&&t.exec(`
|
|
154
|
-
`)&&t.flags==="s")}),z1t=rt.RegExp,H1t=Ce(function(){var t=z1t("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),U1t=Tr.get,W1t=l5("native-string-replace",String.prototype.replace),S1=RegExp.prototype.exec,k5=S1,G1t=Lt("".charAt),q1t=Lt("".indexOf),$1t=Lt("".replace),B5=Lt("".slice),T5=(_5=/b*/g,ie(S1,lz=/a/,"a"),ie(S1,_5,"a"),lz.lastIndex!==0||_5.lastIndex!==0),cz=iz.BROKEN_CARET,F5=/()??/.exec("")[1]!==void 0;(T5||F5||cz||V1t||H1t)&&(k5=function(t){var e,n,r,o,i,a,u,s=this,l=U1t(s),c=fu(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ie(k5,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=cz&&s.sticky,y=ie(oz,s),g=s.source,v=0,m=c;if(d&&(y=$1t(y,"y",""),q1t(y,"g")===-1&&(y+="g"),m=B5(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&G1t(c,s.lastIndex-1)!==`
|
|
155
|
-
`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),F5&&(n=new RegExp("^"+g+"$(?!\\s)",y)),T5&&(r=s.lastIndex),o=ie(S1,d?n:s,m),d?o?(o.input=B5(o.input,v),o[0]=B5(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:T5&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),F5&&o&&o.length>1&&ie(W1t,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=O5(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Jh=k5;ni({target:"RegExp",proto:!0,forced:/./.exec!==Jh},{exec:Jh});var P5=Function.prototype,fz=P5.apply,K1t=P5.bind,dz=P5.call,pz=typeof Reflect=="object"&&Reflect.apply||(K1t?dz.bind(fz):function(){return dz.apply(fz,arguments)}),Y1t=Ke("species"),N5=RegExp.prototype,X1t=Ke("match"),Z1t=rt.TypeError,J1t=Ke("species"),hz=function(t,e){var n,r=En(t).constructor;return r===void 0||(n=En(r)[J1t])==null?e:function(o){if(E5(o))return o;throw Z1t(d1(o)+" is not a constructor")}(n)},Q1t=Lt("".charAt),gz=Lt("".charCodeAt),tbt=Lt("".slice),vz=function(t){return function(e,n){var r,o,i=fu(Vh(e)),a=y5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=gz(i,a))<55296||r>56319||a+1===u||(o=gz(i,a+1))<56320||o>57343?t?Q1t(i,a):r:t?tbt(i,a,a+2):o-56320+(r-55296<<10)+65536}},mz={codeAt:vz(!1),charAt:vz(!0)},ebt=mz.charAt,nbt=function(t,e,n){return e+(n?ebt(t,e).length:1)},rbt=rt.Array,obt=Math.max,j5=function(t,e,n){for(var r=Yh(t),o=Kh(e,r),i=Kh(n===void 0?r:n,r),a=rbt(obt(i-o,0)),u=0;o<i;o++,u++)nz(a,u,t[o]);return a.length=u,a},ibt=rt.TypeError,yz=function(t,e){var n=t.exec;if(pe(n)){var r=ie(n,t,e);return r!==null&&En(r),r}if(Co(t)==="RegExp")return ie(Jh,t,e);throw ibt("RegExp#exec called on incompatible receiver")},Jc=iz.UNSUPPORTED_Y,abt=Math.min,bz=[].push,ubt=Lt(/./.exec),Qc=Lt(bz),Qh=Lt("".slice);(function(t,e,n,r){var o=Ke(t),i=!Ce(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Ce(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Y1t]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Lt(/./[o]),s=function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,y){var g,v,m=fu(Vh(this)),h=y===void 0?4294967295:y>>>0;if(h===0)return[];if(d===void 0)return[m];if(!be(g=d)||!((v=g[X1t])!==void 0?v:Co(g)=="RegExp"))return ie(c,m,d,h);for(var w,E,C,D=[],S=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),A=0,k=new RegExp(d.source,S+"g");(w=ie(Jh,k,m))&&!((E=k.lastIndex)>A&&(Qc(D,Qh(m,A,w.index)),w.length>1&&w.index<m.length&&pz(bz,D,j5(w,1)),C=w[0].length,A=E,D.length>=h));)k.lastIndex===w.index&&k.lastIndex++;return A===m.length?!C&&ubt(k,"")||Qc(D,""):Qc(D,Qh(m,A)),D.length>h?j5(D,0,h):D}:"0".split(void 0,0).length?function(d,y){return d===void 0&&y===0?[]:ie(c,this,d,y)}:c,[function(d,y){var g=Vh(this),v=d==null?void 0:Uh(d,l);return v?ie(v,d,g,y):ie(p,fu(g),d,y)},function(d,y){var g=En(this),v=fu(d),m=f(p,g,v,y,p!==c);if(m.done)return m.value;var h=hz(g,RegExp),w=g.unicode,E=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(Jc?"g":"y"),C=new h(Jc?"^(?:"+g.source+")":g,E),D=y===void 0?4294967295:y>>>0;if(D===0)return[];if(v.length===0)return yz(C,v)===null?[v]:[];for(var S=0,A=0,k=[];A<v.length;){C.lastIndex=Jc?0:A;var R,V=yz(C,Jc?Qh(v,A):v);if(V===null||(R=abt(XV(C.lastIndex+(Jc?A:0)),v.length))===S)A=nbt(v,A,w);else{if(Qc(k,Qh(v,S,A)),k.length===D)return k;for(var L=1;L<=V.length-1;L++)if(Qc(k,V[L]),k.length===D)return k;A=S=R}}return Qc(k,Qh(v,S)),k}]}(o,""[t],function(l,c,f,p,d){var y=Lt(l),g=c.exec;return g===Jh||g===N5.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});Fr(String.prototype,t,s[0]),Fr(N5,o,s[1])}r&&ei(N5[o],"sham",!0)})("split",0,!!Ce(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Jc);/*! *****************************************************************************
|
|
156
|
-
Copyright (c) Microsoft Corporation.
|
|
157
|
-
|
|
158
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
159
|
-
purpose with or without fee is hereby granted.
|
|
160
|
-
|
|
161
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
162
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
163
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
164
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
165
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
166
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
167
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
168
|
-
***************************************************************************** */var D1=function(){return D1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},D1.apply(this,arguments)};function I5(t,e,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(t,e||[])).next())})}function L5(t,e){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=e.call(t,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 sbt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=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.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(p){s({value:p,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var R5=Ke("unscopables"),M5=Array.prototype;M5[R5]==null&&Ni.f(M5,R5,{configurable:!0,value:O5(null)});var Ks,wz,Ez,V5=function(t){M5[R5][t]=!0},tf={},lbt=!Ce(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Cz=g5("IE_PROTO"),z5=rt.Object,cbt=z5.prototype,A1=lbt?z5.getPrototypeOf:function(t){var e=c5(t);if(ln(e,Cz))return e[Cz];var n=e.constructor;return pe(n)&&e instanceof n?n.prototype:e instanceof z5?cbt:null},H5=Ke("iterator"),xz=!1;[].keys&&("next"in(Ez=[].keys())?(wz=A1(A1(Ez)))!==Object.prototype&&(Ks=wz):xz=!0);var fbt=Ks==null||Ce(function(){var t={};return Ks[H5].call(t)!==t});fbt&&(Ks={}),pe(Ks[H5])||Fr(Ks,H5,function(){return this});var U5={IteratorPrototype:Ks,BUGGY_SAFARI_ITERATORS:xz},dbt=Ni.f,Sz=Ke("toStringTag"),_1=function(t,e,n){t&&!ln(t=n?t:t.prototype,Sz)&&dbt(t,Sz,{configurable:!0,value:e})},pbt=U5.IteratorPrototype,hbt=function(){return this},gbt=rt.String,vbt=rt.TypeError,ef=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Lt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return En(r),function(i){if(typeof i=="object"||pe(i))return i;throw vbt("Can't set "+gbt(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),mbt=$h.PROPER,ybt=$h.CONFIGURABLE,Dz=U5.IteratorPrototype,O1=U5.BUGGY_SAFARI_ITERATORS,tg=Ke("iterator"),bbt=function(){return this},Az=function(t,e,n,r,o,i,a){(function(m,h,w,E){var C=h+" Iterator";m.prototype=O5(pbt,{next:f1(1,w)}),_1(m,C,!1),tf[C]=hbt})(n,e,r);var u,s,l,c=function(m){if(m===o&&g)return g;if(!O1&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[tg]||d["@@iterator"]||o&&d[o],g=!O1&&y||c(o),v=e=="Array"&&d.entries||y;if(v&&(u=A1(v.call(new t)))!==Object.prototype&&u.next&&(A1(u)!==Dz&&(ef?ef(u,Dz):pe(u[tg])||Fr(u,tg,bbt)),_1(u,f,!0)),mbt&&o=="values"&&y&&y.name!=="values"&&(ybt?ei(d,"name","values"):(p=!0,g=function(){return ie(y,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(O1||p||!(l in d))&&Fr(d,l,s[l]);else ni({target:e,proto:!0,forced:O1||p},s);return d[tg]!==g&&Fr(d,tg,g,{name:o}),tf[e]=g,s},wbt=Tr.set,Ebt=Tr.getterFor("Array Iterator"),eg=Az(Array,"Array",function(t,e){wbt(this,{type:"Array Iterator",target:su(t),index:0,kind:e})},function(){var t=Ebt(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");tf.Arguments=tf.Array,V5("keys"),V5("values"),V5("entries");var Cbt=mz.charAt,xbt=Tr.set,Sbt=Tr.getterFor("String Iterator");Az(String,"String",function(t){xbt(this,{type:"String Iterator",string:fu(t),index:0})},function(){var t,e=Sbt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Cbt(n,r),e.index+=t.length,{value:t,done:!1})});var k1=function(t,e,n){for(var r in e)Fr(t,r,e[r],n);return t},_z=y1.f,Oz=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Dbt={f:function(t){return Oz&&Co(t)=="Window"?function(e){try{return _z(e)}catch{return j5(Oz)}}(t):_z(su(t))}},kz=Ce(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),B1=Object.isExtensible,Ys=Ce(function(){B1(1)})||kz?function(t){return!!be(t)&&(!kz||Co(t)!="ArrayBuffer")&&(!B1||B1(t))}:B1,Abt=!Ce(function(){return Object.isExtensible(Object.preventExtensions({}))}),W5=t5(function(t){var e=Ni.f,n=!1,r=f5("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=y1.f,s=Lt([].splice),l={};l[r]=1,u(l).length&&(y1.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},ni({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Dbt.f}))},fastKey:function(u,s){if(!be(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!ln(u,r)){if(!Ys(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!ln(u,r)){if(!Ys(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Abt&&n&&Ys(u)&&!ln(u,r)&&i(u),u}};v1[r]=!0}),Bz=Lt(Lt.bind),ng=function(t,e){return lu(t),e===void 0?t:Bz?Bz(t,e):function(){return t.apply(e,arguments)}},_bt=Ke("iterator"),Obt=Array.prototype,kbt=Ke("iterator"),Tz=function(t){if(t!=null)return Uh(t,kbt)||Uh(t,"@@iterator")||tf[E1(t)]},Bbt=rt.TypeError,Fz=function(t,e,n){var r,o;En(t);try{if(!(r=Uh(t,"return"))){if(e==="throw")throw n;return n}r=ie(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return En(r),n},Tbt=rt.TypeError,T1=function(t,e){this.stopped=t,this.result=e},Pz=T1.prototype,F1=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=ng(e,f),v=function(h){return r&&Fz(r,"normal",h),new T1(!0,h)},m=function(h){return p?(En(h),y?g(h[0],h[1],v):g(h[0],h[1])):y?g(h,v):g(h)};if(d)r=t;else{if(!(o=Tz(t)))throw Tbt(d1(t)+" is not iterable");if((c=o)!==void 0&&(tf.Array===c||Obt[_bt]===c)){for(i=0,a=Yh(t);a>i;i++)if((u=m(t[i]))&&zh(Pz,u))return u;return new T1(!1)}r=function(h,w){var E=arguments.length<2?Tz(h):w;if(lu(E))return En(ie(E,h));throw Bbt(d1(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=ie(s,r)).done;){try{u=m(l.value)}catch(h){Fz(r,"throw",h)}if(typeof u=="object"&&u&&zh(Pz,u))return u}return new T1(!1)},Fbt=rt.TypeError,G5=function(t,e){if(zh(e,t))return t;throw Fbt("Incorrect invocation")},Nz=Ke("iterator"),jz=!1;try{var Pbt=0,Iz={next:function(){return{done:!!Pbt++}},return:function(){jz=!0}};Iz[Nz]=function(){return this},Array.from(Iz,function(){throw 2})}catch{}var Lz=function(t,e){if(!e&&!jz)return!1;var n=!1;try{var r={};r[Nz]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},Nbt=Ke("species"),Rz=rt.Array,jbt=function(t,e){return new(function(n){var r;return w1(n)&&(r=n.constructor,(E5(r)&&(r===Rz||w1(r.prototype))||be(r)&&(r=r[Nbt])===null)&&(r=void 0)),r===void 0?Rz:r}(t))(e===0?0:e)},Mz=Lt([].push),du=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=c5(s),g=o5(y),v=ng(l,c),m=Yh(g),h=0,w=f||jbt,E=e?w(s,m):n||a?w(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:Mz(E,p)}else switch(t){case 4:return!1;case 7:Mz(E,p)}return i?-1:r||o?o:E}},q5={forEach:du(0),map:du(1),filter:du(2),some:du(3),every:du(4),find:du(5),findIndex:du(6),filterReject:du(7)},P1=W5.getWeakData,Ibt=Tr.set,Lbt=Tr.getterFor,Rbt=q5.find,Mbt=q5.findIndex,Vbt=Lt([].splice),zbt=0,N1=function(t){return t.frozen||(t.frozen=new Vz)},Vz=function(){this.entries=[]},$5=function(t,e){return Rbt(t.entries,function(n){return n[0]===e})};Vz.prototype={get:function(t){var e=$5(this,t);if(e)return e[1]},has:function(t){return!!$5(this,t)},set:function(t,e){var n=$5(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Mbt(this.entries,function(n){return n[0]===t});return~e&&Vbt(this.entries,e,1),!!~e}};var rg,zz={getConstructor:function(t,e,n,r){var o=t(function(s,l){G5(s,i),Ibt(s,{type:e,id:zbt++,frozen:void 0}),l!=null&&F1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Lbt(e),u=function(s,l,c){var f=a(s),p=P1(En(l),!0);return p===!0?N1(f).set(l,c):p[f.id]=c,s};return k1(i,{delete:function(s){var l=a(this);if(!be(s))return!1;var c=P1(s);return c===!0?N1(l).delete(s):c&&ln(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!be(s))return!1;var c=P1(s);return c===!0?N1(l).has(s):c&&ln(c,l.id)}}),k1(i,n?{get:function(s){var l=a(this);if(be(s)){var c=P1(s);return c===!0?N1(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}},j1=Tr.enforce,Hbt=!rt.ActiveXObject&&"ActiveXObject"in rt,Hz=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Ubt=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=rt[t],u=a&&a.prototype,s=a,l={},c=function(v){var m=Lt(u[v]);Fr(u,v,v=="add"?function(h){return m(this,h===0?0:h),this}:v=="delete"?function(h){return!(o&&!be(h))&&m(this,h===0?0:h)}:v=="get"?function(h){return o&&!be(h)?void 0:m(this,h===0?0:h)}:v=="has"?function(h){return!(o&&!be(h))&&m(this,h===0?0:h)}:function(h,w){return m(this,h===0?0:h,w),this})};if(b1(t,!pe(a)||!(o||u.forEach&&!Ce(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),W5.enable();else if(b1(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Ce(function(){f.has(1)}),y=Lz(function(v){new a(v)}),g=!o&&Ce(function(){for(var v=new a,m=5;m--;)v[i](m,m);return!v.has(-0)});y||((s=e(function(v,m){G5(v,u);var h=function(w,E,C){var D,S;return ef&&pe(D=E.constructor)&&D!==C&&be(S=D.prototype)&&S!==C.prototype&&ef(w,S),w}(new a,v,s);return m!=null&&F1(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,ni({global:!0,forced:s!=a},l),_1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",Hz,zz);if(qV&&Hbt){rg=zz.getConstructor(Hz,"WeakMap",!0),W5.enable();var og=Ubt.prototype,Uz=Lt(og.delete),I1=Lt(og.has),Wz=Lt(og.get),Gz=Lt(og.set);k1(og,{delete:function(t){if(be(t)&&!Ys(t)){var e=j1(this);return e.frozen||(e.frozen=new rg),Uz(this,t)||e.frozen.delete(t)}return Uz(this,t)},has:function(t){if(be(t)&&!Ys(t)){var e=j1(this);return e.frozen||(e.frozen=new rg),I1(this,t)||e.frozen.has(t)}return I1(this,t)},get:function(t){if(be(t)&&!Ys(t)){var e=j1(this);return e.frozen||(e.frozen=new rg),I1(this,t)?Wz(this,t):e.frozen.get(t)}return Wz(this,t)},set:function(t,e){if(be(t)&&!Ys(t)){var n=j1(this);n.frozen||(n.frozen=new rg),I1(this,t)?Gz(this,t,e):n.frozen.set(t,e)}else Gz(this,t,e);return this}})}var L1={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},K5=Gh("span").classList,qz=K5&&K5.constructor&&K5.constructor.prototype,$z=qz===Object.prototype?void 0:qz,Y5=Ke("iterator"),Kz=Ke("toStringTag"),X5=eg.values,Yz=function(t,e){if(t){if(t[Y5]!==X5)try{ei(t,Y5,X5)}catch{t[Y5]=X5}if(t[Kz]||ei(t,Kz,e),L1[e]){for(var n in eg)if(t[n]!==eg[n])try{ei(t,n,eg[n])}catch{t[n]=eg[n]}}}};for(var Z5 in L1)Yz(rt[Z5]&&rt[Z5].prototype,Z5);Yz($z,"DOMTokenList");var Xz=function(t,e){var n=[][t];return!!n&&Ce(function(){n.call(null,e||function(){throw 1},1)})},Wbt=q5.forEach,J5=Xz("forEach")?[].forEach:function(t){return Wbt(this,t,arguments.length>1?arguments[1]:void 0)},Zz=function(t){if(t&&t.forEach!==J5)try{ei(t,"forEach",J5)}catch{t.forEach=J5}};for(var Q5 in L1)L1[Q5]&&Zz(rt[Q5]&&rt[Q5].prototype);Zz($z);var ig,nf,Jz,t8,R1=rt.Promise,Qz=Ke("species"),tH=/(?:ipad|iphone|ipod).*applewebkit/i.test(Xc),pu=Co(rt.process)=="process",e8=rt.setImmediate,n8=rt.clearImmediate,Gbt=rt.process,r8=rt.Dispatch,qbt=rt.Function,eH=rt.MessageChannel,$bt=rt.String,o8=0,ag={};try{ig=rt.location}catch{}var i8=function(t){if(ln(ag,t)){var e=ag[t];delete ag[t],e()}},a8=function(t){return function(){i8(t)}},nH=function(t){i8(t.data)},rH=function(t){rt.postMessage($bt(t),ig.protocol+"//"+ig.host)};e8&&n8||(e8=function(t){var e=rz(arguments,1);return ag[++o8]=function(){pz(pe(t)?t:qbt(t),void 0,e)},nf(o8),o8},n8=function(t){delete ag[t]},pu?nf=function(t){Gbt.nextTick(a8(t))}:r8&&r8.now?nf=function(t){r8.now(a8(t))}:eH&&!tH?(t8=(Jz=new eH).port2,Jz.port1.onmessage=nH,nf=ng(t8.postMessage,t8)):rt.addEventListener&&pe(rt.postMessage)&&!rt.importScripts&&ig&&ig.protocol!=="file:"&&!Ce(rH)?(nf=rH,rt.addEventListener("message",nH,!1)):nf="onreadystatechange"in Gh("script")?function(t){D5.appendChild(Gh("script")).onreadystatechange=function(){D5.removeChild(this),i8(t)}}:function(t){setTimeout(a8(t),0)});var ug,Xs,sg,rf,u8,s8,l8,oH,iH={set:e8,clear:n8},Kbt=/ipad|iphone|ipod/i.test(Xc)&&rt.Pebble!==void 0,Ybt=/web0s(?!.*chrome)/i.test(Xc),Xbt=h5.f,c8=iH.set,aH=rt.MutationObserver||rt.WebKitMutationObserver,uH=rt.document,sH=rt.process,M1=rt.Promise,lH=Xbt(rt,"queueMicrotask"),cH=lH&&lH.value;cH||(ug=function(){var t,e;for(pu&&(t=sH.domain)&&t.exit();Xs;){e=Xs.fn,Xs=Xs.next;try{e()}catch(n){throw Xs?rf():sg=void 0,n}}sg=void 0,t&&t.enter()},tH||pu||Ybt||!aH||!uH?!Kbt&&M1&&M1.resolve?((l8=M1.resolve(void 0)).constructor=M1,oH=ng(l8.then,l8),rf=function(){oH(ug)}):pu?rf=function(){sH.nextTick(ug)}:(c8=ng(c8,rt),rf=function(){c8(ug)}):(u8=!0,s8=uH.createTextNode(""),new aH(ug).observe(s8,{characterData:!0}),rf=function(){s8.data=u8=!u8}));var f8,fH,dH,pH,hH=cH||function(t){var e={fn:t,next:void 0};sg&&(sg.next=e),Xs||(Xs=e,rf()),sg=e},Zbt=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=lu(e),this.reject=lu(n)},d8={f:function(t){return new Zbt(t)}},p8=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Jbt=typeof window=="object",gH=iH.set,Qbt=Ke("species"),ji="Promise",vH=Tr.getterFor(ji),t2t=Tr.set,e2t=Tr.getterFor(ji),Zs=R1&&R1.prototype,ri=R1,lg=Zs,mH=rt.TypeError,h8=rt.document,g8=rt.process,of=d8.f,n2t=of,r2t=!!(h8&&h8.createEvent&&rt.dispatchEvent),yH=pe(rt.PromiseRejectionEvent),bH=!1,cg=b1(ji,function(){var t=g1(ri),e=t!==String(ri);if(!e&&Hh===66)return!0;if(Hh>=51&&/native code/.test(t))return!1;var n=new ri(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Qbt]=r,!(bH=n.then(function(){})instanceof r)||!e&&Jbt&&!yH}),o2t=cg||!Lz(function(t){ri.all(t).catch(function(){})}),wH=function(t){var e;return!(!be(t)||!pe(e=t.then))&&e},v8=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;hH(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&a2t(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(mH("Promise-chain cycle")):(u=wH(a))?ie(u,a,f,p):f(a)):p(r)}catch(y){d&&!s&&d.exit(),p(y)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&i2t(t)})}},EH=function(t,e,n){var r,o;r2t?((r=h8.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),rt.dispatchEvent(r)):r={promise:e,reason:n},!yH&&(o=rt["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=rt.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},i2t=function(t){ie(gH,rt,function(){var e,n=t.facade,r=t.value;if(CH(t)&&(e=p8(function(){pu?g8.emit("unhandledRejection",r,n):EH("unhandledrejection",n,r)}),t.rejection=pu||CH(t)?2:1,e.error))throw e.value})},CH=function(t){return t.rejection!==1&&!t.parent},a2t=function(t){ie(gH,rt,function(){var e=t.facade;pu?g8.emit("rejectionHandled",e):EH("rejectionhandled",e,t.value)})},af=function(t,e,n){return function(r){t(e,r,n)}},uf=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,v8(t,!0))},m8=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw mH("Promise can't be resolved itself");var r=wH(e);r?hH(function(){var o={done:!1};try{ie(r,e,af(m8,o,t),af(uf,o,t))}catch(i){uf(o,i,t)}}):(t.value=e,t.state=1,v8(t,!1))}catch(o){uf({done:!1},o,t)}}};if(cg&&(lg=(ri=function(t){G5(this,lg),lu(t),ie(f8,this);var e=vH(this);try{t(af(m8,e),af(uf,e))}catch(n){uf(e,n)}}).prototype,(f8=function(t){t2t(this,{type:ji,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=k1(lg,{then:function(t,e){var n=e2t(this),r=n.reactions,o=of(hz(this,ri));return o.ok=!pe(t)||t,o.fail=pe(e)&&e,o.domain=pu?g8.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&v8(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),fH=function(){var t=new f8,e=vH(t);this.promise=t,this.resolve=af(m8,e),this.reject=af(uf,e)},d8.f=of=function(t){return t===ri||t===dH?new fH(t):n2t(t)},pe(R1)&&Zs!==Object.prototype)){pH=Zs.then,bH||(Fr(Zs,"then",function(t,e){var n=this;return new ri(function(r,o){ie(pH,n,r,o)}).then(t,e)},{unsafe:!0}),Fr(Zs,"catch",lg.catch,{unsafe:!0}));try{delete Zs.constructor}catch{}ef&&ef(Zs,lg)}ni({global:!0,wrap:!0,forced:cg},{Promise:ri}),_1(ri,ji,!1),function(t){var e=Gs("Promise"),n=Ni.f;ti&&e&&!e[Qz]&&n(e,Qz,{configurable:!0,get:function(){return this}})}(),dH=Gs(ji),ni({target:ji,stat:!0,forced:cg},{reject:function(t){var e=of(this);return ie(e.reject,void 0,t),e.promise}}),ni({target:ji,stat:!0,forced:cg},{resolve:function(t){return function(e,n){if(En(e),be(n)&&n.constructor===e)return n;var r=d8.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),ni({target:ji,stat:!0,forced:o2t},{all:function(t){var e=this,n=of(e),r=n.resolve,o=n.reject,i=p8(function(){var a=lu(e.resolve),u=[],s=0,l=1;F1(t,function(c){var f=s++,p=!1;l++,ie(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=of(e),r=n.reject,o=p8(function(){var i=lu(e.resolve);F1(t,function(a){ie(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var u2t=$h.PROPER,y8=RegExp.prototype,xH=y8.toString,s2t=Lt(oz),l2t=Ce(function(){return xH.call({source:"a",flags:"b"})!="/a/b"}),c2t=u2t&&xH.name!="toString";(l2t||c2t)&&Fr(RegExp.prototype,"toString",function(){var t=En(this),e=fu(t.source),n=t.flags;return"/"+e+"/"+fu(n===void 0&&zh(y8,t)&&!("flags"in y8)?s2t(t):n)},{unsafe:!0});var f2t=$h.EXISTS,d2t=Ni.f,SH=Function.prototype,p2t=Lt(SH.toString),DH=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,h2t=Lt(DH.exec);ti&&!f2t&&d2t(SH,"name",{configurable:!0,get:function(){try{return h2t(DH,p2t(this))[1]}catch{return""}}});var AH=new WeakMap;function _H(t){return t.getMenuConfig("uploadImage")}function g2t(t,e){return I5(this,void 0,void 0,function(){return L5(this,function(n){return[2,new Promise(function(r){var o=new FileReader;o.readAsDataURL(e),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;ws(t,a,e.name,u),r("ok")}}})]})})}function v2t(t,e){return I5(this,void 0,void 0,function(){var n,r,o,i;return L5(this,function(a){switch(a.label){case 0:return n=function(u){var s=AH.get(u);if(s!=null)return s;var l=_H(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,y=l.onError;return s=IF(D1(D1({},l),{onProgress:function(g){u.showProgressBar(g),f&&f(g)},onSuccess:function(g,v){if(d)return d(v,function(R,V,L){return ws(u,R,V,L)}),void c(g,v);var m=v.errno,h=m===void 0?1:m,w=v.data,E=w===void 0?{}:w;if(h===0){if(Array.isArray(E))E.forEach(function(R){var V=R.url,L=V===void 0?"":V,W=R.alt,H=W===void 0?"":W,U=R.href;ws(u,L,H,U===void 0?"":U)});else{var C=E.url,D=C===void 0?"":C,S=E.alt,A=S===void 0?"":S,k=E.href;ws(u,D,A,k===void 0?"":k)}c(g,v)}else p(g,v)},onError:function(g,v,m){y(g,v,m)}})),AH.set(u,s),s}(t),r=e.name,o=e.type,i=e.size,n.addFile({name:r,type:o,size:i,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}})})}function OH(t,e){var n,r;return I5(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,p;return L5(this,function(d){switch(d.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),i=_H(t),a=i.customUpload,u=i.base64LimitSize,d.label=1;case 1:d.trys.push([1,11,12,17]),s=sbt(o),d.label=2;case 2:return[4,s.next()];case 3:return(l=d.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,g2t(t,c)]:[3,5]);case 4:return d.sent(),[3,9];case 5:return a?[4,a(c,function(y,g,v){return ws(t,y,g,v)})]:[3,7];case 6:return d.sent(),[3,9];case 7:return[4,v2t(t,c)];case 8:d.sent(),d.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return p=d.sent(),n={error:p},[3,17];case 12:return d.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:d.sent(),d.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 m2t=Lt([].join),y2t=o5!=Object,b2t=Xz("join",",");ni({target:"Array",proto:!0,forced:y2t||!b2t},{join:function(t){return m2t(su(this),t===void 0?",":t)}}),Lr&&(T.fn.append=Lr),Ro&&(T.fn.on=Ro),Il&&(T.fn.remove=Il),Lo&&(T.fn.val=Lo),bO&&(T.fn.click=bO),Fl&&(T.fn.hide=Fl);var w2t=function(){function t(){this.title=et("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return wm(e)},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f,p){return ws(e,c,f,p)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=T("body"),l=T('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;OH(e,c)})}},t}(),E2t={menus:[{key:"uploadImage",factory:function(){return new w2t},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,n=t;return n.insertData=function(r){if(wm(n))e(r);else if(r.getData("text/plain"))e(r);else{var o=r.files;o.length<=0?e(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),p=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)p.push(l.value)}catch(d){c={error:d}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return p}(i.type.split("/"),1)[0]==="image"})?OH(t,o):e(r)}},n}};ir("en",{highLightModule:{selectLang:"Language"}}),ir("zh-CN",{highLightModule:{selectLang:"选择语言"}});var V1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function b8(t){var e={exports:{}};return t(e,e.exports),e.exports}var hu,z1,H1=function(t){return t&&t.Math==Math&&t},Mt=H1(typeof globalThis=="object"&&globalThis)||H1(typeof window=="object"&&window)||H1(typeof self=="object"&&self)||H1(typeof V1=="object"&&V1)||function(){return this}()||Function("return this")(),C2t=Object.defineProperty,w8=function(t,e){try{C2t(Mt,t,{value:e,configurable:!0,writable:!0})}catch{Mt[t]=e}return e},gu=Mt["__core-js_shared__"]||w8("__core-js_shared__",{}),E8=b8(function(t){(t.exports=function(e,n){return gu[e]||(gu[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),kH=Function.prototype,C8=kH.bind,x8=kH.call,x2t=C8&&C8.bind(x8),ae=C8?function(t){return t&&x2t(x8,t)}:function(t){return t&&function(){return x8.apply(t,arguments)}},S2t=Mt.TypeError,sf=function(t){if(t==null)throw S2t("Can't call method on "+t);return t},D2t=Mt.Object,S8=function(t){return D2t(sf(t))},A2t=ae({}.hasOwnProperty),eo=Object.hasOwn||function(t,e){return A2t(S8(t),e)},_2t=0,O2t=Math.random(),k2t=ae(1 .toString),BH=function(t){return"Symbol("+(t===void 0?"":t)+")_"+k2t(++_2t+O2t,36)},Rn=function(t){return typeof t=="function"},B2t=function(t){return Rn(t)?t:void 0},fg=function(t,e){return arguments.length<2?B2t(Mt[t]):Mt[t]&&Mt[t][e]},D8=fg("navigator","userAgent")||"",TH=Mt.process,FH=Mt.Deno,PH=TH&&TH.versions||FH&&FH.version,NH=PH&&PH.v8;NH&&(z1=(hu=NH.split("."))[0]>0&&hu[0]<4?1:+(hu[0]+hu[1])),!z1&&D8&&(!(hu=D8.match(/Edge\/(\d+)/))||hu[1]>=74)&&(hu=D8.match(/Chrome\/(\d+)/))&&(z1=+hu[1]);var jH=z1,Cn=function(t){try{return!!t()}catch{return!0}},A8=!!Object.getOwnPropertySymbols&&!Cn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&jH&&jH<41}),_8=A8&&!Symbol.sham&&typeof Symbol.iterator=="symbol",dg=E8("wks"),Js=Mt.Symbol,IH=Js&&Js.for,T2t=_8?Js:Js&&Js.withoutSetter||BH,vu=function(t){if(!eo(dg,t)||!A8&&typeof dg[t]!="string"){var e="Symbol."+t;A8&&eo(Js,t)?dg[t]=Js[t]:dg[t]=_8&&IH?IH(e):T2t(e)}return dg[t]},LH={};LH[vu("toStringTag")]="z";var O8=String(LH)==="[object z]",oi=!Cn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),xo=function(t){return typeof t=="object"?t!==null:Rn(t)},k8=Mt.document,F2t=xo(k8)&&xo(k8.createElement),B8=function(t){return F2t?k8.createElement(t):{}},RH=!oi&&!Cn(function(){return Object.defineProperty(B8("div"),"a",{get:function(){return 7}}).a!=7}),P2t=Mt.String,N2t=Mt.TypeError,So=function(t){if(xo(t))return t;throw N2t(P2t(t)+" is not an object")},pg=Function.prototype.call,hn=pg.bind?pg.bind(pg):function(){return pg.apply(pg,arguments)},MH=ae({}.isPrototypeOf),j2t=Mt.Object,T8=_8?function(t){return typeof t=="symbol"}:function(t){var e=fg("Symbol");return Rn(e)&&MH(e.prototype,j2t(t))},I2t=Mt.String,VH=function(t){try{return I2t(t)}catch{return"Object"}},L2t=Mt.TypeError,zH=function(t){if(Rn(t))return t;throw L2t(VH(t)+" is not a function")},HH=function(t,e){var n=t[e];return n==null?void 0:zH(n)},R2t=Mt.TypeError,M2t=Mt.TypeError,V2t=vu("toPrimitive"),F8=function(t){var e=function(n,r){if(!xo(n)||T8(n))return n;var o,i=HH(n,V2t);if(i){if(r===void 0&&(r="default"),o=hn(i,n,r),!xo(o)||T8(o))return o;throw M2t("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&Rn(s=a.toString)&&!xo(l=hn(s,a))||Rn(s=a.valueOf)&&!xo(l=hn(s,a))||u!=="string"&&Rn(s=a.toString)&&!xo(l=hn(s,a)))return l;throw R2t("Can't convert object to primitive value")}(n,r)}(t,"string");return T8(e)?e:e+""},z2t=Mt.TypeError,UH=Object.defineProperty,U1={f:oi?UH:function(t,e,n){if(So(t),e=F8(e),So(n),RH)try{return UH(t,e,n)}catch{}if("get"in n||"set"in n)throw z2t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},P8=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},lf=oi?function(t,e,n){return U1.f(t,e,P8(1,n))}:function(t,e,n){return t[e]=n,t},H2t=ae(Function.toString);Rn(gu.inspectSource)||(gu.inspectSource=function(t){return H2t(t)});var W1,hg,G1,N8=gu.inspectSource,WH=Mt.WeakMap,U2t=Rn(WH)&&/native code/.test(N8(WH)),GH=E8("keys"),qH=function(t){return GH[t]||(GH[t]=BH(t))},j8={},I8=Mt.TypeError,W2t=Mt.WeakMap;if(U2t||gu.state){var Qs=gu.state||(gu.state=new W2t),G2t=ae(Qs.get),$H=ae(Qs.has),q2t=ae(Qs.set);W1=function(t,e){if($H(Qs,t))throw new I8("Object already initialized");return e.facade=t,q2t(Qs,t,e),e},hg=function(t){return G2t(Qs,t)||{}},G1=function(t){return $H(Qs,t)}}else{var cf=qH("state");j8[cf]=!0,W1=function(t,e){if(eo(t,cf))throw new I8("Object already initialized");return e.facade=t,lf(t,cf,e),e},hg=function(t){return eo(t,cf)?t[cf]:{}},G1=function(t){return eo(t,cf)}}var L8={set:W1,get:hg,has:G1,enforce:function(t){return G1(t)?hg(t):W1(t,{})},getterFor:function(t){return function(e){var n;if(!xo(e)||(n=hg(e)).type!==t)throw I8("Incompatible receiver, "+t+" required");return n}}},KH=Function.prototype,$2t=oi&&Object.getOwnPropertyDescriptor,R8=eo(KH,"name"),YH={EXISTS:R8,PROPER:R8&&(function(){}).name==="something",CONFIGURABLE:R8&&(!oi||oi&&$2t(KH,"name").configurable)},gg=b8(function(t){var e=YH.CONFIGURABLE,n=L8.get,r=L8.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Rn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!eo(u,"name")||e&&u.name!==d)&&lf(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Mt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:lf(i,a,u)):f?i[a]=u:w8(a,u)})(Function.prototype,"toString",function(){return Rn(this)&&n(this).source||N8(this)})}),K2t=ae({}.toString),Y2t=ae("".slice),mu=function(t){return Y2t(K2t(t),8,-1)},X2t=vu("toStringTag"),Z2t=Mt.Object,J2t=mu(function(){return arguments}())=="Arguments",M8=O8?mu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Z2t(t),X2t))=="string"?n:J2t?mu(e):(r=mu(e))=="Object"&&Rn(e.callee)?"Arguments":r},Q2t=O8?{}.toString:function(){return"[object "+M8(this)+"]"};O8||gg(Object.prototype,"toString",Q2t,{unsafe:!0});var XH,ZH={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},V8=B8("span").classList,JH=V8&&V8.constructor&&V8.constructor.prototype,twt=JH===Object.prototype?void 0:JH,QH=ae(ae.bind),z8=Mt.Object,ewt=ae("".split),H8=Cn(function(){return!z8("z").propertyIsEnumerable(0)})?function(t){return mu(t)=="String"?ewt(t,""):z8(t)}:z8,nwt=Math.ceil,rwt=Math.floor,U8=function(t){var e=+t;return e!=e||e===0?0:(e>0?rwt:nwt)(e)},owt=Math.min,tU=function(t){return t>0?owt(U8(t),9007199254740991):0},W8=function(t){return tU(t.length)},eU=Array.isArray||function(t){return mu(t)=="Array"},nU=function(){},iwt=[],rU=fg("Reflect","construct"),G8=/^\s*(?:class|function)\b/,awt=ae(G8.exec),uwt=!G8.exec(nU),vg=function(t){if(!Rn(t))return!1;try{return rU(nU,iwt,t),!0}catch{return!1}},oU=!rU||Cn(function(){var t;return vg(vg.call)||!vg(Object)||!vg(function(){t=!0})||t})?function(t){if(!Rn(t))return!1;switch(M8(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return uwt||!!awt(G8,N8(t))}:vg,swt=vu("species"),iU=Mt.Array,lwt=function(t,e){return new(function(n){var r;return eU(n)&&(r=n.constructor,(oU(r)&&(r===iU||eU(r.prototype))||xo(r)&&(r=r[swt])===null)&&(r=void 0)),r===void 0?iU:r}(t))(e===0?0:e)},aU=ae([].push),yu=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,y=S8(s),g=H8(y),v=function(C,D){return zH(C),D===void 0?C:QH?QH(C,D):function(){return C.apply(D,arguments)}}(l,c),m=W8(g),h=0,w=f||lwt,E=e?w(s,m):n||a?w(s,0):void 0;m>h;h++)if((u||h in g)&&(d=v(p=g[h],h,y),t))if(e)E[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:aU(E,p)}else switch(t){case 4:return!1;case 7:aU(E,p)}return i?-1:r||o?o:E}},cwt=[yu(0),yu(1),yu(2),yu(3),yu(4),yu(5),yu(6),yu(7)][0],q8=(XH=[].forEach)&&Cn(function(){XH.call(null,function(){throw 1},1)})?[].forEach:function(t){return cwt(this,t,arguments.length>1?arguments[1]:void 0)},uU=function(t){if(t&&t.forEach!==q8)try{lf(t,"forEach",q8)}catch{t.forEach=q8}};for(var $8 in ZH)ZH[$8]&&uU(Mt[$8]&&Mt[$8].prototype);uU(twt);var sU={}.propertyIsEnumerable,lU=Object.getOwnPropertyDescriptor,cU={f:lU&&!sU.call({1:2},1)?function(t){var e=lU(this,t);return!!e&&e.enumerable}:sU},q1=function(t){return H8(sf(t))},fU=Object.getOwnPropertyDescriptor,dU={f:oi?fU:function(t,e){if(t=q1(t),e=F8(e),RH)try{return fU(t,e)}catch{}if(eo(t,e))return P8(!hn(cU.f,t,e),t[e])}},fwt=Math.max,dwt=Math.min,K8=function(t,e){var n=U8(t);return n<0?fwt(n+e,0):dwt(n,e)},pwt=function(t){return function(e,n,r){var o,i=q1(e),a=W8(i),u=K8(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},hwt=pwt(!1),pU=ae([].push),hU=function(t,e){var n,r=q1(t),o=0,i=[];for(n in r)!eo(j8,n)&&eo(r,n)&&pU(i,n);for(;e.length>o;)eo(r,n=e[o++])&&(~hwt(i,n)||pU(i,n));return i},$1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gwt=$1.concat("length","prototype"),vwt={f:Object.getOwnPropertyNames||function(t){return hU(t,gwt)}},gU={f:Object.getOwnPropertySymbols},mwt=ae([].concat),ywt=fg("Reflect","ownKeys")||function(t){var e=vwt.f(So(t)),n=gU.f;return n?mwt(e,n(t)):e},bwt=function(t,e){for(var n=ywt(e),r=U1.f,o=dU.f,i=0;i<n.length;i++){var a=n[i];eo(t,a)||r(t,a,o(e,a))}},wwt=/#|\.prototype\./,mg=function(t,e){var n=Cwt[Ewt(t)];return n==Swt||n!=xwt&&(Rn(e)?Cn(e):!!e)},Ewt=mg.normalize=function(t){return String(t).replace(wwt,".").toLowerCase()},Cwt=mg.data={},xwt=mg.NATIVE="N",Swt=mg.POLYFILL="P",Dwt=mg,Awt=dU.f,K1=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Mt:l?Mt[u]||w8(u,{}):(Mt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Awt(n,r))&&a.value:n[r],!Dwt(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;bwt(i,o)}(t.sham||o&&o.sham)&&lf(i,"sham",!0),gg(n,r,i,t)}},Y1=Object.keys||function(t){return hU(t,$1)},ff=Object.assign,vU=Object.defineProperty,_wt=ae([].concat),mU=!ff||Cn(function(){if(oi&&ff({b:1},ff(vU({},"a",{enumerable:!0,get:function(){vU(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),ff({},t)[n]!=7||Y1(ff({},e)).join("")!=r})?function(t,e){for(var n=S8(t),r=arguments.length,o=1,i=gU.f,a=cU.f;r>o;)for(var u,s=H8(arguments[o++]),l=i?_wt(Y1(s),i(s)):Y1(s),c=l.length,f=0;c>f;)u=l[f++],oi&&!hn(a,s,u)||(n[u]=s[u]);return n}:ff;K1({target:"Object",stat:!0,forced:Object.assign!==mU},{assign:mU});var yU=b8(function(t){var e=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 v(m){return m instanceof u?new u(m.type,v(m.content),m.alias):Array.isArray(m)?m.map(v):m.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++o}),v.__id},clone:function v(m,h){var w,E;switch(h=h||{},a.util.type(m)){case"Object":if(E=a.util.objId(m),h[E])return h[E];for(var C in w={},h[E]=w,m)m.hasOwnProperty(C)&&(w[C]=v(m[C],h));return w;case"Array":return E=a.util.objId(m),h[E]?h[E]:(w=[],h[E]=w,m.forEach(function(D,S){w[S]=v(D,h)}),w);default:return m}},getLanguage:function(v){for(;v&&!r.test(v.className);)v=v.parentElement;return v?(v.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(w){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(v){var m=document.getElementsByTagName("script");for(var h in m)if(m[h].src==v)return m[h]}return null}},isActive:function(v,m,h){for(var w="no-"+m;v;){var E=v.classList;if(E.contains(m))return!0;if(E.contains(w))return!1;v=v.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(v,m){var h=a.util.clone(a.languages[v]);for(var w in m)h[w]=m[w];return h},insertBefore:function(v,m,h,w){var E=(w=w||a.languages)[v],C={};for(var D in E)if(E.hasOwnProperty(D)){if(D==m)for(var S in h)h.hasOwnProperty(S)&&(C[S]=h[S]);h.hasOwnProperty(D)||(C[D]=E[D])}var A=w[v];return w[v]=C,a.languages.DFS(a.languages,function(k,R){R===A&&k!=v&&(this[k]=C)}),C},DFS:function v(m,h,w,E){E=E||{};var C=a.util.objId;for(var D in m)if(m.hasOwnProperty(D)){h.call(m,D,m[D],w||D);var S=m[D],A=a.util.type(S);A!=="Object"||E[C(S)]?A!=="Array"||E[C(S)]||(E[C(S)]=!0,v(S,h,D,E)):(E[C(S)]=!0,v(S,h,null,E))}}},plugins:{},highlightAll:function(v,m){a.highlightAllUnder(document,v,m)},highlightAllUnder:function(v,m,h){var w={callback:h,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),a.hooks.run("before-all-elements-highlight",w);for(var E,C=0;E=w.elements[C++];)a.highlightElement(E,m===!0,w.callback)},highlightElement:function(v,m,h){var w=a.util.getLanguage(v),E=a.languages[w];v.className=v.className.replace(r,"").replace(/\s+/g," ")+" language-"+w;var C=v.parentElement;C&&C.nodeName.toLowerCase()==="pre"&&(C.className=C.className.replace(r,"").replace(/\s+/g," ")+" language-"+w);var D={element:v,language:w,grammar:E,code:v.textContent};function S(k){D.highlightedCode=k,a.hooks.run("before-insert",D),D.element.innerHTML=D.highlightedCode,a.hooks.run("after-highlight",D),a.hooks.run("complete",D),h&&h.call(D.element)}if(a.hooks.run("before-sanity-check",D),(C=D.element.parentElement)&&C.nodeName.toLowerCase()==="pre"&&!C.hasAttribute("tabindex")&&C.setAttribute("tabindex","0"),!D.code)return a.hooks.run("complete",D),void(h&&h.call(D.element));if(a.hooks.run("before-highlight",D),D.grammar)if(m&&n.Worker){var A=new Worker(a.filename);A.onmessage=function(k){S(k.data)},A.postMessage(JSON.stringify({language:D.language,code:D.code,immediateClose:!0}))}else S(a.highlight(D.code,D.grammar,D.language));else S(a.util.encode(D.code))},highlight:function(v,m,h){var w={code:v,grammar:m,language:h};return a.hooks.run("before-tokenize",w),w.tokens=a.tokenize(w.code,w.grammar),a.hooks.run("after-tokenize",w),u.stringify(a.util.encode(w.tokens),w.language)},tokenize:function(v,m){var h=m.rest;if(h){for(var w in h)m[w]=h[w];delete m.rest}var E=new c;return f(E,E.head,v),l(v,E,m,E.head,0),function(C){for(var D=[],S=C.head.next;S!==C.tail;)D.push(S.value),S=S.next;return D}(E)},hooks:{all:{},add:function(v,m){var h=a.hooks.all;h[v]=h[v]||[],h[v].push(m)},run:function(v,m){var h=a.hooks.all[v];if(h&&h.length)for(var w,E=0;w=h[E++];)w(m)}},Token:u};function u(v,m,h,w){this.type=v,this.content=m,this.alias=h,this.length=0|(w||"").length}function s(v,m,h,w){v.lastIndex=m;var E=v.exec(h);if(E&&w&&E[1]){var C=E[1].length;E.index+=C,E[0]=E[0].slice(C)}return E}function l(v,m,h,w,E,C){for(var D in h)if(h.hasOwnProperty(D)&&h[D]){var S=h[D];S=Array.isArray(S)?S:[S];for(var A=0;A<S.length;++A){if(C&&C.cause==D+","+A)return;var k=S[A],R=k.inside,V=!!k.lookbehind,L=!!k.greedy,W=k.alias;if(L&&!k.pattern.global){var H=k.pattern.toString().match(/[imsuy]*$/)[0];k.pattern=RegExp(k.pattern.source,H+"g")}for(var U=k.pattern||k,$=w.next,J=E;$!==m.tail&&!(C&&J>=C.reach);J+=$.value.length,$=$.next){var st=$.value;if(m.length>v.length)return;if(!(st instanceof u)){var lt,ct=1;if(L){if(!(lt=s(U,J,v,V)))break;var B=lt.index,_=lt.index+lt[0].length,N=J;for(N+=$.value.length;B>=N;)N+=($=$.next).value.length;if(J=N-=$.value.length,$.value instanceof u)continue;for(var q=$;q!==m.tail&&(N<_||typeof q.value=="string");q=q.next)ct++,N+=q.value.length;ct--,st=v.slice(J,N),lt.index-=J}else if(!(lt=s(U,0,st,V)))continue;B=lt.index;var X=lt[0],K=st.slice(0,B),ut=st.slice(B+X.length),mt=J+st.length;C&&mt>C.reach&&(C.reach=mt);var bt=$.prev;if(K&&(bt=f(m,bt,K),J+=K.length),p(m,bt,ct),$=f(m,bt,new u(D,R?a.tokenize(X,R):X,W,X)),ut&&f(m,$,ut),ct>1){var _t={cause:D+","+A,reach:mt};l(v,m,h,$.prev,J,_t),C&&_t.reach>C.reach&&(C.reach=_t.reach)}}}}}}function c(){var v={value:null,prev:null,next:null},m={value:null,prev:v,next:null};v.next=m,this.head=v,this.tail=m,this.length=0}function f(v,m,h){var w=m.next,E={value:h,prev:m,next:w};return m.next=E,w.prev=E,v.length++,E}function p(v,m,h){for(var w=m.next,E=0;E<h&&w!==v.tail;E++)w=w.next;m.next=w,w.prev=m,v.length-=E}if(n.Prism=a,u.stringify=function v(m,h){if(typeof m=="string")return m;if(Array.isArray(m)){var w="";return m.forEach(function(A){w+=v(A,h)}),w}var E={type:m.type,content:v(m.content,h),tag:"span",classes:["token",m.type],attributes:{},language:h},C=m.alias;C&&(Array.isArray(C)?Array.prototype.push.apply(E.classes,C):E.classes.push(C)),a.hooks.run("wrap",E);var D="";for(var S in E.attributes)D+=" "+S+'="'+(E.attributes[S]||"").replace(/"/g,""")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+D+">"+E.content+"</"+E.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(v){var m=JSON.parse(v.data),h=m.language,w=m.code,E=m.immediateClose;n.postMessage(a.highlight(w,a.languages[h],h)),E&&n.close()},!1)),a;var d=a.util.currentScript();function y(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var g=document.readyState;g==="loading"||g==="interactive"&&d&&d.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:{});/**
|
|
169
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
170
|
-
*
|
|
171
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
172
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
173
|
-
* @namespace
|
|
174
|
-
* @public
|
|
175
|
-
*/t.exports&&(t.exports=e),V1!==void 0&&(V1.Prism=e),e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:e.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},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(n,r){e.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:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,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"))}(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|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:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?: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}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,function(){if(e!==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;e.hooks.add("before-highlightall",function(s){s.selector+=", "+o}),e.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"),p=s.language;if(p==="none"){var d=(/\.(\w+)$/.exec(f)||[,"none"])[1];p=n[d]||d}u(c,p),u(l,p);var y=e.plugins.autoloader;y&&y.loadLanguages(p);var g=new XMLHttpRequest;g.open("GET",f,!0),g.onreadystatechange=function(){g.readyState==4&&(g.status<400&&g.responseText?(l.setAttribute(r,"loaded"),c.textContent=g.responseText,e.highlightElement(c)):(l.setAttribute(r,"failed"),g.status>=400?c.textContent="✖ Error "+g.status+" while fetching file: "+g.statusText:c.textContent="✖ Error: File does not exist or is empty"))},g.send(null)}}),e.plugins.fileHighlight={highlight:function(s){for(var l,c=(s||document).querySelectorAll(o),f=0;l=c[f++];)e.highlightElement(l)}};var a=!1;e.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),e.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(t){var e=t.util.clone(t.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,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx},alias:"language-javascript"}},t.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],p=!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--:p=!0),(p||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var d=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(d+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(d=a(s[c-1])+d,s.splice(c-1,1),c--),s[c]=new t.Token("plain-text",d,null,d)}f.content&&typeof f.content!="string"&&u(f.content)}};t.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),function(t){t.languages.typescript=t.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/}),t.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 t.languages.typescript.parameter;var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.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:e}}}}),t.languages.ts=t.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(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},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(t){var e=/\/\*[\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=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,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:t.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}}];t.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:e,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"}}}}),t.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&t.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),t.hooks.add("after-tokenize",function(s){t.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(t){var e=/\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:/\./}};t.languages.java=t.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[t.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}}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),t.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:e,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 e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\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 e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.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:e,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/}),t.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}}),t.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:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism),function(t){function e(_,N){return _.replace(/<<(\d+)>>/g,function(q,X){return"(?:"+N[+X]+")"})}function n(_,N,q){return RegExp(e(_,N),q||"")}function r(_,N){for(var q=0;q<N;q++)_=_.replace(/<<self>>/g,function(){return"(?:"+_+")"});return _.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(_){return"\\b(?:"+_.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),p=s(o+" "+i+" "+u),d=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),y=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=e(/<<0>>(?:\s*<<1>>)?/.source,[g,d]),m=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),h=/\[\s*(?:,\s*)*\]/.source,w=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,h]),E=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,y,h]),C=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),D=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[C,m,h]),S={keyword:c,punctuation:/[<>()?,.:[\]]/},A=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,k=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0},{pattern:RegExp(A),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,D]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:S},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:S},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[w]),lookbehind:!0,inside:S},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[D,p,g]),inside:S}],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:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),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:S},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[D,m]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[D]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,d]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(d),alias:"class-name",inside:S}}},"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,v,g,D,c.source,y,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,y]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(D),greedy:!0,inside:S},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 V=k+"|"+A,L=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[V]),W=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[L]),2),H=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,U=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,W]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[H,U]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[H]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[W]),inside:t.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var $=/:[^}\r\n]+/.source,J=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[L]),2),st=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[J,$]),lt=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[V]),2),ct=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[lt,$]);function B(_,N){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[_]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[N,$]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[st]),lookbehind:!0,greedy:!0,inside:B(st,J)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ct]),lookbehind:!0,greedy:!0,inside:B(ct,lt)}]})}(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(t){t.languages.ruby=t.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 e={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:t.languages.ruby}};delete t.languages.ruby.function,t.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:e}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e}}],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:t.languages.ruby}}}),t.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)/}),t.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:e}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e}},{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:e}},{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:/^<<[-~]?'|'$/}}}}],t.languages.rb=t.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(t){t.inside.interpolation.inside=Prism.languages.swift}),function(t){var e="\\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("\\$"+e),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("(\\{)"+e),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})/};t.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;|&]|[<>]\\()"+e),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("\\$?"+e),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=t.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]]=t.languages.bash[o[a]];t.languages.shell=t.languages.bash}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(l){return l=l.replace(/<inner>/g,function(){return e}),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;t.languages.markdown=t.languages.extend("markup",{}),t.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:t.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:t.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:t.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&&(t.languages.markdown[l].inside.content.inside[c]=t.languages.markdown[c])})}),t.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var p=0,d=f.length;p<d;p++){var y=f[p];if(y.type==="code"){var g=y.content[1],v=y.content[3];if(g&&v&&g.type==="code-language"&&v.type==="code-block"&&typeof g.content=="string"){var m=g.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(m=(/[a-z][\w-]*/i.exec(m)||[""])[0].toLowerCase());v.alias?typeof v.alias=="string"?v.alias=[v.alias,h]:v.alias.push(h):v.alias=[h]}}else c(y.content)}}(l.tokens)}),t.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,p=l.classes.length;f<p;f++){var d=l.classes[f],y=/language-(.+)/.exec(d);if(y){c=y[1];break}}var g=t.languages[c];if(g)l.content=t.highlight(function(m){var h=m.replace(a,"");return h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(w,E){var C;return(E=E.toLowerCase())[0]==="#"?(C=E[1]==="x"?parseInt(E.slice(2),16):Number(E.slice(1)),s(C)):u[E]||w})}(l.content),g,c);else if(c&&c!=="none"&&t.plugins.autoloader){var v="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=v,t.plugins.autoloader.loadLanguages(c,function(){var m=document.getElementById(v);m&&(m.innerHTML=t.highlight(m.textContent,t.languages[c],c))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;t.languages.md=t.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(t){if(t.language==="groovy"&&t.type==="string"){var e=t.content[0];if(e!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;e==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content=t.content.replace(/</g,"<").replace(/&/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}});var Owt=["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 bU(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce(function(e,n){return e+bU(n)},0)}var X1,kwt=Mt.String,Ii=function(t){if(M8(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return kwt(t)},wU=function(){var t=So(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Y8=Mt.RegExp,X8=Cn(function(){var t=Y8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Bwt=X8||Cn(function(){return!Y8("a","y").sticky}),EU={BROKEN_CARET:X8||Cn(function(){var t=Y8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Bwt,UNSUPPORTED_Y:X8},Twt=oi?Object.defineProperties:function(t,e){So(t);for(var n,r=q1(e),o=Y1(e),i=o.length,a=0;i>a;)U1.f(t,n=o[a++],r[n]);return t},Fwt=fg("document","documentElement"),CU=qH("IE_PROTO"),Z8=function(){},xU=function(t){return"<script>"+t+"<\/script>"},SU=function(t){t.write(xU("")),t.close();var e=t.parentWindow.Object;return t=null,e},Z1=function(){try{X1=new ActiveXObject("htmlfile")}catch{}var t,e;Z1=typeof document<"u"?document.domain&&X1?SU(X1):((e=B8("iframe")).style.display="none",Fwt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(xU("document.F=Object")),t.close(),t.F):SU(X1);for(var n=$1.length;n--;)delete Z1.prototype[$1[n]];return Z1()};j8[CU]=!0;var DU,J8,Pwt=Object.create||function(t,e){var n;return t!==null?(Z8.prototype=So(t),n=new Z8,Z8.prototype=null,n[CU]=t):n=Z1(),e===void 0?n:Twt(n,e)},Nwt=Mt.RegExp,jwt=Cn(function(){var t=Nwt(".","s");return!(t.dotAll&&t.exec(`
|
|
176
|
-
`)&&t.flags==="s")}),Iwt=Mt.RegExp,Lwt=Cn(function(){var t=Iwt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Rwt=L8.get,Mwt=E8("native-string-replace",String.prototype.replace),J1=RegExp.prototype.exec,Q8=J1,Vwt=ae("".charAt),zwt=ae("".indexOf),Hwt=ae("".replace),tA=ae("".slice),eA=(J8=/b*/g,hn(J1,DU=/a/,"a"),hn(J1,J8,"a"),DU.lastIndex!==0||J8.lastIndex!==0),AU=EU.BROKEN_CARET,nA=/()??/.exec("")[1]!==void 0;(eA||nA||AU||jwt||Lwt)&&(Q8=function(t){var e,n,r,o,i,a,u,s=this,l=Rwt(s),c=Ii(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=hn(Q8,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=AU&&s.sticky,y=hn(wU,s),g=s.source,v=0,m=c;if(d&&(y=Hwt(y,"y",""),zwt(y,"g")===-1&&(y+="g"),m=tA(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Vwt(c,s.lastIndex-1)!==`
|
|
177
|
-
`)&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",y)),nA&&(n=new RegExp("^"+g+"$(?!\\s)",y)),eA&&(r=s.lastIndex),o=hn(J1,d?n:s,m),d?o?(o.input=tA(o.input,v),o[0]=tA(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:eA&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),nA&&o&&o.length>1&&hn(Mwt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=Pwt(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var yg=Q8;K1({target:"RegExp",proto:!0,forced:/./.exec!==yg},{exec:yg});var rA=Function.prototype,_U=rA.apply,Uwt=rA.bind,OU=rA.call,Wwt=typeof Reflect=="object"&&Reflect.apply||(Uwt?OU.bind(_U):function(){return OU.apply(_U,arguments)}),Gwt=vu("species"),oA=RegExp.prototype,qwt=vu("match"),$wt=Mt.TypeError,Kwt=vu("species"),Ywt=ae("".charAt),kU=ae("".charCodeAt),Xwt=ae("".slice),Zwt=function(t){return function(e,n){var r,o,i=Ii(sf(e)),a=U8(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=kU(i,a))<55296||r>56319||a+1===u||(o=kU(i,a+1))<56320||o>57343?t?Ywt(i,a):r:t?Xwt(i,a,a+2):o-56320+(r-55296<<10)+65536}},Jwt=Zwt(!0),Qwt=function(t,e,n){return e+(n?Jwt(t,e).length:1)},tEt=Mt.Array,eEt=Math.max,BU=function(t,e,n){for(var r,o,i,a,u=W8(t),s=K8(e,u),l=K8(n===void 0?u:n,u),c=tEt(eEt(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=t[s],(a=F8(o))in r?U1.f(r,a,P8(0,i)):r[a]=i;return c.length=f,c},nEt=Mt.TypeError,TU=function(t,e){var n=t.exec;if(Rn(n)){var r=hn(n,t,e);return r!==null&&So(r),r}if(mu(t)==="RegExp")return hn(yg,t,e);throw nEt("RegExp#exec called on incompatible receiver")},df=EU.UNSUPPORTED_Y,rEt=Math.min,FU=[].push,oEt=ae(/./.exec),pf=ae(FU),bg=ae("".slice);(function(t,e,n,r){var o=vu(t),i=!Cn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Cn(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Gwt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=ae(/./[o]),s=function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,y){var g,v,m=Ii(sf(this)),h=y===void 0?4294967295:y>>>0;if(h===0)return[];if(d===void 0)return[m];if(!xo(g=d)||!((v=g[qwt])!==void 0?v:mu(g)=="RegExp"))return hn(c,m,d,h);for(var w,E,C,D=[],S=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),A=0,k=new RegExp(d.source,S+"g");(w=hn(yg,k,m))&&!((E=k.lastIndex)>A&&(pf(D,bg(m,A,w.index)),w.length>1&&w.index<m.length&&Wwt(FU,D,BU(w,1)),C=w[0].length,A=E,D.length>=h));)k.lastIndex===w.index&&k.lastIndex++;return A===m.length?!C&&oEt(k,"")||pf(D,""):pf(D,bg(m,A)),D.length>h?BU(D,0,h):D}:"0".split(void 0,0).length?function(d,y){return d===void 0&&y===0?[]:hn(c,this,d,y)}:c,[function(d,y){var g=sf(this),v=d==null?void 0:HH(d,l);return v?hn(v,d,g,y):hn(p,Ii(g),d,y)},function(d,y){var g=So(this),v=Ii(d),m=f(p,g,v,y,p!==c);if(m.done)return m.value;var h=function(W,H){var U,$=So(W).constructor;return $===void 0||(U=So($)[Kwt])==null?H:function(J){if(oU(J))return J;throw $wt(VH(J)+" is not a constructor")}(U)}(g,RegExp),w=g.unicode,E=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(df?"g":"y"),C=new h(df?"^(?:"+g.source+")":g,E),D=y===void 0?4294967295:y>>>0;if(D===0)return[];if(v.length===0)return TU(C,v)===null?[v]:[];for(var S=0,A=0,k=[];A<v.length;){C.lastIndex=df?0:A;var R,V=TU(C,df?bg(v,A):v);if(V===null||(R=rEt(tU(C.lastIndex+(df?A:0)),v.length))===S)A=Qwt(v,A,w);else{if(pf(k,bg(v,S,A)),k.length===D)return k;for(var L=1;L<=V.length-1;L++)if(pf(k,V[L]),k.length===D)return k;A=S=R}}return pf(k,bg(v,S)),k}]}(o,""[t],function(l,c,f,p,d){var y=ae(l),g=c.exec;return g===yg||g===oA.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:y(f,c,p)}:{done:!1}});gg(String.prototype,t,s[0]),gg(oA,o,s[1])}r&&lf(oA[o],"sham",!0)})("split",0,!!Cn(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),df),K1({global:!0},{globalThis:Mt}),Ir&&(T.fn.attr=Ir);var iEt=YH.PROPER,iA=RegExp.prototype,PU=iA.toString,aEt=ae(wU),uEt=Cn(function(){return PU.call({source:"a",flags:"b"})!="/a/b"}),sEt=iEt&&PU.name!="toString";(uEt||sEt)&&gg(RegExp.prototype,"toString",function(){var t=So(this),e=Ii(t.source),n=t.flags;return"/"+e+"/"+Ii(n===void 0&&MH(iA,t)&&!("flags"in iA)?aEt(t):n)},{unsafe:!0});var lEt=function(){function t(){this.title=et("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 t.prototype.getOptions=function(e){var n=[],r=e.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(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);if(n==null||!dt.isElement(n))return"";var r=n.language.toString(),o=e.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===r})?r:""},t.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},t.prototype.exec=function(e,n){if(this.getSelectCodeElem(e)!=null){var r={language:n.toString()};I.setNodes(e,r,{match:function(o){return O.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var n=O.getSelectedNodeByType(e,"code");if(n==null)return null;var r=O.getParentNode(e,n);return dt.isElement(r)?r.type!=="pre"?null:n:null},t}(),cEt={renderStyle:function(t,e){var n=t,r=e,o="";return Owt.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(t,e,n){var r=T(t);if(!dt.isElement(e)||O.getNodeType(e)!=="code")return e;var o=e,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 lEt},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(t,e){var n=t.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+e+"</code>"}}]},fEt=/"/g,dEt=ae("".replace);K1({target:"String",proto:!0,forced:Cn(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=Ii(sf(this)),r="<a",(r+=' name="'+dEt(Ii(e),fEt,""")+'"')+">"+n+"</a>";var e,n,r}});var NU=function(t){var e,n,r,o=function(m,h){var w=typeof Symbol=="function"&&m[Symbol.iterator];if(!w)return m;var E,C,D=w.call(m),S=[];try{for(;(h===void 0||h-- >0)&&!(E=D.next()).done;)S.push(E.value)}catch(A){C={error:A}}finally{try{E&&!E.done&&(w=D.return)&&w.call(D)}finally{if(C)throw C.error}}return S}(t,2),i=o[0],a=o[1],u=[],s=function(m){if(!at.isText(m))return null;var h=O.getParentNode(null,m);if(h&&O.getNodeType(h)==="code"){var w=O.getParentNode(null,h);if(w&&O.getNodeType(w)==="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 w=yU.languages[h];return w?yU.tokenize(m.text,w):[]}(i,c),p=0;try{for(var d=function(m){var h=typeof Symbol=="function"&&Symbol.iterator,w=h&&m[h],E=0;if(w)return w.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&E>=m.length&&(m=void 0),{value:m&&m[E++],done:!m}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),y=d.next();!y.done;y=d.next()){var g=y.value,v=p+bU(g);typeof g!="string"&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:p},r.focus={path:a,offset:v},r)),p=v}}catch(m){e={error:m}}finally{try{y&&!y.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}return u},Le=function(){return Le=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Le.apply(this,arguments)},xn=function(){function t(){throw new Error(`不能实例化
|
|
178
|
-
Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=Le(Le({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=Le(Le({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=Le(Le({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=Le(Le({},this.simpleToolbarConfig),e)},t.registerPlugin=function(e){this.plugins.push(e)},t.registerMenu=function(e,n){(function(r,o){var i=r.key,a=r.factory,u=r.config,s=zr(zr({},u),o||{});if(Kd[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");Kd[i]=a,function(l,c){c!=null&&(hT[l]=c)}(i,s)})(e,n)},t.registerRenderElem=function(e){(function(n){var r=n.type,o=n.renderElem;bF[r||""]=o})(e)},t.registerRenderStyle=function(e){(function(n){TC.push(n)})(e)},t.registerElemToHtml=function(e){(function(n){var r=n.type,o=n.elemToHtml;vT[r||""]=o})(e)},t.registerStyleToHtml=function(e){(function(n){Z4.push(n)})(e)},t.registerPreParseHtml=function(e){(function(n){XT.push(n)})(e)},t.registerParseElemHtml=function(e){(function(n){var r=n.selector,o=n.parseElemHtml;Gv[r]=o})(e)},t.registerParseStyleHtml=function(e){(function(n){mC.push(n)})(e)},t.registerModule=function(e){tl(e)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();/*! *****************************************************************************
|
|
179
|
-
Copyright (c) Microsoft Corporation.
|
|
180
|
-
|
|
181
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
182
|
-
purpose with or without fee is hereby granted.
|
|
183
|
-
|
|
184
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
185
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
186
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
187
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
188
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
189
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
190
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
191
|
-
***************************************************************************** */function tl(t){var e=t.menus,n=t.renderElems,r=t.renderStyle,o=t.elemsToHtml,i=t.styleToHtml,a=t.preParseHtml,u=t.parseElemsHtml,s=t.parseStyleHtml,l=t.editorPlugin;e&&e.forEach(function(c){return xn.registerMenu(c)}),n&&n.forEach(function(c){return xn.registerRenderElem(c)}),r&&xn.registerRenderStyle(r),o&&o.forEach(function(c){return xn.registerElemToHtml(c)}),i&&xn.registerStyleToHtml(i),a&&a.forEach(function(c){return xn.registerPreParseHtml(c)}),u&&u.forEach(function(c){return xn.registerParseElemHtml(c)}),s&&xn.registerParseStyleHtml(s),l&&xn.registerPlugin(l)}yft.forEach(function(t){return tl(t)}),tl(Ypt),tl(E0t),tl(Byt),tl(E2t),tl(cEt);var jU='<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>',IU={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"]}},pEt={hoverbarKeys:Le(Le({},IU),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};xn.setEditorConfig(Le(Le({},pEt),{decorate:NU}));var hEt={hoverbarKeys:IU};xn.setSimpleEditorConfig(Le(Le({},hEt),{decorate:NU}));var gEt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:et("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:et("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:et("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:et("editor.image"),iconSvg:jU,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:et("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"]};xn.setToolbarConfig(gEt);var vEt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:et("editor.image"),iconSvg:jU,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function mEt(t){t===void 0&&(t={});var e=t.selector,n=e===void 0?"":e,r=t.content,o=r===void 0?[]:r,i=t.html,a=t.config,u=a===void 0?{}:a,s=t.mode,l=(s===void 0?"default":s)==="simple"?xn.simpleEditorConfig:xn.editorConfig,c=Le(Le({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return Sot({selector:n,config:Le(Le(Le({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:xn.plugins})}function yEt(t){var e=t.selector,n=t.editor,r=t.config,o=r===void 0?{}:r,i=t.mode,a=i===void 0?"default":i;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?xn.simpleToolbarConfig:xn.toolbarConfig,s=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,p=c.config,d=p===void 0?{}:p;if(function(v,m){return oF(v,"data-w-e-toolbar",m)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var y=zr({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},d||{}),g=new kot(f,y);return L4.set(g,l),Iv.set(l,g),g}(n,{selector:e,config:Le(Le({},u),o)});return s}xn.setSimpleToolbarConfig(vEt);/*! *****************************************************************************
|
|
192
|
-
Copyright (c) Microsoft Corporation.
|
|
193
|
-
|
|
194
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
195
|
-
purpose with or without fee is hereby granted.
|
|
196
|
-
|
|
197
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
198
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
199
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
200
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
201
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
202
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
203
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
204
|
-
***************************************************************************** */var Q1=function(){return Q1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Q1.apply(this,arguments)};function bu(t){var e="请使用 '@".concat(t,"' 事件,不要放在 props 中");return e+=`
|
|
205
|
-
Please use '@`.concat(t,"' event instead of props")}var bEt=b.extend({render:function(t){return t("div",{ref:"box"})},name:"Editor",data:function(){return{curValue:"",editor:null}},props:["defaultContent","defaultConfig","mode","defaultHtml","value"],mounted:function(){this.create()},watch:{value:function(t){t===this.curValue||this.setHtml(t)}},methods:{setHtml:function(t){var e=this.editor;e!=null&&e.setHtml(t)},create:function(){var t=this;if(this.$refs.box!=null){var e=this.defaultConfig||{},n=JSON.stringify(Array.isArray(this.defaultContent)?this.defaultContent:[]);mEt({selector:this.$refs.box,html:this.defaultHtml||this.value||"",config:Q1(Q1({},e),{onCreated:function(r){if(t.editor=Object.seal(r),t.$emit("onCreated",r),e.onCreated){var o=bu("onCreated");throw new Error(o)}},onChange:function(r){var o=r.getHtml();if(t.curValue=o,t.$emit("input",o),t.$emit("onChange",r),e.onChange){var i=bu("onChange");throw new Error(i)}},onDestroyed:function(r){if(t.$emit("onDestroyed",r),e.onDestroyed){var o=bu("onDestroyed");throw new Error(o)}},onMaxLength:function(r){if(t.$emit("onMaxLength",r),e.onMaxLength){var o=bu("onMaxLength");throw new Error(o)}},onFocus:function(r){if(t.$emit("onFocus",r),e.onFocus){var o=bu("onFocus");throw new Error(o)}},onBlur:function(r){if(t.$emit("onBlur",r),e.onBlur){var o=bu("onBlur");throw new Error(o)}},customAlert:function(r,o){if(t.$emit("customAlert",r,o),e.customAlert){var i=bu("customAlert");throw new Error(i)}},customPaste:function(r,o){if(e.customPaste){var i=bu("customPaste");throw new Error(i)}var a;return t.$emit("customPaste",r,o,function(u){a=u}),a}}),content:JSON.parse(n),mode:this.mode||"default"})}}}}),wEt=b.extend({name:"Toolbar",render:function(t){return t("div",{ref:"box"})},props:["editor","defaultConfig","mode"],methods:{create:function(t){this.$refs.box!=null&&t!=null&&(O.getToolbar(t)||yEt({editor:t,selector:this.$refs.box,config:this.defaultConfig||{},mode:this.mode||"default"}))}},watch:{editor:{handler:function(t){t!=null&&this.create(t)},immediate:!0}}});const EEt={key:0},CEt={style:{border:"1px solid #ccc","border-radius":"3px"}},LU="default",xEt=b.defineComponent({__name:"SettingText",setup(t){const e=Nr(),n=b.shallowRef(),r=b.ref();function o(c){const f=r.value.find(p=>p.rp_item_uuid===c);e.activeComponents.uri=f.rp_item_content.uri,n.value.setHtml((f==null?void 0:f.rp_item_content.data)||"")}async function i(){const c=await sA({prod_type:e.prodType,chart_type:"p",filter_uuid:e.filterForm.filter_uuid});r.value=c.data}i();const a={toolbarKeys:["bold","underline","italic","through","code","bulletedList","numberedList","clearStyle","color","bgColor","fontSize","fontFamily","justifyLeft","justifyRight","justifyCenter","justifyJustify","lineHeight"]},u={placeholder:"请输入内容..."},s=c=>{n.value=c},l=c=>{};return b.onBeforeUnmount(()=>{const c=n.value;c!=null&&c.destroy()}),(c,f)=>{const p=b.resolveComponent("el-option"),d=b.resolveComponent("el-select"),y=b.resolveComponent("el-form-item"),g=b.resolveComponent("el-form");return b.unref(e).activeComponents.id?(b.openBlock(),b.createElementBlock("div",EEt,[b.createVNode(g,{"label-position":"top"},{default:b.withCtx(()=>[b.createVNode(y,{label:"组件库"},{default:b.withCtx(()=>[b.createVNode(d,{style:{width:"100%"},modelValue:b.unref(e).activeComponents.rp_item_uuid,"onUpdate:modelValue":f[0]||(f[0]=v=>b.unref(e).activeComponents.rp_item_uuid=v),onChange:o},{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(r.value,(v,m)=>(b.openBlock(),b.createBlock(p,{key:m,label:v.rp_item_name,value:v.rp_item_uuid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),b.createVNode(y,{label:"文本内容"},{default:b.withCtx(()=>[b.createElementVNode("div",CEt,[b.createVNode(b.unref(wEt),{style:{"border-bottom":"1px solid #ccc"},editor:n.value,"default-config":a,mode:LU},null,8,["editor"]),b.createVNode(b.unref(bEt),{style:{height:"500px","overflow-y":"hidden"},onOnChange:l,modelValue:b.unref(e).activeComponents.data,"onUpdate:modelValue":f[1]||(f[1]=v=>b.unref(e).activeComponents.data=v),"default-config":u,mode:LU,onOnCreated:s},null,8,["modelValue"])])]),_:1})]),_:1})])):b.createCommentVNode("",!0)}}}),SEt=b.defineComponent({__name:"SettingFilter",setup(t){const e=b.ref([]),n=Nr();async function r(){const o=await YU({prod_type:n.prodType});e.value=o.data}return r(),(o,i)=>{const a=b.resolveComponent("el-option"),u=b.resolveComponent("el-select"),s=b.resolveComponent("el-form-item"),l=b.resolveComponent("el-checkbox"),c=b.resolveComponent("el-form");return b.openBlock(),b.createBlock(c,{"label-width":"80px","label-position":"top"},{default:b.withCtx(()=>[b.createVNode(s,{label:"筛选条件"},{default:b.withCtx(()=>[b.createVNode(u,{modelValue:b.unref(n).filterForm.filter_uuid,"onUpdate:modelValue":i[0]||(i[0]=f=>b.unref(n).filterForm.filter_uuid=f),disabled:!!b.unref(n).filterForm.filter_uuid},{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.value,f=>(b.openBlock(),b.createBlock(a,{key:f.filter_uuid,label:f.filter_name,value:f.filter_uuid},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1}),b.createVNode(s,null,{default:b.withCtx(()=>[b.createVNode(l,{modelValue:b.unref(n).filterForm.range_time,"onUpdate:modelValue":i[1]||(i[1]=f=>b.unref(n).filterForm.range_time=f),"true-value":1,"false-value":0,label:"时间范围"},null,8,["modelValue"])]),_:1})]),_:1})}}}),DEt=b.defineComponent({__name:"SettingTitle",setup(t){const e=Nr();return(n,r)=>{const o=b.resolveComponent("el-input"),i=b.resolveComponent("el-form-item"),a=b.resolveComponent("el-color-picker"),u=b.resolveComponent("el-col"),s=b.resolveComponent("el-input-number"),l=b.resolveComponent("el-option"),c=b.resolveComponent("el-select"),f=b.resolveComponent("el-row"),p=b.resolveComponent("el-form");return b.openBlock(),b.createBlock(p,{"label-width":"auto","label-position":"top"},{default:b.withCtx(()=>[b.createVNode(i,{label:"名称"},{default:b.withCtx(()=>[b.createVNode(o,{modelValue:b.unref(e).activeComponents.data,"onUpdate:modelValue":r[0]||(r[0]=d=>b.unref(e).activeComponents.data=d),placeholder:"Please input",maxlength:"24","show-word-limit":""},null,8,["modelValue"])]),_:1}),b.createVNode(i,{label:"样式"},{default:b.withCtx(()=>[b.createVNode(f,{gutter:20},{default:b.withCtx(()=>[b.createVNode(u,{span:12},{default:b.withCtx(()=>[b.createVNode(a,{modelValue:b.unref(e).activeComponents.options.color,"onUpdate:modelValue":r[1]||(r[1]=d=>b.unref(e).activeComponents.options.color=d),"show-alpha":""},null,8,["modelValue"]),r[7]||(r[7]=b.createElementVNode("p",{class:"sub-title"},"颜色",-1))]),_:1}),b.createVNode(u,{span:12},{default:b.withCtx(()=>[b.createVNode(s,{modelValue:b.unref(e).activeComponents.options.size,"onUpdate:modelValue":r[2]||(r[2]=d=>b.unref(e).activeComponents.options.size=d),"controls-position":"right"},null,8,["modelValue"]),r[8]||(r[8]=b.createElementVNode("p",{class:"sub-title"},"字体大小",-1))]),_:1}),b.createVNode(u,{span:12},{default:b.withCtx(()=>[b.createVNode(c,{modelValue:b.unref(e).activeComponents.options.fontWeight,"onUpdate:modelValue":r[3]||(r[3]=d=>b.unref(e).activeComponents.options.fontWeight=d)},{default:b.withCtx(()=>[b.createVNode(l,{label:"常规",value:500}),b.createVNode(l,{label:"加粗",value:600})]),_:1},8,["modelValue"]),r[9]||(r[9]=b.createElementVNode("p",{class:"sub-title"},"字体粗细",-1))]),_:1}),b.createVNode(u,{span:12},{default:b.withCtx(()=>[b.createVNode(s,{modelValue:b.unref(e).activeComponents.options.letterSpacing,"onUpdate:modelValue":r[4]||(r[4]=d=>b.unref(e).activeComponents.options.letterSpacing=d),"controls-position":"right"},null,8,["modelValue"]),r[10]||(r[10]=b.createElementVNode("p",{class:"sub-title"},"字间距",-1))]),_:1}),b.createVNode(u,{span:12},{default:b.withCtx(()=>[b.createVNode(s,{modelValue:b.unref(e).activeComponents.options.textIndent,"onUpdate:modelValue":r[5]||(r[5]=d=>b.unref(e).activeComponents.options.textIndent=d),"controls-position":"right"},null,8,["modelValue"]),r[11]||(r[11]=b.createElementVNode("p",{class:"sub-title"},"首行缩进",-1))]),_:1}),b.createVNode(u,{span:12},{default:b.withCtx(()=>[b.createVNode(c,{modelValue:b.unref(e).activeComponents.options.textAlign,"onUpdate:modelValue":r[6]||(r[6]=d=>b.unref(e).activeComponents.options.textAlign=d)},{default:b.withCtx(()=>[b.createVNode(l,{label:"左对齐",value:"left"}),b.createVNode(l,{label:"居中对齐",value:"center"}),b.createVNode(l,{label:"右对齐",value:"right"})]),_:1},8,["modelValue"]),r[12]||(r[12]=b.createElementVNode("p",{class:"sub-title"},"位置",-1))]),_:1})]),_:1})]),_:1})]),_:1})}}}),zEt="",AEt=Dg(DEt,[["__scopeId","data-v-56fef84c"]]),_Et=b.defineComponent({__name:"Setting",setup(t){const e={SettingTable:t_,SettingCharts:kG,SettingDescribe:e_,SettingText:xEt,SettingFilter:SEt,SettingTitle:AEt},n=Nr(),r=b.computed(()=>n.activeComponents),o=["h1","h2","h3","h4"],i=["p"],a=["report-table","bar","line","pie","report-describe"],u=s=>o.includes(s)?oo(e,"SettingTitle"):i.includes(s)?oo(e,"SettingText"):a.includes(s)?oo(e,"SettingCharts"):s==="filter"?oo(e,"SettingFilter"):"DefaultEditor";return(s,l)=>{const c=b.resolveComponent("el-card");return b.openBlock(),b.createBlock(c,{class:"config-wrapper"},{default:b.withCtx(()=>[(b.openBlock(),b.createBlock(b.resolveDynamicComponent(u(r.value.type))))]),_:1})}}}),OEt={class:"editor-wrapper flex start"},kEt={class:"flex"},BEt={class:"btn-group"},TEt=b.defineComponent({__name:"index",props:b.mergeModels({reportId:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Nr(),n=t,r=b.useModel(t,"modelValue"),o=s=>{const l=Sg(s);l.id=Du(),e.componentList.push(l)};function i(){r.value="table"}function a(){e.getReportDemo(n.reportId)}b.onMounted(()=>{a()});async function u(){if(!e.filterForm.filter_uuid){HU.ElMessage.error("请选择筛选条件");return}try{n.reportId?await $U({report_uuid:n.reportId,data:{report_name:e.titleComponent.data,prod_type:e.prodType,content:[...e.notDraggableList,e.titleComponent,...e.componentList],...e.filterForm}}):await qU({data:{report_name:e.titleComponent.data,prod_type:e.prodType,content:[...e.notDraggableList,e.titleComponent,...e.componentList],...e.filterForm}}),i()}catch(s){console.log(s,"error")}}return b.onUnmounted(()=>{e.clearComponents()}),(s,l)=>{const c=b.resolveComponent("el-button"),f=b.resolveComponent("el-button-group"),p=b.resolveComponent("el-card");return b.openBlock(),b.createElementBlock("div",OEt,[b.createVNode(p,{class:"view-wrapper"},{default:b.withCtx(()=>[b.createElementVNode("div",kEt,[b.createElementVNode("div",BEt,[b.createVNode(f,null,{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(b.unref(oW),d=>(b.openBlock(),b.createElementBlock(b.Fragment,{key:d.type},[d!=null&&d.hide?b.createCommentVNode("",!0):(b.openBlock(),b.createBlock(c,{key:0,onClick:y=>o(d)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(d.name),1)]),_:2},1032,["onClick"]))],64))),128))]),_:1})]),b.createVNode(f,null,{default:b.withCtx(()=>[b.createVNode(c,{type:"primary",onClick:u},{default:b.withCtx(()=>l[0]||(l[0]=[b.createTextVNode("保存")])),_:1}),b.createVNode(c,{onClick:i},{default:b.withCtx(()=>l[1]||(l[1]=[b.createTextVNode("退出")])),_:1})]),_:1})]),b.createVNode(EG)]),_:1}),b.createVNode(_Et)])}}}),FEt={class:"table-box"},PEt=b.defineComponent({__name:"Report",props:{prodType:{}},emits:["click"],setup(t,{emit:e}){const n=t,r=b.computed(()=>({prod_type:n.prodType})),o=b.ref(),i=e,a=p=>{i("click",p.report_uuid,"review")},u=p=>{i("click",p.report_uuid,"editor")},s=()=>{i("click","","editor")},l=p=>{console.log(p)},c=p=>{window.$messageBox("确定要删除吗?","","温馨提示","error").then(async()=>{await XU({report_uuids:p}),o.value.getTableList()})},f=b.reactive([{type:"selection",width:80},{field:"report_name",name:"名称",search:{type:"input"}},{field:"report_desc",name:"报表描述"},{field:"create_time",name:"创建时间"},{field:"operation",width:140,name:"操作",align:"center",fixed:"right",render:p=>b.createVNode("div",null,[b.createVNode(b.resolveComponent("el-button"),{link:!0,type:"primary",class:"custom-btn",icon:"View",title:"预览",onClick:()=>a(p.row)},null),b.createVNode(b.resolveComponent("el-button"),{link:!0,type:"primary",class:"custom-btn",icon:"Edit",title:"编辑",onClick:()=>u(p.row)},null),b.createVNode(b.resolveComponent("el-button"),{link:!0,type:"danger",icon:"Delete",title:"删除",onClick:()=>c([p.row.report_uuid])},null)])}]);return(p,d)=>{const y=b.resolveComponent("el-button"),g=b.resolveComponent("TdsTable");return b.openBlock(),b.createElementBlock("div",FEt,[b.createVNode(g,{ref_key:"proTable",ref:o,columns:f,"request-api":b.unref(KU),"init-param":r.value,"row-key":"report_uuid",options:p.$tableOptions(),"search-col":6,onSelectionChange:l},{tableHeader:b.withCtx(v=>[b.createVNode(y,{plain:"",type:"primary",class:"custom-btn",icon:"Plus",onClick:s},{default:b.withCtx(()=>d[0]||(d[0]=[b.createTextVNode("添加")])),_:1}),b.createVNode(y,{plain:"",type:"danger",icon:"Delete",onClick:m=>c(v.selectedListIds)},{default:b.withCtx(()=>d[1]||(d[1]=[b.createTextVNode("删除")])),_:2},1032,["onClick"])]),_:1},8,["columns","request-api","init-param","options"])])}}}),HEt="",NEt={style:{height:"100%"}},RU=((t,e)=>{if(t.install=n=>{for(const r of[t,...Object.values(e??{})])n.component(r.name,r)},e)for(const[n,r]of Object.entries(e))t[n]=r;return t})(b.defineComponent({name:"TReportTable",__name:"index",setup(t){const e=b.ref(),n=b.ref("table"),r=(o,i)=>{e.value=o,n.value=i};return(o,i)=>(b.openBlock(),b.createElementBlock("div",NEt,[b.createVNode(b.TransitionGroup,{name:"slide-fade"},{default:b.withCtx(()=>[n.value==="table"?(b.openBlock(),b.createBlock(PEt,{key:0,onClick:r,"prod-type":"4"})):b.createCommentVNode("",!0),n.value==="review"?(b.openBlock(),b.createBlock(xW,{key:1,"report-id":e.value,modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=a=>n.value=a)},null,8,["report-id","modelValue"])):b.createCommentVNode("",!0),n.value==="editor"?(b.openBlock(),b.createBlock(TEt,{key:2,"report-id":e.value,modelValue:n.value,"onUpdate:modelValue":i[1]||(i[1]=a=>n.value=a)},null,8,["report-id","modelValue"])):b.createCommentVNode("",!0)]),_:1})]))}})),jEt={TCReport:RU},IEt={install(t){Object.entries(jEt).forEach(([e,n])=>{t.component(e,n)})}};Bo.TCReport=RU,Bo.default=IEt,Object.defineProperties(Bo,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.TReportUI={},t.Vue))})(this,function(t,e){"use strict";const f={style:{height:"100%"}},i=((n,o)=>{if(n.install=s=>{for(const c of[n,...Object.values(o??{})])s.component(c.name,c)},o)for(const[s,c]of Object.entries(o))n[s]=c;return n})(e.defineComponent({name:"TCReport",__name:"index",setup(n){return e.ref(),e.ref("table"),(o,s)=>(e.openBlock(),e.createElementBlock("div",f,"11111"))}})),r={TCReport:i},p={install(n){Object.entries(r).forEach(([o,s])=>{n.component(o,s)})}};t.TCReport=i,t.default=p,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|