@cherry-markdown/cherry-markdown-dev 0.9.4-dev.202508050902.9e9dfb5 → 0.9.4-dev.202508060408.015295c
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/README.md +2 -2
- package/dist/addons/advance/cherry-tapd-checklist-plugin.d.ts +17 -0
- package/dist/addons/advance/cherry-tapd-checklist-plugin.js +1 -0
- package/dist/addons/advance/cherry-tapd-html-tag-plugin.d.ts +15 -0
- package/dist/addons/advance/cherry-tapd-html-tag-plugin.js +1 -0
- package/dist/addons/advance/cherry-tapd-table-plugin.d.ts +79 -0
- package/dist/addons/advance/cherry-tapd-table-plugin.js +1 -0
- package/dist/addons/cherry-code-block-mermaid-plugin.js +1 -1
- package/dist/addons/cherry-code-block-plantuml-plugin.js +1 -1
- package/dist/cherry-markdown.core.common.js +1 -1
- package/dist/cherry-markdown.core.js +1 -1
- package/dist/cherry-markdown.engine.core.common.js +1 -1
- package/dist/cherry-markdown.engine.core.esm.js +1 -1
- package/dist/cherry-markdown.engine.core.js +1 -1
- package/dist/cherry-markdown.esm.js +1 -1
- package/dist/cherry-markdown.js +1 -1
- package/dist/cherry-markdown.min.js +1 -1
- package/dist/fonts/ch-icon.eot +0 -0
- package/dist/fonts/ch-icon.ttf +0 -0
- package/dist/fonts/ch-icon.woff +0 -0
- package/dist/fonts/ch-icon.woff2 +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
**⚠️ 开发预览警告 / Development Preview Warning**
|
|
2
2
|
|
|
3
|
-
此版本为[临时测试版](@cherry-markdown/cherry-markdown-dev@0.9.4-dev.
|
|
3
|
+
此版本为[临时测试版](@cherry-markdown/cherry-markdown-dev@0.9.4-dev.202508060408.015295c),禁止在生产环境使用!
|
|
4
4
|
|
|
5
|
-
This is a [development preview version](@cherry-markdown/cherry-markdown-dev@0.9.4-dev.
|
|
5
|
+
This is a [development preview version](@cherry-markdown/cherry-markdown-dev@0.9.4-dev.202508060408.015295c), do NOT use in production!
|
|
6
6
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [TAPD](https://tapd.cn)的检查项语法
|
|
3
|
+
* 通用的检查项语法为:
|
|
4
|
+
* -[ ] 检查项1
|
|
5
|
+
* -[x] 检查项2
|
|
6
|
+
* -[ ] 检查项3
|
|
7
|
+
* TAPD的检查项语法为:
|
|
8
|
+
* [x][ ][ ] 只要有中括号就会成为检查项
|
|
9
|
+
* [ ][x][ ]
|
|
10
|
+
* [ ][ ][x]
|
|
11
|
+
*/
|
|
12
|
+
export default class TapdCheckListPlugin {
|
|
13
|
+
static HOOK_NAME: string;
|
|
14
|
+
makeHtml(html: any): any;
|
|
15
|
+
afterMakeHtml(html: any): any;
|
|
16
|
+
rule(): {};
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).CherryTapdChecklistPlugin=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}function n(t){return t&&t.default||t}var o,i,u=function(t){return t&&t.Math===Math&&t},a=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof t&&t)||u("object"==typeof t&&t)||function(){return this}()||Function("return this")(),c=function(t){try{return!!t()}catch(t){return!0}},f=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=f,l=Function.prototype,p=l.apply,h=l.call,y="object"==typeof Reflect&&Reflect.apply||(s?h.bind(p):function(){return h.apply(p,arguments)}),v=Function.prototype,d=v.call,g=s&&v.bind.bind(d,d),m=s?g:function(t){return function(){return d.apply(t,arguments)}},b=m,w=b({}.toString),O=b("".slice),S=function(t){return O(w(t),8,-1)},_="object"==typeof document&&document.all,E=void 0===_&&void 0!==_?function(t){return"function"==typeof t||t===_}:function(t){return"function"==typeof t},x=!c((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),j=Function.prototype.call,P=s?j.bind(j):function(){return j.apply(j,arguments)},A={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,C={f:k&&!A.call({1:2},1)?function(t){var e=k(this,t);return!!e&&e.enumerable}:A},R=Object,T=b("".split),I=c((function(){return!R("z").propertyIsEnumerable(0)}))?function(t){return"String"===S(t)?T(t,""):R(t)}:R,M=function(t){return null==t},L=TypeError,F=I,B=function(t){if(M(t))throw new L("Can't call method on "+t);return t},H=E,N={},$=a,D=function(t){return H(t)?t:void 0},G=b({}.isPrototypeOf),K="undefined"!=typeof navigator&&String(navigator.userAgent)||"",z=$.process,q=$.Deno,X=z&&z.versions||q&&q.version,Y=X&&X.v8;Y&&(i=(o=Y.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&K&&(!(o=K.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=K.match(/Chrome\/(\d+)/))&&(i=+o[1]);var U=i,W=$.String,V=!!Object.getOwnPropertySymbols&&!c((function(){var t=Symbol("symbol detection");return!W(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&U&&U<41})),J=V,Q=J&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z=function(t,e){return arguments.length<2?D(N[t])||D($[t]):N[t]&&N[t][e]||$[t]&&$[t][e]},tt=G,et=Q,rt=Object,nt=et?function(t){return"symbol"==typeof t}:function(t){var e=Z("Symbol");return H(e)&&tt(e.prototype,rt(t))},ot=String,it=function(t){try{return ot(t)}catch(t){return"Object"}},ut=TypeError,at=function(t){if(H(t))return t;throw new ut(it(t)+" is not a function")},ct=P,ft=function(t){return"object"==typeof t?null!==t:H(t)},st=TypeError,lt=Object.defineProperty,pt=function(t,e){try{lt($,t,{value:e,configurable:!0,writable:!0})}catch(r){$[t]=e}return e},ht=r((function(t){var e="__core-js_shared__",r=t.exports=$[e]||pt(e,{});(r.versions||(r.versions=[])).push({version:"3.37.1",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),yt=ht,vt=Object,dt=function(t){return vt(B(t))},gt=b({}.hasOwnProperty),mt=Object.hasOwn||function(t,e){return gt(dt(t),e)},bt=0,wt=Math.random(),Ot=b(1..toString),St=function(t,e){return yt[t]||(yt[t]=e||{})},_t=mt,Et=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ot(++bt+wt,36)},xt=$.Symbol,jt=St("wks"),Pt=et?xt.for||xt:xt&&xt.withoutSetter||Et,At=nt,kt=function(t,e){var r=t[e];return M(r)?void 0:at(r)},Ct=function(t,e){var r,n;if("string"===e&&H(r=t.toString)&&!ft(n=ct(r,t)))return n;if(H(r=t.valueOf)&&!ft(n=ct(r,t)))return n;if("string"!==e&&H(r=t.toString)&&!ft(n=ct(r,t)))return n;throw new st("Can't convert object to primitive value")},Rt=function(t){return _t(jt,t)||(jt[t]=J&&_t(xt,t)?xt[t]:Pt("Symbol."+t)),jt[t]},Tt=TypeError,It=Rt("toPrimitive"),Mt=function(t,e){if(!ft(t)||At(t))return t;var r,n=kt(t,It);if(n){if(void 0===e&&(e="default"),r=ct(n,t,e),!ft(r)||At(r))return r;throw new Tt("Can't convert object to primitive value")}return void 0===e&&(e="number"),Ct(t,e)},Lt=$.document,Ft=ft(Lt)&&ft(Lt.createElement),Bt=x,Ht=function(t){return Ft?Lt.createElement(t):{}},Nt=!Bt&&!c((function(){return 7!==Object.defineProperty(Ht("div"),"a",{get:function(){return 7}}).a})),$t=C,Dt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Gt=function(t){return F(B(t))},Kt=function(t){var e=Mt(t,"string");return At(e)?e:e+""},zt=Nt,qt=Object.getOwnPropertyDescriptor,Xt={f:Bt?qt:function(t,e){if(t=Gt(t),e=Kt(e),zt)try{return qt(t,e)}catch(t){}if(_t(t,e))return Dt(!ct($t.f,t,e),t[e])}},Yt=/#|\.prototype\./,Ut=function(t,e){var r=Vt[Wt(t)];return r===Qt||r!==Jt&&(H(e)?c(e):!!e)},Wt=Ut.normalize=function(t){return String(t).replace(Yt,".").toLowerCase()},Vt=Ut.data={},Jt=Ut.NATIVE="N",Qt=Ut.POLYFILL="P",Zt=Ut,te=function(t){if("Function"===S(t))return b(t)},ee=te(te.bind),re=Bt&&c((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ne=String,oe=TypeError,ie=re,ue=function(t){if(ft(t))return t;throw new oe(ne(t)+" is not an object")},ae=TypeError,ce=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,se="enumerable",le="configurable",pe="writable",he={f:Bt?ie?function(t,e,r){if(ue(t),e=Kt(e),ue(r),"function"==typeof t&&"prototype"===e&&"value"in r&&pe in r&&!r[pe]){var n=fe(t,e);n&&n[pe]&&(t[e]=r.value,r={configurable:le in r?r[le]:n[le],enumerable:se in r?r[se]:n[se],writable:!1})}return ce(t,e,r)}:ce:function(t,e,r){if(ue(t),e=Kt(e),ue(r),zt)try{return ce(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new ae("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},ye=y,ve=Xt,de=Zt,ge=function(t,e){return at(t),void 0===e?t:s?ee(t,e):function(){return t.apply(e,arguments)}},me=Bt?function(t,e,r){return he.f(t,e,Dt(1,r))}:function(t,e,r){return t[e]=r,t},be=ve.f,we=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return ye(t,this,arguments)};return e.prototype=t.prototype,e},Oe=b([].slice),Se=Function,_e=b([].concat),Ee=b([].join),xe={},je=s?Se.bind:function(t){var e=at(this),r=e.prototype,n=Oe(arguments,1),o=function(){var r=_e(n,Oe(arguments));return this instanceof o?function(t,e,r){if(!_t(xe,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";xe[e]=Se("C,a","return new C("+Ee(n,",")+")")}return xe[e](t,r)}(e,r.length,r):e.apply(t,r)};return ft(r)&&(o.prototype=r),o},Pe={};Pe[Rt("toStringTag")]="z";var Ae="[object z]"===String(Pe),ke=Rt("toStringTag"),Ce=Object,Re="Arguments"===S(function(){return arguments}()),Te=Ae?S:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Ce(t),ke))?r:Re?S(e):"Object"===(n=S(e))&&H(e.callee)?"Arguments":n},Ie=b(Function.toString);H(yt.inspectSource)||(yt.inspectSource=function(t){return Ie(t)});var Me=yt.inspectSource,Le=Te,Fe=Me,Be=function(){},He=Z("Reflect","construct"),Ne=/^\s*(?:class|function)\b/,$e=b(Ne.exec),De=!Ne.test(Be),Ge=function(t){if(!H(t))return!1;try{return He(Be,[],t),!0}catch(t){return!1}},Ke=function(t){if(!H(t))return!1;switch(Le(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return De||!!$e(Ne,Fe(t))}catch(t){return!0}};Ke.sham=!0;var ze,qe=!He||c((function(){var t;return Ge(Ge.call)||!Ge(Object)||!Ge((function(){t=!0}))||t}))?Ke:Ge,Xe=TypeError,Ye=Math.ceil,Ue=Math.floor,We=Math.trunc||function(t){var e=+t;return(e>0?Ue:Ye)(e)},Ve=function(t){var e=+t;return e!=e||0===e?0:We(e)},Je=Math.max,Qe=Math.min,Ze=Math.min,tr=function(t){var e=Ve(t);return e>0?Ze(e,9007199254740991):0},er=function(t,e){var r=Ve(t);return r<0?Je(r+e,0):Qe(r,e)},rr=function(t){return tr(t.length)},nr=function(t){return function(e,r,n){var o=Gt(e),i=rr(o);if(0===i)return!t&&-1;var u,a=er(n,i);if(t&&r!=r){for(;i>a;)if((u=o[a++])!=u)return!0}else for(;i>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},or={includes:nr(!0),indexOf:nr(!1)},ir={},ur=or.indexOf,ar=b([].push),cr=function(t,e){var r,n=Gt(t),o=0,i=[];for(r in n)!_t(ir,r)&&_t(n,r)&&ar(i,r);for(;e.length>o;)_t(n,r=e[o++])&&(~ur(i,r)||ar(i,r));return i},fr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sr=Object.keys||function(t){return cr(t,fr)},lr=Bt&&!ie?Object.defineProperties:function(t,e){ue(t);for(var r,n=Gt(e),o=sr(e),i=o.length,u=0;i>u;)he.f(t,r=o[u++],n[r]);return t},pr={f:lr},hr=Z("document","documentElement"),yr=St("keys"),vr=pr,dr=hr,gr=function(t){return yr[t]||(yr[t]=Et(t))},mr="prototype",br="script",wr=gr("IE_PROTO"),Or=function(){},Sr=function(t){return"<"+br+">"+t+"</"+br+">"},_r=function(t){t.write(Sr("")),t.close();var e=t.parentWindow.Object;return t=null,e},Er=function(){try{ze=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Er="undefined"!=typeof document?document.domain&&ze?_r(ze):(e=Ht("iframe"),r="java"+br+":",e.style.display="none",dr.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Sr("document.F=Object")),t.close(),t.F):_r(ze);for(var n=fr.length;n--;)delete Er[mr][fr[n]];return Er()};ir[wr]=!0;var xr=Object.create||function(t,e){var r;return null!==t?(Or[mr]=ue(t),r=new Or,Or[mr]=null,r[wr]=t):r=Er(),void 0===e?r:vr.f(r,e)},jr=function(t,e){var r,n,o,i,u,a,c,f,s,l=t.target,p=t.global,h=t.stat,y=t.proto,v=p?$:h?$[l]:$[l]&&$[l].prototype,d=p?N:N[l]||me(N,l,{})[l],g=d.prototype;for(i in e)n=!(r=de(p?i:l+(h?".":"#")+i,t.forced))&&v&&_t(v,i),a=d[i],n&&(c=t.dontCallGetSet?(s=be(v,i))&&s.value:v[i]),u=n&&c?c:e[i],(r||y||typeof a!=typeof u)&&(f=t.bind&&n?ge(u,$):t.wrap&&n?we(u):y&&H(u)?te(u):u,(t.sham||u&&u.sham||a&&a.sham)&&me(f,"sham",!0),me(d,i,f),y&&(_t(N,o=l+"Prototype")||me(N,o,{}),me(N[o],i,u),t.real&&g&&(r||!g[i])&&me(g,i,u)))},Pr=je,Ar=function(t){if(qe(t))return t;throw new Xe(it(t)+" is not a constructor")},kr=xr,Cr=Z("Reflect","construct"),Rr=Object.prototype,Tr=[].push,Ir=c((function(){function t(){}return!(Cr((function(){}),[],t)instanceof t)})),Mr=!c((function(){Cr((function(){}))})),Lr=Ir||Mr;jr({target:"Reflect",stat:!0,forced:Lr,sham:Lr},{construct:function(t,e){Ar(t),ue(e);var r=arguments.length<3?t:Ar(arguments[2]);if(Mr&&!Ir)return Cr(t,e,r);if(t===r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return ye(Tr,n,e),new(ye(Pr,t,n))}var o=r.prototype,i=kr(ft(o)?o:Rr),u=ye(t,i,e);return ft(u)?u:i}});var Fr=N.Reflect.construct,Br=e(r((function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}))),Hr=he.f;jr({target:"Object",stat:!0,forced:Object.defineProperty!==Hr,sham:!Bt},{defineProperty:Hr});var Nr=r((function(t){var e=N.Object,r=t.exports=function(t,r,n){return e.defineProperty(t,r,n)};e.defineProperty.sham&&(r.sham=!0)})),$r=Nr,Dr=$r,Gr=Dr,Kr=Array.isArray||function(t){return"Array"===S(t)},zr=TypeError,qr=Kr,Xr=Rt("species"),Yr=Array,Ur=function(t){var e;return qr(t)&&(e=t.constructor,(qe(e)&&(e===Yr||qr(e.prototype))||ft(e)&&null===(e=e[Xr]))&&(e=void 0)),void 0===e?Yr:e},Wr=Rt("species"),Vr=function(t){if(t>9007199254740991)throw zr("Maximum allowed index exceeded");return t},Jr=function(t,e,r){Bt?he.f(t,e,Dt(0,r)):t[e]=r},Qr=function(t,e){return new(Ur(t))(0===e?0:e)},Zr=function(t){return U>=51||!c((function(){var e=[];return(e.constructor={})[Wr]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},tn=Rt("isConcatSpreadable"),en=U>=51||!c((function(){var t=[];return t[tn]=!1,t.concat()[0]!==t})),rn=function(t){if(!ft(t))return!1;var e=t[tn];return void 0!==e?!!e:qr(t)},nn=!en||!Zr("concat");jr({target:"Array",proto:!0,arity:1,forced:nn},{concat:function(t){var e,r,n,o,i,u=dt(this),a=Qr(u,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(rn(i=-1===e?u:arguments[e]))for(o=rr(i),Vr(c+o),r=0;r<o;r++,c++)r in i&&Jr(a,c,i[r]);else Vr(c+1),Jr(a,c++,i);return a.length=c,a}});var on,un,an,cn=Object.freeze({__proto__:null}),fn=String,sn=fr.concat("length","prototype"),ln={f:Object.getOwnPropertyNames||function(t){return cr(t,sn)}},pn=ln.f,hn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yn={f:function(t){return hn&&"Window"===S(t)?function(t){try{return pn(t)}catch(t){return Oe(hn)}}(t):pn(Gt(t))}},vn={f:Object.getOwnPropertySymbols},dn={f:Rt},gn=he.f,mn=function(t,e,r,n){return n&&n.enumerable?t[e]=r:me(t,e,r),t},bn=Ae?{}.toString:function(){return"[object "+Le(this)+"]"},wn=he.f,On=Rt("toStringTag"),Sn=$.WeakMap,_n=H(Sn)&&/native code/.test(String(Sn)),En="Object already initialized",xn=$.TypeError,jn=$.WeakMap;if(_n||yt.state){var Pn=yt.state||(yt.state=new jn);Pn.get=Pn.get,Pn.has=Pn.has,Pn.set=Pn.set,on=function(t,e){if(Pn.has(t))throw new xn(En);return e.facade=t,Pn.set(t,e),e},un=function(t){return Pn.get(t)||{}},an=function(t){return Pn.has(t)}}else{var An=gr("state");ir[An]=!0,on=function(t,e){if(_t(t,An))throw new xn(En);return e.facade=t,me(t,An,e),e},un=function(t){return _t(t,An)?t[An]:{}},an=function(t){return _t(t,An)}}var kn={set:on,get:un,has:an,enforce:function(t){return an(t)?un(t):on(t,{})},getterFor:function(t){return function(e){var r;if(!ft(e)||(r=un(e)).type!==t)throw new xn("Incompatible receiver, "+t+" required");return r}}},Cn=b([].push),Rn=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,f,s,l){for(var p,h,y=dt(c),v=F(y),d=rr(v),g=ge(f,s),m=0,b=l||Qr,w=e?b(c,d):r||u?b(c,0):void 0;d>m;m++)if((a||m in v)&&(h=g(p=v[m],m,y),t))if(e)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:Cn(w,p)}else switch(t){case 4:return!1;case 7:Cn(w,p)}return i?-1:n||o?o:w}},Tn={forEach:Rn(0),map:Rn(1),filter:Rn(2),some:Rn(3),every:Rn(4),find:Rn(5),findIndex:Rn(6),filterReject:Rn(7)},In=function(t){if("Symbol"===Le(t))throw new TypeError("Cannot convert a Symbol value to a string");return fn(t)},Mn=yn,Ln=vn,Fn=function(t,e,r){return he.f(t,e,r)},Bn=function(t){var e=N.Symbol||(N.Symbol={});_t(e,t)||gn(e,t,{value:dn.f(t)})},Hn=function(){var t=Z("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=Rt("toPrimitive");e&&!e[n]&&mn(e,n,(function(t){return ct(r,this)}),{arity:1})},Nn=function(t,e,r,n){var o=r?t:t&&t.prototype;o&&(_t(o,On)||wn(o,On,{configurable:!0,value:e}),n&&!Ae&&me(o,"toString",bn))},$n=kn,Dn=Tn,Gn=Dn.forEach,Kn=gr("hidden"),zn="Symbol",qn="prototype",Xn=$n.set,Yn=$n.getterFor(zn),Un=Object[qn],Wn=$.Symbol,Vn=Wn&&Wn[qn],Jn=$.RangeError,Qn=$.TypeError,Zn=$.QObject,to=ve.f,eo=he.f,ro=Mn.f,no=$t.f,oo=b([].push),io=St("symbols"),uo=St("op-symbols"),ao=St("wks"),co=!Zn||!Zn[qn]||!Zn[qn].findChild,fo=function(t,e,r){var n=to(Un,e);n&&delete Un[e],eo(t,e,r),n&&t!==Un&&eo(Un,e,n)},so=Bt&&c((function(){return 7!==kr(eo({},"a",{get:function(){return eo(this,"a",{value:7}).a}})).a}))?fo:eo,lo=function(t,e){var r=io[t]=kr(Vn);return Xn(r,{type:zn,tag:t,description:e}),Bt||(r.description=e),r},po=function(t,e,r){t===Un&&po(uo,e,r),ue(t);var n=Kt(e);return ue(r),_t(io,n)?(r.enumerable?(_t(t,Kn)&&t[Kn][n]&&(t[Kn][n]=!1),r=kr(r,{enumerable:Dt(0,!1)})):(_t(t,Kn)||eo(t,Kn,Dt(1,kr(null))),t[Kn][n]=!0),so(t,n,r)):eo(t,n,r)},ho=function(t,e){ue(t);var r=Gt(e),n=sr(r).concat(mo(r));return Gn(n,(function(e){Bt&&!ct(yo,r,e)||po(t,e,r[e])})),t},yo=function(t){var e=Kt(t),r=ct(no,this,e);return!(this===Un&&_t(io,e)&&!_t(uo,e))&&(!(r||!_t(this,e)||!_t(io,e)||_t(this,Kn)&&this[Kn][e])||r)},vo=function(t,e){var r=Gt(t),n=Kt(e);if(r!==Un||!_t(io,n)||_t(uo,n)){var o=to(r,n);return!o||!_t(io,n)||_t(r,Kn)&&r[Kn][n]||(o.enumerable=!0),o}},go=function(t){var e=ro(Gt(t)),r=[];return Gn(e,(function(t){_t(io,t)||_t(ir,t)||oo(r,t)})),r},mo=function(t){var e=t===Un,r=ro(e?uo:Gt(t)),n=[];return Gn(r,(function(t){!_t(io,t)||e&&!_t(Un,t)||oo(n,io[t])})),n};J||(Wn=function(){if(tt(Vn,this))throw new Qn("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?In(arguments[0]):void 0,e=Et(t),r=function(t){var n=void 0===this?$:this;n===Un&&ct(r,uo,t),_t(n,Kn)&&_t(n[Kn],e)&&(n[Kn][e]=!1);var o=Dt(1,t);try{so(n,e,o)}catch(t){if(!(t instanceof Jn))throw t;fo(n,e,o)}};return Bt&&co&&so(Un,e,{configurable:!0,set:r}),lo(e,t)},Vn=Wn[qn],mn(Vn,"toString",(function(){return Yn(this).tag})),mn(Wn,"withoutSetter",(function(t){return lo(Et(t),t)})),$t.f=yo,he.f=po,vr.f=ho,ve.f=vo,ln.f=Mn.f=go,Ln.f=mo,dn.f=function(t){return lo(Rt(t),t)},Bt&&Fn(Vn,"description",{configurable:!0,get:function(){return Yn(this).description}})),jr({global:!0,constructor:!0,wrap:!0,forced:!J,sham:!J},{Symbol:Wn}),Gn(sr(ao),(function(t){Bn(t)})),jr({target:zn,stat:!0,forced:!J},{useSetter:function(){co=!0},useSimple:function(){co=!1}}),jr({target:"Object",stat:!0,forced:!J,sham:!Bt},{create:function(t,e){return void 0===e?kr(t):ho(kr(t),e)},defineProperty:po,defineProperties:ho,getOwnPropertyDescriptor:vo}),jr({target:"Object",stat:!0,forced:!J},{getOwnPropertyNames:go}),Hn(),Nn(Wn,zn),ir[Kn]=!0;var bo=J&&!!Symbol.for&&!!Symbol.keyFor,wo=St("string-to-symbol-registry"),Oo=St("symbol-to-string-registry");jr({target:"Symbol",stat:!0,forced:!bo},{for:function(t){var e=In(t);if(_t(wo,e))return wo[e];var r=Z("Symbol")(e);return wo[e]=r,Oo[r]=e,r}});var So=St("symbol-to-string-registry");jr({target:"Symbol",stat:!0,forced:!bo},{keyFor:function(t){if(!At(t))throw new TypeError(it(t)+" is not a symbol");if(_t(So,t))return So[t]}});var _o=b([].push),Eo=function(t){if(H(t))return t;if(qr(t)){for(var e=t.length,r=[],n=0;n<e;n++){var o=t[n];"string"==typeof o?_o(r,o):"number"!=typeof o&&"Number"!==S(o)&&"String"!==S(o)||_o(r,In(o))}var i=r.length,u=!0;return function(t,e){if(u)return u=!1,e;if(qr(this))return e;for(var n=0;n<i;n++)if(r[n]===t)return e}}},xo=String,jo=Z("JSON","stringify"),Po=b(/./.exec),Ao=b("".charAt),ko=b("".charCodeAt),Co=b("".replace),Ro=b(1..toString),To=/[\uD800-\uDFFF]/g,Io=/^[\uD800-\uDBFF]$/,Mo=/^[\uDC00-\uDFFF]$/,Lo=!J||c((function(){var t=Z("Symbol")("stringify detection");return"[null]"!==jo([t])||"{}"!==jo({a:t})||"{}"!==jo(Object(t))})),Fo=c((function(){return'"\\udf06\\ud834"'!==jo("\udf06\ud834")||'"\\udead"'!==jo("\udead")})),Bo=function(t,e){var r=Oe(arguments),n=Eo(e);if(H(n)||void 0!==t&&!At(t))return r[1]=function(t,e){if(H(n)&&(e=ct(n,this,xo(t),e)),!At(e))return e},ye(jo,null,r)},Ho=function(t,e,r){var n=Ao(r,e-1),o=Ao(r,e+1);return Po(Io,t)&&!Po(Mo,o)||Po(Mo,t)&&!Po(Io,n)?"\\u"+Ro(ko(t,0),16):t};jo&&jr({target:"JSON",stat:!0,arity:3,forced:Lo||Fo},{stringify:function(t,e,r){var n=Oe(arguments),o=ye(Lo?Bo:jo,null,n);return Fo&&"string"==typeof o?Co(o,To,Ho):o}});var No=!J||c((function(){Ln.f(1)}));jr({target:"Object",stat:!0,forced:No},{getOwnPropertySymbols:function(t){var e=Ln.f;return e?e(dt(t)):[]}}),Bn("asyncIterator");var $o=Object.freeze({__proto__:null});Bn("hasInstance"),Bn("isConcatSpreadable"),Bn("iterator"),Bn("match"),Bn("matchAll"),Bn("replace"),Bn("search"),Bn("species"),Bn("split"),Bn("toPrimitive"),Hn(),Bn("toStringTag"),Nn(Z("Symbol"),"Symbol"),Bn("unscopables"),Nn($.JSON,"JSON",!0);var Do=Object.freeze({__proto__:null}),Go=Object.freeze({__proto__:null});n(cn),n($o),n(Do),n(Go);var Ko,zo,qo,Xo=N.Symbol,Yo=Function.prototype,Uo=Bt&&Object.getOwnPropertyDescriptor,Wo=_t(Yo,"name"),Vo={EXISTS:Wo,PROPER:Wo&&"something"===function(){}.name,CONFIGURABLE:Wo&&(!Bt||Bt&&Uo(Yo,"name").configurable)},Jo=!c((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Qo=gr("IE_PROTO"),Zo=Object,ti=Zo.prototype,ei=Jo?Zo.getPrototypeOf:function(t){var e=dt(t);if(_t(e,Qo))return e[Qo];var r=e.constructor;return H(r)&&e instanceof r?r.prototype:e instanceof Zo?ti:null},ri=Rt("iterator"),ni=!1;[].keys&&("next"in(qo=[].keys())?(zo=ei(ei(qo)))!==Object.prototype&&(Ko=zo):ni=!0);var oi=!ft(Ko)||c((function(){var t={};return Ko[ri].call(t)!==t}));Ko=oi?{}:kr(Ko),H(Ko[ri])||mn(Ko,ri,(function(){return this}));var ii={IteratorPrototype:Ko,BUGGY_SAFARI_ITERATORS:ni},ui={},ai=ii.IteratorPrototype,ci=function(){return this},fi=function(t){return ft(t)||null===t},si=String,li=TypeError,pi=function(t,e,r){try{return b(at(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},hi=function(t){if(fi(t))return t;throw new li("Can't set "+si(t)+" as a prototype")},yi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=pi(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return B(r),hi(n),ft(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),vi=Vo,di=function(t,e,r,n){var o=e+" Iterator";return t.prototype=kr(ai,{next:Dt(+!n,r)}),Nn(t,o,!1,!0),ui[o]=ci,t},gi=yi,mi=vi.PROPER,bi=ii.BUGGY_SAFARI_ITERATORS,wi=Rt("iterator"),Oi="keys",Si="values",_i="entries",Ei=function(){return this},xi=function(){},ji=function(t,e,r,n,o,i,u){di(r,e,n);var a,c,f,s=function(t){if(t===o&&v)return v;if(!bi&&t&&t in h)return h[t];switch(t){case Oi:case Si:case _i:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",p=!1,h=t.prototype,y=h[wi]||h["@@iterator"]||o&&h[o],v=!bi&&y||s(o),d="Array"===e&&h.entries||y;if(d&&(a=ei(d.call(new t)))!==Object.prototype&&a.next&&(Nn(a,l,!0,!0),ui[l]=Ei),mi&&o===Si&&y&&y.name!==Si&&(p=!0,v=function(){return ct(y,this)}),o)if(c={values:s(Si),keys:i?v:s(Oi),entries:s(_i)},u)for(f in c)(bi||p||!(f in h))&&mn(h,f,c[f]);else jr({target:e,proto:!0,forced:bi||p},c);return u&&h[wi]!==v&&mn(h,wi,v,{name:o}),ui[e]=v,c},Pi=function(t,e){return{value:t,done:e}},Ai=(he.f,"Array Iterator"),ki=$n.set,Ci=$n.getterFor(Ai);ji(Array,"Array",(function(t,e){ki(this,{type:Ai,target:Gt(t),index:0,kind:e})}),(function(){var t=Ci(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,Pi(void 0,!0);switch(t.kind){case"keys":return Pi(r,!1);case"values":return Pi(e[r],!1)}return Pi([r,e[r]],!1)}),"values");ui.Arguments=ui.Array;xi(),xi(),xi();var Ri={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};for(var Ti in Ri)Nn($[Ti],Ti),ui[Ti]=ui.Array;var Ii=Xo,Mi=he.f,Li=Rt("metadata"),Fi=Function.prototype;void 0===Fi[Li]&&Mi(Fi,Li,{value:null}),Bn("asyncDispose"),Bn("dispose"),Bn("metadata");var Bi=Ii,Hi=Z("Symbol"),Ni=Hi.keyFor,$i=b(Hi.prototype.valueOf),Di=Hi.isRegisteredSymbol||function(t){try{return void 0!==Ni($i(t))}catch(t){return!1}};jr({target:"Symbol",stat:!0},{isRegisteredSymbol:Di});for(var Gi=Z("Symbol"),Ki=Gi.isWellKnownSymbol,zi=Z("Object","getOwnPropertyNames"),qi=b(Gi.prototype.valueOf),Xi=St("wks"),Yi=0,Ui=zi(Gi),Wi=Ui.length;Yi<Wi;Yi++)try{var Vi=Ui[Yi];At(Gi[Vi])&&Rt(Vi)}catch(t){}var Ji=function(t){if(Ki&&Ki(t))return!0;try{for(var e=qi(t),r=0,n=zi(Xi),o=n.length;r<o;r++)if(Xi[n[r]]==e)return!0}catch(t){}return!1};jr({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Ji}),Bn("customMatcher"),Bn("observable"),jr({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Di}),jr({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Ji}),Bn("matcher"),Bn("metadataKey"),Bn("patternMatch"),Bn("replaceAll");var Qi=Bi,Zi=Qi,tu=b("".charAt),eu=b("".charCodeAt),ru=b("".slice),nu=function(t){return function(e,r){var n,o,i=In(B(e)),u=Ve(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=eu(i,u))<55296||n>56319||u+1===a||(o=eu(i,u+1))<56320||o>57343?t?tu(i,u):n:t?ru(i,u,u+2):o-56320+(n-55296<<10)+65536}},ou={codeAt:nu(!1),charAt:nu(!0)}.charAt,iu="String Iterator",uu=$n.set,au=$n.getterFor(iu);ji(String,"String",(function(t){uu(this,{type:iu,string:In(t),index:0})}),(function(){var t,e=au(this),r=e.string,n=e.index;return n>=r.length?Pi(void 0,!0):(t=ou(r,n),e.index+=t.length,Pi(t,!1))}));var cu=dn.f("iterator"),fu=Qi,su=cu,lu=r((function(t){function e(r){return t.exports=e="function"==typeof fu&&"symbol"==typeof su?function(t){return typeof t}:function(t){return t&&"function"==typeof fu&&t.constructor===fu&&t!==fu.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}));e(lu);var pu=dn.f("toPrimitive"),hu=pu,yu=r((function(t){var e=lu.default;t.exports=function(t,r){if("object"!=e(t)||!t)return t;var n=t[hu];if(void 0!==n){var o=n.call(t,r||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}));e(yu);var vu=r((function(t){var e=lu.default;t.exports=function(t){var r=yu(t,"string");return"symbol"==e(r)?r:r+""},t.exports.__esModule=!0,t.exports.default=t.exports}));e(vu);var du=r((function(t){function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Dr(t,vu(n.key),n)}}t.exports=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),Dr(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports})),gu=e(du),mu=r((function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}));e(mu);var bu=r((function(t){var e=lu.default;t.exports=function(t,r){if(r&&("object"==e(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return mu(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),wu=e(bu);jr({target:"Object",stat:!0},{setPrototypeOf:gi});var Ou=N.Object.setPrototypeOf,Su=Ou;jr({target:"Function",proto:!0,forced:Function.bind!==Pr},{bind:Pr});var _u=function(t,e){var r=N[t+"Prototype"],n=r&&r[e];if(n)return n;var o=$[t],i=o&&o.prototype;return i&&i[e]},Eu=_u("Function","bind"),xu=Function.prototype,ju=function(t){var e=t.bind;return t===xu||tt(xu,t)&&e===xu.bind?Eu:e},Pu=ju,Au=c((function(){ei(1)}));jr({target:"Object",stat:!0,forced:Au,sham:!Jo},{getPrototypeOf:function(t){return ei(dt(t))}});var ku=N.Object.getPrototypeOf,Cu=Ou,Ru=ju,Tu=ku,Iu=r((function(t){function e(r){var n;return t.exports=e=Cu?Ru(n=Tu).call(n):function(t){return t.__proto__||Tu(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),Mu=e(Iu);jr({target:"Object",stat:!0,sham:!Bt},{create:kr});var Lu=N.Object,Fu=function(t,e){return Lu.create(t,e)},Bu=Fu,Hu=r((function(t){function e(r,n){var o;return t.exports=e=Cu?Ru(o=Cu).call(o):function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}));e(Hu);var Nu=Fu,$u=e(r((function(t){t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Nu(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Dr(t,"prototype",{writable:!1}),e&&Hu(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports}))),Du=e(r((function(t){t.exports=function(t,e,r){return(e=vu(e))in t?Dr(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports}))),Gu=function(t,e){var r=[][t];return!!r&&c((function(){r.call(null,e||function(){return 1},1)}))},Ku=or.indexOf,zu=te([].indexOf),qu=!!zu&&1/zu([1],1,-0)<0,Xu=qu||!Gu("indexOf");jr({target:"Array",proto:!0,forced:Xu},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return qu?zu(this,t,e)||0:Ku(this,t,e)}});var Yu=_u("Array","indexOf"),Uu=Array.prototype,Wu=function(t){var e=t.indexOf;return t===Uu||tt(Uu,t)&&e===Uu.indexOf?Yu:e};function Vu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ju(t){return Ju="function"==typeof Zi&&"symbol"==typeof cu?function(t){return typeof t}:function(t){return t&&"function"==typeof Zi&&t.constructor===Zi&&t!==Zi.prototype?"symbol":typeof t},Ju(t)}function Qu(t){var e=function(t,e){if("object"!=Ju(t)||!t)return t;var r=t[pu];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ju(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ju(e)?e:e+""}function Zu(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Gr(t,Qu(n.key),n)}}function ta(t,e,r){return e&&Zu(t.prototype,e),r&&Zu(t,r),Gr(t,"prototype",{writable:!1}),t}function ea(t,e){if(e&&("object"==Ju(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ra(t){var e;return ra=Su?Pu(e=ku).call(e):function(t){return t.__proto__||ku(t)},ra(t)}function na(t,e){var r;return na=Su?Pu(r=Su).call(r):function(t,e){return t.__proto__=e,t},na(t,e)}function oa(t,e,r){return(e=Qu(e))in t?Gr(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ia=Dn.filter,ua=Zr("filter");jr({target:"Array",proto:!0,forced:!ua},{filter:function(t){return ia(this,t,arguments.length>1?arguments[1]:void 0)}});var aa=_u("Array","filter"),ca=Array.prototype,fa=function(t){var e=t.filter;return t===ca||tt(ca,t)&&e===ca.filter?aa:e},sa=Dn.map,la=Zr("map");jr({target:"Array",proto:!0,forced:!la},{map:function(t){return sa(this,t,arguments.length>1?arguments[1]:void 0)}});var pa=_u("Array","map"),ha=Array.prototype,ya=function(t){var e=t.map;return t===ha||tt(ha,t)&&e===ha.map?pa:e},va=_u("Array","concat"),da=Array.prototype,ga=function(t){var e=t.concat;return t===da||tt(da,t)&&e===da.concat?va:e},ma="\t\n\v\f\r \u2028\u2029\ufeff",ba=b("".replace),wa=RegExp("^["+ma+"]+"),Oa=RegExp("(^|[^"+ma+"])["+ma+"]+$"),Sa=function(t){return function(e){var r=In(B(e));return 1&t&&(r=ba(r,wa,"")),2&t&&(r=ba(r,Oa,"$1")),r}},_a={start:Sa(1),end:Sa(2),trim:Sa(3)},Ea=vi.PROPER,xa=_a,ja=xa.trim;jr({target:"String",proto:!0,forced:function(t){return c((function(){return!!ma[t]()||"
"!=="
"[t]()||Ea&&ma[t].name!==t}))}("trim")},{trim:function(){return ja(this)}});var Pa=_u("String","trim"),Aa=String.prototype,ka=function(t){var e=t.trim;return"string"==typeof t||t===Aa||tt(Aa,t)&&e===Aa.trim?Pa:e},Ca=xa.trim,Ra=$.parseInt,Ta=$.Symbol,Ia=Ta&&Ta.iterator,Ma=/^[+-]?0x/i,La=b(Ma.exec),Fa=8!==Ra(ma+"08")||22!==Ra(ma+"0x16")||Ia&&!c((function(){Ra(Object(Ia))}))?function(t,e){var r=Ca(In(t));return Ra(r,e>>>0||(La(Ma,r)?16:10))}:Ra;jr({global:!0,forced:parseInt!==Fa},{parseInt:Fa});var Ba=N.parseInt,Ha="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Na=TypeError,$a=Ha,Da=function(t,e){if(t<e)throw new Na("Not enough arguments");return t},Ga=$.Function,Ka=/MSIE .\./.test(K)||$a&&function(){var t=$.Bun.version.split(".");return t.length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2])}(),za=function(t,e){var r=e?2:1;return Ka?function(n,o){var i=Da(arguments.length,1)>r,u=H(n)?n:Ga(n),a=i?Oe(arguments,r):[],c=i?function(){ye(u,this,a)}:u;return e?t(c,o):t(c)}:t},qa=za($.setInterval,!0);jr({global:!0,bind:!0,forced:$.setInterval!==qa},{setInterval:qa});var Xa=za($.setTimeout,!0);jr({global:!0,bind:!0,forced:$.setTimeout!==Xa},{setTimeout:Xa});var Ya=N.setTimeout,Ua=!1,Wa="paragraph",Va="sentence",Ja=function(){return ta((function t(e){Vu(this,t),oa(this,"$engine",void 0),oa(this,"$locale",void 0),this.RULE=this.rule(e)}),[{key:"getType",value:function(){return this.constructor.HOOK_TYPE||Va}},{key:"getName",value:function(){return this.constructor.HOOK_NAME}},{key:"afterInit",value:function(t){"function"==typeof t&&t()}},{key:"setLocale",value:function(t){this.$locale=t}},{key:"beforeMakeHtml",value:function(t){return t}},{key:"makeHtml",value:function(t){return t}},{key:"afterMakeHtml",value:function(t){return t}},{key:"onKeyDown",value:function(t,e){}},{key:"getOnKeyDown",value:function(){return this.onKeyDown||!1}},{key:"getAttributesTest",value:function(){return/^(color|fontSize|font-size|id|title|class|target|underline|line-through|overline|sub|super)$/}},{key:"$testAttributes",value:function(t,e){this.getAttributesTest().test(t)&&e()}},{key:"getAttributes",value:function(t){return{attrs:{},str:t}}},{key:"test",value:function(t){return!!this.RULE.reg&&this.RULE.reg.test(t)}},{key:"rule",value:function(t){return{begin:"",end:"",content:"",reg:new RegExp("")}}},{key:"mounted",value:function(){}}],[{key:"getMathJaxConfig",value:function(){return Ua}},{key:"setMathJaxConfig",value:function(t){Ua=t}}])}();oa(Ja,"HOOK_NAME","default"),oa(Ja,"HOOK_TYPE",Va);var Qa=N.Object.getOwnPropertySymbols,Za=ve.f,tc=!Bt||c((function(){Za(1)}));jr({target:"Object",stat:!0,forced:tc,sham:!Bt},{getOwnPropertyDescriptor:function(t,e){return Za(Gt(t),e)}});var ec=r((function(t){var e=N.Object,r=t.exports=function(t,r){return e.getOwnPropertyDescriptor(t,r)};e.getOwnPropertyDescriptor.sham&&(r.sham=!0)})),rc=ec,nc=Dn.forEach,oc=Gu("forEach")?[].forEach:function(t){return nc(this,t,arguments.length>1?arguments[1]:void 0)};jr({target:"Array",proto:!0,forced:[].forEach!==oc},{forEach:oc});var ic=_u("Array","forEach");n(Object.freeze({__proto__:null}));var uc=Array.prototype,ac={DOMTokenList:!0,NodeList:!0},cc=function(t){var e=t.forEach;return t===uc||tt(uc,t)&&e===uc.forEach||_t(ac,Le(t))?ic:e},fc=b([].concat),sc=Z("Reflect","ownKeys")||function(t){var e=ln.f(ue(t)),r=Ln.f;return r?fc(e,r(t)):e},lc=sc;jr({target:"Object",stat:!0,sham:!Bt},{getOwnPropertyDescriptors:function(t){for(var e,r,n=Gt(t),o=ve.f,i=lc(n),u={},a=0;i.length>a;)void 0!==(r=o(n,e=i[a++]))&&Jr(u,e,r);return u}});var pc=N.Object.getOwnPropertyDescriptors,hc=vr.f;jr({target:"Object",stat:!0,forced:Object.defineProperties!==hc,sham:!Bt},{defineProperties:hc});var yc=r((function(t){var e=N.Object,r=t.exports=function(t,r){return e.defineProperties(t,r)};e.defineProperties.sham&&(r.sham=!0)})),vc=yc,dc=$r,gc=c((function(){sr(1)}));jr({target:"Object",stat:!0,forced:gc},{keys:function(t){return sr(dt(t))}});var mc,bc,wc=N.Object.keys;function Oc(t,e){var r=wc(t);if(Qa){var n=Qa(t);e&&(n=fa(n).call(n,(function(e){return rc(t,e).enumerable}))),r.push.apply(r,n)}return r}function Sc(t){for(var e=1;e<arguments.length;e++){var r,n,o=null!=arguments[e]?arguments[e]:{};e%2?cc(r=Oc(Object(o),!0)).call(r,(function(e){oa(t,e,o[e])})):pc?vc(t,pc(o)):cc(n=Oc(Object(o))).call(n,(function(e){dc(t,e,rc(o,e))}))}return t}var _c=Sc(Sc(Sc(Sc(Sc(Sc({},{34:""",38:"&",39:"'",60:"<",62:">"}),{192:"À",193:"Á",194:"Â",195:"Ã",196:"Ä",197:"Å",198:"Æ",199:"Ç",200:"È",201:"É",202:"Ê",203:"Ë",204:"Ì",205:"Í",206:"Î",207:"Ï",208:"Ð",209:"Ñ",210:"Ò",211:"Ó",212:"Ô",213:"Õ",214:"Ö",216:"Ø",217:"Ù",218:"Ú",219:"Û",220:"Ü",221:"Ý",222:"Þ",223:"ß",224:"à",225:"á",226:"â",227:"ã",228:"ä",229:"å",230:"æ",231:"ç",232:"è",233:"é",234:"ê",235:"ë",236:"ì",237:"í",238:"î",239:"ï",240:"ð",241:"ñ",242:"ò",243:"ó",244:"ô",245:"õ",246:"ö",248:"ø",249:"ù",250:"ú",251:"û",252:"ü",253:"ý",254:"þ",255:"ÿ"}),{160:" ",161:"¡",162:"¢",163:"£",164:"¤",165:"¥",166:"¦",167:"§",168:"¨",169:"©",170:"ª",171:"«",172:"¬",173:"­",174:"®",175:"¯",176:"°",177:"±",178:"²",179:"³",180:"´",181:"µ",182:"¶",184:"¸",185:"¹",186:"º",187:"»",188:"¼",189:"½",190:"¾",191:"¿",215:"×",247:"÷"}),{8704:"∀",8706:"∂",8707:"∃",8709:"∅",8711:"∇",8712:"∈",8713:"∉",8715:"∋",8719:"∏",8721:"∑",8722:"−",8727:"∗",8730:"√",8733:"∝",8734:"∞",8736:"∠",8743:"∧",8744:"∨",8745:"∩",8746:"∪",8747:"∫",8756:"∴",8764:"∼",8773:"≅",8776:"≈",8800:"≠",8801:"≡",8804:"≤",8805:"≥",8834:"⊂",8835:"⊃",8836:"⊄",8838:"⊆",8839:"⊇",8853:"⊕",8855:"⊗",8869:"⊥",8901:"⋅"}),{913:"Α",914:"Β",915:"Γ",916:"Δ",917:"Ε",918:"Ζ",919:"Η",920:"Θ",921:"Ι",922:"Κ",923:"Λ",924:"Μ",925:"Ν",926:"Ξ",927:"Ο",928:"Π",929:"Ρ",931:"Σ",932:"Τ",933:"Υ",934:"Φ",935:"Χ",936:"Ψ",937:"Ω",945:"α",946:"β",947:"γ",948:"δ",949:"ε",950:"ζ",951:"η",952:"θ",953:"ι",954:"κ",955:"λ",956:"μ",957:"ν",958:"ξ",959:"ο",960:"π",961:"ρ",962:"ς",963:"σ",964:"τ",965:"υ",966:"φ",967:"χ",968:"ψ",969:"ω",977:"ϑ",978:"ϒ",982:"ϖ"}),{338:"Œ",339:"œ",352:"Š",353:"š",376:"Ÿ",402:"ƒ",710:"ˆ",732:"˜",8194:" ",8195:" ",8201:" ",8204:"‌",8205:"‍",8206:"‎",8207:"‏",8211:"–",8212:"—",8216:"‘",8217:"’",8218:"‚",8220:"“",8221:"”",8222:"„",8224:"†",8225:"‡",8226:"•",8230:"…",8240:"‰",8242:"′",8243:"″",8249:"‹",8250:"›",8254:"‾",8364:"€",8482:"™",8592:"←",8593:"↑",8594:"→",8595:"↓",8596:"↔",8629:"↵",8968:"⌈",8969:"⌉",8970:"⌊",8971:"⌋",9674:"◊",9824:"♠",9827:"♣",9829:"♥",9830:"♦"}),Ec=wc(_c);ya(Ec).call(Ec,(function(t){return _c[t].replace(/^&(\w+);$/g,(function(t,e){return e.toLowerCase()}))}));var xc=["h1|h2|h3|h4|h5|h6","ul|ol|li|dd|dl|dt","table|thead|tbody|tfoot|col|colgroup|th|td|tr","div|article|section|footer|aside|details|summary|code|audio|video|canvas|figure","address|center|cite|p|pre|blockquote|marquee|caption|figcaption|track|source|output|svg"].join("|"),jc=["span|a|link|b|s|i|del|u|em|strong|sup|sub|kbd","nav|font|bdi|samp|map|area|small|time|bdo|var|wbr|meter|dfn","ruby|rt|rp|mark|q|progress|input|textarea|select|ins"].join("|");function Pc(t,e,r){return e=ra(e),ea(t,Ac()?Fr(e,r||[],ra(t).constructor):e.apply(t,r))}function Ac(){try{var t=!Boolean.prototype.valueOf.call(Fr(Boolean,[],(function(){})))}catch(t){}return(Ac=function(){return!!t})()}new RegExp(ga(mc=ga(bc="^(".concat(xc,"|")).call(bc,jc,"|")).call(mc,"br|img|hr",")( |$|/)"),"i");var kc=0,Cc=function(t){function e(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{needCache:!1},n=r.needCache,o=r.defaultCache,i=void 0===o?{}:o;return Vu(this,e),(t=Pc(this,e,[{}])).needCache=!!n,t.sign="",n&&(t.cache=i||{},t.cacheKey="~~C".concat(kc),kc+=1),t.failedResetCacheTimes=0,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Bu(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Gr(t,"prototype",{writable:!1}),e&&na(t,e)}(e,t),ta(e,[{key:"initBrReg",value:function(){var t,e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.classicBr=(e="classicBr","undefined"!=typeof localStorage&&null!==localStorage.getItem("cherry-".concat(e))?(t="false","undefined"!=typeof localStorage&&(t=localStorage.getItem("cherry-classicBr")),"true"===t):r),this.removeBrAfterBlock=null,this.removeBrBeforeBlock=null,this.removeNewlinesBetweenTags=null}},{key:"$cleanParagraph",value:function(t){var e=t.replace(/^\n+/,"").replace(/\n+$/,"");return this.classicBr?e:this.joinRawHtml(e).replace(/\n/g,"<br>").replace(/\r/g,"\n")}},{key:"joinRawHtml",value:function(t){if(!this.removeBrAfterBlock){var e,r,n,o,i=null!==(e=null===(r=this.$engine.htmlWhiteListAppend)||void 0===r?void 0:r.split("|"))&&void 0!==e?e:[];i=fa(n=ya(i).call(i,(function(t){return/[a-z-]+/gi.test(t)?t:null}))).call(n,(function(t){return null!==t}));var u=ga(i).call(i,xc).join("|");this.removeBrAfterBlock=new RegExp("<(".concat(u,")(>| [^>]*?>)[^\\S\\n]*?\\n"),"ig"),this.removeBrBeforeBlock=new RegExp("\\n[^\\S\\n]*?<\\/(".concat(u,")>[^\\S\\n]*?\\n"),"ig"),this.removeNewlinesBetweenTags=new RegExp(ga(o="<\\/(".concat(u,")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(o,u,")(>| [^>]*?>)"),"ig")}return t.replace(this.removeBrAfterBlock,"<$1$2").replace(this.removeBrBeforeBlock,"</$1>").replace(this.removeNewlinesBetweenTags,"</$1>\r$2<$3$4")}},{key:"toHtml",value:function(t,e){return t}},{key:"makeHtml",value:function(t,e){return e(t).html}},{key:"afterMakeHtml",value:function(t){return this.restoreCache(t)}},{key:"isContainsCache",value:function(t,r){if(r){var n=/^(\s*~~C\d+I\w+\$\s*)+$/g.test(t),o=new RegExp("~~C\\d+I".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,"\\w+\\$"),"g").test(t);return n&&!o}return new RegExp("~~C\\d+I(?!".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$"),"g").test(t)}},{key:"$splitHtmlByCache",value:function(t){var r=new RegExp("\\n*~~C\\d+I(?!".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$\\n?"),"g");return{caches:t.match(r),contents:t.split(r)}}},{key:"makeExcludingCached",value:function(t,e){for(var r=this.$splitHtmlByCache(t),n=r.caches,o=r.contents,i=ya(o).call(o,e),u="",a=0;a<i.length;a++){var c;if(u+=i[a],n&&n[a])u+=ka(c=n[a]).call(c)}return u}},{key:"getCacheWithSpace",value:function(t,e){var r,n,o,i,u,a,c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=null!==(r=null===(n=e.match(/^\n+/))||void 0===n?void 0:n[0])&&void 0!==r?r:"",s=null!==(o=null===(i=e.match(/\n+$/))||void 0===i?void 0:i[0])&&void 0!==o?o:"";return c?function(t,e){var r,n,o,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return/^\n/.test(t)?i?(null!==(r=null===(n=t.match(/^\n+/g))||void 0===n||null===(o=n[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0)>1?"\n\n".concat(e):"\n".concat(e):"\n\n".concat(e):e}(e,t):ga(u=ga(a="".concat(f)).call(a,t)).call(u,s)}},{key:"getLineCount",value:function(t){var r,n,o,i=t,u=null!==(r=null===(n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").match(/^\n+/g))||void 0===n||null===(o=n[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0;u=1===u?1:0,i=i.replace(/^\n+/g,"");var a=new RegExp("\n*~~C\\d+I(?:".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+?_L(\\d+)\\$"),"g"),c=0;return i=i.replace(a,(function(t,e){return c+=Ba(e,10),t.replace(/^\n+/g,"")})),u+c+(i.match(/\n/g)||[]).length+1}},{key:"pushCache",value:function(t){var e,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.needCache){var i=n||this.$engine.hash(t),u=ga(e=ga(r="".concat(this.cacheKey,"I")).call(r,i,"_L")).call(e,o,"$");return this.cache[i]={content:t,key:u},u}}},{key:"popCache",value:function(t){if(this.needCache)return this.cache[t].content||""}},{key:"testHasCache",value:function(t){return!(!this.needCache||!this.cache[t])&&this.cache[t].key}},{key:"resetCache",value:function(){this.needCache&&(this.cache={})}},{key:"restoreCache",value:function(t){var r,n=this;if(!this.needCache)return t;var o=new RegExp(ga(r="".concat(this.cacheKey,"I((?:")).call(r,e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+)\\$"),"g"),i=t.replace(o,(function(t,e){return n.popCache(e.replace(/_L\d+$/,""))}));return this.timer&&(clearTimeout(this.timer),this.failedResetCacheTimes+=1,this.timer=null),this.timer=Ya((function(){n.resetCache()}),500),this.failedResetCacheTimes>5&&(this.failedResetCacheTimes=0,Ya((function(){n.resetCache()}),500)),i}},{key:"checkCache",value:function(t,e){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.sign=this.$engine.hash(t),this.cache[this.sign]?ga(r=ga(n="".concat(this.cacheKey,"I")).call(n,this.sign,"_L")).call(r,o,"$"):this.toHtml(t,e)}},{key:"mounted",value:function(){}},{key:"signWithCache",value:function(t){return!1}}])}(Ja);function Rc(t,e,r){return e=Mu(e),wu(t,Tc()?Fr(e,r||[],Mu(t).constructor):e.apply(t,r))}function Tc(){try{var t=!Boolean.prototype.valueOf.call(Fr(Boolean,[],(function(){})))}catch(t){}return(Tc=function(){return!!t})()}oa(Cc,"HOOK_TYPE",Wa),oa(Cc,"IN_PARAGRAPH_CACHE_KEY_PREFIX","!"),oa(Cc,"IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX","\\!");var Ic=function(t){function e(){return Br(this,e),Rc(this,e,[{needCache:!0}])}return $u(e,t),gu(e,[{key:"makeHtml",value:function(t){return t}},{key:"afterMakeHtml",value:function(t){return t.replace(/\[[\s|x]\]/g,(function(t){return Wu(t).call(t,"x")>-1?' <span class="ch-icon ch-icon-check"></span> ':' <span class="ch-icon ch-icon-square"></span> '}))}},{key:"rule",value:function(){return{}}}])}(Cc);return Du(Ic,"HOOK_NAME","tapdCheckList"),Ic}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [TAPD](https://tapd.cn)的html块语法
|
|
3
|
+
* 被[html]**[/html]包裹的内容不会进行任何markdown引擎渲染而直接加载到预览区
|
|
4
|
+
* 该功能常见的场景为“导入word”
|
|
5
|
+
* 导入word后,后端返回word的html内容,此内容被[html]**[/html]包裹后会直接加载到预览区,保证样式的一致性
|
|
6
|
+
* 一般不建议引导用户使用该功能
|
|
7
|
+
*/
|
|
8
|
+
export default class TapdHtmlTagPlugin {
|
|
9
|
+
static HOOK_NAME: string;
|
|
10
|
+
makeHtml(html: any, sentenceMakeFunc: any): any;
|
|
11
|
+
rule(): {
|
|
12
|
+
reg: RegExp;
|
|
13
|
+
};
|
|
14
|
+
_trimScripTag(str: any): any;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).CherryTapdHtmlTagPlugin=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}function n(t){return t&&t.default||t}var o,i,u=function(t){return t&&t.Math===Math&&t},a=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof t&&t)||u("object"==typeof t&&t)||function(){return this}()||Function("return this")(),c=function(t){try{return!!t()}catch(t){return!0}},f=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),l=f,s=Function.prototype,p=s.apply,h=s.call,v="object"==typeof Reflect&&Reflect.apply||(l?h.bind(p):function(){return h.apply(p,arguments)}),y=Function.prototype,d=y.call,g=l&&y.bind.bind(d,d),m=l?g:function(t){return function(){return d.apply(t,arguments)}},b=m,w=b({}.toString),O=b("".slice),S=function(t){return O(w(t),8,-1)},_="object"==typeof document&&document.all,E=void 0===_&&void 0!==_?function(t){return"function"==typeof t||t===_}:function(t){return"function"==typeof t},j=!c((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),x=Function.prototype.call,P=l?x.bind(x):function(){return x.apply(x,arguments)},A={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,R={f:k&&!A.call({1:2},1)?function(t){var e=k(this,t);return!!e&&e.enumerable}:A},C=Object,T=b("".split),I=c((function(){return!C("z").propertyIsEnumerable(0)}))?function(t){return"String"===S(t)?T(t,""):C(t)}:C,L=function(t){return null==t},M=TypeError,F=I,B=function(t){if(L(t))throw new M("Can't call method on "+t);return t},H=E,N={},$=a,D=function(t){return H(t)?t:void 0},G=b({}.isPrototypeOf),K="undefined"!=typeof navigator&&String(navigator.userAgent)||"",z=$.process,q=$.Deno,X=z&&z.versions||q&&q.version,Y=X&&X.v8;Y&&(i=(o=Y.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&K&&(!(o=K.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=K.match(/Chrome\/(\d+)/))&&(i=+o[1]);var U=i,W=$.String,V=!!Object.getOwnPropertySymbols&&!c((function(){var t=Symbol("symbol detection");return!W(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&U&&U<41})),J=V,Q=J&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z=function(t,e){return arguments.length<2?D(N[t])||D($[t]):N[t]&&N[t][e]||$[t]&&$[t][e]},tt=G,et=Q,rt=Object,nt=et?function(t){return"symbol"==typeof t}:function(t){var e=Z("Symbol");return H(e)&&tt(e.prototype,rt(t))},ot=String,it=function(t){try{return ot(t)}catch(t){return"Object"}},ut=TypeError,at=function(t){if(H(t))return t;throw new ut(it(t)+" is not a function")},ct=P,ft=function(t){return"object"==typeof t?null!==t:H(t)},lt=TypeError,st=Object.defineProperty,pt=function(t,e){try{st($,t,{value:e,configurable:!0,writable:!0})}catch(r){$[t]=e}return e},ht=r((function(t){var e="__core-js_shared__",r=t.exports=$[e]||pt(e,{});(r.versions||(r.versions=[])).push({version:"3.37.1",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),vt=ht,yt=Object,dt=function(t){return yt(B(t))},gt=b({}.hasOwnProperty),mt=Object.hasOwn||function(t,e){return gt(dt(t),e)},bt=0,wt=Math.random(),Ot=b(1..toString),St=function(t,e){return vt[t]||(vt[t]=e||{})},_t=mt,Et=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ot(++bt+wt,36)},jt=$.Symbol,xt=St("wks"),Pt=et?jt.for||jt:jt&&jt.withoutSetter||Et,At=nt,kt=function(t,e){var r=t[e];return L(r)?void 0:at(r)},Rt=function(t,e){var r,n;if("string"===e&&H(r=t.toString)&&!ft(n=ct(r,t)))return n;if(H(r=t.valueOf)&&!ft(n=ct(r,t)))return n;if("string"!==e&&H(r=t.toString)&&!ft(n=ct(r,t)))return n;throw new lt("Can't convert object to primitive value")},Ct=function(t){return _t(xt,t)||(xt[t]=J&&_t(jt,t)?jt[t]:Pt("Symbol."+t)),xt[t]},Tt=TypeError,It=Ct("toPrimitive"),Lt=function(t,e){if(!ft(t)||At(t))return t;var r,n=kt(t,It);if(n){if(void 0===e&&(e="default"),r=ct(n,t,e),!ft(r)||At(r))return r;throw new Tt("Can't convert object to primitive value")}return void 0===e&&(e="number"),Rt(t,e)},Mt=$.document,Ft=ft(Mt)&&ft(Mt.createElement),Bt=j,Ht=function(t){return Ft?Mt.createElement(t):{}},Nt=!Bt&&!c((function(){return 7!==Object.defineProperty(Ht("div"),"a",{get:function(){return 7}}).a})),$t=R,Dt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Gt=function(t){return F(B(t))},Kt=function(t){var e=Lt(t,"string");return At(e)?e:e+""},zt=Nt,qt=Object.getOwnPropertyDescriptor,Xt={f:Bt?qt:function(t,e){if(t=Gt(t),e=Kt(e),zt)try{return qt(t,e)}catch(t){}if(_t(t,e))return Dt(!ct($t.f,t,e),t[e])}},Yt=/#|\.prototype\./,Ut=function(t,e){var r=Vt[Wt(t)];return r===Qt||r!==Jt&&(H(e)?c(e):!!e)},Wt=Ut.normalize=function(t){return String(t).replace(Yt,".").toLowerCase()},Vt=Ut.data={},Jt=Ut.NATIVE="N",Qt=Ut.POLYFILL="P",Zt=Ut,te=function(t){if("Function"===S(t))return b(t)},ee=te(te.bind),re=Bt&&c((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ne=String,oe=TypeError,ie=re,ue=function(t){if(ft(t))return t;throw new oe(ne(t)+" is not an object")},ae=TypeError,ce=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,le="enumerable",se="configurable",pe="writable",he={f:Bt?ie?function(t,e,r){if(ue(t),e=Kt(e),ue(r),"function"==typeof t&&"prototype"===e&&"value"in r&&pe in r&&!r[pe]){var n=fe(t,e);n&&n[pe]&&(t[e]=r.value,r={configurable:se in r?r[se]:n[se],enumerable:le in r?r[le]:n[le],writable:!1})}return ce(t,e,r)}:ce:function(t,e,r){if(ue(t),e=Kt(e),ue(r),zt)try{return ce(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new ae("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},ve=v,ye=Xt,de=Zt,ge=function(t,e){return at(t),void 0===e?t:l?ee(t,e):function(){return t.apply(e,arguments)}},me=Bt?function(t,e,r){return he.f(t,e,Dt(1,r))}:function(t,e,r){return t[e]=r,t},be=ye.f,we=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return ve(t,this,arguments)};return e.prototype=t.prototype,e},Oe=b([].slice),Se=Function,_e=b([].concat),Ee=b([].join),je={},xe=l?Se.bind:function(t){var e=at(this),r=e.prototype,n=Oe(arguments,1),o=function(){var r=_e(n,Oe(arguments));return this instanceof o?function(t,e,r){if(!_t(je,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";je[e]=Se("C,a","return new C("+Ee(n,",")+")")}return je[e](t,r)}(e,r.length,r):e.apply(t,r)};return ft(r)&&(o.prototype=r),o},Pe={};Pe[Ct("toStringTag")]="z";var Ae="[object z]"===String(Pe),ke=Ct("toStringTag"),Re=Object,Ce="Arguments"===S(function(){return arguments}()),Te=Ae?S:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Re(t),ke))?r:Ce?S(e):"Object"===(n=S(e))&&H(e.callee)?"Arguments":n},Ie=b(Function.toString);H(vt.inspectSource)||(vt.inspectSource=function(t){return Ie(t)});var Le=vt.inspectSource,Me=Te,Fe=Le,Be=function(){},He=Z("Reflect","construct"),Ne=/^\s*(?:class|function)\b/,$e=b(Ne.exec),De=!Ne.test(Be),Ge=function(t){if(!H(t))return!1;try{return He(Be,[],t),!0}catch(t){return!1}},Ke=function(t){if(!H(t))return!1;switch(Me(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return De||!!$e(Ne,Fe(t))}catch(t){return!0}};Ke.sham=!0;var ze,qe=!He||c((function(){var t;return Ge(Ge.call)||!Ge(Object)||!Ge((function(){t=!0}))||t}))?Ke:Ge,Xe=TypeError,Ye=Math.ceil,Ue=Math.floor,We=Math.trunc||function(t){var e=+t;return(e>0?Ue:Ye)(e)},Ve=function(t){var e=+t;return e!=e||0===e?0:We(e)},Je=Math.max,Qe=Math.min,Ze=Math.min,tr=function(t){var e=Ve(t);return e>0?Ze(e,9007199254740991):0},er=function(t,e){var r=Ve(t);return r<0?Je(r+e,0):Qe(r,e)},rr=function(t){return tr(t.length)},nr=function(t){return function(e,r,n){var o=Gt(e),i=rr(o);if(0===i)return!t&&-1;var u,a=er(n,i);if(t&&r!=r){for(;i>a;)if((u=o[a++])!=u)return!0}else for(;i>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},or={includes:nr(!0),indexOf:nr(!1)},ir={},ur=or.indexOf,ar=b([].push),cr=function(t,e){var r,n=Gt(t),o=0,i=[];for(r in n)!_t(ir,r)&&_t(n,r)&&ar(i,r);for(;e.length>o;)_t(n,r=e[o++])&&(~ur(i,r)||ar(i,r));return i},fr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lr=Object.keys||function(t){return cr(t,fr)},sr=Bt&&!ie?Object.defineProperties:function(t,e){ue(t);for(var r,n=Gt(e),o=lr(e),i=o.length,u=0;i>u;)he.f(t,r=o[u++],n[r]);return t},pr={f:sr},hr=Z("document","documentElement"),vr=St("keys"),yr=pr,dr=hr,gr=function(t){return vr[t]||(vr[t]=Et(t))},mr="prototype",br="script",wr=gr("IE_PROTO"),Or=function(){},Sr=function(t){return"<"+br+">"+t+"</"+br+">"},_r=function(t){t.write(Sr("")),t.close();var e=t.parentWindow.Object;return t=null,e},Er=function(){try{ze=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Er="undefined"!=typeof document?document.domain&&ze?_r(ze):(e=Ht("iframe"),r="java"+br+":",e.style.display="none",dr.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Sr("document.F=Object")),t.close(),t.F):_r(ze);for(var n=fr.length;n--;)delete Er[mr][fr[n]];return Er()};ir[wr]=!0;var jr=Object.create||function(t,e){var r;return null!==t?(Or[mr]=ue(t),r=new Or,Or[mr]=null,r[wr]=t):r=Er(),void 0===e?r:yr.f(r,e)},xr=function(t,e){var r,n,o,i,u,a,c,f,l,s=t.target,p=t.global,h=t.stat,v=t.proto,y=p?$:h?$[s]:$[s]&&$[s].prototype,d=p?N:N[s]||me(N,s,{})[s],g=d.prototype;for(i in e)n=!(r=de(p?i:s+(h?".":"#")+i,t.forced))&&y&&_t(y,i),a=d[i],n&&(c=t.dontCallGetSet?(l=be(y,i))&&l.value:y[i]),u=n&&c?c:e[i],(r||v||typeof a!=typeof u)&&(f=t.bind&&n?ge(u,$):t.wrap&&n?we(u):v&&H(u)?te(u):u,(t.sham||u&&u.sham||a&&a.sham)&&me(f,"sham",!0),me(d,i,f),v&&(_t(N,o=s+"Prototype")||me(N,o,{}),me(N[o],i,u),t.real&&g&&(r||!g[i])&&me(g,i,u)))},Pr=xe,Ar=function(t){if(qe(t))return t;throw new Xe(it(t)+" is not a constructor")},kr=jr,Rr=Z("Reflect","construct"),Cr=Object.prototype,Tr=[].push,Ir=c((function(){function t(){}return!(Rr((function(){}),[],t)instanceof t)})),Lr=!c((function(){Rr((function(){}))})),Mr=Ir||Lr;xr({target:"Reflect",stat:!0,forced:Mr,sham:Mr},{construct:function(t,e){Ar(t),ue(e);var r=arguments.length<3?t:Ar(arguments[2]);if(Lr&&!Ir)return Rr(t,e,r);if(t===r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return ve(Tr,n,e),new(ve(Pr,t,n))}var o=r.prototype,i=kr(ft(o)?o:Cr),u=ve(t,i,e);return ft(u)?u:i}});var Fr=N.Reflect.construct,Br=e(r((function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}))),Hr=he.f;xr({target:"Object",stat:!0,forced:Object.defineProperty!==Hr,sham:!Bt},{defineProperty:Hr});var Nr=r((function(t){var e=N.Object,r=t.exports=function(t,r,n){return e.defineProperty(t,r,n)};e.defineProperty.sham&&(r.sham=!0)})),$r=Nr,Dr=$r,Gr=Dr,Kr=Array.isArray||function(t){return"Array"===S(t)},zr=TypeError,qr=Kr,Xr=Ct("species"),Yr=Array,Ur=function(t){var e;return qr(t)&&(e=t.constructor,(qe(e)&&(e===Yr||qr(e.prototype))||ft(e)&&null===(e=e[Xr]))&&(e=void 0)),void 0===e?Yr:e},Wr=Ct("species"),Vr=function(t){if(t>9007199254740991)throw zr("Maximum allowed index exceeded");return t},Jr=function(t,e,r){Bt?he.f(t,e,Dt(0,r)):t[e]=r},Qr=function(t,e){return new(Ur(t))(0===e?0:e)},Zr=function(t){return U>=51||!c((function(){var e=[];return(e.constructor={})[Wr]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},tn=Ct("isConcatSpreadable"),en=U>=51||!c((function(){var t=[];return t[tn]=!1,t.concat()[0]!==t})),rn=function(t){if(!ft(t))return!1;var e=t[tn];return void 0!==e?!!e:qr(t)},nn=!en||!Zr("concat");xr({target:"Array",proto:!0,arity:1,forced:nn},{concat:function(t){var e,r,n,o,i,u=dt(this),a=Qr(u,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(rn(i=-1===e?u:arguments[e]))for(o=rr(i),Vr(c+o),r=0;r<o;r++,c++)r in i&&Jr(a,c,i[r]);else Vr(c+1),Jr(a,c++,i);return a.length=c,a}});var on,un,an,cn=Object.freeze({__proto__:null}),fn=String,ln=fr.concat("length","prototype"),sn={f:Object.getOwnPropertyNames||function(t){return cr(t,ln)}},pn=sn.f,hn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vn={f:function(t){return hn&&"Window"===S(t)?function(t){try{return pn(t)}catch(t){return Oe(hn)}}(t):pn(Gt(t))}},yn={f:Object.getOwnPropertySymbols},dn={f:Ct},gn=he.f,mn=function(t,e,r,n){return n&&n.enumerable?t[e]=r:me(t,e,r),t},bn=Ae?{}.toString:function(){return"[object "+Me(this)+"]"},wn=he.f,On=Ct("toStringTag"),Sn=$.WeakMap,_n=H(Sn)&&/native code/.test(String(Sn)),En="Object already initialized",jn=$.TypeError,xn=$.WeakMap;if(_n||vt.state){var Pn=vt.state||(vt.state=new xn);Pn.get=Pn.get,Pn.has=Pn.has,Pn.set=Pn.set,on=function(t,e){if(Pn.has(t))throw new jn(En);return e.facade=t,Pn.set(t,e),e},un=function(t){return Pn.get(t)||{}},an=function(t){return Pn.has(t)}}else{var An=gr("state");ir[An]=!0,on=function(t,e){if(_t(t,An))throw new jn(En);return e.facade=t,me(t,An,e),e},un=function(t){return _t(t,An)?t[An]:{}},an=function(t){return _t(t,An)}}var kn={set:on,get:un,has:an,enforce:function(t){return an(t)?un(t):on(t,{})},getterFor:function(t){return function(e){var r;if(!ft(e)||(r=un(e)).type!==t)throw new jn("Incompatible receiver, "+t+" required");return r}}},Rn=b([].push),Cn=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,f,l,s){for(var p,h,v=dt(c),y=F(v),d=rr(y),g=ge(f,l),m=0,b=s||Qr,w=e?b(c,d):r||u?b(c,0):void 0;d>m;m++)if((a||m in y)&&(h=g(p=y[m],m,v),t))if(e)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:Rn(w,p)}else switch(t){case 4:return!1;case 7:Rn(w,p)}return i?-1:n||o?o:w}},Tn={forEach:Cn(0),map:Cn(1),filter:Cn(2),some:Cn(3),every:Cn(4),find:Cn(5),findIndex:Cn(6),filterReject:Cn(7)},In=function(t){if("Symbol"===Me(t))throw new TypeError("Cannot convert a Symbol value to a string");return fn(t)},Ln=vn,Mn=yn,Fn=function(t,e,r){return he.f(t,e,r)},Bn=function(t){var e=N.Symbol||(N.Symbol={});_t(e,t)||gn(e,t,{value:dn.f(t)})},Hn=function(){var t=Z("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=Ct("toPrimitive");e&&!e[n]&&mn(e,n,(function(t){return ct(r,this)}),{arity:1})},Nn=function(t,e,r,n){var o=r?t:t&&t.prototype;o&&(_t(o,On)||wn(o,On,{configurable:!0,value:e}),n&&!Ae&&me(o,"toString",bn))},$n=kn,Dn=Tn,Gn=Dn.forEach,Kn=gr("hidden"),zn="Symbol",qn="prototype",Xn=$n.set,Yn=$n.getterFor(zn),Un=Object[qn],Wn=$.Symbol,Vn=Wn&&Wn[qn],Jn=$.RangeError,Qn=$.TypeError,Zn=$.QObject,to=ye.f,eo=he.f,ro=Ln.f,no=$t.f,oo=b([].push),io=St("symbols"),uo=St("op-symbols"),ao=St("wks"),co=!Zn||!Zn[qn]||!Zn[qn].findChild,fo=function(t,e,r){var n=to(Un,e);n&&delete Un[e],eo(t,e,r),n&&t!==Un&&eo(Un,e,n)},lo=Bt&&c((function(){return 7!==kr(eo({},"a",{get:function(){return eo(this,"a",{value:7}).a}})).a}))?fo:eo,so=function(t,e){var r=io[t]=kr(Vn);return Xn(r,{type:zn,tag:t,description:e}),Bt||(r.description=e),r},po=function(t,e,r){t===Un&&po(uo,e,r),ue(t);var n=Kt(e);return ue(r),_t(io,n)?(r.enumerable?(_t(t,Kn)&&t[Kn][n]&&(t[Kn][n]=!1),r=kr(r,{enumerable:Dt(0,!1)})):(_t(t,Kn)||eo(t,Kn,Dt(1,kr(null))),t[Kn][n]=!0),lo(t,n,r)):eo(t,n,r)},ho=function(t,e){ue(t);var r=Gt(e),n=lr(r).concat(mo(r));return Gn(n,(function(e){Bt&&!ct(vo,r,e)||po(t,e,r[e])})),t},vo=function(t){var e=Kt(t),r=ct(no,this,e);return!(this===Un&&_t(io,e)&&!_t(uo,e))&&(!(r||!_t(this,e)||!_t(io,e)||_t(this,Kn)&&this[Kn][e])||r)},yo=function(t,e){var r=Gt(t),n=Kt(e);if(r!==Un||!_t(io,n)||_t(uo,n)){var o=to(r,n);return!o||!_t(io,n)||_t(r,Kn)&&r[Kn][n]||(o.enumerable=!0),o}},go=function(t){var e=ro(Gt(t)),r=[];return Gn(e,(function(t){_t(io,t)||_t(ir,t)||oo(r,t)})),r},mo=function(t){var e=t===Un,r=ro(e?uo:Gt(t)),n=[];return Gn(r,(function(t){!_t(io,t)||e&&!_t(Un,t)||oo(n,io[t])})),n};J||(Wn=function(){if(tt(Vn,this))throw new Qn("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?In(arguments[0]):void 0,e=Et(t),r=function(t){var n=void 0===this?$:this;n===Un&&ct(r,uo,t),_t(n,Kn)&&_t(n[Kn],e)&&(n[Kn][e]=!1);var o=Dt(1,t);try{lo(n,e,o)}catch(t){if(!(t instanceof Jn))throw t;fo(n,e,o)}};return Bt&&co&&lo(Un,e,{configurable:!0,set:r}),so(e,t)},Vn=Wn[qn],mn(Vn,"toString",(function(){return Yn(this).tag})),mn(Wn,"withoutSetter",(function(t){return so(Et(t),t)})),$t.f=vo,he.f=po,yr.f=ho,ye.f=yo,sn.f=Ln.f=go,Mn.f=mo,dn.f=function(t){return so(Ct(t),t)},Bt&&Fn(Vn,"description",{configurable:!0,get:function(){return Yn(this).description}})),xr({global:!0,constructor:!0,wrap:!0,forced:!J,sham:!J},{Symbol:Wn}),Gn(lr(ao),(function(t){Bn(t)})),xr({target:zn,stat:!0,forced:!J},{useSetter:function(){co=!0},useSimple:function(){co=!1}}),xr({target:"Object",stat:!0,forced:!J,sham:!Bt},{create:function(t,e){return void 0===e?kr(t):ho(kr(t),e)},defineProperty:po,defineProperties:ho,getOwnPropertyDescriptor:yo}),xr({target:"Object",stat:!0,forced:!J},{getOwnPropertyNames:go}),Hn(),Nn(Wn,zn),ir[Kn]=!0;var bo=J&&!!Symbol.for&&!!Symbol.keyFor,wo=St("string-to-symbol-registry"),Oo=St("symbol-to-string-registry");xr({target:"Symbol",stat:!0,forced:!bo},{for:function(t){var e=In(t);if(_t(wo,e))return wo[e];var r=Z("Symbol")(e);return wo[e]=r,Oo[r]=e,r}});var So=St("symbol-to-string-registry");xr({target:"Symbol",stat:!0,forced:!bo},{keyFor:function(t){if(!At(t))throw new TypeError(it(t)+" is not a symbol");if(_t(So,t))return So[t]}});var _o=b([].push),Eo=function(t){if(H(t))return t;if(qr(t)){for(var e=t.length,r=[],n=0;n<e;n++){var o=t[n];"string"==typeof o?_o(r,o):"number"!=typeof o&&"Number"!==S(o)&&"String"!==S(o)||_o(r,In(o))}var i=r.length,u=!0;return function(t,e){if(u)return u=!1,e;if(qr(this))return e;for(var n=0;n<i;n++)if(r[n]===t)return e}}},jo=String,xo=Z("JSON","stringify"),Po=b(/./.exec),Ao=b("".charAt),ko=b("".charCodeAt),Ro=b("".replace),Co=b(1..toString),To=/[\uD800-\uDFFF]/g,Io=/^[\uD800-\uDBFF]$/,Lo=/^[\uDC00-\uDFFF]$/,Mo=!J||c((function(){var t=Z("Symbol")("stringify detection");return"[null]"!==xo([t])||"{}"!==xo({a:t})||"{}"!==xo(Object(t))})),Fo=c((function(){return'"\\udf06\\ud834"'!==xo("\udf06\ud834")||'"\\udead"'!==xo("\udead")})),Bo=function(t,e){var r=Oe(arguments),n=Eo(e);if(H(n)||void 0!==t&&!At(t))return r[1]=function(t,e){if(H(n)&&(e=ct(n,this,jo(t),e)),!At(e))return e},ve(xo,null,r)},Ho=function(t,e,r){var n=Ao(r,e-1),o=Ao(r,e+1);return Po(Io,t)&&!Po(Lo,o)||Po(Lo,t)&&!Po(Io,n)?"\\u"+Co(ko(t,0),16):t};xo&&xr({target:"JSON",stat:!0,arity:3,forced:Mo||Fo},{stringify:function(t,e,r){var n=Oe(arguments),o=ve(Mo?Bo:xo,null,n);return Fo&&"string"==typeof o?Ro(o,To,Ho):o}});var No=!J||c((function(){Mn.f(1)}));xr({target:"Object",stat:!0,forced:No},{getOwnPropertySymbols:function(t){var e=Mn.f;return e?e(dt(t)):[]}}),Bn("asyncIterator");var $o=Object.freeze({__proto__:null});Bn("hasInstance"),Bn("isConcatSpreadable"),Bn("iterator"),Bn("match"),Bn("matchAll"),Bn("replace"),Bn("search"),Bn("species"),Bn("split"),Bn("toPrimitive"),Hn(),Bn("toStringTag"),Nn(Z("Symbol"),"Symbol"),Bn("unscopables"),Nn($.JSON,"JSON",!0);var Do=Object.freeze({__proto__:null}),Go=Object.freeze({__proto__:null});n(cn),n($o),n(Do),n(Go);var Ko,zo,qo,Xo=N.Symbol,Yo=Function.prototype,Uo=Bt&&Object.getOwnPropertyDescriptor,Wo=_t(Yo,"name"),Vo={EXISTS:Wo,PROPER:Wo&&"something"===function(){}.name,CONFIGURABLE:Wo&&(!Bt||Bt&&Uo(Yo,"name").configurable)},Jo=!c((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Qo=gr("IE_PROTO"),Zo=Object,ti=Zo.prototype,ei=Jo?Zo.getPrototypeOf:function(t){var e=dt(t);if(_t(e,Qo))return e[Qo];var r=e.constructor;return H(r)&&e instanceof r?r.prototype:e instanceof Zo?ti:null},ri=Ct("iterator"),ni=!1;[].keys&&("next"in(qo=[].keys())?(zo=ei(ei(qo)))!==Object.prototype&&(Ko=zo):ni=!0);var oi=!ft(Ko)||c((function(){var t={};return Ko[ri].call(t)!==t}));Ko=oi?{}:kr(Ko),H(Ko[ri])||mn(Ko,ri,(function(){return this}));var ii={IteratorPrototype:Ko,BUGGY_SAFARI_ITERATORS:ni},ui={},ai=ii.IteratorPrototype,ci=function(){return this},fi=function(t){return ft(t)||null===t},li=String,si=TypeError,pi=function(t,e,r){try{return b(at(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},hi=function(t){if(fi(t))return t;throw new si("Can't set "+li(t)+" as a prototype")},vi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=pi(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return B(r),hi(n),ft(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),yi=Vo,di=function(t,e,r,n){var o=e+" Iterator";return t.prototype=kr(ai,{next:Dt(+!n,r)}),Nn(t,o,!1,!0),ui[o]=ci,t},gi=vi,mi=yi.PROPER,bi=ii.BUGGY_SAFARI_ITERATORS,wi=Ct("iterator"),Oi="keys",Si="values",_i="entries",Ei=function(){return this},ji=function(){},xi=function(t,e,r,n,o,i,u){di(r,e,n);var a,c,f,l=function(t){if(t===o&&y)return y;if(!bi&&t&&t in h)return h[t];switch(t){case Oi:case Si:case _i:return function(){return new r(this,t)}}return function(){return new r(this)}},s=e+" Iterator",p=!1,h=t.prototype,v=h[wi]||h["@@iterator"]||o&&h[o],y=!bi&&v||l(o),d="Array"===e&&h.entries||v;if(d&&(a=ei(d.call(new t)))!==Object.prototype&&a.next&&(Nn(a,s,!0,!0),ui[s]=Ei),mi&&o===Si&&v&&v.name!==Si&&(p=!0,y=function(){return ct(v,this)}),o)if(c={values:l(Si),keys:i?y:l(Oi),entries:l(_i)},u)for(f in c)(bi||p||!(f in h))&&mn(h,f,c[f]);else xr({target:e,proto:!0,forced:bi||p},c);return u&&h[wi]!==y&&mn(h,wi,y,{name:o}),ui[e]=y,c},Pi=function(t,e){return{value:t,done:e}},Ai=(he.f,"Array Iterator"),ki=$n.set,Ri=$n.getterFor(Ai);xi(Array,"Array",(function(t,e){ki(this,{type:Ai,target:Gt(t),index:0,kind:e})}),(function(){var t=Ri(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,Pi(void 0,!0);switch(t.kind){case"keys":return Pi(r,!1);case"values":return Pi(e[r],!1)}return Pi([r,e[r]],!1)}),"values");ui.Arguments=ui.Array;ji(),ji(),ji();var Ci={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};for(var Ti in Ci)Nn($[Ti],Ti),ui[Ti]=ui.Array;var Ii=Xo,Li=he.f,Mi=Ct("metadata"),Fi=Function.prototype;void 0===Fi[Mi]&&Li(Fi,Mi,{value:null}),Bn("asyncDispose"),Bn("dispose"),Bn("metadata");var Bi=Ii,Hi=Z("Symbol"),Ni=Hi.keyFor,$i=b(Hi.prototype.valueOf),Di=Hi.isRegisteredSymbol||function(t){try{return void 0!==Ni($i(t))}catch(t){return!1}};xr({target:"Symbol",stat:!0},{isRegisteredSymbol:Di});for(var Gi=Z("Symbol"),Ki=Gi.isWellKnownSymbol,zi=Z("Object","getOwnPropertyNames"),qi=b(Gi.prototype.valueOf),Xi=St("wks"),Yi=0,Ui=zi(Gi),Wi=Ui.length;Yi<Wi;Yi++)try{var Vi=Ui[Yi];At(Gi[Vi])&&Ct(Vi)}catch(t){}var Ji=function(t){if(Ki&&Ki(t))return!0;try{for(var e=qi(t),r=0,n=zi(Xi),o=n.length;r<o;r++)if(Xi[n[r]]==e)return!0}catch(t){}return!1};xr({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Ji}),Bn("customMatcher"),Bn("observable"),xr({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Di}),xr({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Ji}),Bn("matcher"),Bn("metadataKey"),Bn("patternMatch"),Bn("replaceAll");var Qi=Bi,Zi=Qi,tu=b("".charAt),eu=b("".charCodeAt),ru=b("".slice),nu=function(t){return function(e,r){var n,o,i=In(B(e)),u=Ve(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=eu(i,u))<55296||n>56319||u+1===a||(o=eu(i,u+1))<56320||o>57343?t?tu(i,u):n:t?ru(i,u,u+2):o-56320+(n-55296<<10)+65536}},ou={codeAt:nu(!1),charAt:nu(!0)}.charAt,iu="String Iterator",uu=$n.set,au=$n.getterFor(iu);xi(String,"String",(function(t){uu(this,{type:iu,string:In(t),index:0})}),(function(){var t,e=au(this),r=e.string,n=e.index;return n>=r.length?Pi(void 0,!0):(t=ou(r,n),e.index+=t.length,Pi(t,!1))}));var cu=dn.f("iterator"),fu=Qi,lu=cu,su=r((function(t){function e(r){return t.exports=e="function"==typeof fu&&"symbol"==typeof lu?function(t){return typeof t}:function(t){return t&&"function"==typeof fu&&t.constructor===fu&&t!==fu.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}));e(su),n(Object.freeze({__proto__:null}));var pu=dn.f("toPrimitive"),hu=pu,vu=r((function(t){var e=su.default;t.exports=function(t,r){if("object"!=e(t)||!t)return t;var n=t[hu];if(void 0!==n){var o=n.call(t,r||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}));e(vu);var yu=r((function(t){var e=su.default;t.exports=function(t){var r=vu(t,"string");return"symbol"==e(r)?r:r+""},t.exports.__esModule=!0,t.exports.default=t.exports}));e(yu);var du=r((function(t){function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Dr(t,yu(n.key),n)}}t.exports=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),Dr(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports})),gu=e(du),mu=r((function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}));e(mu);var bu=r((function(t){var e=su.default;t.exports=function(t,r){if(r&&("object"==e(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return mu(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),wu=e(bu);xr({target:"Object",stat:!0},{setPrototypeOf:gi});var Ou=N.Object.setPrototypeOf,Su=Ou;xr({target:"Function",proto:!0,forced:Function.bind!==Pr},{bind:Pr});var _u=function(t,e){var r=N[t+"Prototype"],n=r&&r[e];if(n)return n;var o=$[t],i=o&&o.prototype;return i&&i[e]},Eu=_u("Function","bind"),ju=Function.prototype,xu=function(t){var e=t.bind;return t===ju||tt(ju,t)&&e===ju.bind?Eu:e},Pu=xu,Au=c((function(){ei(1)}));xr({target:"Object",stat:!0,forced:Au,sham:!Jo},{getPrototypeOf:function(t){return ei(dt(t))}});var ku=N.Object.getPrototypeOf,Ru=Ou,Cu=xu,Tu=ku,Iu=r((function(t){function e(r){var n;return t.exports=e=Ru?Cu(n=Tu).call(n):function(t){return t.__proto__||Tu(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),Lu=e(Iu);xr({target:"Object",stat:!0,sham:!Bt},{create:kr});var Mu=N.Object,Fu=function(t,e){return Mu.create(t,e)},Bu=Fu,Hu=r((function(t){function e(r,n){var o;return t.exports=e=Ru?Cu(o=Ru).call(o):function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}));e(Hu);var Nu=Fu,$u=e(r((function(t){t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Nu(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Dr(t,"prototype",{writable:!1}),e&&Hu(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports}))),Du=e(r((function(t){t.exports=function(t,e,r){return(e=yu(e))in t?Dr(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports}))),Gu=_u("Array","concat"),Ku=Array.prototype,zu=function(t){var e=t.concat;return t===Ku||tt(Ku,t)&&e===Ku.concat?Gu:e};function qu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xu(t){return Xu="function"==typeof Zi&&"symbol"==typeof cu?function(t){return typeof t}:function(t){return t&&"function"==typeof Zi&&t.constructor===Zi&&t!==Zi.prototype?"symbol":typeof t},Xu(t)}function Yu(t){var e=function(t,e){if("object"!=Xu(t)||!t)return t;var r=t[pu];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Xu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Xu(e)?e:e+""}function Uu(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Gr(t,Yu(n.key),n)}}function Wu(t,e,r){return e&&Uu(t.prototype,e),r&&Uu(t,r),Gr(t,"prototype",{writable:!1}),t}function Vu(t,e){if(e&&("object"==Xu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Ju(t){var e;return Ju=Su?Pu(e=ku).call(e):function(t){return t.__proto__||ku(t)},Ju(t)}function Qu(t,e){var r;return Qu=Su?Pu(r=Su).call(r):function(t,e){return t.__proto__=e,t},Qu(t,e)}function Zu(t,e,r){return(e=Yu(e))in t?Gr(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ta=Dn.filter,ea=Zr("filter");xr({target:"Array",proto:!0,forced:!ea},{filter:function(t){return ta(this,t,arguments.length>1?arguments[1]:void 0)}});var ra=_u("Array","filter"),na=Array.prototype,oa=function(t){var e=t.filter;return t===na||tt(na,t)&&e===na.filter?ra:e},ia=Dn.map,ua=Zr("map");xr({target:"Array",proto:!0,forced:!ua},{map:function(t){return ia(this,t,arguments.length>1?arguments[1]:void 0)}});var aa=_u("Array","map"),ca=Array.prototype,fa=function(t){var e=t.map;return t===ca||tt(ca,t)&&e===ca.map?aa:e},la="\t\n\v\f\r \u2028\u2029\ufeff",sa=b("".replace),pa=RegExp("^["+la+"]+"),ha=RegExp("(^|[^"+la+"])["+la+"]+$"),va=function(t){return function(e){var r=In(B(e));return 1&t&&(r=sa(r,pa,"")),2&t&&(r=sa(r,ha,"$1")),r}},ya={start:va(1),end:va(2),trim:va(3)},da=yi.PROPER,ga=ya,ma=ga.trim;xr({target:"String",proto:!0,forced:function(t){return c((function(){return!!la[t]()||"
"!=="
"[t]()||da&&la[t].name!==t}))}("trim")},{trim:function(){return ma(this)}});var ba=_u("String","trim"),wa=String.prototype,Oa=function(t){var e=t.trim;return"string"==typeof t||t===wa||tt(wa,t)&&e===wa.trim?ba:e},Sa=ga.trim,_a=$.parseInt,Ea=$.Symbol,ja=Ea&&Ea.iterator,xa=/^[+-]?0x/i,Pa=b(xa.exec),Aa=8!==_a(la+"08")||22!==_a(la+"0x16")||ja&&!c((function(){_a(Object(ja))}))?function(t,e){var r=Sa(In(t));return _a(r,e>>>0||(Pa(xa,r)?16:10))}:_a;xr({global:!0,forced:parseInt!==Aa},{parseInt:Aa});var ka=N.parseInt,Ra="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Ca=TypeError,Ta=Ra,Ia=function(t,e){if(t<e)throw new Ca("Not enough arguments");return t},La=$.Function,Ma=/MSIE .\./.test(K)||Ta&&function(){var t=$.Bun.version.split(".");return t.length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2])}(),Fa=function(t,e){var r=e?2:1;return Ma?function(n,o){var i=Ia(arguments.length,1)>r,u=H(n)?n:La(n),a=i?Oe(arguments,r):[],c=i?function(){ve(u,this,a)}:u;return e?t(c,o):t(c)}:t},Ba=Fa($.setInterval,!0);xr({global:!0,bind:!0,forced:$.setInterval!==Ba},{setInterval:Ba});var Ha=Fa($.setTimeout,!0);xr({global:!0,bind:!0,forced:$.setTimeout!==Ha},{setTimeout:Ha});var Na=N.setTimeout,$a=!1,Da="paragraph",Ga="sentence",Ka=function(){return Wu((function t(e){qu(this,t),Zu(this,"$engine",void 0),Zu(this,"$locale",void 0),this.RULE=this.rule(e)}),[{key:"getType",value:function(){return this.constructor.HOOK_TYPE||Ga}},{key:"getName",value:function(){return this.constructor.HOOK_NAME}},{key:"afterInit",value:function(t){"function"==typeof t&&t()}},{key:"setLocale",value:function(t){this.$locale=t}},{key:"beforeMakeHtml",value:function(t){return t}},{key:"makeHtml",value:function(t){return t}},{key:"afterMakeHtml",value:function(t){return t}},{key:"onKeyDown",value:function(t,e){}},{key:"getOnKeyDown",value:function(){return this.onKeyDown||!1}},{key:"getAttributesTest",value:function(){return/^(color|fontSize|font-size|id|title|class|target|underline|line-through|overline|sub|super)$/}},{key:"$testAttributes",value:function(t,e){this.getAttributesTest().test(t)&&e()}},{key:"getAttributes",value:function(t){return{attrs:{},str:t}}},{key:"test",value:function(t){return!!this.RULE.reg&&this.RULE.reg.test(t)}},{key:"rule",value:function(t){return{begin:"",end:"",content:"",reg:new RegExp("")}}},{key:"mounted",value:function(){}}],[{key:"getMathJaxConfig",value:function(){return $a}},{key:"setMathJaxConfig",value:function(t){$a=t}}])}();Zu(Ka,"HOOK_NAME","default"),Zu(Ka,"HOOK_TYPE",Ga);var za=N.Object.getOwnPropertySymbols,qa=ye.f,Xa=!Bt||c((function(){qa(1)}));xr({target:"Object",stat:!0,forced:Xa,sham:!Bt},{getOwnPropertyDescriptor:function(t,e){return qa(Gt(t),e)}});var Ya=r((function(t){var e=N.Object,r=t.exports=function(t,r){return e.getOwnPropertyDescriptor(t,r)};e.getOwnPropertyDescriptor.sham&&(r.sham=!0)})),Ua=Ya,Wa=function(t,e){var r=[][t];return!!r&&c((function(){r.call(null,e||function(){return 1},1)}))},Va=Dn.forEach,Ja=Wa("forEach")?[].forEach:function(t){return Va(this,t,arguments.length>1?arguments[1]:void 0)};xr({target:"Array",proto:!0,forced:[].forEach!==Ja},{forEach:Ja});var Qa=_u("Array","forEach");n(Object.freeze({__proto__:null}));var Za=Array.prototype,tc={DOMTokenList:!0,NodeList:!0},ec=function(t){var e=t.forEach;return t===Za||tt(Za,t)&&e===Za.forEach||_t(tc,Me(t))?Qa:e},rc=b([].concat),nc=Z("Reflect","ownKeys")||function(t){var e=sn.f(ue(t)),r=Mn.f;return r?rc(e,r(t)):e},oc=nc;xr({target:"Object",stat:!0,sham:!Bt},{getOwnPropertyDescriptors:function(t){for(var e,r,n=Gt(t),o=ye.f,i=oc(n),u={},a=0;i.length>a;)void 0!==(r=o(n,e=i[a++]))&&Jr(u,e,r);return u}});var ic=N.Object.getOwnPropertyDescriptors,uc=yr.f;xr({target:"Object",stat:!0,forced:Object.defineProperties!==uc,sham:!Bt},{defineProperties:uc});var ac=r((function(t){var e=N.Object,r=t.exports=function(t,r){return e.defineProperties(t,r)};e.defineProperties.sham&&(r.sham=!0)})),cc=ac,fc=$r,lc=c((function(){lr(1)}));xr({target:"Object",stat:!0,forced:lc},{keys:function(t){return lr(dt(t))}});var sc,pc,hc=N.Object.keys;function vc(t,e){var r=hc(t);if(za){var n=za(t);e&&(n=oa(n).call(n,(function(e){return Ua(t,e).enumerable}))),r.push.apply(r,n)}return r}function yc(t){for(var e=1;e<arguments.length;e++){var r,n,o=null!=arguments[e]?arguments[e]:{};e%2?ec(r=vc(Object(o),!0)).call(r,(function(e){Zu(t,e,o[e])})):ic?cc(t,ic(o)):ec(n=vc(Object(o))).call(n,(function(e){fc(t,e,Ua(o,e))}))}return t}var dc=yc(yc(yc(yc(yc(yc({},{34:""",38:"&",39:"'",60:"<",62:">"}),{192:"À",193:"Á",194:"Â",195:"Ã",196:"Ä",197:"Å",198:"Æ",199:"Ç",200:"È",201:"É",202:"Ê",203:"Ë",204:"Ì",205:"Í",206:"Î",207:"Ï",208:"Ð",209:"Ñ",210:"Ò",211:"Ó",212:"Ô",213:"Õ",214:"Ö",216:"Ø",217:"Ù",218:"Ú",219:"Û",220:"Ü",221:"Ý",222:"Þ",223:"ß",224:"à",225:"á",226:"â",227:"ã",228:"ä",229:"å",230:"æ",231:"ç",232:"è",233:"é",234:"ê",235:"ë",236:"ì",237:"í",238:"î",239:"ï",240:"ð",241:"ñ",242:"ò",243:"ó",244:"ô",245:"õ",246:"ö",248:"ø",249:"ù",250:"ú",251:"û",252:"ü",253:"ý",254:"þ",255:"ÿ"}),{160:" ",161:"¡",162:"¢",163:"£",164:"¤",165:"¥",166:"¦",167:"§",168:"¨",169:"©",170:"ª",171:"«",172:"¬",173:"­",174:"®",175:"¯",176:"°",177:"±",178:"²",179:"³",180:"´",181:"µ",182:"¶",184:"¸",185:"¹",186:"º",187:"»",188:"¼",189:"½",190:"¾",191:"¿",215:"×",247:"÷"}),{8704:"∀",8706:"∂",8707:"∃",8709:"∅",8711:"∇",8712:"∈",8713:"∉",8715:"∋",8719:"∏",8721:"∑",8722:"−",8727:"∗",8730:"√",8733:"∝",8734:"∞",8736:"∠",8743:"∧",8744:"∨",8745:"∩",8746:"∪",8747:"∫",8756:"∴",8764:"∼",8773:"≅",8776:"≈",8800:"≠",8801:"≡",8804:"≤",8805:"≥",8834:"⊂",8835:"⊃",8836:"⊄",8838:"⊆",8839:"⊇",8853:"⊕",8855:"⊗",8869:"⊥",8901:"⋅"}),{913:"Α",914:"Β",915:"Γ",916:"Δ",917:"Ε",918:"Ζ",919:"Η",920:"Θ",921:"Ι",922:"Κ",923:"Λ",924:"Μ",925:"Ν",926:"Ξ",927:"Ο",928:"Π",929:"Ρ",931:"Σ",932:"Τ",933:"Υ",934:"Φ",935:"Χ",936:"Ψ",937:"Ω",945:"α",946:"β",947:"γ",948:"δ",949:"ε",950:"ζ",951:"η",952:"θ",953:"ι",954:"κ",955:"λ",956:"μ",957:"ν",958:"ξ",959:"ο",960:"π",961:"ρ",962:"ς",963:"σ",964:"τ",965:"υ",966:"φ",967:"χ",968:"ψ",969:"ω",977:"ϑ",978:"ϒ",982:"ϖ"}),{338:"Œ",339:"œ",352:"Š",353:"š",376:"Ÿ",402:"ƒ",710:"ˆ",732:"˜",8194:" ",8195:" ",8201:" ",8204:"‌",8205:"‍",8206:"‎",8207:"‏",8211:"–",8212:"—",8216:"‘",8217:"’",8218:"‚",8220:"“",8221:"”",8222:"„",8224:"†",8225:"‡",8226:"•",8230:"…",8240:"‰",8242:"′",8243:"″",8249:"‹",8250:"›",8254:"‾",8364:"€",8482:"™",8592:"←",8593:"↑",8594:"→",8595:"↓",8596:"↔",8629:"↵",8968:"⌈",8969:"⌉",8970:"⌊",8971:"⌋",9674:"◊",9824:"♠",9827:"♣",9829:"♥",9830:"♦"}),gc=hc(dc);fa(gc).call(gc,(function(t){return dc[t].replace(/^&(\w+);$/g,(function(t,e){return e.toLowerCase()}))}));var mc=["h1|h2|h3|h4|h5|h6","ul|ol|li|dd|dl|dt","table|thead|tbody|tfoot|col|colgroup|th|td|tr","div|article|section|footer|aside|details|summary|code|audio|video|canvas|figure","address|center|cite|p|pre|blockquote|marquee|caption|figcaption|track|source|output|svg"].join("|"),bc=["span|a|link|b|s|i|del|u|em|strong|sup|sub|kbd","nav|font|bdi|samp|map|area|small|time|bdo|var|wbr|meter|dfn","ruby|rt|rp|mark|q|progress|input|textarea|select|ins"].join("|");function wc(t,e,r){return e=Ju(e),Vu(t,Oc()?Fr(e,r||[],Ju(t).constructor):e.apply(t,r))}function Oc(){try{var t=!Boolean.prototype.valueOf.call(Fr(Boolean,[],(function(){})))}catch(t){}return(Oc=function(){return!!t})()}new RegExp(zu(sc=zu(pc="^(".concat(mc,"|")).call(pc,bc,"|")).call(sc,"br|img|hr",")( |$|/)"),"i");var Sc=0,_c=function(t){function e(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{needCache:!1},n=r.needCache,o=r.defaultCache,i=void 0===o?{}:o;return qu(this,e),(t=wc(this,e,[{}])).needCache=!!n,t.sign="",n&&(t.cache=i||{},t.cacheKey="~~C".concat(Sc),Sc+=1),t.failedResetCacheTimes=0,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Bu(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Gr(t,"prototype",{writable:!1}),e&&Qu(t,e)}(e,t),Wu(e,[{key:"initBrReg",value:function(){var t,e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.classicBr=(e="classicBr","undefined"!=typeof localStorage&&null!==localStorage.getItem("cherry-".concat(e))?(t="false","undefined"!=typeof localStorage&&(t=localStorage.getItem("cherry-classicBr")),"true"===t):r),this.removeBrAfterBlock=null,this.removeBrBeforeBlock=null,this.removeNewlinesBetweenTags=null}},{key:"$cleanParagraph",value:function(t){var e=t.replace(/^\n+/,"").replace(/\n+$/,"");return this.classicBr?e:this.joinRawHtml(e).replace(/\n/g,"<br>").replace(/\r/g,"\n")}},{key:"joinRawHtml",value:function(t){if(!this.removeBrAfterBlock){var e,r,n,o,i=null!==(e=null===(r=this.$engine.htmlWhiteListAppend)||void 0===r?void 0:r.split("|"))&&void 0!==e?e:[];i=oa(n=fa(i).call(i,(function(t){return/[a-z-]+/gi.test(t)?t:null}))).call(n,(function(t){return null!==t}));var u=zu(i).call(i,mc).join("|");this.removeBrAfterBlock=new RegExp("<(".concat(u,")(>| [^>]*?>)[^\\S\\n]*?\\n"),"ig"),this.removeBrBeforeBlock=new RegExp("\\n[^\\S\\n]*?<\\/(".concat(u,")>[^\\S\\n]*?\\n"),"ig"),this.removeNewlinesBetweenTags=new RegExp(zu(o="<\\/(".concat(u,")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(o,u,")(>| [^>]*?>)"),"ig")}return t.replace(this.removeBrAfterBlock,"<$1$2").replace(this.removeBrBeforeBlock,"</$1>").replace(this.removeNewlinesBetweenTags,"</$1>\r$2<$3$4")}},{key:"toHtml",value:function(t,e){return t}},{key:"makeHtml",value:function(t,e){return e(t).html}},{key:"afterMakeHtml",value:function(t){return this.restoreCache(t)}},{key:"isContainsCache",value:function(t,r){if(r){var n=/^(\s*~~C\d+I\w+\$\s*)+$/g.test(t),o=new RegExp("~~C\\d+I".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,"\\w+\\$"),"g").test(t);return n&&!o}return new RegExp("~~C\\d+I(?!".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$"),"g").test(t)}},{key:"$splitHtmlByCache",value:function(t){var r=new RegExp("\\n*~~C\\d+I(?!".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$\\n?"),"g");return{caches:t.match(r),contents:t.split(r)}}},{key:"makeExcludingCached",value:function(t,e){for(var r=this.$splitHtmlByCache(t),n=r.caches,o=r.contents,i=fa(o).call(o,e),u="",a=0;a<i.length;a++){var c;if(u+=i[a],n&&n[a])u+=Oa(c=n[a]).call(c)}return u}},{key:"getCacheWithSpace",value:function(t,e){var r,n,o,i,u,a,c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=null!==(r=null===(n=e.match(/^\n+/))||void 0===n?void 0:n[0])&&void 0!==r?r:"",l=null!==(o=null===(i=e.match(/\n+$/))||void 0===i?void 0:i[0])&&void 0!==o?o:"";return c?function(t,e){var r,n,o,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return/^\n/.test(t)?i?(null!==(r=null===(n=t.match(/^\n+/g))||void 0===n||null===(o=n[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0)>1?"\n\n".concat(e):"\n".concat(e):"\n\n".concat(e):e}(e,t):zu(u=zu(a="".concat(f)).call(a,t)).call(u,l)}},{key:"getLineCount",value:function(t){var r,n,o,i=t,u=null!==(r=null===(n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").match(/^\n+/g))||void 0===n||null===(o=n[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0;u=1===u?1:0,i=i.replace(/^\n+/g,"");var a=new RegExp("\n*~~C\\d+I(?:".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+?_L(\\d+)\\$"),"g"),c=0;return i=i.replace(a,(function(t,e){return c+=ka(e,10),t.replace(/^\n+/g,"")})),u+c+(i.match(/\n/g)||[]).length+1}},{key:"pushCache",value:function(t){var e,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.needCache){var i=n||this.$engine.hash(t),u=zu(e=zu(r="".concat(this.cacheKey,"I")).call(r,i,"_L")).call(e,o,"$");return this.cache[i]={content:t,key:u},u}}},{key:"popCache",value:function(t){if(this.needCache)return this.cache[t].content||""}},{key:"testHasCache",value:function(t){return!(!this.needCache||!this.cache[t])&&this.cache[t].key}},{key:"resetCache",value:function(){this.needCache&&(this.cache={})}},{key:"restoreCache",value:function(t){var r,n=this;if(!this.needCache)return t;var o=new RegExp(zu(r="".concat(this.cacheKey,"I((?:")).call(r,e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+)\\$"),"g"),i=t.replace(o,(function(t,e){return n.popCache(e.replace(/_L\d+$/,""))}));return this.timer&&(clearTimeout(this.timer),this.failedResetCacheTimes+=1,this.timer=null),this.timer=Na((function(){n.resetCache()}),500),this.failedResetCacheTimes>5&&(this.failedResetCacheTimes=0,Na((function(){n.resetCache()}),500)),i}},{key:"checkCache",value:function(t,e){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.sign=this.$engine.hash(t),this.cache[this.sign]?zu(r=zu(n="".concat(this.cacheKey,"I")).call(n,this.sign,"_L")).call(r,o,"$"):this.toHtml(t,e)}},{key:"mounted",value:function(){}},{key:"signWithCache",value:function(t){return!1}}])}(Ka);function Ec(t,e,r){return e=Lu(e),wu(t,jc()?Fr(e,r||[],Lu(t).constructor):e.apply(t,r))}function jc(){try{var t=!Boolean.prototype.valueOf.call(Fr(Boolean,[],(function(){})))}catch(t){}return(jc=function(){return!!t})()}Zu(_c,"HOOK_TYPE",Da),Zu(_c,"IN_PARAGRAPH_CACHE_KEY_PREFIX","!"),Zu(_c,"IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX","\\!");var xc=function(t){function e(){return Br(this,e),Ec(this,e,[{needCache:!0}])}return $u(e,t),gu(e,[{key:"makeHtml",value:function(t,e){var r=this;return t.replace(this.RULE.reg,(function(t){var n,o,i=t.split(/[\r\n]/).length,u=t.replace("[html]","").replace("[/html]","").replace(/[\r\n]/g,"").replace(/</g,"<").replace(/>/g,">").replace('style="LAYOUT-GRID','style="');u=r._trimScripTag(u);var a=e(u);return zu(n=zu(o='<div data-lines="'.concat(i,'" data-sign="')).call(o,a.sign,'">')).call(n,u,"</div>")}))}},{key:"rule",value:function(){return{reg:/\[html\]([\s\S]*?)\[\/html\]/g}}},{key:"_trimScripTag",value:function(t){return t.replace(/(<(?:script|script\s[^>]*)>)([\s\S]*?)(<\/script>)/gi,"").replace(/(<iframe [^>]*>)|(<\/iframe>)/gi,"")}}])}(_c);return Du(xc,"HOOK_NAME","tapdHtmlTag"),xc}));
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [TAPD](https://tapd.cn)的简单表格语法
|
|
3
|
+
* 该表格语法不是markdown通用的表格语法,请谨慎使用
|
|
4
|
+
* 该简单表格语法特点:
|
|
5
|
+
* 1、轻量,不需要强制指定表头和对齐方式
|
|
6
|
+
* 2、支持单元格合并,打开合并开关后,多个连续相同的cell会自动进行单元格合并
|
|
7
|
+
* 例子:
|
|
8
|
+
* 带标题:
|
|
9
|
+
* ||~项目 ||~价格(居中)~ ||数量(右对齐)~ ||
|
|
10
|
+
* || 计算机 <br >(包括笔记本) || $1600 || 5 ||
|
|
11
|
+
* || 手机 || $12 || 5 ||
|
|
12
|
+
* || 管线 || $1 || 5 ||
|
|
13
|
+
* 不带标题:
|
|
14
|
+
* || 计算机 <br >(包括笔记本) || $1600 || 5 ||
|
|
15
|
+
* || 手机 || $12 || 5 ||
|
|
16
|
+
* || 管线 || $1 || 5 ||
|
|
17
|
+
* 自动合并:
|
|
18
|
+
* |||~项目 ||价格 ||数量 ||
|
|
19
|
+
* || 计算机 || $3600(高配) || 20 ||
|
|
20
|
+
* || 笔记本 || $2600(中配) || 30 ||
|
|
21
|
+
* || 笔记本 || $1600(低配) || 40 ||
|
|
22
|
+
* || 总计 || $214000 || 90 ||
|
|
23
|
+
*/
|
|
24
|
+
export default class TapdTablePlugin {
|
|
25
|
+
static HOOK_NAME: string;
|
|
26
|
+
cacheMap: {};
|
|
27
|
+
sentenceMakeFunc: any;
|
|
28
|
+
/**
|
|
29
|
+
* 根据当前坐标,获取同一行下一列的坐标
|
|
30
|
+
* @param {string} key 坐标,数据格式为:行坐标-列坐标;也可以理解为 tr.num-td.num
|
|
31
|
+
* @returns {string} 新坐标
|
|
32
|
+
*/
|
|
33
|
+
$nextTdKey(key: string): string;
|
|
34
|
+
/**
|
|
35
|
+
* 根据当前坐标,获取同一行上一列的坐标
|
|
36
|
+
* @param {string} key 坐标,数据格式为:行坐标-列坐标;也可以理解为 tr.num-td.num
|
|
37
|
+
* @returns {string} 新坐标
|
|
38
|
+
*/
|
|
39
|
+
$prevTdKey(key: string): string;
|
|
40
|
+
/**
|
|
41
|
+
* 根据当前坐标,获取同一列下一行的坐标
|
|
42
|
+
* @param {string} key 坐标,数据格式为:行坐标-列坐标;也可以理解为 tr.num-td.num
|
|
43
|
+
* @returns {string} 新坐标
|
|
44
|
+
*/
|
|
45
|
+
$nextTrKey(key: string): string;
|
|
46
|
+
/**
|
|
47
|
+
* 根据当前坐标,获取同一列上一行的坐标
|
|
48
|
+
* @param {string} key 坐标,数据格式为:行坐标-列坐标;也可以理解为 tr.num-td.num
|
|
49
|
+
* @returns {string} 新坐标
|
|
50
|
+
*/
|
|
51
|
+
$prevTrKey(key: string): string;
|
|
52
|
+
/**
|
|
53
|
+
* 设置每一个cell的colspan属性
|
|
54
|
+
* @param {Object} map 存储每一个cell对应的rowspan和colspan值
|
|
55
|
+
* @param {string} key 坐标,数据格式为:行坐标-列坐标;也可以理解为 tr.num-td.num
|
|
56
|
+
* @returns {Object} map
|
|
57
|
+
*/
|
|
58
|
+
$setColMapVal(map: any, key: string): any;
|
|
59
|
+
/**
|
|
60
|
+
* 设置每一个cell的rowspan属性
|
|
61
|
+
* @param {Object} map 存储每一个cell对应的rowspan和colspan值
|
|
62
|
+
* @param {string} key 坐标,数据格式为:行坐标-列坐标;也可以理解为 tr.num-td.num
|
|
63
|
+
* @returns {Object} map
|
|
64
|
+
*/
|
|
65
|
+
$setRowMapVal(map: any, key: string): any;
|
|
66
|
+
$dealColSpan(trIndex: any, tdIndex: any, tr: any, spanMap: any): any;
|
|
67
|
+
$dealRowSpan(trIndex: any, tdIndex: any, trs: any, spanMap: any): any;
|
|
68
|
+
$getSpanKey(trIndex: any, tdIndex: any): string;
|
|
69
|
+
$getColAndRowSpanMap(trs: any): {};
|
|
70
|
+
$convertTrsString2Array(trs: any): any;
|
|
71
|
+
$isMeerged(span: any, key: any): boolean;
|
|
72
|
+
$getTdSpan(spanMap: any, key: any): string;
|
|
73
|
+
$dealTh(oneTh: any): {
|
|
74
|
+
style: string;
|
|
75
|
+
content: string;
|
|
76
|
+
};
|
|
77
|
+
makeHtml(html: any, sentenceMakeFunc: any): any;
|
|
78
|
+
rule(): {};
|
|
79
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).CherryTapdTablePlugin=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}function n(t){return t&&t.default||t}var o,i,a=function(t){return t&&t.Math===Math&&t},u=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||a("object"==typeof t&&t)||function(){return this}()||Function("return this")(),c=function(t){try{return!!t()}catch(t){return!0}},l=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=l,s=Function.prototype,p=s.apply,v=s.call,y="object"==typeof Reflect&&Reflect.apply||(f?v.bind(p):function(){return v.apply(p,arguments)}),h=Function.prototype,d=h.call,g=f&&h.bind.bind(d,d),m=f?g:function(t){return function(){return d.apply(t,arguments)}},b=m,w=b({}.toString),O=b("".slice),S=function(t){return O(w(t),8,-1)},A="object"==typeof document&&document.all,E=void 0===A&&void 0!==A?function(t){return"function"==typeof t||t===A}:function(t){return"function"==typeof t},_=!c((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),x=Function.prototype.call,j=f?x.bind(x):function(){return x.apply(x,arguments)},k={}.propertyIsEnumerable,P=Object.getOwnPropertyDescriptor,T={f:P&&!k.call({1:2},1)?function(t){var e=P(this,t);return!!e&&e.enumerable}:k},C=Object,R=b("".split),$=c((function(){return!C("z").propertyIsEnumerable(0)}))?function(t){return"String"===S(t)?R(t,""):C(t)}:C,I=function(t){return null==t},M=TypeError,L=$,F=function(t){if(I(t))throw new M("Can't call method on "+t);return t},N=E,B={},K=u,H=function(t){return N(t)?t:void 0},D=b({}.isPrototypeOf),G="undefined"!=typeof navigator&&String(navigator.userAgent)||"",q=K.process,z=K.Deno,X=q&&q.versions||z&&z.version,Y=X&&X.v8;Y&&(i=(o=Y.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&G&&(!(o=G.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=G.match(/Chrome\/(\d+)/))&&(i=+o[1]);var V=i,U=K.String,W=!!Object.getOwnPropertySymbols&&!c((function(){var t=Symbol("symbol detection");return!U(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&V&&V<41})),J=W,Q=J&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z=function(t,e){return arguments.length<2?H(B[t])||H(K[t]):B[t]&&B[t][e]||K[t]&&K[t][e]},tt=D,et=Q,rt=Object,nt=et?function(t){return"symbol"==typeof t}:function(t){var e=Z("Symbol");return N(e)&&tt(e.prototype,rt(t))},ot=String,it=function(t){try{return ot(t)}catch(t){return"Object"}},at=TypeError,ut=function(t){if(N(t))return t;throw new at(it(t)+" is not a function")},ct=j,lt=function(t){return"object"==typeof t?null!==t:N(t)},ft=TypeError,st=Object.defineProperty,pt=function(t,e){try{st(K,t,{value:e,configurable:!0,writable:!0})}catch(r){K[t]=e}return e},vt=r((function(t){var e="__core-js_shared__",r=t.exports=K[e]||pt(e,{});(r.versions||(r.versions=[])).push({version:"3.37.1",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),yt=vt,ht=Object,dt=function(t){return ht(F(t))},gt=b({}.hasOwnProperty),mt=Object.hasOwn||function(t,e){return gt(dt(t),e)},bt=0,wt=Math.random(),Ot=b(1..toString),St=function(t,e){return yt[t]||(yt[t]=e||{})},At=mt,Et=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ot(++bt+wt,36)},_t=K.Symbol,xt=St("wks"),jt=et?_t.for||_t:_t&&_t.withoutSetter||Et,kt=nt,Pt=function(t,e){var r=t[e];return I(r)?void 0:ut(r)},Tt=function(t,e){var r,n;if("string"===e&&N(r=t.toString)&&!lt(n=ct(r,t)))return n;if(N(r=t.valueOf)&&!lt(n=ct(r,t)))return n;if("string"!==e&&N(r=t.toString)&&!lt(n=ct(r,t)))return n;throw new ft("Can't convert object to primitive value")},Ct=function(t){return At(xt,t)||(xt[t]=J&&At(_t,t)?_t[t]:jt("Symbol."+t)),xt[t]},Rt=TypeError,$t=Ct("toPrimitive"),It=function(t,e){if(!lt(t)||kt(t))return t;var r,n=Pt(t,$t);if(n){if(void 0===e&&(e="default"),r=ct(n,t,e),!lt(r)||kt(r))return r;throw new Rt("Can't convert object to primitive value")}return void 0===e&&(e="number"),Tt(t,e)},Mt=K.document,Lt=lt(Mt)&<(Mt.createElement),Ft=_,Nt=function(t){return Lt?Mt.createElement(t):{}},Bt=!Ft&&!c((function(){return 7!==Object.defineProperty(Nt("div"),"a",{get:function(){return 7}}).a})),Kt=T,Ht=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Dt=function(t){return L(F(t))},Gt=function(t){var e=It(t,"string");return kt(e)?e:e+""},qt=Bt,zt=Object.getOwnPropertyDescriptor,Xt={f:Ft?zt:function(t,e){if(t=Dt(t),e=Gt(e),qt)try{return zt(t,e)}catch(t){}if(At(t,e))return Ht(!ct(Kt.f,t,e),t[e])}},Yt=/#|\.prototype\./,Vt=function(t,e){var r=Wt[Ut(t)];return r===Qt||r!==Jt&&(N(e)?c(e):!!e)},Ut=Vt.normalize=function(t){return String(t).replace(Yt,".").toLowerCase()},Wt=Vt.data={},Jt=Vt.NATIVE="N",Qt=Vt.POLYFILL="P",Zt=Vt,te=function(t){if("Function"===S(t))return b(t)},ee=te(te.bind),re=Ft&&c((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ne=String,oe=TypeError,ie=re,ae=function(t){if(lt(t))return t;throw new oe(ne(t)+" is not an object")},ue=TypeError,ce=Object.defineProperty,le=Object.getOwnPropertyDescriptor,fe="enumerable",se="configurable",pe="writable",ve={f:Ft?ie?function(t,e,r){if(ae(t),e=Gt(e),ae(r),"function"==typeof t&&"prototype"===e&&"value"in r&&pe in r&&!r[pe]){var n=le(t,e);n&&n[pe]&&(t[e]=r.value,r={configurable:se in r?r[se]:n[se],enumerable:fe in r?r[fe]:n[fe],writable:!1})}return ce(t,e,r)}:ce:function(t,e,r){if(ae(t),e=Gt(e),ae(r),qt)try{return ce(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new ue("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},ye=y,he=Xt,de=Zt,ge=function(t,e){return ut(t),void 0===e?t:f?ee(t,e):function(){return t.apply(e,arguments)}},me=Ft?function(t,e,r){return ve.f(t,e,Ht(1,r))}:function(t,e,r){return t[e]=r,t},be=he.f,we=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return ye(t,this,arguments)};return e.prototype=t.prototype,e},Oe=b([].slice),Se=Function,Ae=b([].concat),Ee=b([].join),_e={},xe=f?Se.bind:function(t){var e=ut(this),r=e.prototype,n=Oe(arguments,1),o=function(){var r=Ae(n,Oe(arguments));return this instanceof o?function(t,e,r){if(!At(_e,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";_e[e]=Se("C,a","return new C("+Ee(n,",")+")")}return _e[e](t,r)}(e,r.length,r):e.apply(t,r)};return lt(r)&&(o.prototype=r),o},je={};je[Ct("toStringTag")]="z";var ke="[object z]"===String(je),Pe=Ct("toStringTag"),Te=Object,Ce="Arguments"===S(function(){return arguments}()),Re=ke?S:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Te(t),Pe))?r:Ce?S(e):"Object"===(n=S(e))&&N(e.callee)?"Arguments":n},$e=b(Function.toString);N(yt.inspectSource)||(yt.inspectSource=function(t){return $e(t)});var Ie=yt.inspectSource,Me=Re,Le=Ie,Fe=function(){},Ne=Z("Reflect","construct"),Be=/^\s*(?:class|function)\b/,Ke=b(Be.exec),He=!Be.test(Fe),De=function(t){if(!N(t))return!1;try{return Ne(Fe,[],t),!0}catch(t){return!1}},Ge=function(t){if(!N(t))return!1;switch(Me(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return He||!!Ke(Be,Le(t))}catch(t){return!0}};Ge.sham=!0;var qe,ze=!Ne||c((function(){var t;return De(De.call)||!De(Object)||!De((function(){t=!0}))||t}))?Ge:De,Xe=ze,Ye=TypeError,Ve=Math.ceil,Ue=Math.floor,We=Math.trunc||function(t){var e=+t;return(e>0?Ue:Ve)(e)},Je=function(t){var e=+t;return e!=e||0===e?0:We(e)},Qe=Math.max,Ze=Math.min,tr=Math.min,er=function(t){var e=Je(t);return e>0?tr(e,9007199254740991):0},rr=function(t,e){var r=Je(t);return r<0?Qe(r+e,0):Ze(r,e)},nr=function(t){return er(t.length)},or=function(t){return function(e,r,n){var o=Dt(e),i=nr(o);if(0===i)return!t&&-1;var a,u=rr(n,i);if(t&&r!=r){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((t||u in o)&&o[u]===r)return t||u||0;return!t&&-1}},ir={includes:or(!0),indexOf:or(!1)},ar={},ur=ir.indexOf,cr=b([].push),lr=function(t,e){var r,n=Dt(t),o=0,i=[];for(r in n)!At(ar,r)&&At(n,r)&&cr(i,r);for(;e.length>o;)At(n,r=e[o++])&&(~ur(i,r)||cr(i,r));return i},fr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sr=Object.keys||function(t){return lr(t,fr)},pr=Ft&&!ie?Object.defineProperties:function(t,e){ae(t);for(var r,n=Dt(e),o=sr(e),i=o.length,a=0;i>a;)ve.f(t,r=o[a++],n[r]);return t},vr={f:pr},yr=Z("document","documentElement"),hr=St("keys"),dr=vr,gr=yr,mr=function(t){return hr[t]||(hr[t]=Et(t))},br="prototype",wr="script",Or=mr("IE_PROTO"),Sr=function(){},Ar=function(t){return"<"+wr+">"+t+"</"+wr+">"},Er=function(t){t.write(Ar("")),t.close();var e=t.parentWindow.Object;return t=null,e},_r=function(){try{qe=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;_r="undefined"!=typeof document?document.domain&&qe?Er(qe):(e=Nt("iframe"),r="java"+wr+":",e.style.display="none",gr.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Ar("document.F=Object")),t.close(),t.F):Er(qe);for(var n=fr.length;n--;)delete _r[br][fr[n]];return _r()};ar[Or]=!0;var xr=Object.create||function(t,e){var r;return null!==t?(Sr[br]=ae(t),r=new Sr,Sr[br]=null,r[Or]=t):r=_r(),void 0===e?r:dr.f(r,e)},jr=function(t,e){var r,n,o,i,a,u,c,l,f,s=t.target,p=t.global,v=t.stat,y=t.proto,h=p?K:v?K[s]:K[s]&&K[s].prototype,d=p?B:B[s]||me(B,s,{})[s],g=d.prototype;for(i in e)n=!(r=de(p?i:s+(v?".":"#")+i,t.forced))&&h&&At(h,i),u=d[i],n&&(c=t.dontCallGetSet?(f=be(h,i))&&f.value:h[i]),a=n&&c?c:e[i],(r||y||typeof u!=typeof a)&&(l=t.bind&&n?ge(a,K):t.wrap&&n?we(a):y&&N(a)?te(a):a,(t.sham||a&&a.sham||u&&u.sham)&&me(l,"sham",!0),me(d,i,l),y&&(At(B,o=s+"Prototype")||me(B,o,{}),me(B[o],i,a),t.real&&g&&(r||!g[i])&&me(g,i,a)))},kr=xe,Pr=function(t){if(Xe(t))return t;throw new Ye(it(t)+" is not a constructor")},Tr=xr,Cr=Z("Reflect","construct"),Rr=Object.prototype,$r=[].push,Ir=c((function(){function t(){}return!(Cr((function(){}),[],t)instanceof t)})),Mr=!c((function(){Cr((function(){}))})),Lr=Ir||Mr;jr({target:"Reflect",stat:!0,forced:Lr,sham:Lr},{construct:function(t,e){Pr(t),ae(e);var r=arguments.length<3?t:Pr(arguments[2]);if(Mr&&!Ir)return Cr(t,e,r);if(t===r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return ye($r,n,e),new(ye(kr,t,n))}var o=r.prototype,i=Tr(lt(o)?o:Rr),a=ye(t,i,e);return lt(a)?a:i}});var Fr=B.Reflect.construct,Nr=Array.isArray||function(t){return"Array"===S(t)},Br=Ct("species"),Kr=Nr,Hr=function(t,e,r){Ft?ve.f(t,e,Ht(0,r)):t[e]=r},Dr=function(t){return V>=51||!c((function(){var e=[];return(e.constructor={})[Br]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Gr=Dr("slice"),qr=Ct("species"),zr=Array,Xr=Math.max;jr({target:"Array",proto:!0,forced:!Gr},{slice:function(t,e){var r,n,o,i=Dt(this),a=nr(i),u=rr(t,a),c=rr(void 0===e?a:e,a);if(Kr(i)&&(r=i.constructor,(Xe(r)&&(r===zr||Kr(r.prototype))||lt(r)&&null===(r=r[qr]))&&(r=void 0),r===zr||void 0===r))return Oe(i,u,c);for(n=new(void 0===r?zr:r)(Xr(c-u,0)),o=0;u<c;u++,o++)u in i&&Hr(n,o,i[u]);return n.length=o,n}});var Yr,Vr,Ur,Wr=function(t,e){var r=B[t+"Prototype"],n=r&&r[e];if(n)return n;var o=K[t],i=o&&o.prototype;return i&&i[e]},Jr=Wr("Array","slice"),Qr=Array.prototype,Zr=function(t){var e=t.slice;return t===Qr||tt(Qr,t)&&e===Qr.slice?Jr:e},tn=String,en=function(t){if("Symbol"===Me(t))throw new TypeError("Cannot convert a Symbol value to a string");return tn(t)},rn=b("".charAt),nn=b("".charCodeAt),on=b("".slice),an=function(t){return function(e,r){var n,o,i=en(F(e)),a=Je(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=nn(i,a))<55296||n>56319||a+1===u||(o=nn(i,a+1))<56320||o>57343?t?rn(i,a):n:t?on(i,a,a+2):o-56320+(n-55296<<10)+65536}},un={codeAt:an(!1),charAt:an(!0)},cn=K.WeakMap,ln=N(cn)&&/native code/.test(String(cn)),fn="Object already initialized",sn=K.TypeError,pn=K.WeakMap;if(ln||yt.state){var vn=yt.state||(yt.state=new pn);vn.get=vn.get,vn.has=vn.has,vn.set=vn.set,Yr=function(t,e){if(vn.has(t))throw new sn(fn);return e.facade=t,vn.set(t,e),e},Vr=function(t){return vn.get(t)||{}},Ur=function(t){return vn.has(t)}}else{var yn=mr("state");ar[yn]=!0,Yr=function(t,e){if(At(t,yn))throw new sn(fn);return e.facade=t,me(t,yn,e),e},Vr=function(t){return At(t,yn)?t[yn]:{}},Ur=function(t){return At(t,yn)}}var hn,dn,gn,mn={set:Yr,get:Vr,has:Ur,enforce:function(t){return Ur(t)?Vr(t):Yr(t,{})},getterFor:function(t){return function(e){var r;if(!lt(e)||(r=Vr(e)).type!==t)throw new sn("Incompatible receiver, "+t+" required");return r}}},bn=Function.prototype,wn=Ft&&Object.getOwnPropertyDescriptor,On=At(bn,"name"),Sn={EXISTS:On,PROPER:On&&"something"===function(){}.name,CONFIGURABLE:On&&(!Ft||Ft&&wn(bn,"name").configurable)},An=!c((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),En=mr("IE_PROTO"),_n=Object,xn=_n.prototype,jn=An?_n.getPrototypeOf:function(t){var e=dt(t);if(At(e,En))return e[En];var r=e.constructor;return N(r)&&e instanceof r?r.prototype:e instanceof _n?xn:null},kn=function(t,e,r,n){return n&&n.enumerable?t[e]=r:me(t,e,r),t},Pn=Ct("iterator"),Tn=!1;[].keys&&("next"in(gn=[].keys())?(dn=jn(jn(gn)))!==Object.prototype&&(hn=dn):Tn=!0);var Cn=!lt(hn)||c((function(){var t={};return hn[Pn].call(t)!==t}));hn=Cn?{}:Tr(hn),N(hn[Pn])||kn(hn,Pn,(function(){return this}));var Rn={IteratorPrototype:hn,BUGGY_SAFARI_ITERATORS:Tn},$n=ke?{}.toString:function(){return"[object "+Me(this)+"]"},In=ve.f,Mn=Ct("toStringTag"),Ln=Rn,Fn=function(t,e,r,n){var o=r?t:t&&t.prototype;o&&(At(o,Mn)||In(o,Mn,{configurable:!0,value:e}),n&&!ke&&me(o,"toString",$n))},Nn={},Bn=Ln.IteratorPrototype,Kn=function(){return this},Hn=function(t){return lt(t)||null===t},Dn=String,Gn=TypeError,qn=function(t,e,r){try{return b(ut(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},zn=function(t){if(Hn(t))return t;throw new Gn("Can't set "+Dn(t)+" as a prototype")},Xn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=qn(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return F(r),zn(n),lt(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),Yn=Sn,Vn=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Tr(Bn,{next:Ht(+!n,r)}),Fn(t,o,!1,!0),Nn[o]=Kn,t},Un=Xn,Wn=Yn.PROPER,Jn=Ln.BUGGY_SAFARI_ITERATORS,Qn=Ct("iterator"),Zn="keys",to="values",eo="entries",ro=function(){return this},no=mn,oo=function(t,e,r,n,o,i,a){Vn(r,e,n);var u,c,l,f=function(t){if(t===o&&h)return h;if(!Jn&&t&&t in v)return v[t];switch(t){case Zn:case to:case eo:return function(){return new r(this,t)}}return function(){return new r(this)}},s=e+" Iterator",p=!1,v=t.prototype,y=v[Qn]||v["@@iterator"]||o&&v[o],h=!Jn&&y||f(o),d="Array"===e&&v.entries||y;if(d&&(u=jn(d.call(new t)))!==Object.prototype&&u.next&&(Fn(u,s,!0,!0),Nn[s]=ro),Wn&&o===to&&y&&y.name!==to&&(p=!0,h=function(){return ct(y,this)}),o)if(c={values:f(to),keys:i?h:f(Zn),entries:f(eo)},a)for(l in c)(Jn||p||!(l in v))&&kn(v,l,c[l]);else jr({target:e,proto:!0,forced:Jn||p},c);return a&&v[Qn]!==h&&kn(v,Qn,h,{name:o}),Nn[e]=h,c},io=function(t,e){return{value:t,done:e}},ao=un.charAt,uo="String Iterator",co=no.set,lo=no.getterFor(uo);oo(String,"String",(function(t){co(this,{type:uo,string:en(t),index:0})}),(function(){var t,e=lo(this),r=e.string,n=e.index;return n>=r.length?io(void 0,!0):(t=ao(r,n),e.index+=t.length,io(t,!1))}));var fo=function(t,e,r){var n,o;ae(t);try{if(!(n=Pt(t,"return"))){if("throw"===e)throw r;return r}n=ct(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return ae(n),r},so=Ct("iterator"),po=Array.prototype,vo=Ct("iterator"),yo=function(t){if(!I(t))return Pt(t,vo)||Pt(t,"@@iterator")||Nn[Me(t)]},ho=TypeError,go=function(t,e,r,n){try{return n?e(ae(r)[0],r[1]):e(r)}catch(e){fo(t,"throw",e)}},mo=function(t){return void 0!==t&&(Nn.Array===t||po[so]===t)},bo=function(t,e){var r=arguments.length<2?yo(t):e;if(ut(r))return ae(ct(r,t));throw new ho(it(t)+" is not iterable")},wo=Array,Oo=Ct("iterator"),So=!1;try{var Ao=0,Eo={next:function(){return{done:!!Ao++}},return:function(){So=!0}};Eo[Oo]=function(){return this},Array.from(Eo,(function(){throw 2}))}catch(t){}var _o=function(t){var e=dt(t),r=Xe(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=ge(o,n>2?arguments[2]:void 0));var a,u,c,l,f,s,p=yo(e),v=0;if(!p||this===wo&&mo(p))for(a=nr(e),u=r?new this(a):wo(a);a>v;v++)s=i?o(e[v],v):e[v],Hr(u,v,s);else for(u=r?new this:[],f=(l=bo(e,p)).next;!(c=ct(f,l)).done;v++)s=i?go(l,o,[c.value,v],!0):c.value,Hr(u,v,s);return u.length=v,u},xo=function(t,e){try{if(!e&&!So)return!1}catch(t){return!1}var r=!1;try{var n={};n[Oo]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},jo=!xo((function(t){Array.from(t)}));jr({target:"Array",stat:!0,forced:jo},{from:_o});var ko=B.Array.from,Po=TypeError,To=Ct("species"),Co=Array,Ro=function(t){var e;return Kr(t)&&(e=t.constructor,(Xe(e)&&(e===Co||Kr(e.prototype))||lt(e)&&null===(e=e[To]))&&(e=void 0)),void 0===e?Co:e},$o=function(t){if(t>9007199254740991)throw Po("Maximum allowed index exceeded");return t},Io=function(t,e){return new(Ro(t))(0===e?0:e)},Mo=Ct("isConcatSpreadable"),Lo=V>=51||!c((function(){var t=[];return t[Mo]=!1,t.concat()[0]!==t})),Fo=function(t){if(!lt(t))return!1;var e=t[Mo];return void 0!==e?!!e:Kr(t)},No=!Lo||!Dr("concat");jr({target:"Array",proto:!0,arity:1,forced:No},{concat:function(t){var e,r,n,o,i,a=dt(this),u=Io(a,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(Fo(i=-1===e?a:arguments[e]))for(o=nr(i),$o(c+o),r=0;r<o;r++,c++)r in i&&Hr(u,c,i[r]);else $o(c+1),Hr(u,c++,i);return u.length=c,u}});var Bo=fr.concat("length","prototype"),Ko={f:Object.getOwnPropertyNames||function(t){return lr(t,Bo)}},Ho=Ko.f,Do="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Go={f:function(t){return Do&&"Window"===S(t)?function(t){try{return Ho(t)}catch(t){return Oe(Do)}}(t):Ho(Dt(t))}},qo={f:Object.getOwnPropertySymbols},zo={f:Ct},Xo=ve.f,Yo=b([].push),Vo=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,a=7===t,u=5===t||i;return function(c,l,f,s){for(var p,v,y=dt(c),h=L(y),d=nr(h),g=ge(l,f),m=0,b=s||Io,w=e?b(c,d):r||a?b(c,0):void 0;d>m;m++)if((u||m in h)&&(v=g(p=h[m],m,y),t))if(e)w[m]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:Yo(w,p)}else switch(t){case 4:return!1;case 7:Yo(w,p)}return i?-1:n||o?o:w}},Uo={forEach:Vo(0),map:Vo(1),filter:Vo(2),some:Vo(3),every:Vo(4),find:Vo(5),findIndex:Vo(6),filterReject:Vo(7)},Wo=Go,Jo=qo,Qo=function(t,e,r){return ve.f(t,e,r)},Zo=function(t){var e=B.Symbol||(B.Symbol={});At(e,t)||Xo(e,t,{value:zo.f(t)})},ti=function(){var t=Z("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=Ct("toPrimitive");e&&!e[n]&&kn(e,n,(function(t){return ct(r,this)}),{arity:1})},ei=Uo,ri=ei.forEach,ni=mr("hidden"),oi="Symbol",ii="prototype",ai=no.set,ui=no.getterFor(oi),ci=Object[ii],li=K.Symbol,fi=li&&li[ii],si=K.RangeError,pi=K.TypeError,vi=K.QObject,yi=he.f,hi=ve.f,di=Wo.f,gi=Kt.f,mi=b([].push),bi=St("symbols"),wi=St("op-symbols"),Oi=St("wks"),Si=!vi||!vi[ii]||!vi[ii].findChild,Ai=function(t,e,r){var n=yi(ci,e);n&&delete ci[e],hi(t,e,r),n&&t!==ci&&hi(ci,e,n)},Ei=Ft&&c((function(){return 7!==Tr(hi({},"a",{get:function(){return hi(this,"a",{value:7}).a}})).a}))?Ai:hi,_i=function(t,e){var r=bi[t]=Tr(fi);return ai(r,{type:oi,tag:t,description:e}),Ft||(r.description=e),r},xi=function(t,e,r){t===ci&&xi(wi,e,r),ae(t);var n=Gt(e);return ae(r),At(bi,n)?(r.enumerable?(At(t,ni)&&t[ni][n]&&(t[ni][n]=!1),r=Tr(r,{enumerable:Ht(0,!1)})):(At(t,ni)||hi(t,ni,Ht(1,Tr(null))),t[ni][n]=!0),Ei(t,n,r)):hi(t,n,r)},ji=function(t,e){ae(t);var r=Dt(e),n=sr(r).concat(Ci(r));return ri(n,(function(e){Ft&&!ct(ki,r,e)||xi(t,e,r[e])})),t},ki=function(t){var e=Gt(t),r=ct(gi,this,e);return!(this===ci&&At(bi,e)&&!At(wi,e))&&(!(r||!At(this,e)||!At(bi,e)||At(this,ni)&&this[ni][e])||r)},Pi=function(t,e){var r=Dt(t),n=Gt(e);if(r!==ci||!At(bi,n)||At(wi,n)){var o=yi(r,n);return!o||!At(bi,n)||At(r,ni)&&r[ni][n]||(o.enumerable=!0),o}},Ti=function(t){var e=di(Dt(t)),r=[];return ri(e,(function(t){At(bi,t)||At(ar,t)||mi(r,t)})),r},Ci=function(t){var e=t===ci,r=di(e?wi:Dt(t)),n=[];return ri(r,(function(t){!At(bi,t)||e&&!At(ci,t)||mi(n,bi[t])})),n};J||(li=function(){if(tt(fi,this))throw new pi("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?en(arguments[0]):void 0,e=Et(t),r=function(t){var n=void 0===this?K:this;n===ci&&ct(r,wi,t),At(n,ni)&&At(n[ni],e)&&(n[ni][e]=!1);var o=Ht(1,t);try{Ei(n,e,o)}catch(t){if(!(t instanceof si))throw t;Ai(n,e,o)}};return Ft&&Si&&Ei(ci,e,{configurable:!0,set:r}),_i(e,t)},fi=li[ii],kn(fi,"toString",(function(){return ui(this).tag})),kn(li,"withoutSetter",(function(t){return _i(Et(t),t)})),Kt.f=ki,ve.f=xi,dr.f=ji,he.f=Pi,Ko.f=Wo.f=Ti,Jo.f=Ci,zo.f=function(t){return _i(Ct(t),t)},Ft&&Qo(fi,"description",{configurable:!0,get:function(){return ui(this).description}})),jr({global:!0,constructor:!0,wrap:!0,forced:!J,sham:!J},{Symbol:li}),ri(sr(Oi),(function(t){Zo(t)})),jr({target:oi,stat:!0,forced:!J},{useSetter:function(){Si=!0},useSimple:function(){Si=!1}}),jr({target:"Object",stat:!0,forced:!J,sham:!Ft},{create:function(t,e){return void 0===e?Tr(t):ji(Tr(t),e)},defineProperty:xi,defineProperties:ji,getOwnPropertyDescriptor:Pi}),jr({target:"Object",stat:!0,forced:!J},{getOwnPropertyNames:Ti}),ti(),Fn(li,oi),ar[ni]=!0;var Ri=J&&!!Symbol.for&&!!Symbol.keyFor,$i=St("string-to-symbol-registry"),Ii=St("symbol-to-string-registry");jr({target:"Symbol",stat:!0,forced:!Ri},{for:function(t){var e=en(t);if(At($i,e))return $i[e];var r=Z("Symbol")(e);return $i[e]=r,Ii[r]=e,r}});var Mi=St("symbol-to-string-registry");jr({target:"Symbol",stat:!0,forced:!Ri},{keyFor:function(t){if(!kt(t))throw new TypeError(it(t)+" is not a symbol");if(At(Mi,t))return Mi[t]}});var Li=b([].push),Fi=function(t){if(N(t))return t;if(Kr(t)){for(var e=t.length,r=[],n=0;n<e;n++){var o=t[n];"string"==typeof o?Li(r,o):"number"!=typeof o&&"Number"!==S(o)&&"String"!==S(o)||Li(r,en(o))}var i=r.length,a=!0;return function(t,e){if(a)return a=!1,e;if(Kr(this))return e;for(var n=0;n<i;n++)if(r[n]===t)return e}}},Ni=String,Bi=Z("JSON","stringify"),Ki=b(/./.exec),Hi=b("".charAt),Di=b("".charCodeAt),Gi=b("".replace),qi=b(1..toString),zi=/[\uD800-\uDFFF]/g,Xi=/^[\uD800-\uDBFF]$/,Yi=/^[\uDC00-\uDFFF]$/,Vi=!J||c((function(){var t=Z("Symbol")("stringify detection");return"[null]"!==Bi([t])||"{}"!==Bi({a:t})||"{}"!==Bi(Object(t))})),Ui=c((function(){return'"\\udf06\\ud834"'!==Bi("\udf06\ud834")||'"\\udead"'!==Bi("\udead")})),Wi=function(t,e){var r=Oe(arguments),n=Fi(e);if(N(n)||void 0!==t&&!kt(t))return r[1]=function(t,e){if(N(n)&&(e=ct(n,this,Ni(t),e)),!kt(e))return e},ye(Bi,null,r)},Ji=function(t,e,r){var n=Hi(r,e-1),o=Hi(r,e+1);return Ki(Xi,t)&&!Ki(Yi,o)||Ki(Yi,t)&&!Ki(Xi,n)?"\\u"+qi(Di(t,0),16):t};Bi&&jr({target:"JSON",stat:!0,arity:3,forced:Vi||Ui},{stringify:function(t,e,r){var n=Oe(arguments),o=ye(Vi?Wi:Bi,null,n);return Ui&&"string"==typeof o?Gi(o,zi,Ji):o}});var Qi=!J||c((function(){Jo.f(1)}));jr({target:"Object",stat:!0,forced:Qi},{getOwnPropertySymbols:function(t){var e=Jo.f;return e?e(dt(t)):[]}}),Zo("asyncIterator"),Zo("hasInstance"),Zo("isConcatSpreadable"),Zo("iterator"),Zo("match"),Zo("matchAll"),Zo("replace"),Zo("search"),Zo("species"),Zo("split"),Zo("toPrimitive"),ti(),Zo("toStringTag"),Fn(Z("Symbol"),"Symbol"),Zo("unscopables"),Fn(K.JSON,"JSON",!0);var Zi=B.Symbol,ta=function(){},ea=(ve.f,"Array Iterator"),ra=no.set,na=no.getterFor(ea);oo(Array,"Array",(function(t,e){ra(this,{type:ea,target:Dt(t),index:0,kind:e})}),(function(){var t=na(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,io(void 0,!0);switch(t.kind){case"keys":return io(r,!1);case"values":return io(e[r],!1)}return io([r,e[r]],!1)}),"values");Nn.Arguments=Nn.Array;ta(),ta(),ta();var oa={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};for(var ia in oa)Fn(K[ia],ia),Nn[ia]=Nn.Array;var aa=Zi,ua=aa,ca=yo;jr({target:"Array",stat:!0},{isArray:Kr});var la=B.Array.isArray,fa=e(r((function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}))),sa=ve.f;jr({target:"Object",stat:!0,forced:Object.defineProperty!==sa,sham:!Ft},{defineProperty:sa});var pa=r((function(t){var e=B.Object,r=t.exports=function(t,r,n){return e.defineProperty(t,r,n)};e.defineProperty.sham&&(r.sham=!0)})),va=pa,ya=va,ha=ya,da=ve.f,ga=Ct("metadata"),ma=Function.prototype;void 0===ma[ga]&&da(ma,ga,{value:null}),Zo("asyncDispose"),Zo("dispose"),Zo("metadata");var ba=aa,wa=Z("Symbol"),Oa=wa.keyFor,Sa=b(wa.prototype.valueOf),Aa=wa.isRegisteredSymbol||function(t){try{return void 0!==Oa(Sa(t))}catch(t){return!1}};jr({target:"Symbol",stat:!0},{isRegisteredSymbol:Aa});for(var Ea=Z("Symbol"),_a=Ea.isWellKnownSymbol,xa=Z("Object","getOwnPropertyNames"),ja=b(Ea.prototype.valueOf),ka=St("wks"),Pa=0,Ta=xa(Ea),Ca=Ta.length;Pa<Ca;Pa++)try{var Ra=Ta[Pa];kt(Ea[Ra])&&Ct(Ra)}catch(t){}var $a=function(t){if(_a&&_a(t))return!0;try{for(var e=ja(t),r=0,n=xa(ka),o=n.length;r<o;r++)if(ka[n[r]]==e)return!0}catch(t){}return!1};jr({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:$a}),Zo("customMatcher"),Zo("observable"),jr({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Aa}),jr({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:$a}),Zo("matcher"),Zo("metadataKey"),Zo("patternMatch"),Zo("replaceAll");var Ia=ba,Ma=Ia,La=zo.f("iterator"),Fa=Ia,Na=La,Ba=r((function(t){function e(r){return t.exports=e="function"==typeof Fa&&"symbol"==typeof Na?function(t){return typeof t}:function(t){return t&&"function"==typeof Fa&&t.constructor===Fa&&t!==Fa.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}));e(Ba),n(Object.freeze({__proto__:null}));var Ka=zo.f("toPrimitive"),Ha=Ka,Da=r((function(t){var e=Ba.default;t.exports=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Ha];if(void 0!==n){var o=n.call(t,r||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}));e(Da);var Ga=r((function(t){var e=Ba.default;t.exports=function(t){var r=Da(t,"string");return"symbol"==e(r)?r:r+""},t.exports.__esModule=!0,t.exports.default=t.exports}));e(Ga);var qa=r((function(t){function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),ya(t,Ga(n.key),n)}}t.exports=function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),ya(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports})),za=e(qa),Xa=r((function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}));e(Xa);var Ya=r((function(t){var e=Ba.default;t.exports=function(t,r){if(r&&("object"==e(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return Xa(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),Va=e(Ya);jr({target:"Object",stat:!0},{setPrototypeOf:Un});var Ua=B.Object.setPrototypeOf,Wa=Ua;jr({target:"Function",proto:!0,forced:Function.bind!==kr},{bind:kr});var Ja=Wr("Function","bind"),Qa=Function.prototype,Za=function(t){var e=t.bind;return t===Qa||tt(Qa,t)&&e===Qa.bind?Ja:e},tu=Za,eu=c((function(){jn(1)}));jr({target:"Object",stat:!0,forced:eu,sham:!An},{getPrototypeOf:function(t){return jn(dt(t))}});var ru=B.Object.getPrototypeOf,nu=Ua,ou=Za,iu=ru,au=r((function(t){function e(r){var n;return t.exports=e=nu?ou(n=iu).call(n):function(t){return t.__proto__||iu(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),uu=e(au);jr({target:"Object",stat:!0,sham:!Ft},{create:Tr});var cu=B.Object,lu=function(t,e){return cu.create(t,e)},fu=lu,su=r((function(t){function e(r,n){var o;return t.exports=e=nu?ou(o=nu).call(o):function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}));e(su);var pu=lu,vu=e(r((function(t){t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=pu(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),ya(t,"prototype",{writable:!1}),e&&su(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports}))),yu=e(r((function(t){t.exports=function(t,e,r){return(e=Ga(e))in t?ya(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports}))),hu=Wr("Array","concat"),du=Array.prototype,gu=function(t){var e=t.concat;return t===du||tt(du,t)&&e===du.concat?hu:e},mu="\t\n\v\f\r \u2028\u2029\ufeff",bu=b("".replace),wu=RegExp("^["+mu+"]+"),Ou=RegExp("(^|[^"+mu+"])["+mu+"]+$"),Su=function(t){return function(e){var r=en(F(e));return 1&t&&(r=bu(r,wu,"")),2&t&&(r=bu(r,Ou,"$1")),r}},Au={start:Su(1),end:Su(2),trim:Su(3)},Eu=Au.trim,_u=K.parseInt,xu=K.Symbol,ju=xu&&xu.iterator,ku=/^[+-]?0x/i,Pu=b(ku.exec),Tu=8!==_u(mu+"08")||22!==_u(mu+"0x16")||ju&&!c((function(){_u(Object(ju))}))?function(t,e){var r=Eu(en(t));return _u(r,e>>>0||(Pu(ku,r)?16:10))}:_u;jr({target:"Number",stat:!0,forced:Number.parseInt!==Tu},{parseInt:Tu});var Cu=B.Number.parseInt,Ru=Yn.PROPER,$u=Au.trim;jr({target:"String",proto:!0,forced:function(t){return c((function(){return!!mu[t]()||"
"!=="
"[t]()||Ru&&mu[t].name!==t}))}("trim")},{trim:function(){return $u(this)}});var Iu=Wr("String","trim"),Mu=String.prototype,Lu=function(t){var e=t.trim;return"string"==typeof t||t===Mu||tt(Mu,t)&&e===Mu.trim?Iu:e},Fu=Wr("Array","keys"),Nu=Array.prototype,Bu={DOMTokenList:!0,NodeList:!0},Ku=function(t){var e=t.keys;return t===Nu||tt(Nu,t)&&e===Nu.keys||At(Bu,Me(t))?Fu:e};function Hu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Du(t){return Du="function"==typeof Ma&&"symbol"==typeof La?function(t){return typeof t}:function(t){return t&&"function"==typeof Ma&&t.constructor===Ma&&t!==Ma.prototype?"symbol":typeof t},Du(t)}function Gu(t){var e=function(t,e){if("object"!=Du(t)||!t)return t;var r=t[Ka];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Du(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Du(e)?e:e+""}function qu(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),ha(t,Gu(n.key),n)}}function zu(t,e,r){return e&&qu(t.prototype,e),r&&qu(t,r),ha(t,"prototype",{writable:!1}),t}function Xu(t,e){if(e&&("object"==Du(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Yu(t){var e;return Yu=Wa?tu(e=ru).call(e):function(t){return t.__proto__||ru(t)},Yu(t)}function Vu(t,e){var r;return Vu=Wa?tu(r=Wa).call(r):function(t,e){return t.__proto__=e,t},Vu(t,e)}function Uu(t,e,r){return(e=Gu(e))in t?ha(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Wu=ei.filter,Ju=Dr("filter");jr({target:"Array",proto:!0,forced:!Ju},{filter:function(t){return Wu(this,t,arguments.length>1?arguments[1]:void 0)}});var Qu=Wr("Array","filter"),Zu=Array.prototype,tc=function(t){var e=t.filter;return t===Zu||tt(Zu,t)&&e===Zu.filter?Qu:e},ec=ei.map,rc=Dr("map");jr({target:"Array",proto:!0,forced:!rc},{map:function(t){return ec(this,t,arguments.length>1?arguments[1]:void 0)}});var nc=Wr("Array","map"),oc=Array.prototype,ic=function(t){var e=t.map;return t===oc||tt(oc,t)&&e===oc.map?nc:e};jr({global:!0,forced:parseInt!==Tu},{parseInt:Tu});var ac=B.parseInt,uc="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,cc=TypeError,lc=uc,fc=function(t,e){if(t<e)throw new cc("Not enough arguments");return t},sc=K.Function,pc=/MSIE .\./.test(G)||lc&&function(){var t=K.Bun.version.split(".");return t.length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2])}(),vc=function(t,e){var r=e?2:1;return pc?function(n,o){var i=fc(arguments.length,1)>r,a=N(n)?n:sc(n),u=i?Oe(arguments,r):[],c=i?function(){ye(a,this,u)}:a;return e?t(c,o):t(c)}:t},yc=vc(K.setInterval,!0);jr({global:!0,bind:!0,forced:K.setInterval!==yc},{setInterval:yc});var hc=vc(K.setTimeout,!0);jr({global:!0,bind:!0,forced:K.setTimeout!==hc},{setTimeout:hc});var dc=B.setTimeout,gc=!1,mc="paragraph",bc="sentence",wc=function(){return zu((function t(e){Hu(this,t),Uu(this,"$engine",void 0),Uu(this,"$locale",void 0),this.RULE=this.rule(e)}),[{key:"getType",value:function(){return this.constructor.HOOK_TYPE||bc}},{key:"getName",value:function(){return this.constructor.HOOK_NAME}},{key:"afterInit",value:function(t){"function"==typeof t&&t()}},{key:"setLocale",value:function(t){this.$locale=t}},{key:"beforeMakeHtml",value:function(t){return t}},{key:"makeHtml",value:function(t){return t}},{key:"afterMakeHtml",value:function(t){return t}},{key:"onKeyDown",value:function(t,e){}},{key:"getOnKeyDown",value:function(){return this.onKeyDown||!1}},{key:"getAttributesTest",value:function(){return/^(color|fontSize|font-size|id|title|class|target|underline|line-through|overline|sub|super)$/}},{key:"$testAttributes",value:function(t,e){this.getAttributesTest().test(t)&&e()}},{key:"getAttributes",value:function(t){return{attrs:{},str:t}}},{key:"test",value:function(t){return!!this.RULE.reg&&this.RULE.reg.test(t)}},{key:"rule",value:function(t){return{begin:"",end:"",content:"",reg:new RegExp("")}}},{key:"mounted",value:function(){}}],[{key:"getMathJaxConfig",value:function(){return gc}},{key:"setMathJaxConfig",value:function(t){gc=t}}])}();Uu(wc,"HOOK_NAME","default"),Uu(wc,"HOOK_TYPE",bc);var Oc=B.Object.getOwnPropertySymbols,Sc=he.f,Ac=!Ft||c((function(){Sc(1)}));jr({target:"Object",stat:!0,forced:Ac,sham:!Ft},{getOwnPropertyDescriptor:function(t,e){return Sc(Dt(t),e)}});var Ec=r((function(t){var e=B.Object,r=t.exports=function(t,r){return e.getOwnPropertyDescriptor(t,r)};e.getOwnPropertyDescriptor.sham&&(r.sham=!0)})),_c=Ec,xc=function(t,e){var r=[][t];return!!r&&c((function(){r.call(null,e||function(){return 1},1)}))},jc=ei.forEach,kc=xc("forEach")?[].forEach:function(t){return jc(this,t,arguments.length>1?arguments[1]:void 0)};jr({target:"Array",proto:!0,forced:[].forEach!==kc},{forEach:kc});var Pc=Wr("Array","forEach");n(Object.freeze({__proto__:null}));var Tc=Array.prototype,Cc={DOMTokenList:!0,NodeList:!0},Rc=function(t){var e=t.forEach;return t===Tc||tt(Tc,t)&&e===Tc.forEach||At(Cc,Me(t))?Pc:e},$c=b([].concat),Ic=Z("Reflect","ownKeys")||function(t){var e=Ko.f(ae(t)),r=Jo.f;return r?$c(e,r(t)):e},Mc=Ic;jr({target:"Object",stat:!0,sham:!Ft},{getOwnPropertyDescriptors:function(t){for(var e,r,n=Dt(t),o=he.f,i=Mc(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&Hr(a,e,r);return a}});var Lc=B.Object.getOwnPropertyDescriptors,Fc=dr.f;jr({target:"Object",stat:!0,forced:Object.defineProperties!==Fc,sham:!Ft},{defineProperties:Fc});var Nc=r((function(t){var e=B.Object,r=t.exports=function(t,r){return e.defineProperties(t,r)};e.defineProperties.sham&&(r.sham=!0)})),Bc=Nc,Kc=va,Hc=c((function(){sr(1)}));jr({target:"Object",stat:!0,forced:Hc},{keys:function(t){return sr(dt(t))}});var Dc,Gc,qc=B.Object.keys;function zc(t,e){var r=qc(t);if(Oc){var n=Oc(t);e&&(n=tc(n).call(n,(function(e){return _c(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xc(t){for(var e=1;e<arguments.length;e++){var r,n,o=null!=arguments[e]?arguments[e]:{};e%2?Rc(r=zc(Object(o),!0)).call(r,(function(e){Uu(t,e,o[e])})):Lc?Bc(t,Lc(o)):Rc(n=zc(Object(o))).call(n,(function(e){Kc(t,e,_c(o,e))}))}return t}var Yc=Xc(Xc(Xc(Xc(Xc(Xc({},{34:""",38:"&",39:"'",60:"<",62:">"}),{192:"À",193:"Á",194:"Â",195:"Ã",196:"Ä",197:"Å",198:"Æ",199:"Ç",200:"È",201:"É",202:"Ê",203:"Ë",204:"Ì",205:"Í",206:"Î",207:"Ï",208:"Ð",209:"Ñ",210:"Ò",211:"Ó",212:"Ô",213:"Õ",214:"Ö",216:"Ø",217:"Ù",218:"Ú",219:"Û",220:"Ü",221:"Ý",222:"Þ",223:"ß",224:"à",225:"á",226:"â",227:"ã",228:"ä",229:"å",230:"æ",231:"ç",232:"è",233:"é",234:"ê",235:"ë",236:"ì",237:"í",238:"î",239:"ï",240:"ð",241:"ñ",242:"ò",243:"ó",244:"ô",245:"õ",246:"ö",248:"ø",249:"ù",250:"ú",251:"û",252:"ü",253:"ý",254:"þ",255:"ÿ"}),{160:" ",161:"¡",162:"¢",163:"£",164:"¤",165:"¥",166:"¦",167:"§",168:"¨",169:"©",170:"ª",171:"«",172:"¬",173:"­",174:"®",175:"¯",176:"°",177:"±",178:"²",179:"³",180:"´",181:"µ",182:"¶",184:"¸",185:"¹",186:"º",187:"»",188:"¼",189:"½",190:"¾",191:"¿",215:"×",247:"÷"}),{8704:"∀",8706:"∂",8707:"∃",8709:"∅",8711:"∇",8712:"∈",8713:"∉",8715:"∋",8719:"∏",8721:"∑",8722:"−",8727:"∗",8730:"√",8733:"∝",8734:"∞",8736:"∠",8743:"∧",8744:"∨",8745:"∩",8746:"∪",8747:"∫",8756:"∴",8764:"∼",8773:"≅",8776:"≈",8800:"≠",8801:"≡",8804:"≤",8805:"≥",8834:"⊂",8835:"⊃",8836:"⊄",8838:"⊆",8839:"⊇",8853:"⊕",8855:"⊗",8869:"⊥",8901:"⋅"}),{913:"Α",914:"Β",915:"Γ",916:"Δ",917:"Ε",918:"Ζ",919:"Η",920:"Θ",921:"Ι",922:"Κ",923:"Λ",924:"Μ",925:"Ν",926:"Ξ",927:"Ο",928:"Π",929:"Ρ",931:"Σ",932:"Τ",933:"Υ",934:"Φ",935:"Χ",936:"Ψ",937:"Ω",945:"α",946:"β",947:"γ",948:"δ",949:"ε",950:"ζ",951:"η",952:"θ",953:"ι",954:"κ",955:"λ",956:"μ",957:"ν",958:"ξ",959:"ο",960:"π",961:"ρ",962:"ς",963:"σ",964:"τ",965:"υ",966:"φ",967:"χ",968:"ψ",969:"ω",977:"ϑ",978:"ϒ",982:"ϖ"}),{338:"Œ",339:"œ",352:"Š",353:"š",376:"Ÿ",402:"ƒ",710:"ˆ",732:"˜",8194:" ",8195:" ",8201:" ",8204:"‌",8205:"‍",8206:"‎",8207:"‏",8211:"–",8212:"—",8216:"‘",8217:"’",8218:"‚",8220:"“",8221:"”",8222:"„",8224:"†",8225:"‡",8226:"•",8230:"…",8240:"‰",8242:"′",8243:"″",8249:"‹",8250:"›",8254:"‾",8364:"€",8482:"™",8592:"←",8593:"↑",8594:"→",8595:"↓",8596:"↔",8629:"↵",8968:"⌈",8969:"⌉",8970:"⌊",8971:"⌋",9674:"◊",9824:"♠",9827:"♣",9829:"♥",9830:"♦"}),Vc=qc(Yc);ic(Vc).call(Vc,(function(t){return Yc[t].replace(/^&(\w+);$/g,(function(t,e){return e.toLowerCase()}))}));var Uc=["h1|h2|h3|h4|h5|h6","ul|ol|li|dd|dl|dt","table|thead|tbody|tfoot|col|colgroup|th|td|tr","div|article|section|footer|aside|details|summary|code|audio|video|canvas|figure","address|center|cite|p|pre|blockquote|marquee|caption|figcaption|track|source|output|svg"].join("|"),Wc=["span|a|link|b|s|i|del|u|em|strong|sup|sub|kbd","nav|font|bdi|samp|map|area|small|time|bdo|var|wbr|meter|dfn","ruby|rt|rp|mark|q|progress|input|textarea|select|ins"].join("|");function Jc(t,e,r){return e=Yu(e),Xu(t,Qc()?Fr(e,r||[],Yu(t).constructor):e.apply(t,r))}function Qc(){try{var t=!Boolean.prototype.valueOf.call(Fr(Boolean,[],(function(){})))}catch(t){}return(Qc=function(){return!!t})()}new RegExp(gu(Dc=gu(Gc="^(".concat(Uc,"|")).call(Gc,Wc,"|")).call(Dc,"br|img|hr",")( |$|/)"),"i");var Zc=0,tl=function(t){function e(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{needCache:!1},n=r.needCache,o=r.defaultCache,i=void 0===o?{}:o;return Hu(this,e),(t=Jc(this,e,[{}])).needCache=!!n,t.sign="",n&&(t.cache=i||{},t.cacheKey="~~C".concat(Zc),Zc+=1),t.failedResetCacheTimes=0,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=fu(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),ha(t,"prototype",{writable:!1}),e&&Vu(t,e)}(e,t),zu(e,[{key:"initBrReg",value:function(){var t,e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.classicBr=(e="classicBr","undefined"!=typeof localStorage&&null!==localStorage.getItem("cherry-".concat(e))?(t="false","undefined"!=typeof localStorage&&(t=localStorage.getItem("cherry-classicBr")),"true"===t):r),this.removeBrAfterBlock=null,this.removeBrBeforeBlock=null,this.removeNewlinesBetweenTags=null}},{key:"$cleanParagraph",value:function(t){var e=t.replace(/^\n+/,"").replace(/\n+$/,"");return this.classicBr?e:this.joinRawHtml(e).replace(/\n/g,"<br>").replace(/\r/g,"\n")}},{key:"joinRawHtml",value:function(t){if(!this.removeBrAfterBlock){var e,r,n,o,i=null!==(e=null===(r=this.$engine.htmlWhiteListAppend)||void 0===r?void 0:r.split("|"))&&void 0!==e?e:[];i=tc(n=ic(i).call(i,(function(t){return/[a-z-]+/gi.test(t)?t:null}))).call(n,(function(t){return null!==t}));var a=gu(i).call(i,Uc).join("|");this.removeBrAfterBlock=new RegExp("<(".concat(a,")(>| [^>]*?>)[^\\S\\n]*?\\n"),"ig"),this.removeBrBeforeBlock=new RegExp("\\n[^\\S\\n]*?<\\/(".concat(a,")>[^\\S\\n]*?\\n"),"ig"),this.removeNewlinesBetweenTags=new RegExp(gu(o="<\\/(".concat(a,")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(o,a,")(>| [^>]*?>)"),"ig")}return t.replace(this.removeBrAfterBlock,"<$1$2").replace(this.removeBrBeforeBlock,"</$1>").replace(this.removeNewlinesBetweenTags,"</$1>\r$2<$3$4")}},{key:"toHtml",value:function(t,e){return t}},{key:"makeHtml",value:function(t,e){return e(t).html}},{key:"afterMakeHtml",value:function(t){return this.restoreCache(t)}},{key:"isContainsCache",value:function(t,r){if(r){var n=/^(\s*~~C\d+I\w+\$\s*)+$/g.test(t),o=new RegExp("~~C\\d+I".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,"\\w+\\$"),"g").test(t);return n&&!o}return new RegExp("~~C\\d+I(?!".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$"),"g").test(t)}},{key:"$splitHtmlByCache",value:function(t){var r=new RegExp("\\n*~~C\\d+I(?!".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$\\n?"),"g");return{caches:t.match(r),contents:t.split(r)}}},{key:"makeExcludingCached",value:function(t,e){for(var r=this.$splitHtmlByCache(t),n=r.caches,o=r.contents,i=ic(o).call(o,e),a="",u=0;u<i.length;u++){var c;if(a+=i[u],n&&n[u])a+=Lu(c=n[u]).call(c)}return a}},{key:"getCacheWithSpace",value:function(t,e){var r,n,o,i,a,u,c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=null!==(r=null===(n=e.match(/^\n+/))||void 0===n?void 0:n[0])&&void 0!==r?r:"",f=null!==(o=null===(i=e.match(/\n+$/))||void 0===i?void 0:i[0])&&void 0!==o?o:"";return c?function(t,e){var r,n,o,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return/^\n/.test(t)?i?(null!==(r=null===(n=t.match(/^\n+/g))||void 0===n||null===(o=n[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0)>1?"\n\n".concat(e):"\n".concat(e):"\n\n".concat(e):e}(e,t):gu(a=gu(u="".concat(l)).call(u,t)).call(a,f)}},{key:"getLineCount",value:function(t){var r,n,o,i=t,a=null!==(r=null===(n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").match(/^\n+/g))||void 0===n||null===(o=n[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0;a=1===a?1:0,i=i.replace(/^\n+/g,"");var u=new RegExp("\n*~~C\\d+I(?:".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+?_L(\\d+)\\$"),"g"),c=0;return i=i.replace(u,(function(t,e){return c+=ac(e,10),t.replace(/^\n+/g,"")})),a+c+(i.match(/\n/g)||[]).length+1}},{key:"pushCache",value:function(t){var e,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.needCache){var i=n||this.$engine.hash(t),a=gu(e=gu(r="".concat(this.cacheKey,"I")).call(r,i,"_L")).call(e,o,"$");return this.cache[i]={content:t,key:a},a}}},{key:"popCache",value:function(t){if(this.needCache)return this.cache[t].content||""}},{key:"testHasCache",value:function(t){return!(!this.needCache||!this.cache[t])&&this.cache[t].key}},{key:"resetCache",value:function(){this.needCache&&(this.cache={})}},{key:"restoreCache",value:function(t){var r,n=this;if(!this.needCache)return t;var o=new RegExp(gu(r="".concat(this.cacheKey,"I((?:")).call(r,e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+)\\$"),"g"),i=t.replace(o,(function(t,e){return n.popCache(e.replace(/_L\d+$/,""))}));return this.timer&&(clearTimeout(this.timer),this.failedResetCacheTimes+=1,this.timer=null),this.timer=dc((function(){n.resetCache()}),500),this.failedResetCacheTimes>5&&(this.failedResetCacheTimes=0,dc((function(){n.resetCache()}),500)),i}},{key:"checkCache",value:function(t,e){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.sign=this.$engine.hash(t),this.cache[this.sign]?gu(r=gu(n="".concat(this.cacheKey,"I")).call(n,this.sign,"_L")).call(r,o,"$"):this.toHtml(t,e)}},{key:"mounted",value:function(){}},{key:"signWithCache",value:function(t){return!1}}])}(wc);function el(t,e){var r=void 0!==ua&&ca(t)||t["@@iterator"];if(!r){if(la(t)||(r=function(t,e){if(t){var r;if("string"==typeof t)return rl(t,e);var n=Zr(r={}.toString.call(t)).call(r,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?ko(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rl(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function rl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function nl(t,e,r){return e=uu(e),Va(t,ol()?Fr(e,r||[],uu(t).constructor):e.apply(t,r))}function ol(){try{var t=!Boolean.prototype.valueOf.call(Fr(Boolean,[],(function(){})))}catch(t){}return(ol=function(){return!!t})()}Uu(tl,"HOOK_TYPE",mc),Uu(tl,"IN_PARAGRAPH_CACHE_KEY_PREFIX","!"),Uu(tl,"IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX","\\!");var il=function(t){function e(){var t;return fa(this,e),(t=nl(this,e,[{needCache:!0}])).cacheMap={},t.sentenceMakeFunc=null,t}return vu(e,t),za(e,[{key:"$nextTdKey",value:function(t){return t.replace(/^([0-9]+)-([0-9]+)$/,(function(t,e,r){var n;return gu(n="".concat(e,"-")).call(n,Cu(r,10)+1)}))}},{key:"$prevTdKey",value:function(t){return t.replace(/^([0-9]+)-([0-9]+)$/,(function(t,e,r){var n;return gu(n="".concat(e,"-")).call(n,Cu(r,10)-1)}))}},{key:"$nextTrKey",value:function(t){return t.replace(/^([0-9]+)-([0-9]+)$/,(function(t,e,r){var n;return gu(n="".concat(Cu(e,10)+1,"-")).call(n,r)}))}},{key:"$prevTrKey",value:function(t){return t.replace(/^([0-9]+)-([0-9]+)$/,(function(t,e,r){var n;return gu(n="".concat(Cu(e,10)-1,"-")).call(n,r)}))}},{key:"$setColMapVal",value:function(t,e){if(void 0===t[e])return t[e]=[1,2],t[this.$nextTdKey(e)]=[1,-1],t;if(-1===t[e][1]){var r=this.$prevTdKey(e);return t[this.$nextTdKey(e)]=[1,-1],this.$setColMapVal(t,r)}return t[e][1]+=1,t}},{key:"$setRowMapVal",value:function(t,e){if(void 0===t[e])return t[e]=[2,1],t[this.$nextTrKey(e)]=[-1,1],t;var r=this.$nextTrKey(e);if(t[r]=void 0===t[r]?[1,1]:t[r],t[e][1]!==t[r][1])return t;if(1===t[e][0])return t[e][0]=2,t[r][0]=-1,t;if(-1===t[e][0]){var n=this.$prevTrKey(e);return t[r][0]=-1,this.$setRowMapVal(t,n)}return t[e][0]+=1,t}},{key:"$dealColSpan",value:function(t,e,r,n){var o,i,a=Cu(e,10)+1,u=!!r[a]&&Lu(o=r[a]).call(o),c=Lu(i=r[e]).call(i),l=this.$getSpanKey(t,e);return c===u?this.$setColMapVal(n,l):n}},{key:"$dealRowSpan",value:function(t,e,r,n){var o,i,a=Cu(t,10)+1,u=!(!r[a]||!r[a][e])&&Lu(o=r[a][e]).call(o),c=Lu(i=r[t][e]).call(i),l=this.$getSpanKey(t,e);return c===u?this.$setRowMapVal(n,l):n}},{key:"$getSpanKey",value:function(t,e){var r;return gu(r="".concat(t,"-")).call(r,e)}},{key:"$getColAndRowSpanMap",value:function(t){var e,r={},n=el(Ku(t).call(t));try{for(n.s();!(e=n.n()).done;){var o,i=e.value,a=t[i],u=el(Ku(a).call(a));try{for(u.s();!(o=u.n()).done;){var c=o.value;r=this.$dealColSpan(i,c,a,r)}}catch(t){u.e(t)}finally{u.f()}}}catch(t){n.e(t)}finally{n.f()}var l,f=el(Ku(t).call(t));try{for(f.s();!(l=f.n()).done;){var s,p=l.value,v=t[p],y=el(Ku(v).call(v));try{for(y.s();!(s=y.n()).done;){var h=s.value;r=this.$dealRowSpan(p,h,t,r)}}catch(t){y.e(t)}finally{y.f()}}}catch(t){f.e(t)}finally{f.f()}return r}},{key:"$convertTrsString2Array",value:function(t){var e=[];if(!t)return t;var r,n=el(t);try{for(n.s();!(r=n.n()).done;){var o=r.value;o.length>0&&e.push(o.replace(/^\|{2,3}/,"").replace(/\|\|\s*$/,"").split("||"))}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"$isMeerged",value:function(t,e){return!!t[e]&&(t[e][0]<0||t[e][1]<0)}},{key:"$getTdSpan",value:function(t,e){var r;return void 0!==t[e]?gu(r='rowspan="'.concat(t[e][0],'" colspan="')).call(r,t[e][1],'"'):""}},{key:"$dealTh",value:function(t){var e,r=/^\s*~T/.test(t),n=/~T\s*$/.test(t),o={style:"",content:""};return r&&n?o.align='align="center"':n?o.align='align="right"':r&&(o.align='align="left"'),o.content=Lu(e=t.replace(/^\s*~T/,"").replace(/~T\s*$/,"")).call(e),o}},{key:"makeHtml",value:function(t,e){var r=this;return t.replace(/(^|\n)\s*?((?:\|\|[^\n]+(?:$|\n))+)/g,(function(t,n,o){var i,a,u,c=r.$engine.md5(o),l=o.match(/\n/g).length,f=/^\|\|\|/.test(o),s=/\|{2,3}\s*~T/.test(o)||/~T\s*\|\|/.test(o),p=o.split(/\n/),v="",y=[],h=[];if(s&&p[0]){v="<thead><tr>";var d,g=el(p[0].replace(/^\|{2,3}/,"").replace(/\|\|\s*$/,"").split("||"));try{for(g.s();!(d=g.n()).done;){var m,b=d.value,w=r.$dealTh(b);h.push(w.align),v+=gu(m="<th ".concat(w.align,">")).call(m,e(w.content).html,"</th>")}}catch(t){g.e(t)}finally{g.f()}v+="</tr></thead>",p.shift()}p=r.$convertTrsString2Array(p);var O,S=f?r.$getColAndRowSpanMap(p):{},A=el(Ku(p).call(p));try{for(A.s();!(O=A.n()).done;){var E,_=O.value,x=p[_],j="<tr>",k=el(Ku(x).call(x));try{for(k.s();!(E=k.n()).done;){var P,T,C=E.value,R=r.$getSpanKey(_,C),$=x[C];if(!r.$isMeerged(S,R))j+=gu(P=gu(T="<td ".concat(h[C]?h[C]:""," ")).call(T,r.$getTdSpan(S,R),">")).call(P,e(Lu($).call($)).html,"</td>")}}catch(t){k.e(t)}finally{k.f()}j+="</tr>",y.push(j)}}catch(t){A.e(t)}finally{A.f()}var I=gu(i=gu(a='<div class="cherry-table-container simple-table" data-lines="'.concat(l,'" data-sign="')).call(a,c,'">\n <table class="cherry-table">')).call(i,v+y.join(""),"</table></div>");return gu(u="".concat(n)).call(u,r.pushCache(I,c))}))}},{key:"rule",value:function(){return{}}}])}(tl);return yu(il,"HOOK_NAME","tapdTable"),il}));
|