@wangeditor-next/plugin-link-card 1.0.27 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/src/upload/interface.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i18nAddResources as t,t as r,DomEditor as n,SlateTransforms as e,SlateNode as o}from"@wangeditor-next/editor";import{h as i}from"snabbdom";t("en",{linkCard:{toCard:"To Card"}}),t("zh-CN",{linkCard:{toCard:"转为卡片"}});var u,c,a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},f={};function s(){if(c)return u;c=1;var t=function(t){return t&&t.Math===Math&&t};return u=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof a&&a)||t("object"==typeof u&&u)||function(){return this}()||Function("return this")()}var l,v,p,d,h,g,y,m,b={};function w(){return v?l:(v=1,l=function(t){try{return!!t()}catch(t){return!0}})}function A(){if(d)return p;d=1;var t=w();return p=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function S(){if(g)return h;g=1;var t=w();return h=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function E(){if(m)return y;m=1;var t=S(),r=Function.prototype.call;return y=t?r.bind(r):function(){return r.apply(r,arguments)},y}var O,j,x,C,T,I,P,k,R,N,U,D,B,M,L,W,F,K,G,V,Y,H,Z,z,q,J,Q,X,_,$,tt,rt,nt,et,ot,it,ut,ct,at,ft,st,lt={};function vt(){return x?j:(x=1,j=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function pt(){if(T)return C;T=1;var t=S(),r=Function.prototype,n=r.call,e=t&&r.bind.bind(n,n);return C=t?e:function(t){return function(){return n.apply(t,arguments)}},C}function dt(){if(P)return I;P=1;var t=pt(),r=t({}.toString),n=t("".slice);return I=function(t){return n(r(t),8,-1)}}function ht(){return U?N:(U=1,N=function(t){return null==t})}function gt(){if(B)return D;B=1;var t=ht(),r=TypeError;return D=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}function yt(){if(L)return M;L=1;var t=function(){if(R)return k;R=1;var t=pt(),r=w(),n=dt(),e=Object,o=t("".split);return k=r(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):e(t)}:e}(),r=gt();return M=function(n){return t(r(n))}}function mt(){if(F)return W;F=1;var t="object"==typeof document&&document.all;return W=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function bt(){if(G)return K;G=1;var t=mt();return K=function(r){return"object"==typeof r?null!==r:t(r)}}function wt(){if(Y)return V;Y=1;var t=s(),r=mt();return V=function(n,e){return arguments.length<2?(o=t[n],r(o)?o:void 0):t[n]&&t[n][e];var o},V}function At(){if(Z)return H;Z=1;var t=pt();return H=t({}.isPrototypeOf)}function St(){if(q)return z;q=1;var t=s().navigator,r=t&&t.userAgent;return z=r?String(r):""}function Et(){if(Q)return J;Q=1;var t,r,n=s(),e=St(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,c=u&&u.v8;return c&&(r=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(r=+t[1]),J=r}function Ot(){if(_)return X;_=1;var t=Et(),r=w(),n=s().String;return X=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!n(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function jt(){if(tt)return $;tt=1;var t=Ot();return $=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function xt(){if(nt)return rt;nt=1;var t=wt(),r=mt(),n=At(),e=jt(),o=Object;return rt=e?function(t){return"symbol"==typeof t}:function(e){var i=t("Symbol");return r(i)&&n(i.prototype,o(e))}}function Ct(){if(ot)return et;ot=1;var t=String;return et=function(r){try{return t(r)}catch(t){return"Object"}}}function Tt(){if(ut)return it;ut=1;var t=mt(),r=Ct(),n=TypeError;return it=function(e){if(t(e))return e;throw new n(r(e)+" is not a function")}}function It(){if(at)return ct;at=1;var t=Tt(),r=ht();return ct=function(n,e){var o=n[e];return r(o)?void 0:t(o)}}function Pt(){if(st)return ft;st=1;var t=E(),r=mt(),n=bt(),e=TypeError;return ft=function(o,i){var u,c;if("string"===i&&r(u=o.toString)&&!n(c=t(u,o)))return c;if(r(u=o.valueOf)&&!n(c=t(u,o)))return c;if("string"!==i&&r(u=o.toString)&&!n(c=t(u,o)))return c;throw new e("Can't convert object to primitive value")}}var kt,Rt,Nt,Ut,Dt,Bt,Mt,Lt,Wt,Ft,Kt,Gt,Vt,Yt,Ht,Zt,zt,qt,Jt,Qt,Xt,_t,$t,tr,rr={exports:{}};function nr(){return Rt?kt:(Rt=1,kt=!1)}function er(){if(Ut)return Nt;Ut=1;var t=s(),r=Object.defineProperty;return Nt=function(n,e){try{r(t,n,{value:e,configurable:!0,writable:!0})}catch(r){t[n]=e}return e}}function or(){if(Dt)return rr.exports;Dt=1;var t=nr(),r=s(),n=er(),e="__core-js_shared__",o=rr.exports=r[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),rr.exports}function ir(){if(Mt)return Bt;Mt=1;var t=or();return Bt=function(r,n){return t[r]||(t[r]=n||{})}}function ur(){if(Wt)return Lt;Wt=1;var t=gt(),r=Object;return Lt=function(n){return r(t(n))}}function cr(){if(Kt)return Ft;Kt=1;var t=pt(),r=ur(),n=t({}.hasOwnProperty);return Ft=Object.hasOwn||function(t,e){return n(r(t),e)}}function ar(){if(Vt)return Gt;Vt=1;var t=pt(),r=0,n=Math.random(),e=t(1.1.toString);return Gt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++r+n,36)}}function fr(){if(Ht)return Yt;Ht=1;var t=s(),r=ir(),n=cr(),e=ar(),o=Ot(),i=jt(),u=t.Symbol,c=r("wks"),a=i?u.for||u:u&&u.withoutSetter||e;return Yt=function(t){return n(c,t)||(c[t]=o&&n(u,t)?u[t]:a("Symbol."+t)),c[t]}}function sr(){if(zt)return Zt;zt=1;var t=E(),r=bt(),n=xt(),e=It(),o=Pt(),i=fr(),u=TypeError,c=i("toPrimitive");return Zt=function(i,a){if(!r(i)||n(i))return i;var f,s=e(i,c);if(s){if(void 0===a&&(a="default"),f=t(s,i,a),!r(f)||n(f))return f;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),o(i,a)}}function lr(){if(Jt)return qt;Jt=1;var t=sr(),r=xt();return qt=function(n){var e=t(n,"string");return r(e)?e:e+""}}function vr(){if(Xt)return Qt;Xt=1;var t=s(),r=bt(),n=t.document,e=r(n)&&r(n.createElement);return Qt=function(t){return e?n.createElement(t):{}}}function pr(){if($t)return _t;$t=1;var t=A(),r=w(),n=vr();return _t=!t&&!r(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function dr(){if(tr)return b;tr=1;var t=A(),r=E(),n=function(){if(O)return lt;O=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);return lt.f=n?function(t){var n=r(this,t);return!!n&&n.enumerable}:t,lt}(),e=vt(),o=yt(),i=lr(),u=cr(),c=pr(),a=Object.getOwnPropertyDescriptor;return b.f=t?a:function(t,f){if(t=o(t),f=i(f),c)try{return a(t,f)}catch(t){}if(u(t,f))return e(!r(n.f,t,f),t[f])},b}var hr,gr,yr,mr,br,wr,Ar,Sr={};function Er(){if(gr)return hr;gr=1;var t=A(),r=w();return hr=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Or(){if(mr)return yr;mr=1;var t=bt(),r=String,n=TypeError;return yr=function(e){if(t(e))return e;throw new n(r(e)+" is not an object")}}function jr(){if(br)return Sr;br=1;var t=A(),r=pr(),n=Er(),e=Or(),o=lr(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,a="enumerable",f="configurable",s="writable";return Sr.f=t?n?function(t,r,n){if(e(t),r=o(r),e(n),"function"==typeof t&&"prototype"===r&&"value"in n&&s in n&&!n[s]){var i=c(t,r);i&&i[s]&&(t[r]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:a in n?n[a]:i[a],writable:!1})}return u(t,r,n)}:u:function(t,n,c){if(e(t),n=o(n),e(c),r)try{return u(t,n,c)}catch(t){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(t[n]=c.value),t},Sr}function xr(){if(Ar)return wr;Ar=1;var t=A(),r=jr(),n=vt();return wr=t?function(t,e,o){return r.f(t,e,n(1,o))}:function(t,r,n){return t[r]=n,t}}var Cr,Tr,Ir,Pr,kr,Rr,Nr,Ur,Dr,Br,Mr,Lr,Wr,Fr,Kr,Gr={exports:{}};function Vr(){if(Pr)return Ir;Pr=1;var t=pt(),r=mt(),n=or(),e=t(Function.toString);return r(n.inspectSource)||(n.inspectSource=function(t){return e(t)}),Ir=n.inspectSource}function Yr(){if(Ur)return Nr;Ur=1;var t=ir(),r=ar(),n=t("keys");return Nr=function(t){return n[t]||(n[t]=r(t))}}function Hr(){return Br?Dr:(Br=1,Dr={})}function Zr(){if(Lr)return Mr;Lr=1;var t,r,n,e=function(){if(Rr)return kr;Rr=1;var t=s(),r=mt(),n=t.WeakMap;return kr=r(n)&&/native code/.test(String(n))}(),o=s(),i=bt(),u=xr(),c=cr(),a=or(),f=Yr(),l=Hr(),v="Object already initialized",p=o.TypeError,d=o.WeakMap;if(e||a.state){var h=a.state||(a.state=new d);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,r){if(h.has(t))throw new p(v);return r.facade=t,h.set(t,r),r},r=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var g=f("state");l[g]=!0,t=function(t,r){if(c(t,g))throw new p(v);return r.facade=t,u(t,g,r),r},r=function(t){return c(t,g)?t[g]:{}},n=function(t){return c(t,g)}}return Mr={set:t,get:r,has:n,enforce:function(e){return n(e)?r(e):t(e,{})},getterFor:function(t){return function(n){var e;if(!i(n)||(e=r(n)).type!==t)throw new p("Incompatible receiver, "+t+" required");return e}}}}function zr(){if(Wr)return Gr.exports;Wr=1;var t=pt(),r=w(),n=mt(),e=cr(),o=A(),i=function(){if(Tr)return Cr;Tr=1;var t=A(),r=cr(),n=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,o=r(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&e(n,"name").configurable);return Cr={EXISTS:o,PROPER:i,CONFIGURABLE:u}}().CONFIGURABLE,u=Vr(),c=Zr(),a=c.enforce,f=c.get,s=String,l=Object.defineProperty,v=t("".slice),p=t("".replace),d=t([].join),h=o&&!r(function(){return 8!==l(function(){},"length",{value:8}).length}),g=String(String).split("String"),y=Gr.exports=function(t,r,n){"Symbol("===v(s(r),0,7)&&(r="["+p(s(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(r="get "+r),n&&n.setter&&(r="set "+r),(!e(t,"name")||i&&t.name!==r)&&(o?l(t,"name",{value:r,configurable:!0}):t.name=r),h&&n&&e(n,"arity")&&t.length!==n.arity&&l(t,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?o&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=a(t);return e(u,"source")||(u.source=d(g,"string"==typeof r?r:"")),t};return Function.prototype.toString=y(function(){return n(this)&&f(this).source||u(this)},"toString"),Gr.exports}function qr(){if(Kr)return Fr;Kr=1;var t=mt(),r=jr(),n=zr(),e=er();return Fr=function(o,i,u,c){c||(c={});var a=c.enumerable,f=void 0!==c.name?c.name:i;if(t(u)&&n(u,f,c),c.global)a?o[i]=u:e(i,u);else{try{c.unsafe?o[i]&&(a=!0):delete o[i]}catch(t){}a?o[i]=u:r.f(o,i,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return o}}var Jr,Qr,Xr,_r,$r,tn,rn,nn,en,on,un,cn,an,fn,sn,ln,vn,pn={};function dn(){if(_r)return Xr;_r=1;var t=function(){if(Qr)return Jr;Qr=1;var t=Math.ceil,r=Math.floor;return Jr=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}}();return Xr=function(r){var n=+r;return n!=n||0===n?0:t(n)}}function hn(){if(tn)return $r;tn=1;var t=dn(),r=Math.max,n=Math.min;return $r=function(e,o){var i=t(e);return i<0?r(i+o,0):n(i,o)}}function gn(){if(nn)return rn;nn=1;var t=dn(),r=Math.min;return rn=function(n){var e=t(n);return e>0?r(e,9007199254740991):0}}function yn(){if(on)return en;on=1;var t=gn();return en=function(r){return t(r.length)}}function mn(){if(fn)return an;fn=1;var t=pt(),r=cr(),n=yt(),e=function(){if(cn)return un;cn=1;var t=yt(),r=hn(),n=yn(),e=function(e){return function(o,i,u){var c=t(o),a=n(c);if(0===a)return!e&&-1;var f,s=r(u,a);if(e&&i!=i){for(;a>s;)if((f=c[s++])!=f)return!0}else for(;a>s;s++)if((e||s in c)&&c[s]===i)return e||s||0;return!e&&-1}};return un={includes:e(!0),indexOf:e(!1)}}().indexOf,o=Hr(),i=t([].push);return an=function(t,u){var c,a=n(t),f=0,s=[];for(c in a)!r(o,c)&&r(a,c)&&i(s,c);for(;u.length>f;)r(a,c=u[f++])&&(~e(s,c)||i(s,c));return s}}function bn(){return ln?sn:(ln=1,sn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var wn,An,Sn,En,On,jn,xn,Cn,Tn,In,Pn,kn,Rn,Nn,Un,Dn,Bn,Mn,Ln,Wn,Fn,Kn,Gn,Vn,Yn,Hn,Zn,zn,qn={};function Jn(){if(Sn)return An;Sn=1;var t=wt(),r=pt(),n=function(){if(vn)return pn;vn=1;var t=mn(),r=bn().concat("length","prototype");return pn.f=Object.getOwnPropertyNames||function(n){return t(n,r)},pn}(),e=(wn||(wn=1,qn.f=Object.getOwnPropertySymbols),qn),o=Or(),i=r([].concat);return An=t("Reflect","ownKeys")||function(t){var r=n.f(o(t)),u=e.f;return u?i(r,u(t)):r}}function Qn(){if(On)return En;On=1;var t=cr(),r=Jn(),n=dr(),e=jr();return En=function(o,i,u){for(var c=r(i),a=e.f,f=n.f,s=0;s<c.length;s++){var l=c[s];t(o,l)||u&&t(u,l)||a(o,l,f(i,l))}}}function Xn(){if(xn)return jn;xn=1;var t=w(),r=mt(),n=/#|\.prototype\./,e=function(n,e){var a=i[o(n)];return a===c||a!==u&&(r(e)?t(e):!!e)},o=e.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",c=e.POLYFILL="P";return jn=e}function _n(){if(Tn)return Cn;Tn=1;var t=s(),r=dr().f,n=xr(),e=qr(),o=er(),i=Qn(),u=Xn();return Cn=function(c,a){var f,s,l,v,p,d=c.target,h=c.global,g=c.stat;if(f=h?t:g?t[d]||o(d,{}):t[d]&&t[d].prototype)for(s in a){if(v=a[s],l=c.dontCallGetSet?(p=r(f,s))&&p.value:f[s],!u(h?s:d+(g?".":"#")+s,c.forced)&&void 0!==l){if(typeof v==typeof l)continue;i(v,l)}(c.sham||l&&l.sham)&&n(v,"sham",!0),e(f,s,v,c)}}}function $n(){if(Pn)return In;Pn=1;var t=dt();return In=Array.isArray||function(r){return"Array"===t(r)}}function te(){if(Rn)return kn;Rn=1;var t=TypeError;return kn=function(r){if(r>9007199254740991)throw t("Maximum allowed index exceeded");return r}}function re(){if(Un)return Nn;Un=1;var t=A(),r=jr(),n=vt();return Nn=function(e,o,i){t?r.f(e,o,n(0,i)):e[o]=i}}function ne(){if(Bn)return Dn;Bn=1;var t={};return t[fr()("toStringTag")]="z",Dn="[object z]"===String(t)}function ee(){if(Ln)return Mn;Ln=1;var t=ne(),r=mt(),n=dt(),e=fr()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Mn=t?n:function(t){var u,c,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(c=function(t,r){try{return t[r]}catch(t){}}(u=o(t),e))?c:i?n(u):"Object"===(a=n(u))&&r(u.callee)?"Arguments":a}}function oe(){if(Fn)return Wn;Fn=1;var t=pt(),r=w(),n=mt(),e=ee(),o=wt(),i=Vr(),u=function(){},c=o("Reflect","construct"),a=/^\s*(?:class|function)\b/,f=t(a.exec),s=!a.test(u),l=function(t){if(!n(t))return!1;try{return c(u,[],t),!0}catch(t){return!1}},v=function(t){if(!n(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!f(a,i(t))}catch(t){return!0}};return v.sham=!0,Wn=!c||r(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?v:l}function ie(){if(Gn)return Kn;Gn=1;var t=$n(),r=oe(),n=bt(),e=fr()("species"),o=Array;return Kn=function(i){var u;return t(i)&&(u=i.constructor,(r(u)&&(u===o||t(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?o:u}}function ue(){if(Yn)return Vn;Yn=1;var t=ie();return Vn=function(r,n){return new(t(r))(0===n?0:n)}}function ce(){if(Zn)return Hn;Zn=1;var t=w(),r=fr(),n=Et(),e=r("species");return Hn=function(r){return n>=51||!t(function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[r](Boolean).foo})}}!function(){if(zn)return f;zn=1;var t=_n(),r=w(),n=$n(),e=bt(),o=ur(),i=yn(),u=te(),c=re(),a=ue(),s=ce(),l=fr(),v=Et(),p=l("isConcatSpreadable"),d=v>=51||!r(function(){var t=[];return t[p]=!1,t.concat()[0]!==t}),h=function(t){if(!e(t))return!1;var r=t[p];return void 0!==r?!!r:n(t)};t({target:"Array",proto:!0,arity:1,forced:!d||!s("concat")},{concat:function(t){var r,n,e,f,s,l=o(this),v=a(l,0),p=0;for(r=-1,e=arguments.length;r<e;r++)if(h(s=-1===r?l:arguments[r]))for(f=i(s),u(p+f),n=0;n<f;n++,p++)n in s&&c(v,p,s[n]);else u(p+1),c(v,p++,s);return v.length=p,v}})}();var ae,fe,se,le,ve,pe,de,he={};function ge(){if(fe)return ae;fe=1;var t=ee(),r=String;return ae=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}}!function(){if(de)return he;de=1;var t=_n(),r=function(){if(le)return se;le=1;var t=pt(),r=gt(),n=ge(),e=/"/g,o=t("".replace);return se=function(t,i,u,c){var a=n(r(t)),f="<"+i;return""!==u&&(f+=" "+u+'="'+o(n(c),e,""")+'"'),f+">"+a+"</"+i+">"}}(),n=function(){if(pe)return ve;pe=1;var t=w();return ve=function(r){return t(function(){var t=""[r]('"');return t!==t.toLowerCase()||t.split('"').length>3})}}();t({target:"String",proto:!0,forced:n("link")},{link:function(t){return r(this,"a","href",t)}})}();var ye,me,be,we={type:"link-card",elemToHtml:function(t,r){var n=t,e=n.title,o=void 0===e?"":e,i=n.link,u=void 0===i?"":i,c=n.iconImgSrc,a=void 0===c?"":c;return'<div data-w-e-type="link-card" data-w-e-is-void data-title="'.concat(o,'" data-link="').concat(u,'" data-iconImgSrc="').concat(a,'">\n <div class="info-container">\n <div class="title-container"><p>').concat(o,'</p></div>\n <div class="link-container"><span>').concat(u,'</span></div>\n </div>\n <div class="icon-container">\n <img src="').concat(a,'"/>\n </div>\n </div>')}},Ae={};!function(){if(be)return Ae;be=1;var t=ne(),r=qr(),n=function(){if(me)return ye;me=1;var t=ne(),r=ee();return ye=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",n,{unsafe:!0})}();var Se,Ee,Oe,je,xe,Ce,Te,Ie,Pe,ke,Re,Ne,Ue,De,Be,Me,Le,We,Fe,Ke,Ge,Ve,Ye,He,Ze,ze,qe,Je,Qe,Xe,_e,$e,to,ro,no,eo,oo,io,uo,co,ao,fo,so,lo,vo,po,ho,go,yo,mo,bo,wo,Ao,So,Eo,Oo,jo,xo,Co,To,Io={};function Po(){if(Ee)return Se;Ee=1;var t=s(),r=St(),n=dt(),e=function(t){return r.slice(0,t.length)===t};return Se=e("Bun/")?"BUN":e("Cloudflare-Workers")?"CLOUDFLARE":e("Deno/")?"DENO":e("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function ko(){if(je)return Oe;je=1;var t=Po();return Oe="NODE"===t}function Ro(){if(Ce)return xe;Ce=1;var t=s();return xe=t}function No(){if(ke)return Pe;ke=1;var t=bt();return Pe=function(r){return t(r)||null===r}}function Uo(){if(Ne)return Re;Ne=1;var t=No(),r=String,n=TypeError;return Re=function(e){if(t(e))return e;throw new n("Can't set "+r(e)+" as a prototype")}}function Do(){if(De)return Ue;De=1;var t=function(){if(Ie)return Te;Ie=1;var t=pt(),r=Tt();return Te=function(n,e,o){try{return t(r(Object.getOwnPropertyDescriptor(n,e)[o]))}catch(t){}}}(),r=bt(),n=gt(),e=Uo();return Ue=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,u={};try{(o=t(Object.prototype,"__proto__","set"))(u,[]),i=u instanceof Array}catch(t){}return function(t,u){return n(t),e(u),r(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function Bo(){if(Me)return Be;Me=1;var t=jr().f,r=cr(),n=fr()("toStringTag");return Be=function(e,o,i){e&&!i&&(e=e.prototype),e&&!r(e,n)&&t(e,n,{configurable:!0,value:o})}}function Mo(){if(We)return Le;We=1;var t=zr(),r=jr();return Le=function(n,e,o){return o.get&&t(o.get,e,{getter:!0}),o.set&&t(o.set,e,{setter:!0}),r.f(n,e,o)}}function Lo(){if(Ke)return Fe;Ke=1;var t=wt(),r=Mo(),n=fr(),e=A(),o=n("species");return Fe=function(n){var i=t(n);e&&i&&!i[o]&&r(i,o,{configurable:!0,get:function(){return this}})}}function Wo(){if(Ve)return Ge;Ve=1;var t=At(),r=TypeError;return Ge=function(n,e){if(t(e,n))return n;throw new r("Incorrect invocation")}}function Fo(){if(He)return Ye;He=1;var t=oe(),r=Ct(),n=TypeError;return Ye=function(e){if(t(e))return e;throw new n(r(e)+" is not a constructor")}}function Ko(){if(ze)return Ze;ze=1;var t=Or(),r=Fo(),n=ht(),e=fr()("species");return Ze=function(o,i){var u,c=t(o).constructor;return void 0===c||n(u=t(c)[e])?i:r(u)}}function Go(){if(Je)return qe;Je=1;var t=S(),r=Function.prototype,n=r.apply,e=r.call;return qe="object"==typeof Reflect&&Reflect.apply||(t?e.bind(n):function(){return e.apply(n,arguments)}),qe}function Vo(){if(Xe)return Qe;Xe=1;var t=dt(),r=pt();return Qe=function(n){if("Function"===t(n))return r(n)}}function Yo(){if($e)return _e;$e=1;var t=Vo(),r=Tt(),n=S(),e=t(t.bind);return _e=function(t,o){return r(t),void 0===o?t:n?e(t,o):function(){return t.apply(o,arguments)}},_e}function Ho(){if(ro)return to;ro=1;var t=wt();return to=t("document","documentElement")}function Zo(){if(eo)return no;eo=1;var t=pt();return no=t([].slice)}function zo(){if(io)return oo;io=1;var t=TypeError;return oo=function(r,n){if(r<n)throw new t("Not enough arguments");return r}}function qo(){if(co)return uo;co=1;var t=St();return uo=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function Jo(){if(fo)return ao;fo=1;var t,r,n,e,o=s(),i=Go(),u=Yo(),c=mt(),a=cr(),f=w(),l=Ho(),v=Zo(),p=vr(),d=zo(),h=qo(),g=ko(),y=o.setImmediate,m=o.clearImmediate,b=o.process,A=o.Dispatch,S=o.Function,E=o.MessageChannel,O=o.String,j=0,x={},C="onreadystatechange";f(function(){t=o.location});var T=function(t){if(a(x,t)){var r=x[t];delete x[t],r()}},I=function(t){return function(){T(t)}},P=function(t){T(t.data)},k=function(r){o.postMessage(O(r),t.protocol+"//"+t.host)};return y&&m||(y=function(t){d(arguments.length,1);var n=c(t)?t:S(t),e=v(arguments,1);return x[++j]=function(){i(n,void 0,e)},r(j),j},m=function(t){delete x[t]},g?r=function(t){b.nextTick(I(t))}:A&&A.now?r=function(t){A.now(I(t))}:E&&!h?(e=(n=new E).port2,n.port1.onmessage=P,r=u(e.postMessage,e)):o.addEventListener&&c(o.postMessage)&&!o.importScripts&&t&&"file:"!==t.protocol&&!f(k)?(r=k,o.addEventListener("message",P,!1)):r=C in p("script")?function(t){l.appendChild(p("script"))[C]=function(){l.removeChild(this),T(t)}}:function(t){setTimeout(I(t),0)}),ao={set:y,clear:m}}function Qo(){if(lo)return so;lo=1;var t=s(),r=A(),n=Object.getOwnPropertyDescriptor;return so=function(e){if(!r)return t[e];var o=n(t,e);return o&&o.value}}function Xo(){if(po)return vo;po=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var r={item:t,next:null},n=this.tail;n?n.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},vo=t}function _o(){if(wo)return bo;wo=1;var t,r,n,e,o,i=s(),u=Qo(),c=Yo(),a=Jo().set,f=Xo(),l=qo(),v=function(){if(go)return ho;go=1;var t=St();return ho=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),p=function(){if(mo)return yo;mo=1;var t=St();return yo=/web0s(?!.*chrome)/i.test(t)}(),d=ko(),h=i.MutationObserver||i.WebKitMutationObserver,g=i.document,y=i.process,m=i.Promise,b=u("queueMicrotask");if(!b){var w=new f,A=function(){var r,n;for(d&&(r=y.domain)&&r.exit();n=w.get();)try{n()}catch(r){throw w.head&&t(),r}r&&r.enter()};l||d||p||!h||!g?!v&&m&&m.resolve?((e=m.resolve(void 0)).constructor=m,o=c(e.then,e),t=function(){o(A)}):d?t=function(){y.nextTick(A)}:(a=c(a,i),t=function(){a(A)}):(r=!0,n=g.createTextNode(""),new h(A).observe(n,{characterData:!0}),t=function(){n.data=r=!r}),b=function(r){w.head||t(),w.add(r)}}return bo=b}function $o(){return So||(So=1,Ao=function(t,r){try{1===arguments.length?console.error(t):console.error(t,r)}catch(t){}}),Ao}function ti(){return Oo?Eo:(Oo=1,Eo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function ri(){if(xo)return jo;xo=1;var t=s();return jo=t.Promise}function ni(){if(To)return Co;To=1;var t=s(),r=ri(),n=mt(),e=Xn(),o=Vr(),i=fr(),u=Po(),c=nr(),a=Et(),f=r&&r.prototype,l=i("species"),v=!1,p=n(t.PromiseRejectionEvent),d=e("Promise",function(){var t=o(r),n=t!==String(r);if(!n&&66===a)return!0;if(c&&(!f.catch||!f.finally))return!0;if(!a||a<51||!/native code/.test(t)){var e=new r(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((e.constructor={})[l]=i,!(v=e.then(function(){})instanceof i))return!0}return!(n||"BROWSER"!==u&&"DENO"!==u||p)});return Co={CONSTRUCTOR:d,REJECTION_EVENT:p,SUBCLASSING:v}}var ei,oi,ii={};function ui(){if(ei)return ii;ei=1;var t=Tt(),r=TypeError,n=function(n){var e,o;this.promise=new n(function(t,n){if(void 0!==e||void 0!==o)throw new r("Bad Promise constructor");e=t,o=n}),this.resolve=t(e),this.reject=t(o)};return ii.f=function(t){return new n(t)},ii}var ci,ai,fi,si,li,vi,pi,di,hi,gi,yi,mi,bi,wi,Ai,Si,Ei,Oi={};function ji(){return ai?ci:(ai=1,ci={})}function xi(){if(si)return fi;si=1;var t=fr(),r=ji(),n=t("iterator"),e=Array.prototype;return fi=function(t){return void 0!==t&&(r.Array===t||e[n]===t)}}function Ci(){if(vi)return li;vi=1;var t=ee(),r=It(),n=ht(),e=ji(),o=fr()("iterator");return li=function(i){if(!n(i))return r(i,o)||r(i,"@@iterator")||e[t(i)]}}function Ti(){if(di)return pi;di=1;var t=E(),r=Tt(),n=Or(),e=Ct(),o=Ci(),i=TypeError;return pi=function(u,c){var a=arguments.length<2?o(u):c;if(r(a))return n(t(a,u));throw new i(e(u)+" is not iterable")},pi}function Ii(){if(gi)return hi;gi=1;var t=E(),r=Or(),n=It();return hi=function(e,o,i){var u,c;r(e);try{if(!(u=n(e,"return"))){if("throw"===o)throw i;return i}u=t(u,e)}catch(t){c=!0,u=t}if("throw"===o)throw i;if(c)throw u;return r(u),i}}function Pi(){if(mi)return yi;mi=1;var t=Yo(),r=E(),n=Or(),e=Ct(),o=xi(),i=yn(),u=At(),c=Ti(),a=Ci(),f=Ii(),s=TypeError,l=function(t,r){this.stopped=t,this.result=r},v=l.prototype;return yi=function(p,d,h){var g,y,m,b,w,A,S,E=h&&h.that,O=!(!h||!h.AS_ENTRIES),j=!(!h||!h.IS_RECORD),x=!(!h||!h.IS_ITERATOR),C=!(!h||!h.INTERRUPTED),T=t(d,E),I=function(t){return g&&f(g,"normal"),new l(!0,t)},P=function(t){return O?(n(t),C?T(t[0],t[1],I):T(t[0],t[1])):C?T(t,I):T(t)};if(j)g=p.iterator;else if(x)g=p;else{if(!(y=a(p)))throw new s(e(p)+" is not iterable");if(o(y)){for(m=0,b=i(p);b>m;m++)if((w=P(p[m]))&&u(v,w))return w;return new l(!1)}g=c(p,y)}for(A=j?p.next:g.next;!(S=r(A,g)).done;){try{w=P(S.value)}catch(t){f(g,"throw",t)}if("object"==typeof w&&w&&u(v,w))return w}return new l(!1)}}function ki(){if(wi)return bi;wi=1;var t=fr()("iterator"),r=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){r=!0}};e[t]=function(){return this},Array.from(e,function(){throw 2})}catch(t){}return bi=function(n,e){try{if(!e&&!r)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},n(i)}catch(t){}return o}}function Ri(){if(Si)return Ai;Si=1;var t=ri(),r=ki(),n=ni().CONSTRUCTOR;return Ai=n||!r(function(r){t.all(r).then(void 0,function(){})})}var Ni,Ui={};var Di,Bi={};var Mi,Li={};var Wi,Fi,Ki,Gi,Vi={};function Yi(){if(Fi)return Wi;Fi=1;var t=Or(),r=bt(),n=ui();return Wi=function(e,o){if(t(e),r(o)&&o.constructor===e)return o;var i=n.f(e);return(0,i.resolve)(o),i.promise}}function Hi(t,r,n,e){return new(n||(n=Promise))(function(o,i){function u(t){try{a(e.next(t))}catch(t){i(t)}}function c(t){try{a(e.throw(t))}catch(t){i(t)}}function a(t){var r;t.done?o(t.value):(r=t.value,r instanceof n?r:new n(function(t){t(r)})).then(u,c)}a((e=e.apply(t,r||[])).next())})}function Zi(t,r){var n,e,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(a){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(i=0)),i;)try{if(n=1,e&&(o=2&c[0]?e.return:c[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,c[1])).done)return o;switch(e=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,e=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(t,i)}catch(t){c=[6,t],e=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}}Gi||(Gi=1,function(){if(oi)return Io;oi=1;var t,r,n,e,o=_n(),i=nr(),u=ko(),c=s(),a=Ro(),f=E(),l=qr(),v=Do(),p=Bo(),d=Lo(),h=Tt(),g=mt(),y=bt(),m=Wo(),b=Ko(),w=Jo().set,A=_o(),S=$o(),O=ti(),j=Xo(),x=Zr(),C=ri(),T=ni(),I=ui(),P="Promise",k=T.CONSTRUCTOR,R=T.REJECTION_EVENT,N=T.SUBCLASSING,U=x.getterFor(P),D=x.set,B=C&&C.prototype,M=C,L=B,W=c.TypeError,F=c.document,K=c.process,G=I.f,V=G,Y=!!(F&&F.createEvent&&c.dispatchEvent),H="unhandledrejection",Z=function(t){var r;return!(!y(t)||!g(r=t.then))&&r},z=function(t,r){var n,e,o,i=r.value,u=1===r.state,c=u?t.ok:t.fail,a=t.resolve,s=t.reject,l=t.domain;try{c?(u||(2===r.rejection&&_(r),r.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===t.promise?s(new W("Promise-chain cycle")):(e=Z(n))?f(e,n,a,s):a(n)):s(i)}catch(t){l&&!o&&l.exit(),s(t)}},q=function(t,r){t.notified||(t.notified=!0,A(function(){for(var n,e=t.reactions;n=e.get();)z(n,t);t.notified=!1,r&&!t.rejection&&Q(t)}))},J=function(t,r,n){var e,o;Y?((e=F.createEvent("Event")).promise=r,e.reason=n,e.initEvent(t,!1,!0),c.dispatchEvent(e)):e={promise:r,reason:n},!R&&(o=c["on"+t])?o(e):t===H&&S("Unhandled promise rejection",n)},Q=function(t){f(w,c,function(){var r,n=t.facade,e=t.value;if(X(t)&&(r=O(function(){u?K.emit("unhandledRejection",e,n):J(H,n,e)}),t.rejection=u||X(t)?2:1,r.error))throw r.value})},X=function(t){return 1!==t.rejection&&!t.parent},_=function(t){f(w,c,function(){var r=t.facade;u?K.emit("rejectionHandled",r):J("rejectionhandled",r,t.value)})},$=function(t,r,n){return function(e){t(r,e,n)}},tt=function(t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,q(t,!0))},rt=function(t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===r)throw new W("Promise can't be resolved itself");var e=Z(r);e?A(function(){var n={done:!1};try{f(e,r,$(rt,n,t),$(tt,n,t))}catch(r){tt(n,r,t)}}):(t.value=r,t.state=1,q(t,!1))}catch(r){tt({done:!1},r,t)}}};if(k&&(L=(M=function(r){m(this,L),h(r),f(t,this);var n=U(this);try{r($(rt,n),$(tt,n))}catch(t){tt(n,t)}}).prototype,(t=function(t){D(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:0,value:null})}).prototype=l(L,"then",function(t,r){var n=U(this),e=G(b(this,M));return n.parent=!0,e.ok=!g(t)||t,e.fail=g(r)&&r,e.domain=u?K.domain:void 0,0===n.state?n.reactions.add(e):A(function(){z(e,n)}),e.promise}),r=function(){var r=new t,n=U(r);this.promise=r,this.resolve=$(rt,n),this.reject=$(tt,n)},I.f=G=function(t){return t===M||t===n?new r(t):V(t)},!i&&g(C)&&B!==Object.prototype)){e=B.then,N||l(B,"then",function(t,r){var n=this;return new M(function(t,r){f(e,n,t,r)}).then(t,r)},{unsafe:!0});try{delete B.constructor}catch(t){}v&&v(B,L)}o({global:!0,constructor:!0,wrap:!0,forced:k},{Promise:M}),n=a.Promise,p(M,P,!1,!0),d(P)}(),function(){if(Ei)return Oi;Ei=1;var t=_n(),r=E(),n=Tt(),e=ui(),o=ti(),i=Pi();t({target:"Promise",stat:!0,forced:Ri()},{all:function(t){var u=this,c=e.f(u),a=c.resolve,f=c.reject,s=o(function(){var e=n(u.resolve),o=[],c=0,s=1;i(t,function(t){var n=c++,i=!1;s++,r(e,u,t).then(function(t){i||(i=!0,o[n]=t,--s||a(o))},f)}),--s||a(o)});return s.error&&f(s.value),c.promise}})}(),function(){if(Ni)return Ui;Ni=1;var t=_n(),r=nr(),n=ni().CONSTRUCTOR,e=ri(),o=wt(),i=mt(),u=qr(),c=e&&e.prototype;if(t({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&i(e)){var a=o("Promise").prototype.catch;c.catch!==a&&u(c,"catch",a,{unsafe:!0})}}(),function(){if(Di)return Bi;Di=1;var t=_n(),r=E(),n=Tt(),e=ui(),o=ti(),i=Pi();t({target:"Promise",stat:!0,forced:Ri()},{race:function(t){var u=this,c=e.f(u),a=c.reject,f=o(function(){var e=n(u.resolve);i(t,function(t){r(e,u,t).then(c.resolve,a)})});return f.error&&a(f.value),c.promise}})}(),function(){if(Mi)return Li;Mi=1;var t=_n(),r=ui();t({target:"Promise",stat:!0,forced:ni().CONSTRUCTOR},{reject:function(t){var n=r.f(this);return(0,n.reject)(t),n.promise}})}(),function(){if(Ki)return Vi;Ki=1;var t=_n(),r=wt(),n=nr(),e=ri(),o=ni().CONSTRUCTOR,i=Yi(),u=r("Promise"),c=n&&!o;t({target:"Promise",stat:!0,forced:n||o},{resolve:function(t){return i(c&&this===u?e:this,t)}})}()),"function"==typeof SuppressedError&&SuppressedError;var zi,qi,Ji,Qi,Xi={};function _i(){if(qi)return zi;qi=1;var t=Or();return zi=function(){var r=t(this),n="";return r.hasIndices&&(n+="d"),r.global&&(n+="g"),r.ignoreCase&&(n+="i"),r.multiline&&(n+="m"),r.dotAll&&(n+="s"),r.unicode&&(n+="u"),r.unicodeSets&&(n+="v"),r.sticky&&(n+="y"),n}}var $i,tu,ru,nu,eu,ou,iu,uu,cu,au,fu,su,lu={};function vu(){if(tu)return $i;tu=1;var t=mn(),r=bn();return $i=Object.keys||function(n){return t(n,r)}}function pu(){if(eu)return nu;eu=1;var t,r=Or(),n=function(){if(ru)return lu;ru=1;var t=A(),r=Er(),n=jr(),e=Or(),o=yt(),i=vu();return lu.f=t&&!r?Object.defineProperties:function(t,r){e(t);for(var u,c=o(r),a=i(r),f=a.length,s=0;f>s;)n.f(t,u=a[s++],c[u]);return t},lu}(),e=bn(),o=Hr(),i=Ho(),u=vr(),c=Yr(),a="prototype",f="script",s=c("IE_PROTO"),l=function(){},v=function(t){return"<"+f+">"+t+"</"+f+">"},p=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},d=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var r,n,o;d="undefined"!=typeof document?document.domain&&t?p(t):(n=u("iframe"),o="java"+f+":",n.style.display="none",i.appendChild(n),n.src=String(o),(r=n.contentWindow.document).open(),r.write(v("document.F=Object")),r.close(),r.F):p(t);for(var c=e.length;c--;)delete d[a][e[c]];return d()};return o[s]=!0,nu=Object.create||function(t,e){var o;return null!==t?(l[a]=r(t),o=new l,l[a]=null,o[s]=t):o=d(),void 0===e?o:n.f(o,e)}}function du(){if(fu)return au;fu=1;var t,r,n=E(),e=pt(),o=ge(),i=_i(),u=function(){if(Qi)return Ji;Qi=1;var t=w(),r=s().RegExp,n=t(function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),e=n||t(function(){return!r("a","y").sticky}),o=n||t(function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return Ji={BROKEN_CARET:o,MISSED_STICKY:e,UNSUPPORTED_Y:n}}(),c=ir(),a=pu(),f=Zr().get,l=function(){if(iu)return ou;iu=1;var t=w(),r=s().RegExp;return ou=t(function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),v=function(){if(cu)return uu;cu=1;var t=w(),r=s().RegExp;return uu=t(function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),p=c("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,h=d,g=e("".charAt),y=e("".indexOf),m=e("".replace),b=e("".slice),A=(r=/b*/g,n(d,t=/a/,"a"),n(d,r,"a"),0!==t.lastIndex||0!==r.lastIndex),S=u.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];return(A||O||S||l||v)&&(h=function(t){var r,e,u,c,s,l,v,w=this,E=f(w),j=o(t),x=E.raw;if(x)return x.lastIndex=w.lastIndex,r=n(h,x,j),w.lastIndex=x.lastIndex,r;var C=E.groups,T=S&&w.sticky,I=n(i,w),P=w.source,k=0,R=j;if(T&&(I=m(I,"y",""),-1===y(I,"g")&&(I+="g"),R=b(j,w.lastIndex),w.lastIndex>0&&(!w.multiline||w.multiline&&"\n"!==g(j,w.lastIndex-1))&&(P="(?: "+P+")",R=" "+R,k++),e=new RegExp("^(?:"+P+")",I)),O&&(e=new RegExp("^"+P+"$(?!\\s)",I)),A&&(u=w.lastIndex),c=n(d,T?e:w,R),T?c?(c.input=b(c.input,k),c[0]=b(c[0],k),c.index=w.lastIndex,w.lastIndex+=c[0].length):w.lastIndex=0:A&&c&&(w.lastIndex=w.global?c.index+c[0].length:u),O&&c&&c.length>1&&n(p,c[0],e,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(c[s]=void 0)}),c&&C)for(c.groups=l=a(null),s=0;s<C.length;s++)l[(v=C[s])[0]]=c[v[1]];return c}),au=h}!function(){if(su)return Xi;su=1;var t=_n(),r=du();t({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})}();var hu=function(){function t(){this.title=r("linkCard.toCard"),this.iconSvg="",this.tag="button"}return t.prototype.getSelectedLinkElem=function(t){var r=n.getSelectedNodeByType(t,"link");return null==r?null:r},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.exec=function(t,r){return Hi(this,void 0,void 0,function(){var r,i,u,c,a,f,s,l,v,p;return Zi(this,function(d){switch(d.label){case 0:if(this.isDisabled(t))return[2];if(null==(r=this.getSelectedLinkElem(t)))return[2];if("function"!=typeof(i=t.getMenuConfig("convertToLinkCard").getLinkCardInfo))return[2];u=r.url,c=o.string(r),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,i(c,u)];case 2:return a=d.sent(),f=a.title,s=a.iconImgSrc,l=n.findPath(t,r),e.removeNodes(t,{at:l}),e.splitNodes(t,{always:!0}),v={type:"link-card",link:u,title:f,iconImgSrc:s,children:[{text:""}]},e.insertNodes(t,v),[3,4];case 3:return p=d.sent(),console.error("Convert to link-cart error",p),[3,4];case 4:return[2]}})})},t}(),gu={key:"convertToLinkCard",factory:function(){return new hu},config:{getLinkCardInfo:function(t,r){return Hi(this,void 0,void 0,function(){return Zi(this,function(r){return[2,new Promise(function(r){setTimeout(function(){r({title:t,iconImgSrc:""})},100)})]})})}}};var yu,mu,bu,wu,Au,Su,Eu,Ou={selector:'div[data-w-e-type="link-card"]',parseElemHtml:function(t,r,n){return{type:"link-card",link:t.getAttribute("data-link")||"",title:t.getAttribute("data-title")||"",iconImgSrc:t.getAttribute("data-iconImgSrc")||"",children:[{text:""}]}}},ju={};function xu(){if(wu)return bu;wu=1;var t=function(){if(mu)return yu;mu=1;var t=bt(),r=dt(),n=fr()("match");return yu=function(e){var o;return t(e)&&(void 0!==(o=e[n])?!!o:"RegExp"===r(e))}}(),r=TypeError;return bu=function(n){if(t(n))throw new r("The method doesn't accept regular expressions");return n}}!function(){if(Eu)return ju;Eu=1;var t,r=_n(),n=Vo(),e=dr().f,o=gn(),i=ge(),u=xu(),c=gt(),a=function(){if(Su)return Au;Su=1;var t=fr()("match");return Au=function(r){var n=/./;try{"/./"[r](n)}catch(e){try{return n[t]=!1,"/./"[r](n)}catch(t){}}return!1}}(),f=nr(),s=n("".slice),l=Math.min,v=a("startsWith");r({target:"String",proto:!0,forced:!!(f||v||(t=e(String.prototype,"startsWith"),!t||t.writable))&&!v},{startsWith:function(t){var r=i(c(this));u(t);var n=o(l(arguments.length>1?arguments[1]:void 0,r.length)),e=i(t);return s(r,n,n+e.length)===e}})}();var Cu={editorPlugin:function(t){var r=t.isVoid,o=t.normalizeNode,i=t;return i.isVoid=function(t){return"link-card"===n.getNodeType(t)||r(t)},i.normalizeNode=function(t){var r=function(t,r){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,o,i=n.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(e=i.next()).done;)u.push(e.value)}catch(t){o={error:t}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}(t,2),u=r[0],c=r[1];if("link-card"!==n.getNodeType(u))return o([u,c]);var a=(i.children||[])[c[0]+1]||{},f=n.getNodeType(a);if("paragraph"!==f&&"blockquote"!==f&&!f.startsWith("header")){var s=[c[0]+1];e.insertNodes(i,{type:"paragraph",children:[{text:""}]},{at:s})}},i},renderElems:[{type:"link-card",renderElem:function(t,r,e){var o=n.isNodeSelected(e,t),u=t,c=u.title,a=u.link,f=u.iconImgSrc,s=i("div",{props:{className:"w-e-textarea-link-card-text-container"}},[i("p",{props:{className:"w-e-link-card-title"}},c),i("span",{props:{className:"w-e-link-card-url",title:a}},a)]),l=i("div",{props:{className:"w-e-textarea-link-card-icon-container"}},[i("img",{props:{src:f||"data:image/png;base64,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"}})]);return i("div",{props:{contentEditable:!1,className:"w-e-textarea-link-card-container"},dataset:{selected:o?"true":"",href:a},on:{mousedown:function(t){return t.preventDefault()},click:function(t){o||window.open(a,"_blank","noopener,noreferrer")}}},[s,l])}}],elemsToHtml:[we],parseElemsHtml:[Ou],menus:[gu]};export{Cu as default};
|
|
1
|
+
import{i18nAddResources as t,t as r,DomEditor as n,SlateTransforms as e,SlateNode as o}from"@wangeditor-next/editor";import{h as i}from"snabbdom";t("en",{linkCard:{toCard:"To Card"}}),t("zh-CN",{linkCard:{toCard:"转为卡片"}});var u,c,a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},f={};function s(){if(c)return u;c=1;var t=function(t){return t&&t.Math===Math&&t};return u=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof a&&a)||t("object"==typeof u&&u)||function(){return this}()||Function("return this")()}var l,v,p,d,h,g,y,m,b={};function w(){return v?l:(v=1,l=function(t){try{return!!t()}catch(t){return!0}})}function A(){if(d)return p;d=1;var t=w();return p=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function S(){if(g)return h;g=1;var t=w();return h=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function E(){if(m)return y;m=1;var t=S(),r=Function.prototype.call;return y=t?r.bind(r):function(){return r.apply(r,arguments)},y}var O,j,x,C,T,I,P,k,R,N,U,D,B,M,L,W,F,K,G,V,Y,H,Z,z,q,J,Q,X,_,$,tt,rt,nt,et,ot,it,ut,ct,at,ft,st,lt={};function vt(){return x?j:(x=1,j=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function pt(){if(T)return C;T=1;var t=S(),r=Function.prototype,n=r.call,e=t&&r.bind.bind(n,n);return C=t?e:function(t){return function(){return n.apply(t,arguments)}},C}function dt(){if(P)return I;P=1;var t=pt(),r=t({}.toString),n=t("".slice);return I=function(t){return n(r(t),8,-1)}}function ht(){return U?N:(U=1,N=function(t){return null==t})}function gt(){if(B)return D;B=1;var t=ht(),r=TypeError;return D=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}function yt(){if(L)return M;L=1;var t=function(){if(R)return k;R=1;var t=pt(),r=w(),n=dt(),e=Object,o=t("".split);return k=r(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):e(t)}:e}(),r=gt();return M=function(n){return t(r(n))}}function mt(){if(F)return W;F=1;var t="object"==typeof document&&document.all;return W=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function bt(){if(G)return K;G=1;var t=mt();return K=function(r){return"object"==typeof r?null!==r:t(r)}}function wt(){if(Y)return V;Y=1;var t=s(),r=mt();return V=function(n,e){return arguments.length<2?(o=t[n],r(o)?o:void 0):t[n]&&t[n][e];var o},V}function At(){if(Z)return H;Z=1;var t=pt();return H=t({}.isPrototypeOf)}function St(){if(q)return z;q=1;var t=s().navigator,r=t&&t.userAgent;return z=r?String(r):""}function Et(){if(Q)return J;Q=1;var t,r,n=s(),e=St(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,c=u&&u.v8;return c&&(r=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(r=+t[1]),J=r}function Ot(){if(_)return X;_=1;var t=Et(),r=w(),n=s().String;return X=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!n(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function jt(){if(tt)return $;tt=1;var t=Ot();return $=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function xt(){if(nt)return rt;nt=1;var t=wt(),r=mt(),n=At(),e=jt(),o=Object;return rt=e?function(t){return"symbol"==typeof t}:function(e){var i=t("Symbol");return r(i)&&n(i.prototype,o(e))}}function Ct(){if(ot)return et;ot=1;var t=String;return et=function(r){try{return t(r)}catch(t){return"Object"}}}function Tt(){if(ut)return it;ut=1;var t=mt(),r=Ct(),n=TypeError;return it=function(e){if(t(e))return e;throw new n(r(e)+" is not a function")}}function It(){if(at)return ct;at=1;var t=Tt(),r=ht();return ct=function(n,e){var o=n[e];return r(o)?void 0:t(o)}}function Pt(){if(st)return ft;st=1;var t=E(),r=mt(),n=bt(),e=TypeError;return ft=function(o,i){var u,c;if("string"===i&&r(u=o.toString)&&!n(c=t(u,o)))return c;if(r(u=o.valueOf)&&!n(c=t(u,o)))return c;if("string"!==i&&r(u=o.toString)&&!n(c=t(u,o)))return c;throw new e("Can't convert object to primitive value")}}var kt,Rt,Nt,Ut,Dt,Bt,Mt,Lt,Wt,Ft,Kt,Gt,Vt,Yt,Ht,Zt,zt,qt,Jt,Qt,Xt,_t,$t,tr,rr={exports:{}};function nr(){return Rt?kt:(Rt=1,kt=!1)}function er(){if(Ut)return Nt;Ut=1;var t=s(),r=Object.defineProperty;return Nt=function(n,e){try{r(t,n,{value:e,configurable:!0,writable:!0})}catch(r){t[n]=e}return e}}function or(){if(Dt)return rr.exports;Dt=1;var t=nr(),r=s(),n=er(),e="__core-js_shared__",o=rr.exports=r[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.45.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.0/LICENSE",source:"https://github.com/zloirock/core-js"}),rr.exports}function ir(){if(Mt)return Bt;Mt=1;var t=or();return Bt=function(r,n){return t[r]||(t[r]=n||{})}}function ur(){if(Wt)return Lt;Wt=1;var t=gt(),r=Object;return Lt=function(n){return r(t(n))}}function cr(){if(Kt)return Ft;Kt=1;var t=pt(),r=ur(),n=t({}.hasOwnProperty);return Ft=Object.hasOwn||function(t,e){return n(r(t),e)}}function ar(){if(Vt)return Gt;Vt=1;var t=pt(),r=0,n=Math.random(),e=t(1.1.toString);return Gt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++r+n,36)}}function fr(){if(Ht)return Yt;Ht=1;var t=s(),r=ir(),n=cr(),e=ar(),o=Ot(),i=jt(),u=t.Symbol,c=r("wks"),a=i?u.for||u:u&&u.withoutSetter||e;return Yt=function(t){return n(c,t)||(c[t]=o&&n(u,t)?u[t]:a("Symbol."+t)),c[t]}}function sr(){if(zt)return Zt;zt=1;var t=E(),r=bt(),n=xt(),e=It(),o=Pt(),i=fr(),u=TypeError,c=i("toPrimitive");return Zt=function(i,a){if(!r(i)||n(i))return i;var f,s=e(i,c);if(s){if(void 0===a&&(a="default"),f=t(s,i,a),!r(f)||n(f))return f;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),o(i,a)}}function lr(){if(Jt)return qt;Jt=1;var t=sr(),r=xt();return qt=function(n){var e=t(n,"string");return r(e)?e:e+""}}function vr(){if(Xt)return Qt;Xt=1;var t=s(),r=bt(),n=t.document,e=r(n)&&r(n.createElement);return Qt=function(t){return e?n.createElement(t):{}}}function pr(){if($t)return _t;$t=1;var t=A(),r=w(),n=vr();return _t=!t&&!r(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function dr(){if(tr)return b;tr=1;var t=A(),r=E(),n=function(){if(O)return lt;O=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);return lt.f=n?function(t){var n=r(this,t);return!!n&&n.enumerable}:t,lt}(),e=vt(),o=yt(),i=lr(),u=cr(),c=pr(),a=Object.getOwnPropertyDescriptor;return b.f=t?a:function(t,f){if(t=o(t),f=i(f),c)try{return a(t,f)}catch(t){}if(u(t,f))return e(!r(n.f,t,f),t[f])},b}var hr,gr,yr,mr,br,wr,Ar,Sr={};function Er(){if(gr)return hr;gr=1;var t=A(),r=w();return hr=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Or(){if(mr)return yr;mr=1;var t=bt(),r=String,n=TypeError;return yr=function(e){if(t(e))return e;throw new n(r(e)+" is not an object")}}function jr(){if(br)return Sr;br=1;var t=A(),r=pr(),n=Er(),e=Or(),o=lr(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,a="enumerable",f="configurable",s="writable";return Sr.f=t?n?function(t,r,n){if(e(t),r=o(r),e(n),"function"==typeof t&&"prototype"===r&&"value"in n&&s in n&&!n[s]){var i=c(t,r);i&&i[s]&&(t[r]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:a in n?n[a]:i[a],writable:!1})}return u(t,r,n)}:u:function(t,n,c){if(e(t),n=o(n),e(c),r)try{return u(t,n,c)}catch(t){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(t[n]=c.value),t},Sr}function xr(){if(Ar)return wr;Ar=1;var t=A(),r=jr(),n=vt();return wr=t?function(t,e,o){return r.f(t,e,n(1,o))}:function(t,r,n){return t[r]=n,t}}var Cr,Tr,Ir,Pr,kr,Rr,Nr,Ur,Dr,Br,Mr,Lr,Wr,Fr,Kr,Gr={exports:{}};function Vr(){if(Pr)return Ir;Pr=1;var t=pt(),r=mt(),n=or(),e=t(Function.toString);return r(n.inspectSource)||(n.inspectSource=function(t){return e(t)}),Ir=n.inspectSource}function Yr(){if(Ur)return Nr;Ur=1;var t=ir(),r=ar(),n=t("keys");return Nr=function(t){return n[t]||(n[t]=r(t))}}function Hr(){return Br?Dr:(Br=1,Dr={})}function Zr(){if(Lr)return Mr;Lr=1;var t,r,n,e=function(){if(Rr)return kr;Rr=1;var t=s(),r=mt(),n=t.WeakMap;return kr=r(n)&&/native code/.test(String(n))}(),o=s(),i=bt(),u=xr(),c=cr(),a=or(),f=Yr(),l=Hr(),v="Object already initialized",p=o.TypeError,d=o.WeakMap;if(e||a.state){var h=a.state||(a.state=new d);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,r){if(h.has(t))throw new p(v);return r.facade=t,h.set(t,r),r},r=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var g=f("state");l[g]=!0,t=function(t,r){if(c(t,g))throw new p(v);return r.facade=t,u(t,g,r),r},r=function(t){return c(t,g)?t[g]:{}},n=function(t){return c(t,g)}}return Mr={set:t,get:r,has:n,enforce:function(e){return n(e)?r(e):t(e,{})},getterFor:function(t){return function(n){var e;if(!i(n)||(e=r(n)).type!==t)throw new p("Incompatible receiver, "+t+" required");return e}}}}function zr(){if(Wr)return Gr.exports;Wr=1;var t=pt(),r=w(),n=mt(),e=cr(),o=A(),i=function(){if(Tr)return Cr;Tr=1;var t=A(),r=cr(),n=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,o=r(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&e(n,"name").configurable);return Cr={EXISTS:o,PROPER:i,CONFIGURABLE:u}}().CONFIGURABLE,u=Vr(),c=Zr(),a=c.enforce,f=c.get,s=String,l=Object.defineProperty,v=t("".slice),p=t("".replace),d=t([].join),h=o&&!r(function(){return 8!==l(function(){},"length",{value:8}).length}),g=String(String).split("String"),y=Gr.exports=function(t,r,n){"Symbol("===v(s(r),0,7)&&(r="["+p(s(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(r="get "+r),n&&n.setter&&(r="set "+r),(!e(t,"name")||i&&t.name!==r)&&(o?l(t,"name",{value:r,configurable:!0}):t.name=r),h&&n&&e(n,"arity")&&t.length!==n.arity&&l(t,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?o&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=a(t);return e(u,"source")||(u.source=d(g,"string"==typeof r?r:"")),t};return Function.prototype.toString=y(function(){return n(this)&&f(this).source||u(this)},"toString"),Gr.exports}function qr(){if(Kr)return Fr;Kr=1;var t=mt(),r=jr(),n=zr(),e=er();return Fr=function(o,i,u,c){c||(c={});var a=c.enumerable,f=void 0!==c.name?c.name:i;if(t(u)&&n(u,f,c),c.global)a?o[i]=u:e(i,u);else{try{c.unsafe?o[i]&&(a=!0):delete o[i]}catch(t){}a?o[i]=u:r.f(o,i,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return o}}var Jr,Qr,Xr,_r,$r,tn,rn,nn,en,on,un,cn,an,fn,sn,ln,vn,pn={};function dn(){if(_r)return Xr;_r=1;var t=function(){if(Qr)return Jr;Qr=1;var t=Math.ceil,r=Math.floor;return Jr=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}}();return Xr=function(r){var n=+r;return n!=n||0===n?0:t(n)}}function hn(){if(tn)return $r;tn=1;var t=dn(),r=Math.max,n=Math.min;return $r=function(e,o){var i=t(e);return i<0?r(i+o,0):n(i,o)}}function gn(){if(nn)return rn;nn=1;var t=dn(),r=Math.min;return rn=function(n){var e=t(n);return e>0?r(e,9007199254740991):0}}function yn(){if(on)return en;on=1;var t=gn();return en=function(r){return t(r.length)}}function mn(){if(fn)return an;fn=1;var t=pt(),r=cr(),n=yt(),e=function(){if(cn)return un;cn=1;var t=yt(),r=hn(),n=yn(),e=function(e){return function(o,i,u){var c=t(o),a=n(c);if(0===a)return!e&&-1;var f,s=r(u,a);if(e&&i!=i){for(;a>s;)if((f=c[s++])!=f)return!0}else for(;a>s;s++)if((e||s in c)&&c[s]===i)return e||s||0;return!e&&-1}};return un={includes:e(!0),indexOf:e(!1)}}().indexOf,o=Hr(),i=t([].push);return an=function(t,u){var c,a=n(t),f=0,s=[];for(c in a)!r(o,c)&&r(a,c)&&i(s,c);for(;u.length>f;)r(a,c=u[f++])&&(~e(s,c)||i(s,c));return s}}function bn(){return ln?sn:(ln=1,sn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var wn,An,Sn,En,On,jn,xn,Cn,Tn,In,Pn,kn,Rn,Nn,Un,Dn,Bn,Mn,Ln,Wn,Fn,Kn,Gn,Vn,Yn,Hn,Zn,zn,qn={};function Jn(){if(Sn)return An;Sn=1;var t=wt(),r=pt(),n=function(){if(vn)return pn;vn=1;var t=mn(),r=bn().concat("length","prototype");return pn.f=Object.getOwnPropertyNames||function(n){return t(n,r)},pn}(),e=(wn||(wn=1,qn.f=Object.getOwnPropertySymbols),qn),o=Or(),i=r([].concat);return An=t("Reflect","ownKeys")||function(t){var r=n.f(o(t)),u=e.f;return u?i(r,u(t)):r}}function Qn(){if(On)return En;On=1;var t=cr(),r=Jn(),n=dr(),e=jr();return En=function(o,i,u){for(var c=r(i),a=e.f,f=n.f,s=0;s<c.length;s++){var l=c[s];t(o,l)||u&&t(u,l)||a(o,l,f(i,l))}}}function Xn(){if(xn)return jn;xn=1;var t=w(),r=mt(),n=/#|\.prototype\./,e=function(n,e){var a=i[o(n)];return a===c||a!==u&&(r(e)?t(e):!!e)},o=e.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",c=e.POLYFILL="P";return jn=e}function _n(){if(Tn)return Cn;Tn=1;var t=s(),r=dr().f,n=xr(),e=qr(),o=er(),i=Qn(),u=Xn();return Cn=function(c,a){var f,s,l,v,p,d=c.target,h=c.global,g=c.stat;if(f=h?t:g?t[d]||o(d,{}):t[d]&&t[d].prototype)for(s in a){if(v=a[s],l=c.dontCallGetSet?(p=r(f,s))&&p.value:f[s],!u(h?s:d+(g?".":"#")+s,c.forced)&&void 0!==l){if(typeof v==typeof l)continue;i(v,l)}(c.sham||l&&l.sham)&&n(v,"sham",!0),e(f,s,v,c)}}}function $n(){if(Pn)return In;Pn=1;var t=dt();return In=Array.isArray||function(r){return"Array"===t(r)}}function te(){if(Rn)return kn;Rn=1;var t=TypeError;return kn=function(r){if(r>9007199254740991)throw t("Maximum allowed index exceeded");return r}}function re(){if(Un)return Nn;Un=1;var t=A(),r=jr(),n=vt();return Nn=function(e,o,i){t?r.f(e,o,n(0,i)):e[o]=i}}function ne(){if(Bn)return Dn;Bn=1;var t={};return t[fr()("toStringTag")]="z",Dn="[object z]"===String(t)}function ee(){if(Ln)return Mn;Ln=1;var t=ne(),r=mt(),n=dt(),e=fr()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Mn=t?n:function(t){var u,c,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(c=function(t,r){try{return t[r]}catch(t){}}(u=o(t),e))?c:i?n(u):"Object"===(a=n(u))&&r(u.callee)?"Arguments":a}}function oe(){if(Fn)return Wn;Fn=1;var t=pt(),r=w(),n=mt(),e=ee(),o=wt(),i=Vr(),u=function(){},c=o("Reflect","construct"),a=/^\s*(?:class|function)\b/,f=t(a.exec),s=!a.test(u),l=function(t){if(!n(t))return!1;try{return c(u,[],t),!0}catch(t){return!1}},v=function(t){if(!n(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!f(a,i(t))}catch(t){return!0}};return v.sham=!0,Wn=!c||r(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?v:l}function ie(){if(Gn)return Kn;Gn=1;var t=$n(),r=oe(),n=bt(),e=fr()("species"),o=Array;return Kn=function(i){var u;return t(i)&&(u=i.constructor,(r(u)&&(u===o||t(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?o:u}}function ue(){if(Yn)return Vn;Yn=1;var t=ie();return Vn=function(r,n){return new(t(r))(0===n?0:n)}}function ce(){if(Zn)return Hn;Zn=1;var t=w(),r=fr(),n=Et(),e=r("species");return Hn=function(r){return n>=51||!t(function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[r](Boolean).foo})}}!function(){if(zn)return f;zn=1;var t=_n(),r=w(),n=$n(),e=bt(),o=ur(),i=yn(),u=te(),c=re(),a=ue(),s=ce(),l=fr(),v=Et(),p=l("isConcatSpreadable"),d=v>=51||!r(function(){var t=[];return t[p]=!1,t.concat()[0]!==t}),h=function(t){if(!e(t))return!1;var r=t[p];return void 0!==r?!!r:n(t)};t({target:"Array",proto:!0,arity:1,forced:!d||!s("concat")},{concat:function(t){var r,n,e,f,s,l=o(this),v=a(l,0),p=0;for(r=-1,e=arguments.length;r<e;r++)if(h(s=-1===r?l:arguments[r]))for(f=i(s),u(p+f),n=0;n<f;n++,p++)n in s&&c(v,p,s[n]);else u(p+1),c(v,p++,s);return v.length=p,v}})}();var ae,fe,se,le,ve,pe,de,he={};function ge(){if(fe)return ae;fe=1;var t=ee(),r=String;return ae=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}}!function(){if(de)return he;de=1;var t=_n(),r=function(){if(le)return se;le=1;var t=pt(),r=gt(),n=ge(),e=/"/g,o=t("".replace);return se=function(t,i,u,c){var a=n(r(t)),f="<"+i;return""!==u&&(f+=" "+u+'="'+o(n(c),e,""")+'"'),f+">"+a+"</"+i+">"}}(),n=function(){if(pe)return ve;pe=1;var t=w();return ve=function(r){return t(function(){var t=""[r]('"');return t!==t.toLowerCase()||t.split('"').length>3})}}();t({target:"String",proto:!0,forced:n("link")},{link:function(t){return r(this,"a","href",t)}})}();var ye,me,be,we={type:"link-card",elemToHtml:function(t,r){var n=t,e=n.title,o=void 0===e?"":e,i=n.link,u=void 0===i?"":i,c=n.iconImgSrc,a=void 0===c?"":c;return'<div data-w-e-type="link-card" data-w-e-is-void data-title="'.concat(o,'" data-link="').concat(u,'" data-iconImgSrc="').concat(a,'">\n <div class="info-container">\n <div class="title-container"><p>').concat(o,'</p></div>\n <div class="link-container"><span>').concat(u,'</span></div>\n </div>\n <div class="icon-container">\n <img src="').concat(a,'"/>\n </div>\n </div>')}},Ae={};!function(){if(be)return Ae;be=1;var t=ne(),r=qr(),n=function(){if(me)return ye;me=1;var t=ne(),r=ee();return ye=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",n,{unsafe:!0})}();var Se,Ee,Oe,je,xe,Ce,Te,Ie,Pe,ke,Re,Ne,Ue,De,Be,Me,Le,We,Fe,Ke,Ge,Ve,Ye,He,Ze,ze,qe,Je,Qe,Xe,_e,$e,to,ro,no,eo,oo,io,uo,co,ao,fo,so,lo,vo,po,ho,go,yo,mo,bo,wo,Ao,So,Eo,Oo,jo,xo,Co,To,Io={};function Po(){if(Ee)return Se;Ee=1;var t=s(),r=St(),n=dt(),e=function(t){return r.slice(0,t.length)===t};return Se=e("Bun/")?"BUN":e("Cloudflare-Workers")?"CLOUDFLARE":e("Deno/")?"DENO":e("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function ko(){if(je)return Oe;je=1;var t=Po();return Oe="NODE"===t}function Ro(){if(Ce)return xe;Ce=1;var t=s();return xe=t}function No(){if(ke)return Pe;ke=1;var t=bt();return Pe=function(r){return t(r)||null===r}}function Uo(){if(Ne)return Re;Ne=1;var t=No(),r=String,n=TypeError;return Re=function(e){if(t(e))return e;throw new n("Can't set "+r(e)+" as a prototype")}}function Do(){if(De)return Ue;De=1;var t=function(){if(Ie)return Te;Ie=1;var t=pt(),r=Tt();return Te=function(n,e,o){try{return t(r(Object.getOwnPropertyDescriptor(n,e)[o]))}catch(t){}}}(),r=bt(),n=gt(),e=Uo();return Ue=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,u={};try{(o=t(Object.prototype,"__proto__","set"))(u,[]),i=u instanceof Array}catch(t){}return function(t,u){return n(t),e(u),r(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function Bo(){if(Me)return Be;Me=1;var t=jr().f,r=cr(),n=fr()("toStringTag");return Be=function(e,o,i){e&&!i&&(e=e.prototype),e&&!r(e,n)&&t(e,n,{configurable:!0,value:o})}}function Mo(){if(We)return Le;We=1;var t=zr(),r=jr();return Le=function(n,e,o){return o.get&&t(o.get,e,{getter:!0}),o.set&&t(o.set,e,{setter:!0}),r.f(n,e,o)}}function Lo(){if(Ke)return Fe;Ke=1;var t=wt(),r=Mo(),n=fr(),e=A(),o=n("species");return Fe=function(n){var i=t(n);e&&i&&!i[o]&&r(i,o,{configurable:!0,get:function(){return this}})}}function Wo(){if(Ve)return Ge;Ve=1;var t=At(),r=TypeError;return Ge=function(n,e){if(t(e,n))return n;throw new r("Incorrect invocation")}}function Fo(){if(He)return Ye;He=1;var t=oe(),r=Ct(),n=TypeError;return Ye=function(e){if(t(e))return e;throw new n(r(e)+" is not a constructor")}}function Ko(){if(ze)return Ze;ze=1;var t=Or(),r=Fo(),n=ht(),e=fr()("species");return Ze=function(o,i){var u,c=t(o).constructor;return void 0===c||n(u=t(c)[e])?i:r(u)}}function Go(){if(Je)return qe;Je=1;var t=S(),r=Function.prototype,n=r.apply,e=r.call;return qe="object"==typeof Reflect&&Reflect.apply||(t?e.bind(n):function(){return e.apply(n,arguments)}),qe}function Vo(){if(Xe)return Qe;Xe=1;var t=dt(),r=pt();return Qe=function(n){if("Function"===t(n))return r(n)}}function Yo(){if($e)return _e;$e=1;var t=Vo(),r=Tt(),n=S(),e=t(t.bind);return _e=function(t,o){return r(t),void 0===o?t:n?e(t,o):function(){return t.apply(o,arguments)}},_e}function Ho(){if(ro)return to;ro=1;var t=wt();return to=t("document","documentElement")}function Zo(){if(eo)return no;eo=1;var t=pt();return no=t([].slice)}function zo(){if(io)return oo;io=1;var t=TypeError;return oo=function(r,n){if(r<n)throw new t("Not enough arguments");return r}}function qo(){if(co)return uo;co=1;var t=St();return uo=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function Jo(){if(fo)return ao;fo=1;var t,r,n,e,o=s(),i=Go(),u=Yo(),c=mt(),a=cr(),f=w(),l=Ho(),v=Zo(),p=vr(),d=zo(),h=qo(),g=ko(),y=o.setImmediate,m=o.clearImmediate,b=o.process,A=o.Dispatch,S=o.Function,E=o.MessageChannel,O=o.String,j=0,x={},C="onreadystatechange";f(function(){t=o.location});var T=function(t){if(a(x,t)){var r=x[t];delete x[t],r()}},I=function(t){return function(){T(t)}},P=function(t){T(t.data)},k=function(r){o.postMessage(O(r),t.protocol+"//"+t.host)};return y&&m||(y=function(t){d(arguments.length,1);var n=c(t)?t:S(t),e=v(arguments,1);return x[++j]=function(){i(n,void 0,e)},r(j),j},m=function(t){delete x[t]},g?r=function(t){b.nextTick(I(t))}:A&&A.now?r=function(t){A.now(I(t))}:E&&!h?(e=(n=new E).port2,n.port1.onmessage=P,r=u(e.postMessage,e)):o.addEventListener&&c(o.postMessage)&&!o.importScripts&&t&&"file:"!==t.protocol&&!f(k)?(r=k,o.addEventListener("message",P,!1)):r=C in p("script")?function(t){l.appendChild(p("script"))[C]=function(){l.removeChild(this),T(t)}}:function(t){setTimeout(I(t),0)}),ao={set:y,clear:m}}function Qo(){if(lo)return so;lo=1;var t=s(),r=A(),n=Object.getOwnPropertyDescriptor;return so=function(e){if(!r)return t[e];var o=n(t,e);return o&&o.value}}function Xo(){if(po)return vo;po=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var r={item:t,next:null},n=this.tail;n?n.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},vo=t}function _o(){if(wo)return bo;wo=1;var t,r,n,e,o,i=s(),u=Qo(),c=Yo(),a=Jo().set,f=Xo(),l=qo(),v=function(){if(go)return ho;go=1;var t=St();return ho=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),p=function(){if(mo)return yo;mo=1;var t=St();return yo=/web0s(?!.*chrome)/i.test(t)}(),d=ko(),h=i.MutationObserver||i.WebKitMutationObserver,g=i.document,y=i.process,m=i.Promise,b=u("queueMicrotask");if(!b){var w=new f,A=function(){var r,n;for(d&&(r=y.domain)&&r.exit();n=w.get();)try{n()}catch(r){throw w.head&&t(),r}r&&r.enter()};l||d||p||!h||!g?!v&&m&&m.resolve?((e=m.resolve(void 0)).constructor=m,o=c(e.then,e),t=function(){o(A)}):d?t=function(){y.nextTick(A)}:(a=c(a,i),t=function(){a(A)}):(r=!0,n=g.createTextNode(""),new h(A).observe(n,{characterData:!0}),t=function(){n.data=r=!r}),b=function(r){w.head||t(),w.add(r)}}return bo=b}function $o(){return So||(So=1,Ao=function(t,r){try{1===arguments.length?console.error(t):console.error(t,r)}catch(t){}}),Ao}function ti(){return Oo?Eo:(Oo=1,Eo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function ri(){if(xo)return jo;xo=1;var t=s();return jo=t.Promise}function ni(){if(To)return Co;To=1;var t=s(),r=ri(),n=mt(),e=Xn(),o=Vr(),i=fr(),u=Po(),c=nr(),a=Et(),f=r&&r.prototype,l=i("species"),v=!1,p=n(t.PromiseRejectionEvent),d=e("Promise",function(){var t=o(r),n=t!==String(r);if(!n&&66===a)return!0;if(c&&(!f.catch||!f.finally))return!0;if(!a||a<51||!/native code/.test(t)){var e=new r(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((e.constructor={})[l]=i,!(v=e.then(function(){})instanceof i))return!0}return!(n||"BROWSER"!==u&&"DENO"!==u||p)});return Co={CONSTRUCTOR:d,REJECTION_EVENT:p,SUBCLASSING:v}}var ei,oi,ii={};function ui(){if(ei)return ii;ei=1;var t=Tt(),r=TypeError,n=function(n){var e,o;this.promise=new n(function(t,n){if(void 0!==e||void 0!==o)throw new r("Bad Promise constructor");e=t,o=n}),this.resolve=t(e),this.reject=t(o)};return ii.f=function(t){return new n(t)},ii}var ci,ai,fi,si,li,vi,pi,di,hi,gi,yi,mi,bi,wi,Ai,Si,Ei,Oi={};function ji(){return ai?ci:(ai=1,ci={})}function xi(){if(si)return fi;si=1;var t=fr(),r=ji(),n=t("iterator"),e=Array.prototype;return fi=function(t){return void 0!==t&&(r.Array===t||e[n]===t)}}function Ci(){if(vi)return li;vi=1;var t=ee(),r=It(),n=ht(),e=ji(),o=fr()("iterator");return li=function(i){if(!n(i))return r(i,o)||r(i,"@@iterator")||e[t(i)]}}function Ti(){if(di)return pi;di=1;var t=E(),r=Tt(),n=Or(),e=Ct(),o=Ci(),i=TypeError;return pi=function(u,c){var a=arguments.length<2?o(u):c;if(r(a))return n(t(a,u));throw new i(e(u)+" is not iterable")},pi}function Ii(){if(gi)return hi;gi=1;var t=E(),r=Or(),n=It();return hi=function(e,o,i){var u,c;r(e);try{if(!(u=n(e,"return"))){if("throw"===o)throw i;return i}u=t(u,e)}catch(t){c=!0,u=t}if("throw"===o)throw i;if(c)throw u;return r(u),i}}function Pi(){if(mi)return yi;mi=1;var t=Yo(),r=E(),n=Or(),e=Ct(),o=xi(),i=yn(),u=At(),c=Ti(),a=Ci(),f=Ii(),s=TypeError,l=function(t,r){this.stopped=t,this.result=r},v=l.prototype;return yi=function(p,d,h){var g,y,m,b,w,A,S,E=h&&h.that,O=!(!h||!h.AS_ENTRIES),j=!(!h||!h.IS_RECORD),x=!(!h||!h.IS_ITERATOR),C=!(!h||!h.INTERRUPTED),T=t(d,E),I=function(t){return g&&f(g,"normal"),new l(!0,t)},P=function(t){return O?(n(t),C?T(t[0],t[1],I):T(t[0],t[1])):C?T(t,I):T(t)};if(j)g=p.iterator;else if(x)g=p;else{if(!(y=a(p)))throw new s(e(p)+" is not iterable");if(o(y)){for(m=0,b=i(p);b>m;m++)if((w=P(p[m]))&&u(v,w))return w;return new l(!1)}g=c(p,y)}for(A=j?p.next:g.next;!(S=r(A,g)).done;){try{w=P(S.value)}catch(t){f(g,"throw",t)}if("object"==typeof w&&w&&u(v,w))return w}return new l(!1)}}function ki(){if(wi)return bi;wi=1;var t=fr()("iterator"),r=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){r=!0}};e[t]=function(){return this},Array.from(e,function(){throw 2})}catch(t){}return bi=function(n,e){try{if(!e&&!r)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},n(i)}catch(t){}return o}}function Ri(){if(Si)return Ai;Si=1;var t=ri(),r=ki(),n=ni().CONSTRUCTOR;return Ai=n||!r(function(r){t.all(r).then(void 0,function(){})})}var Ni,Ui={};var Di,Bi={};var Mi,Li={};var Wi,Fi,Ki,Gi,Vi={};function Yi(){if(Fi)return Wi;Fi=1;var t=Or(),r=bt(),n=ui();return Wi=function(e,o){if(t(e),r(o)&&o.constructor===e)return o;var i=n.f(e);return(0,i.resolve)(o),i.promise}}function Hi(t,r,n,e){return new(n||(n=Promise))(function(o,i){function u(t){try{a(e.next(t))}catch(t){i(t)}}function c(t){try{a(e.throw(t))}catch(t){i(t)}}function a(t){var r;t.done?o(t.value):(r=t.value,r instanceof n?r:new n(function(t){t(r)})).then(u,c)}a((e=e.apply(t,r||[])).next())})}function Zi(t,r){var n,e,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(a){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(i=0)),i;)try{if(n=1,e&&(o=2&c[0]?e.return:c[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,c[1])).done)return o;switch(e=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,e=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(t,i)}catch(t){c=[6,t],e=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}}Gi||(Gi=1,function(){if(oi)return Io;oi=1;var t,r,n,e,o=_n(),i=nr(),u=ko(),c=s(),a=Ro(),f=E(),l=qr(),v=Do(),p=Bo(),d=Lo(),h=Tt(),g=mt(),y=bt(),m=Wo(),b=Ko(),w=Jo().set,A=_o(),S=$o(),O=ti(),j=Xo(),x=Zr(),C=ri(),T=ni(),I=ui(),P="Promise",k=T.CONSTRUCTOR,R=T.REJECTION_EVENT,N=T.SUBCLASSING,U=x.getterFor(P),D=x.set,B=C&&C.prototype,M=C,L=B,W=c.TypeError,F=c.document,K=c.process,G=I.f,V=G,Y=!!(F&&F.createEvent&&c.dispatchEvent),H="unhandledrejection",Z=function(t){var r;return!(!y(t)||!g(r=t.then))&&r},z=function(t,r){var n,e,o,i=r.value,u=1===r.state,c=u?t.ok:t.fail,a=t.resolve,s=t.reject,l=t.domain;try{c?(u||(2===r.rejection&&_(r),r.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===t.promise?s(new W("Promise-chain cycle")):(e=Z(n))?f(e,n,a,s):a(n)):s(i)}catch(t){l&&!o&&l.exit(),s(t)}},q=function(t,r){t.notified||(t.notified=!0,A(function(){for(var n,e=t.reactions;n=e.get();)z(n,t);t.notified=!1,r&&!t.rejection&&Q(t)}))},J=function(t,r,n){var e,o;Y?((e=F.createEvent("Event")).promise=r,e.reason=n,e.initEvent(t,!1,!0),c.dispatchEvent(e)):e={promise:r,reason:n},!R&&(o=c["on"+t])?o(e):t===H&&S("Unhandled promise rejection",n)},Q=function(t){f(w,c,function(){var r,n=t.facade,e=t.value;if(X(t)&&(r=O(function(){u?K.emit("unhandledRejection",e,n):J(H,n,e)}),t.rejection=u||X(t)?2:1,r.error))throw r.value})},X=function(t){return 1!==t.rejection&&!t.parent},_=function(t){f(w,c,function(){var r=t.facade;u?K.emit("rejectionHandled",r):J("rejectionhandled",r,t.value)})},$=function(t,r,n){return function(e){t(r,e,n)}},tt=function(t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,q(t,!0))},rt=function(t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===r)throw new W("Promise can't be resolved itself");var e=Z(r);e?A(function(){var n={done:!1};try{f(e,r,$(rt,n,t),$(tt,n,t))}catch(r){tt(n,r,t)}}):(t.value=r,t.state=1,q(t,!1))}catch(r){tt({done:!1},r,t)}}};if(k&&(L=(M=function(r){m(this,L),h(r),f(t,this);var n=U(this);try{r($(rt,n),$(tt,n))}catch(t){tt(n,t)}}).prototype,(t=function(t){D(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:0,value:null})}).prototype=l(L,"then",function(t,r){var n=U(this),e=G(b(this,M));return n.parent=!0,e.ok=!g(t)||t,e.fail=g(r)&&r,e.domain=u?K.domain:void 0,0===n.state?n.reactions.add(e):A(function(){z(e,n)}),e.promise}),r=function(){var r=new t,n=U(r);this.promise=r,this.resolve=$(rt,n),this.reject=$(tt,n)},I.f=G=function(t){return t===M||t===n?new r(t):V(t)},!i&&g(C)&&B!==Object.prototype)){e=B.then,N||l(B,"then",function(t,r){var n=this;return new M(function(t,r){f(e,n,t,r)}).then(t,r)},{unsafe:!0});try{delete B.constructor}catch(t){}v&&v(B,L)}o({global:!0,constructor:!0,wrap:!0,forced:k},{Promise:M}),n=a.Promise,p(M,P,!1,!0),d(P)}(),function(){if(Ei)return Oi;Ei=1;var t=_n(),r=E(),n=Tt(),e=ui(),o=ti(),i=Pi();t({target:"Promise",stat:!0,forced:Ri()},{all:function(t){var u=this,c=e.f(u),a=c.resolve,f=c.reject,s=o(function(){var e=n(u.resolve),o=[],c=0,s=1;i(t,function(t){var n=c++,i=!1;s++,r(e,u,t).then(function(t){i||(i=!0,o[n]=t,--s||a(o))},f)}),--s||a(o)});return s.error&&f(s.value),c.promise}})}(),function(){if(Ni)return Ui;Ni=1;var t=_n(),r=nr(),n=ni().CONSTRUCTOR,e=ri(),o=wt(),i=mt(),u=qr(),c=e&&e.prototype;if(t({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&i(e)){var a=o("Promise").prototype.catch;c.catch!==a&&u(c,"catch",a,{unsafe:!0})}}(),function(){if(Di)return Bi;Di=1;var t=_n(),r=E(),n=Tt(),e=ui(),o=ti(),i=Pi();t({target:"Promise",stat:!0,forced:Ri()},{race:function(t){var u=this,c=e.f(u),a=c.reject,f=o(function(){var e=n(u.resolve);i(t,function(t){r(e,u,t).then(c.resolve,a)})});return f.error&&a(f.value),c.promise}})}(),function(){if(Mi)return Li;Mi=1;var t=_n(),r=ui();t({target:"Promise",stat:!0,forced:ni().CONSTRUCTOR},{reject:function(t){var n=r.f(this);return(0,n.reject)(t),n.promise}})}(),function(){if(Ki)return Vi;Ki=1;var t=_n(),r=wt(),n=nr(),e=ri(),o=ni().CONSTRUCTOR,i=Yi(),u=r("Promise"),c=n&&!o;t({target:"Promise",stat:!0,forced:n||o},{resolve:function(t){return i(c&&this===u?e:this,t)}})}()),"function"==typeof SuppressedError&&SuppressedError;var zi,qi,Ji,Qi,Xi={};function _i(){if(qi)return zi;qi=1;var t=Or();return zi=function(){var r=t(this),n="";return r.hasIndices&&(n+="d"),r.global&&(n+="g"),r.ignoreCase&&(n+="i"),r.multiline&&(n+="m"),r.dotAll&&(n+="s"),r.unicode&&(n+="u"),r.unicodeSets&&(n+="v"),r.sticky&&(n+="y"),n}}var $i,tu,ru,nu,eu,ou,iu,uu,cu,au,fu,su,lu={};function vu(){if(tu)return $i;tu=1;var t=mn(),r=bn();return $i=Object.keys||function(n){return t(n,r)}}function pu(){if(eu)return nu;eu=1;var t,r=Or(),n=function(){if(ru)return lu;ru=1;var t=A(),r=Er(),n=jr(),e=Or(),o=yt(),i=vu();return lu.f=t&&!r?Object.defineProperties:function(t,r){e(t);for(var u,c=o(r),a=i(r),f=a.length,s=0;f>s;)n.f(t,u=a[s++],c[u]);return t},lu}(),e=bn(),o=Hr(),i=Ho(),u=vr(),c=Yr(),a="prototype",f="script",s=c("IE_PROTO"),l=function(){},v=function(t){return"<"+f+">"+t+"</"+f+">"},p=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},d=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var r,n,o;d="undefined"!=typeof document?document.domain&&t?p(t):(n=u("iframe"),o="java"+f+":",n.style.display="none",i.appendChild(n),n.src=String(o),(r=n.contentWindow.document).open(),r.write(v("document.F=Object")),r.close(),r.F):p(t);for(var c=e.length;c--;)delete d[a][e[c]];return d()};return o[s]=!0,nu=Object.create||function(t,e){var o;return null!==t?(l[a]=r(t),o=new l,l[a]=null,o[s]=t):o=d(),void 0===e?o:n.f(o,e)}}function du(){if(fu)return au;fu=1;var t,r,n=E(),e=pt(),o=ge(),i=_i(),u=function(){if(Qi)return Ji;Qi=1;var t=w(),r=s().RegExp,n=t(function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),e=n||t(function(){return!r("a","y").sticky}),o=n||t(function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return Ji={BROKEN_CARET:o,MISSED_STICKY:e,UNSUPPORTED_Y:n}}(),c=ir(),a=pu(),f=Zr().get,l=function(){if(iu)return ou;iu=1;var t=w(),r=s().RegExp;return ou=t(function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),v=function(){if(cu)return uu;cu=1;var t=w(),r=s().RegExp;return uu=t(function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),p=c("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,h=d,g=e("".charAt),y=e("".indexOf),m=e("".replace),b=e("".slice),A=(r=/b*/g,n(d,t=/a/,"a"),n(d,r,"a"),0!==t.lastIndex||0!==r.lastIndex),S=u.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];return(A||O||S||l||v)&&(h=function(t){var r,e,u,c,s,l,v,w=this,E=f(w),j=o(t),x=E.raw;if(x)return x.lastIndex=w.lastIndex,r=n(h,x,j),w.lastIndex=x.lastIndex,r;var C=E.groups,T=S&&w.sticky,I=n(i,w),P=w.source,k=0,R=j;if(T&&(I=m(I,"y",""),-1===y(I,"g")&&(I+="g"),R=b(j,w.lastIndex),w.lastIndex>0&&(!w.multiline||w.multiline&&"\n"!==g(j,w.lastIndex-1))&&(P="(?: "+P+")",R=" "+R,k++),e=new RegExp("^(?:"+P+")",I)),O&&(e=new RegExp("^"+P+"$(?!\\s)",I)),A&&(u=w.lastIndex),c=n(d,T?e:w,R),T?c?(c.input=b(c.input,k),c[0]=b(c[0],k),c.index=w.lastIndex,w.lastIndex+=c[0].length):w.lastIndex=0:A&&c&&(w.lastIndex=w.global?c.index+c[0].length:u),O&&c&&c.length>1&&n(p,c[0],e,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(c[s]=void 0)}),c&&C)for(c.groups=l=a(null),s=0;s<C.length;s++)l[(v=C[s])[0]]=c[v[1]];return c}),au=h}!function(){if(su)return Xi;su=1;var t=_n(),r=du();t({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})}();var hu=function(){function t(){this.title=r("linkCard.toCard"),this.iconSvg="",this.tag="button"}return t.prototype.getSelectedLinkElem=function(t){var r=n.getSelectedNodeByType(t,"link");return null==r?null:r},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.exec=function(t,r){return Hi(this,void 0,void 0,function(){var r,i,u,c,a,f,s,l,v,p;return Zi(this,function(d){switch(d.label){case 0:if(this.isDisabled(t))return[2];if(null==(r=this.getSelectedLinkElem(t)))return[2];if("function"!=typeof(i=t.getMenuConfig("convertToLinkCard").getLinkCardInfo))return[2];u=r.url,c=o.string(r),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,i(c,u)];case 2:return a=d.sent(),f=a.title,s=a.iconImgSrc,l=n.findPath(t,r),e.removeNodes(t,{at:l}),e.splitNodes(t,{always:!0}),v={type:"link-card",link:u,title:f,iconImgSrc:s,children:[{text:""}]},e.insertNodes(t,v),[3,4];case 3:return p=d.sent(),console.error("Convert to link-cart error",p),[3,4];case 4:return[2]}})})},t}(),gu={key:"convertToLinkCard",factory:function(){return new hu},config:{getLinkCardInfo:function(t,r){return Hi(this,void 0,void 0,function(){return Zi(this,function(r){return[2,new Promise(function(r){setTimeout(function(){r({title:t,iconImgSrc:""})},100)})]})})}}};var yu,mu,bu,wu,Au,Su,Eu,Ou={selector:'div[data-w-e-type="link-card"]',parseElemHtml:function(t,r,n){return{type:"link-card",link:t.getAttribute("data-link")||"",title:t.getAttribute("data-title")||"",iconImgSrc:t.getAttribute("data-iconImgSrc")||"",children:[{text:""}]}}},ju={};function xu(){if(wu)return bu;wu=1;var t=function(){if(mu)return yu;mu=1;var t=bt(),r=dt(),n=fr()("match");return yu=function(e){var o;return t(e)&&(void 0!==(o=e[n])?!!o:"RegExp"===r(e))}}(),r=TypeError;return bu=function(n){if(t(n))throw new r("The method doesn't accept regular expressions");return n}}!function(){if(Eu)return ju;Eu=1;var t,r=_n(),n=Vo(),e=dr().f,o=gn(),i=ge(),u=xu(),c=gt(),a=function(){if(Su)return Au;Su=1;var t=fr()("match");return Au=function(r){var n=/./;try{"/./"[r](n)}catch(e){try{return n[t]=!1,"/./"[r](n)}catch(t){}}return!1}}(),f=nr(),s=n("".slice),l=Math.min,v=a("startsWith");r({target:"String",proto:!0,forced:!!(f||v||(t=e(String.prototype,"startsWith"),!t||t.writable))&&!v},{startsWith:function(t){var r=i(c(this));u(t);var n=o(l(arguments.length>1?arguments[1]:void 0,r.length)),e=i(t);return s(r,n,n+e.length)===e}})}();var Cu={editorPlugin:function(t){var r=t.isVoid,o=t.normalizeNode,i=t;return i.isVoid=function(t){return"link-card"===n.getNodeType(t)||r(t)},i.normalizeNode=function(t){var r=function(t,r){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,o,i=n.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(e=i.next()).done;)u.push(e.value)}catch(t){o={error:t}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}(t,2),u=r[0],c=r[1];if("link-card"!==n.getNodeType(u))return o([u,c]);var a=(i.children||[])[c[0]+1]||{},f=n.getNodeType(a);if("paragraph"!==f&&"blockquote"!==f&&!f.startsWith("header")){var s=[c[0]+1];e.insertNodes(i,{type:"paragraph",children:[{text:""}]},{at:s})}},i},renderElems:[{type:"link-card",renderElem:function(t,r,e){var o=n.isNodeSelected(e,t),u=t,c=u.title,a=u.link,f=u.iconImgSrc,s=i("div",{props:{className:"w-e-textarea-link-card-text-container"}},[i("p",{props:{className:"w-e-link-card-title"}},c),i("span",{props:{className:"w-e-link-card-url",title:a}},a)]),l=i("div",{props:{className:"w-e-textarea-link-card-icon-container"}},[i("img",{props:{src:f||"data:image/png;base64,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"}})]);return i("div",{props:{contentEditable:!1,className:"w-e-textarea-link-card-container"},dataset:{selected:o?"true":"",href:a},on:{mousedown:function(t){return t.preventDefault()},click:function(t){o||window.open(a,"_blank","noopener,noreferrer")}}},[s,l])}}],elemsToHtml:[we],parseElemsHtml:[Ou],menus:[gu]};export{Cu as default};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|