248 lines
1.4 MiB
248 lines
1.4 MiB
import{$ as bn,a9 as _ae,aa as Wd,ab as BE,ac as uc,ad as kB,ae as Aae,af as gG,ag as kae,ah as Rf,ai as PE,aj as Tae,ak as Vl,al as mG,am as Gd,an as q5,ao as Gx,ap as yG,aq as jp,ar as Dae,as as xG,at as Oae,au as Fae,av as Bae,aw as Pae,ax as Fn,ay as Nae,m as In,o as ge,c as Oe,p as Pe,k as xt,l as Tn,az as Iae,aA as NE,a as ce,aB as y8,aC as ui,I as Ge,f as T,S as $r,aD as bG,K as li,aE as Wl,u as ct,aF as Rae,aG as Lae,aH as wG,aI as xs,D as ps,v as ke,N as of,aJ as Mae,aK as EG,C as Nt,a5 as SG,b as ar,L as on,d as Fe,a3 as Kx,i as tt,P as hs,j as ua,aL as jae,M as Do,aM as $ae,B as Lf,R as Pr,U as Os,h as Ce,aN as X5,aO as $p,A as Ke,F as xn,n as mt,J as n0,aP as Uae,aQ as sS,w as De,e as ze,r as Wn,q as pr,X as Pa,t as rr,g as We,T as Hae,aR as lo,aS as Up,aT as zae,W as Ar,Y as ta,z as nn,E as zo,aU as Gg,Z as bs,aV as Vae,aW as CG,aX as Wae,aY as _G,a4 as Kd,aZ as AG,a_ as kG,a$ as Gae,b0 as Kae,b1 as qae,b2 as TG,b3 as Mf,b4 as qx,b5 as DG,b6 as Xae,b7 as Co,s as im,b8 as Yae,b9 as x8,O as OG,ba as wo,bb as mh,bc as uS,bd as Jae,V as Fa,be as Zae,x as xl,y as go,bf as Qae,a2 as b8,bg as eie,Q as FG,bh as tie,bi as rie,bj as TB,a0 as BG,a1 as DB,bk as nie,bl as aie,bm as iie,bn as PG,_ as NG,a6 as oie,a7 as sie}from"./index-ed90acfe.js";const zs=(e,t,{checkForDefaultPrevented:r=!0}={})=>a=>{const i=e==null?void 0:e(a);if(r===!1||!i)return t==null?void 0:t(a)},uie=()=>bn&&/firefox/i.test(window.navigator.userAgent);var lie=/\s/;function cie(e){for(var t=e.length;t--&&lie.test(e.charAt(t)););return t}var fie=/^\s+/;function die(e){return e&&e.slice(0,cie(e)+1).replace(fie,"")}var OB=0/0,pie=/^[-+]0x[0-9a-f]+$/i,hie=/^0b[01]+$/i,vie=/^0o[0-7]+$/i,gie=parseInt;function FB(e){if(typeof e=="number")return e;if(_ae(e))return OB;if(Wd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=die(e);var r=hie.test(e);return r||vie.test(e)?gie(e.slice(2),r?2:8):pie.test(e)?OB:+e}function mie(e){return e}var yie=BE(uc,"WeakMap");const w8=yie;var BB=Object.create,xie=function(){function e(){}return function(t){if(!Wd(t))return{};if(BB)return BB(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const bie=xie;function wie(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Eie(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Sie=800,Cie=16,_ie=Date.now;function Aie(e){var t=0,r=0;return function(){var n=_ie(),a=Cie-(n-r);if(r=n,a>0){if(++t>=Sie)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function kie(e){return function(){return e}}var Tie=kB?function(e,t){return kB(e,"toString",{configurable:!0,enumerable:!1,value:kie(t),writable:!0})}:mie;const Die=Tie;var Oie=Aie(Die);const Fie=Oie;function Bie(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}function IE(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),a?Aae(r,s,u):gG(r,s,u)}return r}var PB=Math.max;function Pie(e,t,r){return t=PB(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=PB(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=r(o),wie(e,this,s)}}var Nie=9007199254740991;function Y5(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Nie}function IG(e){return e!=null&&Y5(e.length)&&!kae(e)}var Iie=Object.prototype;function J5(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Iie;return e===r}function Rie(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Lie="[object Arguments]";function NB(e){return Rf(e)&&PE(e)==Lie}var RG=Object.prototype,Mie=RG.hasOwnProperty,jie=RG.propertyIsEnumerable,$ie=NB(function(){return arguments}())?NB:function(e){return Rf(e)&&Mie.call(e,"callee")&&!jie.call(e,"callee")};const Z5=$ie;function Uie(){return!1}var LG=typeof exports=="object"&&exports&&!exports.nodeType&&exports,IB=LG&&typeof module=="object"&&module&&!module.nodeType&&module,Hie=IB&&IB.exports===LG,RB=Hie?uc.Buffer:void 0,zie=RB?RB.isBuffer:void 0,Vie=zie||Uie;const Xx=Vie;var Wie="[object Arguments]",Gie="[object Array]",Kie="[object Boolean]",qie="[object Date]",Xie="[object Error]",Yie="[object Function]",Jie="[object Map]",Zie="[object Number]",Qie="[object Object]",eoe="[object RegExp]",toe="[object Set]",roe="[object String]",noe="[object WeakMap]",aoe="[object ArrayBuffer]",ioe="[object DataView]",ooe="[object Float32Array]",soe="[object Float64Array]",uoe="[object Int8Array]",loe="[object Int16Array]",coe="[object Int32Array]",foe="[object Uint8Array]",doe="[object Uint8ClampedArray]",poe="[object Uint16Array]",hoe="[object Uint32Array]",Br={};Br[ooe]=Br[soe]=Br[uoe]=Br[loe]=Br[coe]=Br[foe]=Br[doe]=Br[poe]=Br[hoe]=!0;Br[Wie]=Br[Gie]=Br[aoe]=Br[Kie]=Br[ioe]=Br[qie]=Br[Xie]=Br[Yie]=Br[Jie]=Br[Zie]=Br[Qie]=Br[eoe]=Br[toe]=Br[roe]=Br[noe]=!1;function voe(e){return Rf(e)&&Y5(e.length)&&!!Br[PE(e)]}function Q5(e){return function(t){return e(t)}}var MG=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ng=MG&&typeof module=="object"&&module&&!module.nodeType&&module,goe=ng&&ng.exports===MG,lS=goe&&Tae.process,moe=function(){try{var e=ng&&ng.require&&ng.require("util").types;return e||lS&&lS.binding&&lS.binding("util")}catch(t){}}();const qd=moe;var LB=qd&&qd.isTypedArray,yoe=LB?Q5(LB):voe;const jG=yoe;var xoe=Object.prototype,boe=xoe.hasOwnProperty;function $G(e,t){var r=Vl(e),n=!r&&Z5(e),a=!r&&!n&&Xx(e),i=!r&&!n&&!a&&jG(e),o=r||n||a||i,s=o?Rie(e.length,String):[],u=s.length;for(var l in e)(t||boe.call(e,l))&&!(o&&(l=="length"||a&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||mG(l,u)))&&s.push(l);return s}function UG(e,t){return function(r){return e(t(r))}}var woe=UG(Object.keys,Object);const Eoe=woe;var Soe=Object.prototype,Coe=Soe.hasOwnProperty;function _oe(e){if(!J5(e))return Eoe(e);var t=[];for(var r in Object(e))Coe.call(e,r)&&r!="constructor"&&t.push(r);return t}function eD(e){return IG(e)?$G(e):_oe(e)}function Aoe(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var koe=Object.prototype,Toe=koe.hasOwnProperty;function Doe(e){if(!Wd(e))return Aoe(e);var t=J5(e),r=[];for(var n in e)n=="constructor"&&(t||!Toe.call(e,n))||r.push(n);return r}function tD(e){return IG(e)?$G(e,!0):Doe(e)}function rD(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var MB=Gd?Gd.isConcatSpreadable:void 0;function Ooe(e){return Vl(e)||Z5(e)||!!(MB&&e&&e[MB])}function HG(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=Ooe),a||(a=[]);++i<o;){var s=e[i];t>0&&r(s)?t>1?HG(s,t-1,r,n,a):rD(a,s):n||(a[a.length]=s)}return a}function Foe(e){var t=e==null?0:e.length;return t?HG(e,1):[]}function Boe(e){return Fie(Pie(e,void 0,Foe),e+"")}var Poe=UG(Object.getPrototypeOf,Object);const zG=Poe;function E8(){if(!arguments.length)return[];var e=arguments[0];return Vl(e)?e:[e]}function Noe(){this.__data__=new q5,this.size=0}function Ioe(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Roe(e){return this.__data__.get(e)}function Loe(e){return this.__data__.has(e)}var Moe=200;function joe(e,t){var r=this.__data__;if(r instanceof q5){var n=r.__data__;if(!Gx||n.length<Moe-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new yG(n)}return r.set(e,t),this.size=r.size,this}function Qs(e){var t=this.__data__=new q5(e);this.size=t.size}Qs.prototype.clear=Noe;Qs.prototype.delete=Ioe;Qs.prototype.get=Roe;Qs.prototype.has=Loe;Qs.prototype.set=joe;function $oe(e,t){return e&&IE(t,eD(t),e)}function Uoe(e,t){return e&&IE(t,tD(t),e)}var VG=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jB=VG&&typeof module=="object"&&module&&!module.nodeType&&module,Hoe=jB&&jB.exports===VG,$B=Hoe?uc.Buffer:void 0,UB=$B?$B.allocUnsafe:void 0;function zoe(e,t){if(t)return e.slice();var r=e.length,n=UB?UB(r):new e.constructor(r);return e.copy(n),n}function Voe(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}function WG(){return[]}var Woe=Object.prototype,Goe=Woe.propertyIsEnumerable,HB=Object.getOwnPropertySymbols,Koe=HB?function(e){return e==null?[]:(e=Object(e),Voe(HB(e),function(t){return Goe.call(e,t)}))}:WG;const nD=Koe;function qoe(e,t){return IE(e,nD(e),t)}var Xoe=Object.getOwnPropertySymbols,Yoe=Xoe?function(e){for(var t=[];e;)rD(t,nD(e)),e=zG(e);return t}:WG;const GG=Yoe;function Joe(e,t){return IE(e,GG(e),t)}function KG(e,t,r){var n=t(e);return Vl(e)?n:rD(n,r(e))}function S8(e){return KG(e,eD,nD)}function Zoe(e){return KG(e,tD,GG)}var Qoe=BE(uc,"DataView");const C8=Qoe;var ese=BE(uc,"Promise");const _8=ese;var tse=BE(uc,"Set");const A8=tse;var zB="[object Map]",rse="[object Object]",VB="[object Promise]",WB="[object Set]",GB="[object WeakMap]",KB="[object DataView]",nse=jp(C8),ase=jp(Gx),ise=jp(_8),ose=jp(A8),sse=jp(w8),Rc=PE;(C8&&Rc(new C8(new ArrayBuffer(1)))!=KB||Gx&&Rc(new Gx)!=zB||_8&&Rc(_8.resolve())!=VB||A8&&Rc(new A8)!=WB||w8&&Rc(new w8)!=GB)&&(Rc=function(e){var t=PE(e),r=t==rse?e.constructor:void 0,n=r?jp(r):"";if(n)switch(n){case nse:return KB;case ase:return zB;case ise:return VB;case ose:return WB;case sse:return GB}return t});const Kg=Rc;var use=Object.prototype,lse=use.hasOwnProperty;function cse(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&lse.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var fse=uc.Uint8Array;const Yx=fse;function aD(e){var t=new e.constructor(e.byteLength);return new Yx(t).set(new Yx(e)),t}function dse(e,t){var r=t?aD(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var pse=/\w*$/;function hse(e){var t=new e.constructor(e.source,pse.exec(e));return t.lastIndex=e.lastIndex,t}var qB=Gd?Gd.prototype:void 0,XB=qB?qB.valueOf:void 0;function vse(e){return XB?Object(XB.call(e)):{}}function gse(e,t){var r=t?aD(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var mse="[object Boolean]",yse="[object Date]",xse="[object Map]",bse="[object Number]",wse="[object RegExp]",Ese="[object Set]",Sse="[object String]",Cse="[object Symbol]",_se="[object ArrayBuffer]",Ase="[object DataView]",kse="[object Float32Array]",Tse="[object Float64Array]",Dse="[object Int8Array]",Ose="[object Int16Array]",Fse="[object Int32Array]",Bse="[object Uint8Array]",Pse="[object Uint8ClampedArray]",Nse="[object Uint16Array]",Ise="[object Uint32Array]";function Rse(e,t,r){var n=e.constructor;switch(t){case _se:return aD(e);case mse:case yse:return new n(+e);case Ase:return dse(e,r);case kse:case Tse:case Dse:case Ose:case Fse:case Bse:case Pse:case Nse:case Ise:return gse(e,r);case xse:return new n;case bse:case Sse:return new n(e);case wse:return hse(e);case Ese:return new n;case Cse:return vse(e)}}function Lse(e){return typeof e.constructor=="function"&&!J5(e)?bie(zG(e)):{}}var Mse="[object Map]";function jse(e){return Rf(e)&&Kg(e)==Mse}var YB=qd&&qd.isMap,$se=YB?Q5(YB):jse;const Use=$se;var Hse="[object Set]";function zse(e){return Rf(e)&&Kg(e)==Hse}var JB=qd&&qd.isSet,Vse=JB?Q5(JB):zse;const Wse=Vse;var Gse=1,Kse=2,qse=4,qG="[object Arguments]",Xse="[object Array]",Yse="[object Boolean]",Jse="[object Date]",Zse="[object Error]",XG="[object Function]",Qse="[object GeneratorFunction]",eue="[object Map]",tue="[object Number]",YG="[object Object]",rue="[object RegExp]",nue="[object Set]",aue="[object String]",iue="[object Symbol]",oue="[object WeakMap]",sue="[object ArrayBuffer]",uue="[object DataView]",lue="[object Float32Array]",cue="[object Float64Array]",fue="[object Int8Array]",due="[object Int16Array]",pue="[object Int32Array]",hue="[object Uint8Array]",vue="[object Uint8ClampedArray]",gue="[object Uint16Array]",mue="[object Uint32Array]",Sr={};Sr[qG]=Sr[Xse]=Sr[sue]=Sr[uue]=Sr[Yse]=Sr[Jse]=Sr[lue]=Sr[cue]=Sr[fue]=Sr[due]=Sr[pue]=Sr[eue]=Sr[tue]=Sr[YG]=Sr[rue]=Sr[nue]=Sr[aue]=Sr[iue]=Sr[hue]=Sr[vue]=Sr[gue]=Sr[mue]=!0;Sr[Zse]=Sr[XG]=Sr[oue]=!1;function J2(e,t,r,n,a,i){var o,s=t&Gse,u=t&Kse,l=t&qse;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!Wd(e))return e;var c=Vl(e);if(c){if(o=cse(e),!s)return Eie(e,o)}else{var f=Kg(e),d=f==XG||f==Qse;if(Xx(e))return zoe(e,s);if(f==YG||f==qG||d&&!a){if(o=u||d?{}:Lse(e),!s)return u?Joe(e,Uoe(o,e)):qoe(e,$oe(o,e))}else{if(!Sr[f])return a?e:{};o=Rse(e,f,s)}}i||(i=new Qs);var p=i.get(e);if(p)return p;i.set(e,o),Wse(e)?e.forEach(function(g){o.add(J2(g,t,r,g,e,i))}):Use(e)&&e.forEach(function(g,m){o.set(m,J2(g,t,r,m,e,i))});var v=l?u?Zoe:S8:u?tD:eD,h=c?void 0:v(e);return Bie(h||e,function(g,m){h&&(m=g,g=e[m]),gG(o,m,J2(g,t,r,m,e,i))}),o}var yue=4;function ZB(e){return J2(e,yue)}var xue="__lodash_hash_undefined__";function bue(e){return this.__data__.set(e,xue),this}function wue(e){return this.__data__.has(e)}function Jx(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new yG;++t<r;)this.add(e[t])}Jx.prototype.add=Jx.prototype.push=bue;Jx.prototype.has=wue;function Eue(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Sue(e,t){return e.has(t)}var Cue=1,_ue=2;function JG(e,t,r,n,a,i){var o=r&Cue,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var l=i.get(e),c=i.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,p=r&_ue?new Jx:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var v=e[f],h=t[f];if(n)var g=o?n(h,v,f,t,e,i):n(v,h,f,e,t,i);if(g!==void 0){if(g)continue;d=!1;break}if(p){if(!Eue(t,function(m,y){if(!Sue(p,y)&&(v===m||a(v,m,r,n,i)))return p.push(y)})){d=!1;break}}else if(!(v===h||a(v,h,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function Aue(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function kue(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Tue=1,Due=2,Oue="[object Boolean]",Fue="[object Date]",Bue="[object Error]",Pue="[object Map]",Nue="[object Number]",Iue="[object RegExp]",Rue="[object Set]",Lue="[object String]",Mue="[object Symbol]",jue="[object ArrayBuffer]",$ue="[object DataView]",QB=Gd?Gd.prototype:void 0,cS=QB?QB.valueOf:void 0;function Uue(e,t,r,n,a,i,o){switch(r){case $ue:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case jue:return!(e.byteLength!=t.byteLength||!i(new Yx(e),new Yx(t)));case Oue:case Fue:case Nue:return Dae(+e,+t);case Bue:return e.name==t.name&&e.message==t.message;case Iue:case Lue:return e==t+"";case Pue:var s=Aue;case Rue:var u=n&Tue;if(s||(s=kue),e.size!=t.size&&!u)return!1;var l=o.get(e);if(l)return l==t;n|=Due,o.set(e,t);var c=JG(s(e),s(t),n,a,i,o);return o.delete(e),c;case Mue:if(cS)return cS.call(e)==cS.call(t)}return!1}var Hue=1,zue=Object.prototype,Vue=zue.hasOwnProperty;function Wue(e,t,r,n,a,i){var o=r&Hue,s=S8(e),u=s.length,l=S8(t),c=l.length;if(u!=c&&!o)return!1;for(var f=u;f--;){var d=s[f];if(!(o?d in t:Vue.call(t,d)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var h=!0;i.set(e,t),i.set(t,e);for(var g=o;++f<u;){d=s[f];var m=e[d],y=t[d];if(n)var x=o?n(y,m,d,t,e,i):n(m,y,d,e,t,i);if(!(x===void 0?m===y||a(m,y,r,n,i):x)){h=!1;break}g||(g=d=="constructor")}if(h&&!g){var b=e.constructor,E=t.constructor;b!=E&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof E=="function"&&E instanceof E)&&(h=!1)}return i.delete(e),i.delete(t),h}var Gue=1,eP="[object Arguments]",tP="[object Array]",gy="[object Object]",Kue=Object.prototype,rP=Kue.hasOwnProperty;function que(e,t,r,n,a,i){var o=Vl(e),s=Vl(t),u=o?tP:Kg(e),l=s?tP:Kg(t);u=u==eP?gy:u,l=l==eP?gy:l;var c=u==gy,f=l==gy,d=u==l;if(d&&Xx(e)){if(!Xx(t))return!1;o=!0,c=!1}if(d&&!c)return i||(i=new Qs),o||jG(e)?JG(e,t,r,n,a,i):Uue(e,t,u,r,n,a,i);if(!(r&Gue)){var p=c&&rP.call(e,"__wrapped__"),v=f&&rP.call(t,"__wrapped__");if(p||v){var h=p?e.value():e,g=v?t.value():t;return i||(i=new Qs),a(h,g,r,n,i)}}return d?(i||(i=new Qs),Wue(e,t,r,n,a,i)):!1}function ZG(e,t,r,n,a){return e===t?!0:e==null||t==null||!Rf(e)&&!Rf(t)?e!==e&&t!==t:que(e,t,r,n,ZG,a)}function Xue(e,t){return e!=null&&t in Object(e)}function Yue(e,t,r){t=xG(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=Oae(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&Y5(a)&&mG(o,a)&&(Vl(e)||Z5(e)))}function Jue(e,t){return e!=null&&Yue(e,t,Xue)}var Zue=function(){return uc.Date.now()};const fS=Zue;var Que="Expected a function",ele=Math.max,tle=Math.min;function nP(e,t,r){var n,a,i,o,s,u,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Que);t=FB(t)||0,Wd(r)&&(c=!!r.leading,f="maxWait"in r,i=f?ele(FB(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function p(S){var w=n,C=a;return n=a=void 0,l=S,o=e.apply(C,w),o}function v(S){return l=S,s=setTimeout(m,t),c?p(S):o}function h(S){var w=S-u,C=S-l,_=t-w;return f?tle(_,i-C):_}function g(S){var w=S-u,C=S-l;return u===void 0||w>=t||w<0||f&&C>=i}function m(){var S=fS();if(g(S))return y(S);s=setTimeout(m,h(S))}function y(S){return s=void 0,d&&n?p(S):(n=a=void 0,o)}function x(){s!==void 0&&clearTimeout(s),l=0,n=u=a=s=void 0}function b(){return s===void 0?o:y(fS())}function E(){var S=fS(),w=g(S);if(n=arguments,a=this,u=S,w){if(s===void 0)return v(u);if(f)return clearTimeout(s),s=setTimeout(m,t),p(u)}return s===void 0&&(s=setTimeout(m,t)),o}return E.cancel=x,E.flush=b,E}function Zx(e,t){return ZG(e,t)}function RE(e){return e==null}function rle(e){return e===void 0}function nle(e,t,r){for(var n=-1,a=t.length,i={};++n<a;){var o=t[n],s=Fae(e,o);r(s,o)&&Bae(i,xG(o,e),s)}return i}function ale(e,t){return nle(e,t,function(r,n){return Jue(e,n)})}var ile=Boe(function(e,t){return e==null?{}:ale(e,t)});const qg=ile,ole=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");class sle extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function iD(e,t){throw new sle(`[${e}] ${t}`)}function pet(e,t){}const QG=(e="")=>e.split(" ").filter(t=>!!t.trim()),aP=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Qx=(e,t)=>{!e||!t.trim()||e.classList.add(...QG(t))},bl=(e,t)=>{!e||!t.trim()||e.classList.remove(...QG(t))},ld=(e,t)=>{var r;if(!bn||!e||!t)return"";let n=Pae(t);n==="float"&&(n="cssFloat");try{const a=e.style[n];if(a)return a;const i=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return i?i[n]:""}catch(a){return e.style[n]}};function Gl(e,t="px"){if(!e)return"";if(Fn(e)||Nae(e))return`${e}${t}`;if(In(e))return e}let my;const ule=e=>{var t;if(!bn)return 0;if(my!==void 0)return my;const r=document.createElement("div");r.className=`${e}-scrollbar__wrap`,r.style.visibility="hidden",r.style.width="100px",r.style.position="absolute",r.style.top="-9999px",document.body.appendChild(r);const n=r.offsetWidth;r.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",r.appendChild(a);const i=a.offsetWidth;return(t=r.parentNode)==null||t.removeChild(r),my=n-i,my};function lle(e,t){if(!bn)return;if(!t){e.scrollTop=0;return}const r=[];let n=t.offsetParent;for(;n!==null&&e!==n&&e.contains(n);)r.push(n),n=n.offsetParent;const a=t.offsetTop+r.reduce((u,l)=>u+l.offsetTop,0),i=a+t.offsetHeight,o=e.scrollTop,s=o+e.clientHeight;a<o?e.scrollTop=a:i>s&&(e.scrollTop=i-e.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var _a=(e,t)=>{let r=e.__vccOpts||e;for(let[n,a]of t)r[n]=a;return r},cle={name:"ArrowDown"},fle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dle=Pe("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),ple=[dle];function hle(e,t,r,n,a,i){return ge(),Oe("svg",fle,ple)}var vle=_a(cle,[["render",hle],["__file","arrow-down.vue"]]),gle={name:"CaretRight"},mle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yle=Pe("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),xle=[yle];function ble(e,t,r,n,a,i){return ge(),Oe("svg",mle,xle)}var wle=_a(gle,[["render",ble],["__file","caret-right.vue"]]),Ele={name:"Check"},Sle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Cle=Pe("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),_le=[Cle];function Ale(e,t,r,n,a,i){return ge(),Oe("svg",Sle,_le)}var het=_a(Ele,[["render",Ale],["__file","check.vue"]]),kle={name:"CircleCheck"},Tle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Dle=Pe("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Ole=Pe("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),Fle=[Dle,Ole];function Ble(e,t,r,n,a,i){return ge(),Oe("svg",Tle,Fle)}var Ple=_a(kle,[["render",Ble],["__file","circle-check.vue"]]),Nle={name:"CircleCloseFilled"},Ile={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Rle=Pe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),Lle=[Rle];function Mle(e,t,r,n,a,i){return ge(),Oe("svg",Ile,Lle)}var eK=_a(Nle,[["render",Mle],["__file","circle-close-filled.vue"]]),jle={name:"CircleClose"},$le={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ule=Pe("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),Hle=Pe("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),zle=[Ule,Hle];function Vle(e,t,r,n,a,i){return ge(),Oe("svg",$le,zle)}var oD=_a(jle,[["render",Vle],["__file","circle-close.vue"]]),Wle={name:"Close"},Gle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Kle=Pe("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),qle=[Kle];function Xle(e,t,r,n,a,i){return ge(),Oe("svg",Gle,qle)}var eb=_a(Wle,[["render",Xle],["__file","close.vue"]]),Yle={name:"Delete"},Jle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Zle=Pe("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),Qle=[Zle];function ece(e,t,r,n,a,i){return ge(),Oe("svg",Jle,Qle)}var vet=_a(Yle,[["render",ece],["__file","delete.vue"]]),tce={name:"Document"},rce={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nce=Pe("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),ace=[nce];function ice(e,t,r,n,a,i){return ge(),Oe("svg",rce,ace)}var get=_a(tce,[["render",ice],["__file","document.vue"]]),oce={name:"Hide"},sce={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},uce=Pe("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),lce=Pe("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),cce=[uce,lce];function fce(e,t,r,n,a,i){return ge(),Oe("svg",sce,cce)}var dce=_a(oce,[["render",fce],["__file","hide.vue"]]),pce={name:"InfoFilled"},hce={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vce=Pe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),gce=[vce];function mce(e,t,r,n,a,i){return ge(),Oe("svg",hce,gce)}var tK=_a(pce,[["render",mce],["__file","info-filled.vue"]]),yce={name:"Loading"},xce={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bce=Pe("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),wce=[bce];function Ece(e,t,r,n,a,i){return ge(),Oe("svg",xce,wce)}var sD=_a(yce,[["render",Ece],["__file","loading.vue"]]),Sce={name:"SuccessFilled"},Cce={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_ce=Pe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),Ace=[_ce];function kce(e,t,r,n,a,i){return ge(),Oe("svg",Cce,Ace)}var rK=_a(Sce,[["render",kce],["__file","success-filled.vue"]]),Tce={name:"View"},Dce={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Oce=Pe("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),Fce=[Oce];function Bce(e,t,r,n,a,i){return ge(),Oe("svg",Dce,Fce)}var Pce=_a(Tce,[["render",Bce],["__file","view.vue"]]),Nce={name:"WarningFilled"},Ice={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Rce=Pe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),Lce=[Rce];function Mce(e,t,r,n,a,i){return ge(),Oe("svg",Ice,Lce)}var nK=_a(Nce,[["render",Mce],["__file","warning-filled.vue"]]),jce={name:"ZoomIn"},$ce={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Uce=Pe("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),Hce=[Uce];function zce(e,t,r,n,a,i){return ge(),Oe("svg",$ce,Hce)}var met=_a(jce,[["render",zce],["__file","zoom-in.vue"]]);const su=xt([String,Object,Function]),Vce={Close:eb},Wce={Close:eb,SuccessFilled:rK,InfoFilled:tK,WarningFilled:nK,CircleCloseFilled:eK},iP={success:rK,warning:nK,error:eK,info:tK},Gce={validating:sD,success:Ple,error:oD},Kce=(...e)=>t=>{e.forEach(r=>{Tn(r)?r(t):r.value=t})},Ga={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},zr="update:modelValue",uD="change",qce=e=>Iae[e||"default"],Xce=e=>["",...NE].includes(e);var Z2=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Z2||{});const aK=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),zc=e=>e,Yce=["class","style"],Jce=/^on[A-Z]/,Zce=(e={})=>{const{excludeListeners:t=!1,excludeKeys:r}=e,n=ce(()=>((r==null?void 0:r.value)||[]).concat(Yce)),a=ui();return a?ce(()=>{var i;return y8(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([o])=>!n.value.includes(o)&&!(t&&Jce.test(o))))}):ce(()=>({}))},tb=({from:e,replacement:t,scope:r,version:n,ref:a,type:i="API"},o)=>{Ge(()=>T(o),s=>{},{immediate:!0})},Qce=(e,t,r)=>{let n={offsetX:0,offsetY:0};const a=s=>{const u=s.clientX,l=s.clientY,{offsetX:c,offsetY:f}=n,d=e.value.getBoundingClientRect(),p=d.left,v=d.top,h=d.width,g=d.height,m=document.documentElement.clientWidth,y=document.documentElement.clientHeight,x=-p+c,b=-v+f,E=m-p-h+c,S=y-v-g+f,w=_=>{const O=Math.min(Math.max(c+_.clientX-u,x),E),P=Math.min(Math.max(f+_.clientY-l,b),S);n={offsetX:O,offsetY:P},e.value.style.transform=`translate(${Gl(O)}, ${Gl(P)})`},C=()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C)};document.addEventListener("mousemove",w),document.addEventListener("mouseup",C)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",a)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",a)};$r(()=>{bG(()=>{r.value?i():o()})}),li(()=>{o()})},efe=e=>({focus:()=>{var t,r;(r=(t=e.value)==null?void 0:t.focus)==null||r.call(t)}}),tfe=(e,t={})=>{Wl(e)||iD("[useLockscreen]","You need to pass a ref param to this function");const r=t.ns||ct("popup"),n=Rae(()=>r.bm("parent","hidden"));if(!bn||aP(document.body,n.value))return;let a=0,i=!1,o="0";const s=()=>{setTimeout(()=>{bl(document==null?void 0:document.body,n.value),i&&document&&(document.body.style.width=o)},200)};Ge(e,u=>{if(!u){s();return}i=!aP(document.body,n.value),i&&(o=document.body.style.width),a=ule(r.namespace.value);const l=document.documentElement.clientHeight<document.body.scrollHeight,c=ld(document.body,"overflowY");a>0&&(l||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`),Qx(document.body,n.value)}),Lae(()=>s())},rfe=wG({type:xt(Boolean),default:null}),nfe=wG({type:xt(Function)}),iK=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],a={[e]:rfe,[r]:nfe};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:u,shouldProceed:l,onShow:c,onHide:f})=>{const d=ui(),{emit:p}=d,v=d.props,h=ce(()=>Tn(v[r])),g=ce(()=>v[e]===null),m=w=>{o.value!==!0&&(o.value=!0,s&&(s.value=w),Tn(c)&&c(w))},y=w=>{o.value!==!1&&(o.value=!1,s&&(s.value=w),Tn(f)&&f(w))},x=w=>{if(v.disabled===!0||Tn(l)&&!l())return;const C=h.value&&bn;C&&p(t,!0),(g.value||!C)&&m(w)},b=w=>{if(v.disabled===!0||!bn)return;const C=h.value&&bn;C&&p(t,!1),(g.value||!C)&&y(w)},E=w=>{xs(w)&&(v.disabled&&w?h.value&&p(t,!1):o.value!==w&&(w?m():y()))},S=()=>{o.value?b():x()};return Ge(()=>v[e],E),u&&d.appContext.config.globalProperties.$route!==void 0&&Ge(()=>({...d.proxy.$route}),()=>{u.value&&o.value&&b()}),$r(()=>{E(v[e])}),{hide:b,show:x,toggle:S,hasUpdateHandler:h}},useModelToggleProps:a,useModelToggleEmits:n}};iK("modelValue");const oK=e=>{const t=ui();return ce(()=>{var r,n;return(n=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:n[e]})};var Qa="top",to="bottom",ro="right",ei="left",lD="auto",om=[Qa,to,ro,ei],Xd="start",Xg="end",afe="clippingParents",sK="viewport",yh="popper",ife="reference",oP=om.reduce(function(e,t){return e.concat([t+"-"+Xd,t+"-"+Xg])},[]),LE=[].concat(om,[lD]).reduce(function(e,t){return e.concat([t,t+"-"+Xd,t+"-"+Xg])},[]),ofe="beforeRead",sfe="read",ufe="afterRead",lfe="beforeMain",cfe="main",ffe="afterMain",dfe="beforeWrite",pfe="write",hfe="afterWrite",vfe=[ofe,sfe,ufe,lfe,cfe,ffe,dfe,pfe,hfe];function ws(e){return e?(e.nodeName||"").toLowerCase():null}function Go(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yd(e){var t=Go(e).Element;return e instanceof t||e instanceof Element}function Xi(e){var t=Go(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function cD(e){if(typeof ShadowRoot>"u")return!1;var t=Go(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function gfe(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},i=t.elements[r];!Xi(i)||!ws(i)||(Object.assign(i.style,n),Object.keys(a).forEach(function(o){var s=a[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function mfe(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],i=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=o.reduce(function(u,l){return u[l]="",u},{});!Xi(a)||!ws(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(u){a.removeAttribute(u)}))})}}var uK={name:"applyStyles",enabled:!0,phase:"write",fn:gfe,effect:mfe,requires:["computeStyles"]};function vs(e){return e.split("-")[0]}var sf=Math.max,rb=Math.min,Jd=Math.round;function Zd(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,a=1;if(Xi(e)&&t){var i=e.offsetHeight,o=e.offsetWidth;o>0&&(n=Jd(r.width)/o||1),i>0&&(a=Jd(r.height)/i||1)}return{width:r.width/n,height:r.height/a,top:r.top/a,right:r.right/n,bottom:r.bottom/a,left:r.left/n,x:r.left/n,y:r.top/a}}function fD(e){var t=Zd(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function lK(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&cD(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function uu(e){return Go(e).getComputedStyle(e)}function yfe(e){return["table","td","th"].indexOf(ws(e))>=0}function lc(e){return((Yd(e)?e.ownerDocument:e.document)||window.document).documentElement}function ME(e){return ws(e)==="html"?e:e.assignedSlot||e.parentNode||(cD(e)?e.host:null)||lc(e)}function sP(e){return!Xi(e)||uu(e).position==="fixed"?null:e.offsetParent}function xfe(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&Xi(e)){var n=uu(e);if(n.position==="fixed")return null}var a=ME(e);for(cD(a)&&(a=a.host);Xi(a)&&["html","body"].indexOf(ws(a))<0;){var i=uu(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function sm(e){for(var t=Go(e),r=sP(e);r&&yfe(r)&&uu(r).position==="static";)r=sP(r);return r&&(ws(r)==="html"||ws(r)==="body"&&uu(r).position==="static")?t:r||xfe(e)||t}function dD(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ag(e,t,r){return sf(e,rb(t,r))}function bfe(e,t,r){var n=ag(e,t,r);return n>r?r:n}function cK(){return{top:0,right:0,bottom:0,left:0}}function fK(e){return Object.assign({},cK(),e)}function dK(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var wfe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,fK(typeof e!="number"?e:dK(e,om))};function Efe(e){var t,r=e.state,n=e.name,a=e.options,i=r.elements.arrow,o=r.modifiersData.popperOffsets,s=vs(r.placement),u=dD(s),l=[ei,ro].indexOf(s)>=0,c=l?"height":"width";if(!(!i||!o)){var f=wfe(a.padding,r),d=fD(i),p=u==="y"?Qa:ei,v=u==="y"?to:ro,h=r.rects.reference[c]+r.rects.reference[u]-o[u]-r.rects.popper[c],g=o[u]-r.rects.reference[u],m=sm(i),y=m?u==="y"?m.clientHeight||0:m.clientWidth||0:0,x=h/2-g/2,b=f[p],E=y-d[c]-f[v],S=y/2-d[c]/2+x,w=ag(b,S,E),C=u;r.modifiersData[n]=(t={},t[C]=w,t.centerOffset=w-S,t)}}function Sfe(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!lK(t.elements.popper,a)||(t.elements.arrow=a))}var Cfe={name:"arrow",enabled:!0,phase:"main",fn:Efe,effect:Sfe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qd(e){return e.split("-")[1]}var _fe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Afe(e){var t=e.x,r=e.y,n=window,a=n.devicePixelRatio||1;return{x:Jd(t*a)/a||0,y:Jd(r*a)/a||0}}function uP(e){var t,r=e.popper,n=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=o.x,p=d===void 0?0:d,v=o.y,h=v===void 0?0:v,g=typeof c=="function"?c({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),x=ei,b=Qa,E=window;if(l){var S=sm(r),w="clientHeight",C="clientWidth";if(S===Go(r)&&(S=lc(r),uu(S).position!=="static"&&s==="absolute"&&(w="scrollHeight",C="scrollWidth")),S=S,a===Qa||(a===ei||a===ro)&&i===Xg){b=to;var _=f&&S===E&&E.visualViewport?E.visualViewport.height:S[w];h-=_-n.height,h*=u?1:-1}if(a===ei||(a===Qa||a===to)&&i===Xg){x=ro;var O=f&&S===E&&E.visualViewport?E.visualViewport.width:S[C];p-=O-n.width,p*=u?1:-1}}var P=Object.assign({position:s},l&&_fe),F=c===!0?Afe({x:p,y:h}):{x:p,y:h};if(p=F.x,h=F.y,u){var q;return Object.assign({},P,(q={},q[b]=y?"0":"",q[x]=m?"0":"",q.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",q))}return Object.assign({},P,(t={},t[b]=y?h+"px":"",t[x]=m?p+"px":"",t.transform="",t))}function kfe(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,i=r.adaptive,o=i===void 0?!0:i,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:vs(t.placement),variation:Qd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,uP(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,uP(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var pK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:kfe,data:{}},yy={passive:!0};function Tfe(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,i=a===void 0?!0:a,o=n.resize,s=o===void 0?!0:o,u=Go(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach(function(c){c.addEventListener("scroll",r.update,yy)}),s&&u.addEventListener("resize",r.update,yy),function(){i&&l.forEach(function(c){c.removeEventListener("scroll",r.update,yy)}),s&&u.removeEventListener("resize",r.update,yy)}}var hK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Tfe,data:{}},Dfe={left:"right",right:"left",bottom:"top",top:"bottom"};function Q2(e){return e.replace(/left|right|bottom|top/g,function(t){return Dfe[t]})}var Ofe={start:"end",end:"start"};function lP(e){return e.replace(/start|end/g,function(t){return Ofe[t]})}function pD(e){var t=Go(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function hD(e){return Zd(lc(e)).left+pD(e).scrollLeft}function Ffe(e){var t=Go(e),r=lc(e),n=t.visualViewport,a=r.clientWidth,i=r.clientHeight,o=0,s=0;return n&&(a=n.width,i=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,s=n.offsetTop)),{width:a,height:i,x:o+hD(e),y:s}}function Bfe(e){var t,r=lc(e),n=pD(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=sf(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=sf(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+hD(e),u=-n.scrollTop;return uu(a||r).direction==="rtl"&&(s+=sf(r.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:u}}function vD(e){var t=uu(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function vK(e){return["html","body","#document"].indexOf(ws(e))>=0?e.ownerDocument.body:Xi(e)&&vD(e)?e:vK(ME(e))}function ig(e,t){var r;t===void 0&&(t=[]);var n=vK(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),i=Go(n),o=a?[i].concat(i.visualViewport||[],vD(n)?n:[]):n,s=t.concat(o);return a?s:s.concat(ig(ME(o)))}function k8(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pfe(e){var t=Zd(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function cP(e,t){return t===sK?k8(Ffe(e)):Yd(t)?Pfe(t):k8(Bfe(lc(e)))}function Nfe(e){var t=ig(ME(e)),r=["absolute","fixed"].indexOf(uu(e).position)>=0,n=r&&Xi(e)?sm(e):e;return Yd(n)?t.filter(function(a){return Yd(a)&&lK(a,n)&&ws(a)!=="body"}):[]}function Ife(e,t,r){var n=t==="clippingParents"?Nfe(e):[].concat(t),a=[].concat(n,[r]),i=a[0],o=a.reduce(function(s,u){var l=cP(e,u);return s.top=sf(l.top,s.top),s.right=rb(l.right,s.right),s.bottom=rb(l.bottom,s.bottom),s.left=sf(l.left,s.left),s},cP(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function gK(e){var t=e.reference,r=e.element,n=e.placement,a=n?vs(n):null,i=n?Qd(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(a){case Qa:u={x:o,y:t.y-r.height};break;case to:u={x:o,y:t.y+t.height};break;case ro:u={x:t.x+t.width,y:s};break;case ei:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=a?dD(a):null;if(l!=null){var c=l==="y"?"height":"width";switch(i){case Xd:u[l]=u[l]-(t[c]/2-r[c]/2);break;case Xg:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function Yg(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,i=r.boundary,o=i===void 0?afe:i,s=r.rootBoundary,u=s===void 0?sK:s,l=r.elementContext,c=l===void 0?yh:l,f=r.altBoundary,d=f===void 0?!1:f,p=r.padding,v=p===void 0?0:p,h=fK(typeof v!="number"?v:dK(v,om)),g=c===yh?ife:yh,m=e.rects.popper,y=e.elements[d?g:c],x=Ife(Yd(y)?y:y.contextElement||lc(e.elements.popper),o,u),b=Zd(e.elements.reference),E=gK({reference:b,element:m,strategy:"absolute",placement:a}),S=k8(Object.assign({},m,E)),w=c===yh?S:b,C={top:x.top-w.top+h.top,bottom:w.bottom-x.bottom+h.bottom,left:x.left-w.left+h.left,right:w.right-x.right+h.right},_=e.modifiersData.offset;if(c===yh&&_){var O=_[a];Object.keys(C).forEach(function(P){var F=[ro,to].indexOf(P)>=0?1:-1,q=[Qa,to].indexOf(P)>=0?"y":"x";C[P]+=O[q]*F})}return C}function Rfe(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,i=r.rootBoundary,o=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?LE:u,c=Qd(n),f=c?s?oP:oP.filter(function(v){return Qd(v)===c}):om,d=f.filter(function(v){return l.indexOf(v)>=0});d.length===0&&(d=f);var p=d.reduce(function(v,h){return v[h]=Yg(e,{placement:h,boundary:a,rootBoundary:i,padding:o})[vs(h)],v},{});return Object.keys(p).sort(function(v,h){return p[v]-p[h]})}function Lfe(e){if(vs(e)===lD)return[];var t=Q2(e);return[lP(e),t,lP(t)]}function Mfe(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,s=o===void 0?!0:o,u=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,p=r.flipVariations,v=p===void 0?!0:p,h=r.allowedAutoPlacements,g=t.options.placement,m=vs(g),y=m===g,x=u||(y||!v?[Q2(g)]:Lfe(g)),b=[g].concat(x).reduce(function(I,L){return I.concat(vs(L)===lD?Rfe(t,{placement:L,boundary:c,rootBoundary:f,padding:l,flipVariations:v,allowedAutoPlacements:h}):L)},[]),E=t.rects.reference,S=t.rects.popper,w=new Map,C=!0,_=b[0],O=0;O<b.length;O++){var P=b[O],F=vs(P),q=Qd(P)===Xd,ee=[Qa,to].indexOf(F)>=0,J=ee?"width":"height",Z=Yg(t,{placement:P,boundary:c,rootBoundary:f,altBoundary:d,padding:l}),V=ee?q?ro:ei:q?to:Qa;E[J]>S[J]&&(V=Q2(V));var ie=Q2(V),W=[];if(i&&W.push(Z[F]<=0),s&&W.push(Z[V]<=0,Z[ie]<=0),W.every(function(I){return I})){_=P,C=!1;break}w.set(P,W)}if(C)for(var de=v?3:1,M=function(I){var L=b.find(function(Y){var Q=w.get(Y);if(Q)return Q.slice(0,I).every(function(le){return le})});if(L)return _=L,"break"},A=de;A>0;A--){var N=M(A);if(N==="break")break}t.placement!==_&&(t.modifiersData[n]._skip=!0,t.placement=_,t.reset=!0)}}var jfe={name:"flip",enabled:!0,phase:"main",fn:Mfe,requiresIfExists:["offset"],data:{_skip:!1}};function fP(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function dP(e){return[Qa,ro,to,ei].some(function(t){return e[t]>=0})}function $fe(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=Yg(t,{elementContext:"reference"}),s=Yg(t,{altBoundary:!0}),u=fP(o,n),l=fP(s,a,i),c=dP(u),f=dP(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var Ufe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$fe};function Hfe(e,t,r){var n=vs(e),a=[ei,Qa].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[ei,ro].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function zfe(e){var t=e.state,r=e.options,n=e.name,a=r.offset,i=a===void 0?[0,0]:a,o=LE.reduce(function(c,f){return c[f]=Hfe(f,t.rects,i),c},{}),s=o[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=o}var Vfe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zfe};function Wfe(e){var t=e.state,r=e.name;t.modifiersData[r]=gK({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var mK={name:"popperOffsets",enabled:!0,phase:"read",fn:Wfe,data:{}};function Gfe(e){return e==="x"?"y":"x"}function Kfe(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,s=o===void 0?!1:o,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,p=d===void 0?!0:d,v=r.tetherOffset,h=v===void 0?0:v,g=Yg(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),m=vs(t.placement),y=Qd(t.placement),x=!y,b=dD(m),E=Gfe(b),S=t.modifiersData.popperOffsets,w=t.rects.reference,C=t.rects.popper,_=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,O=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(S){if(i){var q,ee=b==="y"?Qa:ei,J=b==="y"?to:ro,Z=b==="y"?"height":"width",V=S[b],ie=V+g[ee],W=V-g[J],de=p?-C[Z]/2:0,M=y===Xd?w[Z]:C[Z],A=y===Xd?-C[Z]:-w[Z],N=t.elements.arrow,I=p&&N?fD(N):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cK(),Y=L[ee],Q=L[J],le=ag(0,w[Z],I[Z]),ve=x?w[Z]/2-de-le-Y-O.mainAxis:M-le-Y-O.mainAxis,he=x?-w[Z]/2+de+le+Q+O.mainAxis:A+le+Q+O.mainAxis,fe=t.elements.arrow&&sm(t.elements.arrow),z=fe?b==="y"?fe.clientTop||0:fe.clientLeft||0:0,je=(q=P==null?void 0:P[b])!=null?q:0,Te=V+ve-je-z,Ne=V+he-je,He=ag(p?rb(ie,Te):ie,V,p?sf(W,Ne):W);S[b]=He,F[b]=He-V}if(s){var we,Je=b==="x"?Qa:ei,ut=b==="x"?to:ro,_t=S[E],Qe=E==="y"?"height":"width",cr=_t+g[Je],zt=_t-g[ut],Se=[Qa,ei].indexOf(m)!==-1,at=(we=P==null?void 0:P[E])!=null?we:0,Rt=Se?cr:_t-w[Qe]-C[Qe]-at+O.altAxis,fr=Se?_t+w[Qe]+C[Qe]-at-O.altAxis:zt,It=p&&Se?bfe(Rt,_t,fr):ag(p?Rt:cr,_t,p?fr:zt);S[E]=It,F[E]=It-_t}t.modifiersData[n]=F}}var qfe={name:"preventOverflow",enabled:!0,phase:"main",fn:Kfe,requiresIfExists:["offset"]};function Xfe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Yfe(e){return e===Go(e)||!Xi(e)?pD(e):Xfe(e)}function Jfe(e){var t=e.getBoundingClientRect(),r=Jd(t.width)/e.offsetWidth||1,n=Jd(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Zfe(e,t,r){r===void 0&&(r=!1);var n=Xi(t),a=Xi(t)&&Jfe(t),i=lc(t),o=Zd(e,a),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((ws(t)!=="body"||vD(i))&&(s=Yfe(t)),Xi(t)?(u=Zd(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=hD(i))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function Qfe(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function a(i){r.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&a(u)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||a(i)}),n}function e0e(e){var t=Qfe(e);return vfe.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function t0e(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function r0e(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var pP={placement:"bottom",modifiers:[],strategy:"absolute"};function hP(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function gD(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,i=a===void 0?pP:a;return function(o,s,u){u===void 0&&(u=i);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},pP,i),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},c=[],f=!1,d={state:l,setOptions:function(h){var g=typeof h=="function"?h(l.options):h;v(),l.options=Object.assign({},i,l.options,g),l.scrollParents={reference:Yd(o)?ig(o):o.contextElement?ig(o.contextElement):[],popper:ig(s)};var m=e0e(r0e([].concat(n,l.options.modifiers)));return l.orderedModifiers=m.filter(function(y){return y.enabled}),p(),d.update()},forceUpdate:function(){if(!f){var h=l.elements,g=h.reference,m=h.popper;if(hP(g,m)){l.rects={reference:Zfe(g,sm(m),l.options.strategy==="fixed"),popper:fD(m)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(C){return l.modifiersData[C.name]=Object.assign({},C.data)});for(var y=0;y<l.orderedModifiers.length;y++){if(l.reset===!0){l.reset=!1,y=-1;continue}var x=l.orderedModifiers[y],b=x.fn,E=x.options,S=E===void 0?{}:E,w=x.name;typeof b=="function"&&(l=b({state:l,options:S,name:w,instance:d})||l)}}}},update:t0e(function(){return new Promise(function(h){d.forceUpdate(),h(l)})}),destroy:function(){v(),f=!0}};if(!hP(o,s))return d;d.setOptions(u).then(function(h){!f&&u.onFirstUpdate&&u.onFirstUpdate(h)});function p(){l.orderedModifiers.forEach(function(h){var g=h.name,m=h.options,y=m===void 0?{}:m,x=h.effect;if(typeof x=="function"){var b=x({state:l,name:g,instance:d,options:y}),E=function(){};c.push(b||E)}})}function v(){c.forEach(function(h){return h()}),c=[]}return d}}gD();var n0e=[hK,mK,pK,uK];gD({defaultModifiers:n0e});var a0e=[hK,mK,pK,uK,Vfe,jfe,qfe,Cfe,Ufe],i0e=gD({defaultModifiers:a0e});const o0e=(e,t,r={})=>{const n={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const l=s0e(u);Object.assign(o.value,l)},requires:["computeStyles"]},a=ce(()=>{const{onFirstUpdate:u,placement:l,strategy:c,modifiers:f}=T(r);return{onFirstUpdate:u,placement:l||"bottom",strategy:c||"absolute",modifiers:[...f||[],n,{name:"applyStyles",enabled:!1}]}}),i=ps(),o=ke({styles:{popper:{position:T(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return Ge(a,u=>{const l=T(i);l&&l.setOptions(u)},{deep:!0}),Ge([e,t],([u,l])=>{s(),!(!u||!l)&&(i.value=i0e(u,l,T(a)))}),li(()=>{s()}),{state:ce(()=>{var u;return{...((u=T(i))==null?void 0:u.state)||{}}}),styles:ce(()=>T(o).styles),attributes:ce(()=>T(o).attributes),update:()=>{var u;return(u=T(i))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=T(i))==null?void 0:u.forceUpdate()},instanceRef:ce(()=>T(i))}};function s0e(e){const t=Object.keys(e.elements),r=y8(t.map(a=>[a,e.styles[a]||{}])),n=y8(t.map(a=>[a,e.attributes[a]]));return{styles:r,attributes:n}}const yK=e=>{if(!e)return{onClick:of,onMousedown:of,onMouseup:of};let t=!1,r=!1;return{onClick:o=>{t&&r&&e(o),t=r=!1},onMousedown:o=>{t=o.target===o.currentTarget},onMouseup:o=>{r=o.target===o.currentTarget}}};function vP(){let e;const t=(n,a)=>{r(),e=window.setTimeout(n,a)},r=()=>window.clearTimeout(e);return Mae(()=>r()),{registerTimeout:t,cancelTimeout:r}}const gP={prefix:Math.floor(Math.random()*1e4),current:0},u0e=Symbol("elIdInjection"),xK=()=>ui()?Nt(u0e,gP):gP,ep=e=>{const t=xK(),r=EG();return ce(()=>T(e)||`${r.value}-id-${t.prefix}-${t.current++}`)};let cd=[];const mP=e=>{const t=e;t.key===Ga.esc&&cd.forEach(r=>r(t))},l0e=e=>{$r(()=>{cd.length===0&&document.addEventListener("keydown",mP),bn&&cd.push(e)}),li(()=>{cd=cd.filter(t=>t!==e),cd.length===0&&bn&&document.removeEventListener("keydown",mP)})};let yP;const bK=()=>{const e=EG(),t=xK(),r=ce(()=>`${e.value}-popper-container-${t.prefix}`),n=ce(()=>`#${r.value}`);return{id:r,selector:n}},c0e=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},f0e=()=>{const{id:e,selector:t}=bK();return SG(()=>{bn&&!yP&&!document.body.querySelector(t.value)&&(yP=c0e(e.value))}),{id:e,selector:t}},d0e=ar({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),p0e=({showAfter:e,hideAfter:t,autoClose:r,open:n,close:a})=>{const{registerTimeout:i}=vP(),{registerTimeout:o,cancelTimeout:s}=vP();return{onOpen:c=>{i(()=>{n(c);const f=T(r);Fn(f)&&f>0&&o(()=>{a(c)},f)},T(e))},onClose:c=>{s(),i(()=>{a(c)},T(t))}}},wK=Symbol("elForwardRef"),h0e=e=>{on(wK,{setForwardRef:r=>{e.value=r}})},v0e=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}});function g0e(e){const t=ke();function r(){if(e.value==null)return;const{selectionStart:a,selectionEnd:i,value:o}=e.value;if(a==null||i==null)return;const s=o.slice(0,Math.max(0,a)),u=o.slice(Math.max(0,i));t.value={selectionStart:a,selectionEnd:i,value:o,beforeTxt:s,afterTxt:u}}function n(){if(e.value==null||t.value==null)return;const{value:a}=e.value,{beforeTxt:i,afterTxt:o,selectionStart:s}=t.value;if(i==null||o==null||s==null)return;let u=a.length;if(a.endsWith(o))u=a.length-o.length;else if(a.startsWith(i))u=i.length;else{const l=i[s-1],c=a.indexOf(l,s-1);c!==-1&&(u=c+1)}e.value.setSelectionRange(u,u)}return[r,n]}var gt=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r};const m0e=ar({size:{type:xt([Number,String])},color:{type:String}}),y0e=Fe({name:"ElIcon",inheritAttrs:!1}),x0e=Fe({...y0e,props:m0e,setup(e){const t=e,r=ct("icon"),n=ce(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:Kx(a)?void 0:Gl(a),"--color":i}});return(a,i)=>(ge(),Oe("i",hs({class:T(r).b(),style:T(n)},a.$attrs),[tt(a.$slots,"default")],16))}});var b0e=gt(x0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Xa=ua(b0e),Hp=Symbol("formContextKey"),Kl=Symbol("formItemContextKey"),lu=(e,t={})=>{const r=ke(void 0),n=t.prop?r:oK("size"),a=t.global?r:jae(),i=t.form?{size:void 0}:Nt(Hp,void 0),o=t.formItem?{size:void 0}:Nt(Kl,void 0);return ce(()=>n.value||T(e)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},um=e=>{const t=oK("disabled"),r=Nt(Hp,void 0);return ce(()=>t.value||T(e)||(r==null?void 0:r.disabled)||!1)},a0=()=>{const e=Nt(Hp,void 0),t=Nt(Kl,void 0);return{form:e,formItem:t}},jE=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=ke(!1)),n||(n=ke(!1));const a=ke();let i;const o=ce(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return $r(()=>{i=Ge([Do(e,"id"),r],([s,u])=>{const l=s!=null?s:u?void 0:ep().value;l!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(n!=null&&n.value)&&!u&&l&&t.addInputId(l)),a.value=l)},{immediate:!0})}),$ae(()=>{i&&i(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},w0e=ar({size:{type:String,values:NE},disabled:Boolean}),E0e=ar({...w0e,model:Object,rules:{type:xt(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),S0e={validate:(e,t,r)=>(Lf(e)||In(e))&&xs(t)&&In(r)};function C0e(){const e=ke([]),t=ce(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function r(i){const o=e.value.indexOf(i);return o===-1&&t.value,o}function n(i,o){if(i&&o){const s=r(o);e.value.splice(s,1,i)}else i&&e.value.push(i)}function a(i){const o=r(i);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:n,deregisterLabelWidth:a}}const xy=(e,t)=>{const r=E8(t);return r.length>0?e.filter(n=>n.prop&&r.includes(n.prop)):e},_0e="ElForm",A0e=Fe({name:_0e}),k0e=Fe({...A0e,props:E0e,emits:S0e,setup(e,{expose:t,emit:r}){const n=e,a=[],i=lu(),o=ct("form"),s=ce(()=>{const{labelPosition:y,inline:x}=n;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${y}`)]:y,[o.m("inline")]:x}]}),u=y=>{a.push(y)},l=y=>{y.prop&&a.splice(a.indexOf(y),1)},c=(y=[])=>{n.model&&xy(a,y).forEach(x=>x.resetField())},f=(y=[])=>{xy(a,y).forEach(x=>x.clearValidate())},d=ce(()=>!!n.model),p=y=>{if(a.length===0)return[];const x=xy(a,y);return x.length?x:[]},v=async y=>g(void 0,y),h=async(y=[])=>{if(!d.value)return!1;const x=p(y);if(x.length===0)return!0;let b={};for(const E of x)try{await E.validate("")}catch(S){b={...b,...S}}return Object.keys(b).length===0?!0:Promise.reject(b)},g=async(y=[],x)=>{const b=!Tn(x);try{const E=await h(y);return E===!0&&(x==null||x(E)),E}catch(E){if(E instanceof Error)throw E;const S=E;return n.scrollToError&&m(Object.keys(S)[0]),x==null||x(!1,S),b&&Promise.reject(S)}},m=y=>{var x;const b=xy(a,y)[0];b&&((x=b.$el)==null||x.scrollIntoView(n.scrollIntoViewOptions))};return Ge(()=>n.rules,()=>{n.validateOnRuleChange&&v().catch(y=>void 0)},{deep:!0}),on(Hp,Pr({...Os(n),emit:r,resetFields:c,clearValidate:f,validateField:g,addField:u,removeField:l,...C0e()})),t({validate:v,validateField:g,resetFields:c,clearValidate:f,scrollToField:m}),(y,x)=>(ge(),Oe("form",{class:Ce(T(s))},[tt(y.$slots,"default")],2))}});var T0e=gt(k0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Jc(){return Jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jc.apply(this,arguments)}function D0e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jg(e,t)}function T8(e){return T8=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},T8(e)}function Jg(e,t){return Jg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Jg(e,t)}function O0e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function ex(e,t,r){return O0e()?ex=Reflect.construct.bind():ex=function(a,i,o){var s=[null];s.push.apply(s,i);var u=Function.bind.apply(a,s),l=new u;return o&&Jg(l,o.prototype),l},ex.apply(null,arguments)}function F0e(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function D8(e){var t=typeof Map=="function"?new Map:void 0;return D8=function(n){if(n===null||!F0e(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return ex(n,arguments,T8(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Jg(a,n)},D8(e)}var B0e=/%[sdj%]/g,P0e=function(){};typeof process<"u"&&process.env;function O8(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function wi(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var o=e.replace(B0e,function(s){if(s==="%%")return"%";if(a>=i)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch(u){return"[Circular]"}break;default:return s}});return o}return e}function N0e(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Mn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||N0e(t)&&typeof e=="string"&&!e)}function I0e(e,t,r){var n=[],a=0,i=e.length;function o(s){n.push.apply(n,s||[]),a++,a===i&&r(n)}e.forEach(function(s){t(s,o)})}function xP(e,t,r){var n=0,a=e.length;function i(o){if(o&&o.length){r(o);return}var s=n;n=n+1,s<a?t(e[s],i):r([])}i([])}function R0e(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var bP=function(e){D0e(t,e);function t(r,n){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=r,a.fields=n,a}return t}(D8(Error));function L0e(e,t,r,n,a){if(t.first){var i=new Promise(function(d,p){var v=function(m){return n(m),m.length?p(new bP(m,O8(m))):d(a)},h=R0e(e);xP(h,r,v)});return i.catch(function(d){return d}),i}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),u=s.length,l=0,c=[],f=new Promise(function(d,p){var v=function(g){if(c.push.apply(c,g),l++,l===u)return n(c),c.length?p(new bP(c,O8(c))):d(a)};s.length||(n(c),d(a)),s.forEach(function(h){var g=e[h];o.indexOf(h)!==-1?xP(g,r,v):I0e(g,r,v)})});return f.catch(function(d){return d}),f}function M0e(e){return!!(e&&e.message!==void 0)}function j0e(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function wP(e,t){return function(r){var n;return e.fullFields?n=j0e(t,e.fullFields):n=t[r.field||e.fullField],M0e(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function EP(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=Jc({},e[r],n):e[r]=n}}return e}var EK=function(t,r,n,a,i,o){t.required&&(!n.hasOwnProperty(t.field)||Mn(r,o||t.type))&&a.push(wi(i.messages.required,t.fullField))},$0e=function(t,r,n,a,i){(/^\s+$/.test(r)||r==="")&&a.push(wi(i.messages.whitespace,t.fullField))},by,U0e=function(){if(by)return by;var e="[a-fA-F\\d:]",t=function(b){return b&&b.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",a=(`
|
||
(?:
|
||
(?:`+n+":){7}(?:"+n+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||
(?:`+n+":){6}(?:"+r+"|:"+n+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
||
(?:`+n+":){5}(?::"+r+"|(?::"+n+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
||
(?:`+n+":){4}(?:(?::"+n+"){0,1}:"+r+"|(?::"+n+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
||
(?:`+n+":){3}(?:(?::"+n+"){0,2}:"+r+"|(?::"+n+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
||
(?:`+n+":){2}(?:(?::"+n+"){0,3}:"+r+"|(?::"+n+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||
(?:`+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||
(?::(?:(?::`+n+"){0,5}:"+r+"|(?::"+n+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+r+"$)|(?:^"+a+"$)"),o=new RegExp("^"+r+"$"),s=new RegExp("^"+a+"$"),u=function(b){return b&&b.exact?i:new RegExp("(?:"+t(b)+r+t(b)+")|(?:"+t(b)+a+t(b)+")","g")};u.v4=function(x){return x&&x.exact?o:new RegExp(""+t(x)+r+t(x),"g")},u.v6=function(x){return x&&x.exact?s:new RegExp(""+t(x)+a+t(x),"g")};var l="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=u.v4().source,d=u.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',y="(?:"+l+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+p+v+h+")"+g+m;return by=new RegExp("(?:^"+y+"$)","i"),by},SP={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Hv={integer:function(t){return Hv.number(t)&&parseInt(t,10)===t},float:function(t){return Hv.number(t)&&!Hv.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(r){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Hv.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(SP.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(U0e())},hex:function(t){return typeof t=="string"&&!!t.match(SP.hex)}},H0e=function(t,r,n,a,i){if(t.required&&r===void 0){EK(t,r,n,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?Hv[s](r)||a.push(wi(i.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&a.push(wi(i.messages.types[s],t.fullField,t.type))},z0e=function(t,r,n,a,i){var o=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=r,f=null,d=typeof r=="number",p=typeof r=="string",v=Array.isArray(r);if(d?f="number":p?f="string":v&&(f="array"),!f)return!1;v&&(c=r.length),p&&(c=r.replace(l,"_").length),o?c!==t.len&&a.push(wi(i.messages[f].len,t.fullField,t.len)):s&&!u&&c<t.min?a.push(wi(i.messages[f].min,t.fullField,t.min)):u&&!s&&c>t.max?a.push(wi(i.messages[f].max,t.fullField,t.max)):s&&u&&(c<t.min||c>t.max)&&a.push(wi(i.messages[f].range,t.fullField,t.min,t.max))},k0="enum",V0e=function(t,r,n,a,i){t[k0]=Array.isArray(t[k0])?t[k0]:[],t[k0].indexOf(r)===-1&&a.push(wi(i.messages[k0],t.fullField,t[k0].join(", ")))},W0e=function(t,r,n,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(wi(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||a.push(wi(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},$t={required:EK,whitespace:$0e,type:H0e,range:z0e,enum:V0e,pattern:W0e},G0e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Mn(r,"string")&&!t.required)return n();$t.required(t,r,a,o,i,"string"),Mn(r,"string")||($t.type(t,r,a,o,i),$t.range(t,r,a,o,i),$t.pattern(t,r,a,o,i),t.whitespace===!0&&$t.whitespace(t,r,a,o,i))}n(o)},K0e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Mn(r)&&!t.required)return n();$t.required(t,r,a,o,i),r!==void 0&&$t.type(t,r,a,o,i)}n(o)},q0e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Mn(r)&&!t.required)return n();$t.required(t,r,a,o,i),r!==void 0&&($t.type(t,r,a,o,i),$t.range(t,r,a,o,i))}n(o)},X0e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Mn(r)&&!t.required)return n();$t.required(t,r,a,o,i),r!==void 0&&$t.type(t,r,a,o,i)}n(o)},Y0e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Mn(r)&&!t.required)return n();$t.required(t,r,a,o,i),Mn(r)||$t.type(t,r,a,o,i)}n(o)},J0e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Mn(r)&&!t.required)return n();$t.required(t,r,a,o,i),r!==void 0&&($t.type(t,r,a,o,i),$t.range(t,r,a,o,i))}n(o)},Z0e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Mn(r)&&!t.required)return n();$t.required(t,r,a,o,i),r!==void 0&&($t.type(t,r,a,o,i),$t.range(t,r,a,o,i))}n(o)},Q0e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();$t.required(t,r,a,o,i,"array"),r!=null&&($t.type(t,r,a,o,i),$t.range(t,r,a,o,i))}n(o)},ede=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Mn(r)&&!t.required)return n();$t.required(t,r,a,o,i),r!==void 0&&$t.type(t,r,a,o,i)}n(o)},tde="enum",rde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Mn(r)&&!t.required)return n();$t.required(t,r,a,o,i),r!==void 0&&$t[tde](t,r,a,o,i)}n(o)},nde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Mn(r,"string")&&!t.required)return n();$t.required(t,r,a,o,i),Mn(r,"string")||$t.pattern(t,r,a,o,i)}n(o)},ade=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Mn(r,"date")&&!t.required)return n();if($t.required(t,r,a,o,i),!Mn(r,"date")){var u;r instanceof Date?u=r:u=new Date(r),$t.type(t,u,a,o,i),u&&$t.range(t,u.getTime(),a,o,i)}}n(o)},ide=function(t,r,n,a,i){var o=[],s=Array.isArray(r)?"array":typeof r;$t.required(t,r,a,o,i,s),n(o)},dS=function(t,r,n,a,i){var o=t.type,s=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Mn(r,o)&&!t.required)return n();$t.required(t,r,a,s,i,o),Mn(r,o)||$t.type(t,r,a,s,i)}n(s)},ode=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Mn(r)&&!t.required)return n();$t.required(t,r,a,o,i)}n(o)},og={string:G0e,method:K0e,number:q0e,boolean:X0e,regexp:Y0e,integer:J0e,float:Z0e,array:Q0e,object:ede,enum:rde,pattern:nde,date:ade,url:dS,hex:dS,email:dS,required:ide,any:ode};function F8(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var B8=F8(),lm=function(){function e(r){this.rules=null,this._messages=B8,this.define(r)}var t=e.prototype;return t.define=function(n){var a=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];a.rules[i]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=EP(F8(),n)),this._messages},t.validate=function(n,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=n,u=a,l=i;if(typeof u=="function"&&(l=u,u={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,s),Promise.resolve(s);function c(h){var g=[],m={};function y(b){if(Array.isArray(b)){var E;g=(E=g).concat.apply(E,b)}else g.push(b)}for(var x=0;x<h.length;x++)y(h[x]);g.length?(m=O8(g),l(g,m)):l(null,s)}if(u.messages){var f=this.messages();f===B8&&(f=F8()),EP(f,u.messages),u.messages=f}else u.messages=this.messages();var d={},p=u.keys||Object.keys(this.rules);p.forEach(function(h){var g=o.rules[h],m=s[h];g.forEach(function(y){var x=y;typeof x.transform=="function"&&(s===n&&(s=Jc({},s)),m=s[h]=x.transform(m)),typeof x=="function"?x={validator:x}:x=Jc({},x),x.validator=o.getValidationMethod(x),x.validator&&(x.field=h,x.fullField=x.fullField||h,x.type=o.getType(x),d[h]=d[h]||[],d[h].push({rule:x,value:m,source:s,field:h}))})});var v={};return L0e(d,u,function(h,g){var m=h.rule,y=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");y=y&&(m.required||!m.required&&h.value),m.field=h.field;function x(S,w){return Jc({},w,{fullField:m.fullField+"."+S,fullFields:m.fullFields?[].concat(m.fullFields,[S]):[S]})}function b(S){S===void 0&&(S=[]);var w=Array.isArray(S)?S:[S];!u.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&m.message!==void 0&&(w=[].concat(m.message));var C=w.map(wP(m,s));if(u.first&&C.length)return v[m.field]=1,g(C);if(!y)g(C);else{if(m.required&&!h.value)return m.message!==void 0?C=[].concat(m.message).map(wP(m,s)):u.error&&(C=[u.error(m,wi(u.messages.required,m.field))]),g(C);var _={};m.defaultField&&Object.keys(h.value).map(function(F){_[F]=m.defaultField}),_=Jc({},_,h.rule.fields);var O={};Object.keys(_).forEach(function(F){var q=_[F],ee=Array.isArray(q)?q:[q];O[F]=ee.map(x.bind(null,F))});var P=new e(O);P.messages(u.messages),h.rule.options&&(h.rule.options.messages=u.messages,h.rule.options.error=u.error),P.validate(h.value,h.rule.options||u,function(F){var q=[];C&&C.length&&q.push.apply(q,C),F&&F.length&&q.push.apply(q,F),g(q.length?q:null)})}}var E;if(m.asyncValidator)E=m.asyncValidator(m,h.value,b,h.source,u);else if(m.validator){try{E=m.validator(m,h.value,b,h.source,u)}catch(S){console.error==null||console.error(S),u.suppressValidatorError||setTimeout(function(){throw S},0),b(S.message)}E===!0?b():E===!1?b(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):E instanceof Array?b(E):E instanceof Error&&b(E.message)}E&&E.then&&E.then(function(){return b()},function(S){return b(S)})},function(h){c(h)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!og.hasOwnProperty(n.type))throw new Error(wi("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var a=Object.keys(n),i=a.indexOf("message");return i!==-1&&a.splice(i,1),a.length===1&&a[0]==="required"?og.required:og[this.getType(n)]||void 0},e}();lm.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");og[t]=r};lm.warning=P0e;lm.messages=B8;lm.validators=og;const sde=["","error","validating","success"],ude=ar({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:xt([String,Array])},required:{type:Boolean,default:void 0},rules:{type:xt([Object,Array])},error:String,validateStatus:{type:String,values:sde},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:NE}}),CP="ElLabelWrap";var lde=Fe({name:CP,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const r=Nt(Hp,void 0),n=Nt(Kl);n||iD(CP,"usage: <el-form-item><label-wrap /></el-form-item>");const a=ct("form"),i=ke(),o=ke(0),s=()=>{var c;if((c=i.value)!=null&&c.firstElementChild){const f=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},u=(c="update")=>{mt(()=>{t.default&&e.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(r==null||r.deregisterLabelWidth(o.value)))})},l=()=>u("update");return $r(()=>{l()}),li(()=>{u("remove")}),X5(()=>l()),Ge(o,(c,f)=>{e.updateAll&&(r==null||r.registerLabelWidth(c,f))}),$p(ce(()=>{var c,f;return(f=(c=i.value)==null?void 0:c.firstElementChild)!=null?f:null}),l),()=>{var c,f;if(!t)return null;const{isAutoWidth:d}=e;if(d){const p=r==null?void 0:r.autoLabelWidth,v=n==null?void 0:n.hasLabel,h={};if(v&&p&&p!=="auto"){const g=Math.max(0,Number.parseInt(p,10)-o.value),m=r.labelPosition==="left"?"marginRight":"marginLeft";g&&(h[m]=`${g}px`)}return Ke("div",{ref:i,class:[a.be("item","label-wrap")],style:h},[(c=t.default)==null?void 0:c.call(t)])}else return Ke(xn,{ref:i},[(f=t.default)==null?void 0:f.call(t)])}}});const cde=["role","aria-labelledby"],fde=Fe({name:"ElFormItem"}),dde=Fe({...fde,props:ude,setup(e,{expose:t}){const r=e,n=n0(),a=Nt(Hp,void 0),i=Nt(Kl,void 0),o=lu(void 0,{formItem:!1}),s=ct("form-item"),u=ep().value,l=ke([]),c=ke(""),f=Uae(c,100),d=ke(""),p=ke();let v,h=!1;const g=ce(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const Q=Gl(r.labelWidth||(a==null?void 0:a.labelWidth)||"");return Q?{width:Q}:{}}),m=ce(()=>{if((a==null?void 0:a.labelPosition)==="top"||a!=null&&a.inline)return{};if(!r.label&&!r.labelWidth&&_)return{};const Q=Gl(r.labelWidth||(a==null?void 0:a.labelWidth)||"");return!r.label&&!n.label?{marginLeft:Q}:{}}),y=ce(()=>[s.b(),s.m(o.value),s.is("error",c.value==="error"),s.is("validating",c.value==="validating"),s.is("success",c.value==="success"),s.is("required",ee.value||r.required),s.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:a==null?void 0:a.statusIcon}]),x=ce(()=>xs(r.inlineMessage)?r.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),b=ce(()=>[s.e("error"),{[s.em("error","inline")]:x.value}]),E=ce(()=>r.prop?In(r.prop)?r.prop:r.prop.join("."):""),S=ce(()=>!!(r.label||n.label)),w=ce(()=>r.for||l.value.length===1?l.value[0]:void 0),C=ce(()=>!w.value&&S.value),_=!!i,O=ce(()=>{const Q=a==null?void 0:a.model;if(!(!Q||!r.prop))return sS(Q,r.prop).value}),P=ce(()=>{const{required:Q}=r,le=[];r.rules&&le.push(...E8(r.rules));const ve=a==null?void 0:a.rules;if(ve&&r.prop){const he=sS(ve,r.prop).value;he&&le.push(...E8(he))}if(Q!==void 0){const he=le.map((fe,z)=>[fe,z]).filter(([fe])=>Object.keys(fe).includes("required"));if(he.length>0)for(const[fe,z]of he)fe.required!==Q&&(le[z]={...fe,required:Q});else le.push({required:Q})}return le}),F=ce(()=>P.value.length>0),q=Q=>P.value.filter(ve=>!ve.trigger||!Q?!0:Array.isArray(ve.trigger)?ve.trigger.includes(Q):ve.trigger===Q).map(({trigger:ve,...he})=>he),ee=ce(()=>P.value.some(Q=>Q.required)),J=ce(()=>{var Q;return f.value==="error"&&r.showMessage&&((Q=a==null?void 0:a.showMessage)!=null?Q:!0)}),Z=ce(()=>`${r.label||""}${(a==null?void 0:a.labelSuffix)||""}`),V=Q=>{c.value=Q},ie=Q=>{var le,ve;const{errors:he,fields:fe}=Q;(!he||!fe)&&console.error(Q),V("error"),d.value=he?(ve=(le=he==null?void 0:he[0])==null?void 0:le.message)!=null?ve:`${r.prop} is required`:"",a==null||a.emit("validate",r.prop,!1,d.value)},W=()=>{V("success"),a==null||a.emit("validate",r.prop,!0,"")},de=async Q=>{const le=E.value;return new lm({[le]:Q}).validate({[le]:O.value},{firstFields:!0}).then(()=>(W(),!0)).catch(he=>(ie(he),Promise.reject(he)))},M=async(Q,le)=>{if(h||!r.prop)return!1;const ve=Tn(le);if(!F.value)return le==null||le(!1),!1;const he=q(Q);return he.length===0?(le==null||le(!0),!0):(V("validating"),de(he).then(()=>(le==null||le(!0),!0)).catch(fe=>{const{fields:z}=fe;return le==null||le(!1,z),ve?!1:Promise.reject(z)}))},A=()=>{V(""),d.value="",h=!1},N=async()=>{const Q=a==null?void 0:a.model;if(!Q||!r.prop)return;const le=sS(Q,r.prop);h=!0,le.value=ZB(v),await mt(),A(),h=!1},I=Q=>{l.value.includes(Q)||l.value.push(Q)},L=Q=>{l.value=l.value.filter(le=>le!==Q)};Ge(()=>r.error,Q=>{d.value=Q||"",V(Q?"error":"")},{immediate:!0}),Ge(()=>r.validateStatus,Q=>V(Q||""));const Y=Pr({...Os(r),$el:p,size:o,validateState:c,labelId:u,inputIds:l,isGroup:C,hasLabel:S,addInputId:I,removeInputId:L,resetField:N,clearValidate:A,validate:M});return on(Kl,Y),$r(()=>{r.prop&&(a==null||a.addField(Y),v=ZB(O.value))}),li(()=>{a==null||a.removeField(Y)}),t({size:o,validateMessage:d,validateState:c,validate:M,clearValidate:A,resetField:N}),(Q,le)=>{var ve;return ge(),Oe("div",{ref_key:"formItemRef",ref:p,class:Ce(T(y)),role:T(C)?"group":void 0,"aria-labelledby":T(C)?T(u):void 0},[Ke(T(lde),{"is-auto-width":T(g).width==="auto","update-all":((ve=T(a))==null?void 0:ve.labelWidth)==="auto"},{default:De(()=>[T(S)?(ge(),ze(Wn(T(w)?"label":"div"),{key:0,id:T(u),for:T(w),class:Ce(T(s).e("label")),style:pr(T(g))},{default:De(()=>[tt(Q.$slots,"label",{label:T(Z)},()=>[Pa(rr(T(Z)),1)])]),_:3},8,["id","for","class","style"])):We("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),Pe("div",{class:Ce(T(s).e("content")),style:pr(T(m))},[tt(Q.$slots,"default"),Ke(Hae,{name:`${T(s).namespace.value}-zoom-in-top`},{default:De(()=>[T(J)?tt(Q.$slots,"error",{key:0,error:d.value},()=>[Pe("div",{class:Ce(T(b))},rr(d.value),3)]):We("v-if",!0)]),_:3},8,["name"])],6)],10,cde)}}});var SK=gt(dde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const CK=ua(T0e,{FormItem:SK}),_K=lo(SK);let mo;const pde=`
|
||
height:0 !important;
|
||
visibility:hidden !important;
|
||
${uie()?"":"overflow:hidden !important;"}
|
||
position:absolute !important;
|
||
z-index:-1000 !important;
|
||
top:0 !important;
|
||
right:0 !important;
|
||
`,hde=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function vde(e){const t=window.getComputedStyle(e),r=t.getPropertyValue("box-sizing"),n=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:hde.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:n,borderSize:a,boxSizing:r}}function _P(e,t=1,r){var n;mo||(mo=document.createElement("textarea"),document.body.appendChild(mo));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=vde(e);mo.setAttribute("style",`${s};${pde}`),mo.value=e.value||e.placeholder||"";let u=mo.scrollHeight;const l={};o==="border-box"?u=u+i:o==="content-box"&&(u=u-a),mo.value="";const c=mo.scrollHeight-a;if(Fn(t)){let f=c*t;o==="border-box"&&(f=f+a+i),u=Math.max(f,u),l.minHeight=`${f}px`}if(Fn(r)){let f=c*r;o==="border-box"&&(f=f+a+i),u=Math.min(f,u)}return l.height=`${u}px`,(n=mo.parentNode)==null||n.removeChild(mo),mo=void 0,l}const gde=ar({id:{type:String,default:void 0},size:Up,disabled:Boolean,modelValue:{type:xt([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:xt([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:su},prefixIcon:{type:su},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:xt([Object,Array,String]),default:()=>zc({})}}),mde={[zr]:e=>In(e),input:e=>In(e),change:e=>In(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},yde=["role"],xde=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],bde=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],wde=Fe({name:"ElInput",inheritAttrs:!1}),Ede=Fe({...wde,props:gde,emits:mde,setup(e,{expose:t,emit:r}){const n=e,a=zae(),i=n0(),o=ce(()=>{const Se={};return n.containerRole==="combobox"&&(Se["aria-haspopup"]=a["aria-haspopup"],Se["aria-owns"]=a["aria-owns"],Se["aria-expanded"]=a["aria-expanded"]),Se}),s=ce(()=>[n.type==="textarea"?g.b():h.b(),h.m(p.value),h.is("disabled",v.value),h.is("exceed",M.value),{[h.b("group")]:i.prepend||i.append,[h.bm("group","append")]:i.append,[h.bm("group","prepend")]:i.prepend,[h.m("prefix")]:i.prefix||n.prefixIcon,[h.m("suffix")]:i.suffix||n.suffixIcon||n.clearable||n.showPassword,[h.bm("suffix","password-clear")]:V.value&&ie.value},a.class]),u=ce(()=>[h.e("wrapper"),h.is("focus",x.value)]),l=Zce({excludeKeys:ce(()=>Object.keys(o.value))}),{form:c,formItem:f}=a0(),{inputId:d}=jE(n,{formItemContext:f}),p=lu(),v=um(),h=ct("input"),g=ct("textarea"),m=ps(),y=ps(),x=ke(!1),b=ke(!1),E=ke(!1),S=ke(!1),w=ke(),C=ps(n.inputStyle),_=ce(()=>m.value||y.value),O=ce(()=>{var Se;return(Se=c==null?void 0:c.statusIcon)!=null?Se:!1}),P=ce(()=>(f==null?void 0:f.validateState)||""),F=ce(()=>P.value&&Gce[P.value]),q=ce(()=>S.value?Pce:dce),ee=ce(()=>[a.style,n.inputStyle]),J=ce(()=>[n.inputStyle,C.value,{resize:n.resize}]),Z=ce(()=>RE(n.modelValue)?"":String(n.modelValue)),V=ce(()=>n.clearable&&!v.value&&!n.readonly&&!!Z.value&&(x.value||b.value)),ie=ce(()=>n.showPassword&&!v.value&&!n.readonly&&!!Z.value&&(!!Z.value||x.value)),W=ce(()=>n.showWordLimit&&!!l.value.maxlength&&(n.type==="text"||n.type==="textarea")&&!v.value&&!n.readonly&&!n.showPassword),de=ce(()=>Z.value.length),M=ce(()=>!!W.value&&de.value>Number(l.value.maxlength)),A=ce(()=>!!i.suffix||!!n.suffixIcon||V.value||n.showPassword||W.value||!!P.value&&O.value),[N,I]=g0e(m);$p(y,Se=>{if(Q(),!W.value||n.resize!=="both")return;const at=Se[0],{width:Rt}=at.contentRect;w.value={right:`calc(100% - ${Rt+15+6}px)`}});const L=()=>{const{type:Se,autosize:at}=n;if(!(!bn||Se!=="textarea"||!y.value))if(at){const Rt=zo(at)?at.minRows:void 0,fr=zo(at)?at.maxRows:void 0,It=_P(y.value,Rt,fr);C.value={overflowY:"hidden",...It},mt(()=>{y.value.offsetHeight,C.value=It})}else C.value={minHeight:_P(y.value).minHeight}},Q=(Se=>{let at=!1;return()=>{var Rt;if(at||!n.autosize)return;((Rt=y.value)==null?void 0:Rt.offsetParent)===null||(Se(),at=!0)}})(L),le=()=>{const Se=_.value,at=n.formatter?n.formatter(Z.value):Z.value;!Se||Se.value===at||(Se.value=at)},ve=async Se=>{N();let{value:at}=Se.target;if(n.formatter&&(at=n.parser?n.parser(at):at),!E.value){if(at===Z.value){le();return}r(zr,at),r("input",at),await mt(),le(),I()}},he=Se=>{r("change",Se.target.value)},fe=Se=>{r("compositionstart",Se),E.value=!0},z=Se=>{var at;r("compositionupdate",Se);const Rt=(at=Se.target)==null?void 0:at.value,fr=Rt[Rt.length-1]||"";E.value=!aK(fr)},je=Se=>{r("compositionend",Se),E.value&&(E.value=!1,ve(Se))},Te=()=>{S.value=!S.value,Ne()},Ne=async()=>{var Se;await mt(),(Se=_.value)==null||Se.focus()},He=()=>{var Se;return(Se=_.value)==null?void 0:Se.blur()},we=Se=>{x.value=!0,r("focus",Se)},Je=Se=>{var at;x.value=!1,r("blur",Se),n.validateEvent&&((at=f==null?void 0:f.validate)==null||at.call(f,"blur").catch(Rt=>void 0))},ut=Se=>{b.value=!1,r("mouseleave",Se)},_t=Se=>{b.value=!0,r("mouseenter",Se)},Qe=Se=>{r("keydown",Se)},cr=()=>{var Se;(Se=_.value)==null||Se.select()},zt=()=>{r(zr,""),r("change",""),r("clear"),r("input","")};return Ge(()=>n.modelValue,()=>{var Se;mt(()=>L()),n.validateEvent&&((Se=f==null?void 0:f.validate)==null||Se.call(f,"change").catch(at=>void 0))}),Ge(Z,()=>le()),Ge(()=>n.type,async()=>{await mt(),le(),L()}),$r(()=>{!n.formatter&&n.parser,le(),mt(L)}),t({input:m,textarea:y,ref:_,textareaStyle:J,autosize:Do(n,"autosize"),focus:Ne,blur:He,select:cr,clear:zt,resizeTextarea:L}),(Se,at)=>Ar((ge(),Oe("div",hs(T(o),{class:T(s),style:T(ee),role:Se.containerRole,onMouseenter:_t,onMouseleave:ut}),[We(" input "),Se.type!=="textarea"?(ge(),Oe(xn,{key:0},[We(" prepend slot "),Se.$slots.prepend?(ge(),Oe("div",{key:0,class:Ce(T(h).be("group","prepend"))},[tt(Se.$slots,"prepend")],2)):We("v-if",!0),Pe("div",{class:Ce(T(u))},[We(" prefix slot "),Se.$slots.prefix||Se.prefixIcon?(ge(),Oe("span",{key:0,class:Ce(T(h).e("prefix"))},[Pe("span",{class:Ce(T(h).e("prefix-inner")),onClick:Ne},[tt(Se.$slots,"prefix"),Se.prefixIcon?(ge(),ze(T(Xa),{key:0,class:Ce(T(h).e("icon"))},{default:De(()=>[(ge(),ze(Wn(Se.prefixIcon)))]),_:1},8,["class"])):We("v-if",!0)],2)],2)):We("v-if",!0),Pe("input",hs({id:T(d),ref_key:"input",ref:m,class:T(h).e("inner")},T(l),{type:Se.showPassword?S.value?"text":"password":Se.type,disabled:T(v),formatter:Se.formatter,parser:Se.parser,readonly:Se.readonly,autocomplete:Se.autocomplete,tabindex:Se.tabindex,"aria-label":Se.label,placeholder:Se.placeholder,style:Se.inputStyle,form:n.form,onCompositionstart:fe,onCompositionupdate:z,onCompositionend:je,onInput:ve,onFocus:we,onBlur:Je,onChange:he,onKeydown:Qe}),null,16,xde),We(" suffix slot "),T(A)?(ge(),Oe("span",{key:1,class:Ce(T(h).e("suffix"))},[Pe("span",{class:Ce(T(h).e("suffix-inner")),onClick:Ne},[!T(V)||!T(ie)||!T(W)?(ge(),Oe(xn,{key:0},[tt(Se.$slots,"suffix"),Se.suffixIcon?(ge(),ze(T(Xa),{key:0,class:Ce(T(h).e("icon"))},{default:De(()=>[(ge(),ze(Wn(Se.suffixIcon)))]),_:1},8,["class"])):We("v-if",!0)],64)):We("v-if",!0),T(V)?(ge(),ze(T(Xa),{key:1,class:Ce([T(h).e("icon"),T(h).e("clear")]),onMousedown:nn(T(of),["prevent"]),onClick:zt},{default:De(()=>[Ke(T(oD))]),_:1},8,["class","onMousedown"])):We("v-if",!0),T(ie)?(ge(),ze(T(Xa),{key:2,class:Ce([T(h).e("icon"),T(h).e("password")]),onClick:Te},{default:De(()=>[(ge(),ze(Wn(T(q))))]),_:1},8,["class"])):We("v-if",!0),T(W)?(ge(),Oe("span",{key:3,class:Ce(T(h).e("count"))},[Pe("span",{class:Ce(T(h).e("count-inner"))},rr(T(de))+" / "+rr(T(l).maxlength),3)],2)):We("v-if",!0),T(P)&&T(F)&&T(O)?(ge(),ze(T(Xa),{key:4,class:Ce([T(h).e("icon"),T(h).e("validateIcon"),T(h).is("loading",T(P)==="validating")])},{default:De(()=>[(ge(),ze(Wn(T(F))))]),_:1},8,["class"])):We("v-if",!0)],2)],2)):We("v-if",!0)],2),We(" append slot "),Se.$slots.append?(ge(),Oe("div",{key:1,class:Ce(T(h).be("group","append"))},[tt(Se.$slots,"append")],2)):We("v-if",!0)],64)):(ge(),Oe(xn,{key:1},[We(" textarea "),Pe("textarea",hs({id:T(d),ref_key:"textarea",ref:y,class:T(g).e("inner")},T(l),{tabindex:Se.tabindex,disabled:T(v),readonly:Se.readonly,autocomplete:Se.autocomplete,style:T(J),"aria-label":Se.label,placeholder:Se.placeholder,form:n.form,onCompositionstart:fe,onCompositionupdate:z,onCompositionend:je,onInput:ve,onFocus:we,onBlur:Je,onChange:he,onKeydown:Qe}),null,16,bde),T(W)?(ge(),Oe("span",{key:0,style:pr(w.value),class:Ce(T(h).e("count"))},rr(T(de))+" / "+rr(T(l).maxlength),7)):We("v-if",!0)],64))],16,yde)),[[ta,Se.type!=="hidden"]])}});var Sde=gt(Ede,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const mD=ua(Sde),xd=4,Cde={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},_de=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),AK=Symbol("scrollbarContextKey"),Ade=ar({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),kde="Thumb",Tde=Fe({__name:"thumb",props:Ade,setup(e){const t=e,r=Nt(AK),n=ct("scrollbar");r||iD(kde,"can not inject scrollbar context");const a=ke(),i=ke(),o=ke({}),s=ke(!1);let u=!1,l=!1,c=bn?document.onselectstart:null;const f=ce(()=>Cde[t.vertical?"vertical":"horizontal"]),d=ce(()=>_de({size:t.size,move:t.move,bar:f.value})),p=ce(()=>a.value[f.value.offset]**2/r.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),v=S=>{var w;if(S.stopPropagation(),S.ctrlKey||[1,2].includes(S.button))return;(w=window.getSelection())==null||w.removeAllRanges(),g(S);const C=S.currentTarget;C&&(o.value[f.value.axis]=C[f.value.offset]-(S[f.value.client]-C.getBoundingClientRect()[f.value.direction]))},h=S=>{if(!i.value||!a.value||!r.wrapElement)return;const w=Math.abs(S.target.getBoundingClientRect()[f.value.direction]-S[f.value.client]),C=i.value[f.value.offset]/2,_=(w-C)*100*p.value/a.value[f.value.offset];r.wrapElement[f.value.scroll]=_*r.wrapElement[f.value.scrollSize]/100},g=S=>{S.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",y),c=document.onselectstart,document.onselectstart=()=>!1},m=S=>{if(!a.value||!i.value||u===!1)return;const w=o.value[f.value.axis];if(!w)return;const C=(a.value.getBoundingClientRect()[f.value.direction]-S[f.value.client])*-1,_=i.value[f.value.offset]-w,O=(C-_)*100*p.value/a.value[f.value.offset];r.wrapElement[f.value.scroll]=O*r.wrapElement[f.value.scrollSize]/100},y=()=>{u=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y),E(),l&&(s.value=!1)},x=()=>{l=!1,s.value=!!t.size},b=()=>{l=!0,s.value=u};li(()=>{E(),document.removeEventListener("mouseup",y)});const E=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return Gg(Do(r,"scrollbarElement"),"mousemove",x),Gg(Do(r,"scrollbarElement"),"mouseleave",b),(S,w)=>(ge(),ze(bs,{name:T(n).b("fade"),persisted:""},{default:De(()=>[Ar(Pe("div",{ref_key:"instance",ref:a,class:Ce([T(n).e("bar"),T(n).is(T(f).key)]),onMousedown:h},[Pe("div",{ref_key:"thumb",ref:i,class:Ce(T(n).e("thumb")),style:pr(T(d)),onMousedown:v},null,38)],34),[[ta,S.always||s.value]])]),_:1},8,["name"]))}});var AP=gt(Tde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const Dde=ar({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),Ode=Fe({__name:"bar",props:Dde,setup(e,{expose:t}){const r=e,n=ke(0),a=ke(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-xd,u=o.offsetWidth-xd;a.value=o.scrollTop*100/s*r.ratioY,n.value=o.scrollLeft*100/u*r.ratioX}}}),(o,s)=>(ge(),Oe(xn,null,[Ke(AP,{move:n.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),Ke(AP,{move:a.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var Fde=gt(Ode,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const Bde=ar({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:xt([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),Pde={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Fn)},Nde="ElScrollbar",Ide=Fe({name:Nde}),Rde=Fe({...Ide,props:Bde,emits:Pde,setup(e,{expose:t,emit:r}){const n=e,a=ct("scrollbar");let i,o;const s=ke(),u=ke(),l=ke(),c=ke("0"),f=ke("0"),d=ke(),p=ke(1),v=ke(1),h=ce(()=>{const w={};return n.height&&(w.height=Gl(n.height)),n.maxHeight&&(w.maxHeight=Gl(n.maxHeight)),[n.wrapStyle,w]}),g=ce(()=>[n.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!n.native}]),m=ce(()=>[a.e("view"),n.viewClass]),y=()=>{var w;u.value&&((w=d.value)==null||w.handleScroll(u.value),r("scroll",{scrollTop:u.value.scrollTop,scrollLeft:u.value.scrollLeft}))};function x(w,C){zo(w)?u.value.scrollTo(w):Fn(w)&&Fn(C)&&u.value.scrollTo(w,C)}const b=w=>{Fn(w)&&(u.value.scrollTop=w)},E=w=>{Fn(w)&&(u.value.scrollLeft=w)},S=()=>{if(!u.value)return;const w=u.value.offsetHeight-xd,C=u.value.offsetWidth-xd,_=w**2/u.value.scrollHeight,O=C**2/u.value.scrollWidth,P=Math.max(_,n.minSize),F=Math.max(O,n.minSize);p.value=_/(w-_)/(P/(w-P)),v.value=O/(C-O)/(F/(C-F)),f.value=P+xd<w?`${P}px`:"",c.value=F+xd<C?`${F}px`:""};return Ge(()=>n.noresize,w=>{w?(i==null||i(),o==null||o()):({stop:i}=$p(l,S),o=Gg("resize",S))},{immediate:!0}),Ge(()=>[n.maxHeight,n.height],()=>{n.native||mt(()=>{var w;S(),u.value&&((w=d.value)==null||w.handleScroll(u.value))})}),on(AK,Pr({scrollbarElement:s,wrapElement:u})),$r(()=>{n.native||mt(()=>{S()})}),X5(()=>S()),t({wrapRef:u,update:S,scrollTo:x,setScrollTop:b,setScrollLeft:E,handleScroll:y}),(w,C)=>(ge(),Oe("div",{ref_key:"scrollbarRef",ref:s,class:Ce(T(a).b())},[Pe("div",{ref_key:"wrapRef",ref:u,class:Ce(T(g)),style:pr(T(h)),onScroll:y},[(ge(),ze(Wn(w.tag),{ref_key:"resizeRef",ref:l,class:Ce(T(m)),style:pr(w.viewStyle)},{default:De(()=>[tt(w.$slots,"default")]),_:3},8,["class","style"]))],38),w.native?We("v-if",!0):(ge(),ze(Fde,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:w.always,"ratio-x":v.value,"ratio-y":p.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Lde=gt(Rde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const Mde=ua(Lde),yD=Symbol("popper"),kK=Symbol("popperContent"),jde=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],TK=ar({role:{type:String,values:jde,default:"tooltip"}}),$de=Fe({name:"ElPopper",inheritAttrs:!1}),Ude=Fe({...$de,props:TK,setup(e,{expose:t}){const r=e,n=ke(),a=ke(),i=ke(),o=ke(),s=ce(()=>r.role),u={triggerRef:n,popperInstanceRef:a,contentRef:i,referenceRef:o,role:s};return t(u),on(yD,u),(l,c)=>tt(l.$slots,"default")}});var Hde=gt(Ude,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const DK=ar({arrowOffset:{type:Number,default:5}}),zde=Fe({name:"ElPopperArrow",inheritAttrs:!1}),Vde=Fe({...zde,props:DK,setup(e,{expose:t}){const r=e,n=ct("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=Nt(kK,void 0);return Ge(()=>r.arrowOffset,s=>{a.value=s}),li(()=>{i.value=void 0}),t({arrowRef:i}),(s,u)=>(ge(),Oe("span",{ref_key:"arrowRef",ref:i,class:Ce(T(n).e("arrow")),style:pr(T(o)),"data-popper-arrow":""},null,6))}});var Wde=gt(Vde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const Gde="ElOnlyChild",Kde=Fe({name:Gde,setup(e,{slots:t,attrs:r}){var n;const a=Nt(wK),i=v0e((n=a==null?void 0:a.setForwardRef)!=null?n:of);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,r);if(!s||s.length>1)return null;const u=OK(s);return u?Ar(Vae(u,r),[[i]]):null}}});function OK(e){if(!e)return null;const t=e;for(const r of t){if(zo(r))switch(r.type){case Wae:continue;case CG:case"svg":return kP(r);case xn:return OK(r.children);default:return r}return kP(r)}return null}function kP(e){const t=ct("only-child");return Ke("span",{class:t.e("content")},[e])}const FK=ar({virtualRef:{type:xt(Object)},virtualTriggering:Boolean,onMouseenter:{type:xt(Function)},onMouseleave:{type:xt(Function)},onClick:{type:xt(Function)},onKeydown:{type:xt(Function)},onFocus:{type:xt(Function)},onBlur:{type:xt(Function)},onContextmenu:{type:xt(Function)},id:String,open:Boolean}),qde=Fe({name:"ElPopperTrigger",inheritAttrs:!1}),Xde=Fe({...qde,props:FK,setup(e,{expose:t}){const r=e,{role:n,triggerRef:a}=Nt(yD,void 0);h0e(a);const i=ce(()=>s.value?r.id:void 0),o=ce(()=>{if(n&&n.value==="tooltip")return r.open&&r.id?r.id:void 0}),s=ce(()=>{if(n&&n.value!=="tooltip")return n.value}),u=ce(()=>s.value?`${r.open}`:void 0);let l;return $r(()=>{Ge(()=>r.virtualRef,c=>{c&&(a.value=_G(c))},{immediate:!0}),Ge(a,(c,f)=>{l==null||l(),l=void 0,Kd(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var p;const v=r[d];v&&(c.addEventListener(d.slice(2).toLowerCase(),v),(p=f==null?void 0:f.removeEventListener)==null||p.call(f,d.slice(2).toLowerCase(),v))}),l=Ge([i,o,s,u],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,v)=>{RE(d[v])?c.removeAttribute(p):c.setAttribute(p,d[v])})},{immediate:!0})),Kd(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),li(()=>{l==null||l(),l=void 0}),t({triggerRef:a}),(c,f)=>c.virtualTriggering?We("v-if",!0):(ge(),ze(T(Kde),hs({key:0},c.$attrs,{"aria-controls":T(i),"aria-describedby":T(o),"aria-expanded":T(u),"aria-haspopup":T(s)}),{default:De(()=>[tt(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Yde=gt(Xde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const pS="focus-trap.focus-after-trapped",hS="focus-trap.focus-after-released",Jde="focus-trap.focusout-prevented",TP={cancelable:!0,bubbles:!1},Zde={cancelable:!0,bubbles:!1},DP="focusAfterTrapped",OP="focusAfterReleased",BK=Symbol("elFocusTrap"),xD=ke(),$E=ke(0),bD=ke(0);let wy=0;const PK=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},FP=(e,t)=>{for(const r of e)if(!Qde(r,t))return r},Qde=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},epe=e=>{const t=PK(e),r=FP(t,e),n=FP(t.reverse(),e);return[r,n]},tpe=e=>e instanceof HTMLInputElement&&"select"in e,Qu=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),bD.value=window.performance.now(),e!==r&&tpe(e)&&t&&e.select()}};function BP(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const rpe=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=BP(e,n),e.unshift(n)},remove:n=>{var a,i;e=BP(e,n),(i=(a=e[0])==null?void 0:a.resume)==null||i.call(a)}}},npe=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if(Qu(n,t),document.activeElement!==r)return},PP=rpe(),ape=()=>$E.value>bD.value,Ey=()=>{xD.value="pointer",$E.value=window.performance.now()},NP=()=>{xD.value="keyboard",$E.value=window.performance.now()},ipe=()=>($r(()=>{wy===0&&(document.addEventListener("mousedown",Ey),document.addEventListener("touchstart",Ey),document.addEventListener("keydown",NP)),wy++}),li(()=>{wy--,wy<=0&&(document.removeEventListener("mousedown",Ey),document.removeEventListener("touchstart",Ey),document.removeEventListener("keydown",NP))}),{focusReason:xD,lastUserFocusTimestamp:$E,lastAutomatedFocusTimestamp:bD}),Sy=e=>new CustomEvent(Jde,{...Zde,detail:e}),ope=Fe({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[DP,OP,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=ke();let n,a;const{focusReason:i}=ipe();l0e(v=>{e.trapped&&!o.paused&&t("release-requested",v)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:h,altKey:g,ctrlKey:m,metaKey:y,currentTarget:x,shiftKey:b}=v,{loop:E}=e,S=h===Ga.tab&&!g&&!m&&!y,w=document.activeElement;if(S&&w){const C=x,[_,O]=epe(C);if(_&&O){if(!b&&w===O){const F=Sy({focusReason:i.value});t("focusout-prevented",F),F.defaultPrevented||(v.preventDefault(),E&&Qu(_,!0))}else if(b&&[_,C].includes(w)){const F=Sy({focusReason:i.value});t("focusout-prevented",F),F.defaultPrevented||(v.preventDefault(),E&&Qu(O,!0))}}else if(w===C){const F=Sy({focusReason:i.value});t("focusout-prevented",F),F.defaultPrevented||v.preventDefault()}}};on(BK,{focusTrapRef:r,onKeydown:s}),Ge(()=>e.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),Ge([r],([v],[h])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",c),v.addEventListener("focusout",f)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",c),h.removeEventListener("focusout",f))});const u=v=>{t(DP,v)},l=v=>t(OP,v),c=v=>{const h=T(r);if(!h)return;const g=v.target,m=v.relatedTarget,y=g&&h.contains(g);e.trapped||m&&h.contains(m)||(n=m),y&&t("focusin",v),!o.paused&&e.trapped&&(y?a=g:Qu(a,!0))},f=v=>{const h=T(r);if(!(o.paused||!h))if(e.trapped){const g=v.relatedTarget;!RE(g)&&!h.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const m=Sy({focusReason:i.value});t("focusout-prevented",m),m.defaultPrevented||Qu(a,!0)}},0)}else{const g=v.target;g&&h.contains(g)||t("focusout",v)}};async function d(){await mt();const v=T(r);if(v){PP.push(o);const h=v.contains(document.activeElement)?n:document.activeElement;if(n=h,!v.contains(h)){const m=new Event(pS,TP);v.addEventListener(pS,u),v.dispatchEvent(m),m.defaultPrevented||mt(()=>{let y=e.focusStartEl;In(y)||(Qu(y),document.activeElement!==y&&(y="first")),y==="first"&&npe(PK(v),!0),(document.activeElement===h||y==="container")&&Qu(v)})}}}function p(){const v=T(r);if(v){v.removeEventListener(pS,u);const h=new CustomEvent(hS,{...TP,detail:{focusReason:i.value}});v.addEventListener(hS,l),v.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!ape()||v.contains(document.activeElement))&&Qu(n!=null?n:document.body),v.removeEventListener(hS,u),PP.remove(o)}}return $r(()=>{e.trapped&&d(),Ge(()=>e.trapped,v=>{v?d():p()})}),li(()=>{e.trapped&&p()}),{onKeydown:s}}});function spe(e,t,r,n,a,i){return tt(e.$slots,"default",{handleKeydown:e.onKeydown})}var NK=gt(ope,[["render",spe],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const upe=["fixed","absolute"],lpe=ar({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:xt(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:LE,default:"bottom"},popperOptions:{type:xt(Object),default:()=>({})},strategy:{type:String,values:upe,default:"absolute"}}),IK=ar({...lpe,id:String,style:{type:xt([String,Array,Object])},className:{type:xt([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:xt([String,Array,Object])},popperStyle:{type:xt([String,Array,Object])},referenceEl:{type:xt(Object)},triggerTargetEl:{type:xt(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),cpe={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},fpe=(e,t=[])=>{const{placement:r,strategy:n,popperOptions:a}=e,i={placement:r,strategy:n,...a,modifiers:[...ppe(e),...t]};return hpe(i,a==null?void 0:a.modifiers),i},dpe=e=>{if(bn)return _G(e)};function ppe(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:n}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:n}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function hpe(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const vpe=0,gpe=e=>{const{popperInstanceRef:t,contentRef:r,triggerRef:n,role:a}=Nt(yD,void 0),i=ke(),o=ke(),s=ce(()=>({name:"eventListeners",enabled:!!e.visible})),u=ce(()=>{var m;const y=T(i),x=(m=T(o))!=null?m:vpe;return{name:"arrow",enabled:!rle(y),options:{element:y,padding:x}}}),l=ce(()=>({onFirstUpdate:()=>{v()},...fpe(e,[T(u),T(s)])})),c=ce(()=>dpe(e.referenceEl)||T(n)),{attributes:f,state:d,styles:p,update:v,forceUpdate:h,instanceRef:g}=o0e(c,r,l);return Ge(g,m=>t.value=m),$r(()=>{Ge(()=>{var m;return(m=T(c))==null?void 0:m.getBoundingClientRect()},()=>{v()})}),{attributes:f,arrowRef:i,contentRef:r,instanceRef:g,state:d,styles:p,role:a,forceUpdate:h,update:v}},mpe=(e,{attributes:t,styles:r,role:n})=>{const{nextZIndex:a}=AG(),i=ct("popper"),o=ce(()=>T(t).popper),s=ke(e.zIndex||a()),u=ce(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),l=ce(()=>[{zIndex:T(s)},T(r).popper,e.popperStyle||{}]),c=ce(()=>n.value==="dialog"?"false":void 0),f=ce(()=>T(r).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:u,contentStyle:l,contentZIndex:s,updateZIndex:()=>{s.value=e.zIndex||a()}}},ype=(e,t)=>{const r=ke(!1),n=ke();return{focusStartRef:n,trapped:r,onFocusAfterReleased:l=>{var c;((c=l.detail)==null?void 0:c.focusReason)!=="pointer"&&(n.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:l=>{e.visible&&!r.value&&(l.target&&(n.value=l.target),r.value=!0)},onFocusoutPrevented:l=>{e.trapping||(l.detail.focusReason==="pointer"&&l.preventDefault(),r.value=!1)},onReleaseRequested:()=>{r.value=!1,t("close")}}},xpe=Fe({name:"ElPopperContent"}),bpe=Fe({...xpe,props:IK,emits:cpe,setup(e,{expose:t,emit:r}){const n=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:u,onFocusoutPrevented:l,onReleaseRequested:c}=ype(n,r),{attributes:f,arrowRef:d,contentRef:p,styles:v,instanceRef:h,role:g,update:m}=gpe(n),{ariaModal:y,arrowStyle:x,contentAttrs:b,contentClass:E,contentStyle:S,updateZIndex:w}=mpe(n,{styles:v,attributes:f,role:g}),C=Nt(Kl,void 0),_=ke();on(kK,{arrowStyle:x,arrowRef:d,arrowOffset:_}),C&&(C.addInputId||C.removeInputId)&&on(Kl,{...C,addInputId:of,removeInputId:of});let O;const P=(q=!0)=>{m(),q&&w()},F=()=>{P(!1),n.visible&&n.focusOnShow?i.value=!0:n.visible===!1&&(i.value=!1)};return $r(()=>{Ge(()=>n.triggerTargetEl,(q,ee)=>{O==null||O(),O=void 0;const J=T(q||p.value),Z=T(ee||p.value);Kd(J)&&(O=Ge([g,()=>n.ariaLabel,y,()=>n.id],V=>{["role","aria-label","aria-modal","id"].forEach((ie,W)=>{RE(V[W])?J.removeAttribute(ie):J.setAttribute(ie,V[W])})},{immediate:!0})),Z!==J&&Kd(Z)&&["role","aria-label","aria-modal","id"].forEach(V=>{Z.removeAttribute(V)})},{immediate:!0}),Ge(()=>n.visible,F,{immediate:!0})}),li(()=>{O==null||O(),O=void 0}),t({popperContentRef:p,popperInstanceRef:h,updatePopper:P,contentStyle:S}),(q,ee)=>(ge(),Oe("div",hs({ref_key:"contentRef",ref:p},T(b),{style:T(S),class:T(E),tabindex:"-1",onMouseenter:ee[0]||(ee[0]=J=>q.$emit("mouseenter",J)),onMouseleave:ee[1]||(ee[1]=J=>q.$emit("mouseleave",J))}),[Ke(T(NK),{trapped:T(i),"trap-on-focus-in":!0,"focus-trap-el":T(p),"focus-start-el":T(a),onFocusAfterTrapped:T(s),onFocusAfterReleased:T(o),onFocusin:T(u),onFocusoutPrevented:T(l),onReleaseRequested:T(c)},{default:De(()=>[tt(q.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var wpe=gt(bpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Epe=ua(Hde),wD=Symbol("elTooltip"),ED=ar({...d0e,...IK,appendTo:{type:xt([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:xt(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),RK=ar({...FK,disabled:Boolean,trigger:{type:xt([String,Array]),default:"hover"},triggerKeys:{type:xt(Array),default:()=>[Ga.enter,Ga.space]}}),{useModelToggleProps:Spe,useModelToggleEmits:Cpe,useModelToggle:_pe}=iK("visible"),Ape=ar({...TK,...Spe,...ED,...RK,...DK,showArrow:{type:Boolean,default:!0}}),kpe=[...Cpe,"before-show","before-hide","show","hide","open","close"],Tpe=(e,t)=>Lf(e)?e.includes(t):e===t,T0=(e,t,r)=>n=>{Tpe(T(e),t)&&r(n)},Dpe=Fe({name:"ElTooltipTrigger"}),Ope=Fe({...Dpe,props:RK,setup(e,{expose:t}){const r=e,n=ct("tooltip"),{controlled:a,id:i,open:o,onOpen:s,onClose:u,onToggle:l}=Nt(wD,void 0),c=ke(null),f=()=>{if(T(a)||r.disabled)return!0},d=Do(r,"trigger"),p=zs(f,T0(d,"hover",s)),v=zs(f,T0(d,"hover",u)),h=zs(f,T0(d,"click",b=>{b.button===0&&l(b)})),g=zs(f,T0(d,"focus",s)),m=zs(f,T0(d,"focus",u)),y=zs(f,T0(d,"contextmenu",b=>{b.preventDefault(),l(b)})),x=zs(f,b=>{const{code:E}=b;r.triggerKeys.includes(E)&&(b.preventDefault(),l(b))});return t({triggerRef:c}),(b,E)=>(ge(),ze(T(Yde),{id:T(i),"virtual-ref":b.virtualRef,open:T(o),"virtual-triggering":b.virtualTriggering,class:Ce(T(n).e("trigger")),onBlur:T(m),onClick:T(h),onContextmenu:T(y),onFocus:T(g),onMouseenter:T(p),onMouseleave:T(v),onKeydown:T(x)},{default:De(()=>[tt(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Fpe=gt(Ope,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const Bpe=Fe({name:"ElTooltipContent",inheritAttrs:!1}),Ppe=Fe({...Bpe,props:ED,setup(e,{expose:t}){const r=e,{selector:n}=bK(),a=ct("tooltip"),i=ke(null),o=ke(!1),{controlled:s,id:u,open:l,trigger:c,onClose:f,onOpen:d,onShow:p,onHide:v,onBeforeShow:h,onBeforeHide:g}=Nt(wD,void 0),m=ce(()=>r.transition||`${a.namespace.value}-fade-in-linear`),y=ce(()=>r.persistent);li(()=>{o.value=!0});const x=ce(()=>T(y)?!0:T(l)),b=ce(()=>r.disabled?!1:T(l)),E=ce(()=>r.appendTo||n.value),S=ce(()=>{var V;return(V=r.style)!=null?V:{}}),w=ce(()=>!T(l)),C=()=>{v()},_=()=>{if(T(s))return!0},O=zs(_,()=>{r.enterable&&T(c)==="hover"&&d()}),P=zs(_,()=>{T(c)==="hover"&&f()}),F=()=>{var V,ie;(ie=(V=i.value)==null?void 0:V.updatePopper)==null||ie.call(V),h==null||h()},q=()=>{g==null||g()},ee=()=>{p(),Z=Gae(ce(()=>{var V;return(V=i.value)==null?void 0:V.popperContentRef}),()=>{if(T(s))return;T(c)!=="hover"&&f()})},J=()=>{r.virtualTriggering||f()};let Z;return Ge(()=>T(l),V=>{V||Z==null||Z()},{flush:"post"}),Ge(()=>r.content,()=>{var V,ie;(ie=(V=i.value)==null?void 0:V.updatePopper)==null||ie.call(V)}),t({contentRef:i}),(V,ie)=>(ge(),ze(kG,{disabled:!V.teleported,to:T(E)},[Ke(bs,{name:T(m),onAfterLeave:C,onBeforeEnter:F,onAfterEnter:ee,onBeforeLeave:q},{default:De(()=>[T(x)?Ar((ge(),ze(T(wpe),hs({key:0,id:T(u),ref_key:"contentRef",ref:i},V.$attrs,{"aria-label":V.ariaLabel,"aria-hidden":T(w),"boundaries-padding":V.boundariesPadding,"fallback-placements":V.fallbackPlacements,"gpu-acceleration":V.gpuAcceleration,offset:V.offset,placement:V.placement,"popper-options":V.popperOptions,strategy:V.strategy,effect:V.effect,enterable:V.enterable,pure:V.pure,"popper-class":V.popperClass,"popper-style":[V.popperStyle,T(S)],"reference-el":V.referenceEl,"trigger-target-el":V.triggerTargetEl,visible:T(b),"z-index":V.zIndex,onMouseenter:T(O),onMouseleave:T(P),onBlur:J,onClose:T(f)}),{default:De(()=>[o.value?We("v-if",!0):tt(V.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[ta,T(b)]]):We("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var Npe=gt(Ppe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Ipe=["innerHTML"],Rpe={key:1},Lpe=Fe({name:"ElTooltip"}),Mpe=Fe({...Lpe,props:Ape,emits:kpe,setup(e,{expose:t,emit:r}){const n=e;f0e();const a=ep(),i=ke(),o=ke(),s=()=>{var m;const y=T(i);y&&((m=y.popperInstanceRef)==null||m.update())},u=ke(!1),l=ke(),{show:c,hide:f,hasUpdateHandler:d}=_pe({indicator:u,toggleReason:l}),{onOpen:p,onClose:v}=p0e({showAfter:Do(n,"showAfter"),hideAfter:Do(n,"hideAfter"),autoClose:Do(n,"autoClose"),open:c,close:f}),h=ce(()=>xs(n.visible)&&!d.value);on(wD,{controlled:h,id:a,open:Kae(u),trigger:Do(n,"trigger"),onOpen:m=>{p(m)},onClose:m=>{v(m)},onToggle:m=>{T(u)?v(m):p(m)},onShow:()=>{r("show",l.value)},onHide:()=>{r("hide",l.value)},onBeforeShow:()=>{r("before-show",l.value)},onBeforeHide:()=>{r("before-hide",l.value)},updatePopper:s}),Ge(()=>n.disabled,m=>{m&&u.value&&(u.value=!1)});const g=()=>{var m,y;const x=(y=(m=o.value)==null?void 0:m.contentRef)==null?void 0:y.popperContentRef;return x&&x.contains(document.activeElement)};return qae(()=>u.value&&f()),t({popperRef:i,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:p,onClose:v,hide:f}),(m,y)=>(ge(),ze(T(Epe),{ref_key:"popperRef",ref:i,role:m.role},{default:De(()=>[Ke(Fpe,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:De(()=>[m.$slots.default?tt(m.$slots,"default",{key:0}):We("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Ke(Npe,{ref_key:"contentRef",ref:o,"aria-label":m.ariaLabel,"boundaries-padding":m.boundariesPadding,content:m.content,disabled:m.disabled,effect:m.effect,enterable:m.enterable,"fallback-placements":m.fallbackPlacements,"hide-after":m.hideAfter,"gpu-acceleration":m.gpuAcceleration,offset:m.offset,persistent:m.persistent,"popper-class":m.popperClass,"popper-style":m.popperStyle,placement:m.placement,"popper-options":m.popperOptions,pure:m.pure,"raw-content":m.rawContent,"reference-el":m.referenceEl,"trigger-target-el":m.triggerTargetEl,"show-after":m.showAfter,strategy:m.strategy,teleported:m.teleported,transition:m.transition,"virtual-triggering":m.virtualTriggering,"z-index":m.zIndex,"append-to":m.appendTo},{default:De(()=>[tt(m.$slots,"content",{},()=>[m.rawContent?(ge(),Oe("span",{key:0,innerHTML:m.content},null,8,Ipe)):(ge(),Oe("span",Rpe,rr(m.content),1))]),m.showArrow?(ge(),ze(T(Wde),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):We("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var jpe=gt(Mpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const $pe=ua(jpe),Upe=ar({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),Hpe=["textContent"],zpe=Fe({name:"ElBadge"}),Vpe=Fe({...zpe,props:Upe,setup(e,{expose:t}){const r=e,n=ct("badge"),a=ce(()=>r.isDot?"":Fn(r.value)&&Fn(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`);return t({content:a}),(i,o)=>(ge(),Oe("div",{class:Ce(T(n).b())},[tt(i.$slots,"default"),Ke(bs,{name:`${T(n).namespace.value}-zoom-in-center`,persisted:""},{default:De(()=>[Ar(Pe("sup",{class:Ce([T(n).e("content"),T(n).em("content",i.type),T(n).is("fixed",!!i.$slots.default),T(n).is("dot",i.isDot)]),textContent:rr(T(a))},null,10,Hpe),[[ta,!i.hidden&&(T(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var Wpe=gt(Vpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const Gpe=ua(Wpe),LK=Symbol("buttonGroupContextKey"),Kpe=(e,t)=>{tb({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},ce(()=>e.type==="text"));const r=Nt(LK,void 0),n=TG("button"),{form:a}=a0(),i=lu(ce(()=>r==null?void 0:r.size)),o=um(),s=ke(),u=n0(),l=ce(()=>e.type||(r==null?void 0:r.type)||""),c=ce(()=>{var v,h,g;return(g=(h=e.autoInsertSpace)!=null?h:(v=n.value)==null?void 0:v.autoInsertSpace)!=null?g:!1}),f=ce(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),d=ce(()=>{var v;const h=(v=u.default)==null?void 0:v.call(u);if(c.value&&(h==null?void 0:h.length)===1){const g=h[0];if((g==null?void 0:g.type)===CG){const m=g.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(m.trim())}}return!1});return{_disabled:o,_size:i,_type:l,_ref:s,_props:f,shouldAddSpace:d,handleClick:v=>{e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",v)}}},qpe=["default","primary","success","warning","info","danger","text",""],Xpe=["button","submit","reset"],P8=ar({size:Up,disabled:Boolean,type:{type:String,values:qpe,default:""},icon:{type:su},nativeType:{type:String,values:Xpe,default:"button"},loading:Boolean,loadingIcon:{type:su,default:()=>sD},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:xt([String,Object]),default:"button"}}),Ype={click:e=>e instanceof MouseEvent};function ra(e,t){Jpe(e)&&(e="100%");var r=Zpe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Cy(e){return Math.min(1,Math.max(0,e))}function Jpe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Zpe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function MK(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function _y(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Zc(e){return e.length===1?"0"+e:String(e)}function Qpe(e,t,r){return{r:ra(e,255)*255,g:ra(t,255)*255,b:ra(r,255)*255}}function IP(e,t,r){e=ra(e,255),t=ra(t,255),r=ra(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=0,s=(n+a)/2;if(n===a)o=0,i=0;else{var u=n-a;switch(o=s>.5?u/(2-n-a):u/(n+a),n){case e:i=(t-r)/u+(t<r?6:0);break;case t:i=(r-e)/u+2;break;case r:i=(e-t)/u+4;break}i/=6}return{h:i,s:o,l:s}}function vS(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function ehe(e,t,r){var n,a,i;if(e=ra(e,360),t=ra(t,100),r=ra(r,100),t===0)a=r,i=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=vS(s,o,e+1/3),a=vS(s,o,e),i=vS(s,o,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function RP(e,t,r){e=ra(e,255),t=ra(t,255),r=ra(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=n,s=n-a,u=n===0?0:s/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/s+(t<r?6:0);break;case t:i=(r-e)/s+2;break;case r:i=(e-t)/s+4;break}i/=6}return{h:i,s:u,v:o}}function the(e,t,r){e=ra(e,360)*6,t=ra(t,100),r=ra(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),s=r*(1-(1-a)*t),u=n%6,l=[r,o,i,i,s,r][u],c=[s,r,r,o,i,i][u],f=[i,i,s,r,r,o][u];return{r:l*255,g:c*255,b:f*255}}function LP(e,t,r,n){var a=[Zc(Math.round(e).toString(16)),Zc(Math.round(t).toString(16)),Zc(Math.round(r).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function rhe(e,t,r,n,a){var i=[Zc(Math.round(e).toString(16)),Zc(Math.round(t).toString(16)),Zc(Math.round(r).toString(16)),Zc(nhe(n))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function nhe(e){return Math.round(parseFloat(e)*255).toString(16)}function MP(e){return pi(e)/255}function pi(e){return parseInt(e,16)}function ahe(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var N8={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ihe(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=uhe(e)),typeof e=="object"&&(Ls(e.r)&&Ls(e.g)&&Ls(e.b)?(t=Qpe(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ls(e.h)&&Ls(e.s)&&Ls(e.v)?(n=_y(e.s),a=_y(e.v),t=the(e.h,n,a),o=!0,s="hsv"):Ls(e.h)&&Ls(e.s)&&Ls(e.l)&&(n=_y(e.s),i=_y(e.l),t=ehe(e.h,n,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=MK(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var ohe="[-\\+]?\\d+%?",she="[-\\+]?\\d*\\.\\d+%?",ll="(?:".concat(she,")|(?:").concat(ohe,")"),gS="[\\s|\\(]+(".concat(ll,")[,|\\s]+(").concat(ll,")[,|\\s]+(").concat(ll,")\\s*\\)?"),mS="[\\s|\\(]+(".concat(ll,")[,|\\s]+(").concat(ll,")[,|\\s]+(").concat(ll,")[,|\\s]+(").concat(ll,")\\s*\\)?"),bo={CSS_UNIT:new RegExp(ll),rgb:new RegExp("rgb"+gS),rgba:new RegExp("rgba"+mS),hsl:new RegExp("hsl"+gS),hsla:new RegExp("hsla"+mS),hsv:new RegExp("hsv"+gS),hsva:new RegExp("hsva"+mS),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function uhe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(N8[e])e=N8[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=bo.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=bo.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=bo.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=bo.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=bo.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=bo.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=bo.hex8.exec(e),r?{r:pi(r[1]),g:pi(r[2]),b:pi(r[3]),a:MP(r[4]),format:t?"name":"hex8"}:(r=bo.hex6.exec(e),r?{r:pi(r[1]),g:pi(r[2]),b:pi(r[3]),format:t?"name":"hex"}:(r=bo.hex4.exec(e),r?{r:pi(r[1]+r[1]),g:pi(r[2]+r[2]),b:pi(r[3]+r[3]),a:MP(r[4]+r[4]),format:t?"name":"hex8"}:(r=bo.hex3.exec(e),r?{r:pi(r[1]+r[1]),g:pi(r[2]+r[2]),b:pi(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Ls(e){return!!bo.CSS_UNIT.exec(String(e))}var lhe=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=ahe(t)),this.originalInput=t;var a=ihe(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,i=t.r/255,o=t.g/255,s=t.b/255;return i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=MK(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=RP(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=RP(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=IP(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=IP(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),LP(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),rhe(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(ra(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(ra(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+LP(this.r,this.g,this.b,!1),r=0,n=Object.entries(N8);r<n.length;r++){var a=n[r],i=a[0],o=a[1];if(t===o)return i}return!1},e.prototype.toString=function(t){var r=!!t;t=t!=null?t:this.format;var n=!1,a=this.a<1&&this.a>=0,i=!r&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=Cy(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=Cy(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=Cy(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=Cy(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,i=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(new e({h:n,s:a,v:i})),i=(i+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],i=360/t,o=1;o<t;o++)a.push(new e({h:(n+o*i)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Su(e,t=20){return e.mix("#141414",t).toString()}function che(e){const t=um(),r=ct("button");return ce(()=>{let n={};const a=e.color;if(a){const i=new lhe(a),o=e.dark?i.tint(20).toString():Su(i,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?Su(i,90):i.tint(90).toString(),"text-color":a,"border-color":e.dark?Su(i,50):i.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":o,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(n[r.cssVarBlockName("disabled-bg-color")]=e.dark?Su(i,90):i.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?Su(i,50):i.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?Su(i,80):i.tint(80).toString());else{const s=e.dark?Su(i,30):i.tint(30).toString(),u=i.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(n=r.cssVarBlock({"bg-color":a,"text-color":u,"border-color":a,"hover-bg-color":s,"hover-text-color":u,"hover-border-color":s,"active-bg-color":o,"active-border-color":o}),t.value){const l=e.dark?Su(i,50):i.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=l,n[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,n[r.cssVarBlockName("disabled-border-color")]=l}}}return n})}const fhe=Fe({name:"ElButton"}),dhe=Fe({...fhe,props:P8,emits:Ype,setup(e,{expose:t,emit:r}){const n=e,a=che(n),i=ct("button"),{_ref:o,_size:s,_type:u,_disabled:l,_props:c,shouldAddSpace:f,handleClick:d}=Kpe(n,r);return t({ref:o,size:s,type:u,disabled:l,shouldAddSpace:f}),(p,v)=>(ge(),ze(Wn(p.tag),hs({ref_key:"_ref",ref:o},T(c),{class:[T(i).b(),T(i).m(T(u)),T(i).m(T(s)),T(i).is("disabled",T(l)),T(i).is("loading",p.loading),T(i).is("plain",p.plain),T(i).is("round",p.round),T(i).is("circle",p.circle),T(i).is("text",p.text),T(i).is("link",p.link),T(i).is("has-bg",p.bg)],style:T(a),onClick:T(d)}),{default:De(()=>[p.loading?(ge(),Oe(xn,{key:0},[p.$slots.loading?tt(p.$slots,"loading",{key:0}):(ge(),ze(T(Xa),{key:1,class:Ce(T(i).is("loading"))},{default:De(()=>[(ge(),ze(Wn(p.loadingIcon)))]),_:1},8,["class"]))],64)):p.icon||p.$slots.icon?(ge(),ze(T(Xa),{key:1},{default:De(()=>[p.icon?(ge(),ze(Wn(p.icon),{key:0})):tt(p.$slots,"icon",{key:1})]),_:3})):We("v-if",!0),p.$slots.default?(ge(),Oe("span",{key:2,class:Ce({[T(i).em("text","expand")]:T(f)})},[tt(p.$slots,"default")],2)):We("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var phe=gt(dhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const hhe={size:P8.size,type:P8.type},vhe=Fe({name:"ElButtonGroup"}),ghe=Fe({...vhe,props:hhe,setup(e){const t=e;on(LK,Pr({size:Do(t,"size"),type:Do(t,"type")}));const r=ct("button");return(n,a)=>(ge(),Oe("div",{class:Ce(`${T(r).b("group")}`)},[tt(n.$slots,"default")],2))}});var jK=gt(ghe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const $K=ua(phe,{ButtonGroup:jK});lo(jK);const el=new Map;let jP;bn&&(document.addEventListener("mousedown",e=>jP=e),document.addEventListener("mouseup",e=>{for(const t of el.values())for(const{documentHandler:r}of t)r(e,jP)}));function $P(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:Kd(t.arg)&&r.push(t.arg),function(n,a){const i=t.instance.popperRef,o=n.target,s=a==null?void 0:a.target,u=!t||!t.instance,l=!o||!s,c=e.contains(o)||e.contains(s),f=e===o,d=r.length&&r.some(v=>v==null?void 0:v.contains(o))||r.length&&r.includes(s),p=i&&(i.contains(o)||i.contains(s));u||l||c||f||d||p||t.value(n,a)}}const mhe={beforeMount(e,t){el.has(e)||el.set(e,[]),el.get(e).push({documentHandler:$P(e,t),bindingFn:t.value})},updated(e,t){el.has(e)||el.set(e,[]);const r=el.get(e),n=r.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:$P(e,t),bindingFn:t.value};n>=0?r.splice(n,1,a):r.push(a)},unmounted(e){el.delete(e)}},yhe=ar({header:{type:String,default:""},bodyStyle:{type:xt([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),xhe=Fe({name:"ElCard"}),bhe=Fe({...xhe,props:yhe,setup(e){const t=ct("card");return(r,n)=>(ge(),Oe("div",{class:Ce([T(t).b(),T(t).is(`${r.shadow}-shadow`)])},[r.$slots.header||r.header?(ge(),Oe("div",{key:0,class:Ce(T(t).e("header"))},[tt(r.$slots,"header",{},()=>[Pa(rr(r.header),1)])],2)):We("v-if",!0),Pe("div",{class:Ce(T(t).e("body")),style:pr(r.bodyStyle)},[tt(r.$slots,"default")],6)],2))}});var whe=gt(bhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const Ehe=ua(whe),UK={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Up,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},HK={[zr]:e=>In(e)||Fn(e)||xs(e),change:e=>In(e)||Fn(e)||xs(e)},zp=Symbol("checkboxGroupContextKey"),She=({model:e,isChecked:t})=>{const r=Nt(zp,void 0),n=ce(()=>{var i,o;const s=(i=r==null?void 0:r.max)==null?void 0:i.value,u=(o=r==null?void 0:r.min)==null?void 0:o.value;return!Kx(s)&&e.value.length>=s&&!t.value||!Kx(u)&&e.value.length<=u&&t.value});return{isDisabled:um(ce(()=>(r==null?void 0:r.disabled.value)||n.value)),isLimitDisabled:n}},Che=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:a,isLabeledByFormItem:i})=>{const o=Nt(zp,void 0),{formItem:s}=a0(),{emit:u}=ui();function l(v){var h,g;return v===e.trueLabel||v===!0?(h=e.trueLabel)!=null?h:!0:(g=e.falseLabel)!=null?g:!1}function c(v,h){u("change",l(v),h)}function f(v){if(r.value)return;const h=v.target;u("change",l(h.checked),v)}async function d(v){r.value||!n.value&&!a.value&&i.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=l([!1,e.falseLabel].includes(t.value)),await mt(),c(t.value,v)))}const p=ce(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return Ge(()=>e.modelValue,()=>{p.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:f,onClickRoot:d}},_he=e=>{const t=ke(!1),{emit:r}=ui(),n=Nt(zp,void 0),a=ce(()=>Kx(n)===!1),i=ke(!1);return{model:ce({get(){var s,u;return a.value?(s=n==null?void 0:n.modelValue)==null?void 0:s.value:(u=e.modelValue)!=null?u:t.value},set(s){var u,l;a.value&&Lf(s)?(i.value=((u=n==null?void 0:n.max)==null?void 0:u.value)!==void 0&&s.length>(n==null?void 0:n.max.value),i.value===!1&&((l=n==null?void 0:n.changeEvent)==null||l.call(n,s))):(r(zr,s),t.value=s)}}),isGroup:a,isLimitExceeded:i}},Ahe=(e,t,{model:r})=>{const n=Nt(zp,void 0),a=ke(!1),i=ce(()=>{const l=r.value;return xs(l)?l:Lf(l)?zo(e.label)?l.map(Mf).some(c=>Zx(c,e.label)):l.map(Mf).includes(e.label):l!=null?l===e.trueLabel:!!l}),o=lu(ce(()=>{var l;return(l=n==null?void 0:n.size)==null?void 0:l.value}),{prop:!0}),s=lu(ce(()=>{var l;return(l=n==null?void 0:n.size)==null?void 0:l.value})),u=ce(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:i,isFocused:a,checkboxSize:s,hasOwnLabel:u}},khe=(e,{model:t})=>{function r(){Lf(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&r()},zK=(e,t)=>{const{formItem:r}=a0(),{model:n,isGroup:a,isLimitExceeded:i}=_he(e),{isFocused:o,isChecked:s,checkboxButtonSize:u,checkboxSize:l,hasOwnLabel:c}=Ahe(e,t,{model:n}),{isDisabled:f}=She({model:n,isChecked:s}),{inputId:d,isLabeledByFormItem:p}=jE(e,{formItemContext:r,disableIdGeneration:c,disableIdManagement:a}),{handleChange:v,onClickRoot:h}=Che(e,{model:n,isLimitExceeded:i,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:p});return khe(e,{model:n}),{inputId:d,isLabeledByFormItem:p,isChecked:s,isDisabled:f,isFocused:o,checkboxButtonSize:u,checkboxSize:l,hasOwnLabel:c,model:n,handleChange:v,onClickRoot:h}},The=["tabindex","role","aria-checked"],Dhe=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],Ohe=["id","aria-hidden","disabled","value","name","tabindex"],Fhe=Fe({name:"ElCheckbox"}),Bhe=Fe({...Fhe,props:UK,emits:HK,setup(e){const t=e,r=n0(),{inputId:n,isLabeledByFormItem:a,isChecked:i,isDisabled:o,isFocused:s,checkboxSize:u,hasOwnLabel:l,model:c,handleChange:f,onClickRoot:d}=zK(t,r),p=ct("checkbox"),v=ce(()=>[p.b(),p.m(u.value),p.is("disabled",o.value),p.is("bordered",t.border),p.is("checked",i.value)]),h=ce(()=>[p.e("input"),p.is("disabled",o.value),p.is("checked",i.value),p.is("indeterminate",t.indeterminate),p.is("focus",s.value)]);return(g,m)=>(ge(),ze(Wn(!T(l)&&T(a)?"span":"label"),{class:Ce(T(v)),"aria-controls":g.indeterminate?g.controls:null,onClick:T(d)},{default:De(()=>[Pe("span",{class:Ce(T(h)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?Ar((ge(),Oe("input",{key:0,id:T(n),"onUpdate:modelValue":m[0]||(m[0]=y=>Wl(c)?c.value=y:null),class:Ce(T(p).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:T(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:m[1]||(m[1]=(...y)=>T(f)&&T(f)(...y)),onFocus:m[2]||(m[2]=y=>s.value=!0),onBlur:m[3]||(m[3]=y=>s.value=!1)},null,42,Dhe)),[[qx,T(c)]]):Ar((ge(),Oe("input",{key:1,id:T(n),"onUpdate:modelValue":m[4]||(m[4]=y=>Wl(c)?c.value=y:null),class:Ce(T(p).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:T(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:m[5]||(m[5]=(...y)=>T(f)&&T(f)(...y)),onFocus:m[6]||(m[6]=y=>s.value=!0),onBlur:m[7]||(m[7]=y=>s.value=!1)},null,42,Ohe)),[[qx,T(c)]]),Pe("span",{class:Ce(T(p).e("inner"))},null,2)],10,The),T(l)?(ge(),Oe("span",{key:0,class:Ce(T(p).e("label"))},[tt(g.$slots,"default"),g.$slots.default?We("v-if",!0):(ge(),Oe(xn,{key:0},[Pa(rr(g.label),1)],64))],2)):We("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Phe=gt(Bhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const Nhe=["name","tabindex","disabled","true-value","false-value"],Ihe=["name","tabindex","disabled","value"],Rhe=Fe({name:"ElCheckboxButton"}),Lhe=Fe({...Rhe,props:UK,emits:HK,setup(e){const t=e,r=n0(),{isFocused:n,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:s,handleChange:u}=zK(t,r),l=Nt(zp,void 0),c=ct("checkbox"),f=ce(()=>{var p,v,h,g;const m=(v=(p=l==null?void 0:l.fill)==null?void 0:p.value)!=null?v:"";return{backgroundColor:m,borderColor:m,color:(g=(h=l==null?void 0:l.textColor)==null?void 0:h.value)!=null?g:"",boxShadow:m?`-1px 0 0 0 ${m}`:void 0}}),d=ce(()=>[c.b("button"),c.bm("button",o.value),c.is("disabled",i.value),c.is("checked",a.value),c.is("focus",n.value)]);return(p,v)=>(ge(),Oe("label",{class:Ce(T(d))},[p.trueLabel||p.falseLabel?Ar((ge(),Oe("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=h=>Wl(s)?s.value=h:null),class:Ce(T(c).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:T(i),"true-value":p.trueLabel,"false-value":p.falseLabel,onChange:v[1]||(v[1]=(...h)=>T(u)&&T(u)(...h)),onFocus:v[2]||(v[2]=h=>n.value=!0),onBlur:v[3]||(v[3]=h=>n.value=!1)},null,42,Nhe)),[[qx,T(s)]]):Ar((ge(),Oe("input",{key:1,"onUpdate:modelValue":v[4]||(v[4]=h=>Wl(s)?s.value=h:null),class:Ce(T(c).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:T(i),value:p.label,onChange:v[5]||(v[5]=(...h)=>T(u)&&T(u)(...h)),onFocus:v[6]||(v[6]=h=>n.value=!0),onBlur:v[7]||(v[7]=h=>n.value=!1)},null,42,Ihe)),[[qx,T(s)]]),p.$slots.default||p.label?(ge(),Oe("span",{key:2,class:Ce(T(c).be("button","inner")),style:pr(T(a)?T(f):void 0)},[tt(p.$slots,"default",{},()=>[Pa(rr(p.label),1)])],6)):We("v-if",!0)],2))}});var VK=gt(Lhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const Mhe=ar({modelValue:{type:xt(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Up,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),jhe={[zr]:e=>Lf(e),change:e=>Lf(e)},$he=Fe({name:"ElCheckboxGroup"}),Uhe=Fe({...$he,props:Mhe,emits:jhe,setup(e,{emit:t}){const r=e,n=ct("checkbox"),{formItem:a}=a0(),{inputId:i,isLabeledByFormItem:o}=jE(r,{formItemContext:a}),s=async l=>{t(zr,l),await mt(),t("change",l)},u=ce({get(){return r.modelValue},set(l){s(l)}});return on(zp,{...qg(Os(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:u,changeEvent:s}),Ge(()=>r.modelValue,()=>{r.validateEvent&&(a==null||a.validate("change").catch(l=>void 0))}),(l,c)=>{var f;return ge(),ze(Wn(l.tag),{id:T(i),class:Ce(T(n).b("group")),role:"group","aria-label":T(o)?void 0:l.label||"checkbox-group","aria-labelledby":T(o)?(f=T(a))==null?void 0:f.labelId:void 0},{default:De(()=>[tt(l.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var WK=gt(Uhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Hhe=ua(Phe,{CheckboxButton:VK,CheckboxGroup:WK});lo(VK);lo(WK);const GK=ar({size:Up,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),zhe=ar({...GK,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),KK={[zr]:e=>In(e)||Fn(e)||xs(e),[uD]:e=>In(e)||Fn(e)||xs(e)},qK=Symbol("radioGroupKey"),XK=(e,t)=>{const r=ke(),n=Nt(qK,void 0),a=ce(()=>!!n),i=ce({get(){return a.value?n.modelValue:e.modelValue},set(c){a.value?n.changeEvent(c):t&&t(zr,c),r.value.checked=e.modelValue===e.label}}),o=lu(ce(()=>n==null?void 0:n.size)),s=um(ce(()=>n==null?void 0:n.disabled)),u=ke(!1),l=ce(()=>s.value||a.value&&i.value!==e.label?-1:0);return{radioRef:r,isGroup:a,radioGroup:n,focus:u,size:o,disabled:s,tabIndex:l,modelValue:i}},Vhe=["value","name","disabled"],Whe=Fe({name:"ElRadio"}),Ghe=Fe({...Whe,props:zhe,emits:KK,setup(e,{emit:t}){const r=e,n=ct("radio"),{radioRef:a,radioGroup:i,focus:o,size:s,disabled:u,modelValue:l}=XK(r,t);function c(){mt(()=>t("change",l.value))}return(f,d)=>{var p;return ge(),Oe("label",{class:Ce([T(n).b(),T(n).is("disabled",T(u)),T(n).is("focus",T(o)),T(n).is("bordered",f.border),T(n).is("checked",T(l)===f.label),T(n).m(T(s))])},[Pe("span",{class:Ce([T(n).e("input"),T(n).is("disabled",T(u)),T(n).is("checked",T(l)===f.label)])},[Ar(Pe("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":d[0]||(d[0]=v=>Wl(l)?l.value=v:null),class:Ce(T(n).e("original")),value:f.label,name:f.name||((p=T(i))==null?void 0:p.name),disabled:T(u),type:"radio",onFocus:d[1]||(d[1]=v=>o.value=!0),onBlur:d[2]||(d[2]=v=>o.value=!1),onChange:c},null,42,Vhe),[[DG,T(l)]]),Pe("span",{class:Ce(T(n).e("inner"))},null,2)],2),Pe("span",{class:Ce(T(n).e("label")),onKeydown:d[3]||(d[3]=nn(()=>{},["stop"]))},[tt(f.$slots,"default",{},()=>[Pa(rr(f.label),1)])],34)],2)}}});var Khe=gt(Ghe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const qhe=ar({...GK,name:{type:String,default:""}}),Xhe=["value","name","disabled"],Yhe=Fe({name:"ElRadioButton"}),Jhe=Fe({...Yhe,props:qhe,setup(e){const t=e,r=ct("radio"),{radioRef:n,focus:a,size:i,disabled:o,modelValue:s,radioGroup:u}=XK(t),l=ce(()=>({backgroundColor:(u==null?void 0:u.fill)||"",borderColor:(u==null?void 0:u.fill)||"",boxShadow:u!=null&&u.fill?`-1px 0 0 0 ${u.fill}`:"",color:(u==null?void 0:u.textColor)||""}));return(c,f)=>{var d;return ge(),Oe("label",{class:Ce([T(r).b("button"),T(r).is("active",T(s)===c.label),T(r).is("disabled",T(o)),T(r).is("focus",T(a)),T(r).bm("button",T(i))])},[Ar(Pe("input",{ref_key:"radioRef",ref:n,"onUpdate:modelValue":f[0]||(f[0]=p=>Wl(s)?s.value=p:null),class:Ce(T(r).be("button","original-radio")),value:c.label,type:"radio",name:c.name||((d=T(u))==null?void 0:d.name),disabled:T(o),onFocus:f[1]||(f[1]=p=>a.value=!0),onBlur:f[2]||(f[2]=p=>a.value=!1)},null,42,Xhe),[[DG,T(s)]]),Pe("span",{class:Ce(T(r).be("button","inner")),style:pr(T(s)===c.label?T(l):{}),onKeydown:f[3]||(f[3]=nn(()=>{},["stop"]))},[tt(c.$slots,"default",{},()=>[Pa(rr(c.label),1)])],38)],2)}}});var YK=gt(Jhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const Zhe=ar({id:{type:String,default:void 0},size:Up,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),Qhe=KK,eve=["id","aria-label","aria-labelledby"],tve=Fe({name:"ElRadioGroup"}),rve=Fe({...tve,props:Zhe,emits:Qhe,setup(e,{emit:t}){const r=e,n=ct("radio"),a=ep(),i=ke(),{formItem:o}=a0(),{inputId:s,isLabeledByFormItem:u}=jE(r,{formItemContext:o}),l=f=>{t(zr,f),mt(()=>t("change",f))};$r(()=>{const f=i.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(p=>p.checked)&&d&&(d.tabIndex=0)});const c=ce(()=>r.name||a.value);return on(qK,Pr({...Os(r),changeEvent:l,name:c})),Ge(()=>r.modelValue,()=>{r.validateEvent&&(o==null||o.validate("change").catch(f=>void 0))}),(f,d)=>(ge(),Oe("div",{id:T(s),ref_key:"radioGroupRef",ref:i,class:Ce(T(n).b("group")),role:"radiogroup","aria-label":T(u)?void 0:f.label||"radio-group","aria-labelledby":T(u)?T(o).labelId:void 0},[tt(f.$slots,"default")],10,eve))}});var JK=gt(rve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const nve=ua(Khe,{RadioButton:YK,RadioGroup:JK}),ave=lo(JK);lo(YK);const ZK=ar({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:NE,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),ive={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},ove=Fe({name:"ElTag"}),sve=Fe({...ove,props:ZK,emits:ive,setup(e,{emit:t}){const r=e,n=lu(),a=ct("tag"),i=ce(()=>{const{type:u,hit:l,effect:c,closable:f,round:d}=r;return[a.b(),a.is("closable",f),a.m(u),a.m(n.value),a.m(c),a.is("hit",l),a.is("round",d)]}),o=u=>{t("close",u)},s=u=>{t("click",u)};return(u,l)=>u.disableTransitions?(ge(),Oe("span",{key:0,class:Ce(T(i)),style:pr({backgroundColor:u.color}),onClick:s},[Pe("span",{class:Ce(T(a).e("content"))},[tt(u.$slots,"default")],2),u.closable?(ge(),ze(T(Xa),{key:0,class:Ce(T(a).e("close")),onClick:nn(o,["stop"])},{default:De(()=>[Ke(T(eb))]),_:1},8,["class","onClick"])):We("v-if",!0)],6)):(ge(),ze(bs,{key:1,name:`${T(a).namespace.value}-zoom-in-center`,appear:""},{default:De(()=>[Pe("span",{class:Ce(T(i)),style:pr({backgroundColor:u.color}),onClick:s},[Pe("span",{class:Ce(T(a).e("content"))},[tt(u.$slots,"default")],2),u.closable?(ge(),ze(T(Xa),{key:0,class:Ce(T(a).e("close")),onClick:nn(o,["stop"])},{default:De(()=>[Ke(T(eb))]),_:1},8,["class","onClick"])):We("v-if",!0)],6)]),_:3},8,["name"]))}});var uve=gt(sve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const lve=ua(uve),QK=Symbol("rowContextKey"),cve=["start","center","end","space-around","space-between","space-evenly"],fve=["top","middle","bottom"],dve=ar({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:cve,default:"start"},align:{type:String,values:fve,default:"top"}}),pve=Fe({name:"ElRow"}),hve=Fe({...pve,props:dve,setup(e){const t=e,r=ct("row"),n=ce(()=>t.gutter);on(QK,{gutter:n});const a=ce(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),i=ce(()=>[r.b(),r.is(`justify-${t.justify}`,t.justify!=="start"),r.is(`align-${t.align}`,t.align!=="top")]);return(o,s)=>(ge(),ze(Wn(o.tag),{class:Ce(T(i)),style:pr(T(a))},{default:De(()=>[tt(o.$slots,"default")]),_:3},8,["class","style"]))}});var vve=gt(hve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const gve=ua(vve),mve=ar({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:xt([Number,Object]),default:()=>zc({})},sm:{type:xt([Number,Object]),default:()=>zc({})},md:{type:xt([Number,Object]),default:()=>zc({})},lg:{type:xt([Number,Object]),default:()=>zc({})},xl:{type:xt([Number,Object]),default:()=>zc({})}}),yve=Fe({name:"ElCol"}),xve=Fe({...yve,props:mve,setup(e){const t=e,{gutter:r}=Nt(QK,{gutter:ce(()=>0)}),n=ct("col"),a=ce(()=>{const o={};return r.value&&(o.paddingLeft=o.paddingRight=`${r.value/2}px`),o}),i=ce(()=>{const o=[];return["span","offset","pull","push"].forEach(l=>{const c=t[l];Fn(c)&&(l==="span"?o.push(n.b(`${t[l]}`)):c>0&&o.push(n.b(`${l}-${t[l]}`)))}),["xs","sm","md","lg","xl"].forEach(l=>{Fn(t[l])?o.push(n.b(`${l}-${t[l]}`)):zo(t[l])&&Object.entries(t[l]).forEach(([c,f])=>{o.push(c!=="span"?n.b(`${l}-${c}-${f}`):n.b(`${l}-${f}`))})}),r.value&&o.push(n.is("guttered")),[n.b(),o]});return(o,s)=>(ge(),ze(Wn(o.tag),{class:Ce(T(i)),style:pr(T(a))},{default:De(()=>[tt(o.$slots,"default")]),_:3},8,["class","style"]))}});var bve=gt(xve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const wve=ua(bve),Eve=Fe({name:"ElCollapseTransition"}),Sve=Fe({...Eve,setup(e){const t=ct("collapse-transition"),r={beforeEnter(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0},enter(n){n.dataset.oldOverflow=n.style.overflow,n.scrollHeight!==0?(n.style.maxHeight=`${n.scrollHeight}px`,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom):(n.style.maxHeight=0,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom),n.style.overflow="hidden"},afterEnter(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow},beforeLeave(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.dataset.oldOverflow=n.style.overflow,n.style.maxHeight=`${n.scrollHeight}px`,n.style.overflow="hidden"},leave(n){n.scrollHeight!==0&&(n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0)},afterLeave(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom}};return(n,a)=>(ge(),ze(bs,hs({name:T(t).b()},Xae(r)),{default:De(()=>[tt(n.$slots,"default")]),_:3},16,["name"]))}});var tx=gt(Sve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);tx.install=e=>{e.component(tx.name,tx)};const Cve=tx,_ve=Fe({name:"ElContainer"}),Ave=Fe({..._ve,props:{direction:{type:String}},setup(e){const t=e,r=n0(),n=ct("container"),a=ce(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:r&&r.default?r.default().some(o=>{const s=o.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(i,o)=>(ge(),Oe("section",{class:Ce([T(n).b(),T(n).is("vertical",T(a))])},[tt(i.$slots,"default")],2))}});var kve=gt(Ave,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const Tve=Fe({name:"ElAside"}),Dve=Fe({...Tve,props:{width:{type:String,default:null}},setup(e){const t=e,r=ct("aside"),n=ce(()=>t.width?r.cssVarBlock({width:t.width}):{});return(a,i)=>(ge(),Oe("aside",{class:Ce(T(r).b()),style:pr(T(n))},[tt(a.$slots,"default")],6))}});var eq=gt(Dve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const Ove=Fe({name:"ElFooter"}),Fve=Fe({...Ove,props:{height:{type:String,default:null}},setup(e){const t=e,r=ct("footer"),n=ce(()=>t.height?r.cssVarBlock({height:t.height}):{});return(a,i)=>(ge(),Oe("footer",{class:Ce(T(r).b()),style:pr(T(n))},[tt(a.$slots,"default")],6))}});var tq=gt(Fve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const Bve=Fe({name:"ElHeader"}),Pve=Fe({...Bve,props:{height:{type:String,default:null}},setup(e){const t=e,r=ct("header"),n=ce(()=>t.height?r.cssVarBlock({height:t.height}):{});return(a,i)=>(ge(),Oe("header",{class:Ce(T(r).b()),style:pr(T(n))},[tt(a.$slots,"default")],6))}});var rq=gt(Pve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const Nve=Fe({name:"ElMain"}),Ive=Fe({...Nve,setup(e){const t=ct("main");return(r,n)=>(ge(),Oe("main",{class:Ce(T(t).b())},[tt(r.$slots,"default")],2))}});var nq=gt(Ive,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const yet=ua(kve,{Aside:eq,Footer:tq,Header:rq,Main:nq}),xet=lo(eq),Rve=lo(tq),bet=lo(rq),wet=lo(nq),Lve=ar({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:xt([String,Array,Object])},zIndex:{type:xt([String,Number])}}),Mve={click:e=>e instanceof MouseEvent},jve="overlay";var $ve=Fe({name:"ElOverlay",props:Lve,emits:Mve,setup(e,{slots:t,emit:r}){const n=ct(jve),a=u=>{r("click",u)},{onClick:i,onMousedown:o,onMouseup:s}=yK(e.customMaskEvent?void 0:a);return()=>e.mask?Ke("div",{class:[n.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:o,onMouseup:s},[tt(t,"default")],Z2.STYLE|Z2.CLASS|Z2.PROPS,["onClick","onMouseup","onMousedown"]):Co("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[tt(t,"default")])}});const Uve=$ve,aq=Symbol("dialogInjectionKey"),iq=ar({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:su},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),Hve={close:()=>!0},zve=["aria-label"],Vve=["id"],Wve=Fe({name:"ElDialogContent"}),Gve=Fe({...Wve,props:iq,emits:Hve,setup(e){const t=e,{t:r}=im(),{Close:n}=Vce,{dialogRef:a,headerRef:i,bodyId:o,ns:s,style:u}=Nt(aq),{focusTrapRef:l}=Nt(BK),c=Kce(l,a),f=ce(()=>t.draggable);return Qce(a,i,f),(d,p)=>(ge(),Oe("div",{ref:T(c),class:Ce([T(s).b(),T(s).is("fullscreen",d.fullscreen),T(s).is("draggable",T(f)),T(s).is("align-center",d.alignCenter),{[T(s).m("center")]:d.center},d.customClass]),style:pr(T(u)),tabindex:"-1"},[Pe("header",{ref_key:"headerRef",ref:i,class:Ce(T(s).e("header"))},[tt(d.$slots,"header",{},()=>[Pe("span",{role:"heading",class:Ce(T(s).e("title"))},rr(d.title),3)]),d.showClose?(ge(),Oe("button",{key:0,"aria-label":T(r)("el.dialog.close"),class:Ce(T(s).e("headerbtn")),type:"button",onClick:p[0]||(p[0]=v=>d.$emit("close"))},[Ke(T(Xa),{class:Ce(T(s).e("close"))},{default:De(()=>[(ge(),ze(Wn(d.closeIcon||T(n))))]),_:1},8,["class"])],10,zve)):We("v-if",!0)],2),Pe("div",{id:T(o),class:Ce(T(s).e("body"))},[tt(d.$slots,"default")],10,Vve),d.$slots.footer?(ge(),Oe("footer",{key:0,class:Ce(T(s).e("footer"))},[tt(d.$slots,"footer")],2)):We("v-if",!0)],6))}});var Kve=gt(Gve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const qve=ar({...iq,appendToBody:{type:Boolean,default:!1},beforeClose:{type:xt(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),Xve={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[zr]:e=>xs(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Yve=(e,t)=>{const n=ui().emit,{nextZIndex:a}=AG();let i="";const o=ep(),s=ep(),u=ke(!1),l=ke(!1),c=ke(!1),f=ke(e.zIndex||a());let d,p;const v=TG("namespace",Yae),h=ce(()=>{const ee={},J=`--${v.value}-dialog`;return e.fullscreen||(e.top&&(ee[`${J}-margin-top`]=e.top),e.width&&(ee[`${J}-width`]=Gl(e.width))),ee}),g=ce(()=>e.alignCenter?{display:"flex"}:{});function m(){n("opened")}function y(){n("closed"),n(zr,!1),e.destroyOnClose&&(c.value=!1)}function x(){n("close")}function b(){p==null||p(),d==null||d(),e.openDelay&&e.openDelay>0?{stop:d}=x8(()=>C(),e.openDelay):C()}function E(){d==null||d(),p==null||p(),e.closeDelay&&e.closeDelay>0?{stop:p}=x8(()=>_(),e.closeDelay):_()}function S(){function ee(J){J||(l.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(ee):E()}function w(){e.closeOnClickModal&&S()}function C(){bn&&(u.value=!0)}function _(){u.value=!1}function O(){n("openAutoFocus")}function P(){n("closeAutoFocus")}function F(ee){var J;((J=ee.detail)==null?void 0:J.focusReason)==="pointer"&&ee.preventDefault()}e.lockScroll&&tfe(u);function q(){e.closeOnPressEscape&&S()}return Ge(()=>e.modelValue,ee=>{ee?(l.value=!1,b(),c.value=!0,f.value=e.zIndex?f.value++:a(),mt(()=>{n("open"),t.value&&(t.value.scrollTop=0)})):u.value&&E()}),Ge(()=>e.fullscreen,ee=>{t.value&&(ee?(i=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=i)}),$r(()=>{e.modelValue&&(u.value=!0,c.value=!0,b())}),{afterEnter:m,afterLeave:y,beforeLeave:x,handleClose:S,onModalClick:w,close:E,doClose:_,onOpenAutoFocus:O,onCloseAutoFocus:P,onCloseRequested:q,onFocusoutPrevented:F,titleId:o,bodyId:s,closed:l,style:h,overlayDialogStyle:g,rendered:c,visible:u,zIndex:f}},Jve=["aria-label","aria-labelledby","aria-describedby"],Zve=Fe({name:"ElDialog",inheritAttrs:!1}),Qve=Fe({...Zve,props:qve,emits:Xve,setup(e,{expose:t}){const r=e,n=n0();tb({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},ce(()=>!!n.title)),tb({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},ce(()=>!!r.customClass));const a=ct("dialog"),i=ke(),o=ke(),s=ke(),{visible:u,titleId:l,bodyId:c,style:f,overlayDialogStyle:d,rendered:p,zIndex:v,afterEnter:h,afterLeave:g,beforeLeave:m,handleClose:y,onModalClick:x,onOpenAutoFocus:b,onCloseAutoFocus:E,onCloseRequested:S,onFocusoutPrevented:w}=Yve(r,i);on(aq,{dialogRef:i,headerRef:o,bodyId:c,ns:a,rendered:p,style:f});const C=yK(x),_=ce(()=>r.draggable&&!r.fullscreen);return t({visible:u,dialogContentRef:s}),(O,P)=>(ge(),ze(kG,{to:"body",disabled:!O.appendToBody},[Ke(bs,{name:"dialog-fade",onAfterEnter:T(h),onAfterLeave:T(g),onBeforeLeave:T(m),persisted:""},{default:De(()=>[Ar(Ke(T(Uve),{"custom-mask-event":"",mask:O.modal,"overlay-class":O.modalClass,"z-index":T(v)},{default:De(()=>[Pe("div",{role:"dialog","aria-modal":"true","aria-label":O.title||void 0,"aria-labelledby":O.title?void 0:T(l),"aria-describedby":T(c),class:Ce(`${T(a).namespace.value}-overlay-dialog`),style:pr(T(d)),onClick:P[0]||(P[0]=(...F)=>T(C).onClick&&T(C).onClick(...F)),onMousedown:P[1]||(P[1]=(...F)=>T(C).onMousedown&&T(C).onMousedown(...F)),onMouseup:P[2]||(P[2]=(...F)=>T(C).onMouseup&&T(C).onMouseup(...F))},[Ke(T(NK),{loop:"",trapped:T(u),"focus-start-el":"container",onFocusAfterTrapped:T(b),onFocusAfterReleased:T(E),onFocusoutPrevented:T(w),onReleaseRequested:T(S)},{default:De(()=>[T(p)?(ge(),ze(Kve,hs({key:0,ref_key:"dialogContentRef",ref:s},O.$attrs,{"custom-class":O.customClass,center:O.center,"align-center":O.alignCenter,"close-icon":O.closeIcon,draggable:T(_),fullscreen:O.fullscreen,"show-close":O.showClose,title:O.title,onClose:T(y)}),OG({header:De(()=>[O.$slots.title?tt(O.$slots,"title",{key:1}):tt(O.$slots,"header",{key:0,close:T(y),titleId:T(l),titleClass:T(a).e("title")})]),default:De(()=>[tt(O.$slots,"default")]),_:2},[O.$slots.footer?{name:"footer",fn:De(()=>[tt(O.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):We("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,Jve)]),_:3},8,["mask","overlay-class","z-index"]),[[ta,T(u)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var ege=gt(Qve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const tge=ua(ege),oq=Symbol("ElSelectGroup"),cm=Symbol("ElSelect");function rge(e,t){const r=Nt(cm),n=Nt(oq,{disabled:!1}),a=ce(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),i=ce(()=>r.props.multiple?f(r.props.modelValue,e.value):d(e.value,r.props.modelValue)),o=ce(()=>{if(r.props.multiple){const h=r.props.modelValue||[];return!i.value&&h.length>=r.props.multipleLimit&&r.props.multipleLimit>0}else return!1}),s=ce(()=>e.label||(a.value?"":e.value)),u=ce(()=>e.value||e.label||""),l=ce(()=>e.disabled||t.groupDisabled||o.value),c=ui(),f=(h=[],g)=>{if(a.value){const m=r.props.valueKey;return h&&h.some(y=>Mf(wo(y,m))===wo(g,m))}else return h&&h.includes(g)},d=(h,g)=>{if(a.value){const{valueKey:m}=r.props;return wo(h,m)===wo(g,m)}else return h===g},p=()=>{!e.disabled&&!n.disabled&&(r.hoverIndex=r.optionsArray.indexOf(c.proxy))};Ge(()=>s.value,()=>{!e.created&&!r.props.remote&&r.setSelected()}),Ge(()=>e.value,(h,g)=>{const{remote:m,valueKey:y}=r.props;if(Object.is(h,g)||(r.onOptionDestroy(g,c.proxy),r.onOptionCreate(c.proxy)),!e.created&&!m){if(y&&typeof h=="object"&&typeof g=="object"&&h[y]===g[y])return;r.setSelected()}}),Ge(()=>n.disabled,()=>{t.groupDisabled=n.disabled},{immediate:!0});const{queryChange:v}=Mf(r);return Ge(v,h=>{const{query:g}=T(h),m=new RegExp(ole(g),"i");t.visible=m.test(s.value)||e.created,t.visible||r.filteredOptionsCount--},{immediate:!0}),{select:r,currentLabel:s,currentValue:u,itemSelected:i,isDisabled:l,hoverItem:p}}const nge=Fe({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=ct("select"),r=Pr({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:n,itemSelected:a,isDisabled:i,select:o,hoverItem:s}=rge(e,r),{visible:u,hover:l}=Os(r),c=ui().proxy;o.onOptionCreate(c),li(()=>{const d=c.value,{selected:p}=o,h=(o.props.multiple?p:[p]).some(g=>g.value===c.value);mt(()=>{o.cachedOptions.get(d)===c&&!h&&o.cachedOptions.delete(d)}),o.onOptionDestroy(d,c)});function f(){e.disabled!==!0&&r.groupDisabled!==!0&&o.handleOptionSelect(c)}return{ns:t,currentLabel:n,itemSelected:a,isDisabled:i,select:o,hoverItem:s,visible:u,hover:l,selectOptionClick:f,states:r}}});function age(e,t,r,n,a,i){return Ar((ge(),Oe("li",{class:Ce([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=nn((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[tt(e.$slots,"default",{},()=>[Pe("span",null,rr(e.currentLabel),1)])],34)),[[ta,e.visible]])}var SD=gt(nge,[["render",age],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const ige=Fe({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Nt(cm),t=ct("select"),r=ce(()=>e.props.popperClass),n=ce(()=>e.props.multiple),a=ce(()=>e.props.fitInputWidth),i=ke("");function o(){var s;i.value=`${(s=e.selectWrapper)==null?void 0:s.offsetWidth}px`}return $r(()=>{o(),$p(e.selectWrapper,o)}),{ns:t,minWidth:i,popperClass:r,isMultiple:n,isFitInputWidth:a}}});function oge(e,t,r,n,a,i){return ge(),Oe("div",{class:Ce([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:pr({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[tt(e.$slots,"default")],6)}var sge=gt(ige,[["render",oge],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function uge(e){const{t}=im();return Pr({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1})}let yS=!1;const lge=(e,t,r)=>{const{t:n}=im(),a=ct("select");tb({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},ce(()=>e.suffixTransition===!1));const i=ke(null),o=ke(null),s=ke(null),u=ke(null),l=ke(null),c=ke(null),f=ke(null),d=ke(-1),p=ps({query:""}),v=ps(""),h=ke([]);let g=0;const{form:m,formItem:y}=a0(),x=ce(()=>!e.filterable||e.multiple||!t.visible),b=ce(()=>e.disabled||(m==null?void 0:m.disabled)),E=ce(()=>{const xe=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!b.value&&t.inputHovering&&xe}),S=ce(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),w=ce(()=>a.is("reverse",S.value&&t.visible&&e.suffixTransition)),C=ce(()=>e.remote?300:0),_=ce(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||n("el.select.noMatch"):t.options.size===0?e.noDataText||n("el.select.noData"):null),O=ce(()=>{const xe=Array.from(t.options.values()),_e=[];return h.value.forEach(Ve=>{const ft=xe.findIndex(Or=>Or.currentLabel===Ve);ft>-1&&_e.push(xe[ft])}),_e.length?_e:xe}),P=ce(()=>Array.from(t.cachedOptions.values())),F=ce(()=>{const xe=O.value.filter(_e=>!_e.created).some(_e=>_e.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!xe}),q=lu(),ee=ce(()=>["small"].includes(q.value)?"small":"default"),J=ce({get(){return t.visible&&_.value!==!1},set(xe){t.visible=xe}});Ge([()=>b.value,()=>q.value,()=>m==null?void 0:m.size],()=>{mt(()=>{Z()})}),Ge(()=>e.placeholder,xe=>{t.cachedPlaceHolder=t.currentPlaceholder=xe,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),Ge(()=>e.modelValue,(xe,_e)=>{e.multiple&&(Z(),xe&&xe.length>0||o.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",V(t.query))),de(),e.filterable&&!e.multiple&&(t.inputLength=20),!Zx(xe,_e)&&e.validateEvent&&(y==null||y.validate("change").catch(Ve=>void 0))},{flush:"post",deep:!0}),Ge(()=>t.visible,xe=>{var _e,Ve,ft,Or,dr;xe?((Ve=(_e=u.value)==null?void 0:_e.updatePopper)==null||Ve.call(_e),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(Or=(ft=s.value)==null?void 0:ft.focus)==null||Or.call(ft),e.multiple?(dr=o.value)==null||dr.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),V(t.query),!e.multiple&&!e.remote&&(p.value.query="",mh(p),mh(v)))):(e.filterable&&(Tn(e.filterMethod)&&e.filterMethod(""),Tn(e.remoteMethod)&&e.remoteMethod("")),o.value&&o.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,A(),mt(()=>{o.value&&o.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),r.emit("visible-change",xe)}),Ge(()=>t.options.entries(),()=>{var xe,_e,Ve;if(!bn)return;(_e=(xe=u.value)==null?void 0:xe.updatePopper)==null||_e.call(xe),e.multiple&&Z();const ft=((Ve=c.value)==null?void 0:Ve.querySelectorAll("input"))||[];Array.from(ft).includes(document.activeElement)||de(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&W()},{flush:"post"}),Ge(()=>t.hoverIndex,xe=>{Fn(xe)&&xe>-1?d.value=O.value[xe]||{}:d.value={},O.value.forEach(_e=>{_e.hover=d.value===_e})});const Z=()=>{mt(()=>{var xe,_e;if(!i.value)return;const Ve=i.value.$el.querySelector("input");g=g||(Ve.clientHeight>0?Ve.clientHeight+2:0);const ft=l.value,Or=qce(q.value||(m==null?void 0:m.size)),dr=q.value||Or===g||g<=0?Or:g;!(Ve.offsetParent===null)&&(Ve.style.height=`${(t.selected.length===0?dr:Math.max(ft?ft.clientHeight+(ft.clientHeight>dr?6:0):0,dr))-2}px`),t.visible&&_.value!==!1&&((_e=(xe=u.value)==null?void 0:xe.updatePopper)==null||_e.call(xe))})},V=async xe=>{if(!(t.previousQuery===xe||t.isOnComposition)){if(t.previousQuery===null&&(Tn(e.filterMethod)||Tn(e.remoteMethod))){t.previousQuery=xe;return}t.previousQuery=xe,mt(()=>{var _e,Ve;t.visible&&((Ve=(_e=u.value)==null?void 0:_e.updatePopper)==null||Ve.call(_e))}),t.hoverIndex=-1,e.multiple&&e.filterable&&mt(()=>{const _e=o.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,_e):_e,ie(),Z()}),e.remote&&Tn(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(xe)):Tn(e.filterMethod)?(e.filterMethod(xe),mh(v)):(t.filteredOptionsCount=t.optionsCount,p.value.query=xe,mh(p),mh(v)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await mt(),W())}},ie=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=o.value.value?"":t.cachedPlaceHolder)},W=()=>{const xe=O.value.filter(ft=>ft.visible&&!ft.disabled&&!ft.states.groupDisabled),_e=xe.find(ft=>ft.created),Ve=xe[0];t.hoverIndex=je(O.value,_e||Ve)},de=()=>{var xe;if(e.multiple)t.selectedLabel="";else{const Ve=M(e.modelValue);(xe=Ve.props)!=null&&xe.created?(t.createdLabel=Ve.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=Ve.currentLabel,t.selected=Ve,e.filterable&&(t.query=t.selectedLabel);return}const _e=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Ve=>{_e.push(M(Ve))}),t.selected=_e,mt(()=>{Z()})},M=xe=>{let _e;const Ve=uS(xe).toLowerCase()==="object",ft=uS(xe).toLowerCase()==="null",Or=uS(xe).toLowerCase()==="undefined";for(let Zt=t.cachedOptions.size-1;Zt>=0;Zt--){const tr=P.value[Zt];if(Ve?wo(tr.value,e.valueKey)===wo(xe,e.valueKey):tr.value===xe){_e={value:xe,currentLabel:tr.currentLabel,isDisabled:tr.isDisabled};break}}if(_e)return _e;const dr=Ve?xe.label:!ft&&!Or?xe:"",Er={value:xe,currentLabel:dr};return e.multiple&&(Er.hitState=!1),Er},A=()=>{setTimeout(()=>{const xe=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(_e=>O.value.findIndex(Ve=>wo(Ve,xe)===wo(_e,xe)))):t.hoverIndex=-1:t.hoverIndex=O.value.findIndex(_e=>Ze(_e)===Ze(t.selected))},300)},N=()=>{var xe,_e;I(),(_e=(xe=u.value)==null?void 0:xe.updatePopper)==null||_e.call(xe),e.multiple&&Z()},I=()=>{var xe;t.inputWidth=(xe=i.value)==null?void 0:xe.$el.offsetWidth},L=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,V(t.query))},Y=nP(()=>{L()},C.value),Q=nP(xe=>{V(xe.target.value)},C.value),le=xe=>{Zx(e.modelValue,xe)||r.emit(uD,xe)},ve=xe=>{if(xe.code!==Ga.delete){if(xe.target.value.length<=0&&!ut()){const _e=e.modelValue.slice();_e.pop(),r.emit(zr,_e),le(_e)}xe.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},he=(xe,_e)=>{const Ve=t.selected.indexOf(_e);if(Ve>-1&&!b.value){const ft=e.modelValue.slice();ft.splice(Ve,1),r.emit(zr,ft),le(ft),r.emit("remove-tag",_e.value)}xe.stopPropagation()},fe=xe=>{xe.stopPropagation();const _e=e.multiple?[]:"";if(!In(_e))for(const Ve of t.selected)Ve.isDisabled&&_e.push(Ve.value);r.emit(zr,_e),le(_e),t.hoverIndex=-1,t.visible=!1,r.emit("clear")},z=xe=>{var _e;if(e.multiple){const Ve=(e.modelValue||[]).slice(),ft=je(Ve,xe.value);ft>-1?Ve.splice(ft,1):(e.multipleLimit<=0||Ve.length<e.multipleLimit)&&Ve.push(xe.value),r.emit(zr,Ve),le(Ve),xe.created&&(t.query="",V(""),t.inputLength=20),e.filterable&&((_e=o.value)==null||_e.focus())}else r.emit(zr,xe.value),le(xe.value),t.visible=!1;Te(),!t.visible&&mt(()=>{Ne(xe)})},je=(xe=[],_e)=>{if(!zo(_e))return xe.indexOf(_e);const Ve=e.valueKey;let ft=-1;return xe.some((Or,dr)=>Mf(wo(Or,Ve))===wo(_e,Ve)?(ft=dr,!0):!1),ft},Te=()=>{const xe=o.value||i.value;xe&&(xe==null||xe.focus())},Ne=xe=>{var _e,Ve,ft,Or,dr;const Er=Array.isArray(xe)?xe[0]:xe;let Zt=null;if(Er!=null&&Er.value){const tr=O.value.filter(ci=>ci.value===Er.value);tr.length>0&&(Zt=tr[0].$el)}if(u.value&&Zt){const tr=(Or=(ft=(Ve=(_e=u.value)==null?void 0:_e.popperRef)==null?void 0:Ve.contentRef)==null?void 0:ft.querySelector)==null?void 0:Or.call(ft,`.${a.be("dropdown","wrap")}`);tr&&lle(tr,Zt)}(dr=f.value)==null||dr.handleScroll()},He=xe=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(xe.value,xe),t.cachedOptions.set(xe.value,xe)},we=(xe,_e)=>{t.options.get(xe)===_e&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(xe))},Je=xe=>{xe.code!==Ga.backspace&&ut(!1),t.inputLength=o.value.value.length*15+20,Z()},ut=xe=>{if(!Array.isArray(t.selected))return;const _e=t.selected[t.selected.length-1];if(_e)return xe===!0||xe===!1?(_e.hitState=xe,xe):(_e.hitState=!_e.hitState,_e.hitState)},_t=xe=>{const _e=xe.target.value;if(xe.type==="compositionend")t.isOnComposition=!1,mt(()=>V(_e));else{const Ve=_e[_e.length-1]||"";t.isOnComposition=!aK(Ve)}},Qe=()=>{mt(()=>Ne(t.selected))},cr=xe=>{yS?yS=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),r.emit("focus",xe))},zt=()=>{var xe,_e,Ve;t.visible=!1,(xe=i.value)==null||xe.blur(),(Ve=(_e=s.value)==null?void 0:_e.blur)==null||Ve.call(_e)},Se=xe=>{setTimeout(()=>{var _e;if((_e=u.value)!=null&&_e.isFocusInsideContent()){yS=!0;return}t.visible&&Rt(),r.emit("blur",xe)})},at=xe=>{fe(xe)},Rt=()=>{t.visible=!1},fr=xe=>{t.visible&&(xe.preventDefault(),xe.stopPropagation(),t.visible=!1)},It=xe=>{var _e;xe&&!t.mouseEnter||b.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!u.value||!u.value.isFocusInsideContent())&&(t.visible=!t.visible),t.visible&&((_e=o.value||i.value)==null||_e.focus()))},Dr=()=>{t.visible?O.value[t.hoverIndex]&&z(O.value[t.hoverIndex]):It()},Ze=xe=>zo(xe.value)?wo(xe.value,e.valueKey):xe.value,wt=ce(()=>O.value.filter(xe=>xe.visible).every(xe=>xe.disabled)),Vt=ce(()=>t.selected.slice(0,e.maxCollapseTags)),Ft=ce(()=>t.selected.slice(e.maxCollapseTags)),ir=xe=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!wt.value){xe==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):xe==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const _e=O.value[t.hoverIndex];(_e.disabled===!0||_e.states.groupDisabled===!0||!_e.visible)&&ir(xe),mt(()=>Ne(d.value))}};return{optionList:h,optionsArray:O,selectSize:q,handleResize:N,debouncedOnInputChange:Y,debouncedQueryChange:Q,deletePrevTag:ve,deleteTag:he,deleteSelected:fe,handleOptionSelect:z,scrollToOption:Ne,readonly:x,resetInputHeight:Z,showClose:E,iconComponent:S,iconReverse:w,showNewOption:F,collapseTagSize:ee,setSelected:de,managePlaceholder:ie,selectDisabled:b,emptyText:_,toggleLastOptionHitState:ut,resetInputState:Je,handleComposition:_t,onOptionCreate:He,onOptionDestroy:we,handleMenuEnter:Qe,handleFocus:cr,blur:zt,handleBlur:Se,handleClearClick:at,handleClose:Rt,handleKeydownEscape:fr,toggleMenu:It,selectOption:Dr,getValueKey:Ze,navigateOptions:ir,dropMenuVisible:J,queryChange:p,groupQueryChange:v,showTagList:Vt,collapseTagList:Ft,reference:i,input:o,iOSInput:s,tooltipRef:u,tags:l,selectWrapper:c,scrollbar:f,handleMouseEnter:()=>{t.mouseEnter=!0},handleMouseLeave:()=>{t.mouseEnter=!1}}};var cge=Fe({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:r}){let n=[];function a(i,o){if(i.length!==o.length)return!1;for(const[s]of i.entries())if(i[s]!=o[s])return!1;return!0}return()=>{var i,o;const s=(i=t.default)==null?void 0:i.call(t),u=[];function l(c){Array.isArray(c)&&c.forEach(f=>{var d,p,v,h;const g=(d=(f==null?void 0:f.type)||{})==null?void 0:d.name;g==="ElOptionGroup"?l(!In(f.children)&&!Array.isArray(f.children)&&Tn((p=f.children)==null?void 0:p.default)?(v=f.children)==null?void 0:v.default():f.children):g==="ElOption"?u.push((h=f.props)==null?void 0:h.label):Array.isArray(f.children)&&l(f.children)})}return s.length&&l((o=s[0])==null?void 0:o.children),a(u,n)||(n=u,r("update-options",u)),s}}});const UP="ElSelect",fge=Fe({name:UP,componentName:UP,components:{ElInput:mD,ElSelectMenu:sge,ElOption:SD,ElOptions:cge,ElTag:lve,ElScrollbar:Mde,ElTooltip:$pe,ElIcon:Xa},directives:{ClickOutside:mhe},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:Xce},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:ED.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:su,default:oD},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:su,default:vle},tagType:{...ZK.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:LE,default:"bottom-start"}},emits:[zr,uD,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const r=ct("select"),n=ct("input"),{t:a}=im(),i=uge(e),{optionList:o,optionsArray:s,selectSize:u,readonly:l,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:p,deletePrevTag:v,deleteTag:h,deleteSelected:g,handleOptionSelect:m,scrollToOption:y,setSelected:x,resetInputHeight:b,managePlaceholder:E,showClose:S,selectDisabled:w,iconComponent:C,iconReverse:_,showNewOption:O,emptyText:P,toggleLastOptionHitState:F,resetInputState:q,handleComposition:ee,onOptionCreate:J,onOptionDestroy:Z,handleMenuEnter:V,handleFocus:ie,blur:W,handleBlur:de,handleClearClick:M,handleClose:A,handleKeydownEscape:N,toggleMenu:I,selectOption:L,getValueKey:Y,navigateOptions:Q,dropMenuVisible:le,reference:ve,input:he,iOSInput:fe,tooltipRef:z,tags:je,selectWrapper:Te,scrollbar:Ne,queryChange:He,groupQueryChange:we,handleMouseEnter:Je,handleMouseLeave:ut,showTagList:_t,collapseTagList:Qe}=lge(e,i,t),{focus:cr}=efe(ve),{inputWidth:zt,selected:Se,inputLength:at,filteredOptionsCount:Rt,visible:fr,selectedLabel:It,hoverIndex:Dr,query:Ze,inputHovering:wt,currentPlaceholder:Vt,menuVisibleOnFocus:Ft,isOnComposition:ir,options:An,cachedOptions:qo,optionsCount:xe,prefixWidth:_e}=Os(i),Ve=ce(()=>{const Zt=[r.b()],tr=T(u);return tr&&Zt.push(r.m(tr)),e.disabled&&Zt.push(r.m("disabled")),Zt}),ft=ce(()=>({maxWidth:`${T(zt)-32}px`,width:"100%"})),Or=ce(()=>({maxWidth:`${T(zt)>123?T(zt)-123:T(zt)-75}px`}));on(cm,Pr({props:e,options:An,optionsArray:s,cachedOptions:qo,optionsCount:xe,filteredOptionsCount:Rt,hoverIndex:Dr,handleOptionSelect:m,onOptionCreate:J,onOptionDestroy:Z,selectWrapper:Te,selected:Se,setSelected:x,queryChange:He,groupQueryChange:we})),$r(()=>{i.cachedPlaceHolder=Vt.value=e.placeholder||(()=>a("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(Vt.value=""),$p(Te,c),e.remote&&e.multiple&&b(),mt(()=>{const Zt=ve.value&&ve.value.$el;if(Zt&&(zt.value=Zt.getBoundingClientRect().width,t.slots.prefix)){const tr=Zt.querySelector(`.${n.e("prefix")}`);_e.value=Math.max(tr.getBoundingClientRect().width+11,30)}}),x()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(zr,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(zr,"");const dr=ce(()=>{var Zt,tr;return(tr=(Zt=z.value)==null?void 0:Zt.popperRef)==null?void 0:tr.contentRef});return{isIOS:Jae,onOptionsRendered:Zt=>{o.value=Zt},prefixWidth:_e,selectSize:u,readonly:l,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:p,deletePrevTag:v,deleteTag:h,deleteSelected:g,handleOptionSelect:m,scrollToOption:y,inputWidth:zt,selected:Se,inputLength:at,filteredOptionsCount:Rt,visible:fr,selectedLabel:It,hoverIndex:Dr,query:Ze,inputHovering:wt,currentPlaceholder:Vt,menuVisibleOnFocus:Ft,isOnComposition:ir,options:An,resetInputHeight:b,managePlaceholder:E,showClose:S,selectDisabled:w,iconComponent:C,iconReverse:_,showNewOption:O,emptyText:P,toggleLastOptionHitState:F,resetInputState:q,handleComposition:ee,handleMenuEnter:V,handleFocus:ie,blur:W,handleBlur:de,handleClearClick:M,handleClose:A,handleKeydownEscape:N,toggleMenu:I,selectOption:L,getValueKey:Y,navigateOptions:Q,dropMenuVisible:le,focus:cr,reference:ve,input:he,iOSInput:fe,tooltipRef:z,popperPaneRef:dr,tags:je,selectWrapper:Te,scrollbar:Ne,wrapperKls:Ve,selectTagsStyle:ft,nsSelect:r,tagTextStyle:Or,handleMouseEnter:Je,handleMouseLeave:ut,showTagList:_t,collapseTagList:Qe}}}),dge=["disabled","autocomplete"],pge=["disabled"],hge={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function vge(e,t,r,n,a,i){const o=Fa("el-tag"),s=Fa("el-tooltip"),u=Fa("el-icon"),l=Fa("el-input"),c=Fa("el-option"),f=Fa("el-options"),d=Fa("el-scrollbar"),p=Fa("el-select-menu"),v=Zae("click-outside");return Ar((ge(),Oe("div",{ref:"selectWrapper",class:Ce(e.wrapperKls),onMouseenter:t[21]||(t[21]=(...h)=>e.handleMouseEnter&&e.handleMouseEnter(...h)),onMouseleave:t[22]||(t[22]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h)),onClick:t[23]||(t[23]=nn((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"]))},[Ke(s,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:De(()=>[Pe("div",{class:"select-trigger",onMouseenter:t[19]||(t[19]=h=>e.inputHovering=!0),onMouseleave:t[20]||(t[20]=h=>e.inputHovering=!1)},[e.multiple?(ge(),Oe("div",{key:0,ref:"tags",class:Ce([e.nsSelect.e("tags"),e.nsSelect.is("disabled",e.selectDisabled)]),style:pr(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(ge(),ze(bs,{key:0,onAfterLeave:e.resetInputHeight},{default:De(()=>[Pe("span",{class:Ce([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(ge(!0),Oe(xn,null,xl(e.showTagList,h=>(ge(),ze(o,{key:e.getValueKey(h),closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,hit:h.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,h)},{default:De(()=>[Pe("span",{class:Ce(e.nsSelect.e("tags-text")),style:pr(e.tagTextStyle)},rr(h.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(ge(),ze(o,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:De(()=>[e.collapseTagsTooltip?(ge(),ze(s,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:De(()=>[Pe("span",{class:Ce(e.nsSelect.e("tags-text"))},"+ "+rr(e.selected.length-e.maxCollapseTags),3)]),content:De(()=>[Pe("div",{class:Ce(e.nsSelect.e("collapse-tags"))},[(ge(!0),Oe(xn,null,xl(e.collapseTagList,h=>(ge(),Oe("div",{key:e.getValueKey(h),class:Ce(e.nsSelect.e("collapse-tag"))},[Ke(o,{class:"in-tooltip",closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,hit:h.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:g=>e.deleteTag(g,h)},{default:De(()=>[Pe("span",{class:Ce(e.nsSelect.e("tags-text")),style:pr({maxWidth:e.inputWidth-75+"px"})},rr(h.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(ge(),Oe("span",{key:1,class:Ce(e.nsSelect.e("tags-text"))},"+ "+rr(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):We("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):We("v-if",!0),e.collapseTags?We("v-if",!0):(ge(),ze(bs,{key:1,onAfterLeave:e.resetInputHeight},{default:De(()=>[Pe("span",{class:Ce([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}]),style:pr(e.prefixWidth&&e.selected.length?{marginLeft:`${e.prefixWidth}px`}:"")},[(ge(!0),Oe(xn,null,xl(e.selected,h=>(ge(),ze(o,{key:e.getValueKey(h),closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,hit:h.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,h)},{default:De(()=>[Pe("span",{class:Ce(e.nsSelect.e("tags-text")),style:pr({maxWidth:e.inputWidth-75+"px"})},rr(h.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),e.filterable&&!e.selectDisabled?Ar((ge(),Oe("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=h=>e.query=h),type:"text",class:Ce([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.is("disabled",e.selectDisabled)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:pr({marginLeft:`${e.prefixWidth}px`,flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[1]||(t[1]=(...h)=>e.handleFocus&&e.handleFocus(...h)),onBlur:t[2]||(t[2]=(...h)=>e.handleBlur&&e.handleBlur(...h)),onKeyup:t[3]||(t[3]=(...h)=>e.managePlaceholder&&e.managePlaceholder(...h)),onKeydown:[t[4]||(t[4]=(...h)=>e.resetInputState&&e.resetInputState(...h)),t[5]||(t[5]=go(nn(h=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=go(nn(h=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=go((...h)=>e.handleKeydownEscape&&e.handleKeydownEscape(...h),["esc"])),t[8]||(t[8]=go(nn((...h)=>e.selectOption&&e.selectOption(...h),["stop","prevent"]),["enter"])),t[9]||(t[9]=go((...h)=>e.deletePrevTag&&e.deletePrevTag(...h),["delete"])),t[10]||(t[10]=go(h=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...h)=>e.handleComposition&&e.handleComposition(...h)),onCompositionupdate:t[12]||(t[12]=(...h)=>e.handleComposition&&e.handleComposition(...h)),onCompositionend:t[13]||(t[13]=(...h)=>e.handleComposition&&e.handleComposition(...h)),onInput:t[14]||(t[14]=(...h)=>e.debouncedQueryChange&&e.debouncedQueryChange(...h))},null,46,dge)),[[Qae,e.query]]):We("v-if",!0)],6)):We("v-if",!0),We(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(ge(),Oe("input",{key:1,ref:"iOSInput",class:Ce([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.em("input","iOS")]),disabled:e.selectDisabled,type:"text"},null,10,pge)):We("v-if",!0),Ke(l,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[15]||(t[15]=h=>e.selectedLabel=h),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:Ce([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[16]||(t[16]=go(nn(h=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[17]||(t[17]=go(nn(h=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),go(nn(e.selectOption,["stop","prevent"]),["enter"]),go(e.handleKeydownEscape,["esc"]),t[18]||(t[18]=go(h=>e.visible=!1,["tab"]))]},OG({suffix:De(()=>[e.iconComponent&&!e.showClose?(ge(),ze(u,{key:0,class:Ce([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:De(()=>[(ge(),ze(Wn(e.iconComponent)))]),_:1},8,["class"])):We("v-if",!0),e.showClose&&e.clearIcon?(ge(),ze(u,{key:1,class:Ce([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:De(()=>[(ge(),ze(Wn(e.clearIcon)))]),_:1},8,["class","onClick"])):We("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:De(()=>[Pe("div",hge,[tt(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:De(()=>[Ke(p,null,{default:De(()=>[Ar(Ke(d,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:Ce([e.nsSelect.is("empty",!e.allowCreate&&!!e.query&&e.filteredOptionsCount===0)])},{default:De(()=>[e.showNewOption?(ge(),ze(c,{key:0,value:e.query,created:!0},null,8,["value"])):We("v-if",!0),Ke(f,{onUpdateOptions:e.onOptionsRendered},{default:De(()=>[tt(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[ta,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(ge(),Oe(xn,{key:0},[e.$slots.empty?tt(e.$slots,"empty",{key:0}):(ge(),Oe("p",{key:1,class:Ce(e.nsSelect.be("dropdown","empty"))},rr(e.emptyText),3))],64)):We("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[v,e.handleClose,e.popperPaneRef]])}var gge=gt(fge,[["render",vge],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const mge=Fe({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=ct("select"),r=ke(!0),n=ui(),a=ke([]);on(oq,Pr({...Os(e)}));const i=Nt(cm);$r(()=>{a.value=o(n.subTree)});const o=u=>{const l=[];return Array.isArray(u.children)&&u.children.forEach(c=>{var f;c.type&&c.type.name==="ElOption"&&c.component&&c.component.proxy?l.push(c.component.proxy):(f=c.children)!=null&&f.length&&l.push(...o(c))}),l},{groupQueryChange:s}=Mf(i);return Ge(s,()=>{r.value=a.value.some(u=>u.visible===!0)},{flush:"post"}),{visible:r,ns:t}}});function yge(e,t,r,n,a,i){return Ar((ge(),Oe("ul",{class:Ce(e.ns.be("group","wrap"))},[Pe("li",{class:Ce(e.ns.be("group","title"))},rr(e.label),3),Pe("li",null,[Pe("ul",{class:Ce(e.ns.b("group"))},[tt(e.$slots,"default")],2)])],2)),[[ta,e.visible]])}var sq=gt(mge,[["render",yge],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const I8=ua(gge,{Option:SD,OptionGroup:sq}),HP=lo(SD);lo(sq);const kd="$treeNodeId",zP=function(e,t){!t||t[kd]||Object.defineProperty(t,kd,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},CD=function(e,t){return e?t[e]:t[kd]},R8=(e,t,r)=>{const n=e.value.currentNode;r();const a=e.value.currentNode;n!==a&&t("current-change",a?a.data:null,a)},L8=e=>{let t=!0,r=!0,n=!0;for(let a=0,i=e.length;a<i;a++){const o=e[a];(o.checked!==!0||o.indeterminate)&&(t=!1,o.disabled||(n=!1)),(o.checked!==!1||o.indeterminate)&&(r=!1)}return{all:t,none:r,allWithoutDisable:n,half:!t&&!r}},rx=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:r,half:n}=L8(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):n?(e.checked=!1,e.indeterminate=!0):r&&(e.checked=!1,e.indeterminate=!1);const a=e.parent;!a||a.level===0||e.store.checkStrictly||rx(a)},Ay=function(e,t){const r=e.store.props,n=e.data||{},a=r[t];if(typeof a=="function")return a(n,e);if(typeof a=="string")return n[a];if(typeof a>"u"){const i=n[t];return i===void 0?"":i}};let xge=0,M8=class nx{constructor(t){this.id=xge++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const r in t)b8(t,r)&&(this[r]=t[r]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const r=t.props;if(r&&typeof r.isLeaf<"u"){const i=Ay(this,"isLeaf");typeof i=="boolean"&&(this.isLeafByUser=i)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||zP(this,this.data),!this.data)return;const n=t.defaultExpandedKeys,a=t.key;a&&n&&n.includes(this.key)&&this.expand(null,t.autoExpandParent),a&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||zP(this,t),this.data=t,this.childNodes=[];let r;this.level===0&&Array.isArray(this.data)?r=this.data:r=Ay(this,"children")||[];for(let n=0,a=r.length;n<a;n++)this.insertChild({data:r[n]})}get label(){return Ay(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return Ay(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const r=t.childNodes.indexOf(this);if(r>-1)return t.childNodes[r+1]}return null}get previousSibling(){const t=this.parent;if(t){const r=t.childNodes.indexOf(this);if(r>-1)return r>0?t.childNodes[r-1]:null}return null}contains(t,r=!0){return(this.childNodes||[]).some(n=>n===t||r&&n.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,r,n){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof nx)){if(!n){const a=this.getChildren(!0);a.includes(t.data)||(typeof r>"u"||r<0?a.push(t.data):a.splice(r,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Pr(new nx(t)),t instanceof nx&&t.initialize()}t.level=this.level+1,typeof r>"u"||r<0?this.childNodes.push(t):this.childNodes.splice(r,0,t),this.updateLeafState()}insertBefore(t,r){let n;r&&(n=this.childNodes.indexOf(r)),this.insertChild(t,n)}insertAfter(t,r){let n;r&&(n=this.childNodes.indexOf(r),n!==-1&&(n+=1)),this.insertChild(t,n)}removeChild(t){const r=this.getChildren()||[],n=r.indexOf(t.data);n>-1&&r.splice(n,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){let r=null;for(let n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===t){r=this.childNodes[n];break}r&&this.removeChild(r)}expand(t,r){const n=()=>{if(r){let a=this.parent;for(;a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(a=>{a.canFocus=!0})};this.shouldLoadData()?this.loadData(a=>{Array.isArray(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||rx(this),n())}):n()}doCreateChildren(t,r={}){t.forEach(n=>{this.insertChild(Object.assign({data:n},r),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,r,n,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:o,allWithoutDisable:s}=L8(this.childNodes);!this.isLeaf&&!o&&s&&(this.checked=!1,t=!1);const u=()=>{if(r){const l=this.childNodes;for(let d=0,p=l.length;d<p;d++){const v=l[d];a=a||t!==!1;const h=v.disabled?v.checked:a;v.setChecked(h,r,!0,a)}const{half:c,all:f}=L8(l);f||(this.checked=f,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{u(),rx(this)},{checked:t!==!1});return}else u()}const i=this.parent;!i||i.level===0||n||rx(i)}getChildren(t=!1){if(this.level===0)return this.data;const r=this.data;if(!r)return null;const n=this.store.props;let a="children";return n&&(a=n.children||"children"),r[a]===void 0&&(r[a]=null),t&&!r[a]&&(r[a]=[]),r[a]}updateChildren(){const t=this.getChildren()||[],r=this.childNodes.map(i=>i.data),n={},a=[];t.forEach((i,o)=>{const s=i[kd];!!s&&r.findIndex(l=>l[kd]===s)>=0?n[s]={index:o,data:i}:a.push({index:o,data:i})}),this.store.lazy||r.forEach(i=>{n[i[kd]]||this.removeChildByData(i)}),a.forEach(({index:i,data:o})=>{this.insertChild({data:o},i)}),this.updateLeafState()}loadData(t,r={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(r).length)){this.loading=!0;const n=a=>{this.childNodes=[],this.doCreateChildren(a,r),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,a)};this.store.load(this,n)}else t&&t.call(this)}};class bge{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const r in t)b8(t,r)&&(this[r]=t[r]);this.nodesMap={}}initialize(){if(this.root=new M8({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,r=>{this.root.doCreateChildren(r),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const r=this.filterNodeMethod,n=this.lazy,a=function(i){const o=i.root?i.root.childNodes:i.childNodes;if(o.forEach(s=>{s.visible=r.call(s,t,s.data,s),a(s)}),!i.visible&&o.length){let s=!0;s=!o.some(u=>u.visible),i.root?i.root.visible=s===!1:i.visible=s===!1}t&&i.visible&&!i.isLeaf&&!n&&i.expand()};a(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof M8)return t;const r=zo(t)?CD(this.key,t):t;return this.nodesMap[r]||null}insertBefore(t,r){const n=this.getNode(r);n.parent.insertBefore({data:t},n)}insertAfter(t,r){const n=this.getNode(r);n.parent.insertAfter({data:t},n)}remove(t){const r=this.getNode(t);r&&r.parent&&(r===this.currentNode&&(this.currentNode=null),r.parent.removeChild(r))}append(t,r){const n=r?this.getNode(r):this.root;n&&n.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],r=this.nodesMap;t.forEach(n=>{const a=r[n];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const r=this.key;!t||!t.data||(r?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(n=>{this.deregisterNode(n)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,r=!1){const n=[],a=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(s=>{(s.checked||r&&s.indeterminate)&&(!t||t&&s.isLeaf)&&n.push(s.data),a(s)})};return a(this),n}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(r=>(r||{})[this.key])}getHalfCheckedNodes(){const t=[],r=function(n){(n.root?n.root.childNodes:n.childNodes).forEach(i=>{i.indeterminate&&t.push(i.data),r(i)})};return r(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],r=this.nodesMap;for(const n in r)b8(r,n)&&t.push(r[n]);return t}updateChildren(t,r){const n=this.nodesMap[t];if(!n)return;const a=n.childNodes;for(let i=a.length-1;i>=0;i--){const o=a[i];this.remove(o.data)}for(let i=0,o=r.length;i<o;i++){const s=r[i];this.append(s,n.data)}}_setCheckedKeys(t,r=!1,n){const a=this._getAllNodes().sort((s,u)=>u.level-s.level),i=Object.create(null),o=Object.keys(n);a.forEach(s=>s.setChecked(!1,!1));for(let s=0,u=a.length;s<u;s++){const l=a[s],c=l.data[t].toString();if(!o.includes(c)){l.checked&&!i[c]&&l.setChecked(!1,!1);continue}let d=l.parent;for(;d&&d.level>0;)i[d.data[t]]=!0,d=d.parent;if(l.isLeaf||this.checkStrictly){l.setChecked(!0,!1);continue}if(l.setChecked(!0,!0),r){l.setChecked(!1,!1);const p=function(v){v.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),p(g)})};p(l)}}}setCheckedNodes(t,r=!1){const n=this.key,a={};t.forEach(i=>{a[(i||{})[n]]=!0}),this._setCheckedKeys(n,r,a)}setCheckedKeys(t,r=!1){this.defaultCheckedKeys=t;const n=this.key,a={};t.forEach(i=>{a[i]=!0}),this._setCheckedKeys(n,r,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(r=>{const n=this.getNode(r);n&&n.expand(null,this.autoExpandParent)})}setChecked(t,r,n){const a=this.getNode(t);a&&a.setChecked(!!r,n)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const r=this.currentNode;r&&(r.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,r=!0){const n=t[this.key],a=this.nodesMap[n];this.setCurrentNode(a),r&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,r=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const n=this.getNode(t);n&&(this.setCurrentNode(n),r&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const wge=Fe({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=ct("tree"),r=Nt("NodeInstance"),n=Nt("RootTree");return()=>{const a=e.node,{data:i,store:o}=a;return e.renderContent?e.renderContent(Co,{_self:r,node:a,data:i,store:o}):n.ctx.slots.default?n.ctx.slots.default({node:a,data:i}):Co("span",{class:t.be("node","label")},[a.label])}}});var Ege=gt(wge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function uq(e){const t=Nt("TreeNodeMap",null),r={treeNodeExpand:n=>{e.node!==n&&e.node.collapse()},children:[]};return t&&t.children.push(r),on("TreeNodeMap",r),{broadcastExpanded:n=>{if(e.accordion)for(const a of r.children)a.treeNodeExpand(n)}}}const lq=Symbol("dragEvents");function Sge({props:e,ctx:t,el$:r,dropIndicator$:n,store:a}){const i=ct("tree"),o=ke({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return on(lq,{treeNodeDragStart:({event:c,treeNode:f})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(f.node))return c.preventDefault(),!1;c.dataTransfer.effectAllowed="move";try{c.dataTransfer.setData("text/plain","")}catch(d){}o.value.draggingNode=f,t.emit("node-drag-start",f.node,c)},treeNodeDragOver:({event:c,treeNode:f})=>{const d=f,p=o.value.dropNode;p&&p.node.id!==d.node.id&&bl(p.$el,i.is("drop-inner"));const v=o.value.draggingNode;if(!v||!d)return;let h=!0,g=!0,m=!0,y=!0;typeof e.allowDrop=="function"&&(h=e.allowDrop(v.node,d.node,"prev"),y=g=e.allowDrop(v.node,d.node,"inner"),m=e.allowDrop(v.node,d.node,"next")),c.dataTransfer.dropEffect=g||h||m?"move":"none",(h||g||m)&&(p==null?void 0:p.node.id)!==d.node.id&&(p&&t.emit("node-drag-leave",v.node,p.node,c),t.emit("node-drag-enter",v.node,d.node,c)),(h||g||m)&&(o.value.dropNode=d),d.node.nextSibling===v.node&&(m=!1),d.node.previousSibling===v.node&&(h=!1),d.node.contains(v.node,!1)&&(g=!1),(v.node===d.node||v.node.contains(d.node))&&(h=!1,g=!1,m=!1);const x=d.$el.getBoundingClientRect(),b=r.value.getBoundingClientRect();let E;const S=h?g?.25:m?.45:1:-1,w=m?g?.75:h?.55:0:1;let C=-9999;const _=c.clientY-x.top;_<x.height*S?E="before":_>x.height*w?E="after":g?E="inner":E="none";const O=d.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),P=n.value;E==="before"?C=O.top-b.top:E==="after"&&(C=O.bottom-b.top),P.style.top=`${C}px`,P.style.left=`${O.right-b.left}px`,E==="inner"?Qx(d.$el,i.is("drop-inner")):bl(d.$el,i.is("drop-inner")),o.value.showDropIndicator=E==="before"||E==="after",o.value.allowDrop=o.value.showDropIndicator||y,o.value.dropType=E,t.emit("node-drag-over",v.node,d.node,c)},treeNodeDragEnd:c=>{const{draggingNode:f,dropType:d,dropNode:p}=o.value;if(c.preventDefault(),c.dataTransfer.dropEffect="move",f&&p){const v={data:f.node.data};d!=="none"&&f.node.remove(),d==="before"?p.node.parent.insertBefore(v,p.node):d==="after"?p.node.parent.insertAfter(v,p.node):d==="inner"&&p.node.insertChild(v),d!=="none"&&a.value.registerNode(v),bl(p.$el,i.is("drop-inner")),t.emit("node-drag-end",f.node,p.node,d,c),d!=="none"&&t.emit("node-drop",f.node,p.node,d,c)}f&&!p&&t.emit("node-drag-end",f.node,null,d,c),o.value.showDropIndicator=!1,o.value.draggingNode=null,o.value.dropNode=null,o.value.allowDrop=!0}}),{dragState:o}}const Cge=Fe({name:"ElTreeNode",components:{ElCollapseTransition:Cve,ElCheckbox:Hhe,NodeContent:Ege,ElIcon:Xa,Loading:sD},props:{node:{type:M8,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const r=ct("tree"),{broadcastExpanded:n}=uq(e),a=Nt("RootTree"),i=ke(!1),o=ke(!1),s=ke(null),u=ke(null),l=ke(null),c=Nt(lq),f=ui();on("NodeInstance",f),e.node.expanded&&(i.value=!0,o.value=!0);const d=a.props.children||"children";Ge(()=>{const _=e.node.data[d];return _&&[..._]},()=>{e.node.updateChildren()}),Ge(()=>e.node.indeterminate,_=>{h(e.node.checked,_)}),Ge(()=>e.node.checked,_=>{h(_,e.node.indeterminate)}),Ge(()=>e.node.expanded,_=>{mt(()=>i.value=_),_&&(o.value=!0)});const p=_=>CD(a.props.nodeKey,_.data),v=_=>{const O=e.props.class;if(!O)return{};let P;if(Tn(O)){const{data:F}=_;P=O(F,_)}else P=O;return In(P)?{[P]:!0}:P},h=(_,O)=>{(s.value!==_||u.value!==O)&&a.ctx.emit("check-change",e.node.data,_,O),s.value=_,u.value=O},g=_=>{R8(a.store,a.ctx.emit,()=>a.store.value.setCurrentNode(e.node)),a.currentNode.value=e.node,a.props.expandOnClickNode&&y(),a.props.checkOnClickNode&&!e.node.disabled&&x(null,{target:{checked:!e.node.checked}}),a.ctx.emit("node-click",e.node.data,e.node,f,_)},m=_=>{a.instance.vnode.props.onNodeContextmenu&&(_.stopPropagation(),_.preventDefault()),a.ctx.emit("node-contextmenu",_,e.node.data,e.node,f)},y=()=>{e.node.isLeaf||(i.value?(a.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,f)))},x=(_,O)=>{e.node.setChecked(O.target.checked,!a.props.checkStrictly),mt(()=>{const P=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:P.getCheckedNodes(),checkedKeys:P.getCheckedKeys(),halfCheckedNodes:P.getHalfCheckedNodes(),halfCheckedKeys:P.getHalfCheckedKeys()})})};return{ns:r,node$:l,tree:a,expanded:i,childNodeRendered:o,oldChecked:s,oldIndeterminate:u,getNodeKey:p,getNodeClass:v,handleSelectChange:h,handleClick:g,handleContextMenu:m,handleExpandIconClick:y,handleCheckChange:x,handleChildNodeExpand:(_,O,P)=>{n(O),a.ctx.emit("node-expand",_,O,P)},handleDragStart:_=>{a.props.draggable&&c.treeNodeDragStart({event:_,treeNode:e})},handleDragOver:_=>{_.preventDefault(),a.props.draggable&&c.treeNodeDragOver({event:_,treeNode:{$el:l.value,node:e.node}})},handleDrop:_=>{_.preventDefault()},handleDragEnd:_=>{a.props.draggable&&c.treeNodeDragEnd(_)},CaretRight:wle}}}),_ge=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],Age=["aria-expanded"];function kge(e,t,r,n,a,i){const o=Fa("el-icon"),s=Fa("el-checkbox"),u=Fa("loading"),l=Fa("node-content"),c=Fa("el-tree-node"),f=Fa("el-collapse-transition");return Ar((ge(),Oe("div",{ref:"node$",class:Ce([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=nn((...d)=>e.handleClick&&e.handleClick(...d),["stop"])),onContextmenu:t[2]||(t[2]=(...d)=>e.handleContextMenu&&e.handleContextMenu(...d)),onDragstart:t[3]||(t[3]=nn((...d)=>e.handleDragStart&&e.handleDragStart(...d),["stop"])),onDragover:t[4]||(t[4]=nn((...d)=>e.handleDragOver&&e.handleDragOver(...d),["stop"])),onDragend:t[5]||(t[5]=nn((...d)=>e.handleDragEnd&&e.handleDragEnd(...d),["stop"])),onDrop:t[6]||(t[6]=nn((...d)=>e.handleDrop&&e.handleDrop(...d),["stop"]))},[Pe("div",{class:Ce(e.ns.be("node","content")),style:pr({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(ge(),ze(o,{key:0,class:Ce([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:nn(e.handleExpandIconClick,["stop"])},{default:De(()=>[(ge(),ze(Wn(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):We("v-if",!0),e.showCheckbox?(ge(),ze(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=nn(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):We("v-if",!0),e.node.loading?(ge(),ze(o,{key:2,class:Ce([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:De(()=>[Ke(u)]),_:1},8,["class"])):We("v-if",!0),Ke(l,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Ke(f,null,{default:De(()=>[!e.renderAfterExpand||e.childNodeRendered?Ar((ge(),Oe("div",{key:0,class:Ce(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(ge(!0),Oe(xn,null,xl(e.node.childNodes,d=>(ge(),ze(c,{key:e.getNodeKey(d),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:d,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,Age)),[[ta,e.expanded]]):We("v-if",!0)]),_:1})],42,_ge)),[[ta,e.node.visible]])}var Tge=gt(Cge,[["render",kge],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function Dge({el$:e},t){const r=ct("tree"),n=ps([]),a=ps([]);$r(()=>{o()}),X5(()=>{n.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),Ge(a,s=>{s.forEach(u=>{u.setAttribute("tabindex","-1")})}),Gg(e,"keydown",s=>{const u=s.target;if(!u.className.includes(r.b("node")))return;const l=s.code;n.value=Array.from(e.value.querySelectorAll(`.${r.is("focusable")}[role=treeitem]`));const c=n.value.indexOf(u);let f;if([Ga.up,Ga.down].includes(l)){if(s.preventDefault(),l===Ga.up){f=c===-1?0:c!==0?c-1:n.value.length-1;const p=f;for(;!t.value.getNode(n.value[f].dataset.key).canFocus;){if(f--,f===p){f=-1;break}f<0&&(f=n.value.length-1)}}else{f=c===-1?0:c<n.value.length-1?c+1:0;const p=f;for(;!t.value.getNode(n.value[f].dataset.key).canFocus;){if(f++,f===p){f=-1;break}f>=n.value.length&&(f=0)}}f!==-1&&n.value[f].focus()}[Ga.left,Ga.right].includes(l)&&(s.preventDefault(),u.click());const d=u.querySelector('[type="checkbox"]');[Ga.enter,Ga.space].includes(l)&&d&&(s.preventDefault(),d.click())});const o=()=>{var s;n.value=Array.from(e.value.querySelectorAll(`.${r.is("focusable")}[role=treeitem]`)),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const u=e.value.querySelectorAll(`.${r.is("checked")}[role=treeitem]`);if(u.length){u[0].setAttribute("tabindex","0");return}(s=n.value[0])==null||s.setAttribute("tabindex","0")}}const Oge=Fe({name:"ElTree",components:{ElTreeNode:Tge},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:su}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:r}=im(),n=ct("tree"),a=ke(new bge({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));a.value.initialize();const i=ke(a.value.root),o=ke(null),s=ke(null),u=ke(null),{broadcastExpanded:l}=uq(e),{dragState:c}=Sge({props:e,ctx:t,el$:s,dropIndicator$:u,store:a});Dge({el$:s},a);const f=ce(()=>{const{childNodes:V}=i.value;return!V||V.length===0||V.every(({visible:ie})=>!ie)});Ge(()=>e.currentNodeKey,V=>{a.value.setCurrentNodeKey(V)}),Ge(()=>e.defaultCheckedKeys,V=>{a.value.setDefaultCheckedKey(V)}),Ge(()=>e.defaultExpandedKeys,V=>{a.value.setDefaultExpandedKeys(V)}),Ge(()=>e.data,V=>{a.value.setData(V)},{deep:!0}),Ge(()=>e.checkStrictly,V=>{a.value.checkStrictly=V});const d=V=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(V)},p=V=>CD(e.nodeKey,V.data),v=V=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const ie=a.value.getNode(V);if(!ie)return[];const W=[ie.data];let de=ie.parent;for(;de&&de!==i.value;)W.push(de.data),de=de.parent;return W.reverse()},h=(V,ie)=>a.value.getCheckedNodes(V,ie),g=V=>a.value.getCheckedKeys(V),m=()=>{const V=a.value.getCurrentNode();return V?V.data:null},y=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const V=m();return V?V[e.nodeKey]:null},x=(V,ie)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");a.value.setCheckedNodes(V,ie)},b=(V,ie)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");a.value.setCheckedKeys(V,ie)},E=(V,ie,W)=>{a.value.setChecked(V,ie,W)},S=()=>a.value.getHalfCheckedNodes(),w=()=>a.value.getHalfCheckedKeys(),C=(V,ie=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");R8(a,t.emit,()=>a.value.setUserCurrentNode(V,ie))},_=(V,ie=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");R8(a,t.emit,()=>a.value.setCurrentNodeKey(V,ie))},O=V=>a.value.getNode(V),P=V=>{a.value.remove(V)},F=(V,ie)=>{a.value.append(V,ie)},q=(V,ie)=>{a.value.insertBefore(V,ie)},ee=(V,ie)=>{a.value.insertAfter(V,ie)},J=(V,ie,W)=>{l(ie),t.emit("node-expand",V,ie,W)},Z=(V,ie)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");a.value.updateChildren(V,ie)};return on("RootTree",{ctx:t,props:e,store:a,root:i,currentNode:o,instance:ui()}),on(Kl,void 0),{ns:n,store:a,root:i,currentNode:o,dragState:c,el$:s,dropIndicator$:u,isEmpty:f,filter:d,getNodeKey:p,getNodePath:v,getCheckedNodes:h,getCheckedKeys:g,getCurrentNode:m,getCurrentKey:y,setCheckedNodes:x,setCheckedKeys:b,setChecked:E,getHalfCheckedNodes:S,getHalfCheckedKeys:w,setCurrentNode:C,setCurrentKey:_,t:r,getNode:O,remove:P,append:F,insertBefore:q,insertAfter:ee,handleNodeExpand:J,updateKeyChildren:Z}}});function Fge(e,t,r,n,a,i){const o=Fa("el-tree-node");return ge(),Oe("div",{ref:"el$",class:Ce([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(ge(!0),Oe(xn,null,xl(e.root.childNodes,s=>(ge(),ze(o,{key:e.getNodeKey(s),node:s,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(ge(),Oe("div",{key:0,class:Ce(e.ns.e("empty-block"))},[tt(e.$slots,"empty",{},()=>{var s;return[Pe("span",{class:Ce(e.ns.e("empty-text"))},rr((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):We("v-if",!0),Ar(Pe("div",{ref:"dropIndicator$",class:Ce(e.ns.e("drop-indicator"))},null,2),[[ta,e.dragState.showDropIndicator]])],2)}var ax=gt(Oge,[["render",Fge],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);ax.install=e=>{e.component(ax.name,ax)};const nb=ax,Eet=nb,Bge=(e,{attrs:t},{tree:r,key:n})=>{const a=ct("tree-select"),i={...qg(Os(e),Object.keys(I8.props)),...t,valueKey:n,popperClass:ce(()=>{const o=[a.e("popper")];return e.popperClass&&o.push(e.popperClass),o.join(" ")}),filterMethod:(o="")=>{e.filterMethod&&e.filterMethod(o),mt(()=>{var s;(s=r.value)==null||s.filter(o)})},onVisibleChange:o=>{var s;(s=t.onVisibleChange)==null||s.call(t,o),e.filterable&&o&&i.filterMethod()}};return i},Pge=Fe({extends:HP,setup(e,t){const r=HP.setup(e,t);delete r.selectOptionClick;const n=ui().proxy;return mt(()=>{r.select.cachedOptions.get(n.value)||r.select.onOptionCreate(n)}),r},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function j8(e){return e||e===0}function _D(e){return Array.isArray(e)&&e.length}function xh(e){return Array.isArray(e)?e:j8(e)?[e]:[]}function ix(e,t,r,n,a){for(let i=0;i<e.length;i++){const o=e[i];if(t(o,i,e,a))return n?n(o,i,e,a):o;{const s=r(o);if(_D(s)){const u=ix(s,t,r,n,o);if(u)return u}}}}function cq(e,t,r,n){for(let a=0;a<e.length;a++){const i=e[a];t(i,a,e,n);const o=r(i);_D(o)&&cq(o,t,r,i)}}const Nge=(e,{attrs:t,slots:r,emit:n},{select:a,tree:i,key:o})=>{Ge(()=>e.modelValue,()=>{e.showCheckbox&&mt(()=>{const d=i.value;d&&!Zx(d.getCheckedKeys(),xh(e.modelValue))&&d.setCheckedKeys(xh(e.modelValue))})},{immediate:!0,deep:!0});const s=ce(()=>({value:o.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(d,p)=>{var v;const h=s.value[d];return Tn(h)?h(p,(v=i.value)==null?void 0:v.getNode(u("value",p))):p[h]},l=xh(e.modelValue).map(d=>ix(e.data||[],p=>u("value",p)===d,p=>u("children",p),(p,v,h,g)=>g&&u("value",g))).filter(d=>j8(d)),c=ce(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const d=[];return cq(e.data.concat(e.cacheData),p=>{const v=u("value",p);d.push({value:v,currentLabel:u("label",p),isDisabled:u("disabled",p)})},p=>u("children",p)),d}),f=ce(()=>c.value.reduce((d,p)=>({...d,[p.value]:p}),{}));return{...qg(Os(e),Object.keys(nb.props)),...t,nodeKey:o,expandOnClickNode:ce(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:ce(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(l):l),renderContent:(d,{node:p,data:v,store:h})=>d(Pge,{value:u("value",v),label:u("label",v),disabled:u("disabled",v)},e.renderContent?()=>e.renderContent(d,{node:p,data:v,store:h}):r.default?()=>r.default({node:p,data:v,store:h}):void 0),filterNodeMethod:(d,p,v)=>{var h;return e.filterNodeMethod?e.filterNodeMethod(d,p,v):d?(h=u("label",p))==null?void 0:h.includes(d):!0},onNodeClick:(d,p,v)=>{var h,g,m;if((h=t.onNodeClick)==null||h.call(t,d,p,v),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||p.isLeaf)){if(!u("disabled",d)){const y=(g=a.value)==null?void 0:g.options.get(u("value",d));(m=a.value)==null||m.handleOptionSelect(y)}}else e.expandOnClickNode&&v.proxy.handleExpandIconClick()},onCheck:(d,p)=>{if(!e.showCheckbox)return;const v=u("value",d),h=p.checkedKeys,g=e.multiple?xh(e.modelValue).filter(y=>y in f.value&&!i.value.getNode(y)&&!h.includes(y)):[],m=h.concat(g);if(e.checkStrictly)n(zr,e.multiple?m:m.includes(v)?v:void 0);else if(e.multiple)n(zr,i.value.getCheckedKeys(!0));else{const y=ix([d],E=>!_D(u("children",E))&&!u("disabled",E),E=>u("children",E)),x=y?u("value",y):void 0,b=j8(e.modelValue)&&!!ix([d],E=>u("value",E)===e.modelValue,E=>u("children",E));n(zr,x===e.modelValue||b?void 0:x)}mt(()=>{var y;const x=xh(e.modelValue);i.value.setCheckedKeys(x),(y=t.onCheck)==null||y.call(t,d,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})})},cacheOptions:c}};var Ige=Fe({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Nt(cm);return Ge(()=>e.data,()=>{var r;e.data.forEach(a=>{t.cachedOptions.has(a.value)||t.cachedOptions.set(a.value,a)});const n=((r=t.selectWrapper)==null?void 0:r.querySelectorAll("input"))||[];Array.from(n).includes(document.activeElement)||t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const Rge=Fe({name:"ElTreeSelect",inheritAttrs:!1,props:{...I8.props,...nb.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:r,expose:n}=t,a=ke(),i=ke(),o=ce(()=>e.nodeKey||e.valueKey||"value"),s=Bge(e,t,{select:a,tree:i,key:o}),{cacheOptions:u,...l}=Nge(e,t,{select:a,tree:i,key:o}),c=Pr({});return n(c),$r(()=>{Object.assign(c,{...qg(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...qg(a.value,["focus","blur"])})}),()=>Co(I8,Pr({...s,ref:f=>a.value=f}),{...r,default:()=>[Co(Ige,{data:u.value}),Co(nb,Pr({...l,ref:f=>i.value=f}))]})}});var ox=gt(Rge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);ox.install=e=>{e.component(ox.name,ox)};const Lge=ox,Mge=Lge;function jge(e){let t;const r=ke(!1),n=Pr({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(d){n.text=d}function i(){const d=n.parent,p=f.ns;if(!d.vLoadingAddClassList){let v=d.getAttribute("loading-number");v=Number.parseInt(v)-1,v?d.setAttribute("loading-number",v.toString()):(bl(d,p.bm("parent","relative")),d.removeAttribute("loading-number")),bl(d,p.bm("parent","hidden"))}o(),c.unmount()}function o(){var d,p;(p=(d=f.$el)==null?void 0:d.parentNode)==null||p.removeChild(f.$el)}function s(){var d;e.beforeClose&&!e.beforeClose()||(r.value=!0,clearTimeout(t),t=window.setTimeout(u,400),n.visible=!1,(d=e.closed)==null||d.call(e))}function u(){if(!r.value)return;const d=n.parent;r.value=!1,d.vLoadingAddClassList=void 0,i()}const l=Fe({name:"ElLoading",setup(d,{expose:p}){const{ns:v,zIndex:h}=FG("loading");return p({ns:v,zIndex:h}),()=>{const g=n.spinner||n.svg,m=Co("svg",{class:"circular",viewBox:n.svgViewBox?n.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[Co("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),y=n.text?Co("p",{class:v.b("text")},[n.text]):void 0;return Co(bs,{name:v.b("fade"),onAfterLeave:u},{default:De(()=>[Ar(Ke("div",{style:{backgroundColor:n.background||""},class:[v.b("mask"),n.customClass,n.fullscreen?"is-fullscreen":""]},[Co("div",{class:v.b("spinner")},[m,y])]),[[ta,n.visible]])])})}}}),c=eie(l),f=c.mount(document.createElement("div"));return{...Os(n),setText:a,removeElLoadingChild:o,close:s,handleAfterLeave:u,vm:f,get $el(){return f.$el}}}let ky;const $8=function(e={}){if(!bn)return;const t=$ge(e);if(t.fullscreen&&ky)return ky;const r=jge({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(ky=void 0)}});Uge(t,t.parent,r),VP(t,t.parent,r),t.parent.vLoadingAddClassList=()=>VP(t,t.parent,r);let n=t.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",t.parent.setAttribute("loading-number",n),t.parent.appendChild(r.$el),mt(()=>r.visible.value=t.visible),t.fullscreen&&(ky=r),r},$ge=e=>{var t,r,n,a;let i;return In(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((r=e.fullscreen)!=null?r:!0),lock:(n=e.lock)!=null?n:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,target:i}},Uge=async(e,t,r)=>{const{nextZIndex:n}=r.vm.zIndex||r.vm._.exposed.zIndex,a={};if(e.fullscreen)r.originalPosition.value=ld(document.body,"position"),r.originalOverflow.value=ld(document.body,"overflow"),a.zIndex=n();else if(e.parent===document.body){r.originalPosition.value=ld(document.body,"position"),await mt();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";a[i]=`${e.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(ld(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else r.originalPosition.value=ld(t,"position");for(const[i,o]of Object.entries(a))r.$el.style[i]=o},VP=(e,t,r)=>{const n=r.vm.ns||r.vm._.exposed.ns;["absolute","fixed","sticky"].includes(r.originalPosition.value)?bl(t,n.bm("parent","relative")):Qx(t,n.bm("parent","relative")),e.fullscreen&&e.lock?Qx(t,n.bm("parent","hidden")):bl(t,n.bm("parent","hidden"))},U8=Symbol("ElLoading"),WP=(e,t)=>{var r,n,a,i;const o=t.instance,s=d=>zo(t.value)?t.value[d]:void 0,u=d=>{const p=In(d)&&(o==null?void 0:o[d])||d;return p&&ke(p)},l=d=>u(s(d)||e.getAttribute(`element-loading-${tie(d)}`)),c=(r=s("fullscreen"))!=null?r:t.modifiers.fullscreen,f={text:l("text"),svg:l("svg"),svgViewBox:l("svgViewBox"),spinner:l("spinner"),background:l("background"),customClass:l("customClass"),fullscreen:c,target:(n=s("target"))!=null?n:c?void 0:e,body:(a=s("body"))!=null?a:t.modifiers.body,lock:(i=s("lock"))!=null?i:t.modifiers.lock};e[U8]={options:f,instance:$8(f)}},Hge=(e,t)=>{for(const r of Object.keys(t))Wl(t[r])&&(t[r].value=e[r])},GP={mounted(e,t){t.value&&WP(e,t)},updated(e,t){const r=e[U8];t.oldValue!==t.value&&(t.value&&!t.oldValue?WP(e,t):t.value&&t.oldValue?zo(t.value)&&Hge(t.value,r.options):r==null||r.instance.close())},unmounted(e){var t;(t=e[U8])==null||t.instance.close()}},zge={install(e){e.directive("loading",GP),e.config.globalProperties.$loading=$8},directive:GP,service:$8},fq=["success","info","warning","error"],Va=zc({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:bn?document.body:void 0}),Vge=ar({customClass:{type:String,default:Va.customClass},center:{type:Boolean,default:Va.center},dangerouslyUseHTMLString:{type:Boolean,default:Va.dangerouslyUseHTMLString},duration:{type:Number,default:Va.duration},icon:{type:su,default:Va.icon},id:{type:String,default:Va.id},message:{type:xt([String,Object,Function]),default:Va.message},onClose:{type:xt(Function),required:!1},showClose:{type:Boolean,default:Va.showClose},type:{type:String,values:fq,default:Va.type},offset:{type:Number,default:Va.offset},zIndex:{type:Number,default:Va.zIndex},grouping:{type:Boolean,default:Va.grouping},repeatNum:{type:Number,default:Va.repeatNum}}),Wge={destroy:()=>!0},Oo=rie([]),Gge=e=>{const t=Oo.findIndex(a=>a.id===e),r=Oo[t];let n;return t>0&&(n=Oo[t-1]),{current:r,prev:n}},Kge=e=>{const{prev:t}=Gge(e);return t?t.vm.exposed.bottom.value:0},qge=(e,t)=>Oo.findIndex(n=>n.id===e)>0?20:t,Xge=["id"],Yge=["innerHTML"],Jge=Fe({name:"ElMessage"}),Zge=Fe({...Jge,props:Vge,emits:Wge,setup(e,{expose:t}){const r=e,{Close:n}=Wce,{ns:a,zIndex:i}=FG("message"),{currentZIndex:o,nextZIndex:s}=i,u=ke(),l=ke(!1),c=ke(0);let f;const d=ce(()=>r.type?r.type==="error"?"danger":r.type:"info"),p=ce(()=>{const w=r.type;return{[a.bm("icon",w)]:w&&iP[w]}}),v=ce(()=>r.icon||iP[r.type]||""),h=ce(()=>Kge(r.id)),g=ce(()=>qge(r.id,r.offset)+h.value),m=ce(()=>c.value+g.value),y=ce(()=>({top:`${g.value}px`,zIndex:o.value}));function x(){r.duration!==0&&({stop:f}=x8(()=>{E()},r.duration))}function b(){f==null||f()}function E(){l.value=!1}function S({code:w}){w===Ga.esc&&E()}return $r(()=>{x(),s(),l.value=!0}),Ge(()=>r.repeatNum,()=>{b(),x()}),Gg(document,"keydown",S),$p(u,()=>{c.value=u.value.getBoundingClientRect().height}),t({visible:l,bottom:m,close:E}),(w,C)=>(ge(),ze(bs,{name:T(a).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:C[0]||(C[0]=_=>w.$emit("destroy")),persisted:""},{default:De(()=>[Ar(Pe("div",{id:w.id,ref_key:"messageRef",ref:u,class:Ce([T(a).b(),{[T(a).m(w.type)]:w.type&&!w.icon},T(a).is("center",w.center),T(a).is("closable",w.showClose),w.customClass]),style:pr(T(y)),role:"alert",onMouseenter:b,onMouseleave:x},[w.repeatNum>1?(ge(),ze(T(Gpe),{key:0,value:w.repeatNum,type:T(d),class:Ce(T(a).e("badge"))},null,8,["value","type","class"])):We("v-if",!0),T(v)?(ge(),ze(T(Xa),{key:1,class:Ce([T(a).e("icon"),T(p)])},{default:De(()=>[(ge(),ze(Wn(T(v))))]),_:1},8,["class"])):We("v-if",!0),tt(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(ge(),Oe(xn,{key:1},[We(" Caution here, message could've been compromised, never use user's input as message "),Pe("p",{class:Ce(T(a).e("content")),innerHTML:w.message},null,10,Yge)],2112)):(ge(),Oe("p",{key:0,class:Ce(T(a).e("content"))},rr(w.message),3))]),w.showClose?(ge(),ze(T(Xa),{key:2,class:Ce(T(a).e("closeBtn")),onClick:nn(E,["stop"])},{default:De(()=>[Ke(T(n))]),_:1},8,["class","onClick"])):We("v-if",!0)],46,Xge),[[ta,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Qge=gt(Zge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let e1e=1;const dq=e=>{const t=!e||In(e)||BG(e)||Tn(e)?{message:e}:e,r={...Va,...t};if(!r.appendTo)r.appendTo=document.body;else if(In(r.appendTo)){let n=document.querySelector(r.appendTo);Kd(n)||(n=document.body),r.appendTo=n}return r},t1e=e=>{const t=Oo.indexOf(e);if(t===-1)return;Oo.splice(t,1);const{handler:r}=e;r.close()},r1e=({appendTo:e,...t},r)=>{const n=`message_${e1e++}`,a=t.onClose,i=document.createElement("div"),o={...t,id:n,onClose:()=>{a==null||a(),t1e(c)},onDestroy:()=>{DB(null,i)}},s=Ke(Qge,o,Tn(o.message)||BG(o.message)?{default:Tn(o.message)?o.message:()=>o.message}:null);s.appContext=r||tp._context,DB(s,i),e.appendChild(i.firstElementChild);const u=s.component,c={id:n,vnode:s,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:s.component.props};return c},tp=(e={},t)=>{if(!bn)return{close:()=>{}};if(Fn(TB.max)&&Oo.length>=TB.max)return{close:()=>{}};const r=dq(e);if(r.grouping&&Oo.length){const a=Oo.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===r.message});if(a)return a.props.repeatNum+=1,a.props.type=r.type,a.handler}const n=r1e(r,t);return Oo.push(n),n.handler};fq.forEach(e=>{tp[e]=(t={},r)=>{const n=dq(t);return tp({...n,type:e},r)}});function n1e(e){for(const t of Oo)(!e||e===t.props.type)&&t.handler.close()}tp.closeAll=n1e;tp._context=null;const Ya=nie(tp,"$message");function pq(e,t){return function(){return e.apply(t,arguments)}}const{toString:a1e}=Object.prototype,{getPrototypeOf:AD}=Object,UE=(e=>t=>{const r=a1e.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Fs=e=>(e=e.toLowerCase(),t=>UE(t)===e),HE=e=>t=>typeof t===e,{isArray:Vp}=Array,Zg=HE("undefined");function i1e(e){return e!==null&&!Zg(e)&&e.constructor!==null&&!Zg(e.constructor)&&Yi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hq=Fs("ArrayBuffer");function o1e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hq(e.buffer),t}const s1e=HE("string"),Yi=HE("function"),vq=HE("number"),zE=e=>e!==null&&typeof e=="object",u1e=e=>e===!0||e===!1,sx=e=>{if(UE(e)!=="object")return!1;const t=AD(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},l1e=Fs("Date"),c1e=Fs("File"),f1e=Fs("Blob"),d1e=Fs("FileList"),p1e=e=>zE(e)&&Yi(e.pipe),h1e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Yi(e.append)&&((t=UE(e))==="formdata"||t==="object"&&Yi(e.toString)&&e.toString()==="[object FormData]"))},v1e=Fs("URLSearchParams"),g1e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fm(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Vp(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(n=0;n<o;n++)s=i[n],t.call(null,e[s],s,e)}}function gq(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const mq=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),yq=e=>!Zg(e)&&e!==mq;function H8(){const{caseless:e}=yq(this)&&this||{},t={},r=(n,a)=>{const i=e&&gq(t,a)||a;sx(t[i])&&sx(n)?t[i]=H8(t[i],n):sx(n)?t[i]=H8({},n):Vp(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&fm(arguments[n],r);return t}const m1e=(e,t,r,{allOwnKeys:n}={})=>(fm(t,(a,i)=>{r&&Yi(a)?e[i]=pq(a,r):e[i]=a},{allOwnKeys:n}),e),y1e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),x1e=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},b1e=(e,t,r,n)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&AD(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},w1e=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},E1e=e=>{if(!e)return null;if(Vp(e))return e;let t=e.length;if(!vq(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},S1e=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&AD(Uint8Array)),C1e=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},_1e=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},A1e=Fs("HTMLFormElement"),k1e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),KP=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),T1e=Fs("RegExp"),xq=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};fm(r,(a,i)=>{t(a,i,e)!==!1&&(n[i]=a)}),Object.defineProperties(e,n)},D1e=e=>{xq(e,(t,r)=>{if(Yi(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Yi(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},O1e=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return Vp(e)?n(e):n(String(e).split(t)),r},F1e=()=>{},B1e=(e,t)=>(e=+e,Number.isFinite(e)?e:t),xS="abcdefghijklmnopqrstuvwxyz",qP="0123456789",bq={DIGIT:qP,ALPHA:xS,ALPHA_DIGIT:xS+xS.toUpperCase()+qP},P1e=(e=16,t=bq.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function N1e(e){return!!(e&&Yi(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const I1e=e=>{const t=new Array(10),r=(n,a)=>{if(zE(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const i=Vp(n)?[]:{};return fm(n,(o,s)=>{const u=r(o,a+1);!Zg(u)&&(i[s]=u)}),t[a]=void 0,i}}return n};return r(e,0)},R1e=Fs("AsyncFunction"),L1e=e=>e&&(zE(e)||Yi(e))&&Yi(e.then)&&Yi(e.catch),Ee={isArray:Vp,isArrayBuffer:hq,isBuffer:i1e,isFormData:h1e,isArrayBufferView:o1e,isString:s1e,isNumber:vq,isBoolean:u1e,isObject:zE,isPlainObject:sx,isUndefined:Zg,isDate:l1e,isFile:c1e,isBlob:f1e,isRegExp:T1e,isFunction:Yi,isStream:p1e,isURLSearchParams:v1e,isTypedArray:S1e,isFileList:d1e,forEach:fm,merge:H8,extend:m1e,trim:g1e,stripBOM:y1e,inherits:x1e,toFlatObject:b1e,kindOf:UE,kindOfTest:Fs,endsWith:w1e,toArray:E1e,forEachEntry:C1e,matchAll:_1e,isHTMLForm:A1e,hasOwnProperty:KP,hasOwnProp:KP,reduceDescriptors:xq,freezeMethods:D1e,toObjectSet:O1e,toCamelCase:k1e,noop:F1e,toFiniteNumber:B1e,findKey:gq,global:mq,isContextDefined:yq,ALPHABET:bq,generateString:P1e,isSpecCompliantForm:N1e,toJSONObject:I1e,isAsyncFn:R1e,isThenable:L1e};function Qt(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}Ee.inherits(Qt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ee.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const wq=Qt.prototype,Eq={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Eq[e]={value:e}});Object.defineProperties(Qt,Eq);Object.defineProperty(wq,"isAxiosError",{value:!0});Qt.from=(e,t,r,n,a,i)=>{const o=Object.create(wq);return Ee.toFlatObject(e,o,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),Qt.call(o,e.message,t,r,n,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const M1e=null;function z8(e){return Ee.isPlainObject(e)||Ee.isArray(e)}function Sq(e){return Ee.endsWith(e,"[]")?e.slice(0,-2):e}function XP(e,t,r){return e?e.concat(t).map(function(a,i){return a=Sq(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function j1e(e){return Ee.isArray(e)&&!e.some(z8)}const $1e=Ee.toFlatObject(Ee,{},null,function(t){return/^is[A-Z]/.test(t)});function VE(e,t,r){if(!Ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Ee.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,g){return!Ee.isUndefined(g[h])});const n=r.metaTokens,a=r.visitor||c,i=r.dots,o=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&Ee.isSpecCompliantForm(t);if(!Ee.isFunction(a))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(Ee.isDate(v))return v.toISOString();if(!u&&Ee.isBlob(v))throw new Qt("Blob is not supported. Use a Buffer instead.");return Ee.isArrayBuffer(v)||Ee.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,h,g){let m=v;if(v&&!g&&typeof v=="object"){if(Ee.endsWith(h,"{}"))h=n?h:h.slice(0,-2),v=JSON.stringify(v);else if(Ee.isArray(v)&&j1e(v)||(Ee.isFileList(v)||Ee.endsWith(h,"[]"))&&(m=Ee.toArray(v)))return h=Sq(h),m.forEach(function(x,b){!(Ee.isUndefined(x)||x===null)&&t.append(o===!0?XP([h],b,i):o===null?h:h+"[]",l(x))}),!1}return z8(v)?!0:(t.append(XP(g,h,i),l(v)),!1)}const f=[],d=Object.assign($1e,{defaultVisitor:c,convertValue:l,isVisitable:z8});function p(v,h){if(!Ee.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+h.join("."));f.push(v),Ee.forEach(v,function(m,y){(!(Ee.isUndefined(m)||m===null)&&a.call(t,m,Ee.isString(y)?y.trim():y,h,d))===!0&&p(m,h?h.concat(y):[y])}),f.pop()}}if(!Ee.isObject(e))throw new TypeError("data must be an object");return p(e),t}function YP(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function kD(e,t){this._pairs=[],e&&VE(e,this,t)}const Cq=kD.prototype;Cq.append=function(t,r){this._pairs.push([t,r])};Cq.toString=function(t){const r=t?function(n){return t.call(this,n,YP)}:YP;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function U1e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _q(e,t,r){if(!t)return e;const n=r&&r.encode||U1e,a=r&&r.serialize;let i;if(a?i=a(t,r):i=Ee.isURLSearchParams(t)?t.toString():new kD(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class H1e{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ee.forEach(this.handlers,function(n){n!==null&&t(n)})}}const JP=H1e,Aq={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},z1e=typeof URLSearchParams<"u"?URLSearchParams:kD,V1e=typeof FormData<"u"?FormData:null,W1e=typeof Blob<"u"?Blob:null,G1e=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),K1e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),us={isBrowser:!0,classes:{URLSearchParams:z1e,FormData:V1e,Blob:W1e},isStandardBrowserEnv:G1e,isStandardBrowserWebWorkerEnv:K1e,protocols:["http","https","file","blob","url","data"]};function q1e(e,t){return VE(e,new us.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return us.isNode&&Ee.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function X1e(e){return Ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Y1e(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}function kq(e){function t(r,n,a,i){let o=r[i++];const s=Number.isFinite(+o),u=i>=r.length;return o=!o&&Ee.isArray(a)?a.length:o,u?(Ee.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!s):((!a[o]||!Ee.isObject(a[o]))&&(a[o]=[]),t(r,n,a[o],i)&&Ee.isArray(a[o])&&(a[o]=Y1e(a[o])),!s)}if(Ee.isFormData(e)&&Ee.isFunction(e.entries)){const r={};return Ee.forEachEntry(e,(n,a)=>{t(X1e(n),a,r,0)}),r}return null}const J1e={"Content-Type":void 0};function Z1e(e,t,r){if(Ee.isString(e))try{return(t||JSON.parse)(e),Ee.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const WE={transitional:Aq,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=Ee.isObject(t);if(i&&Ee.isHTMLForm(t)&&(t=new FormData(t)),Ee.isFormData(t))return a&&a?JSON.stringify(kq(t)):t;if(Ee.isArrayBuffer(t)||Ee.isBuffer(t)||Ee.isStream(t)||Ee.isFile(t)||Ee.isBlob(t))return t;if(Ee.isArrayBufferView(t))return t.buffer;if(Ee.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return q1e(t,this.formSerializer).toString();if((s=Ee.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return VE(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),Z1e(t)):t}],transformResponse:[function(t){const r=this.transitional||WE.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(t&&Ee.isString(t)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Qt.from(s,Qt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:us.classes.FormData,Blob:us.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ee.forEach(["delete","get","head"],function(t){WE.headers[t]={}});Ee.forEach(["post","put","patch"],function(t){WE.headers[t]=Ee.merge(J1e)});const TD=WE,Q1e=Ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eme=e=>{const t={};let r,n,a;return e&&e.split(`
|
||
`).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||t[r]&&Q1e[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},ZP=Symbol("internals");function bh(e){return e&&String(e).trim().toLowerCase()}function ux(e){return e===!1||e==null?e:Ee.isArray(e)?e.map(ux):String(e)}function tme(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const rme=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bS(e,t,r,n,a){if(Ee.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!Ee.isString(t)){if(Ee.isString(n))return t.indexOf(n)!==-1;if(Ee.isRegExp(n))return n.test(t)}}function nme(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ame(e,t){const r=Ee.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,i,o){return this[n].call(this,t,a,i,o)},configurable:!0})})}class GE{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(s,u,l){const c=bh(u);if(!c)throw new Error("header name must be a non-empty string");const f=Ee.findKey(a,c);(!f||a[f]===void 0||l===!0||l===void 0&&a[f]!==!1)&&(a[f||u]=ux(s))}const o=(s,u)=>Ee.forEach(s,(l,c)=>i(l,c,u));return Ee.isPlainObject(t)||t instanceof this.constructor?o(t,r):Ee.isString(t)&&(t=t.trim())&&!rme(t)?o(eme(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=bh(t),t){const n=Ee.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return tme(a);if(Ee.isFunction(r))return r.call(this,a,n);if(Ee.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=bh(t),t){const n=Ee.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||bS(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(o){if(o=bh(o),o){const s=Ee.findKey(n,o);s&&(!r||bS(n,n[s],s,r))&&(delete n[s],a=!0)}}return Ee.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||bS(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return Ee.forEach(this,(a,i)=>{const o=Ee.findKey(n,i);if(o){r[o]=ux(a),delete r[i];return}const s=t?nme(i):String(i).trim();s!==i&&delete r[i],r[s]=ux(a),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Ee.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&Ee.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[ZP]=this[ZP]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=bh(o);n[s]||(ame(a,o),n[s]=!0)}return Ee.isArray(t)?t.forEach(i):i(t),this}}GE.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ee.freezeMethods(GE.prototype);Ee.freezeMethods(GE);const eu=GE;function wS(e,t){const r=this||TD,n=t||r,a=eu.from(n.headers);let i=n.data;return Ee.forEach(e,function(s){i=s.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function Tq(e){return!!(e&&e.__CANCEL__)}function dm(e,t,r){Qt.call(this,e==null?"canceled":e,Qt.ERR_CANCELED,t,r),this.name="CanceledError"}Ee.inherits(dm,Qt,{__CANCEL__:!0});function ime(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Qt("Request failed with status code "+r.status,[Qt.ERR_BAD_REQUEST,Qt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const ome=us.isStandardBrowserEnv?function(){return{write:function(r,n,a,i,o,s){const u=[];u.push(r+"="+encodeURIComponent(n)),Ee.isNumber(a)&&u.push("expires="+new Date(a).toGMTString()),Ee.isString(i)&&u.push("path="+i),Ee.isString(o)&&u.push("domain="+o),s===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function sme(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ume(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Dq(e,t){return e&&!sme(t)?ume(e,t):t}const lme=us.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(i){let o=i;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(o){const s=Ee.isString(o)?a(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function cme(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fme(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),c=n[i];o||(o=l),r[a]=u,n[a]=l;let f=i,d=0;for(;f!==a;)d+=r[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(d*1e3/p):void 0}}function QP(e,t){let r=0;const n=fme(50,250);return a=>{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-r,u=n(s),l=i<=o;r=i;const c={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:u||void 0,estimated:u&&o&&l?(o-i)/u:void 0,event:a};c[t?"download":"upload"]=!0,e(c)}}const dme=typeof XMLHttpRequest<"u",pme=dme&&function(e){return new Promise(function(r,n){let a=e.data;const i=eu.from(e.headers).normalize(),o=e.responseType;let s;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}Ee.isFormData(a)&&(us.isStandardBrowserEnv||us.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+v))}const c=Dq(e.baseURL,e.url);l.open(e.method.toUpperCase(),_q(c,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function f(){if(!l)return;const p=eu.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),h={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:p,config:e,request:l};ime(function(m){r(m),u()},function(m){n(m),u()},h),l=null}if("onloadend"in l?l.onloadend=f:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(f)},l.onabort=function(){l&&(n(new Qt("Request aborted",Qt.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new Qt("Network Error",Qt.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||Aq;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),n(new Qt(v,h.clarifyTimeoutError?Qt.ETIMEDOUT:Qt.ECONNABORTED,e,l)),l=null},us.isStandardBrowserEnv){const p=(e.withCredentials||lme(c))&&e.xsrfCookieName&&ome.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}a===void 0&&i.setContentType(null),"setRequestHeader"in l&&Ee.forEach(i.toJSON(),function(v,h){l.setRequestHeader(h,v)}),Ee.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&o!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",QP(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",QP(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=p=>{l&&(n(!p||p.type?new dm(null,e,l):p),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const d=cme(c);if(d&&us.protocols.indexOf(d)===-1){n(new Qt("Unsupported protocol "+d+":",Qt.ERR_BAD_REQUEST,e));return}l.send(a||null)})},lx={http:M1e,xhr:pme};Ee.forEach(lx,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const hme={getAdapter:e=>{e=Ee.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let a=0;a<t&&(r=e[a],!(n=Ee.isString(r)?lx[r.toLowerCase()]:r));a++);if(!n)throw n===!1?new Qt(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(Ee.hasOwnProp(lx,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!Ee.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:lx};function ES(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dm(null,e)}function eN(e){return ES(e),e.headers=eu.from(e.headers),e.data=wS.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),hme.getAdapter(e.adapter||TD.adapter)(e).then(function(n){return ES(e),n.data=wS.call(e,e.transformResponse,n),n.headers=eu.from(n.headers),n},function(n){return Tq(n)||(ES(e),n&&n.response&&(n.response.data=wS.call(e,e.transformResponse,n.response),n.response.headers=eu.from(n.response.headers))),Promise.reject(n)})}const tN=e=>e instanceof eu?e.toJSON():e;function rp(e,t){t=t||{};const r={};function n(l,c,f){return Ee.isPlainObject(l)&&Ee.isPlainObject(c)?Ee.merge.call({caseless:f},l,c):Ee.isPlainObject(c)?Ee.merge({},c):Ee.isArray(c)?c.slice():c}function a(l,c,f){if(Ee.isUndefined(c)){if(!Ee.isUndefined(l))return n(void 0,l,f)}else return n(l,c,f)}function i(l,c){if(!Ee.isUndefined(c))return n(void 0,c)}function o(l,c){if(Ee.isUndefined(c)){if(!Ee.isUndefined(l))return n(void 0,l)}else return n(void 0,c)}function s(l,c,f){if(f in t)return n(l,c);if(f in e)return n(void 0,l)}const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(l,c)=>a(tN(l),tN(c),!0)};return Ee.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=u[c]||a,d=f(e[c],t[c],c);Ee.isUndefined(d)&&f!==s||(r[c]=d)}),r}const Oq="1.4.0",DD={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{DD[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const rN={};DD.transitional=function(t,r,n){function a(i,o){return"[Axios v"+Oq+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(t===!1)throw new Qt(a(o," has been removed"+(r?" in "+r:"")),Qt.ERR_DEPRECATED);return r&&!rN[o]&&(rN[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,s):!0}};function vme(e,t,r){if(typeof e!="object")throw new Qt("options must be an object",Qt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],o=t[i];if(o){const s=e[i],u=s===void 0||o(s,i,e);if(u!==!0)throw new Qt("option "+i+" must be "+u,Qt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Qt("Unknown option "+i,Qt.ERR_BAD_OPTION)}}const V8={assertOptions:vme,validators:DD},Cu=V8.validators;class ab{constructor(t){this.defaults=t,this.interceptors={request:new JP,response:new JP}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=rp(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&V8.assertOptions(n,{silentJSONParsing:Cu.transitional(Cu.boolean),forcedJSONParsing:Cu.transitional(Cu.boolean),clarifyTimeoutError:Cu.transitional(Cu.boolean)},!1),a!=null&&(Ee.isFunction(a)?r.paramsSerializer={serialize:a}:V8.assertOptions(a,{encode:Cu.function,serialize:Cu.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o;o=i&&Ee.merge(i.common,i[r.method]),o&&Ee.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),r.headers=eu.concat(o,i);const s=[];let u=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(u=u&&h.synchronous,s.unshift(h.fulfilled,h.rejected))});const l=[];this.interceptors.response.forEach(function(h){l.push(h.fulfilled,h.rejected)});let c,f=0,d;if(!u){const v=[eN.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,l),d=v.length,c=Promise.resolve(r);f<d;)c=c.then(v[f++],v[f++]);return c}d=s.length;let p=r;for(f=0;f<d;){const v=s[f++],h=s[f++];try{p=v(p)}catch(g){h.call(this,g);break}}try{c=eN.call(this,p)}catch(v){return Promise.reject(v)}for(f=0,d=l.length;f<d;)c=c.then(l[f++],l[f++]);return c}getUri(t){t=rp(this.defaults,t);const r=Dq(t.baseURL,t.url);return _q(r,t.params,t.paramsSerializer)}}Ee.forEach(["delete","get","head","options"],function(t){ab.prototype[t]=function(r,n){return this.request(rp(n||{},{method:t,url:r,data:(n||{}).data}))}});Ee.forEach(["post","put","patch"],function(t){function r(n){return function(i,o,s){return this.request(rp(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}ab.prototype[t]=r(),ab.prototype[t+"Form"]=r(!0)});const cx=ab;class OD{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,s){n.reason||(n.reason=new dm(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new OD(function(a){t=a}),cancel:t}}}const gme=OD;function mme(e){return function(r){return e.apply(null,r)}}function yme(e){return Ee.isObject(e)&&e.isAxiosError===!0}const W8={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(W8).forEach(([e,t])=>{W8[t]=e});const xme=W8;function Fq(e){const t=new cx(e),r=pq(cx.prototype.request,t);return Ee.extend(r,cx.prototype,t,{allOwnKeys:!0}),Ee.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return Fq(rp(e,a))},r}const jn=Fq(TD);jn.Axios=cx;jn.CanceledError=dm;jn.CancelToken=gme;jn.isCancel=Tq;jn.VERSION=Oq;jn.toFormData=VE;jn.AxiosError=Qt;jn.Cancel=jn.CanceledError;jn.all=function(t){return Promise.all(t)};jn.spread=mme;jn.isAxiosError=yme;jn.mergeConfig=rp;jn.AxiosHeaders=eu;jn.formToJSON=e=>kq(Ee.isHTMLForm(e)?new FormData(e):e);jn.HttpStatusCode=xme;jn.default=jn;const i0=jn;var bme=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==a||o.enumerable!==!0)return!1}return!0},nN=typeof Symbol<"u"&&Symbol,wme=bme,Eme=function(){return typeof nN!="function"||typeof Symbol!="function"||typeof nN("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:wme()},aN={foo:{}},Sme=Object,Cme=function(){return{__proto__:aN}.foo===aN.foo&&!({__proto__:null}instanceof Sme)},_me="Function.prototype.bind called on incompatible ",SS=Array.prototype.slice,Ame=Object.prototype.toString,kme="[object Function]",Tme=function(t){var r=this;if(typeof r!="function"||Ame.call(r)!==kme)throw new TypeError(_me+r);for(var n=SS.call(arguments,1),a,i=function(){if(this instanceof a){var c=r.apply(this,n.concat(SS.call(arguments)));return Object(c)===c?c:this}else return r.apply(t,n.concat(SS.call(arguments)))},o=Math.max(0,r.length-n.length),s=[],u=0;u<o;u++)s.push("$"+u);if(a=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var l=function(){};l.prototype=r.prototype,a.prototype=new l,l.prototype=null}return a},Dme=Tme,FD=Function.prototype.bind||Dme,Ome=FD,Fme=Ome.call(Function.call,Object.prototype.hasOwnProperty),Mt,np=SyntaxError,Bq=Function,Td=TypeError,CS=function(e){try{return Bq('"use strict"; return ('+e+").constructor;")()}catch(t){}},uf=Object.getOwnPropertyDescriptor;if(uf)try{uf({},"")}catch(e){uf=null}var _S=function(){throw new Td},Bme=uf?function(){try{return arguments.callee,_S}catch(e){try{return uf(arguments,"callee").get}catch(t){return _S}}}():_S,D0=Eme(),Pme=Cme(),Un=Object.getPrototypeOf||(Pme?function(e){return e.__proto__}:null),fd={},Nme=typeof Uint8Array>"u"||!Un?Mt:Un(Uint8Array),lf={"%AggregateError%":typeof AggregateError>"u"?Mt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Mt:ArrayBuffer,"%ArrayIteratorPrototype%":D0&&Un?Un([][Symbol.iterator]()):Mt,"%AsyncFromSyncIteratorPrototype%":Mt,"%AsyncFunction%":fd,"%AsyncGenerator%":fd,"%AsyncGeneratorFunction%":fd,"%AsyncIteratorPrototype%":fd,"%Atomics%":typeof Atomics>"u"?Mt:Atomics,"%BigInt%":typeof BigInt>"u"?Mt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Mt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Mt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Mt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Mt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Mt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Mt:FinalizationRegistry,"%Function%":Bq,"%GeneratorFunction%":fd,"%Int8Array%":typeof Int8Array>"u"?Mt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Mt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Mt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":D0&&Un?Un(Un([][Symbol.iterator]())):Mt,"%JSON%":typeof JSON=="object"?JSON:Mt,"%Map%":typeof Map>"u"?Mt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!D0||!Un?Mt:Un(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Mt:Promise,"%Proxy%":typeof Proxy>"u"?Mt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Mt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Mt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!D0||!Un?Mt:Un(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Mt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D0&&Un?Un(""[Symbol.iterator]()):Mt,"%Symbol%":D0?Symbol:Mt,"%SyntaxError%":np,"%ThrowTypeError%":Bme,"%TypedArray%":Nme,"%TypeError%":Td,"%Uint8Array%":typeof Uint8Array>"u"?Mt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Mt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Mt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Mt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Mt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Mt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Mt:WeakSet};if(Un)try{null.error}catch(e){var Ime=Un(Un(e));lf["%Error.prototype%"]=Ime}var Rme=function e(t){var r;if(t==="%AsyncFunction%")r=CS("async function () {}");else if(t==="%GeneratorFunction%")r=CS("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=CS("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Un&&(r=Un(a.prototype))}return lf[t]=r,r},iN={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},pm=FD,ib=Fme,Lme=pm.call(Function.call,Array.prototype.concat),Mme=pm.call(Function.apply,Array.prototype.splice),oN=pm.call(Function.call,String.prototype.replace),ob=pm.call(Function.call,String.prototype.slice),jme=pm.call(Function.call,RegExp.prototype.exec),$me=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ume=/\\(\\)?/g,Hme=function(t){var r=ob(t,0,1),n=ob(t,-1);if(r==="%"&&n!=="%")throw new np("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new np("invalid intrinsic syntax, expected opening `%`");var a=[];return oN(t,$me,function(i,o,s,u){a[a.length]=s?oN(u,Ume,"$1"):o||i}),a},zme=function(t,r){var n=t,a;if(ib(iN,n)&&(a=iN[n],n="%"+a[0]+"%"),ib(lf,n)){var i=lf[n];if(i===fd&&(i=Rme(n)),typeof i>"u"&&!r)throw new Td("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:i}}throw new np("intrinsic "+t+" does not exist!")},BD=function(t,r){if(typeof t!="string"||t.length===0)throw new Td("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Td('"allowMissing" argument must be a boolean');if(jme(/^%?[^%]*%?$/,t)===null)throw new np("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Hme(t),a=n.length>0?n[0]:"",i=zme("%"+a+"%",r),o=i.name,s=i.value,u=!1,l=i.alias;l&&(a=l[0],Mme(n,Lme([0,1],l)));for(var c=1,f=!0;c<n.length;c+=1){var d=n[c],p=ob(d,0,1),v=ob(d,-1);if((p==='"'||p==="'"||p==="`"||v==='"'||v==="'"||v==="`")&&p!==v)throw new np("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(u=!0),a+="."+d,o="%"+a+"%",ib(lf,o))s=lf[o];else if(s!=null){if(!(d in s)){if(!r)throw new Td("base intrinsic for "+t+" exists, but the property is not available.");return}if(uf&&c+1>=n.length){var h=uf(s,d);f=!!h,f&&"get"in h&&!("originalValue"in h.get)?s=h.get:s=s[d]}else f=ib(s,d),s=s[d];f&&!u&&(lf[o]=s)}}return s},Pq={exports:{}};(function(e){var t=FD,r=BD,n=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||t.call(a,n),o=r("%Object.getOwnPropertyDescriptor%",!0),s=r("%Object.defineProperty%",!0),u=r("%Math.max%");if(s)try{s({},"a",{value:1})}catch(c){s=null}e.exports=function(f){var d=i(t,a,arguments);if(o&&s){var p=o(d,"length");p.configurable&&s(d,"length",{value:1+u(0,f.length-(arguments.length-1))})}return d};var l=function(){return i(t,n,arguments)};s?s(e.exports,"apply",{value:l}):e.exports.apply=l})(Pq);var Vme=Pq.exports,Nq=BD,Iq=Vme,Wme=Iq(Nq("String.prototype.indexOf")),Gme=function(t,r){var n=Nq(t,!!r);return typeof n=="function"&&Wme(t,".prototype.")>-1?Iq(n):n};const Kme={},qme=Object.freeze(Object.defineProperty({__proto__:null,default:Kme},Symbol.toStringTag,{value:"Module"})),Xme=aie(qme);var PD=typeof Map=="function"&&Map.prototype,AS=Object.getOwnPropertyDescriptor&&PD?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,sb=PD&&AS&&typeof AS.get=="function"?AS.get:null,sN=PD&&Map.prototype.forEach,ND=typeof Set=="function"&&Set.prototype,kS=Object.getOwnPropertyDescriptor&&ND?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ub=ND&&kS&&typeof kS.get=="function"?kS.get:null,uN=ND&&Set.prototype.forEach,Yme=typeof WeakMap=="function"&&WeakMap.prototype,sg=Yme?WeakMap.prototype.has:null,Jme=typeof WeakSet=="function"&&WeakSet.prototype,ug=Jme?WeakSet.prototype.has:null,Zme=typeof WeakRef=="function"&&WeakRef.prototype,lN=Zme?WeakRef.prototype.deref:null,Qme=Boolean.prototype.valueOf,eye=Object.prototype.toString,tye=Function.prototype.toString,rye=String.prototype.match,ID=String.prototype.slice,cl=String.prototype.replace,nye=String.prototype.toUpperCase,cN=String.prototype.toLowerCase,Rq=RegExp.prototype.test,fN=Array.prototype.concat,ns=Array.prototype.join,aye=Array.prototype.slice,dN=Math.floor,G8=typeof BigInt=="function"?BigInt.prototype.valueOf:null,TS=Object.getOwnPropertySymbols,K8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ap=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ea=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ap||"symbol")?Symbol.toStringTag:null,Lq=Object.prototype.propertyIsEnumerable,pN=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function hN(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Rq.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-dN(-e):dN(e);if(n!==e){var a=String(n),i=ID.call(t,a.length+1);return cl.call(a,r,"$&_")+"."+cl.call(cl.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return cl.call(t,r,"$&_")}var q8=Xme,vN=q8.custom,gN=jq(vN)?vN:null,iye=function e(t,r,n,a){var i=r||{};if(tl(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(tl(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=tl(i,"customInspect")?i.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(tl(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(tl(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Uq(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return s?hN(t,u):u}if(typeof t=="bigint"){var l=String(t)+"n";return s?hN(t,l):l}var c=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return X8(t)?"[Array]":"[Object]";var f=Sye(i,n);if(typeof a>"u")a=[];else if($q(a,t)>=0)return"[Circular]";function d(q,ee,J){if(ee&&(a=aye.call(a),a.push(ee)),J){var Z={depth:i.depth};return tl(i,"quoteStyle")&&(Z.quoteStyle=i.quoteStyle),e(q,Z,n+1,a)}return e(q,i,n+1,a)}if(typeof t=="function"&&!mN(t)){var p=hye(t),v=Ty(t,d);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(v.length>0?" { "+ns.call(v,", ")+" }":"")}if(jq(t)){var h=ap?cl.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):K8.call(t);return typeof t=="object"&&!ap?wh(h):h}if(bye(t)){for(var g="<"+cN.call(String(t.nodeName)),m=t.attributes||[],y=0;y<m.length;y++)g+=" "+m[y].name+"="+Mq(oye(m[y].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+cN.call(String(t.nodeName))+">",g}if(X8(t)){if(t.length===0)return"[]";var x=Ty(t,d);return f&&!Eye(x)?"["+Y8(x,f)+"]":"[ "+ns.call(x,", ")+" ]"}if(uye(t)){var b=Ty(t,d);return!("cause"in Error.prototype)&&"cause"in t&&!Lq.call(t,"cause")?"{ ["+String(t)+"] "+ns.call(fN.call("[cause]: "+d(t.cause),b),", ")+" }":b.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ns.call(b,", ")+" }"}if(typeof t=="object"&&o){if(gN&&typeof t[gN]=="function"&&q8)return q8(t,{depth:c-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(vye(t)){var E=[];return sN&&sN.call(t,function(q,ee){E.push(d(ee,t,!0)+" => "+d(q,t))}),yN("Map",sb.call(t),E,f)}if(yye(t)){var S=[];return uN&&uN.call(t,function(q){S.push(d(q,t))}),yN("Set",ub.call(t),S,f)}if(gye(t))return DS("WeakMap");if(xye(t))return DS("WeakSet");if(mye(t))return DS("WeakRef");if(cye(t))return wh(d(Number(t)));if(dye(t))return wh(d(G8.call(t)));if(fye(t))return wh(Qme.call(t));if(lye(t))return wh(d(String(t)));if(!sye(t)&&!mN(t)){var w=Ty(t,d),C=pN?pN(t)===Object.prototype:t instanceof Object||t.constructor===Object,_=t instanceof Object?"":"null prototype",O=!C&&Ea&&Object(t)===t&&Ea in t?ID.call(cc(t),8,-1):_?"Object":"",P=C||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",F=P+(O||_?"["+ns.call(fN.call([],O||[],_||[]),": ")+"] ":"");return w.length===0?F+"{}":f?F+"{"+Y8(w,f)+"}":F+"{ "+ns.call(w,", ")+" }"}return String(t)};function Mq(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function oye(e){return cl.call(String(e),/"/g,""")}function X8(e){return cc(e)==="[object Array]"&&(!Ea||!(typeof e=="object"&&Ea in e))}function sye(e){return cc(e)==="[object Date]"&&(!Ea||!(typeof e=="object"&&Ea in e))}function mN(e){return cc(e)==="[object RegExp]"&&(!Ea||!(typeof e=="object"&&Ea in e))}function uye(e){return cc(e)==="[object Error]"&&(!Ea||!(typeof e=="object"&&Ea in e))}function lye(e){return cc(e)==="[object String]"&&(!Ea||!(typeof e=="object"&&Ea in e))}function cye(e){return cc(e)==="[object Number]"&&(!Ea||!(typeof e=="object"&&Ea in e))}function fye(e){return cc(e)==="[object Boolean]"&&(!Ea||!(typeof e=="object"&&Ea in e))}function jq(e){if(ap)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!K8)return!1;try{return K8.call(e),!0}catch(t){}return!1}function dye(e){if(!e||typeof e!="object"||!G8)return!1;try{return G8.call(e),!0}catch(t){}return!1}var pye=Object.prototype.hasOwnProperty||function(e){return e in this};function tl(e,t){return pye.call(e,t)}function cc(e){return eye.call(e)}function hye(e){if(e.name)return e.name;var t=rye.call(tye.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function $q(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function vye(e){if(!sb||!e||typeof e!="object")return!1;try{sb.call(e);try{ub.call(e)}catch(t){return!0}return e instanceof Map}catch(t){}return!1}function gye(e){if(!sg||!e||typeof e!="object")return!1;try{sg.call(e,sg);try{ug.call(e,ug)}catch(t){return!0}return e instanceof WeakMap}catch(t){}return!1}function mye(e){if(!lN||!e||typeof e!="object")return!1;try{return lN.call(e),!0}catch(t){}return!1}function yye(e){if(!ub||!e||typeof e!="object")return!1;try{ub.call(e);try{sb.call(e)}catch(t){return!0}return e instanceof Set}catch(t){}return!1}function xye(e){if(!ug||!e||typeof e!="object")return!1;try{ug.call(e,ug);try{sg.call(e,sg)}catch(t){return!0}return e instanceof WeakSet}catch(t){}return!1}function bye(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Uq(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Uq(ID.call(e,0,t.maxStringLength),t)+n}var a=cl.call(cl.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,wye);return Mq(a,"single",t)}function wye(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+nye.call(t.toString(16))}function wh(e){return"Object("+e+")"}function DS(e){return e+" { ? }"}function yN(e,t,r,n){var a=n?Y8(r,n):ns.call(r,", ");return e+" ("+t+") {"+a+"}"}function Eye(e){for(var t=0;t<e.length;t++)if($q(e[t],`
|
||
`)>=0)return!1;return!0}function Sye(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=ns.call(Array(e.indent+1)," ");else return null;return{base:r,prev:ns.call(Array(t+1),r)}}function Y8(e,t){if(e.length===0)return"";var r=`
|
||
`+t.prev+t.base;return r+ns.call(e,","+r)+`
|
||
`+t.prev}function Ty(e,t){var r=X8(e),n=[];if(r){n.length=e.length;for(var a=0;a<e.length;a++)n[a]=tl(e,a)?t(e[a],e):""}var i=typeof TS=="function"?TS(e):[],o;if(ap){o={};for(var s=0;s<i.length;s++)o["$"+i[s]]=i[s]}for(var u in e)tl(e,u)&&(r&&String(Number(u))===u&&u<e.length||ap&&o["$"+u]instanceof Symbol||(Rq.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if(typeof TS=="function")for(var l=0;l<i.length;l++)Lq.call(e,i[l])&&n.push("["+t(i[l])+"]: "+t(e[i[l]],e));return n}var RD=BD,Wp=Gme,Cye=iye,_ye=RD("%TypeError%"),Dy=RD("%WeakMap%",!0),Oy=RD("%Map%",!0),Aye=Wp("WeakMap.prototype.get",!0),kye=Wp("WeakMap.prototype.set",!0),Tye=Wp("WeakMap.prototype.has",!0),Dye=Wp("Map.prototype.get",!0),Oye=Wp("Map.prototype.set",!0),Fye=Wp("Map.prototype.has",!0),LD=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},Bye=function(e,t){var r=LD(e,t);return r&&r.value},Pye=function(e,t,r){var n=LD(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},Nye=function(e,t){return!!LD(e,t)},Iye=function(){var t,r,n,a={assert:function(i){if(!a.has(i))throw new _ye("Side channel does not contain "+Cye(i))},get:function(i){if(Dy&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Aye(t,i)}else if(Oy){if(r)return Dye(r,i)}else if(n)return Bye(n,i)},has:function(i){if(Dy&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Tye(t,i)}else if(Oy){if(r)return Fye(r,i)}else if(n)return Nye(n,i);return!1},set:function(i,o){Dy&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new Dy),kye(t,i,o)):Oy?(r||(r=new Oy),Oye(r,i,o)):(n||(n={key:{},next:null}),Pye(n,i,o))}};return a},Rye=String.prototype.replace,Lye=/%20/g,OS={RFC1738:"RFC1738",RFC3986:"RFC3986"},MD={default:OS.RFC3986,formatters:{RFC1738:function(e){return Rye.call(e,Lye,"+")},RFC3986:function(e){return String(e)}},RFC1738:OS.RFC1738,RFC3986:OS.RFC3986},Mye=MD,FS=Object.prototype.hasOwnProperty,Vc=Array.isArray,Xo=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),jye=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Vc(n)){for(var a=[],i=0;i<n.length;++i)typeof n[i]<"u"&&a.push(n[i]);r.obj[r.prop]=a}}},Hq=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},a=0;a<t.length;++a)typeof t[a]<"u"&&(n[a]=t[a]);return n},$ye=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(Vc(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!FS.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var a=t;return Vc(t)&&!Vc(r)&&(a=Hq(t,n)),Vc(t)&&Vc(r)?(r.forEach(function(i,o){if(FS.call(t,o)){var s=t[o];s&&typeof s=="object"&&i&&typeof i=="object"?t[o]=e(s,i,n):t.push(i)}else t[o]=i}),t):Object.keys(r).reduce(function(i,o){var s=r[o];return FS.call(i,o)?i[o]=e(i[o],s,n):i[o]=s,i},a)},Uye=function(t,r){return Object.keys(r).reduce(function(n,a){return n[a]=r[a],n},t)},Hye=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(a){return n}},zye=function(t,r,n,a,i){if(t.length===0)return t;var o=t;if(typeof t=="symbol"?o=Symbol.prototype.toString.call(t):typeof t!="string"&&(o=String(t)),n==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var s="",u=0;u<o.length;++u){var l=o.charCodeAt(u);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===Mye.RFC1738&&(l===40||l===41)){s+=o.charAt(u);continue}if(l<128){s=s+Xo[l];continue}if(l<2048){s=s+(Xo[192|l>>6]+Xo[128|l&63]);continue}if(l<55296||l>=57344){s=s+(Xo[224|l>>12]+Xo[128|l>>6&63]+Xo[128|l&63]);continue}u+=1,l=65536+((l&1023)<<10|o.charCodeAt(u)&1023),s+=Xo[240|l>>18]+Xo[128|l>>12&63]+Xo[128|l>>6&63]+Xo[128|l&63]}return s},Vye=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],a=0;a<r.length;++a)for(var i=r[a],o=i.obj[i.prop],s=Object.keys(o),u=0;u<s.length;++u){var l=s[u],c=o[l];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:o,prop:l}),n.push(c))}return jye(r),t},Wye=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Gye=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Kye=function(t,r){return[].concat(t,r)},qye=function(t,r){if(Vc(t)){for(var n=[],a=0;a<t.length;a+=1)n.push(r(t[a]));return n}return r(t)},zq={arrayToObject:Hq,assign:Uye,combine:Kye,compact:Vye,decode:Hye,encode:zye,isBuffer:Gye,isRegExp:Wye,maybeMap:qye,merge:$ye},Vq=Iye,fx=zq,lg=MD,Xye=Object.prototype.hasOwnProperty,xN={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Vs=Array.isArray,Yye=Array.prototype.push,Wq=function(e,t){Yye.apply(e,Vs(t)?t:[t])},Jye=Date.prototype.toISOString,bN=lg.default,ha={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:fx.encode,encodeValuesOnly:!1,format:bN,formatter:lg.formatters[bN],indices:!1,serializeDate:function(t){return Jye.call(t)},skipNulls:!1,strictNullHandling:!1},Zye=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},BS={},Qye=function e(t,r,n,a,i,o,s,u,l,c,f,d,p,v,h,g){for(var m=t,y=g,x=0,b=!1;(y=y.get(BS))!==void 0&&!b;){var E=y.get(t);if(x+=1,typeof E<"u"){if(E===x)throw new RangeError("Cyclic object value");b=!0}typeof y.get(BS)>"u"&&(x=0)}if(typeof u=="function"?m=u(r,m):m instanceof Date?m=f(m):n==="comma"&&Vs(m)&&(m=fx.maybeMap(m,function(Z){return Z instanceof Date?f(Z):Z})),m===null){if(i)return s&&!v?s(r,ha.encoder,h,"key",d):r;m=""}if(Zye(m)||fx.isBuffer(m)){if(s){var S=v?r:s(r,ha.encoder,h,"key",d);return[p(S)+"="+p(s(m,ha.encoder,h,"value",d))]}return[p(r)+"="+p(String(m))]}var w=[];if(typeof m>"u")return w;var C;if(n==="comma"&&Vs(m))v&&s&&(m=fx.maybeMap(m,s)),C=[{value:m.length>0?m.join(",")||null:void 0}];else if(Vs(u))C=u;else{var _=Object.keys(m);C=l?_.sort(l):_}for(var O=a&&Vs(m)&&m.length===1?r+"[]":r,P=0;P<C.length;++P){var F=C[P],q=typeof F=="object"&&typeof F.value<"u"?F.value:m[F];if(!(o&&q===null)){var ee=Vs(m)?typeof n=="function"?n(O,F):O:O+(c?"."+F:"["+F+"]");g.set(t,x);var J=Vq();J.set(BS,g),Wq(w,e(q,ee,n,a,i,o,n==="comma"&&v&&Vs(m)?null:s,u,l,c,f,d,p,v,h,J))}}return w},e2e=function(t){if(!t)return ha;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||ha.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=lg.default;if(typeof t.format<"u"){if(!Xye.call(lg.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var a=lg.formatters[n],i=ha.filter;return(typeof t.filter=="function"||Vs(t.filter))&&(i=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:ha.addQueryPrefix,allowDots:typeof t.allowDots>"u"?ha.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:ha.charsetSentinel,delimiter:typeof t.delimiter>"u"?ha.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:ha.encode,encoder:typeof t.encoder=="function"?t.encoder:ha.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:ha.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:ha.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:ha.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:ha.strictNullHandling}},t2e=function(e,t){var r=e,n=e2e(t),a,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):Vs(n.filter)&&(i=n.filter,a=i);var o=[];if(typeof r!="object"||r===null)return"";var s;t&&t.arrayFormat in xN?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var u=xN[s];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=u==="comma"&&t&&t.commaRoundTrip;a||(a=Object.keys(r)),n.sort&&a.sort(n.sort);for(var c=Vq(),f=0;f<a.length;++f){var d=a[f];n.skipNulls&&r[d]===null||Wq(o,Qye(r[d],d,u,l,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,c))}var p=o.join(n.delimiter),v=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),p.length>0?v+p:""},ip=zq,J8=Object.prototype.hasOwnProperty,r2e=Array.isArray,$n={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ip.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},n2e=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Gq=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},a2e="utf8=%26%2310003%3B",i2e="utf8=%E2%9C%93",o2e=function(t,r){var n={__proto__:null},a=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=r.parameterLimit===1/0?void 0:r.parameterLimit,o=a.split(r.delimiter,i),s=-1,u,l=r.charset;if(r.charsetSentinel)for(u=0;u<o.length;++u)o[u].indexOf("utf8=")===0&&(o[u]===i2e?l="utf-8":o[u]===a2e&&(l="iso-8859-1"),s=u,u=o.length);for(u=0;u<o.length;++u)if(u!==s){var c=o[u],f=c.indexOf("]="),d=f===-1?c.indexOf("="):f+1,p,v;d===-1?(p=r.decoder(c,$n.decoder,l,"key"),v=r.strictNullHandling?null:""):(p=r.decoder(c.slice(0,d),$n.decoder,l,"key"),v=ip.maybeMap(Gq(c.slice(d+1),r),function(h){return r.decoder(h,$n.decoder,l,"value")})),v&&r.interpretNumericEntities&&l==="iso-8859-1"&&(v=n2e(v)),c.indexOf("[]=")>-1&&(v=r2e(v)?[v]:v),J8.call(n,p)?n[p]=ip.combine(n[p],v):n[p]=v}return n},s2e=function(e,t,r,n){for(var a=n?t:Gq(t,r),i=e.length-1;i>=0;--i){var o,s=e[i];if(s==="[]"&&r.parseArrays)o=[].concat(a);else{o=r.plainObjects?Object.create(null):{};var u=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,l=parseInt(u,10);!r.parseArrays&&u===""?o={0:a}:!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(o=[],o[l]=a):u!=="__proto__"&&(o[u]=a)}a=o}return a},u2e=function(t,r,n,a){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,u=n.depth>0&&o.exec(i),l=u?i.slice(0,u.index):i,c=[];if(l){if(!n.plainObjects&&J8.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;n.depth>0&&(u=s.exec(i))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&J8.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+i.slice(u.index)+"]"),s2e(c,r,n,a)}},l2e=function(t){if(!t)return $n;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?$n.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?$n.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:$n.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:$n.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:$n.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:$n.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:$n.comma,decoder:typeof t.decoder=="function"?t.decoder:$n.decoder,delimiter:typeof t.delimiter=="string"||ip.isRegExp(t.delimiter)?t.delimiter:$n.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:$n.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:$n.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:$n.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:$n.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:$n.strictNullHandling}},c2e=function(e,t){var r=l2e(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?o2e(e,r):e,a=r.plainObjects?Object.create(null):{},i=Object.keys(n),o=0;o<i.length;++o){var s=i[o],u=u2e(s,n[s],r,typeof e=="string");a=ip.merge(a,u,r)}return r.allowSparse===!0?a:ip.compact(a)},f2e=t2e,d2e=c2e,p2e=MD,h2e={formats:p2e,parse:d2e,stringify:f2e};const v2e=iie(h2e),Kq=PG();i0.defaults.timeout=120*1e3;i0.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8";i0.defaults.baseURL="";let Z8;function Q8(e){e||Z8&&Z8.close()}i0.interceptors.request.use(e=>{e.noShadow!==!0&&(Z8=zge.service({lock:!0,customClass:"z-index999",text:"数据加载中,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}));let t=Kq.token||sessionStorage.getItem("access_token");t&&(e.headers.Authorization="Bearer "+t);let r=e.url;if(e.method==="get"&&e.params){r+="?";let n=Object.keys(e.params);for(const a of n)r+=`${a}=${encodeURIComponent(e.params[a]?e.params[a]:"")}&`;r=r.substring(0,r.length-1),e.params={}}return e.method==="post"&&e.headers["Content-Type"]!=="application/json"&&(e.data=v2e.stringify(e.data)),e.url=r,e},e=>(Q8(e.config.noShadow),Ya.error("请求错误"),Promise.reject(e)));i0.interceptors.response.use(e=>{Q8(e.config.noShadow);const t=[1001,200,0];if(t.includes(e.data.code)){if(e.data&&e.data.version){let r=sessionStorage.getItem("version");r&&r!=e.data.version&&Kq.reload(),sessionStorage.setItem("version",e.data.version)}return Promise.resolve(e)}else if(!t.includes(e.data.code))return e.data.message!==void 0&&e.data.message!==""?Ya.error(e.data.message||e.data.msg):Ya.error("请求失败,请稍后再试"),Promise.reject(e)},e=>(Q8(e.config.noShadow),Ya.error("请求失败,请稍后再试"),Promise.reject(e)));function o0(e,t,r){return new Promise((n,a)=>{i0.post(e,t,r).then(i=>{n(i.data)},i=>{a(i.data)}).catch(i=>{a(i.data)})})}function KE(e,t,r){return new Promise((n,a)=>{i0.get(e,{params:t,...r}).then(i=>{n(i.data)}).catch(i=>{a(i)})})}const g2e="api",Ua=`/${g2e}-dev`;function m2e(e){return KE(`${Ua}/knowledgeBase/getChild`,e)}function y2e(e){return KE(`${Ua}/knowledgeBase/get`,e)}function Cet(e){return o0(`${Ua}/knowledgeBase/addName`,e)}function x2e(e){return o0(`${Ua}/knowledgeBase/updateName`,e)}function _et(e){return o0(`${Ua}/knowledgeBase/delete`,e)}function b2e(){return`${Ua}/knowledgeBase/uploadImage`}function w2e(){return`${Ua}/knowledgeBase/uploadVideo`}function E2e(e){return o0(`${Ua}/knowledgeBase/addContent`,e)}function S2e(e){return o0(`${Ua}/knowledgeBase/updateContent`,e)}function C2e(e){return KE(`${Ua}/knowledgeBase/search`,e)}function _2e(e){return KE(`${Ua}/knowledgeBase/getPath`,e)}function A2e(e){return o0(`${Ua}/knowledgeBase/move`,e)}function Aet(e,t){return o0(`${Ua}/knowledgeBase/add_batch`,e,t)}function k2e(){return`${Ua}/knowledgeBase/downloadImage`}function T2e(){return`${Ua}/knowledgeBase/downloadVideo`}const _u={required:{required:!0,message:"此项为必填",trigger:["blur"]},charsLength10:{min:0,max:10,message:"最大长度为10",trigger:["blur","change"]},charsLength100:{min:0,max:100,message:"最大长度为100",trigger:["blur","change"]},cantOnlySpace:{pattern:/(^\s*([^\s]+\s*)+\s*$)|(^[^\s]*$)/,message:"不能只空格",trigger:["blur","change"]}};function PS(){return{validator(e,t,r){/[<>/\\|:"'*??]+/im.test(t)?r(new Error("不能包含特殊字符")):r()},trigger:["change","blur"]}}function wN(e){return{validator(t,r,n){r.replace(/[^\x00-\xff]/g,"01").length>e?n(new Error(`最大长度为${e}个字节(数字英文是一个字节,中文是两个字节)`)):n()},trigger:["change","blur"]}}/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var qq=1252,D2e=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],jD={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},$D=function(e){D2e.indexOf(e)!=-1&&(qq=jD[0]=e)};function O2e(){$D(1252)}var Fo=function(e){$D(e)};function Xq(){Fo(1200),O2e()}function EN(e){for(var t=[],r=0,n=e.length;r<n;++r)t[r]=e.charCodeAt(r);return t}function F2e(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}function Yq(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var zv=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return t==255&&r==254?F2e(e.slice(2)):t==254&&r==255?Yq(e.slice(2)):t==65279?e.slice(1):e},Fy=function(t){return String.fromCharCode(t)},SN=function(t){return String.fromCharCode(t)},nl,fl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function CN(e){for(var t="",r=0,n=0,a=0,i=0,o=0,s=0,u=0,l=0;l<e.length;)r=e.charCodeAt(l++),i=r>>2,n=e.charCodeAt(l++),o=(r&3)<<4|n>>4,a=e.charCodeAt(l++),s=(n&15)<<2|a>>6,u=a&63,isNaN(n)?s=u=64:isNaN(a)&&(u=64),t+=fl.charAt(i)+fl.charAt(o)+fl.charAt(s)+fl.charAt(u);return t}function Ai(e){var t="",r=0,n=0,a=0,i=0,o=0,s=0,u=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)i=fl.indexOf(e.charAt(l++)),o=fl.indexOf(e.charAt(l++)),r=i<<2|o>>4,t+=String.fromCharCode(r),s=fl.indexOf(e.charAt(l++)),n=(o&15)<<4|s>>2,s!==64&&(t+=String.fromCharCode(n)),u=fl.indexOf(e.charAt(l++)),a=(s&3)<<6|u,u!==64&&(t+=String.fromCharCode(a));return t}var Kt=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),s0=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function ql(e){return Kt?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function _N(e){return Kt?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var _o=function(t){return Kt?s0(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function u0(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function UD(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return UD(new Uint8Array(e));for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t}var al=Kt?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:s0(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),a=0;for(t=0,r=0;t<e.length;r+=a,++t)if(a=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))};function B2e(e){for(var t=[],r=0,n=e.length+250,a=ql(e.length+255),i=0;i<e.length;++i){var o=e.charCodeAt(i);if(o<128)a[r++]=o;else if(o<2048)a[r++]=192|o>>6&31,a[r++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var s=e.charCodeAt(++i)&1023;a[r++]=240|o>>8&7,a[r++]=128|o>>2&63,a[r++]=128|s>>6&15|(o&3)<<4,a[r++]=128|s&63}else a[r++]=224|o>>12&15,a[r++]=128|o>>6&63,a[r++]=128|o&63;r>n&&(t.push(a.slice(0,r)),r=0,a=ql(65535),n=65530)}return t.push(a.slice(0,r)),al(t)}var ja=/\u0000/g,Vv=/[\u0001-\u0006]/g;function Dd(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function Bo(e,t){var r=""+e;return r.length>=t?r:Xr("0",t-r.length)+r}function HD(e,t){var r=""+e;return r.length>=t?r:Xr(" ",t-r.length)+r}function lb(e,t){var r=""+e;return r.length>=t?r:r+Xr(" ",t-r.length)}function P2e(e,t){var r=""+Math.round(e);return r.length>=t?r:Xr("0",t-r.length)+r}function N2e(e,t){var r=""+e;return r.length>=t?r:Xr("0",t-r.length)+r}var AN=Math.pow(2,32);function O0(e,t){if(e>AN||e<-AN)return P2e(e,t);var r=Math.round(e);return N2e(r,t)}function cb(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var kN=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],NS=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function I2e(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var Ct={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},TN={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},R2e={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function fb(e,t,r){for(var n=e<0?-1:1,a=e*n,i=0,o=1,s=0,u=1,l=0,c=0,f=Math.floor(a);l<t&&(f=Math.floor(a),s=f*o+i,c=f*l+u,!(a-f<5e-8));)a=1/(a-f),i=o,o=s,u=l,l=c;if(c>t&&(l>t?(c=u,s=i):(c=l,s=o)),!r)return[0,n*s,c];var d=Math.floor(n*s/c);return[d,n*s-d*c,c]}function Qc(e,t,r){if(e>2958465||e<0)return null;var n=e|0,a=Math.floor(86400*(e-n)),i=0,o=[],s={D:n,T:a,u:86400*(e-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(n+=1462),s.u>.9999&&(s.u=0,++a==86400&&(s.T=a=0,++n,++s.D)),n===60)o=r?[1317,10,29]:[1900,2,29],i=3;else if(n===0)o=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var u=new Date(1900,0,1);u.setDate(u.getDate()+n-1),o=[u.getFullYear(),u.getMonth()+1,u.getDate()],i=u.getDay(),n<60&&(i=(i+6)%7),r&&(i=H2e(u,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=a%60,a=Math.floor(a/60),s.M=a%60,a=Math.floor(a/60),s.H=a,s.q=i,s}var Jq=new Date(1899,11,31,0,0,0),L2e=Jq.getTime(),M2e=new Date(1900,2,1,0,0,0);function Zq(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=M2e&&(r+=24*60*60*1e3),(r-(L2e+(e.getTimezoneOffset()-Jq.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function zD(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function j2e(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function $2e(e){var t=e<0?12:11,r=zD(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function U2e(e){var t=zD(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function Qg(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=$2e(e):t===10?r=e.toFixed(10).substr(0,12):r=U2e(e),zD(j2e(r.toUpperCase()))}function jf(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Qg(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return no(14,Zq(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function H2e(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function z2e(e,t,r,n){var a="",i=0,o=0,s=r.y,u,l=0;switch(e){case 98:s=r.y+543;case 121:switch(t.length){case 1:case 2:u=s%100,l=2;break;default:u=s%1e4,l=4;break}break;case 109:switch(t.length){case 1:case 2:u=r.m,l=t.length;break;case 3:return NS[r.m-1][1];case 5:return NS[r.m-1][0];default:return NS[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:u=r.d,l=t.length;break;case 3:return kN[r.q][0];default:return kN[r.q][1]}break;case 104:switch(t.length){case 1:case 2:u=1+(r.H+11)%12,l=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:u=r.H,l=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:u=r.M,l=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?Bo(r.S,t.length):(n>=2?o=n===3?1e3:100:o=n===1?10:1,i=Math.round(o*(r.S+r.u)),i>=60*o&&(i=0),t==="s"?i===0?"0":""+i/o:(a=Bo(i,2+n),t==="ss"?a.substr(0,2):"."+a.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":u=r.D*24+r.H;break;case"[m]":case"[mm]":u=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":u=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}l=t.length===3?1:2;break;case 101:u=s,l=1;break}var c=l>0?Bo(u,l):"";return c}function dl(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var Qq=/%/g;function V2e(e,t,r){var n=t.replace(Qq,""),a=t.length-n.length;return tu(e,n,r*Math.pow(10,2*a))+Xr("%",a)}function W2e(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return tu(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function eX(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+eX(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),r.indexOf("e")===-1){var o=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+i):r+="E+"+(o-i);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,u,l,c){return u+l+c.substr(0,(a+i)%a)+"."+c.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var tX=/# (\?+)( ?)\/( ?)(\d+)/;function G2e(e,t,r){var n=parseInt(e[4],10),a=Math.round(t*n),i=Math.floor(a/n),o=a-i*n,s=n;return r+(i===0?"":""+i)+" "+(o===0?Xr(" ",e[1].length+1+e[4].length):HD(o,e[1].length)+e[2]+"/"+e[3]+Bo(s,e[4].length))}function K2e(e,t,r){return r+(t===0?"":""+t)+Xr(" ",e[1].length+2+e[4].length)}var rX=/^#*0*\.([0#]+)/,nX=/\).*[0#]/,aX=/\(###\) ###\\?-####/;function Ba(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function DN(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function ON(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function q2e(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function X2e(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function ji(e,t,r){if(e.charCodeAt(0)===40&&!t.match(nX)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?ji("n",n,r):"("+ji("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return W2e(e,t,r);if(t.indexOf("%")!==-1)return V2e(e,t,r);if(t.indexOf("E")!==-1)return eX(t,r);if(t.charCodeAt(0)===36)return"$"+ji(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,o,s,u=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+O0(u,t.length);if(t.match(/^[#?]+$/))return a=O0(r,0),a==="0"&&(a=""),a.length>t.length?a:Ba(t.substr(0,t.length-a.length))+a;if(i=t.match(tX))return G2e(i,u,l);if(t.match(/^#+0+$/))return l+O0(u,t.length-t.indexOf("0"));if(i=t.match(rX))return a=DN(r,i[1].length).replace(/^([^\.]+)$/,"$1."+Ba(i[1])).replace(/\.$/,"."+Ba(i[1])).replace(/\.(\d*)$/,function(v,h){return"."+h+Xr("0",Ba(i[1]).length-h.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return l+DN(u,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return l+dl(O0(u,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+ji(e,t,-r):dl(""+(Math.floor(r)+q2e(r,i[1].length)))+"."+Bo(ON(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return ji(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=Dd(ji(e,t.replace(/[\\-]/g,""),r)),o=0,Dd(Dd(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return o<a.length?a.charAt(o++):v==="0"?"0":""}));if(t.match(aX))return a=ji(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var c="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),s=fb(u,Math.pow(10,o)-1,!1),a=""+l,c=tu("n",i[1],s[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),a+=c+i[2]+"/"+i[3],c=lb(s[2],o),c.length<i[4].length&&(c=Ba(i[4].substr(i[4].length-c.length))+c),a+=c,a;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),s=fb(u,Math.pow(10,o)-1,!0),l+(s[0]||(s[1]?"":"0"))+" "+(s[1]?HD(s[1],o)+i[2]+"/"+i[3]+lb(s[2],o):Xr(" ",2*o+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=O0(r,0),t.length<=a.length?a:Ba(t.substr(0,t.length-a.length))+a;if(i=t.match(/^([#0?]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=a.indexOf(".");var f=t.indexOf(".")-o,d=t.length-a.length-f;return Ba(t.substr(0,f)+a+t.substr(t.length-d))}if(i=t.match(/^00,000\.([#0]*0)$/))return o=ON(r,i[1].length),r<0?"-"+ji(e,t,-r):dl(X2e(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?Bo(0,3-v.length):"")+v})+"."+Bo(o,i[1].length);switch(t){case"###,##0.00":return ji(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var p=dl(O0(u,0));return p!=="0"?l+p:"";case"###,###.00":return ji(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return ji(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function Y2e(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return tu(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function J2e(e,t,r){var n=t.replace(Qq,""),a=t.length-n.length;return tu(e,n,r*Math.pow(10,2*a))+Xr("%",a)}function iX(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+iX(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),!r.match(/[Ee]/)){var o=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+i):r+="E+"+(o-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,u,l,c){return u+l+c.substr(0,(a+i)%a)+"."+c.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function Zo(e,t,r){if(e.charCodeAt(0)===40&&!t.match(nX)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Zo("n",n,r):"("+Zo("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return Y2e(e,t,r);if(t.indexOf("%")!==-1)return J2e(e,t,r);if(t.indexOf("E")!==-1)return iX(t,r);if(t.charCodeAt(0)===36)return"$"+Zo(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,o,s,u=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+Bo(u,t.length);if(t.match(/^[#?]+$/))return a=""+r,r===0&&(a=""),a.length>t.length?a:Ba(t.substr(0,t.length-a.length))+a;if(i=t.match(tX))return K2e(i,u,l);if(t.match(/^#+0+$/))return l+Bo(u,t.length-t.indexOf("0"));if(i=t.match(rX))return a=(""+r).replace(/^([^\.]+)$/,"$1."+Ba(i[1])).replace(/\.$/,"."+Ba(i[1])),a=a.replace(/\.(\d*)$/,function(v,h){return"."+h+Xr("0",Ba(i[1]).length-h.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return l+(""+u).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return l+dl(""+u);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Zo(e,t,-r):dl(""+r)+"."+Xr("0",i[1].length);if(i=t.match(/^#,#*,#0/))return Zo(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=Dd(Zo(e,t.replace(/[\\-]/g,""),r)),o=0,Dd(Dd(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return o<a.length?a.charAt(o++):v==="0"?"0":""}));if(t.match(aX))return a=Zo(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var c="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),s=fb(u,Math.pow(10,o)-1,!1),a=""+l,c=tu("n",i[1],s[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),a+=c+i[2]+"/"+i[3],c=lb(s[2],o),c.length<i[4].length&&(c=Ba(i[4].substr(i[4].length-c.length))+c),a+=c,a;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),s=fb(u,Math.pow(10,o)-1,!0),l+(s[0]||(s[1]?"":"0"))+" "+(s[1]?HD(s[1],o)+i[2]+"/"+i[3]+lb(s[2],o):Xr(" ",2*o+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=""+r,t.length<=a.length?a:Ba(t.substr(0,t.length-a.length))+a;if(i=t.match(/^([#0]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=a.indexOf(".");var f=t.indexOf(".")-o,d=t.length-a.length-f;return Ba(t.substr(0,f)+a+t.substr(t.length-d))}if(i=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+Zo(e,t,-r):dl(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?Bo(0,3-v.length):"")+v})+"."+Bo(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var p=dl(""+u);return p!=="0"?l+p:"";default:if(t.match(/\.[0#?]*$/))return Zo(e,t.slice(0,t.lastIndexOf(".")),r)+Ba(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function tu(e,t,r){return(r|0)===r?Zo(e,t,r):ji(e,t,r)}function Z2e(e){for(var t=[],r=!1,n=0,a=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(a,n-a),a=n+1}if(t[t.length]=e.substr(a),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var oX=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Gp(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":cb(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(n=r;e.charAt(t++)!=="]"&&t<e.length;)n+=e.charAt(t);if(n.match(oX))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function Q2e(e,t,r,n){for(var a=[],i="",o=0,s="",u="t",l,c,f,d="H";o<e.length;)switch(s=e.charAt(o)){case"G":if(!cb(e,o))throw new Error("unrecognized character "+s+" in "+e);a[a.length]={t:"G",v:"General"},o+=7;break;case'"':for(i="";(f=e.charCodeAt(++o))!==34&&o<e.length;)i+=String.fromCharCode(f);a[a.length]={t:"t",v:i},++o;break;case"\\":var p=e.charAt(++o),v=p==="("||p===")"?p:"t";a[a.length]={t:v,v:p},++o;break;case"_":a[a.length]={t:"t",v:" "},o+=2;break;case"@":a[a.length]={t:"T",v:t},++o;break;case"B":case"b":if(e.charAt(o+1)==="1"||e.charAt(o+1)==="2"){if(l==null&&(l=Qc(t,r,e.charAt(o+1)==="2"),l==null))return"";a[a.length]={t:"X",v:e.substr(o,2)},u=s,o+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":s=s.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||l==null&&(l=Qc(t,r),l==null))return"";for(i=s;++o<e.length&&e.charAt(o).toLowerCase()===s;)i+=s;s==="m"&&u.toLowerCase()==="h"&&(s="M"),s==="h"&&(s=d),a[a.length]={t:s,v:i},u=s;break;case"A":case"a":case"上":var h={t:s,v:s};if(l==null&&(l=Qc(t,r)),e.substr(o,3).toUpperCase()==="A/P"?(l!=null&&(h.v=l.H>=12?"P":"A"),h.t="T",d="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(l!=null&&(h.v=l.H>=12?"PM":"AM"),h.t="T",o+=5,d="h"):e.substr(o,5).toUpperCase()==="上午/下午"?(l!=null&&(h.v=l.H>=12?"下午":"上午"),h.t="T",o+=5,d="h"):(h.t="t",++o),l==null&&h.t==="T")return"";a[a.length]=h,u=s;break;case"[":for(i=s;e.charAt(o++)!=="]"&&o<e.length;)i+=e.charAt(o);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(oX)){if(l==null&&(l=Qc(t,r),l==null))return"";a[a.length]={t:"Z",v:i.toLowerCase()},u=i.charAt(1)}else i.indexOf("$")>-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",Gp(e)||(a[a.length]={t:"t",v:i}));break;case".":if(l!=null){for(i=s;++o<e.length&&(s=e.charAt(o))==="0";)i+=s;a[a.length]={t:"s",v:i};break}case"0":case"#":for(i=s;++o<e.length&&"0#?.,E+-%".indexOf(s=e.charAt(o))>-1;)i+=s;a[a.length]={t:"n",v:i};break;case"?":for(i=s;e.charAt(++o)===s;)i+=s;a[a.length]={t:s,v:i},u=s;break;case"*":++o,(e.charAt(o)==" "||e.charAt(o)=="*")&&++o;break;case"(":case")":a[a.length]={t:n===1?"t":s,v:s},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=s;o<e.length&&"0123456789".indexOf(e.charAt(++o))>-1;)i+=e.charAt(o);a[a.length]={t:"D",v:i};break;case" ":a[a.length]={t:s,v:s},++o;break;case"$":a[a.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+e);a[a.length]={t:"t",v:s},++o;break}var g=0,m=0,y;for(o=a.length-1,u="t";o>=0;--o)switch(a[o].t){case"h":case"H":a[o].t=d,u="h",g<1&&(g=1);break;case"s":(y=a[o].v.match(/\.0+$/))&&(m=Math.max(m,y[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":u=a[o].t;break;case"m":u==="s"&&(a[o].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&a[o].v.match(/[Hh]/)&&(g=1),g<2&&a[o].v.match(/[Mm]/)&&(g=2),g<3&&a[o].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M);break}var x="",b;for(o=0;o<a.length;++o)switch(a[o].t){case"t":case"T":case" ":case"D":break;case"X":a[o].v="",a[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[o].v=z2e(a[o].t.charCodeAt(0),a[o].v,l,m),a[o].t="t";break;case"n":case"?":for(b=o+1;a[b]!=null&&((s=a[b].t)==="?"||s==="D"||(s===" "||s==="t")&&a[b+1]!=null&&(a[b+1].t==="?"||a[b+1].t==="t"&&a[b+1].v==="/")||a[o].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(a[b].v==="/"||a[b].v===" "&&a[b+1]!=null&&a[b+1].t=="?"));)a[o].v+=a[b].v,a[b]={v:"",t:";"},++b;x+=a[o].v,o=b-1;break;case"G":a[o].t="t",a[o].v=jf(t,r);break}var E="",S,w;if(x.length>0){x.charCodeAt(0)==40?(S=t<0&&x.charCodeAt(0)===45?-t:t,w=tu("n",x,S)):(S=t<0&&n>1?-t:t,w=tu("n",x,S),S<0&&a[0]&&a[0].t=="t"&&(w=w.substr(1),a[0].v="-"+a[0].v)),b=w.length-1;var C=a.length;for(o=0;o<a.length;++o)if(a[o]!=null&&a[o].t!="t"&&a[o].v.indexOf(".")>-1){C=o;break}var _=a.length;if(C===a.length&&w.indexOf("E")===-1){for(o=a.length-1;o>=0;--o)a[o]==null||"n?".indexOf(a[o].t)===-1||(b>=a[o].v.length-1?(b-=a[o].v.length,a[o].v=w.substr(b+1,a[o].v.length)):b<0?a[o].v="":(a[o].v=w.substr(0,b+1),b=-1),a[o].t="t",_=o);b>=0&&_<a.length&&(a[_].v=w.substr(0,b+1)+a[_].v)}else if(C!==a.length&&w.indexOf("E")===-1){for(b=w.indexOf(".")-1,o=C;o>=0;--o)if(!(a[o]==null||"n?".indexOf(a[o].t)===-1)){for(c=a[o].v.indexOf(".")>-1&&o===C?a[o].v.indexOf(".")-1:a[o].v.length-1,E=a[o].v.substr(c+1);c>=0;--c)b>=0&&(a[o].v.charAt(c)==="0"||a[o].v.charAt(c)==="#")&&(E=w.charAt(b--)+E);a[o].v=E,a[o].t="t",_=o}for(b>=0&&_<a.length&&(a[_].v=w.substr(0,b+1)+a[_].v),b=w.indexOf(".")+1,o=C;o<a.length;++o)if(!(a[o]==null||"n?(".indexOf(a[o].t)===-1&&o!==C)){for(c=a[o].v.indexOf(".")>-1&&o===C?a[o].v.indexOf(".")+1:0,E=a[o].v.substr(0,c);c<a[o].v.length;++c)b<w.length&&(E+=w.charAt(b++));a[o].v=E,a[o].t="t",_=o}}}for(o=0;o<a.length;++o)a[o]!=null&&"n?".indexOf(a[o].t)>-1&&(S=n>1&&t<0&&o>0&&a[o-1].v==="-"?-t:t,a[o].v=tu(a[o].t,a[o].v,S),a[o].t="t");var O="";for(o=0;o!==a.length;++o)a[o]!=null&&(O+=a[o].v);return O}var FN=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function BN(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function exe(e,t){var r=Z2e(e),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var i=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,i];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var o=r[0].match(FN),s=r[1].match(FN);return BN(t,o)?[n,r[0]]:BN(t,s)?[n,r[1]]:[n,r[o!=null&&s!=null?2:1]]}return[n,i]}function no(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:Ct)[e],n==null&&(n=r.table&&r.table[TN[e]]||Ct[TN[e]]),n==null&&(n=R2e[e]||"General");break}if(cb(n,0))return jf(t,r);t instanceof Date&&(t=Zq(t,r.date1904));var a=exe(n,t);if(cb(a[1]))return jf(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return Q2e(a[1],t,r,a[0])}function cf(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Ct[r]==null){t<0&&(t=r);continue}if(Ct[r]==e){t=r;break}}t<0&&(t=391)}return Ct[t]=e,t}function sX(){Ct=I2e()}var txe={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},uX=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function rxe(e){var t=typeof e=="number"?Ct[e]:e;return t=t.replace(uX,"(\\d+)"),new RegExp("^"+t+"$")}function nxe(e,t,r){var n=-1,a=-1,i=-1,o=-1,s=-1,u=-1;(t.match(uX)||[]).forEach(function(f,d){var p=parseInt(r[d+1],10);switch(f.toLowerCase().charAt(0)){case"y":n=p;break;case"d":i=p;break;case"h":o=p;break;case"s":u=p;break;case"m":o>=0?s=p:a=p;break}}),u>=0&&s==-1&&a>=0&&(s=a,a=-1);var l=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);l.length==7&&(l="0"+l),l.length==8&&(l="20"+l);var c=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(u>=0?u:0)).slice(-2);return o==-1&&s==-1&&u==-1?l:n==-1&&a==-1&&i==-1?c:l+"T"+c}var axe=function(){var e={};e.version="1.2.0";function t(){for(var w=0,C=new Array(256),_=0;_!=256;++_)w=_,w=w&1?-306674912^w>>>1:w>>>1,w=w&1?-306674912^w>>>1:w>>>1,w=w&1?-306674912^w>>>1:w>>>1,w=w&1?-306674912^w>>>1:w>>>1,w=w&1?-306674912^w>>>1:w>>>1,w=w&1?-306674912^w>>>1:w>>>1,w=w&1?-306674912^w>>>1:w>>>1,w=w&1?-306674912^w>>>1:w>>>1,C[_]=w;return typeof Int32Array<"u"?new Int32Array(C):C}var r=t();function n(w){var C=0,_=0,O=0,P=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(O=0;O!=256;++O)P[O]=w[O];for(O=0;O!=256;++O)for(_=w[O],C=256+O;C<4096;C+=256)_=P[C]=_>>>8^w[_&255];var F=[];for(O=1;O!=16;++O)F[O-1]=typeof Int32Array<"u"?P.subarray(O*256,O*256+256):P.slice(O*256,O*256+256);return F}var a=n(r),i=a[0],o=a[1],s=a[2],u=a[3],l=a[4],c=a[5],f=a[6],d=a[7],p=a[8],v=a[9],h=a[10],g=a[11],m=a[12],y=a[13],x=a[14];function b(w,C){for(var _=C^-1,O=0,P=w.length;O<P;)_=_>>>8^r[(_^w.charCodeAt(O++))&255];return~_}function E(w,C){for(var _=C^-1,O=w.length-15,P=0;P<O;)_=x[w[P++]^_&255]^y[w[P++]^_>>8&255]^m[w[P++]^_>>16&255]^g[w[P++]^_>>>24]^h[w[P++]]^v[w[P++]]^p[w[P++]]^d[w[P++]]^f[w[P++]]^c[w[P++]]^l[w[P++]]^u[w[P++]]^s[w[P++]]^o[w[P++]]^i[w[P++]]^r[w[P++]];for(O+=15;P<O;)_=_>>>8^r[(_^w[P++])&255];return~_}function S(w,C){for(var _=C^-1,O=0,P=w.length,F=0,q=0;O<P;)F=w.charCodeAt(O++),F<128?_=_>>>8^r[(_^F)&255]:F<2048?(_=_>>>8^r[(_^(192|F>>6&31))&255],_=_>>>8^r[(_^(128|F&63))&255]):F>=55296&&F<57344?(F=(F&1023)+64,q=w.charCodeAt(O++)&1023,_=_>>>8^r[(_^(240|F>>8&7))&255],_=_>>>8^r[(_^(128|F>>2&63))&255],_=_>>>8^r[(_^(128|q>>6&15|(F&3)<<4))&255],_=_>>>8^r[(_^(128|q&63))&255]):(_=_>>>8^r[(_^(224|F>>12&15))&255],_=_>>>8^r[(_^(128|F>>6&63))&255],_=_>>>8^r[(_^(128|F&63))&255]);return~_}return e.table=r,e.bstr=b,e.buf=E,e.str=S,e}(),Yt=function(){var t={};t.version="1.2.1";function r(B,G){for(var R=B.split("/"),j=G.split("/"),K=0,k=0,H=Math.min(R.length,j.length);K<H;++K){if(k=R[K].length-j[K].length)return k;if(R[K]!=j[K])return R[K]<j[K]?-1:1}return R.length-j.length}function n(B){if(B.charAt(B.length-1)=="/")return B.slice(0,-1).indexOf("/")===-1?B:n(B.slice(0,-1));var G=B.lastIndexOf("/");return G===-1?B:B.slice(0,G+1)}function a(B){if(B.charAt(B.length-1)=="/")return a(B.slice(0,-1));var G=B.lastIndexOf("/");return G===-1?B:B.slice(G+1)}function i(B,G){typeof G=="string"&&(G=new Date(G));var R=G.getHours();R=R<<6|G.getMinutes(),R=R<<5|G.getSeconds()>>>1,B.write_shift(2,R);var j=G.getFullYear()-1980;j=j<<4|G.getMonth()+1,j=j<<5|G.getDate(),B.write_shift(2,j)}function o(B){var G=B.read_shift(2)&65535,R=B.read_shift(2)&65535,j=new Date,K=R&31;R>>>=5;var k=R&15;R>>>=4,j.setMilliseconds(0),j.setFullYear(R+1980),j.setMonth(k-1),j.setDate(K);var H=G&31;G>>>=5;var ae=G&63;return G>>>=6,j.setHours(G),j.setMinutes(ae),j.setSeconds(H<<1),j}function s(B){ea(B,0);for(var G={},R=0;B.l<=B.length-4;){var j=B.read_shift(2),K=B.read_shift(2),k=B.l+K,H={};switch(j){case 21589:R=B.read_shift(1),R&1&&(H.mtime=B.read_shift(4)),K>5&&(R&2&&(H.atime=B.read_shift(4)),R&4&&(H.ctime=B.read_shift(4))),H.mtime&&(H.mt=new Date(H.mtime*1e3));break}B.l=k,G[j]=H}return G}var u;function l(){return u||(u={})}function c(B,G){if(B[0]==80&&B[1]==75)return ft(B,G);if((B[0]|32)==109&&(B[1]|32)==105)return bc(B,G);if(B.length<512)throw new Error("CFB file size "+B.length+" < 512");var R=3,j=512,K=0,k=0,H=0,ae=0,re=0,ue=[],oe=B.slice(0,512);ea(oe,0);var U=f(oe);switch(R=U[0],R){case 3:j=512;break;case 4:j=4096;break;case 0:if(U[1]==0)return ft(B,G);default:throw new Error("Major Version: Expected 3 or 4 saw "+R)}j!==512&&(oe=B.slice(0,j),ea(oe,28));var ne=B.slice(0,j);d(oe,R);var ye=oe.read_shift(4,"i");if(R===3&&ye!==0)throw new Error("# Directory Sectors: Expected 0 saw "+ye);oe.l+=4,H=oe.read_shift(4,"i"),oe.l+=4,oe.chk("00100000","Mini Stream Cutoff Size: "),ae=oe.read_shift(4,"i"),K=oe.read_shift(4,"i"),re=oe.read_shift(4,"i"),k=oe.read_shift(4,"i");for(var me=-1,Ae=0;Ae<109&&(me=oe.read_shift(4,"i"),!(me<0));++Ae)ue[Ae]=me;var Ue=p(B,j);g(re,k,Ue,j,ue);var rt=y(Ue,H,ue,j);rt[H].name="!Directory",K>0&&ae!==q&&(rt[ae].name="!MiniFAT"),rt[ue[0]].name="!FAT",rt.fat_addrs=ue,rt.ssz=j;var et={},Lt=[],Kr=[],fi=[];x(H,rt,Ue,Lt,K,et,Kr,ae),v(Kr,fi,Lt),Lt.shift();var Da={FileIndex:Kr,FullPaths:fi};return G&&G.raw&&(Da.raw={header:ne,sectors:Ue}),Da}function f(B){if(B[B.l]==80&&B[B.l+1]==75)return[0,0];B.chk(ee,"Header Signature: "),B.l+=16;var G=B.read_shift(2,"u");return[B.read_shift(2,"u"),G]}function d(B,G){var R=9;switch(B.l+=2,R=B.read_shift(2)){case 9:if(G!=3)throw new Error("Sector Shift: Expected 9 saw "+R);break;case 12:if(G!=4)throw new Error("Sector Shift: Expected 12 saw "+R);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+R)}B.chk("0600","Mini Sector Shift: "),B.chk("000000000000","Reserved: ")}function p(B,G){for(var R=Math.ceil(B.length/G)-1,j=[],K=1;K<R;++K)j[K-1]=B.slice(K*G,(K+1)*G);return j[R-1]=B.slice(R*G),j}function v(B,G,R){for(var j=0,K=0,k=0,H=0,ae=0,re=R.length,ue=[],oe=[];j<re;++j)ue[j]=oe[j]=j,G[j]=R[j];for(;ae<oe.length;++ae)j=oe[ae],K=B[j].L,k=B[j].R,H=B[j].C,ue[j]===j&&(K!==-1&&ue[K]!==K&&(ue[j]=ue[K]),k!==-1&&ue[k]!==k&&(ue[j]=ue[k])),H!==-1&&(ue[H]=j),K!==-1&&j!=ue[j]&&(ue[K]=ue[j],oe.lastIndexOf(K)<ae&&oe.push(K)),k!==-1&&j!=ue[j]&&(ue[k]=ue[j],oe.lastIndexOf(k)<ae&&oe.push(k));for(j=1;j<re;++j)ue[j]===j&&(k!==-1&&ue[k]!==k?ue[j]=ue[k]:K!==-1&&ue[K]!==K&&(ue[j]=ue[K]));for(j=1;j<re;++j)if(B[j].type!==0){if(ae=j,ae!=ue[ae])do ae=ue[ae],G[j]=G[ae]+"/"+G[j];while(ae!==0&&ue[ae]!==-1&&ae!=ue[ae]);ue[j]=-1}for(G[0]+="/",j=1;j<re;++j)B[j].type!==2&&(G[j]+="/")}function h(B,G,R){for(var j=B.start,K=B.size,k=[],H=j;R&&K>0&&H>=0;)k.push(G.slice(H*F,H*F+F)),K-=F,H=Wc(R,H*4);return k.length===0?kn(0):al(k).slice(0,B.size)}function g(B,G,R,j,K){var k=q;if(B===q){if(G!==0)throw new Error("DIFAT chain shorter than expected")}else if(B!==-1){var H=R[B],ae=(j>>>2)-1;if(!H)return;for(var re=0;re<ae&&(k=Wc(H,re*4))!==q;++re)K.push(k);g(Wc(H,j-4),G-1,R,j,K)}}function m(B,G,R,j,K){var k=[],H=[];K||(K=[]);var ae=j-1,re=0,ue=0;for(re=G;re>=0;){K[re]=!0,k[k.length]=re,H.push(B[re]);var oe=R[Math.floor(re*4/j)];if(ue=re*4&ae,j<4+ue)throw new Error("FAT boundary crossed: "+re+" 4 "+j);if(!B[oe])break;re=Wc(B[oe],ue)}return{nodes:k,data:HN([H])}}function y(B,G,R,j){var K=B.length,k=[],H=[],ae=[],re=[],ue=j-1,oe=0,U=0,ne=0,ye=0;for(oe=0;oe<K;++oe)if(ae=[],ne=oe+G,ne>=K&&(ne-=K),!H[ne]){re=[];var me=[];for(U=ne;U>=0;){me[U]=!0,H[U]=!0,ae[ae.length]=U,re.push(B[U]);var Ae=R[Math.floor(U*4/j)];if(ye=U*4&ue,j<4+ye)throw new Error("FAT boundary crossed: "+U+" 4 "+j);if(!B[Ae]||(U=Wc(B[Ae],ye),me[U]))break}k[ne]={nodes:ae,data:HN([re])}}return k}function x(B,G,R,j,K,k,H,ae){for(var re=0,ue=j.length?2:0,oe=G[B].data,U=0,ne=0,ye;U<oe.length;U+=128){var me=oe.slice(U,U+128);ea(me,64),ne=me.read_shift(2),ye=qD(me,0,ne-ue),j.push(ye);var Ae={name:ye,type:me.read_shift(1),color:me.read_shift(1),L:me.read_shift(4,"i"),R:me.read_shift(4,"i"),C:me.read_shift(4,"i"),clsid:me.read_shift(16),state:me.read_shift(4,"i"),start:0,size:0},Ue=me.read_shift(2)+me.read_shift(2)+me.read_shift(2)+me.read_shift(2);Ue!==0&&(Ae.ct=b(me,me.l-8));var rt=me.read_shift(2)+me.read_shift(2)+me.read_shift(2)+me.read_shift(2);rt!==0&&(Ae.mt=b(me,me.l-8)),Ae.start=me.read_shift(4,"i"),Ae.size=me.read_shift(4,"i"),Ae.size<0&&Ae.start<0&&(Ae.size=Ae.type=0,Ae.start=q,Ae.name=""),Ae.type===5?(re=Ae.start,K>0&&re!==q&&(G[re].name="!StreamData")):Ae.size>=4096?(Ae.storage="fat",G[Ae.start]===void 0&&(G[Ae.start]=m(R,Ae.start,G.fat_addrs,G.ssz)),G[Ae.start].name=Ae.name,Ae.content=G[Ae.start].data.slice(0,Ae.size)):(Ae.storage="minifat",Ae.size<0?Ae.size=0:re!==q&&Ae.start!==q&&G[re]&&(Ae.content=h(Ae,G[re].data,(G[ae]||{}).data))),Ae.content&&ea(Ae.content,0),k[ye]=Ae,H.push(Ae)}}function b(B,G){return new Date((gi(B,G+4)/1e7*Math.pow(2,32)+gi(B,G)/1e7-11644473600)*1e3)}function E(B,G){return l(),c(u.readFileSync(B),G)}function S(B,G){var R=G&&G.type;switch(R||Kt&&Buffer.isBuffer(B)&&(R="buffer"),R||"base64"){case"file":return E(B,G);case"base64":return c(_o(Ai(B)),G);case"binary":return c(_o(B),G)}return c(B,G)}function w(B,G){var R=G||{},j=R.root||"Root Entry";if(B.FullPaths||(B.FullPaths=[]),B.FileIndex||(B.FileIndex=[]),B.FullPaths.length!==B.FileIndex.length)throw new Error("inconsistent CFB structure");B.FullPaths.length===0&&(B.FullPaths[0]=j+"/",B.FileIndex[0]={name:j,type:5}),R.CLSID&&(B.FileIndex[0].clsid=R.CLSID),C(B)}function C(B){var G="Sh33tJ5";if(!Yt.find(B,"/"+G)){var R=kn(4);R[0]=55,R[1]=R[3]=50,R[2]=54,B.FileIndex.push({name:G,type:2,content:R,size:4,L:69,R:69,C:69}),B.FullPaths.push(B.FullPaths[0]+G),_(B)}}function _(B,G){w(B);for(var R=!1,j=!1,K=B.FullPaths.length-1;K>=0;--K){var k=B.FileIndex[K];switch(k.type){case 0:j?R=!0:(B.FileIndex.pop(),B.FullPaths.pop());break;case 1:case 2:case 5:j=!0,isNaN(k.R*k.L*k.C)&&(R=!0),k.R>-1&&k.L>-1&&k.R==k.L&&(R=!0);break;default:R=!0;break}}if(!(!R&&!G)){var H=new Date(1987,1,19),ae=0,re=Object.create?Object.create(null):{},ue=[];for(K=0;K<B.FullPaths.length;++K)re[B.FullPaths[K]]=!0,B.FileIndex[K].type!==0&&ue.push([B.FullPaths[K],B.FileIndex[K]]);for(K=0;K<ue.length;++K){var oe=n(ue[K][0]);j=re[oe],j||(ue.push([oe,{name:a(oe).replace("/",""),type:1,clsid:Z,ct:H,mt:H,content:null}]),re[oe]=!0)}for(ue.sort(function(ye,me){return r(ye[0],me[0])}),B.FullPaths=[],B.FileIndex=[],K=0;K<ue.length;++K)B.FullPaths[K]=ue[K][0],B.FileIndex[K]=ue[K][1];for(K=0;K<ue.length;++K){var U=B.FileIndex[K],ne=B.FullPaths[K];if(U.name=a(ne).replace("/",""),U.L=U.R=U.C=-(U.color=1),U.size=U.content?U.content.length:0,U.start=0,U.clsid=U.clsid||Z,K===0)U.C=ue.length>1?1:-1,U.size=0,U.type=5;else if(ne.slice(-1)=="/"){for(ae=K+1;ae<ue.length&&n(B.FullPaths[ae])!=ne;++ae);for(U.C=ae>=ue.length?-1:ae,ae=K+1;ae<ue.length&&n(B.FullPaths[ae])!=n(ne);++ae);U.R=ae>=ue.length?-1:ae,U.type=1}else n(B.FullPaths[K+1]||"")==n(ne)&&(U.R=K+1),U.type=2}}}function O(B,G){var R=G||{};if(R.fileType=="mad")return po(B,R);switch(_(B),R.fileType){case"zip":return dr(B,R)}var j=function(ye){for(var me=0,Ae=0,Ue=0;Ue<ye.FileIndex.length;++Ue){var rt=ye.FileIndex[Ue];if(rt.content){var et=rt.content.length;et>0&&(et<4096?me+=et+63>>6:Ae+=et+511>>9)}}for(var Lt=ye.FullPaths.length+3>>2,Kr=me+7>>3,fi=me+127>>7,Da=Kr+Ae+Lt+fi,ca=Da+127>>7,nt=ca<=109?0:Math.ceil((ca-109)/127);Da+ca+nt+127>>7>ca;)nt=++ca<=109?0:Math.ceil((ca-109)/127);var Et=[1,nt,ca,fi,Lt,Ae,me,0];return ye.FileIndex[0].size=me<<6,Et[7]=(ye.FileIndex[0].start=Et[0]+Et[1]+Et[2]+Et[3]+Et[4]+Et[5])+(Et[6]+7>>3),Et}(B),K=kn(j[7]<<9),k=0,H=0;{for(k=0;k<8;++k)K.write_shift(1,J[k]);for(k=0;k<8;++k)K.write_shift(2,0);for(K.write_shift(2,62),K.write_shift(2,3),K.write_shift(2,65534),K.write_shift(2,9),K.write_shift(2,6),k=0;k<3;++k)K.write_shift(2,0);for(K.write_shift(4,0),K.write_shift(4,j[2]),K.write_shift(4,j[0]+j[1]+j[2]+j[3]-1),K.write_shift(4,0),K.write_shift(4,4096),K.write_shift(4,j[3]?j[0]+j[1]+j[2]-1:q),K.write_shift(4,j[3]),K.write_shift(-4,j[1]?j[0]-1:q),K.write_shift(4,j[1]),k=0;k<109;++k)K.write_shift(-4,k<j[2]?j[1]+k:-1)}if(j[1])for(H=0;H<j[1];++H){for(;k<236+H*127;++k)K.write_shift(-4,k<j[2]?j[1]+k:-1);K.write_shift(-4,H===j[1]-1?q:H+1)}var ae=function(ye){for(H+=ye;k<H-1;++k)K.write_shift(-4,k+1);ye&&(++k,K.write_shift(-4,q))};for(H=k=0,H+=j[1];k<H;++k)K.write_shift(-4,V.DIFSECT);for(H+=j[2];k<H;++k)K.write_shift(-4,V.FATSECT);ae(j[3]),ae(j[4]);for(var re=0,ue=0,oe=B.FileIndex[0];re<B.FileIndex.length;++re)oe=B.FileIndex[re],oe.content&&(ue=oe.content.length,!(ue<4096)&&(oe.start=H,ae(ue+511>>9)));for(ae(j[6]+7>>3);K.l&511;)K.write_shift(-4,V.ENDOFCHAIN);for(H=k=0,re=0;re<B.FileIndex.length;++re)oe=B.FileIndex[re],oe.content&&(ue=oe.content.length,!(!ue||ue>=4096)&&(oe.start=H,ae(ue+63>>6)));for(;K.l&511;)K.write_shift(-4,V.ENDOFCHAIN);for(k=0;k<j[4]<<2;++k){var U=B.FullPaths[k];if(!U||U.length===0){for(re=0;re<17;++re)K.write_shift(4,0);for(re=0;re<3;++re)K.write_shift(4,-1);for(re=0;re<12;++re)K.write_shift(4,0);continue}oe=B.FileIndex[k],k===0&&(oe.start=oe.size?oe.start-1:q);var ne=k===0&&R.root||oe.name;if(ue=2*(ne.length+1),K.write_shift(64,ne,"utf16le"),K.write_shift(2,ue),K.write_shift(1,oe.type),K.write_shift(1,oe.color),K.write_shift(-4,oe.L),K.write_shift(-4,oe.R),K.write_shift(-4,oe.C),oe.clsid)K.write_shift(16,oe.clsid,"hex");else for(re=0;re<4;++re)K.write_shift(4,0);K.write_shift(4,oe.state||0),K.write_shift(4,0),K.write_shift(4,0),K.write_shift(4,0),K.write_shift(4,0),K.write_shift(4,oe.start),K.write_shift(4,oe.size),K.write_shift(4,0)}for(k=1;k<B.FileIndex.length;++k)if(oe=B.FileIndex[k],oe.size>=4096)if(K.l=oe.start+1<<9,Kt&&Buffer.isBuffer(oe.content))oe.content.copy(K,K.l,0,oe.size),K.l+=oe.size+511&-512;else{for(re=0;re<oe.size;++re)K.write_shift(1,oe.content[re]);for(;re&511;++re)K.write_shift(1,0)}for(k=1;k<B.FileIndex.length;++k)if(oe=B.FileIndex[k],oe.size>0&&oe.size<4096)if(Kt&&Buffer.isBuffer(oe.content))oe.content.copy(K,K.l,0,oe.size),K.l+=oe.size+63&-64;else{for(re=0;re<oe.size;++re)K.write_shift(1,oe.content[re]);for(;re&63;++re)K.write_shift(1,0)}if(Kt)K.l=K.length;else for(;K.l<K.length;)K.write_shift(1,0);return K}function P(B,G){var R=B.FullPaths.map(function(re){return re.toUpperCase()}),j=R.map(function(re){var ue=re.split("/");return ue[ue.length-(re.slice(-1)=="/"?2:1)]}),K=!1;G.charCodeAt(0)===47?(K=!0,G=R[0].slice(0,-1)+G):K=G.indexOf("/")!==-1;var k=G.toUpperCase(),H=K===!0?R.indexOf(k):j.indexOf(k);if(H!==-1)return B.FileIndex[H];var ae=!k.match(Vv);for(k=k.replace(ja,""),ae&&(k=k.replace(Vv,"!")),H=0;H<R.length;++H)if((ae?R[H].replace(Vv,"!"):R[H]).replace(ja,"")==k||(ae?j[H].replace(Vv,"!"):j[H]).replace(ja,"")==k)return B.FileIndex[H];return null}var F=64,q=-2,ee="d0cf11e0a1b11ae1",J=[208,207,17,224,161,177,26,225],Z="00000000000000000000000000000000",V={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:q,FREESECT:-1,HEADER_SIGNATURE:ee,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:Z,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function ie(B,G,R){l();var j=O(B,R);u.writeFileSync(G,j)}function W(B){for(var G=new Array(B.length),R=0;R<B.length;++R)G[R]=String.fromCharCode(B[R]);return G.join("")}function de(B,G){var R=O(B,G);switch(G&&G.type||"buffer"){case"file":return l(),u.writeFileSync(G.filename,R),R;case"binary":return typeof R=="string"?R:W(R);case"base64":return CN(typeof R=="string"?R:W(R));case"buffer":if(Kt)return Buffer.isBuffer(R)?R:s0(R);case"array":return typeof R=="string"?_o(R):R}return R}var M;function A(B){try{var G=B.InflateRaw,R=new G;if(R._processChunk(new Uint8Array([3,0]),R._finishFlushFlag),R.bytesRead)M=B;else throw new Error("zlib does not expose bytesRead")}catch(j){console.error("cannot use native zlib: "+(j.message||j))}}function N(B,G){if(!M)return _e(B,G);var R=M.InflateRaw,j=new R,K=j._processChunk(B.slice(B.l),j._finishFlushFlag);return B.l+=j.bytesRead,K}function I(B){return M?M.deflateRawSync(B):Ze(B)}var L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Y=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],Q=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function le(B){var G=(B<<1|B<<11)&139536|(B<<5|B<<15)&558144;return(G>>16|G>>8|G)&255}for(var ve=typeof Uint8Array<"u",he=ve?new Uint8Array(256):[],fe=0;fe<256;++fe)he[fe]=le(fe);function z(B,G){var R=he[B&255];return G<=8?R>>>8-G:(R=R<<8|he[B>>8&255],G<=16?R>>>16-G:(R=R<<8|he[B>>16&255],R>>>24-G))}function je(B,G){var R=G&7,j=G>>>3;return(B[j]|(R<=6?0:B[j+1]<<8))>>>R&3}function Te(B,G){var R=G&7,j=G>>>3;return(B[j]|(R<=5?0:B[j+1]<<8))>>>R&7}function Ne(B,G){var R=G&7,j=G>>>3;return(B[j]|(R<=4?0:B[j+1]<<8))>>>R&15}function He(B,G){var R=G&7,j=G>>>3;return(B[j]|(R<=3?0:B[j+1]<<8))>>>R&31}function we(B,G){var R=G&7,j=G>>>3;return(B[j]|(R<=1?0:B[j+1]<<8))>>>R&127}function Je(B,G,R){var j=G&7,K=G>>>3,k=(1<<R)-1,H=B[K]>>>j;return R<8-j||(H|=B[K+1]<<8-j,R<16-j)||(H|=B[K+2]<<16-j,R<24-j)||(H|=B[K+3]<<24-j),H&k}function ut(B,G,R){var j=G&7,K=G>>>3;return j<=5?B[K]|=(R&7)<<j:(B[K]|=R<<j&255,B[K+1]=(R&7)>>8-j),G+3}function _t(B,G,R){var j=G&7,K=G>>>3;return R=(R&1)<<j,B[K]|=R,G+1}function Qe(B,G,R){var j=G&7,K=G>>>3;return R<<=j,B[K]|=R&255,R>>>=8,B[K+1]=R,G+8}function cr(B,G,R){var j=G&7,K=G>>>3;return R<<=j,B[K]|=R&255,R>>>=8,B[K+1]=R&255,B[K+2]=R>>>8,G+16}function zt(B,G){var R=B.length,j=2*R>G?2*R:G+5,K=0;if(R>=G)return B;if(Kt){var k=_N(j);if(B.copy)B.copy(k);else for(;K<B.length;++K)k[K]=B[K];return k}else if(ve){var H=new Uint8Array(j);if(H.set)H.set(B);else for(;K<R;++K)H[K]=B[K];return H}return B.length=j,B}function Se(B){for(var G=new Array(B),R=0;R<B;++R)G[R]=0;return G}function at(B,G,R){var j=1,K=0,k=0,H=0,ae=0,re=B.length,ue=ve?new Uint16Array(32):Se(32);for(k=0;k<32;++k)ue[k]=0;for(k=re;k<R;++k)B[k]=0;re=B.length;var oe=ve?new Uint16Array(re):Se(re);for(k=0;k<re;++k)ue[K=B[k]]++,j<K&&(j=K),oe[k]=0;for(ue[0]=0,k=1;k<=j;++k)ue[k+16]=ae=ae+ue[k-1]<<1;for(k=0;k<re;++k)ae=B[k],ae!=0&&(oe[k]=ue[ae+16]++);var U=0;for(k=0;k<re;++k)if(U=B[k],U!=0)for(ae=z(oe[k],j)>>j-U,H=(1<<j+4-U)-1;H>=0;--H)G[ae|H<<U]=U&15|k<<4;return j}var Rt=ve?new Uint16Array(512):Se(512),fr=ve?new Uint16Array(32):Se(32);if(!ve){for(var It=0;It<512;++It)Rt[It]=0;for(It=0;It<32;++It)fr[It]=0}(function(){for(var B=[],G=0;G<32;G++)B.push(5);at(B,fr,32);var R=[];for(G=0;G<=143;G++)R.push(8);for(;G<=255;G++)R.push(9);for(;G<=279;G++)R.push(7);for(;G<=287;G++)R.push(8);at(R,Rt,288)})();var Dr=function(){for(var G=ve?new Uint8Array(32768):[],R=0,j=0;R<Q.length-1;++R)for(;j<Q[R+1];++j)G[j]=R;for(;j<32768;++j)G[j]=29;var K=ve?new Uint8Array(259):[];for(R=0,j=0;R<Y.length-1;++R)for(;j<Y[R+1];++j)K[j]=R;function k(ae,re){for(var ue=0;ue<ae.length;){var oe=Math.min(65535,ae.length-ue),U=ue+oe==ae.length;for(re.write_shift(1,+U),re.write_shift(2,oe),re.write_shift(2,~oe&65535);oe-- >0;)re[re.l++]=ae[ue++]}return re.l}function H(ae,re){for(var ue=0,oe=0,U=ve?new Uint16Array(32768):[];oe<ae.length;){var ne=Math.min(65535,ae.length-oe);if(ne<10){for(ue=ut(re,ue,+(oe+ne==ae.length)),ue&7&&(ue+=8-(ue&7)),re.l=ue/8|0,re.write_shift(2,ne),re.write_shift(2,~ne&65535);ne-- >0;)re[re.l++]=ae[oe++];ue=re.l*8;continue}ue=ut(re,ue,+(oe+ne==ae.length)+2);for(var ye=0;ne-- >0;){var me=ae[oe];ye=(ye<<5^me)&32767;var Ae=-1,Ue=0;if((Ae=U[ye])&&(Ae|=oe&-32768,Ae>oe&&(Ae-=32768),Ae<oe))for(;ae[Ae+Ue]==ae[oe+Ue]&&Ue<250;)++Ue;if(Ue>2){me=K[Ue],me<=22?ue=Qe(re,ue,he[me+1]>>1)-1:(Qe(re,ue,3),ue+=5,Qe(re,ue,he[me-23]>>5),ue+=3);var rt=me<8?0:me-4>>2;rt>0&&(cr(re,ue,Ue-Y[me]),ue+=rt),me=G[oe-Ae],ue=Qe(re,ue,he[me]>>3),ue-=3;var et=me<4?0:me-2>>1;et>0&&(cr(re,ue,oe-Ae-Q[me]),ue+=et);for(var Lt=0;Lt<Ue;++Lt)U[ye]=oe&32767,ye=(ye<<5^ae[oe])&32767,++oe;ne-=Ue-1}else me<=143?me=me+48:ue=_t(re,ue,1),ue=Qe(re,ue,he[me]),U[ye]=oe&32767,++oe}ue=Qe(re,ue,0)-1}return re.l=(ue+7)/8|0,re.l}return function(re,ue){return re.length<8?k(re,ue):H(re,ue)}}();function Ze(B){var G=kn(50+Math.floor(B.length*1.1)),R=Dr(B,G);return G.slice(0,R)}var wt=ve?new Uint16Array(32768):Se(32768),Vt=ve?new Uint16Array(32768):Se(32768),Ft=ve?new Uint16Array(128):Se(128),ir=1,An=1;function qo(B,G){var R=He(B,G)+257;G+=5;var j=He(B,G)+1;G+=5;var K=Ne(B,G)+4;G+=4;for(var k=0,H=ve?new Uint8Array(19):Se(19),ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],re=1,ue=ve?new Uint8Array(8):Se(8),oe=ve?new Uint8Array(8):Se(8),U=H.length,ne=0;ne<K;++ne)H[L[ne]]=k=Te(B,G),re<k&&(re=k),ue[k]++,G+=3;var ye=0;for(ue[0]=0,ne=1;ne<=re;++ne)oe[ne]=ye=ye+ue[ne-1]<<1;for(ne=0;ne<U;++ne)(ye=H[ne])!=0&&(ae[ne]=oe[ye]++);var me=0;for(ne=0;ne<U;++ne)if(me=H[ne],me!=0){ye=he[ae[ne]]>>8-me;for(var Ae=(1<<7-me)-1;Ae>=0;--Ae)Ft[ye|Ae<<me]=me&7|ne<<3}var Ue=[];for(re=1;Ue.length<R+j;)switch(ye=Ft[we(B,G)],G+=ye&7,ye>>>=3){case 16:for(k=3+je(B,G),G+=2,ye=Ue[Ue.length-1];k-- >0;)Ue.push(ye);break;case 17:for(k=3+Te(B,G),G+=3;k-- >0;)Ue.push(0);break;case 18:for(k=11+we(B,G),G+=7;k-- >0;)Ue.push(0);break;default:Ue.push(ye),re<ye&&(re=ye);break}var rt=Ue.slice(0,R),et=Ue.slice(R);for(ne=R;ne<286;++ne)rt[ne]=0;for(ne=j;ne<30;++ne)et[ne]=0;return ir=at(rt,wt,286),An=at(et,Vt,30),G}function xe(B,G){if(B[0]==3&&!(B[1]&3))return[ql(G),2];for(var R=0,j=0,K=_N(G||1<<18),k=0,H=K.length>>>0,ae=0,re=0;!(j&1);){if(j=Te(B,R),R+=3,j>>>1)j>>1==1?(ae=9,re=5):(R=qo(B,R),ae=ir,re=An);else{R&7&&(R+=8-(R&7));var ue=B[R>>>3]|B[(R>>>3)+1]<<8;if(R+=32,ue>0)for(!G&&H<k+ue&&(K=zt(K,k+ue),H=K.length);ue-- >0;)K[k++]=B[R>>>3],R+=8;continue}for(;;){!G&&H<k+32767&&(K=zt(K,k+32767),H=K.length);var oe=Je(B,R,ae),U=j>>>1==1?Rt[oe]:wt[oe];if(R+=U&15,U>>>=4,!(U>>>8&255))K[k++]=U;else{if(U==256)break;U-=257;var ne=U<8?0:U-4>>2;ne>5&&(ne=0);var ye=k+Y[U];ne>0&&(ye+=Je(B,R,ne),R+=ne),oe=Je(B,R,re),U=j>>>1==1?fr[oe]:Vt[oe],R+=U&15,U>>>=4;var me=U<4?0:U-2>>1,Ae=Q[U];for(me>0&&(Ae+=Je(B,R,me),R+=me),!G&&H<ye&&(K=zt(K,ye+100),H=K.length);k<ye;)K[k]=K[k-Ae],++k}}}return G?[K,R+7>>>3]:[K.slice(0,k),R+7>>>3]}function _e(B,G){var R=B.slice(B.l||0),j=xe(R,G);return B.l+=j[1],j[0]}function Ve(B,G){if(B)typeof console<"u"&&console.error(G);else throw new Error(G)}function ft(B,G){var R=B;ea(R,0);var j=[],K=[],k={FileIndex:j,FullPaths:K};w(k,{root:G.root});for(var H=R.length-4;(R[H]!=80||R[H+1]!=75||R[H+2]!=5||R[H+3]!=6)&&H>=0;)--H;R.l=H+4,R.l+=4;var ae=R.read_shift(2);R.l+=6;var re=R.read_shift(4);for(R.l=re,H=0;H<ae;++H){R.l+=20;var ue=R.read_shift(4),oe=R.read_shift(4),U=R.read_shift(2),ne=R.read_shift(2),ye=R.read_shift(2);R.l+=8;var me=R.read_shift(4),Ae=s(R.slice(R.l+U,R.l+U+ne));R.l+=U+ne+ye;var Ue=R.l;R.l=me+4,Or(R,ue,oe,k,Ae),R.l=Ue}return k}function Or(B,G,R,j,K){B.l+=2;var k=B.read_shift(2),H=B.read_shift(2),ae=o(B);if(k&8257)throw new Error("Unsupported ZIP encryption");for(var re=B.read_shift(4),ue=B.read_shift(4),oe=B.read_shift(4),U=B.read_shift(2),ne=B.read_shift(2),ye="",me=0;me<U;++me)ye+=String.fromCharCode(B[B.l++]);if(ne){var Ae=s(B.slice(B.l,B.l+ne));(Ae[21589]||{}).mt&&(ae=Ae[21589].mt),((K||{})[21589]||{}).mt&&(ae=K[21589].mt)}B.l+=ne;var Ue=B.slice(B.l,B.l+ue);switch(H){case 8:Ue=N(B,oe);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+H)}var rt=!1;k&8&&(re=B.read_shift(4),re==134695760&&(re=B.read_shift(4),rt=!0),ue=B.read_shift(4),oe=B.read_shift(4)),ue!=G&&Ve(rt,"Bad compressed size: "+G+" != "+ue),oe!=R&&Ve(rt,"Bad uncompressed size: "+R+" != "+oe),wu(j,ye,Ue,{unsafe:!0,mt:ae})}function dr(B,G){var R=G||{},j=[],K=[],k=kn(1),H=R.compression?8:0,ae=0,re=0,ue=0,oe=0,U=0,ne=B.FullPaths[0],ye=ne,me=B.FileIndex[0],Ae=[],Ue=0;for(re=1;re<B.FullPaths.length;++re)if(ye=B.FullPaths[re].slice(ne.length),me=B.FileIndex[re],!(!me.size||!me.content||ye=="Sh33tJ5")){var rt=oe,et=kn(ye.length);for(ue=0;ue<ye.length;++ue)et.write_shift(1,ye.charCodeAt(ue)&127);et=et.slice(0,et.l),Ae[U]=axe.buf(me.content,0);var Lt=me.content;H==8&&(Lt=I(Lt)),k=kn(30),k.write_shift(4,67324752),k.write_shift(2,20),k.write_shift(2,ae),k.write_shift(2,H),me.mt?i(k,me.mt):k.write_shift(4,0),k.write_shift(-4,Ae[U]),k.write_shift(4,Lt.length),k.write_shift(4,me.content.length),k.write_shift(2,et.length),k.write_shift(2,0),oe+=k.length,j.push(k),oe+=et.length,j.push(et),oe+=Lt.length,j.push(Lt),k=kn(46),k.write_shift(4,33639248),k.write_shift(2,0),k.write_shift(2,20),k.write_shift(2,ae),k.write_shift(2,H),k.write_shift(4,0),k.write_shift(-4,Ae[U]),k.write_shift(4,Lt.length),k.write_shift(4,me.content.length),k.write_shift(2,et.length),k.write_shift(2,0),k.write_shift(2,0),k.write_shift(2,0),k.write_shift(2,0),k.write_shift(4,0),k.write_shift(4,rt),Ue+=k.l,K.push(k),Ue+=et.length,K.push(et),++U}return k=kn(22),k.write_shift(4,101010256),k.write_shift(2,0),k.write_shift(2,0),k.write_shift(2,U),k.write_shift(2,U),k.write_shift(4,Ue),k.write_shift(4,oe),k.write_shift(2,0),al([al(j),al(K),k])}var Er={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Zt(B,G){if(B.ctype)return B.ctype;var R=B.name||"",j=R.match(/\.([^\.]+)$/);return j&&Er[j[1]]||G&&(j=(R=G).match(/[\.\\]([^\.\\])+$/),j&&Er[j[1]])?Er[j[1]]:"application/octet-stream"}function tr(B){for(var G=CN(B),R=[],j=0;j<G.length;j+=76)R.push(G.slice(j,j+76));return R.join(`\r
|
||
`)+`\r
|
||
`}function ci(B){var G=B.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(ue){var oe=ue.charCodeAt(0).toString(16).toUpperCase();return"="+(oe.length==1?"0"+oe:oe)});G=G.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),G.charAt(0)==`
|
||
`&&(G="=0D"+G.slice(1)),G=G.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
|
||
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var R=[],j=G.split(`\r
|
||
`),K=0;K<j.length;++K){var k=j[K];if(k.length==0){R.push("");continue}for(var H=0;H<k.length;){var ae=76,re=k.slice(H,H+ae);re.charAt(ae-1)=="="?ae--:re.charAt(ae-2)=="="?ae-=2:re.charAt(ae-3)=="="&&(ae-=3),re=k.slice(H,H+ae),H+=ae,H<k.length&&(re+="="),R.push(re)}}return R.join(`\r
|
||
`)}function _0(B){for(var G=[],R=0;R<B.length;++R){for(var j=B[R];R<=B.length&&j.charAt(j.length-1)=="=";)j=j.slice(0,j.length-1)+B[++R];G.push(j)}for(var K=0;K<G.length;++K)G[K]=G[K].replace(/[=][0-9A-Fa-f]{2}/g,function(k){return String.fromCharCode(parseInt(k.slice(1),16))});return _o(G.join(`\r
|
||
`))}function Ta(B,G,R){for(var j="",K="",k="",H,ae=0;ae<10;++ae){var re=G[ae];if(!re||re.match(/^\s*$/))break;var ue=re.match(/^(.*?):\s*([^\s].*)$/);if(ue)switch(ue[1].toLowerCase()){case"content-location":j=ue[2].trim();break;case"content-type":k=ue[2].trim();break;case"content-transfer-encoding":K=ue[2].trim();break}}switch(++ae,K.toLowerCase()){case"base64":H=_o(Ai(G.slice(ae).join("")));break;case"quoted-printable":H=_0(G.slice(ae));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+K)}var oe=wu(B,j.slice(R.length),H,{unsafe:!0});k&&(oe.ctype=k)}function bc(B,G){if(W(B.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var R=G&&G.root||"",j=(Kt&&Buffer.isBuffer(B)?B.toString("binary"):W(B)).split(`\r
|
||
`),K=0,k="";for(K=0;K<j.length;++K)if(k=j[K],!!/^Content-Location:/i.test(k)&&(k=k.slice(k.indexOf("file")),R||(R=k.slice(0,k.lastIndexOf("/")+1)),k.slice(0,R.length)!=R))for(;R.length>0&&(R=R.slice(0,R.length-1),R=R.slice(0,R.lastIndexOf("/")+1),k.slice(0,R.length)!=R););var H=(j[1]||"").match(/boundary="(.*?)"/);if(!H)throw new Error("MAD cannot find boundary");var ae="--"+(H[1]||""),re=[],ue=[],oe={FileIndex:re,FullPaths:ue};w(oe);var U,ne=0;for(K=0;K<j.length;++K){var ye=j[K];ye!==ae&&ye!==ae+"--"||(ne++&&Ta(oe,j.slice(U,K),R),U=K)}return oe}function po(B,G){var R=G||{},j=R.boundary||"SheetJS";j="------="+j;for(var K=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+j.slice(2)+'"',"","",""],k=B.FullPaths[0],H=k,ae=B.FileIndex[0],re=1;re<B.FullPaths.length;++re)if(H=B.FullPaths[re].slice(k.length),ae=B.FileIndex[re],!(!ae.size||!ae.content||H=="Sh33tJ5")){H=H.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Ue){return"_x"+Ue.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Ue){return"_u"+Ue.charCodeAt(0).toString(16)+"_"});for(var ue=ae.content,oe=Kt&&Buffer.isBuffer(ue)?ue.toString("binary"):W(ue),U=0,ne=Math.min(1024,oe.length),ye=0,me=0;me<=ne;++me)(ye=oe.charCodeAt(me))>=32&&ye<128&&++U;var Ae=U>=ne*4/5;K.push(j),K.push("Content-Location: "+(R.root||"file:///C:/SheetJS/")+H),K.push("Content-Transfer-Encoding: "+(Ae?"quoted-printable":"base64")),K.push("Content-Type: "+Zt(ae,H)),K.push(""),K.push(Ae?ci(oe):tr(oe))}return K.push(j+`--\r
|
||
`),K.join(`\r
|
||
`)}function bu(B){var G={};return w(G,B),G}function wu(B,G,R,j){var K=j&&j.unsafe;K||w(B);var k=!K&&Yt.find(B,G);if(!k){var H=B.FullPaths[0];G.slice(0,H.length)==H?H=G:(H.slice(-1)!="/"&&(H+="/"),H=(H+G).replace("//","/")),k={name:a(G),type:2},B.FileIndex.push(k),B.FullPaths.push(H),K||Yt.utils.cfb_gc(B)}return k.content=R,k.size=R?R.length:0,j&&(j.CLSID&&(k.clsid=j.CLSID),j.mt&&(k.mt=j.mt),j.ct&&(k.ct=j.ct)),k}function ho(B,G){w(B);var R=Yt.find(B,G);if(R){for(var j=0;j<B.FileIndex.length;++j)if(B.FileIndex[j]==R)return B.FileIndex.splice(j,1),B.FullPaths.splice(j,1),!0}return!1}function Ii(B,G,R){w(B);var j=Yt.find(B,G);if(j){for(var K=0;K<B.FileIndex.length;++K)if(B.FileIndex[K]==j)return B.FileIndex[K].name=a(R),B.FullPaths[K]=R,!0}return!1}function wc(B){_(B,!0)}return t.find=P,t.read=S,t.parse=c,t.write=de,t.writeFile=ie,t.utils={cfb_new:bu,cfb_add:wu,cfb_del:ho,cfb_mov:Ii,cfb_gc:wc,ReadShift:cg,CheckField:FX,prep_blob:ea,bconcat:al,use_zlib:A,_deflateRaw:Ze,_inflateRaw:_e,consts:V},t}();function ixe(e){if(typeof Deno<"u")return Deno.readFileSync(e);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var t=File(e);t.open("r"),t.encoding="binary";var r=t.read();return t.close(),r}catch(n){if(!n.message||!n.message.match(/onstruct/))throw n}throw new Error("Cannot access file "+e)}function Es(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function VD(e){for(var t=[],r=Es(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}var db=new Date(1899,11,30,0,0,0);function $a(e,t){var r=e.getTime();t&&(r-=1462*24*60*60*1e3);var n=db.getTime()+(e.getTimezoneOffset()-db.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var lX=new Date,oxe=db.getTime()+(lX.getTimezoneOffset()-db.getTimezoneOffset())*6e4,PN=lX.getTimezoneOffset();function qE(e){var t=new Date;return t.setTime(e*24*60*60*1e3+oxe),t.getTimezoneOffset()!==PN&&t.setTime(t.getTime()+(t.getTimezoneOffset()-PN)*6e4),t}function sxe(e){var t=0,r=0,n=!1,a=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!a)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var i=1;i!=a.length;++i)if(a[i]){switch(r=1,i>3&&(n=!0),a[i].slice(a[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+a[i].slice(a[i].length-1));case"D":r*=24;case"H":r*=60;case"M":if(n)r*=60;else throw new Error("Unsupported ISO Duration Field: M")}t+=r*parseInt(a[i],10)}return t}var NN=new Date("2017-02-19T19:06:09.000Z"),cX=isNaN(NN.getFullYear())?new Date("2/19/17"):NN,uxe=cX.getFullYear()==2017;function Kn(e,t){var r=new Date(e);if(uxe)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(cX.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function $f(e,t){if(Kt&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return Gv(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Gv(Yq(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return Gv(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Gv(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"","‚":"",ƒ:"","„":"","…":"
","†":"","‡":"","ˆ":"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return r[i]||i})}catch(i){}for(var n=[],a=0;a!=e.length;++a)n.push(String.fromCharCode(e[a]));return n.join("")}function na(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=na(e[r]));return t}function Xr(e,t){for(var r="";r.length<t;)r+=e;return r}function Ro(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(t=Number(n))||(n=n.replace(/[(](.*)[)]/,function(a,i){return r=-r,i}),!isNaN(t=Number(n)))?t/r:t}var lxe=["january","february","march","april","may","june","july","august","september","october","november","december"];function op(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),a=t.getMonth(),i=t.getDate();if(isNaN(i))return r;var o=e.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),o.length>3&&lxe.indexOf(o)==-1)return r}else if(o.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||i>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}var cxe=function(){var e="abacaba".split(/(:?b)/i).length==5;return function(r,n,a){if(e||typeof n=="string")return r.split(n);for(var i=r.split(n),o=[i[0]],s=1;s<i.length;++s)o.push(a),o.push(i[s]);return o}}();function fX(e){return e?e.content&&e.type?$f(e.content,!0):e.data?zv(e.data):e.asNodeBuffer&&Kt?zv(e.asNodeBuffer().toString("binary")):e.asBinary?zv(e.asBinary()):e._data&&e._data.getContent?zv($f(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function dX(e){if(!e)return null;if(e.data)return EN(e.data);if(e.asNodeBuffer&&Kt)return e.asNodeBuffer();if(e._data&&e._data.getContent){var t=e._data.getContent();return typeof t=="string"?EN(t):Array.prototype.slice.call(t)}return e.content&&e.type?e.content:null}function fxe(e){return e&&e.name.slice(-4)===".bin"?dX(e):fX(e)}function Ui(e,t){for(var r=e.FullPaths||Es(e.files),n=t.toLowerCase().replace(/[\/]/g,"\\"),a=n.replace(/\\/g,"/"),i=0;i<r.length;++i){var o=r[i].replace(/^Root Entry[\/]/,"").toLowerCase();if(n==o||a==o)return e.files?e.files[r[i]]:e.FileIndex[i]}return null}function WD(e,t){var r=Ui(e,t);if(r==null)throw new Error("Cannot find file "+t+" in zip");return r}function hn(e,t,r){if(!r)return fxe(WD(e,t));if(!t)return null;try{return hn(e,t)}catch(n){return null}}function yi(e,t,r){if(!r)return fX(WD(e,t));if(!t)return null;try{return yi(e,t)}catch(n){return null}}function pX(e,t,r){if(!r)return dX(WD(e,t));if(!t)return null;try{return pX(e,t)}catch(n){return null}}function IN(e){for(var t=e.FullPaths||Es(e.files),r=[],n=0;n<t.length;++n)t[n].slice(-1)!="/"&&r.push(t[n].replace(/^Root Entry[\/]/,""));return r.sort()}function dxe(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return Kt?n=s0(r):n=B2e(r),Yt.utils.cfb_add(e,t,n)}Yt.utils.cfb_add(e,t,r)}else e.file(t,r)}function hX(e,t){switch(t.type){case"base64":return Yt.read(e,{type:"base64"});case"binary":return Yt.read(e,{type:"binary"});case"buffer":case"array":return Yt.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function Wv(e,t){if(e.charAt(0)=="/")return e.slice(1);var r=t.split("/");t.slice(-1)!="/"&&r.pop();for(var n=e.split("/");n.length!==0;){var a=n.shift();a===".."?r.pop():a!=="."&&r.push(a)}return r.join("/")}var vX=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
|
||
`,pxe=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,RN=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,hxe=/<[^>]*>/g,Aa=vX.match(RN)?RN:hxe,vxe=/<\w*:/,gxe=/<(\/?)\w+:/;function lt(e,t,r){for(var n={},a=0,i=0;a!==e.length&&!((i=e.charCodeAt(a))===32||i===10||i===13);++a);if(t||(n[0]=e.slice(0,a)),a===e.length)return n;var o=e.match(pxe),s=0,u="",l=0,c="",f="",d=1;if(o)for(l=0;l!=o.length;++l){for(f=o[l],i=0;i!=f.length&&f.charCodeAt(i)!==61;++i);for(c=f.slice(0,i).trim();f.charCodeAt(i+1)==32;)++i;for(d=(a=f.charCodeAt(i+1))==34||a==39?1:0,u=f.slice(i+1+d,f.length-d),s=0;s!=c.length&&c.charCodeAt(s)!==58;++s);if(s===c.length)c.indexOf("_")>0&&(c=c.slice(0,c.indexOf("_"))),n[c]=u,r||(n[c.toLowerCase()]=u);else{var p=(s===5&&c.slice(0,5)==="xmlns"?"xmlns":"")+c.slice(s+1);if(n[p]&&c.slice(s-3,s)=="ext")continue;n[p]=u,r||(n[p.toLowerCase()]=u)}}return n}function Bs(e){return e.replace(gxe,"<$1")}var gX={""":'"',"'":"'",">":">","<":"<","&":"&"},mxe=VD(gX),er=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,t=/_x([\da-fA-F]{4})_/ig;return function r(n){var a=n+"",i=a.indexOf("<![CDATA[");if(i==-1)return a.replace(e,function(s,u){return gX[s]||String.fromCharCode(parseInt(u,s.indexOf("x")>-1?16:10))||s}).replace(t,function(s,u){return String.fromCharCode(parseInt(u,16))});var o=a.indexOf("]]>");return r(a.slice(0,i))+a.slice(i+9,o)+r(a.slice(o+3))}}(),yxe=/[&<>'"]/g,xxe=/[\u0000-\u001f]/g;function GD(e){var t=e+"";return t.replace(yxe,function(r){return mxe[r]}).replace(/\n/g,"<br/>").replace(xxe,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}var LN=function(){var e=/&#(\d+);/g;function t(r,n){return String.fromCharCode(parseInt(n,10))}return function(n){return n.replace(e,t)}}();function Rr(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function IS(e){for(var t="",r=0,n=0,a=0,i=0,o=0,s=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(a=e.charCodeAt(r++),n>191&&n<224){o=(n&31)<<6,o|=a&63,t+=String.fromCharCode(o);continue}if(i=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);continue}o=e.charCodeAt(r++),s=((n&7)<<18|(a&63)<<12|(i&63)<<6|o&63)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(s&1023))}return t}function MN(e){var t=ql(2*e.length),r,n,a=1,i=0,o=0,s;for(n=0;n<e.length;n+=a)a=1,(s=e.charCodeAt(n))<128?r=s:s<224?(r=(s&31)*64+(e.charCodeAt(n+1)&63),a=2):s<240?(r=(s&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),a=3):(a=4,r=(s&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,o=55296+(r>>>10&1023),r=56320+(r&1023)),o!==0&&(t[i++]=o&255,t[i++]=o>>>8,o=0),t[i++]=r%256,t[i++]=r>>>8;return t.slice(0,i).toString("ucs2")}function jN(e){return s0(e,"binary").toString("utf8")}var By="foo bar bazâð£",_r=Kt&&(jN(By)==IS(By)&&jN||MN(By)==IS(By)&&MN)||IS,Gv=Kt?function(e){return s0(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,a=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(a>>18&7))),t.push(String.fromCharCode(144+(a>>12&63))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},e1=function(){var e={};return function(r,n){var a=r+"|"+(n||"");return e[a]?e[a]:e[a]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+r+">",n||"")}}(),mX=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
|
||
`).replace(/<[^>]*>/g,""),a=0;a<e.length;++a)n=n.replace(e[a][0],e[a][1]);return n}}(),bxe=function(){var e={};return function(r){return e[r]!==void 0?e[r]:e[r]=new RegExp("<(?:vt:)?"+r+">([\\s\\S]*?)</(?:vt:)?"+r+">","g")}}(),wxe=/<\/?(?:vt:)?variant>/g,Exe=/<(?:vt:)([^>]*)>([\s\S]*)</;function $N(e,t){var r=lt(e),n=e.match(bxe(r.baseType))||[],a=[];if(n.length!=r.size){if(t.WTF)throw new Error("unexpected vector length "+n.length+" != "+r.size);return a}return n.forEach(function(i){var o=i.replace(wxe,"").match(Exe);o&&a.push({v:_r(o[2]),t:o[1]})}),a}var Sxe=/(^\s|\s$|\n)/;function Cxe(e){return Es(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function _xe(e,t,r){return"<"+e+(r!=null?Cxe(r):"")+(t!=null?(t.match(Sxe)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function KD(e){if(Kt&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return _r(u0(UD(e)));throw new Error("Bad input format: expected Buffer or string")}var t1=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,Axe={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},kxe=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];function Txe(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),a=e[t+6]&15,i=5;i>=0;--i)a=a*256+e[t+i];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function Dxe(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,i=0,o=n?-t:t;isFinite(o)?o==0?a=i=0:(a=Math.floor(Math.log(o)/Math.LN2),i=o*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?a=-1022:(i-=Math.pow(2,52),a+=1023)):(a=2047,i=isNaN(t)?26985:0);for(var s=0;s<=5;++s,i/=256)e[r+s]=i&255;e[r+6]=(a&15)<<4|i&15,e[r+7]=a>>4|n}var UN=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var a=0,i=e[0][n].length;a<i;a+=r)t.push.apply(t,e[0][n].slice(a,a+r));return t},HN=Kt?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:s0(t)})):UN(e)}:UN,zN=function(e,t,r){for(var n=[],a=t;a<r;a+=2)n.push(String.fromCharCode(Ys(e,a)));return n.join("").replace(ja,"")},qD=Kt?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(ja,""):zN(e,t,r)}:zN,VN=function(e,t,r){for(var n=[],a=t;a<t+r;++a)n.push(("0"+e[a].toString(16)).slice(-2));return n.join("")},yX=Kt?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):VN(e,t,r)}:VN,WN=function(e,t,r){for(var n=[],a=t;a<r;a++)n.push(String.fromCharCode(dd(e,a)));return n.join("")},hm=Kt?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):WN(t,r,n)}:WN,xX=function(e,t){var r=gi(e,t);return r>0?hm(e,t+4,t+4+r-1):""},bX=xX,wX=function(e,t){var r=gi(e,t);return r>0?hm(e,t+4,t+4+r-1):""},EX=wX,SX=function(e,t){var r=2*gi(e,t);return r>0?hm(e,t+4,t+4+r-1):""},CX=SX,_X=function(t,r){var n=gi(t,r);return n>0?qD(t,r+4,r+4+n):""},AX=_X,kX=function(e,t){var r=gi(e,t);return r>0?hm(e,t+4,t+4+r):""},TX=kX,DX=function(e,t){return Txe(e,t)},pb=DX,OX=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};Kt&&(bX=function(t,r){if(!Buffer.isBuffer(t))return xX(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},EX=function(t,r){if(!Buffer.isBuffer(t))return wX(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},CX=function(t,r){if(!Buffer.isBuffer(t))return SX(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},AX=function(t,r){if(!Buffer.isBuffer(t))return _X(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},TX=function(t,r){if(!Buffer.isBuffer(t))return kX(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},pb=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):DX(t,r)},OX=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var dd=function(e,t){return e[t]},Ys=function(e,t){return e[t+1]*256+e[t]},Oxe=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},gi=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Wc=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Fxe=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function cg(e,t){var r="",n,a,i=[],o,s,u,l;switch(t){case"dbcs":if(l=this.l,Kt&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(u=0;u<e;++u)r+=String.fromCharCode(Ys(this,l)),l+=2;e*=2;break;case"utf8":r=hm(this,this.l,this.l+e);break;case"utf16le":e*=2,r=qD(this,this.l,this.l+e);break;case"wstr":return cg.call(this,e,"dbcs");case"lpstr-ansi":r=bX(this,this.l),e=4+gi(this,this.l);break;case"lpstr-cp":r=EX(this,this.l),e=4+gi(this,this.l);break;case"lpwstr":r=CX(this,this.l),e=4+2*gi(this,this.l);break;case"lpp4":e=4+gi(this,this.l),r=AX(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+gi(this,this.l),r=TX(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(o=dd(this,this.l+e++))!==0;)i.push(Fy(o));r=i.join("");break;case"_wstr":for(e=0,r="";(o=Ys(this,this.l+e))!==0;)i.push(Fy(o)),e+=2;e+=2,r=i.join("");break;case"dbcs-cont":for(r="",l=this.l,u=0;u<e;++u){if(this.lens&&this.lens.indexOf(l)!==-1)return o=dd(this,l),this.l=l+1,s=cg.call(this,e-u,o?"dbcs-cont":"sbcs-cont"),i.join("")+s;i.push(Fy(Ys(this,l))),l+=2}r=i.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",l=this.l,u=0;u!=e;++u){if(this.lens&&this.lens.indexOf(l)!==-1)return o=dd(this,l),this.l=l+1,s=cg.call(this,e-u,o?"dbcs-cont":"sbcs-cont"),i.join("")+s;i.push(Fy(dd(this,l))),l+=1}r=i.join("");break;default:switch(e){case 1:return n=dd(this,this.l),this.l++,n;case 2:return n=(t==="i"?Oxe:Ys)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||!(this[this.l+3]&128)?(n=(e>0?Wc:Fxe)(this,this.l),this.l+=4,n):(a=gi(this,this.l),this.l+=4,a);case 8:case-8:if(t==="f")return e==8?a=pb(this,this.l):a=pb([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;e=8;case 16:r=yX(this,this.l,e);break}}return this.l+=e,r}var Bxe=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},Pxe=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},Nxe=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function Ixe(e,t,r){var n=0,a=0;if(r==="dbcs"){for(a=0;a!=t.length;++a)Nxe(this,t.charCodeAt(a),this.l+2*a);n=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=t.length;++a)this[this.l+a]=t.charCodeAt(a)&255;n=t.length}else if(r==="hex"){for(;a<e;++a)this[this.l++]=parseInt(t.slice(2*a,2*a+2),16)||0;return this}else if(r==="utf16le"){var i=Math.min(this.l+e,this.length);for(a=0;a<Math.min(t.length,e);++a){var o=t.charCodeAt(a);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<i;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=t&255;break;case 2:n=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,Bxe(this,t,this.l);break;case 8:if(n=8,r==="f"){Dxe(this,t,this.l);break}case 16:break;case-4:n=4,Pxe(this,t,this.l);break}return this.l+=n,this}function FX(e,t){var r=yX(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function ea(e,t){e.l=t,e.read_shift=cg,e.chk=FX,e.write_shift=Ixe}function Sa(e,t){e.l+=t}function kn(e){var t=ql(e);return ea(t,0),t}function vu(e,t,r){if(e){var n,a,i;ea(e,e.l||0);for(var o=e.length,s=0,u=0;e.l<o;){s=e.read_shift(1),s&128&&(s=(s&127)+((e.read_shift(1)&127)<<7));var l=xb[s]||xb[65535];for(n=e.read_shift(1),i=n&127,a=1;a<4&&n&128;++a)i+=((n=e.read_shift(1))&127)<<7*a;u=e.l+i;var c=l.f&&l.f(e,i,r);if(e.l=u,t(c,l,s))return}}}function e6(){var e=[],t=Kt?256:2048,r=function(l){var c=kn(l);return ea(c,0),c},n=r(t),a=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},i=function(l){return n&&l<n.length-n.l?n:(a(),n=r(Math.max(l+1,t)))},o=function(){return a(),al(e)},s=function(l){a(),n=l,n.l==null&&(n.l=n.length),i(t)};return{next:i,push:s,end:o,_bufs:e}}function fg(e,t,r){var n=na(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function GN(e,t,r){var n=na(e);return n.s=fg(n.s,t.s,r),n.e=fg(n.e,t.s,r),n}function dg(e,t){if(e.cRel&&e.c<0)for(e=na(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=na(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=yt(e);return!e.cRel&&e.cRel!=null&&(r=Mxe(r)),!e.rRel&&e.rRel!=null&&(r=Rxe(r)),r}function RS(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+Bn(e.s.c)+":"+(e.e.cRel?"":"$")+Bn(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+aa(e.s.r)+":"+(e.e.rRel?"":"$")+aa(e.e.r):dg(e.s,t.biff)+":"+dg(e.e,t.biff)}function XD(e){return parseInt(Lxe(e),10)-1}function aa(e){return""+(e+1)}function Rxe(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function Lxe(e){return e.replace(/\$(\d+)$/,"$1")}function YD(e){for(var t=jxe(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function Bn(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function Mxe(e){return e.replace(/^([A-Z])/,"$$$1")}function jxe(e){return e.replace(/^\$([A-Z])/,"$1")}function $xe(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function La(e){for(var t=0,r=0,n=0;n<e.length;++n){var a=e.charCodeAt(n);a>=48&&a<=57?t=10*t+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:t-1}}function yt(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function Kp(e){var t=e.indexOf(":");return t==-1?{s:La(e),e:La(e)}:{s:La(e.slice(0,t)),e:La(e.slice(t+1))}}function Jt(e,t){return typeof t>"u"||typeof t=="number"?Jt(e.s,e.e):(typeof e!="string"&&(e=yt(e)),typeof t!="string"&&(t=yt(t)),e==t?e:e+":"+t)}function Zr(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,i=e.length;for(r=0;n<i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.s.c=--r,r=0;n<i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;if(t.s.r=--r,n===i||a!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.e.c=--r,r=0;n!=i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;return t.e.r=--r,t}function KN(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=no(e.z,r?$a(t):t)}catch(n){}try{return e.w=no((e.XF||{}).numFmtId||(r?14:0),r?$a(t):t)}catch(n){return""+t}}function cu(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?f0[e.v]||e.v:t==null?KN(e,e.v):KN(e,t))}function fc(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function BX(e,t,r){var n=r||{},a=e?Array.isArray(e):n.dense,i=e||(a?[]:{}),o=0,s=0;if(i&&n.origin!=null){if(typeof n.origin=="number")o=n.origin;else{var u=typeof n.origin=="string"?La(n.origin):n.origin;o=u.r,s=u.c}i["!ref"]||(i["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var c=Zr(i["!ref"]);l.s.c=c.s.c,l.s.r=c.s.r,l.e.c=Math.max(l.e.c,c.e.c),l.e.r=Math.max(l.e.r,c.e.r),o==-1&&(l.e.r=o=c.e.r+1)}for(var f=0;f!=t.length;++f)if(t[f]){if(!Array.isArray(t[f]))throw new Error("aoa_to_sheet expects an array of arrays");for(var d=0;d!=t[f].length;++d)if(!(typeof t[f][d]>"u")){var p={v:t[f][d]},v=o+f,h=s+d;if(l.s.r>v&&(l.s.r=v),l.s.c>h&&(l.s.c=h),l.e.r<v&&(l.e.r=v),l.e.c<h&&(l.e.c=h),t[f][d]&&typeof t[f][d]=="object"&&!Array.isArray(t[f][d])&&!(t[f][d]instanceof Date))p=t[f][d];else if(Array.isArray(p.v)&&(p.f=t[f][d][1],p.v=p.v[0]),p.v===null)if(p.f)p.t="n";else if(n.nullError)p.t="e",p.v=0;else if(n.sheetStubs)p.t="z";else continue;else typeof p.v=="number"?p.t="n":typeof p.v=="boolean"?p.t="b":p.v instanceof Date?(p.z=n.dateNF||Ct[14],n.cellDates?(p.t="d",p.w=no(p.z,$a(p.v))):(p.t="n",p.v=$a(p.v),p.w=no(p.z,p.v))):p.t="s";if(a)i[v]||(i[v]=[]),i[v][h]&&i[v][h].z&&(p.z=i[v][h].z),i[v][h]=p;else{var g=yt({c:h,r:v});i[g]&&i[g].z&&(p.z=i[g].z),i[g]=p}}}return l.s.c<1e7&&(i["!ref"]=Jt(l)),i}function qp(e,t){return BX(null,e,t)}function Uxe(e){return e.read_shift(4,"i")}function ba(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function Hxe(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function JD(e,t){var r=e.l,n=e.read_shift(1),a=ba(e),i=[],o={t:a,h:a};if(n&1){for(var s=e.read_shift(4),u=0;u!=s;++u)i.push(Hxe(e));o.r=i}else o.r=[{ich:0,ifnt:0}];return e.l=r+t,o}var zxe=JD;function co(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function l0(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}var Vxe=ba;function ZD(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}var Wxe=ba,t6=ZD;function QD(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var a=n===0?pb([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):Wc(t,0)>>2;return r?a/100:a}function PX(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var c0=PX;function ya(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Gxe(e){var t={},r=e.read_shift(1),n=r>>>1,a=e.read_shift(1),i=e.read_shift(2,"i"),o=e.read_shift(1),s=e.read_shift(1),u=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=a;var l=ff[a];l&&(t.rgb=n1(l));break;case 2:t.rgb=n1([o,s,u]);break;case 3:t.theme=a;break}return i!=0&&(t.tint=i>0?i/32767:i/32768),t}function Kxe(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function NX(e,t){var r={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},n=e.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return r[e.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return e.l-=4,e.read_shift(0,t==1?"lpstr":"lpwstr")}function qxe(e){return NX(e,1)}function Xxe(e){return NX(e,2)}var eO=2,Wa=3,Py=11,qN=12,hb=19,Ny=64,Yxe=65,Jxe=71,Zxe=4108,Qxe=4126,Hn=80,IX=81,ebe=[Hn,IX],tbe={1:{n:"CodePage",t:eO},2:{n:"Category",t:Hn},3:{n:"PresentationFormat",t:Hn},4:{n:"ByteCount",t:Wa},5:{n:"LineCount",t:Wa},6:{n:"ParagraphCount",t:Wa},7:{n:"SlideCount",t:Wa},8:{n:"NoteCount",t:Wa},9:{n:"HiddenCount",t:Wa},10:{n:"MultimediaClipCount",t:Wa},11:{n:"ScaleCrop",t:Py},12:{n:"HeadingPairs",t:Zxe},13:{n:"TitlesOfParts",t:Qxe},14:{n:"Manager",t:Hn},15:{n:"Company",t:Hn},16:{n:"LinksUpToDate",t:Py},17:{n:"CharacterCount",t:Wa},19:{n:"SharedDoc",t:Py},22:{n:"HyperlinksChanged",t:Py},23:{n:"AppVersion",t:Wa,p:"version"},24:{n:"DigSig",t:Yxe},26:{n:"ContentType",t:Hn},27:{n:"ContentStatus",t:Hn},28:{n:"Language",t:Hn},29:{n:"Version",t:Hn},255:{},2147483648:{n:"Locale",t:hb},2147483651:{n:"Behavior",t:hb},1919054434:{}},rbe={1:{n:"CodePage",t:eO},2:{n:"Title",t:Hn},3:{n:"Subject",t:Hn},4:{n:"Author",t:Hn},5:{n:"Keywords",t:Hn},6:{n:"Comments",t:Hn},7:{n:"Template",t:Hn},8:{n:"LastAuthor",t:Hn},9:{n:"RevNumber",t:Hn},10:{n:"EditTime",t:Ny},11:{n:"LastPrinted",t:Ny},12:{n:"CreatedDate",t:Ny},13:{n:"ModifiedDate",t:Ny},14:{n:"PageCount",t:Wa},15:{n:"WordCount",t:Wa},16:{n:"CharCount",t:Wa},17:{n:"Thumbnail",t:Jxe},18:{n:"Application",t:Hn},19:{n:"DocSecurity",t:Wa},255:{},2147483648:{n:"Locale",t:hb},2147483651:{n:"Behavior",t:hb},1919054434:{}},XN={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},nbe=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function abe(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var ibe=abe([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),ff=na(ibe),f0={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},RX={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},YN={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};function obe(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function sbe(e){var t=obe();if(!e||!e.match)return t;var r={};if((e.match(Aa)||[]).forEach(function(n){var a=lt(n);switch(a[0].replace(vxe,"<")){case"<?xml":break;case"<Types":t.xmlns=a["xmlns"+(a[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":r[a.Extension]=a.ContentType;break;case"<Override":t[YN[a.ContentType]]!==void 0&&t[YN[a.ContentType]].push(a.PartName);break}}),t.xmlns!==Axe.CT)throw new Error("Unknown Namespace: "+t.xmlns);return t.calcchain=t.calcchains.length>0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}var bd={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function r6(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function pg(e,t){var r={"!id":{}};if(!e)return r;t.charAt(0)!=="/"&&(t="/"+t);var n={};return(e.match(Aa)||[]).forEach(function(a){var i=lt(a);if(i[0]==="<Relationship"){var o={};o.Type=i.Type,o.Target=i.Target,o.Id=i.Id,i.TargetMode&&(o.TargetMode=i.TargetMode);var s=i.TargetMode==="External"?i.Target:Wv(i.Target,t);r[s]=o,n[i.Id]=o}}),r["!id"]=n,r}var ube="application/vnd.oasis.opendocument.spreadsheet";function lbe(e,t){for(var r=KD(e),n,a;n=t1.exec(r);)switch(n[3]){case"manifest":break;case"file-entry":if(a=lt(n[0],!1),a.path=="/"&&a.type!==ube)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw n}}var hg=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],cbe=function(){for(var e=new Array(hg.length),t=0;t<hg.length;++t){var r=hg[t],n="(?:"+r[0].slice(0,r[0].indexOf(":"))+":)"+r[0].slice(r[0].indexOf(":")+1);e[t]=new RegExp("<"+n+"[^>]*>([\\s\\S]*?)</"+n+">")}return e}();function LX(e){var t={};e=_r(e);for(var r=0;r<hg.length;++r){var n=hg[r],a=e.match(cbe[r]);a!=null&&a.length>0&&(t[n[1]]=er(a[1])),n[2]==="date"&&t[n[1]]&&(t[n[1]]=Kn(t[n[1]]))}return t}var fbe=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function MX(e,t,r,n){var a=[];if(typeof e=="string")a=$N(e,n);else for(var i=0;i<e.length;++i)a=a.concat(e[i].map(function(c){return{v:c}}));var o=typeof t=="string"?$N(t,n).map(function(c){return c.v}):t,s=0,u=0;if(o.length>0)for(var l=0;l!==a.length;l+=2){switch(u=+a[l+1].v,a[l].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":r.Worksheets=u,r.SheetNames=o.slice(s,s+u);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=u,r.DefinedNames=o.slice(s,s+u);break;case"Charts":case"Diagramme":r.Chartsheets=u,r.ChartNames=o.slice(s,s+u);break}s+=u}}function dbe(e,t,r){var n={};return t||(t={}),e=_r(e),fbe.forEach(function(a){var i=(e.match(e1(a[0]))||[])[1];switch(a[2]){case"string":i&&(t[a[1]]=er(i));break;case"bool":t[a[1]]=i==="true";break;case"raw":var o=e.match(new RegExp("<"+a[0]+"[^>]*>([\\s\\S]*?)</"+a[0]+">"));o&&o.length>0&&(n[a[1]]=o[1]);break}}),n.HeadingPairs&&n.TitlesOfParts&&MX(n.HeadingPairs,n.TitlesOfParts,t,r),t}var pbe=/<[^>]+>[^<]*/g;function hbe(e,t){var r={},n="",a=e.match(pbe);if(a)for(var i=0;i!=a.length;++i){var o=a[i],s=lt(o);switch(s[0]){case"<?xml":break;case"<Properties":break;case"<property":n=er(s.name);break;case"</property>":n=null;break;default:if(o.indexOf("<vt:")===0){var u=o.split(">"),l=u[0].slice(4),c=u[1];switch(l){case"lpstr":case"bstr":case"lpwstr":r[n]=er(c);break;case"bool":r[n]=Rr(c);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[n]=parseInt(c,10);break;case"r4":case"r8":case"decimal":r[n]=parseFloat(c);break;case"filetime":case"date":r[n]=Kn(c);break;case"cy":case"error":r[n]=er(c);break;default:if(l.slice(-1)=="/")break;t.WTF&&typeof console<"u"&&console.warn("Unexpected",o,l,u)}}else if(o.slice(0,2)!=="</"){if(t.WTF)throw new Error(o)}}}return r}var vbe={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"},LS;function gbe(e,t,r){LS||(LS=VD(vbe)),t=LS[t]||t,e[t]=r}function tO(e){var t=e.read_shift(4),r=e.read_shift(4);return new Date((r/1e7*Math.pow(2,32)+t/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function jX(e,t,r){var n=e.l,a=e.read_shift(0,"lpstr-cp");if(r)for(;e.l-n&3;)++e.l;return a}function $X(e,t,r){var n=e.read_shift(0,"lpwstr");return r&&(e.l+=4-(n.length+1&3)&3),n}function UX(e,t,r){return t===31?$X(e):jX(e,t,r)}function n6(e,t,r){return UX(e,t,r===!1?0:4)}function mbe(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return UX(e,t,0)}function ybe(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n){var a=e.l;r[n]=e.read_shift(0,"lpwstr").replace(ja,""),e.l-a&2&&(e.l+=2)}return r}function xbe(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n)r[n]=e.read_shift(0,"lpstr-cp").replace(ja,"");return r}function bbe(e){var t=e.l,r=vb(e,IX);e[e.l]==0&&e[e.l+1]==0&&e.l-t&2&&(e.l+=2);var n=vb(e,Wa);return[r,n]}function wbe(e){for(var t=e.read_shift(4),r=[],n=0;n<t/2;++n)r.push(bbe(e));return r}function JN(e,t){for(var r=e.read_shift(4),n={},a=0;a!=r;++a){var i=e.read_shift(4),o=e.read_shift(4);n[i]=e.read_shift(o,t===1200?"utf16le":"utf8").replace(ja,"").replace(Vv,"!"),t===1200&&o%2&&(e.l+=2)}return e.l&3&&(e.l=e.l>>2+1<<2),n}function HX(e){var t=e.read_shift(4),r=e.slice(e.l,e.l+t);return e.l+=t,(t&3)>0&&(e.l+=4-(t&3)&3),r}function Ebe(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function vb(e,t,r){var n=e.read_shift(2),a,i=r||{};if(e.l+=2,t!==qN&&n!==t&&ebe.indexOf(t)===-1&&!((t&65534)==4126&&(n&65534)==4126))throw new Error("Expected type "+t+" saw "+n);switch(t===qN?n:t){case 2:return a=e.read_shift(2,"i"),i.raw||(e.l+=2),a;case 3:return a=e.read_shift(4,"i"),a;case 11:return e.read_shift(4)!==0;case 19:return a=e.read_shift(4),a;case 30:return jX(e,n,4).replace(ja,"");case 31:return $X(e);case 64:return tO(e);case 65:return HX(e);case 71:return Ebe(e);case 80:return n6(e,n,!i.raw).replace(ja,"");case 81:return mbe(e,n).replace(ja,"");case 4108:return wbe(e);case 4126:case 4127:return n==4127?ybe(e):xbe(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+n)}}function ZN(e,t){var r=e.l,n=e.read_shift(4),a=e.read_shift(4),i=[],o=0,s=0,u=-1,l={};for(o=0;o!=a;++o){var c=e.read_shift(4),f=e.read_shift(4);i[o]=[c,f+r]}i.sort(function(y,x){return y[1]-x[1]});var d={};for(o=0;o!=a;++o){if(e.l!==i[o][1]){var p=!0;if(o>0&&t)switch(t[i[o-1][0]].t){case 2:e.l+2===i[o][1]&&(e.l+=2,p=!1);break;case 80:e.l<=i[o][1]&&(e.l=i[o][1],p=!1);break;case 4108:e.l<=i[o][1]&&(e.l=i[o][1],p=!1);break}if((!t||o==0)&&e.l<=i[o][1]&&(p=!1,e.l=i[o][1]),p)throw new Error("Read Error: Expected address "+i[o][1]+" at "+e.l+" :"+o)}if(t){var v=t[i[o][0]];if(d[v.n]=vb(e,v.t,{raw:!0}),v.p==="version"&&(d[v.n]=String(d[v.n]>>16)+"."+("0000"+String(d[v.n]&65535)).slice(-4)),v.n=="CodePage")switch(d[v.n]){case 0:d[v.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:Fo(s=d[v.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+d[v.n])}}else if(i[o][0]===1){if(s=d.CodePage=vb(e,eO),Fo(s),u!==-1){var h=e.l;e.l=i[u][1],l=JN(e,s),e.l=h}}else if(i[o][0]===0){if(s===0){u=o,e.l=i[o+1][1];continue}l=JN(e,s)}else{var g=l[i[o][0]],m;switch(e[e.l]){case 65:e.l+=4,m=HX(e);break;case 30:e.l+=4,m=n6(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,m=n6(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,m=e.read_shift(4,"i");break;case 19:e.l+=4,m=e.read_shift(4);break;case 5:e.l+=4,m=e.read_shift(8,"f");break;case 11:e.l+=4,m=en(e,4);break;case 64:e.l+=4,m=Kn(tO(e));break;default:throw new Error("unparsed value: "+e[e.l])}d[g]=m}}return e.l=r+n,d}function QN(e,t,r){var n=e.content;if(!n)return{};ea(n,0);var a,i,o,s,u=0;n.chk("feff","Byte Order: "),n.read_shift(2);var l=n.read_shift(4),c=n.read_shift(16);if(c!==Yt.utils.consts.HEADER_CLSID&&c!==r)throw new Error("Bad PropertySet CLSID "+c);if(a=n.read_shift(4),a!==1&&a!==2)throw new Error("Unrecognized #Sets: "+a);if(i=n.read_shift(16),s=n.read_shift(4),a===1&&s!==n.l)throw new Error("Length mismatch: "+s+" !== "+n.l);a===2&&(o=n.read_shift(16),u=n.read_shift(4));var f=ZN(n,t),d={SystemIdentifier:l};for(var p in f)d[p]=f[p];if(d.FMTID=i,a===1)return d;if(u-n.l==2&&(n.l+=2),n.l!==u)throw new Error("Length mismatch 2: "+n.l+" !== "+u);var v;try{v=ZN(n,null)}catch(h){}for(p in v)d[p]=v[p];return d.FMTID=[i,o],d}function Au(e,t){return e.read_shift(t),null}function Sbe(e,t,r){for(var n=[],a=e.l+t;e.l<a;)n.push(r(e,a-e.l));if(a!==e.l)throw new Error("Slurp error");return n}function en(e,t){return e.read_shift(t)===1}function vn(e){return e.read_shift(2,"u")}function zX(e,t){return Sbe(e,t,vn)}function Cbe(e){var t=e.read_shift(1),r=e.read_shift(1);return r===1?t:t===1}function vm(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),a="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var i=e.read_shift(1);i&&(a="dbcs-cont")}else r.biff==12&&(a="wstr");r.biff>=2&&r.biff<=5&&(a="cpstr");var o=n?e.read_shift(n,a):"";return o}function _be(e){var t=e.read_shift(2),r=e.read_shift(1),n=r&4,a=r&8,i=1+(r&1),o=0,s,u={};a&&(o=e.read_shift(2)),n&&(s=e.read_shift(4));var l=i==2?"dbcs-cont":"sbcs-cont",c=t===0?"":e.read_shift(t,l);return a&&(e.l+=4*o),n&&(e.l+=s),u.t=c,a||(u.raw="<t>"+u.t+"</t>",u.r=u.t),u}function Uf(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var a=e.read_shift(1);return a===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function gm(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):Uf(e,n,r)}function d0(e,t,r){if(r.biff>5)return gm(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Abe(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[t,r]}function kbe(e){var t=e.read_shift(4),r=e.l,n=!1;t>24&&(e.l+=t-24,e.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(n=!0),e.l=r);var a=e.read_shift((n?t-24:t)>>1,"utf16le").replace(ja,"");return n&&(e.l+=24),a}function Tbe(e){for(var t=e.read_shift(2),r="";t-- >0;)r+="../";var n=e.read_shift(0,"lpstr-ansi");if(e.l+=2,e.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var a=e.read_shift(4);if(a===0)return r+n.replace(/\\/g,"/");var i=e.read_shift(4);if(e.read_shift(2)!=3)throw new Error("Bad FileMoniker");var o=e.read_shift(i>>1,"utf16le").replace(ja,"");return r+o}function Dbe(e,t){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return kbe(e);case"0303000000000000c000000000000046":return Tbe(e);default:throw new Error("Unsupported Moniker "+r)}}function Iy(e){var t=e.read_shift(4),r=t>0?e.read_shift(t,"utf16le").replace(ja,""):"";return r}function Obe(e,t){var r=e.l+t,n=e.read_shift(4);if(n!==2)throw new Error("Unrecognized streamVersion: "+n);var a=e.read_shift(2);e.l+=2;var i,o,s,u,l="",c,f;a&16&&(i=Iy(e,r-e.l)),a&128&&(o=Iy(e,r-e.l)),(a&257)===257&&(s=Iy(e,r-e.l)),(a&257)===1&&(u=Dbe(e,r-e.l)),a&8&&(l=Iy(e,r-e.l)),a&32&&(c=e.read_shift(16)),a&64&&(f=tO(e)),e.l=r;var d=o||s||u||"";d&&l&&(d+="#"+l),d||(d="#"+l),a&2&&d.charAt(0)=="/"&&d.charAt(1)!="/"&&(d="file://"+d);var p={Target:d};return c&&(p.guid=c),f&&(p.time=f),i&&(p.Tooltip=i),p}function VX(e){var t=e.read_shift(1),r=e.read_shift(1),n=e.read_shift(1),a=e.read_shift(1);return[t,r,n,a]}function WX(e,t){var r=VX(e);return r[3]=0,r}function Ps(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return{r:t,c:r,ixfe:n}}function Fbe(e){var t=e.read_shift(2),r=e.read_shift(2);return e.l+=8,{type:t,flags:r}}function Bbe(e,t,r){return t===0?"":d0(e,t,r)}function Pbe(e,t,r){var n=r.biff>8?4:2,a=e.read_shift(n),i=e.read_shift(n,"i"),o=e.read_shift(n,"i");return[a,i,o]}function GX(e){var t=e.read_shift(2),r=QD(e);return[t,r]}function Nbe(e,t,r){e.l+=4,t-=4;var n=e.l+t,a=vm(e,t,r),i=e.read_shift(2);if(n-=e.l,i!==n)throw new Error("Malformed AddinUdf: padding = "+n+" != "+i);return e.l+=i,a}function XE(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2);return{s:{c:n,r:t},e:{c:a,r}}}function KX(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(1),a=e.read_shift(1);return{s:{c:n,r:t},e:{c:a,r}}}var Ibe=KX;function qX(e){e.l+=4;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return e.l+=12,[r,t,n]}function Rbe(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function Lbe(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function fa(e){e.l+=2,e.l+=e.read_shift(2)}var Mbe={0:fa,4:fa,5:fa,6:fa,7:Lbe,8:fa,9:fa,10:fa,11:fa,12:fa,13:Rbe,14:fa,15:fa,16:fa,17:fa,18:fa,19:fa,20:fa,21:qX};function jbe(e,t){for(var r=e.l+t,n=[];e.l<r;){var a=e.read_shift(2);e.l-=2;try{n.push(Mbe[a](e,r-e.l))}catch(i){return e.l=r,n}}return e.l!=r&&(e.l=r),n}function Ry(e,t){var r={BIFFVer:0,dt:0};switch(r.BIFFVer=e.read_shift(2),t-=2,t>=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(t),r}function $be(e,t){return t===0||e.read_shift(2),1200}function Ube(e,t,r){if(r.enc)return e.l+=t,"";var n=e.l,a=d0(e,0,r);return e.read_shift(t+n-e.l),a}function Hbe(e,t,r){var n=r&&r.biff==8||t==2?e.read_shift(2):(e.l+=t,0);return{fDialog:n&16,fBelow:n&64,fRight:n&128}}function zbe(e,t,r){var n=e.read_shift(4),a=e.read_shift(1)&3,i=e.read_shift(1);switch(i){case 0:i="Worksheet";break;case 1:i="Macrosheet";break;case 2:i="Chartsheet";break;case 6:i="VBAModule";break}var o=vm(e,0,r);return o.length===0&&(o="Sheet1"),{pos:n,hs:a,dt:i,name:o}}function Vbe(e,t){for(var r=e.l+t,n=e.read_shift(4),a=e.read_shift(4),i=[],o=0;o!=a&&e.l<r;++o)i.push(_be(e));return i.Count=n,i.Unique=a,i}function Wbe(e,t){var r={};return r.dsst=e.read_shift(2),e.l+=t-2,r}function Gbe(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var r=e.read_shift(2);e.l+=4;var n=e.read_shift(1);return e.l+=3,n&7&&(t.level=n&7),n&32&&(t.hidden=!0),n&64&&(t.hpt=r/20),t}function Kbe(e){var t=Fbe(e);if(t.type!=2211)throw new Error("Invalid Future Record "+t.type);var r=e.read_shift(4);return r!==0}function qbe(e){return e.read_shift(2),e.read_shift(4)}function eI(e,t,r){var n=0;r&&r.biff==2||(n=e.read_shift(2));var a=e.read_shift(2);r&&r.biff==2&&(n=1-(a>>15),a&=32767);var i={Unsynced:n&1,DyZero:(n&2)>>1,ExAsc:(n&4)>>2,ExDsc:(n&8)>>3};return[i,a]}function Xbe(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),s=e.read_shift(2),u=e.read_shift(2),l=e.read_shift(2);return{Pos:[t,r],Dim:[n,a],Flags:i,CurTab:o,FirstTab:s,Selected:u,TabRatio:l}}function Ybe(e,t,r){if(r&&r.biff>=2&&r.biff<5)return{};var n=e.read_shift(2);return{RTL:n&64}}function Jbe(){}function Zbe(e,t,r){var n={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return n.name=vm(e,0,r),n}function Qbe(e){var t=Ps(e);return t.isst=e.read_shift(4),t}function ewe(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=e.l+t,a=Ps(e);r.biff==2&&e.l++;var i=gm(e,n-e.l,r);return a.val=i,a}function twe(e,t,r){var n=e.read_shift(2),a=d0(e,0,r);return[n,a]}var rwe=d0;function tI(e,t,r){var n=e.l+t,a=r.biff==8||!r.biff?4:2,i=e.read_shift(a),o=e.read_shift(a),s=e.read_shift(2),u=e.read_shift(2);return e.l=n,{s:{r:i,c:s},e:{r:o,c:u}}}function nwe(e){var t=e.read_shift(2),r=e.read_shift(2),n=GX(e);return{r:t,c:r,ixfe:n[0],rknum:n[1]}}function awe(e,t){for(var r=e.l+t-2,n=e.read_shift(2),a=e.read_shift(2),i=[];e.l<r;)i.push(GX(e));if(e.l!==r)throw new Error("MulRK read error");var o=e.read_shift(2);if(i.length!=o-a+1)throw new Error("MulRK length mismatch");return{r:n,c:a,C:o,rkrec:i}}function iwe(e,t){for(var r=e.l+t-2,n=e.read_shift(2),a=e.read_shift(2),i=[];e.l<r;)i.push(e.read_shift(2));if(e.l!==r)throw new Error("MulBlank read error");var o=e.read_shift(2);if(i.length!=o-a+1)throw new Error("MulBlank length mismatch");return{r:n,c:a,C:o,ixfe:i}}function owe(e,t,r,n){var a={},i=e.read_shift(4),o=e.read_shift(4),s=e.read_shift(4),u=e.read_shift(2);return a.patternType=nbe[s>>26],n.cellStyles&&(a.alc=i&7,a.fWrap=i>>3&1,a.alcV=i>>4&7,a.fJustLast=i>>7&1,a.trot=i>>8&255,a.cIndent=i>>16&15,a.fShrinkToFit=i>>20&1,a.iReadOrder=i>>22&2,a.fAtrNum=i>>26&1,a.fAtrFnt=i>>27&1,a.fAtrAlc=i>>28&1,a.fAtrBdr=i>>29&1,a.fAtrPat=i>>30&1,a.fAtrProt=i>>31&1,a.dgLeft=o&15,a.dgRight=o>>4&15,a.dgTop=o>>8&15,a.dgBottom=o>>12&15,a.icvLeft=o>>16&127,a.icvRight=o>>23&127,a.grbitDiag=o>>30&3,a.icvTop=s&127,a.icvBottom=s>>7&127,a.icvDiag=s>>14&127,a.dgDiag=s>>21&15,a.icvFore=u&127,a.icvBack=u>>7&127,a.fsxButton=u>>14&1),a}function swe(e,t,r){var n={};return n.ifnt=e.read_shift(2),n.numFmtId=e.read_shift(2),n.flags=e.read_shift(2),n.fStyle=n.flags>>2&1,t-=6,n.data=owe(e,t,n.fStyle,r),n}function uwe(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(t[0]!==0&&t[0]--,t[1]!==0&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function rI(e,t,r){var n=Ps(e);(r.biff==2||t==9)&&++e.l;var a=Cbe(e);return n.val=a,n.t=a===!0||a===!1?"b":"e",n}function lwe(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=Ps(e),a=ya(e);return n.val=a,n}var nI=Bbe;function cwe(e,t,r){var n=e.l+t,a=e.read_shift(2),i=e.read_shift(2);if(r.sbcch=i,i==1025||i==14849)return[i,a];if(i<1||i>255)throw new Error("Unexpected SupBook type: "+i);for(var o=Uf(e,i),s=[];n>e.l;)s.push(gm(e));return[i,a,o,s]}function aI(e,t,r){var n=e.read_shift(2),a,i={fBuiltIn:n&1,fWantAdvise:n>>>1&1,fWantPict:n>>>2&1,fOle:n>>>3&1,fOleLink:n>>>4&1,cf:n>>>5&1023,fIcon:n>>>15&1};return r.sbcch===14849&&(a=Nbe(e,t-2,r)),i.body=a||e.read_shift(t-2),typeof a=="string"&&(i.Name=a),i}var fwe=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function iI(e,t,r){var n=e.l+t,a=e.read_shift(2),i=e.read_shift(1),o=e.read_shift(1),s=e.read_shift(r&&r.biff==2?1:2),u=0;(!r||r.biff>=5)&&(r.biff!=5&&(e.l+=2),u=e.read_shift(2),r.biff==5&&(e.l+=2),e.l+=4);var l=Uf(e,o,r);a&32&&(l=fwe[l.charCodeAt(0)]);var c=n-e.l;r&&r.biff==2&&--c;var f=n==e.l||s===0||!(c>0)?[]:GSe(e,c,r,s);return{chKey:i,Name:l,itab:u,rgce:f}}function XX(e,t,r){if(r.biff<8)return dwe(e,t,r);for(var n=[],a=e.l+t,i=e.read_shift(r.biff>8?4:2);i--!==0;)n.push(Pbe(e,r.biff>8?12:6,r));if(e.l!=a)throw new Error("Bad ExternSheet: "+e.l+" != "+a);return n}function dwe(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=vm(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function pwe(e,t,r){if(r.biff<8){e.l+=t;return}var n=e.read_shift(2),a=e.read_shift(2),i=Uf(e,n,r),o=Uf(e,a,r);return[i,o]}function hwe(e,t,r){var n=KX(e);e.l++;var a=e.read_shift(1);return t-=8,[KSe(e,t,r),a,n]}function oI(e,t,r){var n=Ibe(e);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[n,VSe(e,t,r)]}function vwe(e){var t=e.read_shift(4)!==0,r=e.read_shift(4)!==0,n=e.read_shift(4);return[t,r,n]}function gwe(e,t,r){if(!(r.biff<8)){var n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),s=d0(e,0,r);return r.biff<8&&e.read_shift(1),[{r:n,c:a},s,o,i]}}function mwe(e,t,r){return gwe(e,t,r)}function ywe(e,t){for(var r=[],n=e.read_shift(2);n--;)r.push(XE(e));return r}function xwe(e,t,r){if(r&&r.biff<8)return wwe(e,t,r);var n=qX(e),a=jbe(e,t-22,n[1]);return{cmo:n,ft:a}}var bwe={8:function(e,t){var r=e.l+t;e.l+=10;var n=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var a=e.read_shift(1);return e.l+=a,e.l=r,{fmt:n}}};function wwe(e,t,r){e.l+=4;var n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var o=[];return o.push((bwe[n]||Sa)(e,t,r)),{cmo:[a,n,i],ft:o}}function Ewe(e,t,r){var n=e.l,a="";try{e.l+=4;var i=(r.lastobj||{cmo:[0,0]}).cmo[1],o;[0,5,7,11,12,14].indexOf(i)==-1?e.l+=6:o=Abe(e,6,r);var s=e.read_shift(2);e.read_shift(2),vn(e,2);var u=e.read_shift(2);e.l+=u;for(var l=1;l<e.lens.length-1;++l){if(e.l-n!=e.lens[l])throw new Error("TxO: bad continue record");var c=e[e.l],f=Uf(e,e.lens[l+1]-e.lens[l]-1);if(a+=f,a.length>=(c?s:2*s))break}if(a.length!==s&&a.length!==s*2)throw new Error("cchText: "+s+" != "+a.length);return e.l=n+t,{t:a}}catch(d){return e.l=n+t,{t:a}}}function Swe(e,t){var r=XE(e);e.l+=16;var n=Obe(e,t-24);return[r,n]}function Cwe(e,t){e.read_shift(2);var r=XE(e),n=e.read_shift((t-10)/2,"dbcs-cont");return n=n.replace(ja,""),[r,n]}function _we(e){var t=[0,0],r;return r=e.read_shift(2),t[0]=XN[r]||r,r=e.read_shift(2),t[1]=XN[r]||r,t}function Awe(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(WX(e));return r}function kwe(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(WX(e));return r}function Twe(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function YX(e,t,r){if(!r.cellStyles)return Sa(e,t);var n=r&&r.biff>=12?4:2,a=e.read_shift(n),i=e.read_shift(n),o=e.read_shift(n),s=e.read_shift(n),u=e.read_shift(2);n==2&&(e.l+=2);var l={s:a,e:i,w:o,ixfe:s,flags:u};return(r.biff>=5||!r.biff)&&(l.level=u>>8&7),l}function Dwe(e,t){var r={};return t<32||(e.l+=16,r.header=ya(e),r.footer=ya(e),e.l+=2),r}function Owe(e,t,r){var n={area:!1};if(r.biff!=5)return e.l+=t,n;var a=e.read_shift(1);return e.l+=3,a&16&&(n.area=!0),n}var Fwe=Ps,Bwe=zX,Pwe=gm;function Nwe(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a={fmt:t,env:r,len:n,data:e.slice(e.l,e.l+n)};return e.l+=n,a}function Iwe(e,t,r){r.biffguess&&r.biff==5&&(r.biff=2);var n=Ps(e);++e.l;var a=d0(e,t-7,r);return n.t="str",n.val=a,n}function Rwe(e){var t=Ps(e);++e.l;var r=ya(e);return t.t="n",t.val=r,t}function Lwe(e){var t=Ps(e);++e.l;var r=e.read_shift(2);return t.t="n",t.val=r,t}function Mwe(e){var t=e.read_shift(1);return t===0?(e.l++,""):e.read_shift(t,"sbcs-cont")}function jwe(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}function $we(e,t,r){var n=e.l+t,a=Ps(e),i=e.read_shift(2),o=Uf(e,i,r);return e.l=n,a.t="str",a.val=o,a}var Uwe=[2,3,48,49,131,139,140,245],sI=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=VD({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(s,u){var l=[],c=ql(1);switch(u.type){case"base64":c=_o(Ai(s));break;case"binary":c=_o(s);break;case"buffer":case"array":c=s;break}ea(c,0);var f=c.read_shift(1),d=!!(f&136),p=!1,v=!1;switch(f){case 2:break;case 3:break;case 48:p=!0,d=!0;break;case 49:p=!0,d=!0;break;case 131:break;case 139:break;case 140:v=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+f.toString(16))}var h=0,g=521;f==2&&(h=c.read_shift(2)),c.l+=3,f!=2&&(h=c.read_shift(4)),h>1048576&&(h=1e6),f!=2&&(g=c.read_shift(2));var m=c.read_shift(2),y=u.codepage||1252;f!=2&&(c.l+=16,c.read_shift(1),c[c.l]!==0&&(y=e[c[c.l]]),c.l+=1,c.l+=2),v&&(c.l+=36);for(var x=[],b={},E=Math.min(c.length,f==2?521:g-10-(p?264:0)),S=v?32:11;c.l<E&&c[c.l]!=13;)switch(b={},b.name=nl.utils.decode(y,c.slice(c.l,c.l+S)).replace(/[\u0000\r\n].*$/g,""),c.l+=S,b.type=String.fromCharCode(c.read_shift(1)),f!=2&&!v&&(b.offset=c.read_shift(4)),b.len=c.read_shift(1),f==2&&(b.offset=c.read_shift(2)),b.dec=c.read_shift(1),b.name.length&&x.push(b),f!=2&&(c.l+=v?13:14),b.type){case"B":(!p||b.len!=8)&&u.WTF&&console.log("Skipping "+b.name+":"+b.type);break;case"G":case"P":u.WTF&&console.log("Skipping "+b.name+":"+b.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+b.type)}if(c[c.l]!==13&&(c.l=g-1),c.read_shift(1)!==13)throw new Error("DBF Terminator not found "+c.l+" "+c[c.l]);c.l=g;var w=0,C=0;for(l[0]=[],C=0;C!=x.length;++C)l[0][C]=x[C].name;for(;h-- >0;){if(c[c.l]===42){c.l+=m;continue}for(++c.l,l[++w]=[],C=0,C=0;C!=x.length;++C){var _=c.slice(c.l,c.l+x[C].len);c.l+=x[C].len,ea(_,0);var O=nl.utils.decode(y,_);switch(x[C].type){case"C":O.trim().length&&(l[w][C]=O.replace(/\s+$/,""));break;case"D":O.length===8?l[w][C]=new Date(+O.slice(0,4),+O.slice(4,6)-1,+O.slice(6,8)):l[w][C]=O;break;case"F":l[w][C]=parseFloat(O.trim());break;case"+":case"I":l[w][C]=v?_.read_shift(-4,"i")^2147483648:_.read_shift(4,"i");break;case"L":switch(O.trim().toUpperCase()){case"Y":case"T":l[w][C]=!0;break;case"N":case"F":l[w][C]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+O+"|")}break;case"M":if(!d)throw new Error("DBF Unexpected MEMO for type "+f.toString(16));l[w][C]="##MEMO##"+(v?parseInt(O.trim(),10):_.read_shift(4));break;case"N":O=O.replace(/\u0000/g,"").trim(),O&&O!="."&&(l[w][C]=+O||0);break;case"@":l[w][C]=new Date(_.read_shift(-8,"f")-621356832e5);break;case"T":l[w][C]=new Date((_.read_shift(4)-2440588)*864e5+_.read_shift(4));break;case"Y":l[w][C]=_.read_shift(4,"i")/1e4+_.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[w][C]=-_.read_shift(-8,"f");break;case"B":if(p&&x[C].len==8){l[w][C]=_.read_shift(8,"f");break}case"G":case"P":_.l+=x[C].len;break;case"0":if(x[C].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+x[C].type)}}}if(f!=2&&c.l<c.length&&c[c.l++]!=26)throw new Error("DBF EOF Marker missing "+(c.l-1)+" of "+c.length+" "+c[c.l-1].toString(16));return u&&u.sheetRows&&(l=l.slice(0,u.sheetRows)),u.DBF=x,l}function n(s,u){var l=u||{};l.dateNF||(l.dateNF="yyyymmdd");var c=qp(r(s,l),l);return c["!cols"]=l.DBF.map(function(f){return{wch:f.len,DBF:f}}),delete l.DBF,c}function a(s,u){try{return fc(n(s,u),u)}catch(l){if(u&&u.WTF)throw l}return{SheetNames:[],Sheets:{}}}var i={B:8,C:250,L:1,D:8,"?":0,"":0};function o(s,u){var l=u||{};if(+l.codepage>=0&&Fo(+l.codepage),l.type=="string")throw new Error("Cannot write DBF to JS string");var c=e6(),f=c6(s,{header:1,raw:!0,cellDates:!0}),d=f[0],p=f.slice(1),v=s["!cols"]||[],h=0,g=0,m=0,y=1;for(h=0;h<d.length;++h){if(((v[h]||{}).DBF||{}).name){d[h]=v[h].DBF.name,++m;continue}if(d[h]!=null){if(++m,typeof d[h]=="number"&&(d[h]=d[h].toString(10)),typeof d[h]!="string")throw new Error("DBF Invalid column name "+d[h]+" |"+typeof d[h]+"|");if(d.indexOf(d[h])!==h){for(g=0;g<1024;++g)if(d.indexOf(d[h]+"_"+g)==-1){d[h]+="_"+g;break}}}}var x=Zr(s["!ref"]),b=[],E=[],S=[];for(h=0;h<=x.e.c-x.s.c;++h){var w="",C="",_=0,O=[];for(g=0;g<p.length;++g)p[g][h]!=null&&O.push(p[g][h]);if(O.length==0||d[h]==null){b[h]="?";continue}for(g=0;g<O.length;++g){switch(typeof O[g]){case"number":C="B";break;case"string":C="C";break;case"boolean":C="L";break;case"object":C=O[g]instanceof Date?"D":"C";break;default:C="C"}_=Math.max(_,String(O[g]).length),w=w&&w!=C?"C":C}_>250&&(_=250),C=((v[h]||{}).DBF||{}).type,C=="C"&&v[h].DBF.len>_&&(_=v[h].DBF.len),w=="B"&&C=="N"&&(w="N",S[h]=v[h].DBF.dec,_=v[h].DBF.len),E[h]=w=="C"||C=="N"?_:i[w]||0,y+=E[h],b[h]=w}var P=c.next(32);for(P.write_shift(4,318902576),P.write_shift(4,p.length),P.write_shift(2,296+32*m),P.write_shift(2,y),h=0;h<4;++h)P.write_shift(4,0);for(P.write_shift(4,0|(+t[qq]||3)<<8),h=0,g=0;h<d.length;++h)if(d[h]!=null){var F=c.next(32),q=(d[h].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);F.write_shift(1,q,"sbcs"),F.write_shift(1,b[h]=="?"?"C":b[h],"sbcs"),F.write_shift(4,g),F.write_shift(1,E[h]||i[b[h]]||0),F.write_shift(1,S[h]||0),F.write_shift(1,2),F.write_shift(4,0),F.write_shift(1,0),F.write_shift(4,0),F.write_shift(4,0),g+=E[h]||i[b[h]]||0}var ee=c.next(264);for(ee.write_shift(4,13),h=0;h<65;++h)ee.write_shift(4,0);for(h=0;h<p.length;++h){var J=c.next(y);for(J.write_shift(1,0),g=0;g<d.length;++g)if(d[g]!=null)switch(b[g]){case"L":J.write_shift(1,p[h][g]==null?63:p[h][g]?84:70);break;case"B":J.write_shift(8,p[h][g]||0,"f");break;case"N":var Z="0";for(typeof p[h][g]=="number"&&(Z=p[h][g].toFixed(S[g]||0)),m=0;m<E[g]-Z.length;++m)J.write_shift(1,32);J.write_shift(1,Z,"sbcs");break;case"D":p[h][g]?(J.write_shift(4,("0000"+p[h][g].getFullYear()).slice(-4),"sbcs"),J.write_shift(2,("00"+(p[h][g].getMonth()+1)).slice(-2),"sbcs"),J.write_shift(2,("00"+p[h][g].getDate()).slice(-2),"sbcs")):J.write_shift(8,"00000000","sbcs");break;case"C":var V=String(p[h][g]!=null?p[h][g]:"").slice(0,E[g]);for(J.write_shift(1,V,"sbcs"),m=0;m<E[g]-V.length;++m)J.write_shift(1,32);break}}return c.next(1).write_shift(1,26),c.end()}return{to_workbook:a,to_sheet:n,from_sheet:o}}(),Hwe=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1BN("+Es(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(d,p){var v=e[p];return typeof v=="number"?SN(v):v},n=function(d,p,v){var h=p.charCodeAt(0)-32<<4|v.charCodeAt(0)-48;return h==59?d:SN(h)};e["|"]=254;function a(d,p){switch(p.type){case"base64":return i(Ai(d),p);case"binary":return i(d,p);case"buffer":return i(Kt&&Buffer.isBuffer(d)?d.toString("binary"):u0(d),p);case"array":return i($f(d),p)}throw new Error("Unrecognized type "+p.type)}function i(d,p){var v=d.split(/[\n\r]+/),h=-1,g=-1,m=0,y=0,x=[],b=[],E=null,S={},w=[],C=[],_=[],O=0,P;for(+p.codepage>=0&&Fo(+p.codepage);m!==v.length;++m){O=0;var F=v[m].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),q=F.replace(/;;/g,"\0").split(";").map(function(L){return L.replace(/\u0000/g,";")}),ee=q[0],J;if(F.length>0)switch(ee){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":q[1].charAt(0)=="P"&&b.push(F.slice(3).replace(/;;/g,";"));break;case"C":var Z=!1,V=!1,ie=!1,W=!1,de=-1,M=-1;for(y=1;y<q.length;++y)switch(q[y].charAt(0)){case"A":break;case"X":g=parseInt(q[y].slice(1))-1,V=!0;break;case"Y":for(h=parseInt(q[y].slice(1))-1,V||(g=0),P=x.length;P<=h;++P)x[P]=[];break;case"K":J=q[y].slice(1),J.charAt(0)==='"'?J=J.slice(1,J.length-1):J==="TRUE"?J=!0:J==="FALSE"?J=!1:isNaN(Ro(J))?isNaN(op(J).getDate())||(J=Kn(J)):(J=Ro(J),E!==null&&Gp(E)&&(J=qE(J))),Z=!0;break;case"E":W=!0;var A=Od(q[y].slice(1),{r:h,c:g});x[h][g]=[x[h][g],A];break;case"S":ie=!0,x[h][g]=[x[h][g],"S5S"];break;case"G":break;case"R":de=parseInt(q[y].slice(1))-1;break;case"C":M=parseInt(q[y].slice(1))-1;break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+F)}if(Z&&(x[h][g]&&x[h][g].length==2?x[h][g][0]=J:x[h][g]=J,E=null),ie){if(W)throw new Error("SYLK shared formula cannot have own formula");var N=de>-1&&x[de][M];if(!N||!N[1])throw new Error("SYLK shared formula cannot find base");x[h][g][1]=oY(N[1],{r:h-de,c:g-M})}break;case"F":var I=0;for(y=1;y<q.length;++y)switch(q[y].charAt(0)){case"X":g=parseInt(q[y].slice(1))-1,++I;break;case"Y":for(h=parseInt(q[y].slice(1))-1,P=x.length;P<=h;++P)x[P]=[];break;case"M":O=parseInt(q[y].slice(1))/20;break;case"F":break;case"G":break;case"P":E=b[parseInt(q[y].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(_=q[y].slice(1).split(" "),P=parseInt(_[0],10);P<=parseInt(_[1],10);++P)O=parseInt(_[2],10),C[P-1]=O===0?{hidden:!0}:{wch:O},sp(C[P-1]);break;case"C":g=parseInt(q[y].slice(1))-1,C[g]||(C[g]={});break;case"R":h=parseInt(q[y].slice(1))-1,w[h]||(w[h]={}),O>0?(w[h].hpt=O,w[h].hpx=a1(O)):O===0&&(w[h].hidden=!0);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+F)}I<1&&(E=null);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+F)}}return w.length>0&&(S["!rows"]=w),C.length>0&&(S["!cols"]=C),p&&p.sheetRows&&(x=x.slice(0,p.sheetRows)),[x,S]}function o(d,p){var v=a(d,p),h=v[0],g=v[1],m=qp(h,p);return Es(g).forEach(function(y){m[y]=g[y]}),m}function s(d,p){return fc(o(d,p),p)}function u(d,p,v,h){var g="C;Y"+(v+1)+";X"+(h+1)+";K";switch(d.t){case"n":g+=d.v||0,d.f&&!d.F&&(g+=";E"+T4e(d.f,{r:v,c:h}));break;case"b":g+=d.v?"TRUE":"FALSE";break;case"e":g+=d.w||d.v;break;case"d":g+='"'+(d.w||d.v)+'"';break;case"s":g+='"'+d.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return g}function l(d,p){p.forEach(function(v,h){var g="F;W"+(h+1)+" "+(h+1)+" ";v.hidden?g+="0":(typeof v.width=="number"&&!v.wpx&&(v.wpx=mb(v.width)),typeof v.wpx=="number"&&!v.wch&&(v.wch=yb(v.wpx)),typeof v.wch=="number"&&(g+=Math.round(v.wch))),g.charAt(g.length-1)!=" "&&d.push(g)})}function c(d,p){p.forEach(function(v,h){var g="F;";v.hidden?g+="M0;":v.hpt?g+="M"+20*v.hpt+";":v.hpx&&(g+="M"+20*nY(v.hpx)+";"),g.length>2&&d.push(g+"R"+(h+1))})}function f(d,p){var v=["ID;PWXL;N;E"],h=[],g=Zr(d["!ref"]),m,y=Array.isArray(d),x=`\r
|
||
`;v.push("P;PGeneral"),v.push("F;P0;DG0G8;M255"),d["!cols"]&&l(v,d["!cols"]),d["!rows"]&&c(v,d["!rows"]),v.push("B;Y"+(g.e.r-g.s.r+1)+";X"+(g.e.c-g.s.c+1)+";D"+[g.s.c,g.s.r,g.e.c,g.e.r].join(" "));for(var b=g.s.r;b<=g.e.r;++b)for(var E=g.s.c;E<=g.e.c;++E){var S=yt({r:b,c:E});m=y?(d[b]||[])[E]:d[S],!(!m||m.v==null&&(!m.f||m.F))&&h.push(u(m,d,b,E))}return v.join(x)+x+h.join(x)+x+"E"+x}return{to_workbook:s,to_sheet:o,from_sheet:f}}(),zwe=function(){function e(i,o){switch(o.type){case"base64":return t(Ai(i),o);case"binary":return t(i,o);case"buffer":return t(Kt&&Buffer.isBuffer(i)?i.toString("binary"):u0(i),o);case"array":return t($f(i),o)}throw new Error("Unrecognized type "+o.type)}function t(i,o){for(var s=i.split(`
|
||
`),u=-1,l=-1,c=0,f=[];c!==s.length;++c){if(s[c].trim()==="BOT"){f[++u]=[],l=0;continue}if(!(u<0)){var d=s[c].trim().split(","),p=d[0],v=d[1];++c;for(var h=s[c]||"";(h.match(/["]/g)||[]).length&1&&c<s.length-1;)h+=`
|
||
`+s[++c];switch(h=h.trim(),+p){case-1:if(h==="BOT"){f[++u]=[],l=0;continue}else if(h!=="EOD")throw new Error("Unrecognized DIF special command "+h);break;case 0:h==="TRUE"?f[u][l]=!0:h==="FALSE"?f[u][l]=!1:isNaN(Ro(v))?isNaN(op(v).getDate())?f[u][l]=v:f[u][l]=Kn(v):f[u][l]=Ro(v),++l;break;case 1:h=h.slice(1,h.length-1),h=h.replace(/""/g,'"'),h&&h.match(/^=".*"$/)&&(h=h.slice(2,-1)),f[u][l++]=h!==""?h:null;break}if(h==="EOD")break}}return o&&o.sheetRows&&(f=f.slice(0,o.sheetRows)),f}function r(i,o){return qp(e(i,o),o)}function n(i,o){return fc(r(i,o),o)}var a=function(){var i=function(u,l,c,f,d){u.push(l),u.push(c+","+f),u.push('"'+d.replace(/"/g,'""')+'"')},o=function(u,l,c,f){u.push(l+","+c),u.push(l==1?'"'+f.replace(/"/g,'""')+'"':f)};return function(u){var l=[],c=Zr(u["!ref"]),f,d=Array.isArray(u);i(l,"TABLE",0,1,"sheetjs"),i(l,"VECTORS",0,c.e.r-c.s.r+1,""),i(l,"TUPLES",0,c.e.c-c.s.c+1,""),i(l,"DATA",0,0,"");for(var p=c.s.r;p<=c.e.r;++p){o(l,-1,0,"BOT");for(var v=c.s.c;v<=c.e.c;++v){var h=yt({r:p,c:v});if(f=d?(u[p]||[])[v]:u[h],!f){o(l,1,0,"");continue}switch(f.t){case"n":var g=f.w;!g&&f.v!=null&&(g=f.v),g==null?f.f&&!f.F?o(l,1,0,"="+f.f):o(l,1,0,""):o(l,0,g,"V");break;case"b":o(l,0,f.v?1:0,f.v?"TRUE":"FALSE");break;case"s":o(l,1,0,isNaN(f.v)?f.v:'="'+f.v+'"');break;case"d":f.w||(f.w=no(f.z||Ct[14],$a(Kn(f.v)))),o(l,0,f.w,"V");break;default:o(l,1,0,"")}}}o(l,-1,0,"EOD");var m=`\r
|
||
`,y=l.join(m);return y}}();return{to_workbook:n,to_sheet:r,from_sheet:a}}(),Vwe=function(){function e(f){return f.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
|
||
`)}function t(f){return f.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(f,d){for(var p=f.split(`
|
||
`),v=-1,h=-1,g=0,m=[];g!==p.length;++g){var y=p[g].trim().split(":");if(y[0]==="cell"){var x=La(y[1]);if(m.length<=x.r)for(v=m.length;v<=x.r;++v)m[v]||(m[v]=[]);switch(v=x.r,h=x.c,y[2]){case"t":m[v][h]=e(y[3]);break;case"v":m[v][h]=+y[3];break;case"vtf":var b=y[y.length-1];case"vtc":switch(y[3]){case"nl":m[v][h]=!!+y[4];break;default:m[v][h]=+y[4];break}y[2]=="vtf"&&(m[v][h]=[m[v][h],b])}}}return d&&d.sheetRows&&(m=m.slice(0,d.sheetRows)),m}function n(f,d){return qp(r(f,d),d)}function a(f,d){return fc(n(f,d),d)}var i=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
|
||
`),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
|
||
`)+`
|
||
`,s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
|
||
`),u="--SocialCalcSpreadsheetControlSave--";function l(f){if(!f||!f["!ref"])return"";for(var d=[],p=[],v,h="",g=Kp(f["!ref"]),m=Array.isArray(f),y=g.s.r;y<=g.e.r;++y)for(var x=g.s.c;x<=g.e.c;++x)if(h=yt({r:y,c:x}),v=m?(f[y]||[])[x]:f[h],!(!v||v.v==null||v.t==="z")){switch(p=["cell",h,"t"],v.t){case"s":case"str":p.push(t(v.v));break;case"n":v.f?(p[2]="vtf",p[3]="n",p[4]=v.v,p[5]=t(v.f)):(p[2]="v",p[3]=v.v);break;case"b":p[2]="vt"+(v.f?"f":"c"),p[3]="nl",p[4]=v.v?"1":"0",p[5]=t(v.f||(v.v?"TRUE":"FALSE"));break;case"d":var b=$a(Kn(v.v));p[2]="vtc",p[3]="nd",p[4]=""+b,p[5]=v.w||no(v.z||Ct[14],b);break;case"e":continue}d.push(p.join(":"))}return d.push("sheet:c:"+(g.e.c-g.s.c+1)+":r:"+(g.e.r-g.s.r+1)+":tvf:1"),d.push("valueformat:1:text-wiki"),d.join(`
|
||
`)}function c(f){return[i,o,s,o,l(f),u].join(`
|
||
`)}return{to_workbook:a,to_sheet:n,from_sheet:c}}(),r1=function(){function e(c,f,d,p,v){v.raw?f[d][p]=c:c===""||(c==="TRUE"?f[d][p]=!0:c==="FALSE"?f[d][p]=!1:isNaN(Ro(c))?isNaN(op(c).getDate())?f[d][p]=c:f[d][p]=Kn(c):f[d][p]=Ro(c))}function t(c,f){var d=f||{},p=[];if(!c||c.length===0)return p;for(var v=c.split(/[\r\n]/),h=v.length-1;h>=0&&v[h].length===0;)--h;for(var g=10,m=0,y=0;y<=h;++y)m=v[y].indexOf(" "),m==-1?m=v[y].length:m++,g=Math.max(g,m);for(y=0;y<=h;++y){p[y]=[];var x=0;for(e(v[y].slice(0,g).trim(),p,y,x,d),x=1;x<=(v[y].length-g)/10+1;++x)e(v[y].slice(g+(x-1)*10,g+x*10).trim(),p,y,x,d)}return d.sheetRows&&(p=p.slice(0,d.sheetRows)),p}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(c){for(var f={},d=!1,p=0,v=0;p<c.length;++p)(v=c.charCodeAt(p))==34?d=!d:!d&&v in r&&(f[v]=(f[v]||0)+1);v=[];for(p in f)Object.prototype.hasOwnProperty.call(f,p)&&v.push([f[p],p]);if(!v.length){f=n;for(p in f)Object.prototype.hasOwnProperty.call(f,p)&&v.push([f[p],p])}return v.sort(function(h,g){return h[0]-g[0]||n[h[1]]-n[g[1]]}),r[v.pop()[1]]||44}function i(c,f){var d=f||{},p="",v=d.dense?[]:{},h={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(p=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(p=c.charAt(4),c=c.slice(6)):p=a(c.slice(0,1024)):d&&d.FS?p=d.FS:p=a(c.slice(0,1024));var g=0,m=0,y=0,x=0,b=0,E=p.charCodeAt(0),S=!1,w=0,C=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
|
||
`);var _=d.dateNF!=null?rxe(d.dateNF):null;function O(){var P=c.slice(x,b),F={};if(P.charAt(0)=='"'&&P.charAt(P.length-1)=='"'&&(P=P.slice(1,-1).replace(/""/g,'"')),P.length===0)F.t="z";else if(d.raw)F.t="s",F.v=P;else if(P.trim().length===0)F.t="s",F.v=P;else if(P.charCodeAt(0)==61)P.charCodeAt(1)==34&&P.charCodeAt(P.length-1)==34?(F.t="s",F.v=P.slice(2,-1).replace(/""/g,'"')):O4e(P)?(F.t="n",F.f=P.slice(1)):(F.t="s",F.v=P);else if(P=="TRUE")F.t="b",F.v=!0;else if(P=="FALSE")F.t="b",F.v=!1;else if(!isNaN(y=Ro(P)))F.t="n",d.cellText!==!1&&(F.w=P),F.v=y;else if(!isNaN(op(P).getDate())||_&&P.match(_)){F.z=d.dateNF||Ct[14];var q=0;_&&P.match(_)&&(P=nxe(P,d.dateNF,P.match(_)||[]),q=1),d.cellDates?(F.t="d",F.v=Kn(P,q)):(F.t="n",F.v=$a(Kn(P,q))),d.cellText!==!1&&(F.w=no(F.z,F.v instanceof Date?$a(F.v):F.v)),d.cellNF||delete F.z}else F.t="s",F.v=P;if(F.t=="z"||(d.dense?(v[g]||(v[g]=[]),v[g][m]=F):v[yt({c:m,r:g})]=F),x=b+1,C=c.charCodeAt(x),h.e.c<m&&(h.e.c=m),h.e.r<g&&(h.e.r=g),w==E)++m;else if(m=0,++g,d.sheetRows&&d.sheetRows<=g)return!0}e:for(;b<c.length;++b)switch(w=c.charCodeAt(b)){case 34:C===34&&(S=!S);break;case E:case 10:case 13:if(!S&&O())break e;break}return b-x>0&&O(),v["!ref"]=Jt(h),v}function o(c,f){return!(f&&f.PRN)||f.FS||c.slice(0,4)=="sep="||c.indexOf(" ")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?i(c,f):qp(t(c,f),f)}function s(c,f){var d="",p=f.type=="string"?[0,0,0,0]:lO(c,f);switch(f.type){case"base64":d=Ai(c);break;case"binary":d=c;break;case"buffer":f.codepage==65001?d=c.toString("utf8"):f.codepage&&typeof nl<"u"?d=nl.utils.decode(f.codepage,c):d=Kt&&Buffer.isBuffer(c)?c.toString("binary"):u0(c);break;case"array":d=$f(c);break;case"string":d=c;break;default:throw new Error("Unrecognized type "+f.type)}return p[0]==239&&p[1]==187&&p[2]==191?d=_r(d.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?d=_r(d):f.type=="binary"&&typeof nl<"u"&&f.codepage&&(d=nl.utils.decode(f.codepage,nl.utils.encode(28591,d))),d.slice(0,19)=="socialcalc:version:"?Vwe.to_sheet(f.type=="string"?d:_r(d),f):o(d,f)}function u(c,f){return fc(s(c,f),f)}function l(c){for(var f=[],d=Zr(c["!ref"]),p,v=Array.isArray(c),h=d.s.r;h<=d.e.r;++h){for(var g=[],m=d.s.c;m<=d.e.c;++m){var y=yt({r:h,c:m});if(p=v?(c[h]||[])[m]:c[y],!p||p.v==null){g.push(" ");continue}for(var x=(p.w||(cu(p),p.w)||"").slice(0,10);x.length<10;)x+=" ";g.push(x+(m===0?" ":""))}f.push(g.join(""))}return f.join(`
|
||
`)}return{to_workbook:u,to_sheet:s,from_sheet:l}}();function Wwe(e,t){var r=t||{},n=!!r.WTF;r.WTF=!0;try{var a=Hwe.to_workbook(e,r);return r.WTF=n,a}catch(i){if(r.WTF=n,!i.message.match(/SYLK bad record ID/)&&n)throw i;return r1.to_workbook(e,t)}}var vg=function(){function e(A,N,I){if(A){ea(A,A.l||0);for(var L=I.Enum||de;A.l<A.length;){var Y=A.read_shift(2),Q=L[Y]||L[65535],le=A.read_shift(2),ve=A.l+le,he=Q.f&&Q.f(A,le,I);if(A.l=ve,N(he,Q,Y))return}}}function t(A,N){switch(N.type){case"base64":return r(_o(Ai(A)),N);case"binary":return r(_o(A),N);case"buffer":case"array":return r(A,N)}throw"Unsupported type "+N.type}function r(A,N){if(!A)return A;var I=N||{},L=I.dense?[]:{},Y="Sheet1",Q="",le=0,ve={},he=[],fe=[],z={s:{r:0,c:0},e:{r:0,c:0}},je=I.sheetRows||0;if(A[2]==0&&(A[3]==8||A[3]==9)&&A.length>=16&&A[14]==5&&A[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(A[2]==2)I.Enum=de,e(A,function(we,Je,ut){switch(ut){case 0:I.vers=we,we>=4096&&(I.qpro=!0);break;case 6:z=we;break;case 204:we&&(Q=we);break;case 222:Q=we;break;case 15:case 51:I.qpro||(we[1].v=we[1].v.slice(1));case 13:case 14:case 16:ut==14&&(we[2]&112)==112&&(we[2]&15)>1&&(we[2]&15)<15&&(we[1].z=I.dateNF||Ct[14],I.cellDates&&(we[1].t="d",we[1].v=qE(we[1].v))),I.qpro&&we[3]>le&&(L["!ref"]=Jt(z),ve[Y]=L,he.push(Y),L=I.dense?[]:{},z={s:{r:0,c:0},e:{r:0,c:0}},le=we[3],Y=Q||"Sheet"+(le+1),Q="");var _t=I.dense?(L[we[0].r]||[])[we[0].c]:L[yt(we[0])];if(_t){_t.t=we[1].t,_t.v=we[1].v,we[1].z!=null&&(_t.z=we[1].z),we[1].f!=null&&(_t.f=we[1].f);break}I.dense?(L[we[0].r]||(L[we[0].r]=[]),L[we[0].r][we[0].c]=we[1]):L[yt(we[0])]=we[1];break}},I);else if(A[2]==26||A[2]==14)I.Enum=M,A[2]==14&&(I.qpro=!0,A.l=0),e(A,function(we,Je,ut){switch(ut){case 204:Y=we;break;case 22:we[1].v=we[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(we[3]>le&&(L["!ref"]=Jt(z),ve[Y]=L,he.push(Y),L=I.dense?[]:{},z={s:{r:0,c:0},e:{r:0,c:0}},le=we[3],Y="Sheet"+(le+1)),je>0&&we[0].r>=je)break;I.dense?(L[we[0].r]||(L[we[0].r]=[]),L[we[0].r][we[0].c]=we[1]):L[yt(we[0])]=we[1],z.e.c<we[0].c&&(z.e.c=we[0].c),z.e.r<we[0].r&&(z.e.r=we[0].r);break;case 27:we[14e3]&&(fe[we[14e3][0]]=we[14e3][1]);break;case 1537:fe[we[0]]=we[1],we[0]==le&&(Y=we[1]);break}},I);else throw new Error("Unrecognized LOTUS BOF "+A[2]);if(L["!ref"]=Jt(z),ve[Q||Y]=L,he.push(Q||Y),!fe.length)return{SheetNames:he,Sheets:ve};for(var Te={},Ne=[],He=0;He<fe.length;++He)ve[he[He]]?(Ne.push(fe[He]||he[He]),Te[fe[He]]=ve[fe[He]]||ve[he[He]]):(Ne.push(fe[He]),Te[fe[He]]={"!ref":"A1"});return{SheetNames:Ne,Sheets:Te}}function n(A,N){var I=N||{};if(+I.codepage>=0&&Fo(+I.codepage),I.type=="string")throw new Error("Cannot write WK1 to JS string");var L=e6(),Y=Zr(A["!ref"]),Q=Array.isArray(A),le=[];xo(L,0,i(1030)),xo(L,6,u(Y));for(var ve=Math.min(Y.e.r,8191),he=Y.s.r;he<=ve;++he)for(var fe=aa(he),z=Y.s.c;z<=Y.e.c;++z){he===Y.s.r&&(le[z]=Bn(z));var je=le[z]+fe,Te=Q?(A[he]||[])[z]:A[je];if(!(!Te||Te.t=="z"))if(Te.t=="n")(Te.v|0)==Te.v&&Te.v>=-32768&&Te.v<=32767?xo(L,13,p(he,z,Te.v)):xo(L,14,h(he,z,Te.v));else{var Ne=cu(Te);xo(L,15,f(he,z,Ne.slice(0,239)))}}return xo(L,1),L.end()}function a(A,N){var I=N||{};if(+I.codepage>=0&&Fo(+I.codepage),I.type=="string")throw new Error("Cannot write WK3 to JS string");var L=e6();xo(L,0,o(A));for(var Y=0,Q=0;Y<A.SheetNames.length;++Y)(A.Sheets[A.SheetNames[Y]]||{})["!ref"]&&xo(L,27,W(A.SheetNames[Y],Q++));var le=0;for(Y=0;Y<A.SheetNames.length;++Y){var ve=A.Sheets[A.SheetNames[Y]];if(!(!ve||!ve["!ref"])){for(var he=Zr(ve["!ref"]),fe=Array.isArray(ve),z=[],je=Math.min(he.e.r,8191),Te=he.s.r;Te<=je;++Te)for(var Ne=aa(Te),He=he.s.c;He<=he.e.c;++He){Te===he.s.r&&(z[He]=Bn(He));var we=z[He]+Ne,Je=fe?(ve[Te]||[])[He]:ve[we];if(!(!Je||Je.t=="z"))if(Je.t=="n")xo(L,23,O(Te,He,le,Je.v));else{var ut=cu(Je);xo(L,22,w(Te,He,le,ut.slice(0,239)))}}++le}}return xo(L,1),L.end()}function i(A){var N=kn(2);return N.write_shift(2,A),N}function o(A){var N=kn(26);N.write_shift(2,4096),N.write_shift(2,4),N.write_shift(4,0);for(var I=0,L=0,Y=0,Q=0;Q<A.SheetNames.length;++Q){var le=A.SheetNames[Q],ve=A.Sheets[le];if(!(!ve||!ve["!ref"])){++Y;var he=Kp(ve["!ref"]);I<he.e.r&&(I=he.e.r),L<he.e.c&&(L=he.e.c)}}return I>8191&&(I=8191),N.write_shift(2,I),N.write_shift(1,Y),N.write_shift(1,L),N.write_shift(2,0),N.write_shift(2,0),N.write_shift(1,1),N.write_shift(1,2),N.write_shift(4,0),N.write_shift(4,0),N}function s(A,N,I){var L={s:{c:0,r:0},e:{c:0,r:0}};return N==8&&I.qpro?(L.s.c=A.read_shift(1),A.l++,L.s.r=A.read_shift(2),L.e.c=A.read_shift(1),A.l++,L.e.r=A.read_shift(2),L):(L.s.c=A.read_shift(2),L.s.r=A.read_shift(2),N==12&&I.qpro&&(A.l+=2),L.e.c=A.read_shift(2),L.e.r=A.read_shift(2),N==12&&I.qpro&&(A.l+=2),L.s.c==65535&&(L.s.c=L.e.c=L.s.r=L.e.r=0),L)}function u(A){var N=kn(8);return N.write_shift(2,A.s.c),N.write_shift(2,A.s.r),N.write_shift(2,A.e.c),N.write_shift(2,A.e.r),N}function l(A,N,I){var L=[{c:0,r:0},{t:"n",v:0},0,0];return I.qpro&&I.vers!=20768?(L[0].c=A.read_shift(1),L[3]=A.read_shift(1),L[0].r=A.read_shift(2),A.l+=2):(L[2]=A.read_shift(1),L[0].c=A.read_shift(2),L[0].r=A.read_shift(2)),L}function c(A,N,I){var L=A.l+N,Y=l(A,N,I);if(Y[1].t="s",I.vers==20768){A.l++;var Q=A.read_shift(1);return Y[1].v=A.read_shift(Q,"utf8"),Y}return I.qpro&&A.l++,Y[1].v=A.read_shift(L-A.l,"cstr"),Y}function f(A,N,I){var L=kn(7+I.length);L.write_shift(1,255),L.write_shift(2,N),L.write_shift(2,A),L.write_shift(1,39);for(var Y=0;Y<L.length;++Y){var Q=I.charCodeAt(Y);L.write_shift(1,Q>=128?95:Q)}return L.write_shift(1,0),L}function d(A,N,I){var L=l(A,N,I);return L[1].v=A.read_shift(2,"i"),L}function p(A,N,I){var L=kn(7);return L.write_shift(1,255),L.write_shift(2,N),L.write_shift(2,A),L.write_shift(2,I,"i"),L}function v(A,N,I){var L=l(A,N,I);return L[1].v=A.read_shift(8,"f"),L}function h(A,N,I){var L=kn(13);return L.write_shift(1,255),L.write_shift(2,N),L.write_shift(2,A),L.write_shift(8,I,"f"),L}function g(A,N,I){var L=A.l+N,Y=l(A,N,I);if(Y[1].v=A.read_shift(8,"f"),I.qpro)A.l=L;else{var Q=A.read_shift(2);b(A.slice(A.l,A.l+Q),Y),A.l+=Q}return Y}function m(A,N,I){var L=N&32768;return N&=-32769,N=(L?A:0)+(N>=8192?N-16384:N),(L?"":"$")+(I?Bn(N):aa(N))}var y={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},x=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function b(A,N){ea(A,0);for(var I=[],L=0,Y="",Q="",le="",ve="";A.l<A.length;){var he=A[A.l++];switch(he){case 0:I.push(A.read_shift(8,"f"));break;case 1:Q=m(N[0].c,A.read_shift(2),!0),Y=m(N[0].r,A.read_shift(2),!1),I.push(Q+Y);break;case 2:{var fe=m(N[0].c,A.read_shift(2),!0),z=m(N[0].r,A.read_shift(2),!1);Q=m(N[0].c,A.read_shift(2),!0),Y=m(N[0].r,A.read_shift(2),!1),I.push(fe+z+":"+Q+Y)}break;case 3:if(A.l<A.length){console.error("WK1 premature formula end");return}break;case 4:I.push("("+I.pop()+")");break;case 5:I.push(A.read_shift(2));break;case 6:{for(var je="";he=A[A.l++];)je+=String.fromCharCode(he);I.push('"'+je.replace(/"/g,'""')+'"')}break;case 8:I.push("-"+I.pop());break;case 23:I.push("+"+I.pop());break;case 22:I.push("NOT("+I.pop()+")");break;case 20:case 21:ve=I.pop(),le=I.pop(),I.push(["AND","OR"][he-20]+"("+le+","+ve+")");break;default:if(he<32&&x[he])ve=I.pop(),le=I.pop(),I.push(le+x[he]+ve);else if(y[he]){if(L=y[he][1],L==69&&(L=A[A.l++]),L>I.length){console.error("WK1 bad formula parse 0x"+he.toString(16)+":|"+I.join("|")+"|");return}var Te=I.slice(-L);I.length-=L,I.push(y[he][0]+"("+Te.join(",")+")")}else return he<=7?console.error("WK1 invalid opcode "+he.toString(16)):he<=24?console.error("WK1 unsupported op "+he.toString(16)):he<=30?console.error("WK1 invalid opcode "+he.toString(16)):he<=115?console.error("WK1 unsupported function opcode "+he.toString(16)):console.error("WK1 unrecognized opcode "+he.toString(16))}}I.length==1?N[1].f=""+I[0]:console.error("WK1 bad formula parse |"+I.join("|")+"|")}function E(A){var N=[{c:0,r:0},{t:"n",v:0},0];return N[0].r=A.read_shift(2),N[3]=A[A.l++],N[0].c=A[A.l++],N}function S(A,N){var I=E(A);return I[1].t="s",I[1].v=A.read_shift(N-4,"cstr"),I}function w(A,N,I,L){var Y=kn(6+L.length);Y.write_shift(2,A),Y.write_shift(1,I),Y.write_shift(1,N),Y.write_shift(1,39);for(var Q=0;Q<L.length;++Q){var le=L.charCodeAt(Q);Y.write_shift(1,le>=128?95:le)}return Y.write_shift(1,0),Y}function C(A,N){var I=E(A);I[1].v=A.read_shift(2);var L=I[1].v>>1;if(I[1].v&1)switch(L&7){case 0:L=(L>>3)*5e3;break;case 1:L=(L>>3)*500;break;case 2:L=(L>>3)/20;break;case 3:L=(L>>3)/200;break;case 4:L=(L>>3)/2e3;break;case 5:L=(L>>3)/2e4;break;case 6:L=(L>>3)/16;break;case 7:L=(L>>3)/64;break}return I[1].v=L,I}function _(A,N){var I=E(A),L=A.read_shift(4),Y=A.read_shift(4),Q=A.read_shift(2);if(Q==65535)return L===0&&Y===3221225472?(I[1].t="e",I[1].v=15):L===0&&Y===3489660928?(I[1].t="e",I[1].v=42):I[1].v=0,I;var le=Q&32768;return Q=(Q&32767)-16446,I[1].v=(1-le*2)*(Y*Math.pow(2,Q+32)+L*Math.pow(2,Q)),I}function O(A,N,I,L){var Y=kn(14);if(Y.write_shift(2,A),Y.write_shift(1,I),Y.write_shift(1,N),L==0)return Y.write_shift(4,0),Y.write_shift(4,0),Y.write_shift(2,65535),Y;var Q=0,le=0,ve=0,he=0;return L<0&&(Q=1,L=-L),le=Math.log2(L)|0,L/=Math.pow(2,le-31),he=L>>>0,he&2147483648||(L/=2,++le,he=L>>>0),L-=he,he|=2147483648,he>>>=0,L*=Math.pow(2,32),ve=L>>>0,Y.write_shift(4,ve),Y.write_shift(4,he),le+=16383+(Q?32768:0),Y.write_shift(2,le),Y}function P(A,N){var I=_(A);return A.l+=N-14,I}function F(A,N){var I=E(A),L=A.read_shift(4);return I[1].v=L>>6,I}function q(A,N){var I=E(A),L=A.read_shift(8,"f");return I[1].v=L,I}function ee(A,N){var I=q(A);return A.l+=N-10,I}function J(A,N){return A[A.l+N-1]==0?A.read_shift(N,"cstr"):""}function Z(A,N){var I=A[A.l++];I>N-1&&(I=N-1);for(var L="";L.length<I;)L+=String.fromCharCode(A[A.l++]);return L}function V(A,N,I){if(!(!I.qpro||N<21)){var L=A.read_shift(1);A.l+=17,A.l+=1,A.l+=2;var Y=A.read_shift(N-21,"cstr");return[L,Y]}}function ie(A,N){for(var I={},L=A.l+N;A.l<L;){var Y=A.read_shift(2);if(Y==14e3){for(I[Y]=[0,""],I[Y][0]=A.read_shift(2);A[A.l];)I[Y][1]+=String.fromCharCode(A[A.l]),A.l++;A.l++}}return I}function W(A,N){var I=kn(5+A.length);I.write_shift(2,14e3),I.write_shift(2,N);for(var L=0;L<A.length;++L){var Y=A.charCodeAt(L);I[I.l++]=Y>127?95:Y}return I[I.l++]=0,I}var de={0:{n:"BOF",f:vn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:d},14:{n:"NUMBER",f:v},15:{n:"LABEL",f:c},16:{n:"FORMULA",f:g},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:c},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:J},222:{n:"SHEETNAMELP",f:Z},65535:{n:""}},M={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:S},23:{n:"NUMBER17",f:_},24:{n:"NUMBER18",f:C},25:{n:"FORMULA19",f:P},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:ie},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:F},38:{n:"??"},39:{n:"NUMBER27",f:q},40:{n:"FORMULA28",f:ee},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:J},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:V},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:a,to_workbook:t}}();function Gwe(e){var t={},r=e.match(Aa),n=0,a=!1;if(r)for(;n!=r.length;++n){var i=lt(r[n]);switch(i[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!i.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if(i.val=="1")break;t.cp=jD[parseInt(i.val,10)];break;case"<outline":if(!i.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=i.val;break;case"<sz":t.sz=i.val;break;case"<strike":if(!i.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!i.val)break;switch(i.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting";break}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if(i.val=="0")break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if(i.val=="0")break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":i.rgb&&(t.color=i.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=i.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=i.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":break;case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(i[0].charCodeAt(1)!==47&&!a)throw new Error("Unrecognized rich format "+i[0])}}return t}var Kwe=function(){var e=e1("t"),t=e1("rPr");function r(i){var o=i.match(e);if(!o)return{t:"s",v:""};var s={t:"s",v:er(o[1])},u=i.match(t);return u&&(s.s=Gwe(u[1])),s}var n=/<(?:\w+:)?r>/g,a=/<\/(?:\w+:)?r>/;return function(o){return o.replace(n,"").split(a).map(r).filter(function(s){return s.v})}}(),qwe=function(){var t=/(\r\n|\n)/g;function r(a,i,o){var s=[];a.u&&s.push("text-decoration: underline;"),a.uval&&s.push("text-underline-style:"+a.uval+";"),a.sz&&s.push("font-size:"+a.sz+"pt;"),a.outline&&s.push("text-effect: outline;"),a.shadow&&s.push("text-shadow: auto;"),i.push('<span style="'+s.join("")+'">'),a.b&&(i.push("<b>"),o.push("</b>")),a.i&&(i.push("<i>"),o.push("</i>")),a.strike&&(i.push("<s>"),o.push("</s>"));var u=a.valign||"";return u=="superscript"||u=="super"?u="sup":u=="subscript"&&(u="sub"),u!=""&&(i.push("<"+u+">"),o.push("</"+u+">")),o.push("</span>"),a}function n(a){var i=[[],a.v,[]];return a.v?(a.s&&r(a.s,i[0],i[2]),i[0].join("")+i[1].replace(t,"<br/>")+i[2].join("")):""}return function(i){return i.map(n).join("")}}(),Xwe=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Ywe=/<(?:\w+:)?r>/,Jwe=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function rO(e,t){var r=t?t.cellHTML:!0,n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=er(_r(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=_r(e),r&&(n.h=GD(n.t))):e.match(Ywe)&&(n.r=_r(e),n.t=er(_r((e.replace(Jwe,"").match(Xwe)||[]).join("").replace(Aa,""))),r&&(n.h=qwe(Kwe(n.r)))),n):{t:""}}var Zwe=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,Qwe=/<(?:\w+:)?(?:si|sstItem)>/g,eEe=/<\/(?:\w+:)?(?:si|sstItem)>/;function tEe(e,t){var r=[],n="";if(!e)return r;var a=e.match(Zwe);if(a){n=a[2].replace(Qwe,"").split(eEe);for(var i=0;i!=n.length;++i){var o=rO(n[i].trim(),t);o!=null&&(r[r.length]=o)}a=lt(a[1]),r.Count=a.count,r.Unique=a.uniqueCount}return r}function rEe(e){return[e.read_shift(4),e.read_shift(4)]}function nEe(e,t){var r=[],n=!1;return vu(e,function(i,o,s){switch(s){case 159:r.Count=i[0],r.Unique=i[1];break;case 19:r.push(i);break;case 160:return!0;case 35:n=!0;break;case 36:n=!1;break;default:if(o.T,!n||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}}),r}function JX(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function ru(e,t){var r={};return r.Major=e.read_shift(2),r.Minor=e.read_shift(2),t>=4&&(e.l+=t-4),r}function aEe(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=ru(e,4),t.U=ru(e,4),t.W=ru(e,4),t}function iEe(e){for(var t=e.read_shift(4),r=e.l+t-4,n={},a=e.read_shift(4),i=[];a-- >0;)i.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(n.name=e.read_shift(0,"lpp4"),n.comps=i,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return n}function oEe(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(iEe(e));return t}function sEe(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(e.read_shift(0,"lpp4"));return t}function uEe(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=ru(e,4),t.U=ru(e,4),t.W=ru(e,4),t}function lEe(e){var t=uEe(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),e.read_shift(4)!=4)throw new Error("Bad !Primary record");return t}function ZX(e,t){var r=e.l+t,n={};n.Flags=e.read_shift(4)&63,e.l+=4,n.AlgID=e.read_shift(4);var a=!1;switch(n.AlgID){case 26126:case 26127:case 26128:a=n.Flags==36;break;case 26625:a=n.Flags==4;break;case 0:a=n.Flags==16||n.Flags==4||n.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!a)throw new Error("Encryption Flags/AlgID mismatch");return n.AlgIDHash=e.read_shift(4),n.KeySize=e.read_shift(4),n.ProviderType=e.read_shift(4),e.l+=8,n.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,n}function QX(e,t){var r={},n=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,n),e.l=n,r}function cEe(e){var t=ru(e);switch(t.Minor){case 2:return[t.Minor,fEe(e)];case 3:return[t.Minor,dEe()];case 4:return[t.Minor,pEe(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function fEe(e){var t=e.read_shift(4);if((t&63)!=36)throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4),n=ZX(e,r),a=QX(e,e.length-e.l);return{t:"Std",h:n,v:a}}function dEe(){throw new Error("File is password-protected: ECMA-376 Extensible")}function pEe(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),n={};return r.replace(Aa,function(i){var o=lt(i);switch(Bs(o[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":t.forEach(function(s){n[s]=o[s]});break;case"<dataIntegrity":n.encryptedHmacKey=o.encryptedHmacKey,n.encryptedHmacValue=o.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":n.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":n.uri=o.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":n.encs.push(o);break;default:throw o[0]}}),n}function hEe(e,t){var r={},n=r.EncryptionVersionInfo=ru(e,4);if(t-=4,n.Minor!=2)throw new Error("unrecognized minor version code: "+n.Minor);if(n.Major>4||n.Major<2)throw new Error("unrecognized major version code: "+n.Major);r.Flags=e.read_shift(4),t-=4;var a=e.read_shift(4);return t-=4,r.EncryptionHeader=ZX(e,a),t-=a,r.EncryptionVerifier=QX(e,t),r}function vEe(e){var t={},r=t.EncryptionVersionInfo=ru(e,4);if(r.Major!=1||r.Minor!=1)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function gEe(e){var t=0,r,n=JX(e),a=n.length+1,i,o,s,u,l;for(r=ql(a),r[0]=n.length,i=1;i!=a;++i)r[i]=n[i-1];for(i=a-1;i>=0;--i)o=r[i],s=t&16384?1:0,u=t<<1&32767,l=s|u,t=l^o;return t^52811}var eY=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],n=function(o){return(o/2|o*128)&255},a=function(o,s){return n(o^s)},i=function(o){for(var s=t[o.length-1],u=104,l=o.length-1;l>=0;--l)for(var c=o[l],f=0;f!=7;++f)c&64&&(s^=r[u]),c*=2,--u;return s};return function(o){for(var s=JX(o),u=i(s),l=s.length,c=ql(16),f=0;f!=16;++f)c[f]=0;var d,p,v;for((l&1)===1&&(d=u>>8,c[l]=a(e[0],d),--l,d=u&255,p=s[s.length-1],c[l]=a(p,d));l>0;)--l,d=u>>8,c[l]=a(s[l],d),--l,d=u&255,c[l]=a(s[l],d);for(l=15,v=15-s.length;v>0;)d=u>>8,c[l]=a(e[v],d),--l,--v,d=u&255,c[l]=a(s[l],d),--l,--v;return c}}(),mEe=function(e,t,r,n,a){a||(a=t),n||(n=eY(e));var i,o;for(i=0;i!=t.length;++i)o=t[i],o^=n[r],o=(o>>5|o<<3)&255,a[i]=o,++r;return[a,r,n]},yEe=function(e){var t=0,r=eY(e);return function(n){var a=mEe("",n,t,r);return t=a[1],a[0]}};function xEe(e,t,r,n){var a={key:vn(e),verificationBytes:vn(e)};return r.password&&(a.verifier=gEe(r.password)),n.valid=a.verificationBytes===a.verifier,n.valid&&(n.insitu=yEe(r.password)),a}function bEe(e,t,r){var n=r||{};return n.Info=e.read_shift(2),e.l-=2,n.Info===1?n.Data=vEe(e):n.Data=hEe(e,t),n}function wEe(e,t,r){var n={Type:r.biff>=8?e.read_shift(2):0};return n.Type?bEe(e,t-2,n):xEe(e,r.biff>=8?t:t-2,r,n),n}var EEe=function(){function e(a,i){switch(i.type){case"base64":return t(Ai(a),i);case"binary":return t(a,i);case"buffer":return t(Kt&&Buffer.isBuffer(a)?a.toString("binary"):u0(a),i);case"array":return t($f(a),i)}throw new Error("Unrecognized type "+i.type)}function t(a,i){var o=i||{},s=o.dense?[]:{},u=a.match(/\\trowd.*?\\row\b/g);if(!u.length)throw new Error("RTF missing table");var l={s:{c:0,r:0},e:{c:0,r:u.length-1}};return u.forEach(function(c,f){Array.isArray(s)&&(s[f]=[]);for(var d=/\\\w+\b/g,p=0,v,h=-1;v=d.exec(c);){switch(v[0]){case"\\cell":var g=c.slice(p,d.lastIndex-v[0].length);if(g[0]==" "&&(g=g.slice(1)),++h,g.length){var m={v:g,t:"s"};Array.isArray(s)?s[f][h]=m:s[yt({r:f,c:h})]=m}break}p=d.lastIndex}h>l.e.c&&(l.e.c=h)}),s["!ref"]=Jt(l),s}function r(a,i){return fc(e(a,i),i)}function n(a){for(var i=["{\\rtf1\\ansi"],o=Zr(a["!ref"]),s,u=Array.isArray(a),l=o.s.r;l<=o.e.r;++l){i.push("\\trowd\\trautofit1");for(var c=o.s.c;c<=o.e.c;++c)i.push("\\cellx"+(c+1));for(i.push("\\pard\\intbl"),c=o.s.c;c<=o.e.c;++c){var f=yt({r:l,c});s=u?(a[l]||[])[c]:a[f],!(!s||s.v==null&&(!s.f||s.F))&&(i.push(" "+(s.w||(cu(s),s.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function SEe(e){var t=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function n1(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}function CEe(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(t,r,n),i=Math.min(t,r,n),o=a-i;if(o===0)return[0,0,t];var s=0,u=0,l=a+i;switch(u=o/(l>1?2-l:l),a){case t:s=((r-n)/o+6)%6;break;case r:s=(n-t)/o+2;break;case n:s=(t-r)/o+4;break}return[s/6,u,l/2]}function _Ee(e){var t=e[0],r=e[1],n=e[2],a=r*2*(n<.5?n:1-n),i=n-a/2,o=[i,i,i],s=6*t,u;if(r!==0)switch(s|0){case 0:case 6:u=a*s,o[0]+=a,o[1]+=u;break;case 1:u=a*(2-s),o[0]+=u,o[1]+=a;break;case 2:u=a*(s-2),o[1]+=a,o[2]+=u;break;case 3:u=a*(4-s),o[1]+=u,o[2]+=a;break;case 4:u=a*(s-4),o[2]+=a,o[0]+=u;break;case 5:u=a*(6-s),o[2]+=u,o[0]+=a;break}for(var l=0;l!=3;++l)o[l]=Math.round(o[l]*255);return o}function gb(e,t){if(t===0)return e;var r=CEe(SEe(e));return t<0?r[2]=r[2]*(1+t):r[2]=1-(1-r[2])*(1-t),n1(_Ee(r))}var tY=6,AEe=15,kEe=1,Na=tY;function mb(e){return Math.floor((e+Math.round(128/Na)/256)*Na)}function yb(e){return Math.floor((e-5)/Na*100+.5)/100}function a6(e){return Math.round((e*Na+5)/Na*256)/256}function MS(e){return a6(yb(mb(e)))}function nO(e){var t=Math.abs(e-MS(e)),r=Na;if(t>.005)for(Na=kEe;Na<AEe;++Na)Math.abs(e-MS(e))<=t&&(t=Math.abs(e-MS(e)),r=Na);Na=r}function sp(e){e.width?(e.wpx=mb(e.width),e.wch=yb(e.wpx),e.MDW=Na):e.wpx?(e.wch=yb(e.wpx),e.width=a6(e.wch),e.MDW=Na):typeof e.wch=="number"&&(e.width=a6(e.wch),e.wpx=mb(e.width),e.MDW=Na),e.customWidth&&delete e.customWidth}var TEe=96,rY=TEe;function nY(e){return e*96/rY}function a1(e){return e*rY/96}var DEe={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};function OEe(e,t,r,n){t.Borders=[];var a={},i=!1;(e[0].match(Aa)||[]).forEach(function(o){var s=lt(o);switch(Bs(s[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":a={},s.diagonalUp&&(a.diagonalUp=Rr(s.diagonalUp)),s.diagonalDown&&(a.diagonalDown=Rr(s.diagonalDown)),t.Borders.push(a);break;case"</border>":break;case"<left/>":break;case"<left":case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":case"<bottom>":break;case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":break;case"</vertical>":break;case"<start":case"<start>":case"<start/>":break;case"</start>":break;case"<end":case"<end>":case"<end/>":break;case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+s[0]+" in borders")}})}function FEe(e,t,r,n){t.Fills=[];var a={},i=!1;(e[0].match(Aa)||[]).forEach(function(o){var s=lt(o);switch(Bs(s[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":a={},t.Fills.push(a);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":t.Fills.push(a),a={};break;case"<patternFill":case"<patternFill>":s.patternType&&(a.patternType=s.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":a.bgColor||(a.bgColor={}),s.indexed&&(a.bgColor.indexed=parseInt(s.indexed,10)),s.theme&&(a.bgColor.theme=parseInt(s.theme,10)),s.tint&&(a.bgColor.tint=parseFloat(s.tint)),s.rgb&&(a.bgColor.rgb=s.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":a.fgColor||(a.fgColor={}),s.theme&&(a.fgColor.theme=parseInt(s.theme,10)),s.tint&&(a.fgColor.tint=parseFloat(s.tint)),s.rgb!=null&&(a.fgColor.rgb=s.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":break;case"</stop>":break;case"<color":case"<color/>":break;case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+s[0]+" in fills")}})}function BEe(e,t,r,n){t.Fonts=[];var a={},i=!1;(e[0].match(Aa)||[]).forEach(function(o){var s=lt(o);switch(Bs(s[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":t.Fonts.push(a),a={};break;case"<name":s.val&&(a.name=_r(s.val));break;case"<name/>":case"</name>":break;case"<b":a.bold=s.val?Rr(s.val):1;break;case"<b/>":a.bold=1;break;case"<i":a.italic=s.val?Rr(s.val):1;break;case"<i/>":a.italic=1;break;case"<u":switch(s.val){case"none":a.underline=0;break;case"single":a.underline=1;break;case"double":a.underline=2;break;case"singleAccounting":a.underline=33;break;case"doubleAccounting":a.underline=34;break}break;case"<u/>":a.underline=1;break;case"<strike":a.strike=s.val?Rr(s.val):1;break;case"<strike/>":a.strike=1;break;case"<outline":a.outline=s.val?Rr(s.val):1;break;case"<outline/>":a.outline=1;break;case"<shadow":a.shadow=s.val?Rr(s.val):1;break;case"<shadow/>":a.shadow=1;break;case"<condense":a.condense=s.val?Rr(s.val):1;break;case"<condense/>":a.condense=1;break;case"<extend":a.extend=s.val?Rr(s.val):1;break;case"<extend/>":a.extend=1;break;case"<sz":s.val&&(a.sz=+s.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":s.val&&(a.vertAlign=s.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":s.val&&(a.family=parseInt(s.val,10));break;case"<family/>":case"</family>":break;case"<scheme":s.val&&(a.scheme=s.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if(s.val=="1")break;s.codepage=jD[parseInt(s.val,10)];break;case"<color":if(a.color||(a.color={}),s.auto&&(a.color.auto=Rr(s.auto)),s.rgb)a.color.rgb=s.rgb.slice(-6);else if(s.indexed){a.color.index=parseInt(s.indexed,10);var u=ff[a.color.index];a.color.index==81&&(u=ff[1]),u||(u=ff[1]),a.color.rgb=u[0].toString(16)+u[1].toString(16)+u[2].toString(16)}else s.theme&&(a.color.theme=parseInt(s.theme,10),s.tint&&(a.color.tint=parseFloat(s.tint)),s.theme&&r.themeElements&&r.themeElements.clrScheme&&(a.color.rgb=gb(r.themeElements.clrScheme[a.color.theme].rgb,a.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":i=!0;break;case"</AlternateContent>":i=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+s[0]+" in fonts")}})}function PEe(e,t,r){t.NumberFmt=[];for(var n=Es(Ct),a=0;a<n.length;++a)t.NumberFmt[n[a]]=Ct[n[a]];var i=e[0].match(Aa);if(i)for(a=0;a<i.length;++a){var o=lt(i[a]);switch(Bs(o[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":{var s=er(_r(o.formatCode)),u=parseInt(o.numFmtId,10);if(t.NumberFmt[u]=s,u>0){if(u>392){for(u=392;u>60&&t.NumberFmt[u]!=null;--u);t.NumberFmt[u]=s}cf(s,u)}}break;case"</numFmt>":break;default:if(r.WTF)throw new Error("unrecognized "+o[0]+" in numFmts")}}}var Ly=["numFmtId","fillId","fontId","borderId","xfId"],My=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function NEe(e,t,r){t.CellXf=[];var n,a=!1;(e[0].match(Aa)||[]).forEach(function(i){var o=lt(i),s=0;switch(Bs(o[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(n=o,delete n[0],s=0;s<Ly.length;++s)n[Ly[s]]&&(n[Ly[s]]=parseInt(n[Ly[s]],10));for(s=0;s<My.length;++s)n[My[s]]&&(n[My[s]]=Rr(n[My[s]]));if(t.NumberFmt&&n.numFmtId>392){for(s=392;s>60;--s)if(t.NumberFmt[n.numFmtId]==t.NumberFmt[s]){n.numFmtId=s;break}}t.CellXf.push(n);break;case"</xf>":break;case"<alignment":case"<alignment/>":var u={};o.vertical&&(u.vertical=o.vertical),o.horizontal&&(u.horizontal=o.horizontal),o.textRotation!=null&&(u.textRotation=o.textRotation),o.indent&&(u.indent=o.indent),o.wrapText&&(u.wrapText=Rr(o.wrapText)),n.alignment=u;break;case"</alignment>":break;case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":a=!0;break;case"</AlternateContent>":a=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+o[0]+" in cellXfs")}})}var IEe=function(){var t=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,a=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(s,u,l){var c={};if(!s)return c;s=s.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");var f;return(f=s.match(t))&&PEe(f,c,l),(f=s.match(a))&&BEe(f,c,u,l),(f=s.match(n))&&FEe(f,c,u,l),(f=s.match(i))&&OEe(f,c,u,l),(f=s.match(r))&&NEe(f,c,l),c}}();function REe(e,t){var r=e.read_shift(2),n=ba(e);return[r,n]}function LEe(e,t,r){var n={};n.sz=e.read_shift(2)/20;var a=Kxe(e);a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1);var i=e.read_shift(2);switch(i===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var o=e.read_shift(1);o!=0&&(n.underline=o);var s=e.read_shift(1);s>0&&(n.family=s);var u=e.read_shift(1);switch(u>0&&(n.charset=u),e.l++,n.color=Gxe(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=ba(e),n}var MEe=Sa;function jEe(e,t){var r=e.l+t,n=e.read_shift(2),a=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:a}}var $Ee=Sa;function UEe(e,t,r){var n={};n.NumberFmt=[];for(var a in Ct)n.NumberFmt[a]=Ct[a];n.CellXf=[],n.Fonts=[];var i=[],o=!1;return vu(e,function(u,l,c){switch(c){case 44:n.NumberFmt[u[0]]=u[1],cf(u[1],u[0]);break;case 43:n.Fonts.push(u),u.color.theme!=null&&t&&t.themeElements&&t.themeElements.clrScheme&&(u.color.rgb=gb(t.themeElements.clrScheme[u.color.theme].rgb,u.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:i[i.length-1]==617&&n.CellXf.push(u);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:i.push(c),o=!0;break;case 38:i.pop(),o=!1;break;default:if(l.T>0)i.push(c);else if(l.T<0)i.pop();else if(!o||r.WTF&&i[i.length-1]!=37)throw new Error("Unexpected record 0x"+c.toString(16))}}),n}var HEe=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function zEe(e,t,r){t.themeElements.clrScheme=[];var n={};(e[0].match(Aa)||[]).forEach(function(a){var i=lt(a);switch(i[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":n.rgb=i.val;break;case"<a:sysClr":n.rgb=i.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":i[0].charAt(1)==="/"?(t.themeElements.clrScheme[HEe.indexOf(i[0])]=n,n={}):n.name=i[0].slice(3,i[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}})}function VEe(){}function WEe(){}var GEe=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,KEe=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,qEe=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function XEe(e,t,r){t.themeElements={};var n;[["clrScheme",GEe,zEe],["fontScheme",KEe,VEe],["fmtScheme",qEe,WEe]].forEach(function(a){if(!(n=e.match(a[1])))throw new Error(a[0]+" not found in themeElements");a[2](n,t,r)})}var YEe=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function aY(e,t){(!e||e.length===0)&&(e=JEe());var r,n={};if(!(r=e.match(YEe)))throw new Error("themeElements not found in theme");return XEe(r[0],n,t),n.raw=e,n}function JEe(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[vX];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function ZEe(e,t,r){var n=e.l+t,a=e.read_shift(4);if(a!==124226){if(!r.cellStyles){e.l=n;return}var i=e.slice(e.l);e.l=n;var o;try{o=hX(i,{type:"array"})}catch(u){return}var s=yi(o,"theme/theme/theme1.xml",!0);if(s)return aY(s,r)}}function QEe(e){return e.read_shift(4)}function e4e(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=t4e(e,4);break;case 2:t.xclrValue=VX(e);break;case 3:t.xclrValue=QEe(e);break;case 4:e.l+=4;break}return e.l+=8,t}function t4e(e,t){return Sa(e,t)}function r4e(e,t){return Sa(e,t)}function n4e(e){var t=e.read_shift(2),r=e.read_shift(2)-4,n=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:n[1]=e4e(e);break;case 6:n[1]=r4e(e,r);break;case 14:case 15:n[1]=e.read_shift(r===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return n}function a4e(e,t){var r=e.l+t;e.l+=2;var n=e.read_shift(2);e.l+=2;for(var a=e.read_shift(2),i=[];a-- >0;)i.push(n4e(e,r-e.l));return{ixfe:n,ext:i}}function i4e(e,t){t.forEach(function(r){switch(r[0]){}})}function o4e(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:ba(e)}}function s4e(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function u4e(e){return e.l+=4,e.read_shift(4)!=0}function l4e(e,t,r){var n={Types:[],Cell:[],Value:[]},a=r||{},i=[],o=!1,s=2;return vu(e,function(u,l,c){switch(c){case 335:n.Types.push({name:u.name});break;case 51:u.forEach(function(f){s==1?n.Cell.push({type:n.Types[f[0]-1].name,index:f[1]}):s==0&&n.Value.push({type:n.Types[f[0]-1].name,index:f[1]})});break;case 337:s=u?1:0;break;case 338:s=2;break;case 35:i.push(c),o=!0;break;case 36:i.pop(),o=!1;break;default:if(!l.T){if(!o||a.WTF&&i[i.length-1]!=35)throw new Error("Unexpected record 0x"+c.toString(16))}}}),n}function c4e(e,t,r){var n={Types:[],Cell:[],Value:[]};if(!e)return n;var a=!1,i=2,o;return e.replace(Aa,function(s){var u=lt(s);switch(Bs(u[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":n.Types.push({name:u.name});break;case"</metadataType>":break;case"<futureMetadata":for(var l=0;l<n.Types.length;++l)n.Types[l].name==u.name&&(o=n.Types[l]);break;case"</futureMetadata>":break;case"<bk>":break;case"</bk>":break;case"<rc":i==1?n.Cell.push({type:n.Types[u.t-1].name,index:+u.v}):i==0&&n.Value.push({type:n.Types[u.t-1].name,index:+u.v});break;case"</rc>":break;case"<cellMetadata":i=1;break;case"</cellMetadata>":i=2;break;case"<valueMetadata":i=0;break;case"</valueMetadata>":i=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;case"<rvb":if(!o)break;o.offsets||(o.offsets=[]),o.offsets.push(+u.i);break;default:if(!a&&r.WTF)throw new Error("unrecognized "+u[0]+" in metadata")}return s}),n}function f4e(e){var t=[];if(!e)return t;var r=1;return(e.match(Aa)||[]).forEach(function(n){var a=lt(n);switch(a[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete a[0],a.i?r=a.i:a.i=r,t.push(a);break}}),t}function d4e(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=yt(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}function p4e(e,t,r){var n=[];return vu(e,function(i,o,s){switch(s){case 63:n.push(i);break;default:if(!o.T)throw new Error("Unexpected record 0x"+s.toString(16))}}),n}function h4e(e,t,r,n){if(!e)return e;var a=n||{},i=!1;vu(e,function(s,u,l){switch(l){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:i=!0;break;case 36:i=!1;break;default:if(!u.T){if(!i||a.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}},a)}function v4e(e,t){if(!e)return"??";var r=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}function uI(e,t,r,n){var a=Array.isArray(e),i;t.forEach(function(o){var s=La(o.ref);if(a?(e[s.r]||(e[s.r]=[]),i=e[s.r][s.c]):i=e[o.ref],!i){i={t:"z"},a?e[s.r][s.c]=i:e[o.ref]=i;var u=Zr(e["!ref"]||"BDWGO1000001:A1");u.s.r>s.r&&(u.s.r=s.r),u.e.r<s.r&&(u.e.r=s.r),u.s.c>s.c&&(u.s.c=s.c),u.e.c<s.c&&(u.e.c=s.c);var l=Jt(u);l!==e["!ref"]&&(e["!ref"]=l)}i.c||(i.c=[]);var c={a:o.author,t:o.t,r:o.r,T:r};o.h&&(c.h=o.h);for(var f=i.c.length-1;f>=0;--f){if(!r&&i.c[f].T)return;r&&!i.c[f].T&&i.c.splice(f,1)}if(r&&n){for(f=0;f<n.length;++f)if(c.a==n[f].id){c.a=n[f].name||c.a;break}}i.c.push(c)})}function g4e(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var r=[],n=[],a=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);a&&a[1]&&a[1].split(/<\/\w*:?author>/).forEach(function(o){if(!(o===""||o.trim()==="")){var s=o.match(/<(?:\w+:)?author[^>]*>(.*)/);s&&r.push(s[1])}});var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return i&&i[1]&&i[1].split(/<\/\w*:?comment>/).forEach(function(o){if(!(o===""||o.trim()==="")){var s=o.match(/<(?:\w+:)?comment[^>]*>/);if(s){var u=lt(s[0]),l={author:u.authorId&&r[u.authorId]||"sheetjsghost",ref:u.ref,guid:u.guid},c=La(u.ref);if(!(t.sheetRows&&t.sheetRows<=c.r)){var f=o.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),d=!!f&&!!f[1]&&rO(f[1])||{r:"",t:"",h:""};l.r=d.r,d.r=="<t></t>"&&(d.t=d.h=""),l.t=(d.t||"").replace(/\r\n/g,`
|
||
`).replace(/\r/g,`
|
||
`),t.cellHTML&&(l.h=d.h),n.push(l)}}}}),n}function m4e(e,t){var r=[],n=!1,a={},i=0;return e.replace(Aa,function(s,u){var l=lt(s);switch(Bs(l[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":a={author:l.personId,guid:l.id,ref:l.ref,T:1};break;case"</threadedComment>":a.t!=null&&r.push(a);break;case"<text>":case"<text":i=u+s.length;break;case"</text>":a.t=e.slice(i,u).replace(/\r\n/g,`
|
||
`).replace(/\r/g,`
|
||
`);break;case"<mentions":case"<mentions>":n=!0;break;case"</mentions>":n=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+l[0]+" in threaded comments")}return s}),r}function y4e(e,t){var r=[],n=!1;return e.replace(Aa,function(i){var o=lt(i);switch(Bs(o[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":r.push({name:o.displayname,id:o.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return i}),r}function x4e(e){var t={};t.iauthor=e.read_shift(4);var r=c0(e);return t.rfx=r.s,t.ref=yt(r.s),e.l+=16,t}var b4e=ba;function w4e(e,t){var r=[],n=[],a={},i=!1;return vu(e,function(s,u,l){switch(l){case 632:n.push(s);break;case 635:a=s;break;case 637:a.t=s.t,a.h=s.h,a.r=s.r;break;case 636:if(a.author=n[a.iauthor],delete a.iauthor,t.sheetRows&&a.rfx&&t.sheetRows<=a.rfx.r)break;a.t||(a.t=""),delete a.rfx,r.push(a);break;case 3072:break;case 35:i=!0;break;case 36:i=!1;break;case 37:break;case 38:break;default:if(!u.T){if(!i||t.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}}),r}var E4e="application/vnd.ms-office.vbaProject";function S4e(e){var t=Yt.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,n){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var a=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Yt.utils.cfb_add(t,a,e.FileIndex[n].content)}}),Yt.write(t)}function C4e(){return{"!type":"dialog"}}function _4e(){return{"!type":"dialog"}}function A4e(){return{"!type":"macro"}}function k4e(){return{"!type":"macro"}}var Od=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,a,i,o){var s=!1,u=!1;i.length==0?u=!0:i.charAt(0)=="["&&(u=!0,i=i.slice(1,-1)),o.length==0?s=!0:o.charAt(0)=="["&&(s=!0,o=o.slice(1,-1));var l=i.length>0?parseInt(i,10)|0:0,c=o.length>0?parseInt(o,10)|0:0;return s?c+=t.c:--c,u?l+=t.r:--l,a+(s?"":"$")+Bn(c)+(u?"":"$")+aa(l)}return function(a,i){return t=i,a.replace(e,r)}}(),iY=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,T4e=function(){return function(t,r){return t.replace(iY,function(n,a,i,o,s,u){var l=YD(o)-(i?0:r.c),c=XD(u)-(s?0:r.r),f=c==0?"":s?c+1:"["+c+"]",d=l==0?"":i?l+1:"["+l+"]";return a+"R"+f+"C"+d})}}();function oY(e,t){return e.replace(iY,function(r,n,a,i,o,s){return n+(a=="$"?a+i:Bn(YD(i)+t.c))+(o=="$"?o+s:aa(XD(s)+t.r))})}function D4e(e,t,r){var n=Kp(t),a=n.s,i=La(r),o={r:i.r-a.r,c:i.c-a.c};return oY(e,o)}function O4e(e){return e.length!=1}function lI(e){return e.replace(/_xlfn\./g,"")}function cn(e){e.l+=1}function Xl(e,t){var r=e.read_shift(t==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function sY(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return uY(e);r.biff==12&&(n=4)}var a=e.read_shift(n),i=e.read_shift(n),o=Xl(e,2),s=Xl(e,2);return{s:{r:a,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function uY(e){var t=Xl(e,2),r=Xl(e,2),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function F4e(e,t,r){if(r.biff<8)return uY(e);var n=e.read_shift(r.biff==12?4:2),a=e.read_shift(r.biff==12?4:2),i=Xl(e,2),o=Xl(e,2);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function lY(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return B4e(e);var n=e.read_shift(r&&r.biff==12?4:2),a=Xl(e,2);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function B4e(e){var t=Xl(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function P4e(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function N4e(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return I4e(e);var a=e.read_shift(n>=12?4:2),i=e.read_shift(2),o=(i&16384)>>14,s=(i&32768)>>15;if(i&=16383,s==1)for(;a>524287;)a-=1048576;if(o==1)for(;i>8191;)i=i-16384;return{r:a,c:i,cRel:o,rRel:s}}function I4e(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,a=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),a==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:a,rRel:n}}function R4e(e,t,r){var n=(e[e.l++]&96)>>5,a=sY(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,a]}function L4e(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2,"i"),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}var o=sY(e,i,r);return[n,a,o]}function M4e(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function j4e(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}return e.l+=i,[n,a]}function $4e(e,t,r){var n=(e[e.l++]&96)>>5,a=F4e(e,t-1,r);return[n,a]}function U4e(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function cI(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function H4e(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),a=[],i=0;i<=n;++i)a.push(e.read_shift(r&&r.biff==2?1:2));return a}function z4e(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function V4e(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function W4e(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function G4e(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function cY(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function K4e(e){return e.read_shift(2),cY(e)}function q4e(e){return e.read_shift(2),cY(e)}function X4e(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=lY(e,0,r);return[n,a]}function Y4e(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=N4e(e,0,r);return[n,a]}function J4e(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var i=lY(e,0,r);return[n,a,i]}function Z4e(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(r&&r.biff<=3?1:2);return[QSe[a],pY[a],n]}function Q4e(e,t,r){var n=e[e.l++],a=e.read_shift(1),i=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:eSe(e);return[a,(i[0]===0?pY:ZSe)[i[1]]]}function eSe(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function tSe(e,t,r){e.l+=r&&r.biff==2?3:4}function rSe(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function nSe(e){return e.l++,f0[e.read_shift(1)]}function aSe(e){return e.l++,e.read_shift(2)}function iSe(e){return e.l++,e.read_shift(1)!==0}function oSe(e){return e.l++,ya(e)}function sSe(e,t,r){return e.l++,vm(e,t-1,r)}function uSe(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=en(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=f0[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=ya(e);break;case 2:r[1]=d0(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function lSe(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),a=[],i=0;i!=n;++i)a.push((r.biff==12?c0:XE)(e));return a}function cSe(e,t,r){var n=0,a=0;r.biff==12?(n=e.read_shift(4),a=e.read_shift(4)):(a=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--a==0&&(a=256));for(var i=0,o=[];i!=n&&(o[i]=[]);++i)for(var s=0;s!=a;++s)o[i][s]=uSe(e,r.biff);return o}function fSe(e,t,r){var n=e.read_shift(1)>>>5&3,a=!r||r.biff>=8?4:2,i=e.read_shift(a);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,i]}function dSe(e,t,r){if(r.biff==5)return pSe(e);var n=e.read_shift(1)>>>5&3,a=e.read_shift(2),i=e.read_shift(4);return[n,a,i]}function pSe(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function hSe(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function vSe(e,t,r){var n=e.read_shift(1)>>>5&3,a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function gSe(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function mSe(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6;break}return e.l+=i,[n,a]}var ySe=Sa,xSe=Sa,bSe=Sa;function mm(e,t,r){return e.l+=2,[P4e(e)]}function aO(e){return e.l+=6,[]}var wSe=mm,ESe=aO,SSe=aO,CSe=mm;function fY(e){return e.l+=2,[vn(e),e.read_shift(2)&1]}var _Se=mm,ASe=fY,kSe=aO,TSe=mm,DSe=mm,OSe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function FSe(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a=e.read_shift(2),i=e.read_shift(2),o=OSe[r>>2&31];return{ixti:t,coltype:r&3,rt:o,idx:n,c:a,C:i}}function BSe(e){return e.l+=2,[e.read_shift(4)]}function PSe(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function NSe(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function ISe(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function RSe(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function LSe(e){return e.l+=4,[0,0]}var fI={1:{n:"PtgExp",f:rSe},2:{n:"PtgTbl",f:bSe},3:{n:"PtgAdd",f:cn},4:{n:"PtgSub",f:cn},5:{n:"PtgMul",f:cn},6:{n:"PtgDiv",f:cn},7:{n:"PtgPower",f:cn},8:{n:"PtgConcat",f:cn},9:{n:"PtgLt",f:cn},10:{n:"PtgLe",f:cn},11:{n:"PtgEq",f:cn},12:{n:"PtgGe",f:cn},13:{n:"PtgGt",f:cn},14:{n:"PtgNe",f:cn},15:{n:"PtgIsect",f:cn},16:{n:"PtgUnion",f:cn},17:{n:"PtgRange",f:cn},18:{n:"PtgUplus",f:cn},19:{n:"PtgUminus",f:cn},20:{n:"PtgPercent",f:cn},21:{n:"PtgParen",f:cn},22:{n:"PtgMissArg",f:cn},23:{n:"PtgStr",f:sSe},26:{n:"PtgSheet",f:PSe},27:{n:"PtgEndSheet",f:NSe},28:{n:"PtgErr",f:nSe},29:{n:"PtgBool",f:iSe},30:{n:"PtgInt",f:aSe},31:{n:"PtgNum",f:oSe},32:{n:"PtgArray",f:U4e},33:{n:"PtgFunc",f:Z4e},34:{n:"PtgFuncVar",f:Q4e},35:{n:"PtgName",f:fSe},36:{n:"PtgRef",f:X4e},37:{n:"PtgArea",f:R4e},38:{n:"PtgMemArea",f:hSe},39:{n:"PtgMemErr",f:ySe},40:{n:"PtgMemNoMem",f:xSe},41:{n:"PtgMemFunc",f:vSe},42:{n:"PtgRefErr",f:gSe},43:{n:"PtgAreaErr",f:M4e},44:{n:"PtgRefN",f:Y4e},45:{n:"PtgAreaN",f:$4e},46:{n:"PtgMemAreaN",f:ISe},47:{n:"PtgMemNoMemN",f:RSe},57:{n:"PtgNameX",f:dSe},58:{n:"PtgRef3d",f:J4e},59:{n:"PtgArea3d",f:L4e},60:{n:"PtgRefErr3d",f:mSe},61:{n:"PtgAreaErr3d",f:j4e},255:{}},MSe={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},jSe={1:{n:"PtgElfLel",f:fY},2:{n:"PtgElfRw",f:TSe},3:{n:"PtgElfCol",f:wSe},6:{n:"PtgElfRwV",f:DSe},7:{n:"PtgElfColV",f:CSe},10:{n:"PtgElfRadical",f:_Se},11:{n:"PtgElfRadicalS",f:kSe},13:{n:"PtgElfColS",f:ESe},15:{n:"PtgElfColSV",f:SSe},16:{n:"PtgElfRadicalLel",f:ASe},25:{n:"PtgList",f:FSe},29:{n:"PtgSxName",f:BSe},255:{}},$Se={0:{n:"PtgAttrNoop",f:LSe},1:{n:"PtgAttrSemi",f:G4e},2:{n:"PtgAttrIf",f:V4e},4:{n:"PtgAttrChoose",f:H4e},8:{n:"PtgAttrGoto",f:z4e},16:{n:"PtgAttrSum",f:tSe},32:{n:"PtgAttrBaxcel",f:cI},33:{n:"PtgAttrBaxcel",f:cI},64:{n:"PtgAttrSpace",f:K4e},65:{n:"PtgAttrSpaceSemi",f:q4e},128:{n:"PtgAttrIfError",f:W4e},255:{}};function ym(e,t,r,n){if(n.biff<8)return Sa(e,t);for(var a=e.l+t,i=[],o=0;o!==r.length;++o)switch(r[o][0]){case"PtgArray":r[o][1]=cSe(e,0,n),i.push(r[o][1]);break;case"PtgMemArea":r[o][2]=lSe(e,r[o][1],n),i.push(r[o][2]);break;case"PtgExp":n&&n.biff==12&&(r[o][1][1]=e.read_shift(4),i.push(r[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[o][0]}return t=a-e.l,t!==0&&i.push(Sa(e,t)),i}function xm(e,t,r){for(var n=e.l+t,a,i,o=[];n!=e.l;)t=n-e.l,i=e[e.l],a=fI[i]||fI[MSe[i]],(i===24||i===25)&&(a=(i===24?jSe:$Se)[e[e.l+1]]),!a||!a.f?Sa(e,t):o.push([a.n,a.f(e,t,r)]);return o}function USe(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],a=[],i=0;i<n.length;++i){var o=n[i];if(o)switch(o[0]){case 2:a.push('"'+o[1].replace(/"/g,'""')+'"');break;default:a.push(o[1])}else a.push("")}t.push(a.join(","))}return t.join(";")}var HSe={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function zSe(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function dY(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var a="";if(r.biff>8)switch(e[n[0]][0]){case 357:return a=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return a=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return e[n[0]][0][3]?(a=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function dI(e,t,r){var n=dY(e,t,r);return n=="#REF"?n:zSe(n,r)}function va(e,t,r,n,a){var i=a&&a.biff||8,o={s:{c:0,r:0},e:{c:0,r:0}},s=[],u,l,c,f=0,d=0,p,v="";if(!e[0]||!e[0][0])return"";for(var h=-1,g="",m=0,y=e[0].length;m<y;++m){var x=e[0][m];switch(x[0]){case"PtgUminus":s.push("-"+s.pop());break;case"PtgUplus":s.push("+"+s.pop());break;case"PtgPercent":s.push(s.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(u=s.pop(),l=s.pop(),h>=0){switch(e[0][h][1][0]){case 0:g=Xr(" ",e[0][h][1][1]);break;case 1:g=Xr("\r",e[0][h][1][1]);break;default:if(g="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][h][1][0])}l=l+g,h=-1}s.push(l+HSe[x[0]]+u);break;case"PtgIsect":u=s.pop(),l=s.pop(),s.push(l+" "+u);break;case"PtgUnion":u=s.pop(),l=s.pop(),s.push(l+","+u);break;case"PtgRange":u=s.pop(),l=s.pop(),s.push(l+":"+u);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=fg(x[1][1],o,a),s.push(dg(c,i));break;case"PtgRefN":c=r?fg(x[1][1],r,a):x[1][1],s.push(dg(c,i));break;case"PtgRef3d":f=x[1][1],c=fg(x[1][2],o,a),v=dI(n,f,a),s.push(v+"!"+dg(c,i));break;case"PtgFunc":case"PtgFuncVar":var b=x[1][0],E=x[1][1];b||(b=0),b&=127;var S=b==0?[]:s.slice(-b);s.length-=b,E==="User"&&(E=S.shift()),s.push(E+"("+S.join(",")+")");break;case"PtgBool":s.push(x[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(x[1]);break;case"PtgNum":s.push(String(x[1]));break;case"PtgStr":s.push('"'+x[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(x[1]);break;case"PtgAreaN":p=GN(x[1][1],r?{s:r}:o,a),s.push(RS(p,a));break;case"PtgArea":p=GN(x[1][1],o,a),s.push(RS(p,a));break;case"PtgArea3d":f=x[1][1],p=x[1][2],v=dI(n,f,a),s.push(v+"!"+RS(p,a));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=x[1][2];var w=(n.names||[])[d-1]||(n[0]||[])[d],C=w?w.Name:"SH33TJSNAME"+String(d);C&&C.slice(0,6)=="_xlfn."&&!a.xlfn&&(C=C.slice(6)),s.push(C);break;case"PtgNameX":var _=x[1][1];d=x[1][2];var O;if(a.biff<=5)_<0&&(_=-_),n[_]&&(O=n[_][d]);else{var P="";if(((n[_]||[])[0]||[])[0]==14849||(((n[_]||[])[0]||[])[0]==1025?n[_][d]&&n[_][d].itab>0&&(P=n.SheetNames[n[_][d].itab-1]+"!"):P=n.SheetNames[d-1]+"!"),n[_]&&n[_][d])P+=n[_][d].Name;else if(n[0]&&n[0][d])P+=n[0][d].Name;else{var F=(dY(n,_,a)||"").split(";;");F[d-1]?P=F[d-1]:P+="SH33TJSERRX"}s.push(P);break}O||(O={Name:"SH33TJSERRY"}),s.push(O.Name);break;case"PtgParen":var q="(",ee=")";if(h>=0){switch(g="",e[0][h][1][0]){case 2:q=Xr(" ",e[0][h][1][1])+q;break;case 3:q=Xr("\r",e[0][h][1][1])+q;break;case 4:ee=Xr(" ",e[0][h][1][1])+ee;break;case 5:ee=Xr("\r",e[0][h][1][1])+ee;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][h][1][0])}h=-1}s.push(q+s.pop()+ee);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":c={c:x[1][1],r:x[1][0]};var J={c:r.c,r:r.r};if(n.sharedf[yt(c)]){var Z=n.sharedf[yt(c)];s.push(va(Z,o,J,n,a))}else{var V=!1;for(u=0;u!=n.arrayf.length;++u)if(l=n.arrayf[u],!(c.c<l[0].s.c||c.c>l[0].e.c)&&!(c.r<l[0].s.r||c.r>l[0].e.r)){s.push(va(l[1],o,J,n,a)),V=!0;break}V||s.push(x[1])}break;case"PtgArray":s.push("{"+USe(x[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":h=m;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgList":s.push("Table"+x[1].idx+"[#"+x[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(x));default:throw new Error("Unrecognized Formula Token: "+String(x))}var ie=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(a.biff!=3&&h>=0&&ie.indexOf(e[0][m][0])==-1){x=e[0][h];var W=!0;switch(x[1][0]){case 4:W=!1;case 0:g=Xr(" ",x[1][1]);break;case 5:W=!1;case 1:g=Xr("\r",x[1][1]);break;default:if(g="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+x[1][0])}s.push((W?g:"")+s.pop()+(W?"":g)),h=-1}}if(s.length>1&&a.WTF)throw new Error("bad formula stack");return s[0]}function VSe(e,t,r){var n=e.l+t,a=r.biff==2?1:2,i,o=e.read_shift(a);if(o==65535)return[[],Sa(e,t-2)];var s=xm(e,o,r);return t!==o+a&&(i=ym(e,t-o-a,s,r)),e.l=n,[s,i]}function WSe(e,t,r){var n=e.l+t,a=r.biff==2?1:2,i,o=e.read_shift(a);if(o==65535)return[[],Sa(e,t-2)];var s=xm(e,o,r);return t!==o+a&&(i=ym(e,t-o-a,s,r)),e.l=n,[s,i]}function GSe(e,t,r,n){var a=e.l+t,i=xm(e,n,r),o;return a!==e.l&&(o=ym(e,a-e.l,i,r)),[i,o]}function KSe(e,t,r){var n=e.l+t,a,i=e.read_shift(2),o=xm(e,i,r);return i==65535?[[],Sa(e,t-2)]:(t!==i+2&&(a=ym(e,n-i-2,o,r)),[o,a])}function qSe(e){var t;if(Ys(e,e.l+6)!==65535)return[ya(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=e[e.l+2]===1,e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function jS(e,t,r){var n=e.l+t,a=Ps(e);r.biff==2&&++e.l;var i=qSe(e),o=e.read_shift(1);r.biff!=2&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var s=WSe(e,n-e.l,r);return{cell:a,val:i[0],formula:s,shared:o>>3&1,tt:i[1]}}function YE(e,t,r){var n=e.read_shift(4),a=xm(e,n,r),i=e.read_shift(4),o=i>0?ym(e,i,a,r):null;return[a,o]}var XSe=YE,JE=YE,YSe=YE,JSe=YE,ZSe={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},pY={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},QSe={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function pI(e){return e.slice(0,3)=="of:"&&(e=e.slice(3)),e.charCodeAt(0)==61&&(e=e.slice(1),e.charCodeAt(0)==61&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(t,r){return r.replace(/\./g,"")}),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function $S(e){var t=e.split(":"),r=t[0].split(".")[0];return[r,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}var gg={},Fd={};function mg(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];t=="xlml"&&(r=[1,1,1,1,.5,.5]),e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function hY(e,t,r,n,a,i){try{n.cellNF&&(e.z=Ct[t])}catch(s){if(n.WTF)throw s}if(!(e.t==="z"&&!n.cellStyles)){if(e.t==="d"&&typeof e.v=="string"&&(e.v=Kn(e.v)),(!n||n.cellText!==!1)&&e.t!=="z")try{if(Ct[t]==null&&cf(txe[t]||"General",t),e.t==="e")e.w=e.w||f0[e.v];else if(t===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Qg(e.v);else if(e.t==="d"){var o=$a(e.v);(o|0)===o?e.w=o.toString(10):e.w=Qg(o)}else{if(e.v===void 0)return"";e.w=jf(e.v,Fd)}else e.t==="d"?e.w=no(t,$a(e.v),Fd):e.w=no(t,e.v,Fd)}catch(s){if(n.WTF)throw s}if(n.cellStyles&&r!=null)try{e.s=i.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=gb(a.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),n.WTF&&(e.s.fgColor.raw_rgb=a.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=gb(a.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),n.WTF&&(e.s.bgColor.raw_rgb=a.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(s){if(n.WTF&&i.Fills)throw s}}}function e3e(e,t){var r=Zr(t);r.s.r<=r.e.r&&r.s.c<=r.e.c&&r.s.r>=0&&r.s.c>=0&&(e["!ref"]=Jt(r))}var t3e=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,r3e=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,n3e=/<(?:\w:)?hyperlink [^>]*>/mg,a3e=/"(\w*:\w*)"/,i3e=/<(?:\w:)?col\b[^>]*[\/]?>/g,o3e=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,s3e=/<(?:\w:)?pageMargins[^>]*\/>/g,vY=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,u3e=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,l3e=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function c3e(e,t,r,n,a,i,o){if(!e)return e;n||(n={"!id":{}});var s=t.dense?[]:{},u={s:{r:2e6,c:2e6},e:{r:0,c:0}},l="",c="",f=e.match(r3e);f?(l=e.slice(0,f.index),c=e.slice(f.index+f[0].length)):l=c=e;var d=l.match(vY);d?iO(d[0],s,a,r):(d=l.match(u3e))&&f3e(d[0],d[1]||"",s,a,r);var p=(l.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(p>0){var v=l.slice(p,p+50).match(a3e);v&&e3e(s,v[1])}var h=l.match(l3e);h&&h[1]&&m3e(h[1],a);var g=[];if(t.cellStyles){var m=l.match(i3e);m&&h3e(g,m)}f&&y3e(f[1],s,t,u,i,o);var y=c.match(o3e);y&&(s["!autofilter"]=v3e(y[0]));var x=[],b=c.match(t3e);if(b)for(p=0;p!=b.length;++p)x[p]=Zr(b[p].slice(b[p].indexOf('"')+1));var E=c.match(n3e);E&&d3e(s,E,n);var S=c.match(s3e);if(S&&(s["!margins"]=p3e(lt(S[0]))),!s["!ref"]&&u.e.c>=u.s.c&&u.e.r>=u.s.r&&(s["!ref"]=Jt(u)),t.sheetRows>0&&s["!ref"]){var w=Zr(s["!ref"]);t.sheetRows<=+w.e.r&&(w.e.r=t.sheetRows-1,w.e.r>u.e.r&&(w.e.r=u.e.r),w.e.r<w.s.r&&(w.s.r=w.e.r),w.e.c>u.e.c&&(w.e.c=u.e.c),w.e.c<w.s.c&&(w.s.c=w.e.c),s["!fullref"]=s["!ref"],s["!ref"]=Jt(w))}return g.length>0&&(s["!cols"]=g),x.length>0&&(s["!merges"]=x),s}function iO(e,t,r,n){var a=lt(e);r.Sheets[n]||(r.Sheets[n]={}),a.codeName&&(r.Sheets[n].CodeName=er(_r(a.codeName)))}function f3e(e,t,r,n,a){iO(e.slice(0,e.indexOf(">")),r,n,a)}function d3e(e,t,r){for(var n=Array.isArray(e),a=0;a!=t.length;++a){var i=lt(_r(t[a]),!0);if(!i.ref)return;var o=((r||{})["!id"]||[])[i.id];o?(i.Target=o.Target,i.location&&(i.Target+="#"+er(i.location))):(i.Target="#"+er(i.location),o={Target:i.Target,TargetMode:"Internal"}),i.Rel=o,i.tooltip&&(i.Tooltip=i.tooltip,delete i.tooltip);for(var s=Zr(i.ref),u=s.s.r;u<=s.e.r;++u)for(var l=s.s.c;l<=s.e.c;++l){var c=yt({c:l,r:u});n?(e[u]||(e[u]=[]),e[u][l]||(e[u][l]={t:"z",v:void 0}),e[u][l].l=i):(e[c]||(e[c]={t:"z",v:void 0}),e[c].l=i)}}}function p3e(e){var t={};return["left","right","top","bottom","header","footer"].forEach(function(r){e[r]&&(t[r]=parseFloat(e[r]))}),t}function h3e(e,t){for(var r=!1,n=0;n!=t.length;++n){var a=lt(t[n],!0);a.hidden&&(a.hidden=Rr(a.hidden));var i=parseInt(a.min,10)-1,o=parseInt(a.max,10)-1;for(a.outlineLevel&&(a.level=+a.outlineLevel||0),delete a.min,delete a.max,a.width=+a.width,!r&&a.width&&(r=!0,nO(a.width)),sp(a);i<=o;)e[i++]=na(a)}}function v3e(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}var g3e=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function m3e(e,t){t.Views||(t.Views=[{}]),(e.match(g3e)||[]).forEach(function(r,n){var a=lt(r);t.Views[n]||(t.Views[n]={}),+a.zoomScale&&(t.Views[n].zoom=+a.zoomScale),Rr(a.rightToLeft)&&(t.Views[n].RTL=!0)})}var y3e=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,a=/ref=["']([^"']*)["']/,i=e1("v"),o=e1("f");return function(u,l,c,f,d,p){for(var v=0,h="",g=[],m=[],y=0,x=0,b=0,E="",S,w,C=0,_=0,O,P,F=0,q=0,ee=Array.isArray(p.CellXf),J,Z=[],V=[],ie=Array.isArray(l),W=[],de={},M=!1,A=!!c.sheetStubs,N=u.split(t),I=0,L=N.length;I!=L;++I){h=N[I].trim();var Y=h.length;if(Y!==0){var Q=0;e:for(v=0;v<Y;++v)switch(h[v]){case">":if(h[v-1]!="/"){++v;break e}if(c&&c.cellStyles){if(w=lt(h.slice(Q,v),!0),C=w.r!=null?parseInt(w.r,10):C+1,_=-1,c.sheetRows&&c.sheetRows<C)continue;de={},M=!1,w.ht&&(M=!0,de.hpt=parseFloat(w.ht),de.hpx=a1(de.hpt)),w.hidden=="1"&&(M=!0,de.hidden=!0),w.outlineLevel!=null&&(M=!0,de.level=+w.outlineLevel),M&&(W[C-1]=de)}break;case"<":Q=v;break}if(Q>=v)break;if(w=lt(h.slice(Q,v),!0),C=w.r!=null?parseInt(w.r,10):C+1,_=-1,!(c.sheetRows&&c.sheetRows<C)){f.s.r>C-1&&(f.s.r=C-1),f.e.r<C-1&&(f.e.r=C-1),c&&c.cellStyles&&(de={},M=!1,w.ht&&(M=!0,de.hpt=parseFloat(w.ht),de.hpx=a1(de.hpt)),w.hidden=="1"&&(M=!0,de.hidden=!0),w.outlineLevel!=null&&(M=!0,de.level=+w.outlineLevel),M&&(W[C-1]=de)),g=h.slice(v).split(e);for(var le=0;le!=g.length&&g[le].trim().charAt(0)=="<";++le);for(g=g.slice(le),v=0;v!=g.length;++v)if(h=g[v].trim(),h.length!==0){if(m=h.match(r),y=v,x=0,b=0,h="<c "+(h.slice(0,1)=="<"?">":"")+h,m!=null&&m.length===2){for(y=0,E=m[1],x=0;x!=E.length&&!((b=E.charCodeAt(x)-64)<1||b>26);++x)y=26*y+b;--y,_=y}else++_;for(x=0;x!=h.length&&h.charCodeAt(x)!==62;++x);if(++x,w=lt(h.slice(0,x),!0),w.r||(w.r=yt({r:C-1,c:_})),E=h.slice(x),S={t:""},(m=E.match(i))!=null&&m[1]!==""&&(S.v=er(m[1])),c.cellFormula){if((m=E.match(o))!=null&&m[1]!==""){if(S.f=er(_r(m[1])).replace(/\r\n/g,`
|
||
`),c.xlfn||(S.f=lI(S.f)),m[0].indexOf('t="array"')>-1)S.F=(E.match(a)||[])[1],S.F.indexOf(":")>-1&&Z.push([Zr(S.F),S.F]);else if(m[0].indexOf('t="shared"')>-1){P=lt(m[0]);var ve=er(_r(m[1]));c.xlfn||(ve=lI(ve)),V[parseInt(P.si,10)]=[P,ve,w.r]}}else(m=E.match(/<f[^>]*\/>/))&&(P=lt(m[0]),V[P.si]&&(S.f=D4e(V[P.si][1],V[P.si][2],w.r)));var he=La(w.r);for(x=0;x<Z.length;++x)he.r>=Z[x][0].s.r&&he.r<=Z[x][0].e.r&&he.c>=Z[x][0].s.c&&he.c<=Z[x][0].e.c&&(S.F=Z[x][1])}if(w.t==null&&S.v===void 0)if(S.f||S.F)S.v=0,S.t="n";else if(A)S.t="z";else continue;else S.t=w.t||"n";switch(f.s.c>_&&(f.s.c=_),f.e.c<_&&(f.e.c=_),S.t){case"n":if(S.v==""||S.v==null){if(!A)continue;S.t="z"}else S.v=parseFloat(S.v);break;case"s":if(typeof S.v>"u"){if(!A)continue;S.t="z"}else O=gg[parseInt(S.v,10)],S.v=O.t,S.r=O.r,c.cellHTML&&(S.h=O.h);break;case"str":S.t="s",S.v=S.v!=null?_r(S.v):"",c.cellHTML&&(S.h=GD(S.v));break;case"inlineStr":m=E.match(n),S.t="s",m!=null&&(O=rO(m[1]))?(S.v=O.t,c.cellHTML&&(S.h=O.h)):S.v="";break;case"b":S.v=Rr(S.v);break;case"d":c.cellDates?S.v=Kn(S.v,1):(S.v=$a(Kn(S.v,1)),S.t="n");break;case"e":(!c||c.cellText!==!1)&&(S.w=S.v),S.v=RX[S.v];break}if(F=q=0,J=null,ee&&w.s!==void 0&&(J=p.CellXf[w.s],J!=null&&(J.numFmtId!=null&&(F=J.numFmtId),c.cellStyles&&J.fillId!=null&&(q=J.fillId))),hY(S,F,q,c,d,p),c.cellDates&&ee&&S.t=="n"&&Gp(Ct[F])&&(S.t="d",S.v=qE(S.v)),w.cm&&c.xlmeta){var fe=(c.xlmeta.Cell||[])[+w.cm-1];fe&&fe.type=="XLDAPR"&&(S.D=!0)}if(ie){var z=La(w.r);l[z.r]||(l[z.r]=[]),l[z.r][z.c]=S}else l[w.r]=S}}}}W.length>0&&(l["!rows"]=W)}}();function x3e(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var a=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=n,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=a/20),r}var b3e=c0;function w3e(){}function E3e(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=Vxe(e),r}function S3e(e){var t=co(e);return[t]}function C3e(e){var t=l0(e);return[t]}function _3e(e){var t=co(e),r=e.read_shift(1);return[t,r,"b"]}function A3e(e){var t=l0(e),r=e.read_shift(1);return[t,r,"b"]}function k3e(e){var t=co(e),r=e.read_shift(1);return[t,r,"e"]}function T3e(e){var t=l0(e),r=e.read_shift(1);return[t,r,"e"]}function D3e(e){var t=co(e),r=e.read_shift(4);return[t,r,"s"]}function O3e(e){var t=l0(e),r=e.read_shift(4);return[t,r,"s"]}function F3e(e){var t=co(e),r=ya(e);return[t,r,"n"]}function gY(e){var t=l0(e),r=ya(e);return[t,r,"n"]}function B3e(e){var t=co(e),r=QD(e);return[t,r,"n"]}function P3e(e){var t=l0(e),r=QD(e);return[t,r,"n"]}function N3e(e){var t=co(e),r=JD(e);return[t,r,"is"]}function I3e(e){var t=co(e),r=ba(e);return[t,r,"str"]}function R3e(e){var t=l0(e),r=ba(e);return[t,r,"str"]}function L3e(e,t,r){var n=e.l+t,a=co(e);a.r=r["!row"];var i=e.read_shift(1),o=[a,i,"b"];if(r.cellFormula){e.l+=2;var s=JE(e,n-e.l,r);o[3]=va(s,null,a,r.supbooks,r)}else e.l=n;return o}function M3e(e,t,r){var n=e.l+t,a=co(e);a.r=r["!row"];var i=e.read_shift(1),o=[a,i,"e"];if(r.cellFormula){e.l+=2;var s=JE(e,n-e.l,r);o[3]=va(s,null,a,r.supbooks,r)}else e.l=n;return o}function j3e(e,t,r){var n=e.l+t,a=co(e);a.r=r["!row"];var i=ya(e),o=[a,i,"n"];if(r.cellFormula){e.l+=2;var s=JE(e,n-e.l,r);o[3]=va(s,null,a,r.supbooks,r)}else e.l=n;return o}function $3e(e,t,r){var n=e.l+t,a=co(e);a.r=r["!row"];var i=ba(e),o=[a,i,"str"];if(r.cellFormula){e.l+=2;var s=JE(e,n-e.l,r);o[3]=va(s,null,a,r.supbooks,r)}else e.l=n;return o}var U3e=c0;function H3e(e,t){var r=e.l+t,n=c0(e),a=ZD(e),i=ba(e),o=ba(e),s=ba(e);e.l=r;var u={rfx:n,relId:a,loc:i,display:s};return o&&(u.Tooltip=o),u}function z3e(){}function V3e(e,t,r){var n=e.l+t,a=PX(e),i=e.read_shift(1),o=[a];if(o[2]=i,r.cellFormula){var s=XSe(e,n-e.l,r);o[1]=s}else e.l=n;return o}function W3e(e,t,r){var n=e.l+t,a=c0(e),i=[a];if(r.cellFormula){var o=JSe(e,n-e.l,r);i[1]=o,e.l=n}else e.l=n;return i}var G3e=["left","right","top","bottom","header","footer"];function K3e(e){var t={};return G3e.forEach(function(r){t[r]=ya(e)}),t}function q3e(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function X3e(){}function Y3e(){}function J3e(e,t,r,n,a,i,o){if(!e)return e;var s=t||{};n||(n={"!id":{}});var u=s.dense?[]:{},l,c={s:{r:2e6,c:2e6},e:{r:0,c:0}},f=!1,d=!1,p,v,h,g,m,y,x,b,E,S=[];s.biff=12,s["!row"]=0;var w=0,C=!1,_=[],O={},P=s.supbooks||a.supbooks||[[]];if(P.sharedf=O,P.arrayf=_,P.SheetNames=a.SheetNames||a.Sheets.map(function(ie){return ie.name}),!s.supbooks&&(s.supbooks=P,a.Names))for(var F=0;F<a.Names.length;++F)P[0][F+1]=a.Names[F];var q=[],ee=[],J=!1;xb[16]={n:"BrtShortReal",f:gY};var Z;if(vu(e,function(W,de,M){if(!d)switch(M){case 148:l=W;break;case 0:p=W,s.sheetRows&&s.sheetRows<=p.r&&(d=!0),b=aa(g=p.r),s["!row"]=p.r,(W.hidden||W.hpt||W.level!=null)&&(W.hpt&&(W.hpx=a1(W.hpt)),ee[W.r]=W);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(v={t:W[2]},W[2]){case"n":v.v=W[1];break;case"s":x=gg[W[1]],v.v=x.t,v.r=x.r;break;case"b":v.v=!!W[1];break;case"e":v.v=W[1],s.cellText!==!1&&(v.w=f0[v.v]);break;case"str":v.t="s",v.v=W[1];break;case"is":v.t="s",v.v=W[1].t;break}if((h=o.CellXf[W[0].iStyleRef])&&hY(v,h.numFmtId,null,s,i,o),m=W[0].c==-1?m+1:W[0].c,s.dense?(u[g]||(u[g]=[]),u[g][m]=v):u[Bn(m)+b]=v,s.cellFormula){for(C=!1,w=0;w<_.length;++w){var A=_[w];p.r>=A[0].s.r&&p.r<=A[0].e.r&&m>=A[0].s.c&&m<=A[0].e.c&&(v.F=Jt(A[0]),C=!0)}!C&&W.length>3&&(v.f=W[3])}if(c.s.r>p.r&&(c.s.r=p.r),c.s.c>m&&(c.s.c=m),c.e.r<p.r&&(c.e.r=p.r),c.e.c<m&&(c.e.c=m),s.cellDates&&h&&v.t=="n"&&Gp(Ct[h.numFmtId])){var N=Qc(v.v);N&&(v.t="d",v.v=new Date(N.y,N.m-1,N.d,N.H,N.M,N.S,N.u))}Z&&(Z.type=="XLDAPR"&&(v.D=!0),Z=void 0);break;case 1:case 12:if(!s.sheetStubs||f)break;v={t:"z",v:void 0},m=W[0].c==-1?m+1:W[0].c,s.dense?(u[g]||(u[g]=[]),u[g][m]=v):u[Bn(m)+b]=v,c.s.r>p.r&&(c.s.r=p.r),c.s.c>m&&(c.s.c=m),c.e.r<p.r&&(c.e.r=p.r),c.e.c<m&&(c.e.c=m),Z&&(Z.type=="XLDAPR"&&(v.D=!0),Z=void 0);break;case 176:S.push(W);break;case 49:Z=((s.xlmeta||{}).Cell||[])[W-1];break;case 494:var I=n["!id"][W.relId];for(I?(W.Target=I.Target,W.loc&&(W.Target+="#"+W.loc),W.Rel=I):W.relId==""&&(W.Target="#"+W.loc),g=W.rfx.s.r;g<=W.rfx.e.r;++g)for(m=W.rfx.s.c;m<=W.rfx.e.c;++m)s.dense?(u[g]||(u[g]=[]),u[g][m]||(u[g][m]={t:"z",v:void 0}),u[g][m].l=W):(y=yt({c:m,r:g}),u[y]||(u[y]={t:"z",v:void 0}),u[y].l=W);break;case 426:if(!s.cellFormula)break;_.push(W),E=s.dense?u[g][m]:u[Bn(m)+b],E.f=va(W[1],c,{r:p.r,c:m},P,s),E.F=Jt(W[0]);break;case 427:if(!s.cellFormula)break;O[yt(W[0].s)]=W[1],E=s.dense?u[g][m]:u[Bn(m)+b],E.f=va(W[1],c,{r:p.r,c:m},P,s);break;case 60:if(!s.cellStyles)break;for(;W.e>=W.s;)q[W.e--]={width:W.w/256,hidden:!!(W.flags&1),level:W.level},J||(J=!0,nO(W.w/256)),sp(q[W.e+1]);break;case 161:u["!autofilter"]={ref:Jt(W)};break;case 476:u["!margins"]=W;break;case 147:a.Sheets[r]||(a.Sheets[r]={}),W.name&&(a.Sheets[r].CodeName=W.name),(W.above||W.left)&&(u["!outline"]={above:W.above,left:W.left});break;case 137:a.Views||(a.Views=[{}]),a.Views[0]||(a.Views[0]={}),W.RTL&&(a.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:f=!0;break;case 36:f=!1;break;case 37:f=!0;break;case 38:f=!1;break;default:if(!de.T){if(!f||s.WTF)throw new Error("Unexpected record 0x"+M.toString(16))}}},s),delete s.supbooks,delete s["!row"],!u["!ref"]&&(c.s.r<2e6||l&&(l.e.r>0||l.e.c>0||l.s.r>0||l.s.c>0))&&(u["!ref"]=Jt(l||c)),s.sheetRows&&u["!ref"]){var V=Zr(u["!ref"]);s.sheetRows<=+V.e.r&&(V.e.r=s.sheetRows-1,V.e.r>c.e.r&&(V.e.r=c.e.r),V.e.r<V.s.r&&(V.s.r=V.e.r),V.e.c>c.e.c&&(V.e.c=c.e.c),V.e.c<V.s.c&&(V.s.c=V.e.c),u["!fullref"]=u["!ref"],u["!ref"]=Jt(V))}return S.length>0&&(u["!merges"]=S),q.length>0&&(u["!cols"]=q),ee.length>0&&(u["!rows"]=ee),u}function Z3e(e){var t=[],r=e.match(/^<c:numCache>/),n;(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/mg)||[]).forEach(function(i){var o=i.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);o&&(t[+o[1]]=r?+o[2]:o[2])});var a=er((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/mg)||[]).forEach(function(i){n=i.replace(/<.*?>/g,"")}),[t,a,n]}function Q3e(e,t,r,n,a,i){var o=i||{"!type":"chart"};if(!e)return i;var s=0,u=0,l="A",c={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(f){var d=Z3e(f);c.s.r=c.s.c=0,c.e.c=s,l=Bn(s),d[0].forEach(function(p,v){o[l+aa(v)]={t:"n",v:p,z:d[1]},u=v}),c.e.r<u&&(c.e.r=u),++s}),s>0&&(o["!ref"]=Jt(c)),o}function eCe(e,t,r,n,a){if(!e)return e;n||(n={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},o,s=e.match(vY);return s&&iO(s[0],i,a,r),(o=e.match(/drawing r:id="(.*?)"/))&&(i["!rel"]=o[1]),n["!id"][i["!rel"]]&&(i["!drawel"]=n["!id"][i["!rel"]]),i}function tCe(e,t){e.l+=10;var r=ba(e);return{name:r}}function rCe(e,t,r,n,a){if(!e)return e;n||(n={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},o=!1;return vu(e,function(u,l,c){switch(c){case 550:i["!rel"]=u;break;case 651:a.Sheets[r]||(a.Sheets[r]={}),u.name&&(a.Sheets[r].CodeName=u.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:break;case 38:break;default:if(!(l.T>0)){if(!(l.T<0)){if(!o||t.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}}},t),n["!id"][i["!rel"]]&&(i["!drawel"]=n["!id"][i["!rel"]]),i}var mY=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],nCe=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],aCe=[],iCe=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function hI(e,t){for(var r=0;r!=e.length;++r)for(var n=e[r],a=0;a!=t.length;++a){var i=t[a];if(n[i[0]]==null)n[i[0]]=i[1];else switch(i[2]){case"bool":typeof n[i[0]]=="string"&&(n[i[0]]=Rr(n[i[0]]));break;case"int":typeof n[i[0]]=="string"&&(n[i[0]]=parseInt(n[i[0]],10));break}}}function vI(e,t){for(var r=0;r!=t.length;++r){var n=t[r];if(e[n[0]]==null)e[n[0]]=n[1];else switch(n[2]){case"bool":typeof e[n[0]]=="string"&&(e[n[0]]=Rr(e[n[0]]));break;case"int":typeof e[n[0]]=="string"&&(e[n[0]]=parseInt(e[n[0]],10));break}}}function yY(e){vI(e.WBProps,mY),vI(e.CalcPr,iCe),hI(e.WBView,nCe),hI(e.Sheets,aCe),Fd.date1904=Rr(e.WBProps.date1904)}var oCe="][*?/\\".split("");function sCe(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return oCe.forEach(function(n){if(e.indexOf(n)!=-1){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}var uCe=/<\w+:workbook/;function lCe(e,t){if(!e)throw new Error("Could not find file");var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},n=!1,a="xmlns",i={},o=0;if(e.replace(Aa,function(u,l){var c=lt(u);switch(Bs(c[0])){case"<?xml":break;case"<workbook":u.match(uCe)&&(a="xmlns"+u.match(/<(\w+):/)[1]),r.xmlns=c[a];break;case"</workbook>":break;case"<fileVersion":delete c[0],r.AppVersion=c;break;case"<fileVersion/>":case"</fileVersion>":break;case"<fileSharing":break;case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":mY.forEach(function(f){if(c[f[0]]!=null)switch(f[2]){case"bool":r.WBProps[f[0]]=Rr(c[f[0]]);break;case"int":r.WBProps[f[0]]=parseInt(c[f[0]],10);break;default:r.WBProps[f[0]]=c[f[0]]}}),c.codeName&&(r.WBProps.CodeName=_r(c.codeName));break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete c[0],r.WBView.push(c);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(c.state){case"hidden":c.Hidden=1;break;case"veryHidden":c.Hidden=2;break;default:c.Hidden=0}delete c.state,c.name=er(_r(c.name)),delete c[0],r.Sheets.push(c);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":case"<definedNames":n=!0;break;case"</definedNames>":n=!1;break;case"<definedName":i={},i.Name=_r(c.name),c.comment&&(i.Comment=c.comment),c.localSheetId&&(i.Sheet=+c.localSheetId),Rr(c.hidden||"0")&&(i.Hidden=!0),o=l+u.length;break;case"</definedName>":i.Ref=er(_r(e.slice(o,l))),r.Names.push(i);break;case"<definedName/>":break;case"<calcPr":delete c[0],r.CalcPr=c;break;case"<calcPr/>":delete c[0],r.CalcPr=c;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":n=!0;break;case"</AlternateContent>":n=!1;break;case"<revisionPtr":break;default:if(!n&&t.WTF)throw new Error("unrecognized "+c[0]+" in workbook")}return u}),kxe.indexOf(r.xmlns)===-1)throw new Error("Unknown Namespace: "+r.xmlns);return yY(r),r}function cCe(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=t6(e),r.name=ba(e),r}function fCe(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var a=t>8?ba(e):"";return a.length>0&&(r.CodeName=a),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function dCe(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function pCe(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var a=e.read_shift(4),i=Wxe(e),o=YSe(e,0,r),s=ZD(e);e.l=n;var u={Name:i,Ptg:o};return a<268435455&&(u.Sheet=a),s&&(u.Comment=s),u}function hCe(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],a=!1;t||(t={}),t.biff=12;var i=[],o=[[]];return o.SheetNames=[],o.XTI=[],xb[16]={n:"BrtFRTArchID$",f:dCe},vu(e,function(u,l,c){switch(c){case 156:o.SheetNames.push(u.name),r.Sheets.push(u);break;case 153:r.WBProps=u;break;case 39:u.Sheet!=null&&(t.SID=u.Sheet),u.Ref=va(u.Ptg,null,null,o,t),delete t.SID,delete u.Ptg,i.push(u);break;case 1036:break;case 357:case 358:case 355:case 667:o[0].length?o.push([c,u]):o[0]=[c,u],o[o.length-1].XTI=[];break;case 362:o.length===0&&(o[0]=[],o[0].XTI=[]),o[o.length-1].XTI=o[o.length-1].XTI.concat(u),o.XTI=o.XTI.concat(u);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:n.push(c),a=!0;break;case 36:n.pop(),a=!1;break;case 37:n.push(c),a=!0;break;case 38:n.pop(),a=!1;break;case 16:break;default:if(!l.T){if(!a||t.WTF&&n[n.length-1]!=37&&n[n.length-1]!=35)throw new Error("Unexpected record 0x"+c.toString(16))}}},t),yY(r),r.Names=i,r.supbooks=o,r}function vCe(e,t,r){return t.slice(-4)===".bin"?hCe(e,r):lCe(e,r)}function gCe(e,t,r,n,a,i,o,s){return t.slice(-4)===".bin"?J3e(e,n,r,a,i,o,s):c3e(e,n,r,a,i,o,s)}function mCe(e,t,r,n,a,i,o,s){return t.slice(-4)===".bin"?rCe(e,n,r,a,i):eCe(e,n,r,a,i)}function yCe(e,t,r,n,a,i,o,s){return t.slice(-4)===".bin"?A4e():k4e()}function xCe(e,t,r,n,a,i,o,s){return t.slice(-4)===".bin"?C4e():_4e()}function bCe(e,t,r,n){return t.slice(-4)===".bin"?UEe(e,r,n):IEe(e,r,n)}function wCe(e,t,r){return aY(e,r)}function ECe(e,t,r){return t.slice(-4)===".bin"?nEe(e,r):tEe(e,r)}function SCe(e,t,r){return t.slice(-4)===".bin"?w4e(e,r):g4e(e,r)}function CCe(e,t,r){return t.slice(-4)===".bin"?p4e(e):f4e(e)}function _Ce(e,t,r,n){return r.slice(-4)===".bin"?h4e(e,t,r,n):void 0}function ACe(e,t,r){return t.slice(-4)===".bin"?l4e(e,t,r):c4e(e,t,r)}var xY=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,bY=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function yo(e,t){var r=e.split(/\s+/),n=[];if(t||(n[0]=r[0]),r.length===1)return n;var a=e.match(xY),i,o,s,u;if(a)for(u=0;u!=a.length;++u)i=a[u].match(bY),(o=i[1].indexOf(":"))===-1?n[i[1]]=i[2].slice(1,i[2].length-1):(i[1].slice(0,6)==="xmlns:"?s="xmlns"+i[1].slice(6):s=i[1].slice(o+1),n[s]=i[2].slice(1,i[2].length-1));return n}function kCe(e){var t=e.split(/\s+/),r={};if(t.length===1)return r;var n=e.match(xY),a,i,o,s;if(n)for(s=0;s!=n.length;++s)a=n[s].match(bY),(i=a[1].indexOf(":"))===-1?r[a[1]]=a[2].slice(1,a[2].length-1):(a[1].slice(0,6)==="xmlns:"?o="xmlns"+a[1].slice(6):o=a[1].slice(i+1),r[o]=a[2].slice(1,a[2].length-1));return r}var yg;function TCe(e,t){var r=yg[e]||er(e);return r==="General"?jf(t):no(r,t)}function DCe(e,t,r,n){var a=n;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":a=Rr(n);break;case"i2":case"int":a=parseInt(n,10);break;case"r4":case"float":a=parseFloat(n);break;case"date":case"dateTime.tz":a=Kn(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[er(t)]=a}function OCe(e,t,r){if(e.t!=="z"){if(!r||r.cellText!==!1)try{e.t==="e"?e.w=e.w||f0[e.v]:t==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Qg(e.v):e.w=jf(e.v):e.w=TCe(t||"General",e.v)}catch(i){if(r.WTF)throw i}try{var n=yg[t]||t||"General";if(r.cellNF&&(e.z=n),r.cellDates&&e.t=="n"&&Gp(n)){var a=Qc(e.v);a&&(e.t="d",e.v=new Date(a.y,a.m-1,a.d,a.H,a.M,a.S,a.u))}}catch(i){if(r.WTF)throw i}}}function FCe(e,t,r){if(r.cellStyles&&t.Interior){var n=t.Interior;n.Pattern&&(n.patternType=DEe[n.Pattern]||n.Pattern)}e[t.ID]=t}function BCe(e,t,r,n,a,i,o,s,u,l){var c="General",f=n.StyleID,d={};l=l||{};var p=[],v=0;for(f===void 0&&s&&(f=s.StyleID),f===void 0&&o&&(f=o.StyleID);i[f]!==void 0&&(i[f].nf&&(c=i[f].nf),i[f].Interior&&p.push(i[f].Interior),!!i[f].Parent);)f=i[f].Parent;switch(r.Type){case"Boolean":n.t="b",n.v=Rr(e);break;case"String":n.t="s",n.r=LN(er(e)),n.v=e.indexOf("<")>-1?er(t||e).replace(/<.*?>/g,""):n.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),n.v=(Kn(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3),n.v!==n.v?n.v=er(e):n.v<60&&(n.v=n.v-1),(!c||c=="General")&&(c="yyyy-mm-dd");case"Number":n.v===void 0&&(n.v=+e),n.t||(n.t="n");break;case"Error":n.t="e",n.v=RX[e],l.cellText!==!1&&(n.w=e);break;default:e==""&&t==""?n.t="z":(n.t="s",n.v=LN(t||e));break}if(OCe(n,c,l),l.cellFormula!==!1)if(n.Formula){var h=er(n.Formula);h.charCodeAt(0)==61&&(h=h.slice(1)),n.f=Od(h,a),delete n.Formula,n.ArrayRange=="RC"?n.F=Od("RC:RC",a):n.ArrayRange&&(n.F=Od(n.ArrayRange,a),u.push([Zr(n.F),n.F]))}else for(v=0;v<u.length;++v)a.r>=u[v][0].s.r&&a.r<=u[v][0].e.r&&a.c>=u[v][0].s.c&&a.c<=u[v][0].e.c&&(n.F=u[v][1]);l.cellStyles&&(p.forEach(function(g){!d.patternType&&g.patternType&&(d.patternType=g.patternType)}),n.s=d),n.StyleID!==void 0&&(n.ixfe=n.StyleID)}function PCe(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,`
|
||
`).replace(/\r/g,`
|
||
`),e.v=e.w=e.ixfe=void 0}function US(e,t){var r=t||{};sX();var n=zv(KD(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(n=_r(n));var a=n.slice(0,1024).toLowerCase(),i=!1;if(a=a.replace(/".*?"/g,""),(a.indexOf(">")&1023)>Math.min(a.indexOf(",")&1023,a.indexOf(";")&1023)){var o=na(r);return o.type="string",r1.to_workbook(n,o)}if(a.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(Je){a.indexOf("<"+Je)>=0&&(i=!0)}),i)return HCe(n,r);yg={"General Number":"General","General Date":Ct[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Ct[15],"Short Date":Ct[14],"Long Time":Ct[19],"Medium Time":Ct[18],"Short Time":Ct[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Ct[2],Standard:Ct[4],Percent:Ct[10],Scientific:Ct[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var s,u=[],l,c={},f=[],d=r.dense?[]:{},p="",v={},h={},g=yo('<Data ss:Type="String">'),m=0,y=0,x=0,b={s:{r:2e6,c:2e6},e:{r:0,c:0}},E={},S={},w="",C=0,_=[],O={},P={},F=0,q=[],ee=[],J={},Z=[],V,ie=!1,W=[],de=[],M={},A=0,N=0,I={Sheets:[],WBProps:{date1904:!1}},L={};t1.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"");for(var Y="";s=t1.exec(n);)switch(s[3]=(Y=s[3]).toLowerCase()){case"data":if(Y=="data"){if(s[1]==="/"){if((l=u.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&u.push([s[3],!0]);break}if(u[u.length-1][1])break;s[1]==="/"?BCe(n.slice(m,s.index),w,g,u[u.length-1][0]=="comment"?J:v,{c:y,r:x},E,Z[y],h,W,r):(w="",g=yo(s[0]),m=s.index+s[0].length);break;case"cell":if(s[1]==="/")if(ee.length>0&&(v.c=ee),(!r.sheetRows||r.sheetRows>x)&&v.v!==void 0&&(r.dense?(d[x]||(d[x]=[]),d[x][y]=v):d[Bn(y)+aa(x)]=v),v.HRef&&(v.l={Target:er(v.HRef)},v.HRefScreenTip&&(v.l.Tooltip=v.HRefScreenTip),delete v.HRef,delete v.HRefScreenTip),(v.MergeAcross||v.MergeDown)&&(A=y+(parseInt(v.MergeAcross,10)|0),N=x+(parseInt(v.MergeDown,10)|0),_.push({s:{c:y,r:x},e:{c:A,r:N}})),!r.sheetStubs)v.MergeAcross?y=A+1:++y;else if(v.MergeAcross||v.MergeDown){for(var Q=y;Q<=A;++Q)for(var le=x;le<=N;++le)(Q>y||le>x)&&(r.dense?(d[le]||(d[le]=[]),d[le][Q]={t:"z"}):d[Bn(Q)+aa(le)]={t:"z"});y=A+1}else++y;else v=kCe(s[0]),v.Index&&(y=+v.Index-1),y<b.s.c&&(b.s.c=y),y>b.e.c&&(b.e.c=y),s[0].slice(-2)==="/>"&&++y,ee=[];break;case"row":s[1]==="/"||s[0].slice(-2)==="/>"?(x<b.s.r&&(b.s.r=x),x>b.e.r&&(b.e.r=x),s[0].slice(-2)==="/>"&&(h=yo(s[0]),h.Index&&(x=+h.Index-1)),y=0,++x):(h=yo(s[0]),h.Index&&(x=+h.Index-1),M={},(h.AutoFitHeight=="0"||h.Height)&&(M.hpx=parseInt(h.Height,10),M.hpt=nY(M.hpx),de[x]=M),h.Hidden=="1"&&(M.hidden=!0,de[x]=M));break;case"worksheet":if(s[1]==="/"){if((l=u.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"));f.push(p),b.s.r<=b.e.r&&b.s.c<=b.e.c&&(d["!ref"]=Jt(b),r.sheetRows&&r.sheetRows<=b.e.r&&(d["!fullref"]=d["!ref"],b.e.r=r.sheetRows-1,d["!ref"]=Jt(b))),_.length&&(d["!merges"]=_),Z.length>0&&(d["!cols"]=Z),de.length>0&&(d["!rows"]=de),c[p]=d}else b={s:{r:2e6,c:2e6},e:{r:0,c:0}},x=y=0,u.push([s[3],!1]),l=yo(s[0]),p=er(l.Name),d=r.dense?[]:{},_=[],W=[],de=[],L={name:p,Hidden:0},I.Sheets.push(L);break;case"table":if(s[1]==="/"){if((l=u.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"))}else{if(s[0].slice(-2)=="/>")break;u.push([s[3],!1]),Z=[],ie=!1}break;case"style":s[1]==="/"?FCe(E,S,r):S=yo(s[0]);break;case"numberformat":S.nf=er(yo(s[0]).Format||"General"),yg[S.nf]&&(S.nf=yg[S.nf]);for(var ve=0;ve!=392&&Ct[ve]!=S.nf;++ve);if(ve==392){for(ve=57;ve!=392;++ve)if(Ct[ve]==null){cf(S.nf,ve);break}}break;case"column":if(u[u.length-1][0]!=="table")break;if(V=yo(s[0]),V.Hidden&&(V.hidden=!0,delete V.Hidden),V.Width&&(V.wpx=parseInt(V.Width,10)),!ie&&V.wpx>10){ie=!0,Na=tY;for(var he=0;he<Z.length;++he)Z[he]&&sp(Z[he])}ie&&sp(V),Z[V.Index-1||Z.length]=V;for(var fe=0;fe<+V.Span;++fe)Z[Z.length]=na(V);break;case"namedrange":if(s[1]==="/")break;I.Names||(I.Names=[]);var z=lt(s[0]),je={Name:z.Name,Ref:Od(z.RefersTo.slice(1),{r:0,c:0})};I.Sheets.length>0&&(je.Sheet=I.Sheets.length-1),I.Names.push(je);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(s[0].slice(-2)==="/>")break;s[1]==="/"?w+=n.slice(C,s.index):C=s.index+s[0].length;break;case"interior":if(!r.cellStyles)break;S.Interior=yo(s[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(s[0].slice(-2)==="/>")break;s[1]==="/"?gbe(O,Y,n.slice(F,s.index)):F=s.index+s[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(s[1]==="/"){if((l=u.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"))}else u.push([s[3],!1]);break;case"comment":if(s[1]==="/"){if((l=u.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"));PCe(J),ee.push(J)}else u.push([s[3],!1]),l=yo(s[0]),J={a:l.Author};break;case"autofilter":if(s[1]==="/"){if((l=u.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"))}else if(s[0].charAt(s[0].length-2)!=="/"){var Te=yo(s[0]);d["!autofilter"]={ref:Od(Te.Range).replace(/\$/g,"")},u.push([s[3],!0])}break;case"name":break;case"datavalidation":if(s[1]==="/"){if((l=u.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&u.push([s[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(s[1]==="/"){if((l=u.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&u.push([s[3],!0]);break;case"null":break;default:if(u.length==0&&s[3]=="document"||u.length==0&&s[3]=="uof")return wI(n,r);var Ne=!0;switch(u[u.length-1][0]){case"officedocumentsettings":switch(s[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:Ne=!1}break;case"componentoptions":switch(s[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:Ne=!1}break;case"excelworkbook":switch(s[3]){case"date1904":I.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:Ne=!1}break;case"workbookoptions":switch(s[3]){case"owcversion":break;case"height":break;case"width":break;default:Ne=!1}break;case"worksheetoptions":switch(s[3]){case"visible":if(s[0].slice(-2)!=="/>")if(s[1]==="/")switch(n.slice(F,s.index)){case"SheetHidden":L.Hidden=1;break;case"SheetVeryHidden":L.Hidden=2;break}else F=s.index+s[0].length;break;case"header":d["!margins"]||mg(d["!margins"]={},"xlml"),isNaN(+lt(s[0]).Margin)||(d["!margins"].header=+lt(s[0]).Margin);break;case"footer":d["!margins"]||mg(d["!margins"]={},"xlml"),isNaN(+lt(s[0]).Margin)||(d["!margins"].footer=+lt(s[0]).Margin);break;case"pagemargins":var He=lt(s[0]);d["!margins"]||mg(d["!margins"]={},"xlml"),isNaN(+He.Top)||(d["!margins"].top=+He.Top),isNaN(+He.Left)||(d["!margins"].left=+He.Left),isNaN(+He.Right)||(d["!margins"].right=+He.Right),isNaN(+He.Bottom)||(d["!margins"].bottom=+He.Bottom);break;case"displayrighttoleft":I.Views||(I.Views=[]),I.Views[0]||(I.Views[0]={}),I.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":d["!outline"]||(d["!outline"]={}),d["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":d["!outline"]||(d["!outline"]={}),d["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:Ne=!1}break;case"pivottable":case"pivotcache":switch(s[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:Ne=!1}break;case"pagebreaks":switch(s[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:Ne=!1}break;case"autofilter":switch(s[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:Ne=!1}break;case"querytable":switch(s[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:Ne=!1}break;case"datavalidation":switch(s[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:Ne=!1}break;case"sorting":case"conditionalformatting":switch(s[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:Ne=!1}break;case"mapinfo":case"schema":case"data":switch(s[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:Ne=!1}break;case"smarttags":break;default:Ne=!1;break}if(Ne||s[3].match(/!\[CDATA/))break;if(!u[u.length-1][1])throw"Unrecognized tag: "+s[3]+"|"+u.join("|");if(u[u.length-1][0]==="customdocumentproperties"){if(s[0].slice(-2)==="/>")break;s[1]==="/"?DCe(P,Y,q,n.slice(F,s.index)):(q=s,F=s.index+s[0].length);break}if(r.WTF)throw"Unrecognized tag: "+s[3]+"|"+u.join("|")}var we={};return!r.bookSheets&&!r.bookProps&&(we.Sheets=c),we.SheetNames=f,we.Workbook=I,we.SSF=na(Ct),we.Props=O,we.Custprops=P,we}function i6(e,t){switch(uO(t=t||{}),t.type||"base64"){case"base64":return US(Ai(e),t);case"binary":case"buffer":case"file":return US(e,t);case"array":return US(u0(e),t)}}function NCe(e){var t={},r=e.content;if(r.l=28,t.AnsiUserType=r.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=qxe(r),r.length-r.l<=4)return t;var n=r.read_shift(4);if(n==0||n>40||(r.l-=4,t.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4)||(n=r.read_shift(4),n!==1907505652)||(t.UnicodeClipboardFormat=Xxe(r),n=r.read_shift(4),n==0||n>40))return t;r.l-=4,t.Reserved2=r.read_shift(0,"lpwstr")}var ICe=[60,1084,2066,2165,2175];function RCe(e,t,r,n,a){var i=n,o=[],s=r.slice(r.l,r.l+i);if(a&&a.enc&&a.enc.insitu&&s.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:a.enc.insitu(s)}o.push(s),r.l+=i;for(var u=Ys(r,r.l),l=o6[u],c=0;l!=null&&ICe.indexOf(u)>-1;)i=Ys(r,r.l+2),c=r.l+4,u==2066?c+=4:(u==2165||u==2175)&&(c+=12),s=r.slice(c,r.l+4+i),o.push(s),r.l+=4+i,l=o6[u=Ys(r,r.l)];var f=al(o);ea(f,0);var d=0;f.lens=[];for(var p=0;p<o.length;++p)f.lens.push(d),d+=o[p].length;if(f.length<n)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+f.length+" < "+n;return t.f(f,f.length,a)}function Yo(e,t,r){if(e.t!=="z"&&e.XF){var n=0;try{n=e.z||e.XF.numFmtId||0,t.cellNF&&(e.z=Ct[n])}catch(i){if(t.WTF)throw i}if(!t||t.cellText!==!1)try{e.t==="e"?e.w=e.w||f0[e.v]:n===0||n=="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Qg(e.v):e.w=jf(e.v):e.w=no(n,e.v,{date1904:!!r,dateNF:t&&t.dateNF})}catch(i){if(t.WTF)throw i}if(t.cellDates&&n&&e.t=="n"&&Gp(Ct[n]||String(n))){var a=Qc(e.v);a&&(e.t="d",e.v=new Date(a.y,a.m-1,a.d,a.H,a.M,a.S,a.u))}}}function jy(e,t,r){return{v:e,ixfe:t,t:r}}function LCe(e,t){var r={opts:{}},n={},a=t.dense?[]:{},i={},o={},s=null,u=[],l="",c={},f,d="",p,v,h,g,m={},y=[],x,b,E=[],S=[],w={Sheets:[],WBProps:{date1904:!1},Views:[{}]},C={},_=function(Ze){return Ze<8?ff[Ze]:Ze<64&&S[Ze-8]||ff[Ze]},O=function(Ze,wt,Vt){var Ft=wt.XF.data;if(!(!Ft||!Ft.patternType||!Vt||!Vt.cellStyles)){wt.s={},wt.s.patternType=Ft.patternType;var ir;(ir=n1(_(Ft.icvFore)))&&(wt.s.fgColor={rgb:ir}),(ir=n1(_(Ft.icvBack)))&&(wt.s.bgColor={rgb:ir})}},P=function(Ze,wt,Vt){if(!(M>1)&&!(Vt.sheetRows&&Ze.r>=Vt.sheetRows)){if(Vt.cellStyles&&wt.XF&&wt.XF.data&&O(Ze,wt,Vt),delete wt.ixfe,delete wt.XF,f=Ze,d=yt(Ze),(!o||!o.s||!o.e)&&(o={s:{r:0,c:0},e:{r:0,c:0}}),Ze.r<o.s.r&&(o.s.r=Ze.r),Ze.c<o.s.c&&(o.s.c=Ze.c),Ze.r+1>o.e.r&&(o.e.r=Ze.r+1),Ze.c+1>o.e.c&&(o.e.c=Ze.c+1),Vt.cellFormula&&wt.f){for(var Ft=0;Ft<y.length;++Ft)if(!(y[Ft][0].s.c>Ze.c||y[Ft][0].s.r>Ze.r)&&!(y[Ft][0].e.c<Ze.c||y[Ft][0].e.r<Ze.r)){wt.F=Jt(y[Ft][0]),(y[Ft][0].s.c!=Ze.c||y[Ft][0].s.r!=Ze.r)&&delete wt.f,wt.f&&(wt.f=""+va(y[Ft][1],o,Ze,W,F));break}}Vt.dense?(a[Ze.r]||(a[Ze.r]=[]),a[Ze.r][Ze.c]=wt):a[d]=wt}},F={enc:!1,sbcch:0,snames:[],sharedf:m,arrayf:y,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(F.password=t.password);var q,ee=[],J=[],Z=[],V=[],ie=!1,W=[];W.SheetNames=F.snames,W.sharedf=F.sharedf,W.arrayf=F.arrayf,W.names=[],W.XTI=[];var de=0,M=0,A=0,N=[],I=[],L;F.codepage=1200,Fo(1200);for(var Y=!1;e.l<e.length-1;){var Q=e.l,le=e.read_shift(2);if(le===0&&de===10)break;var ve=e.l===e.length?0:e.read_shift(2),he=o6[le];if(he&&he.f){if(t.bookSheets&&de===133&&le!==133)break;if(de=le,he.r===2||he.r==12){var fe=e.read_shift(2);if(ve-=2,!F.enc&&fe!==le&&((fe&255)<<8|fe>>8)!==le)throw new Error("rt mismatch: "+fe+"!="+le);he.r==12&&(e.l+=10,ve-=10)}var z={};if(le===10?z=he.f(e,ve,F):z=RCe(le,he,e,ve,F),M==0&&[9,521,1033,2057].indexOf(de)===-1)continue;switch(le){case 34:r.opts.Date1904=w.WBProps.date1904=z;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(F.enc||(e.l=0),F.enc=z,!t.password)throw new Error("File is password-protected");if(z.valid==null)throw new Error("Encryption scheme unsupported");if(!z.valid)throw new Error("Password is incorrect");break;case 92:F.lastuser=z;break;case 66:var je=Number(z);switch(je){case 21010:je=1200;break;case 32768:je=1e4;break;case 32769:je=1252;break}Fo(F.codepage=je),Y=!0;break;case 317:F.rrtabid=z;break;case 25:F.winlocked=z;break;case 439:r.opts.RefreshAll=z;break;case 12:r.opts.CalcCount=z;break;case 16:r.opts.CalcDelta=z;break;case 17:r.opts.CalcIter=z;break;case 13:r.opts.CalcMode=z;break;case 14:r.opts.CalcPrecision=z;break;case 95:r.opts.CalcSaveRecalc=z;break;case 15:F.CalcRefMode=z;break;case 2211:r.opts.FullCalc=z;break;case 129:z.fDialog&&(a["!type"]="dialog"),z.fBelow||((a["!outline"]||(a["!outline"]={})).above=!0),z.fRight||((a["!outline"]||(a["!outline"]={})).left=!0);break;case 224:E.push(z);break;case 430:W.push([z]),W[W.length-1].XTI=[];break;case 35:case 547:W[W.length-1].push(z);break;case 24:case 536:L={Name:z.Name,Ref:va(z.rgce,o,null,W,F)},z.itab>0&&(L.Sheet=z.itab-1),W.names.push(L),W[0]||(W[0]=[],W[0].XTI=[]),W[W.length-1].push(z),z.Name=="_xlnm._FilterDatabase"&&z.itab>0&&z.rgce&&z.rgce[0]&&z.rgce[0][0]&&z.rgce[0][0][0]=="PtgArea3d"&&(I[z.itab-1]={ref:Jt(z.rgce[0][0][1][2])});break;case 22:F.ExternCount=z;break;case 23:W.length==0&&(W[0]=[],W[0].XTI=[]),W[W.length-1].XTI=W[W.length-1].XTI.concat(z),W.XTI=W.XTI.concat(z);break;case 2196:if(F.biff<8)break;L!=null&&(L.Comment=z[1]);break;case 18:a["!protect"]=z;break;case 19:z!==0&&F.WTF&&console.error("Password verifier: "+z);break;case 133:i[z.pos]=z,F.snames.push(z.name);break;case 10:{if(--M)break;if(o.e){if(o.e.r>0&&o.e.c>0){if(o.e.r--,o.e.c--,a["!ref"]=Jt(o),t.sheetRows&&t.sheetRows<=o.e.r){var Te=o.e.r;o.e.r=t.sheetRows-1,a["!fullref"]=a["!ref"],a["!ref"]=Jt(o),o.e.r=Te}o.e.r++,o.e.c++}ee.length>0&&(a["!merges"]=ee),J.length>0&&(a["!objects"]=J),Z.length>0&&(a["!cols"]=Z),V.length>0&&(a["!rows"]=V),w.Sheets.push(C)}l===""?c=a:n[l]=a,a=t.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(F.biff===8&&(F.biff={9:2,521:3,1033:4}[le]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[z.BIFFVer]||8),F.biffguess=z.BIFFVer==0,z.BIFFVer==0&&z.dt==4096&&(F.biff=5,Y=!0,Fo(F.codepage=28591)),F.biff==8&&z.BIFFVer==0&&z.dt==16&&(F.biff=2),M++)break;if(a=t.dense?[]:{},F.biff<8&&!Y&&(Y=!0,Fo(F.codepage=t.codepage||1252)),F.biff<5||z.BIFFVer==0&&z.dt==4096){l===""&&(l="Sheet1"),o={s:{r:0,c:0},e:{r:0,c:0}};var Ne={pos:e.l-ve,name:l};i[Ne.pos]=Ne,F.snames.push(l)}else l=(i[Q]||{name:""}).name;z.dt==32&&(a["!type"]="chart"),z.dt==64&&(a["!type"]="macro"),ee=[],J=[],F.arrayf=y=[],Z=[],V=[],ie=!1,C={Hidden:(i[Q]||{hs:0}).hs,name:l}}break;case 515:case 3:case 2:a["!type"]=="chart"&&(t.dense?(a[z.r]||[])[z.c]:a[yt({c:z.c,r:z.r})])&&++z.c,x={ixfe:z.ixfe,XF:E[z.ixfe]||{},v:z.val,t:"n"},A>0&&(x.z=N[x.ixfe>>8&63]),Yo(x,t,r.opts.Date1904),P({c:z.c,r:z.r},x,t);break;case 5:case 517:x={ixfe:z.ixfe,XF:E[z.ixfe],v:z.val,t:z.t},A>0&&(x.z=N[x.ixfe>>8&63]),Yo(x,t,r.opts.Date1904),P({c:z.c,r:z.r},x,t);break;case 638:x={ixfe:z.ixfe,XF:E[z.ixfe],v:z.rknum,t:"n"},A>0&&(x.z=N[x.ixfe>>8&63]),Yo(x,t,r.opts.Date1904),P({c:z.c,r:z.r},x,t);break;case 189:for(var He=z.c;He<=z.C;++He){var we=z.rkrec[He-z.c][0];x={ixfe:we,XF:E[we],v:z.rkrec[He-z.c][1],t:"n"},A>0&&(x.z=N[x.ixfe>>8&63]),Yo(x,t,r.opts.Date1904),P({c:He,r:z.r},x,t)}break;case 6:case 518:case 1030:{if(z.val=="String"){s=z;break}if(x=jy(z.val,z.cell.ixfe,z.tt),x.XF=E[x.ixfe],t.cellFormula){var Je=z.formula;if(Je&&Je[0]&&Je[0][0]&&Je[0][0][0]=="PtgExp"){var ut=Je[0][0][1][0],_t=Je[0][0][1][1],Qe=yt({r:ut,c:_t});m[Qe]?x.f=""+va(z.formula,o,z.cell,W,F):x.F=((t.dense?(a[ut]||[])[_t]:a[Qe])||{}).F}else x.f=""+va(z.formula,o,z.cell,W,F)}A>0&&(x.z=N[x.ixfe>>8&63]),Yo(x,t,r.opts.Date1904),P(z.cell,x,t),s=z}break;case 7:case 519:if(s)s.val=z,x=jy(z,s.cell.ixfe,"s"),x.XF=E[x.ixfe],t.cellFormula&&(x.f=""+va(s.formula,o,s.cell,W,F)),A>0&&(x.z=N[x.ixfe>>8&63]),Yo(x,t,r.opts.Date1904),P(s.cell,x,t),s=null;else throw new Error("String record expects Formula");break;case 33:case 545:{y.push(z);var cr=yt(z[0].s);if(p=t.dense?(a[z[0].s.r]||[])[z[0].s.c]:a[cr],t.cellFormula&&p){if(!s||!cr||!p)break;p.f=""+va(z[1],o,z[0],W,F),p.F=Jt(z[0])}}break;case 1212:{if(!t.cellFormula)break;if(d){if(!s)break;m[yt(s.cell)]=z[0],p=t.dense?(a[s.cell.r]||[])[s.cell.c]:a[yt(s.cell)],(p||{}).f=""+va(z[0],o,f,W,F)}}break;case 253:x=jy(u[z.isst].t,z.ixfe,"s"),u[z.isst].h&&(x.h=u[z.isst].h),x.XF=E[x.ixfe],A>0&&(x.z=N[x.ixfe>>8&63]),Yo(x,t,r.opts.Date1904),P({c:z.c,r:z.r},x,t);break;case 513:t.sheetStubs&&(x={ixfe:z.ixfe,XF:E[z.ixfe],t:"z"},A>0&&(x.z=N[x.ixfe>>8&63]),Yo(x,t,r.opts.Date1904),P({c:z.c,r:z.r},x,t));break;case 190:if(t.sheetStubs)for(var zt=z.c;zt<=z.C;++zt){var Se=z.ixfe[zt-z.c];x={ixfe:Se,XF:E[Se],t:"z"},A>0&&(x.z=N[x.ixfe>>8&63]),Yo(x,t,r.opts.Date1904),P({c:zt,r:z.r},x,t)}break;case 214:case 516:case 4:x=jy(z.val,z.ixfe,"s"),x.XF=E[x.ixfe],A>0&&(x.z=N[x.ixfe>>8&63]),Yo(x,t,r.opts.Date1904),P({c:z.c,r:z.r},x,t);break;case 0:case 512:M===1&&(o=z);break;case 252:u=z;break;case 1054:if(F.biff==4){N[A++]=z[1];for(var at=0;at<A+163&&Ct[at]!=z[1];++at);at>=163&&cf(z[1],A+163)}else cf(z[1],z[0]);break;case 30:{N[A++]=z;for(var Rt=0;Rt<A+163&&Ct[Rt]!=z;++Rt);Rt>=163&&cf(z,A+163)}break;case 229:ee=ee.concat(z);break;case 93:J[z.cmo[0]]=F.lastobj=z;break;case 438:F.lastobj.TxO=z;break;case 127:F.lastobj.ImData=z;break;case 440:for(g=z[0].s.r;g<=z[0].e.r;++g)for(h=z[0].s.c;h<=z[0].e.c;++h)p=t.dense?(a[g]||[])[h]:a[yt({c:h,r:g})],p&&(p.l=z[1]);break;case 2048:for(g=z[0].s.r;g<=z[0].e.r;++g)for(h=z[0].s.c;h<=z[0].e.c;++h)p=t.dense?(a[g]||[])[h]:a[yt({c:h,r:g})],p&&p.l&&(p.l.Tooltip=z[1]);break;case 28:{if(F.biff<=5&&F.biff>=2)break;p=t.dense?(a[z[0].r]||[])[z[0].c]:a[yt(z[0])];var fr=J[z[2]];p||(t.dense?(a[z[0].r]||(a[z[0].r]=[]),p=a[z[0].r][z[0].c]={t:"z"}):p=a[yt(z[0])]={t:"z"},o.e.r=Math.max(o.e.r,z[0].r),o.s.r=Math.min(o.s.r,z[0].r),o.e.c=Math.max(o.e.c,z[0].c),o.s.c=Math.min(o.s.c,z[0].c)),p.c||(p.c=[]),v={a:z[1],t:fr.TxO.t},p.c.push(v)}break;case 2173:i4e(E[z.ixfe],z.ext);break;case 125:{if(!F.cellStyles)break;for(;z.e>=z.s;)Z[z.e--]={width:z.w/256,level:z.level||0,hidden:!!(z.flags&1)},ie||(ie=!0,nO(z.w/256)),sp(Z[z.e+1])}break;case 520:{var It={};z.level!=null&&(V[z.r]=It,It.level=z.level),z.hidden&&(V[z.r]=It,It.hidden=!0),z.hpt&&(V[z.r]=It,It.hpt=z.hpt,It.hpx=a1(z.hpt))}break;case 38:case 39:case 40:case 41:a["!margins"]||mg(a["!margins"]={}),a["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[le]]=z;break;case 161:a["!margins"]||mg(a["!margins"]={}),a["!margins"].header=z.header,a["!margins"].footer=z.footer;break;case 574:z.RTL&&(w.Views[0].RTL=!0);break;case 146:S=z;break;case 2198:q=z;break;case 140:b=z;break;case 442:l?C.CodeName=z||C.name:w.WBProps.CodeName=z||"ThisWorkbook";break}}else he||console.error("Missing Info for XLS Record 0x"+le.toString(16)),e.l+=ve}return r.SheetNames=Es(i).sort(function(Dr,Ze){return Number(Dr)-Number(Ze)}).map(function(Dr){return i[Dr].name}),t.bookSheets||(r.Sheets=n),!r.SheetNames.length&&c["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=c)):r.Preamble=c,r.Sheets&&I.forEach(function(Dr,Ze){r.Sheets[r.SheetNames[Ze]]["!autofilter"]=Dr}),r.Strings=u,r.SSF=na(Ct),F.enc&&(r.Encryption=F.enc),q&&(r.Themes=q),r.Metadata={},b!==void 0&&(r.Metadata.Country=b),W.names.length>0&&(w.Names=W.names),r.Workbook=w,r}var gI={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function MCe(e,t,r){var n=Yt.find(e,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var a=QN(n,tbe,gI.DSI);for(var i in a)t[i]=a[i]}catch(l){if(r.WTF)throw l}var o=Yt.find(e,"/!SummaryInformation");if(o&&o.size>0)try{var s=QN(o,rbe,gI.SI);for(var u in s)t[u]==null&&(t[u]=s[u])}catch(l){if(r.WTF)throw l}t.HeadingPairs&&t.TitlesOfParts&&(MX(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}function wY(e,t){t||(t={}),uO(t),Xq(),t.codepage&&$D(t.codepage);var r,n;if(e.FullPaths){if(Yt.find(e,"/encryption"))throw new Error("File is password-protected");r=Yt.find(e,"!CompObj"),n=Yt.find(e,"/Workbook")||Yt.find(e,"/Book")}else{switch(t.type){case"base64":e=_o(Ai(e));break;case"binary":e=_o(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}ea(e,0),n={content:e}}var a,i;if(r&&NCe(r),t.bookProps&&!t.bookSheets)a={};else{var o=Kt?"buffer":"array";if(n&&n.content)a=LCe(n.content,t);else if((i=Yt.find(e,"PerfectOffice_MAIN"))&&i.content)a=vg.to_workbook(i.content,(t.type=o,t));else if((i=Yt.find(e,"NativeContent_MAIN"))&&i.content)a=vg.to_workbook(i.content,(t.type=o,t));else throw(i=Yt.find(e,"MN0"))&&i.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");t.bookVBA&&e.FullPaths&&Yt.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(a.vbaraw=S4e(e))}var s={};return e.FullPaths&&MCe(e,s,t),a.Props=a.Custprops=s,t.bookFiles&&(a.cfb=e),a}var xb={0:{f:x3e},1:{f:S3e},2:{f:B3e},3:{f:k3e},4:{f:_3e},5:{f:F3e},6:{f:I3e},7:{f:D3e},8:{f:$3e},9:{f:j3e},10:{f:L3e},11:{f:M3e},12:{f:C3e},13:{f:P3e},14:{f:T3e},15:{f:A3e},16:{f:gY},17:{f:R3e},18:{f:O3e},19:{f:JD},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:pCe},40:{},42:{},43:{f:LEe},44:{f:REe},45:{f:MEe},46:{f:$Ee},47:{f:jEe},48:{},49:{f:Uxe},50:{},51:{f:s4e},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:YX},62:{f:N3e},63:{f:d4e},64:{f:X3e},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Sa,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:q3e},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:E3e},148:{f:b3e,p:16},151:{f:z3e},152:{},153:{f:fCe},154:{},155:{},156:{f:cCe},157:{},158:{},159:{T:1,f:rEe},160:{T:-1},161:{T:1,f:c0},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:U3e},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:o4e},336:{T:-1},337:{f:u4e,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:t6},357:{},358:{},359:{},360:{T:1},361:{},362:{f:XX},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:V3e},427:{f:W3e},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:K3e},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:w3e},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:H3e},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:t6},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:b4e},633:{T:1},634:{T:-1},635:{T:1,f:x4e},636:{T:-1},637:{f:zxe},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:tCe},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:Y3e},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},o6={6:{f:jS},10:{f:Au},12:{f:vn},13:{f:vn},14:{f:en},15:{f:en},16:{f:ya},17:{f:en},18:{f:en},19:{f:vn},20:{f:nI},21:{f:nI},23:{f:XX},24:{f:iI},25:{f:en},26:{},27:{},28:{f:mwe},29:{},34:{f:en},35:{f:aI},38:{f:ya},39:{f:ya},40:{f:ya},41:{f:ya},42:{f:en},43:{f:en},47:{f:wEe},49:{f:Zbe},51:{f:vn},60:{},61:{f:Xbe},64:{f:en},65:{f:Jbe},66:{f:vn},77:{},80:{},81:{},82:{},85:{f:vn},89:{},90:{},91:{},92:{f:Ube},93:{f:xwe},94:{},95:{f:en},96:{},97:{},99:{f:en},125:{f:YX},128:{f:uwe},129:{f:Hbe},130:{f:vn},131:{f:en},132:{f:en},133:{f:zbe},134:{},140:{f:_we},141:{f:vn},144:{},146:{f:kwe},151:{},152:{},153:{},154:{},155:{},156:{f:vn},157:{},158:{},160:{f:Bwe},161:{f:Dwe},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:awe},190:{f:iwe},193:{f:Au},197:{},198:{},199:{},200:{},201:{},202:{f:en},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:vn},220:{},221:{f:en},222:{},224:{f:swe},225:{f:$be},226:{f:Au},227:{},229:{f:ywe},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:Vbe},253:{f:Qbe},255:{f:Wbe},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:zX},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:en},353:{f:Au},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:cwe},431:{f:en},432:{},433:{},434:{},437:{},438:{f:Ewe},439:{f:en},440:{f:Swe},441:{},442:{f:gm},443:{},444:{f:vn},445:{},446:{},448:{f:Au},449:{f:qbe,r:2},450:{f:Au},512:{f:tI},513:{f:Fwe},515:{f:lwe},516:{f:ewe},517:{f:rI},519:{f:Pwe},520:{f:Gbe},523:{},545:{f:oI},549:{f:eI},566:{},574:{f:Ybe},638:{f:nwe},659:{},1048:{},1054:{f:twe},1084:{},1212:{f:hwe},2048:{f:Cwe},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Ry},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Au},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:Twe,r:12},2173:{f:a4e,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:en,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:pwe,r:12},2197:{},2198:{f:ZEe,r:12},2199:{},2200:{},2201:{},2202:{f:vwe,r:12},2203:{f:Au},2204:{},2205:{},2206:{},2207:{},2211:{f:Kbe},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:vn},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:Owe},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:Awe},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:tI},1:{},2:{f:Lwe},3:{f:Rwe},4:{f:Iwe},5:{f:rI},7:{f:Mwe},8:{},9:{f:Ry},11:{},22:{f:vn},30:{f:rwe},31:{},32:{},33:{f:oI},36:{},37:{f:eI},50:{f:jwe},62:{},52:{},67:{},68:{f:vn},69:{},86:{},126:{},127:{f:Nwe},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:$we},223:{},234:{},354:{},421:{},518:{f:jS},521:{f:Ry},536:{f:iI},547:{f:aI},561:{},579:{},1030:{f:jS},1033:{f:Ry},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function xo(e,t,r,n){var a=t;if(!isNaN(a)){var i=n||(r||[]).length||0,o=e.next(4);o.write_shift(2,a),o.write_shift(2,i),i>0&&OX(r)&&e.push(r)}}function mI(e,t){var r=t||{},n=r.dense?[]:{};e=e.replace(/<!--.*?-->/g,"");var a=e.match(/<table/i);if(!a)throw new Error("Invalid HTML: could not find <table>");var i=e.match(/<\/table/i),o=a.index,s=i&&i.index||e.length,u=cxe(e.slice(o,s),/(:?<tr[^>]*>)/i,"<tr>"),l=-1,c=0,f=0,d=0,p={s:{r:1e7,c:1e7},e:{r:0,c:0}},v=[];for(o=0;o<u.length;++o){var h=u[o].trim(),g=h.slice(0,3).toLowerCase();if(g=="<tr"){if(++l,r.sheetRows&&r.sheetRows<=l){--l;break}c=0;continue}if(!(g!="<td"&&g!="<th")){var m=h.split(/<\/t[dh]>/i);for(s=0;s<m.length;++s){var y=m[s].trim();if(y.match(/<t[dh]/i)){for(var x=y,b=0;x.charAt(0)=="<"&&(b=x.indexOf(">"))>-1;)x=x.slice(b+1);for(var E=0;E<v.length;++E){var S=v[E];S.s.c==c&&S.s.r<l&&l<=S.e.r&&(c=S.e.c+1,E=-1)}var w=lt(y.slice(0,y.indexOf(">")));d=w.colspan?+w.colspan:1,((f=+w.rowspan)>1||d>1)&&v.push({s:{r:l,c},e:{r:l+(f||1)-1,c:c+d-1}});var C=w.t||w["data-t"]||"";if(!x.length){c+=d;continue}if(x=mX(x),p.s.r>l&&(p.s.r=l),p.e.r<l&&(p.e.r=l),p.s.c>c&&(p.s.c=c),p.e.c<c&&(p.e.c=c),!x.length){c+=d;continue}var _={t:"s",v:x};r.raw||!x.trim().length||C=="s"||(x==="TRUE"?_={t:"b",v:!0}:x==="FALSE"?_={t:"b",v:!1}:isNaN(Ro(x))?isNaN(op(x).getDate())||(_={t:"d",v:Kn(x)},r.cellDates||(_={t:"n",v:$a(_.v)}),_.z=r.dateNF||Ct[14]):_={t:"n",v:Ro(x)}),r.dense?(n[l]||(n[l]=[]),n[l][c]=_):n[yt({r:l,c})]=_,c+=d}}}}return n["!ref"]=Jt(p),v.length&&(n["!merges"]=v),n}function jCe(e,t,r,n){for(var a=e["!merges"]||[],i=[],o=t.s.c;o<=t.e.c;++o){for(var s=0,u=0,l=0;l<a.length;++l)if(!(a[l].s.r>r||a[l].s.c>o)&&!(a[l].e.r<r||a[l].e.c<o)){if(a[l].s.r<r||a[l].s.c<o){s=-1;break}s=a[l].e.r-a[l].s.r+1,u=a[l].e.c-a[l].s.c+1;break}if(!(s<0)){var c=yt({r,c:o}),f=n.dense?(e[r]||[])[o]:e[c],d=f&&f.v!=null&&(f.h||GD(f.w||(cu(f),f.w)||""))||"",p={};s>1&&(p.rowspan=s),u>1&&(p.colspan=u),n.editable?d='<span contenteditable="true">'+d+"</span>":f&&(p["data-t"]=f&&f.t||"z",f.v!=null&&(p["data-v"]=f.v),f.z!=null&&(p["data-z"]=f.z),f.l&&(f.l.Target||"#").charAt(0)!="#"&&(d='<a href="'+f.l.Target+'">'+d+"</a>")),p.id=(n.id||"sjs")+"-"+c,i.push(_xe("td",d,p))}}var v="<tr>";return v+i.join("")+"</tr>"}var $Ce='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',UCe="</body></html>";function HCe(e,t){var r=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!r||r.length==0)throw new Error("Invalid HTML: could not find <table>");if(r.length==1)return fc(mI(r[0],t),t);var n=cO();return r.forEach(function(a,i){fO(n,mI(a,t),"Sheet"+(i+1))}),n}function zCe(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function VCe(e,t){var r=t||{},n=r.header!=null?r.header:$Ce,a=r.footer!=null?r.footer:UCe,i=[n],o=Kp(e["!ref"]);r.dense=Array.isArray(e),i.push(zCe(e,o,r));for(var s=o.s.r;s<=o.e.r;++s)i.push(jCe(e,o,s,r));return i.push("</table>"+a),i.join("")}function EY(e,t,r){var n=r||{},a=0,i=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var o=typeof n.origin=="string"?La(n.origin):n.origin;a=o.r,i=o.c}var s=t.getElementsByTagName("tr"),u=Math.min(n.sheetRows||1e7,s.length),l={s:{r:0,c:0},e:{r:a,c:i}};if(e["!ref"]){var c=Kp(e["!ref"]);l.s.r=Math.min(l.s.r,c.s.r),l.s.c=Math.min(l.s.c,c.s.c),l.e.r=Math.max(l.e.r,c.e.r),l.e.c=Math.max(l.e.c,c.e.c),a==-1&&(l.e.r=a=c.e.r+1)}var f=[],d=0,p=e["!rows"]||(e["!rows"]=[]),v=0,h=0,g=0,m=0,y=0,x=0;for(e["!cols"]||(e["!cols"]=[]);v<s.length&&h<u;++v){var b=s[v];if(yI(b)){if(n.display)continue;p[h]={hidden:!0}}var E=b.children;for(g=m=0;g<E.length;++g){var S=E[g];if(!(n.display&&yI(S))){var w=S.hasAttribute("data-v")?S.getAttribute("data-v"):S.hasAttribute("v")?S.getAttribute("v"):mX(S.innerHTML),C=S.getAttribute("data-z")||S.getAttribute("z");for(d=0;d<f.length;++d){var _=f[d];_.s.c==m+i&&_.s.r<h+a&&h+a<=_.e.r&&(m=_.e.c+1-i,d=-1)}x=+S.getAttribute("colspan")||1,((y=+S.getAttribute("rowspan")||1)>1||x>1)&&f.push({s:{r:h+a,c:m+i},e:{r:h+a+(y||1)-1,c:m+i+(x||1)-1}});var O={t:"s",v:w},P=S.getAttribute("data-t")||S.getAttribute("t")||"";w!=null&&(w.length==0?O.t=P||"z":n.raw||w.trim().length==0||P=="s"||(w==="TRUE"?O={t:"b",v:!0}:w==="FALSE"?O={t:"b",v:!1}:isNaN(Ro(w))?isNaN(op(w).getDate())||(O={t:"d",v:Kn(w)},n.cellDates||(O={t:"n",v:$a(O.v)}),O.z=n.dateNF||Ct[14]):O={t:"n",v:Ro(w)})),O.z===void 0&&C!=null&&(O.z=C);var F="",q=S.getElementsByTagName("A");if(q&&q.length)for(var ee=0;ee<q.length&&!(q[ee].hasAttribute("href")&&(F=q[ee].getAttribute("href"),F.charAt(0)!="#"));++ee);F&&F.charAt(0)!="#"&&(O.l={Target:F}),n.dense?(e[h+a]||(e[h+a]=[]),e[h+a][m+i]=O):e[yt({c:m+i,r:h+a})]=O,l.e.c<m+i&&(l.e.c=m+i),m+=x}}++h}return f.length&&(e["!merges"]=(e["!merges"]||[]).concat(f)),l.e.r=Math.max(l.e.r,h-1+a),e["!ref"]=Jt(l),h>=u&&(e["!fullref"]=Jt((l.e.r=s.length-v+h-1+a,l))),e}function SY(e,t){var r=t||{},n=r.dense?[]:{};return EY(n,e,t)}function WCe(e,t){return fc(SY(e,t),t)}function yI(e){var t="",r=GCe(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function GCe(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function KCe(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(n,a){return Array(parseInt(a,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g," ").replace(/<text:line-break\/>/g,`
|
||
`),r=er(t.replace(/<[^>]*>/g,""));return[r]}var xI={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function CY(e,t){var r=t||{},n=KD(e),a=[],i,o,s={name:""},u="",l=0,c,f,d={},p=[],v=r.dense?[]:{},h,g,m={value:""},y="",x=0,b=[],E=-1,S=-1,w={s:{r:1e6,c:1e7},e:{r:0,c:0}},C=0,_={},O=[],P={},F=0,q=0,ee=[],J=1,Z=1,V=[],ie={Names:[]},W={},de=["",""],M=[],A={},N="",I=0,L=!1,Y=!1,Q=0;for(t1.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");h=t1.exec(n);)switch(h[3]=h[3].replace(/_.*$/,"")){case"table":case"工作表":h[1]==="/"?(w.e.c>=w.s.c&&w.e.r>=w.s.r?v["!ref"]=Jt(w):v["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=w.e.r&&(v["!fullref"]=v["!ref"],w.e.r=r.sheetRows-1,v["!ref"]=Jt(w)),O.length&&(v["!merges"]=O),ee.length&&(v["!rows"]=ee),c.name=c.名称||c.name,typeof JSON<"u"&&JSON.stringify(c),p.push(c.name),d[c.name]=v,Y=!1):h[0].charAt(h[0].length-2)!=="/"&&(c=lt(h[0],!1),E=S=-1,w.s.r=w.s.c=1e7,w.e.r=w.e.c=0,v=r.dense?[]:{},O=[],ee=[],Y=!0);break;case"table-row-group":h[1]==="/"?--C:++C;break;case"table-row":case"行":if(h[1]==="/"){E+=J,J=1;break}if(f=lt(h[0],!1),f.行号?E=f.行号-1:E==-1&&(E=0),J=+f["number-rows-repeated"]||1,J<10)for(Q=0;Q<J;++Q)C>0&&(ee[E+Q]={level:C});S=-1;break;case"covered-table-cell":h[1]!=="/"&&++S,r.sheetStubs&&(r.dense?(v[E]||(v[E]=[]),v[E][S]={t:"z"}):v[yt({r:E,c:S})]={t:"z"}),y="",b=[];break;case"table-cell":case"数据":if(h[0].charAt(h[0].length-2)==="/")++S,m=lt(h[0],!1),Z=parseInt(m["number-columns-repeated"]||"1",10),g={t:"z",v:null},m.formula&&r.cellFormula!=!1&&(g.f=pI(er(m.formula))),(m.数据类型||m["value-type"])=="string"&&(g.t="s",g.v=er(m["string-value"]||""),r.dense?(v[E]||(v[E]=[]),v[E][S]=g):v[yt({r:E,c:S})]=g),S+=Z-1;else if(h[1]!=="/"){++S,y="",x=0,b=[],Z=1;var le=J?E+J-1:E;if(S>w.e.c&&(w.e.c=S),S<w.s.c&&(w.s.c=S),E<w.s.r&&(w.s.r=E),le>w.e.r&&(w.e.r=le),m=lt(h[0],!1),M=[],A={},g={t:m.数据类型||m["value-type"],v:null},r.cellFormula)if(m.formula&&(m.formula=er(m.formula)),m["number-matrix-columns-spanned"]&&m["number-matrix-rows-spanned"]&&(F=parseInt(m["number-matrix-rows-spanned"],10)||0,q=parseInt(m["number-matrix-columns-spanned"],10)||0,P={s:{r:E,c:S},e:{r:E+F-1,c:S+q-1}},g.F=Jt(P),V.push([P,g.F])),m.formula)g.f=pI(m.formula);else for(Q=0;Q<V.length;++Q)E>=V[Q][0].s.r&&E<=V[Q][0].e.r&&S>=V[Q][0].s.c&&S<=V[Q][0].e.c&&(g.F=V[Q][1]);switch((m["number-columns-spanned"]||m["number-rows-spanned"])&&(F=parseInt(m["number-rows-spanned"],10)||0,q=parseInt(m["number-columns-spanned"],10)||0,P={s:{r:E,c:S},e:{r:E+F-1,c:S+q-1}},O.push(P)),m["number-columns-repeated"]&&(Z=parseInt(m["number-columns-repeated"],10)),g.t){case"boolean":g.t="b",g.v=Rr(m["boolean-value"]);break;case"float":g.t="n",g.v=parseFloat(m.value);break;case"percentage":g.t="n",g.v=parseFloat(m.value);break;case"currency":g.t="n",g.v=parseFloat(m.value);break;case"date":g.t="d",g.v=Kn(m["date-value"]),r.cellDates||(g.t="n",g.v=$a(g.v)),g.z="m/d/yy";break;case"time":g.t="n",g.v=sxe(m["time-value"])/86400,r.cellDates&&(g.t="d",g.v=qE(g.v)),g.z="HH:MM:SS";break;case"number":g.t="n",g.v=parseFloat(m.数据数值);break;default:if(g.t==="string"||g.t==="text"||!g.t)g.t="s",m["string-value"]!=null&&(y=er(m["string-value"]),b=[]);else throw new Error("Unsupported value type "+g.t)}}else{if(L=!1,g.t==="s"&&(g.v=y||"",b.length&&(g.R=b),L=x==0),W.Target&&(g.l=W),M.length>0&&(g.c=M,M=[]),y&&r.cellText!==!1&&(g.w=y),L&&(g.t="z",delete g.v),(!L||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=E))for(var ve=0;ve<J;++ve){if(Z=parseInt(m["number-columns-repeated"]||"1",10),r.dense)for(v[E+ve]||(v[E+ve]=[]),v[E+ve][S]=ve==0?g:na(g);--Z>0;)v[E+ve][S+Z]=na(g);else for(v[yt({r:E+ve,c:S})]=g;--Z>0;)v[yt({r:E+ve,c:S+Z})]=na(g);w.e.c<=S&&(w.e.c=S)}Z=parseInt(m["number-columns-repeated"]||"1",10),S+=Z-1,Z=0,g={},y="",b=[]}W={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(h[1]==="/"){if((i=a.pop())[0]!==h[3])throw"Bad state: "+i}else h[0].charAt(h[0].length-2)!=="/"&&a.push([h[3],!0]);break;case"annotation":if(h[1]==="/"){if((i=a.pop())[0]!==h[3])throw"Bad state: "+i;A.t=y,b.length&&(A.R=b),A.a=N,M.push(A)}else h[0].charAt(h[0].length-2)!=="/"&&a.push([h[3],!1]);N="",I=0,y="",x=0,b=[];break;case"creator":h[1]==="/"?N=n.slice(I,h.index):I=h.index+h[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(h[1]==="/"){if((i=a.pop())[0]!==h[3])throw"Bad state: "+i}else h[0].charAt(h[0].length-2)!=="/"&&a.push([h[3],!1]);y="",x=0,b=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(h[1]==="/"){if(_[s.name]=u,(i=a.pop())[0]!==h[3])throw"Bad state: "+i}else h[0].charAt(h[0].length-2)!=="/"&&(u="",s=lt(h[0],!1),a.push([h[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(a[a.length-1][0]){case"time-style":case"date-style":o=lt(h[0],!1),u+=xI[h[3]][o.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(a[a.length-1][0]){case"time-style":case"date-style":o=lt(h[0],!1),u+=xI[h[3]][o.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(h[0].slice(-2)==="/>")break;if(h[1]==="/")switch(a[a.length-1][0]){case"number-style":case"date-style":case"time-style":u+=n.slice(l,h.index);break}else l=h.index+h[0].length;break;case"named-range":o=lt(h[0],!1),de=$S(o["cell-range-address"]);var he={Name:o.name,Ref:de[0]+"!"+de[1]};Y&&(he.Sheet=p.length),ie.Names.push(he);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(a[a.length-1][0])>-1)break;if(h[1]==="/"&&(!m||!m["string-value"])){var fe=KCe(n.slice(x,h.index));y=(y.length>0?y+`
|
||
`:"")+fe[0]}else lt(h[0],!1),x=h.index+h[0].length;break;case"s":break;case"database-range":if(h[1]==="/")break;try{de=$S(lt(h[0])["target-range-address"]),d[de[0]]["!autofilter"]={ref:de[1]}}catch(je){}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(h[1]!=="/"){if(W=lt(h[0],!1),!W.href)break;W.Target=er(W.href),delete W.href,W.Target.charAt(0)=="#"&&W.Target.indexOf(".")>-1?(de=$S(W.Target.slice(1)),W.Target="#"+de[0]+"!"+de[1]):W.Target.match(/^\.\.[\\\/]/)&&(W.Target=W.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(h[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(r.WTF)throw new Error(h)}}var z={Sheets:d,SheetNames:p,Workbook:ie};return r.bookSheets&&delete z.Sheets,z}function bI(e,t){t=t||{},Ui(e,"META-INF/manifest.xml")&&lbe(hn(e,"META-INF/manifest.xml"),t);var r=yi(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=CY(_r(r),t);return Ui(e,"meta.xml")&&(n.Props=LX(hn(e,"meta.xml"))),n}function wI(e,t){return CY(e,t)}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function oO(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function s6(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):_r(u0(e))}function u6(e){var t=e.reduce(function(a,i){return a+i.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(a){r.set(a,n),n+=a.length}),r}function EI(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function qCe(e,t){for(var r=(e[t+15]&127)<<7|e[t+14]>>1,n=e[t+14]&1,a=t+13;a>=t;--a)n=n*256+e[a];return(e[t+15]&128?-n:n)*Math.pow(10,r-6176)}function i1(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function Rn(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function xa(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],a=i1(e,r),i=a&7;a=Math.floor(a/8);var o=0,s;if(a==0)break;switch(i){case 0:{for(var u=r[0];e[r[0]++]>=128;);s=e.slice(u,r[0])}break;case 5:o=4,s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 1:o=8,s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 2:o=i1(e,r),s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(a," at offset ").concat(n))}var l={data:s,type:i};t[a]==null?t[a]=[l]:t[a].push(l)}return t}function sO(e,t){return(e==null?void 0:e.map(function(r){return t(r.data)}))||[]}function XCe(e){for(var t,r=[],n=[0];n[0]<e.length;){var a=i1(e,n),i=xa(e.slice(n[0],n[0]+a));n[0]+=a;var o={id:Rn(i[1][0].data),messages:[]};i[2].forEach(function(s){var u=xa(s.data),l=Rn(u[3][0].data);o.messages.push({meta:u,data:e.slice(n[0],n[0]+l)}),n[0]+=l}),(t=i[3])!=null&&t[0]&&(o.merge=Rn(i[3][0].data)>>>0>0),r.push(o)}return r}function YCe(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=i1(t,r),a=[];r[0]<t.length;){var i=t[r[0]]&3;if(i==0){var o=t[r[0]++]>>2;if(o<60)++o;else{var s=o-59;o=t[r[0]],s>1&&(o|=t[r[0]+1]<<8),s>2&&(o|=t[r[0]+2]<<16),s>3&&(o|=t[r[0]+3]<<24),o>>>=0,o++,r[0]+=s}a.push(t.slice(r[0],r[0]+o)),r[0]+=o;continue}else{var u=0,l=0;if(i==1?(l=(t[r[0]]>>2&7)+4,u=(t[r[0]++]&224)<<3,u|=t[r[0]++]):(l=(t[r[0]++]>>2)+1,i==2?(u=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(u=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),a=[u6(a)],u==0)throw new Error("Invalid offset 0");if(u>a[0].length)throw new Error("Invalid offset beyond length");if(l>=u)for(a.push(a[0].slice(-u)),l-=u;l>=a[a.length-1].length;)a.push(a[a.length-1]),l-=a[a.length-1].length;a.push(a[0].slice(-u,-u+l))}}var c=u6(a);if(c.length!=n)throw new Error("Unexpected length: ".concat(c.length," != ").concat(n));return c}function JCe(e){for(var t=[],r=0;r<e.length;){var n=e[r++],a=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(YCe(n,e.slice(r,r+a))),r+=a}if(r!==e.length)throw new Error("data is not a valid framed stream!");return u6(t)}function ZCe(e,t,r,n){var a=oO(e),i=a.getUint32(4,!0),o=(n>1?12:8)+EI(i&(n>1?3470:398))*4,s=-1,u=-1,l=NaN,c=new Date(2001,0,1);i&512&&(s=a.getUint32(o,!0),o+=4),o+=EI(i&(n>1?12288:4096))*4,i&16&&(u=a.getUint32(o,!0),o+=4),i&32&&(l=a.getFloat64(o,!0),o+=8),i&64&&(c.setTime(c.getTime()+a.getFloat64(o,!0)*1e3),o+=8);var f;switch(e[2]){case 0:break;case 2:f={t:"n",v:l};break;case 3:f={t:"s",v:t[u]};break;case 5:f={t:"d",v:c};break;case 6:f={t:"b",v:l>0};break;case 7:f={t:"n",v:l/86400};break;case 8:f={t:"e",v:0};break;case 9:if(s>-1)f={t:"s",v:r[s]};else if(u>-1)f={t:"s",v:t[u]};else if(!isNaN(l))f={t:"n",v:l};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return f}function QCe(e,t,r){var n=oO(e),a=n.getUint32(8,!0),i=12,o=-1,s=-1,u=NaN,l=NaN,c=new Date(2001,0,1);a&1&&(u=qCe(e,i),i+=16),a&2&&(l=n.getFloat64(i,!0),i+=8),a&4&&(c.setTime(c.getTime()+n.getFloat64(i,!0)*1e3),i+=8),a&8&&(s=n.getUint32(i,!0),i+=4),a&16&&(o=n.getUint32(i,!0),i+=4);var f;switch(e[1]){case 0:break;case 2:f={t:"n",v:u};break;case 3:f={t:"s",v:t[s]};break;case 5:f={t:"d",v:c};break;case 6:f={t:"b",v:l>0};break;case 7:f={t:"n",v:l/86400};break;case 8:f={t:"e",v:0};break;case 9:if(o>-1)f={t:"s",v:r[o]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(a&31," : ").concat(e.slice(0,4)));break;case 10:f={t:"n",v:u};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(a&31," : ").concat(e.slice(0,4)))}return f}function e_e(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return ZCe(e,t,r,e[0]);case 5:return QCe(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function wl(e){var t=xa(e);return i1(t[1][0].data)}function SI(e,t){var r=xa(t.data),n=Rn(r[1][0].data),a=r[3],i=[];return(a||[]).forEach(function(o){var s=xa(o.data),u=Rn(s[1][0].data)>>>0;switch(n){case 1:i[u]=s6(s[3][0].data);break;case 8:{var l=e[wl(s[9][0].data)][0],c=xa(l.data),f=e[wl(c[1][0].data)][0],d=Rn(f.meta[1][0].data);if(d!=2001)throw new Error("2000 unexpected reference to ".concat(d));var p=xa(f.data);i[u]=p[3].map(function(v){return s6(v.data)}).join("")}break}}),i}function t_e(e,t){var r,n,a,i,o,s,u,l,c,f,d,p,v,h,g=xa(e),m=Rn(g[1][0].data)>>>0,y=Rn(g[2][0].data)>>>0,x=((n=(r=g[8])==null?void 0:r[0])==null?void 0:n.data)&&Rn(g[8][0].data)>0||!1,b,E;if((i=(a=g[7])==null?void 0:a[0])!=null&&i.data&&t!=0)b=(s=(o=g[7])==null?void 0:o[0])==null?void 0:s.data,E=(l=(u=g[6])==null?void 0:u[0])==null?void 0:l.data;else if((f=(c=g[4])==null?void 0:c[0])!=null&&f.data&&t!=1)b=(p=(d=g[4])==null?void 0:d[0])==null?void 0:p.data,E=(h=(v=g[3])==null?void 0:v[0])==null?void 0:h.data;else throw"NUMBERS Tile missing ".concat(t," cell storage");for(var S=x?4:1,w=oO(b),C=[],_=0;_<b.length/2;++_){var O=w.getUint16(_*2,!0);O<65535&&C.push([_,O])}if(C.length!=y)throw"Expected ".concat(y," cells, found ").concat(C.length);var P=[];for(_=0;_<C.length-1;++_)P[C[_][0]]=E.subarray(C[_][1]*S,C[_+1][1]*S);return C.length>=1&&(P[C[C.length-1][0]]=E.subarray(C[C.length-1][1]*S)),{R:m,cells:P}}function r_e(e,t){var r,n=xa(t.data),a=(r=n==null?void 0:n[7])!=null&&r[0]?Rn(n[7][0].data)>>>0>0?1:0:-1,i=sO(n[5],function(o){return t_e(o,a)});return{nrows:Rn(n[4][0].data)>>>0,data:i.reduce(function(o,s){return o[s.R]||(o[s.R]=[]),s.cells.forEach(function(u,l){if(o[s.R][l])throw new Error("Duplicate cell r=".concat(s.R," c=").concat(l));o[s.R][l]=u}),o},[])}}function n_e(e,t,r){var n,a=xa(t.data),i={s:{r:0,c:0},e:{r:0,c:0}};if(i.e.r=(Rn(a[6][0].data)>>>0)-1,i.e.r<0)throw new Error("Invalid row varint ".concat(a[6][0].data));if(i.e.c=(Rn(a[7][0].data)>>>0)-1,i.e.c<0)throw new Error("Invalid col varint ".concat(a[7][0].data));r["!ref"]=Jt(i);var o=xa(a[4][0].data),s=SI(e,e[wl(o[4][0].data)][0]),u=(n=o[17])!=null&&n[0]?SI(e,e[wl(o[17][0].data)][0]):[],l=xa(o[3][0].data),c=0;l[1].forEach(function(f){var d=xa(f.data),p=e[wl(d[2][0].data)][0],v=Rn(p.meta[1][0].data);if(v!=6002)throw new Error("6001 unexpected reference to ".concat(v));var h=r_e(e,p);h.data.forEach(function(g,m){g.forEach(function(y,x){var b=yt({r:c+m,c:x}),E=e_e(y,s,u);E&&(r[b]=E)})}),c+=h.nrows})}function a_e(e,t){var r=xa(t.data),n={"!ref":"A1"},a=e[wl(r[2][0].data)],i=Rn(a[0].meta[1][0].data);if(i!=6001)throw new Error("6000 unexpected reference to ".concat(i));return n_e(e,a[0],n),n}function i_e(e,t){var r,n=xa(t.data),a={name:(r=n[1])!=null&&r[0]?s6(n[1][0].data):"",sheets:[]},i=sO(n[2],wl);return i.forEach(function(o){e[o].forEach(function(s){var u=Rn(s.meta[1][0].data);u==6e3&&a.sheets.push(a_e(e,s))})}),a}function o_e(e,t){var r=cO(),n=xa(t.data),a=sO(n[1],wl);if(a.forEach(function(i){e[i].forEach(function(o){var s=Rn(o.meta[1][0].data);if(s==2){var u=i_e(e,o);u.sheets.forEach(function(l,c){fO(r,l,c==0?u.name:u.name+"_"+c,!0)})}})}),r.SheetNames.length==0)throw new Error("Empty NUMBERS file");return r}function HS(e){var t,r,n,a,i={},o=[];if(e.FullPaths.forEach(function(u){if(u.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(u){if(u.name.match(/\.iwa$/)){var l;try{l=JCe(u.content)}catch(f){return console.log("?? "+u.content.length+" "+(f.message||f))}var c;try{c=XCe(l)}catch(f){return console.log("## "+(f.message||f))}c.forEach(function(f){i[f.id]=f.messages,o.push(f.id)})}}),!o.length)throw new Error("File has no messages");var s=((a=(n=(r=(t=i==null?void 0:i[1])==null?void 0:t[0])==null?void 0:r.meta)==null?void 0:n[1])==null?void 0:a[0].data)&&Rn(i[1][0].meta[1][0].data)==1&&i[1][0];if(s||o.forEach(function(u){i[u].forEach(function(l){var c=Rn(l.meta[1][0].data)>>>0;if(c==1)if(!s)s=l;else throw new Error("Document has multiple roots")})}),!s)throw new Error("Cannot find Document root");return o_e(i,s)}function s_e(e){return function(r){for(var n=0;n!=e.length;++n){var a=e[n];r[a[0]]===void 0&&(r[a[0]]=a[1]),a[2]==="n"&&(r[a[0]]=Number(r[a[0]]))}}}function uO(e){s_e([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function u_e(e){return bd.WS.indexOf(e)>-1?"sheet":e==bd.CS?"chart":e==bd.DS?"dialog":e==bd.MS?"macro":e&&e.length?e:"sheet"}function l_e(e,t){if(!e)return 0;try{e=t.map(function(n){return n.id||(n.id=n.strRelID),[n.name,e["!id"][n.id].Target,u_e(e["!id"][n.id].Type)]})}catch(r){return null}return!e||e.length===0?null:e}function c_e(e,t,r,n,a,i,o,s,u,l,c,f){try{i[n]=pg(yi(e,r,!0),t);var d=hn(e,t),p;switch(s){case"sheet":p=gCe(d,t,a,u,i[n],l,c,f);break;case"chart":if(p=mCe(d,t,a,u,i[n],l,c,f),!p||!p["!drawel"])break;var v=Wv(p["!drawel"].Target,t),h=r6(v),g=v4e(yi(e,v,!0),pg(yi(e,h,!0),v)),m=Wv(g,v),y=r6(m);p=Q3e(yi(e,m,!0),m,u,pg(yi(e,y,!0),m),l,p);break;case"macro":p=yCe(d,t,a,u,i[n],l,c,f);break;case"dialog":p=xCe(d,t,a,u,i[n],l,c,f);break;default:throw new Error("Unrecognized sheet type "+s)}o[n]=p;var x=[];i&&i[n]&&Es(i[n]).forEach(function(b){var E="";if(i[n][b].Type==bd.CMNT){E=Wv(i[n][b].Target,t);var S=SCe(hn(e,E,!0),E,u);if(!S||!S.length)return;uI(p,S,!1)}i[n][b].Type==bd.TCMNT&&(E=Wv(i[n][b].Target,t),x=x.concat(m4e(hn(e,E,!0),u)))}),x&&x.length&&uI(p,x,!0,u.people||[])}catch(b){if(u.WTF)throw b}}function Ri(e){return e.charAt(0)=="/"?e.slice(1):e}function f_e(e,t){if(sX(),t=t||{},uO(t),Ui(e,"META-INF/manifest.xml")||Ui(e,"objectdata.xml"))return bI(e,t);if(Ui(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof HS<"u"){if(e.FileIndex)return HS(e);var r=Yt.utils.cfb_new();return IN(e).forEach(function(ee){dxe(r,ee,pX(e,ee))}),HS(r)}throw new Error("Unsupported NUMBERS file")}if(!Ui(e,"[Content_Types].xml"))throw Ui(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Ui(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n=IN(e),a=sbe(yi(e,"[Content_Types].xml")),i=!1,o,s;if(a.workbooks.length===0&&(s="xl/workbook.xml",hn(e,s,!0)&&a.workbooks.push(s)),a.workbooks.length===0){if(s="xl/workbook.bin",!hn(e,s,!0))throw new Error("Could not find workbook");a.workbooks.push(s),i=!0}a.workbooks[0].slice(-3)=="bin"&&(i=!0);var u={},l={};if(!t.bookSheets&&!t.bookProps){if(gg=[],a.sst)try{gg=ECe(hn(e,Ri(a.sst)),a.sst,t)}catch(ee){if(t.WTF)throw ee}t.cellStyles&&a.themes.length&&(u=wCe(yi(e,a.themes[0].replace(/^\//,""),!0)||"",a.themes[0],t)),a.style&&(l=bCe(hn(e,Ri(a.style)),a.style,u,t))}a.links.map(function(ee){try{var J=pg(yi(e,r6(Ri(ee))),ee);return _Ce(hn(e,Ri(ee)),J,ee,t)}catch(Z){}});var c=vCe(hn(e,Ri(a.workbooks[0])),a.workbooks[0],t),f={},d="";a.coreprops.length&&(d=hn(e,Ri(a.coreprops[0]),!0),d&&(f=LX(d)),a.extprops.length!==0&&(d=hn(e,Ri(a.extprops[0]),!0),d&&dbe(d,f,t)));var p={};(!t.bookSheets||t.bookProps)&&a.custprops.length!==0&&(d=yi(e,Ri(a.custprops[0]),!0),d&&(p=hbe(d,t)));var v={};if((t.bookSheets||t.bookProps)&&(c.Sheets?o=c.Sheets.map(function(J){return J.name}):f.Worksheets&&f.SheetNames.length>0&&(o=f.SheetNames),t.bookProps&&(v.Props=f,v.Custprops=p),t.bookSheets&&typeof o<"u"&&(v.SheetNames=o),t.bookSheets?v.SheetNames:t.bookProps))return v;o={};var h={};t.bookDeps&&a.calcchain&&(h=CCe(hn(e,Ri(a.calcchain)),a.calcchain));var g=0,m={},y,x;{var b=c.Sheets;f.Worksheets=b.length,f.SheetNames=[];for(var E=0;E!=b.length;++E)f.SheetNames[E]=b[E].name}var S=i?"bin":"xml",w=a.workbooks[0].lastIndexOf("/"),C=(a.workbooks[0].slice(0,w+1)+"_rels/"+a.workbooks[0].slice(w+1)+".rels").replace(/^\//,"");Ui(e,C)||(C="xl/_rels/workbook."+S+".rels");var _=pg(yi(e,C,!0),C.replace(/_rels.*/,"s5s"));(a.metadata||[]).length>=1&&(t.xlmeta=ACe(hn(e,Ri(a.metadata[0])),a.metadata[0],t)),(a.people||[]).length>=1&&(t.people=y4e(hn(e,Ri(a.people[0])),t)),_&&(_=l_e(_,c.Sheets));var O=hn(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(g=0;g!=f.Worksheets;++g){var P="sheet";if(_&&_[g]?(y="xl/"+_[g][1].replace(/[\/]?xl\//,""),Ui(e,y)||(y=_[g][1]),Ui(e,y)||(y=C.replace(/_rels\/.*$/,"")+_[g][1]),P=_[g][2]):(y="xl/worksheets/sheet"+(g+1-O)+"."+S,y=y.replace(/sheet0\./,"sheet.")),x=y.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&t.sheets!=null)switch(typeof t.sheets){case"number":if(g!=t.sheets)continue e;break;case"string":if(f.SheetNames[g].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var F=!1,q=0;q!=t.sheets.length;++q)typeof t.sheets[q]=="number"&&t.sheets[q]==g&&(F=1),typeof t.sheets[q]=="string"&&t.sheets[q].toLowerCase()==f.SheetNames[g].toLowerCase()&&(F=1);if(!F)continue e}}c_e(e,y,x,f.SheetNames[g],g,m,o,P,t,c,u,l)}return v={Directory:a,Workbook:c,Props:f,Custprops:p,Deps:h,Sheets:o,SheetNames:f.SheetNames,Strings:gg,Styles:l,Themes:u,SSF:na(Ct)},t&&t.bookFiles&&(e.files?(v.keys=n,v.files=e.files):(v.keys=[],v.files={},e.FullPaths.forEach(function(ee,J){ee=ee.replace(/^Root Entry[\/]/,""),v.keys.push(ee),v.files[ee]=e.FileIndex[J]}))),t&&t.bookVBA&&(a.vba.length>0?v.vbaraw=hn(e,Ri(a.vba[0]),!0):a.defaults&&a.defaults.bin===E4e&&(v.vbaraw=hn(e,"xl/vbaProject.bin",!0))),v}function d_e(e,t){var r=t||{},n="Workbook",a=Yt.find(e,n);try{if(n="/!DataSpaces/Version",a=Yt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(aEe(a.content),n="/!DataSpaces/DataSpaceMap",a=Yt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var i=oEe(a.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",a=Yt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var o=sEe(a.content);if(o.length!=1||o[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",a=Yt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);lEe(a.content)}catch(u){}if(n="/EncryptionInfo",a=Yt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=cEe(a.content);if(n="/EncryptedPackage",a=Yt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(s[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(s[1],a.content,r.password||"",r);if(s[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(s[1],a.content,r.password||"",r);throw new Error("File is password-protected")}function lO(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=Ai(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function p_e(e,t){return Yt.find(e,"EncryptedPackage")?d_e(e,t):wY(e,t)}function h_e(e,t){var r,n=e,a=t||{};return a.type||(a.type=Kt&&Buffer.isBuffer(e)?"buffer":"base64"),r=hX(n,a),f_e(r,a)}function _Y(e,t){var r=0;e:for(;r<e.length;)switch(e.charCodeAt(r)){case 10:case 13:case 32:++r;break;case 60:return i6(e.slice(r),t);default:break e}return r1.to_workbook(e,t)}function v_e(e,t){var r="",n=lO(e,t);switch(t.type){case"base64":r=Ai(e);break;case"binary":r=e;break;case"buffer":r=e.toString("binary");break;case"array":r=$f(e);break;default:throw new Error("Unrecognized type "+t.type)}return n[0]==239&&n[1]==187&&n[2]==191&&(r=_r(r)),t.type="binary",_Y(r,t)}function g_e(e,t){var r=e;return t.type=="base64"&&(r=Ai(r)),r=nl.utils.decode(1200,r.slice(2),"str"),t.type="binary",_Y(r,t)}function m_e(e){return e.match(/[^\x00-\x7F]/)?Gv(e):e}function zS(e,t,r,n){return n?(r.type="string",r1.to_workbook(e,r)):r1.to_workbook(t,r)}function l6(e,t){Xq();var r=t||{};if(typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer)return l6(new Uint8Array(e),(r=na(r),r.type="array",r));typeof Uint8Array<"u"&&e instanceof Uint8Array&&!r.type&&(r.type=typeof Deno<"u"?"buffer":"array");var n=e,a=[0,0,0,0],i=!1;if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),Fd={},r.dateNF&&(Fd.dateNF=r.dateNF),r.type||(r.type=Kt&&Buffer.isBuffer(e)?"buffer":"base64"),r.type=="file"&&(r.type=Kt?"buffer":"binary",n=ixe(e),typeof Uint8Array<"u"&&!Kt&&(r.type="array")),r.type=="string"&&(i=!0,r.type="binary",r.codepage=65001,n=m_e(e)),r.type=="array"&&typeof Uint8Array<"u"&&e instanceof Uint8Array&&typeof ArrayBuffer<"u"){var o=new ArrayBuffer(3),s=new Uint8Array(o);if(s.foo="bar",!s.foo)return r=na(r),r.type="array",l6(UD(n),r)}switch((a=lO(n,r))[0]){case 208:if(a[1]===207&&a[2]===17&&a[3]===224&&a[4]===161&&a[5]===177&&a[6]===26&&a[7]===225)return p_e(Yt.read(n,r),r);break;case 9:if(a[1]<=8)return wY(n,r);break;case 60:return i6(n,r);case 73:if(a[1]===73&&a[2]===42&&a[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(a[1]===68)return Wwe(n,r);break;case 84:if(a[1]===65&&a[2]===66&&a[3]===76)return zwe.to_workbook(n,r);break;case 80:return a[1]===75&&a[2]<9&&a[3]<9?h_e(n,r):zS(e,n,r,i);case 239:return a[3]===60?i6(n,r):zS(e,n,r,i);case 255:if(a[1]===254)return g_e(n,r);if(a[1]===0&&a[2]===2&&a[3]===0)return vg.to_workbook(n,r);break;case 0:if(a[1]===0&&(a[2]>=2&&a[3]===0||a[2]===0&&(a[3]===8||a[3]===9)))return vg.to_workbook(n,r);break;case 3:case 131:case 139:case 140:return sI.to_workbook(n,r);case 123:if(a[1]===92&&a[2]===114&&a[3]===116)return EEe.to_workbook(n,r);break;case 10:case 13:case 32:return v_e(n,r);case 137:if(a[1]===80&&a[2]===78&&a[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return Uwe.indexOf(a[0])>-1&&a[2]<=12&&a[3]<=31?sI.to_workbook(n,r):zS(e,n,r,i)}function y_e(e,t,r,n,a,i,o,s){var u=aa(r),l=s.defval,c=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),f=!0,d=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:r,enumerable:!1})}catch(g){d.__rowNum__=r}else d.__rowNum__=r;if(!o||e[r])for(var p=t.s.c;p<=t.e.c;++p){var v=o?e[r][p]:e[n[p]+u];if(v===void 0||v.t===void 0){if(l===void 0)continue;i[p]!=null&&(d[i[p]]=l);continue}var h=v.v;switch(v.t){case"z":if(h==null)break;continue;case"e":h=h==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+v.t)}if(i[p]!=null){if(h==null)if(v.t=="e"&&h===null)d[i[p]]=null;else if(l!==void 0)d[i[p]]=l;else if(c&&h===null)d[i[p]]=null;else continue;else d[i[p]]=c&&(v.t!=="n"||v.t==="n"&&s.rawNumbers!==!1)?h:cu(v,h,s);h!=null&&(f=!1)}}return{row:d,isempty:f}}function c6(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,a=1,i=[],o=0,s="",u={s:{r:0,c:0},e:{r:0,c:0}},l=t||{},c=l.range!=null?l.range:e["!ref"];switch(l.header===1?n=1:l.header==="A"?n=2:Array.isArray(l.header)?n=3:l.header==null&&(n=0),typeof c){case"string":u=Zr(c);break;case"number":u=Zr(e["!ref"]),u.s.r=c;break;default:u=c}n>0&&(a=0);var f=aa(u.s.r),d=[],p=[],v=0,h=0,g=Array.isArray(e),m=u.s.r,y=0,x={};g&&!e[m]&&(e[m]=[]);var b=l.skipHidden&&e["!cols"]||[],E=l.skipHidden&&e["!rows"]||[];for(y=u.s.c;y<=u.e.c;++y)if(!(b[y]||{}).hidden)switch(d[y]=Bn(y),r=g?e[m][y]:e[d[y]+f],n){case 1:i[y]=y-u.s.c;break;case 2:i[y]=d[y];break;case 3:i[y]=l.header[y-u.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=o=cu(r,null,l),h=x[o]||0,!h)x[o]=1;else{do s=o+"_"+h++;while(x[s]);x[o]=h,x[s]=1}i[y]=s}for(m=u.s.r+a;m<=u.e.r;++m)if(!(E[m]||{}).hidden){var S=y_e(e,u,m,d,n,i,g,l);(S.isempty===!1||(n===1?l.blankrows!==!1:l.blankrows))&&(p[v++]=S.row)}return p.length=v,p}var CI=/"/g;function x_e(e,t,r,n,a,i,o,s){for(var u=!0,l=[],c="",f=aa(r),d=t.s.c;d<=t.e.c;++d)if(n[d]){var p=s.dense?(e[r]||[])[d]:e[n[d]+f];if(p==null)c="";else if(p.v!=null){u=!1,c=""+(s.rawNumbers&&p.t=="n"?p.v:cu(p,null,s));for(var v=0,h=0;v!==c.length;++v)if((h=c.charCodeAt(v))===a||h===i||h===34||s.forceQuotes){c='"'+c.replace(CI,'""')+'"';break}c=="ID"&&(c='"ID"')}else p.f!=null&&!p.F?(u=!1,c="="+p.f,c.indexOf(",")>=0&&(c='"'+c.replace(CI,'""')+'"')):c="";l.push(c)}return s.blankrows===!1&&u?null:l.join(o)}function AY(e,t){var r=[],n=t==null?{}:t;if(e==null||e["!ref"]==null)return"";var a=Zr(e["!ref"]),i=n.FS!==void 0?n.FS:",",o=i.charCodeAt(0),s=n.RS!==void 0?n.RS:`
|
||
`,u=s.charCodeAt(0),l=new RegExp((i=="|"?"\\|":i)+"+$"),c="",f=[];n.dense=Array.isArray(e);for(var d=n.skipHidden&&e["!cols"]||[],p=n.skipHidden&&e["!rows"]||[],v=a.s.c;v<=a.e.c;++v)(d[v]||{}).hidden||(f[v]=Bn(v));for(var h=0,g=a.s.r;g<=a.e.r;++g)(p[g]||{}).hidden||(c=x_e(e,a,g,f,o,u,i,n),c!=null&&(n.strip&&(c=c.replace(l,"")),(c||n.blankrows!==!1)&&r.push((h++?s:"")+c)));return delete n.dense,r.join("")}function b_e(e,t){t||(t={}),t.FS=" ",t.RS=`
|
||
`;var r=AY(e,t);return r}function w_e(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var a=Zr(e["!ref"]),i="",o=[],s,u=[],l=Array.isArray(e);for(s=a.s.c;s<=a.e.c;++s)o[s]=Bn(s);for(var c=a.s.r;c<=a.e.r;++c)for(i=aa(c),s=a.s.c;s<=a.e.c;++s)if(t=o[s]+i,r=l?(e[c]||[])[s]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}u[u.length]=t+"="+n}return u}function kY(e,t,r){var n=r||{},a=+!n.skipHeader,i=e||{},o=0,s=0;if(i&&n.origin!=null)if(typeof n.origin=="number")o=n.origin;else{var u=typeof n.origin=="string"?La(n.origin):n.origin;o=u.r,s=u.c}var l,c={s:{c:0,r:0},e:{c:s,r:o+t.length-1+a}};if(i["!ref"]){var f=Zr(i["!ref"]);c.e.c=Math.max(c.e.c,f.e.c),c.e.r=Math.max(c.e.r,f.e.r),o==-1&&(o=f.e.r+1,c.e.r=o+t.length-1+a)}else o==-1&&(o=0,c.e.r=t.length-1+a);var d=n.header||[],p=0;t.forEach(function(h,g){Es(h).forEach(function(m){(p=d.indexOf(m))==-1&&(d[p=d.length]=m);var y=h[m],x="z",b="",E=yt({c:s+p,r:o+g+a});l=o1(i,E),y&&typeof y=="object"&&!(y instanceof Date)?i[E]=y:(typeof y=="number"?x="n":typeof y=="boolean"?x="b":typeof y=="string"?x="s":y instanceof Date?(x="d",n.cellDates||(x="n",y=$a(y)),b=n.dateNF||Ct[14]):y===null&&n.nullError&&(x="e",y=0),l?(l.t=x,l.v=y,delete l.w,delete l.R,b&&(l.z=b)):i[E]=l={t:x,v:y},b&&(l.z=b))})}),c.e.c=Math.max(c.e.c,s+d.length-1);var v=aa(o);if(a)for(p=0;p<d.length;++p)i[Bn(p+s)+v]={t:"s",v:d[p]};return i["!ref"]=Jt(c),i}function E_e(e,t){return kY(null,e,t)}function o1(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=La(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?o1(e,yt(t)):o1(e,yt({r:t,c:r||0}))}function S_e(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function cO(){return{SheetNames:[],Sheets:{}}}function fO(e,t,r,n){var a=1;if(!r)for(;a<=65535&&e.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var o=i&&i[1]||r;for(++a;a<=65535&&e.SheetNames.indexOf(r=o+a)!=-1;++a);}if(sCe(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function C_e(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=S_e(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function __e(e,t){return e.z=t,e}function TY(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function A_e(e,t,r){return TY(e,"#"+t,r)}function k_e(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function T_e(e,t,r,n){for(var a=typeof t!="string"?t:Zr(t),i=typeof t=="string"?t:Jt(t),o=a.s.r;o<=a.e.r;++o)for(var s=a.s.c;s<=a.e.c;++s){var u=o1(e,o,s);u.t="n",u.F=i,delete u.v,o==a.s.r&&s==a.s.c&&(u.f=r,n&&(u.D=!0))}return e}var _I={encode_col:Bn,encode_row:aa,encode_cell:yt,encode_range:Jt,decode_col:YD,decode_row:XD,split_cell:$xe,decode_cell:La,decode_range:Kp,format_cell:cu,sheet_add_aoa:BX,sheet_add_json:kY,sheet_add_dom:EY,aoa_to_sheet:qp,json_to_sheet:E_e,table_to_sheet:SY,table_to_book:WCe,sheet_to_csv:AY,sheet_to_txt:b_e,sheet_to_json:c6,sheet_to_html:VCe,sheet_to_formulae:w_e,sheet_to_row_object_array:c6,sheet_get_cell:o1,book_new:cO,book_append_sheet:fO,book_set_sheet_visibility:C_e,cell_set_number_format:__e,cell_set_hyperlink:TY,cell_set_internal_link:A_e,cell_add_comment:k_e,sheet_set_array_formula:T_e,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};let D_e=e=>new Promise(t=>{let r=new FileReader;r.readAsBinaryString(e),r.onload=n=>{var a;t((a=n.target)==null?void 0:a.result)}}),O_e=(e,t)=>{let r=[];return e.forEach(n=>{let a={};for(let i in t){if(!t.hasOwnProperty(i))break;let o=t[i],s=o.text,u=o.type;o=n[s]||"",u==="string"&&(o=String(o)),u==="number"&&(o=Number(o)),a[i]=o}r.push(a)}),r};async function ket(e,t,r,n){let a=await D_e(e);return new Promise(i=>{let o=l6(a,{type:"binary"}),s=o.Sheets[o.SheetNames[0]],u=_I.sheet_to_json(s,{header:1});if(JSON.stringify(r)!==JSON.stringify(u[0])){Ya.error("文件格式不正确"),n==null||n.close();return}for(let f=0;f<u.length;f++){const d=u[f];let p=!0;for(const v of d)if(v!==null&&v!==""){p=!1;break}if(p){Ya.error(`第${f+1}行是空行`),n==null||n.close();return}}let l=_I.sheet_to_json(s),c=O_e(l,t);i(c)})}function F_e(e){return window.btoa(window.encodeURIComponent(e||""))}function B_e(e){return window.decodeURIComponent(window.atob(e||""))}function DY(e){let t=Array.isArray(e)?[]:{};for(let r in e)if(e.hasOwnProperty(r))if(typeof e[r]=="object"){if(e[r]===null){t[r]=null;continue}t[r]=DY(e[r])}else t[r]=e[r];return t}var mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function P_e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function p0(e){var t={exports:{}};return e(t,t.exports),t.exports}var ku,dx,$y=function(e){return e&&e.Math==Math&&e},bt=$y(typeof globalThis=="object"&&globalThis)||$y(typeof window=="object"&&window)||$y(typeof self=="object"&&self)||$y(typeof mr=="object"&&mr)||function(){return this}()||Function("return this")(),dO=Function.prototype,AI=dO.apply,N_e=dO.bind,kI=dO.call,OY=typeof Reflect=="object"&&Reflect.apply||(N_e?kI.bind(AI):function(){return kI.apply(AI,arguments)}),FY=Function.prototype,f6=FY.bind,d6=FY.call,I_e=f6&&f6.bind(d6),kr=f6?function(e){return e&&I_e(d6,e)}:function(e){return e&&function(){return d6.apply(e,arguments)}},qn=function(e){return typeof e=="function"},ii=function(e){try{return!!e()}catch(t){return!0}},ti=!ii(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Eh=Function.prototype.call,Ja=Eh.bind?Eh.bind(Eh):function(){return Eh.apply(Eh,arguments)},TI={}.propertyIsEnumerable,DI=Object.getOwnPropertyDescriptor,R_e=DI&&!TI.call({1:2},1)?function(e){var t=DI(this,e);return!!t&&t.enumerable}:TI,pO={f:R_e},Lo=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},L_e=kr({}.toString),M_e=kr("".slice),df=function(e){return M_e(L_e(e),8,-1)},VS=bt.Object,j_e=kr("".split),BY=ii(function(){return!VS("z").propertyIsEnumerable(0)})?function(e){return df(e)=="String"?j_e(e,""):VS(e)}:VS,$_e=bt.TypeError,hO=function(e){if(e==null)throw $_e("Can't call method on "+e);return e},Ns=function(e){return BY(hO(e))},xi=function(e){return typeof e=="object"?e!==null:qn(e)},mi={},OI=function(e){return qn(e)?e:void 0},Xp=function(e,t){return arguments.length<2?OI(mi[e])||OI(bt[e]):mi[e]&&mi[e][t]||bt[e]&&bt[e][t]},s1=kr({}.isPrototypeOf),WS=Xp("navigator","userAgent")||"",FI=bt.process,BI=bt.Deno,PI=FI&&FI.versions||BI&&BI.version,NI=PI&&PI.v8;NI&&(dx=(ku=NI.split("."))[0]>0&&ku[0]<4?1:+(ku[0]+ku[1])),!dx&&WS&&(!(ku=WS.match(/Edge\/(\d+)/))||ku[1]>=74)&&(ku=WS.match(/Chrome\/(\d+)/))&&(dx=+ku[1]);var Uy,bb=dx,ts=!!Object.getOwnPropertySymbols&&!ii(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bb&&bb<41}),vO=ts&&!Symbol.sham&&typeof Symbol.iterator=="symbol",U_e=bt.Object,Bd=vO?function(e){return typeof e=="symbol"}:function(e){var t=Xp("Symbol");return qn(t)&&s1(t.prototype,U_e(e))},H_e=bt.String,p6=function(e){try{return H_e(e)}catch(t){return"Object"}},z_e=bt.TypeError,gO=function(e){if(qn(e))return e;throw z_e(p6(e)+" is not a function")},wb=function(e,t){var r=e[t];return r==null?void 0:gO(r)},V_e=bt.TypeError,W_e=Object.defineProperty,El=bt["__core-js_shared__"]||function(e,t){try{W_e(bt,e,{value:t,configurable:!0,writable:!0})}catch(r){bt[e]=t}return t}("__core-js_shared__",{}),h0=p0(function(e){(e.exports=function(t,r){return El[t]||(El[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),G_e=bt.Object,bm=function(e){return G_e(hO(e))},K_e=kr({}.hasOwnProperty),Ut=Object.hasOwn||function(e,t){return K_e(bm(e),t)},q_e=0,X_e=Math.random(),Y_e=kr(1 .toString),Eb=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Y_e(++q_e+X_e,36)},Sh=h0("wks"),pf=bt.Symbol,II=pf&&pf.for,J_e=vO?pf:pf&&pf.withoutSetter||Eb,ka=function(e){if(!Ut(Sh,e)||!ts&&typeof Sh[e]!="string"){var t="Symbol."+e;ts&&Ut(pf,e)?Sh[e]=pf[e]:Sh[e]=vO&&II?II(t):J_e(t)}return Sh[e]},Z_e=bt.TypeError,Q_e=ka("toPrimitive"),eAe=function(e,t){if(!xi(e)||Bd(e))return e;var r,n=wb(e,Q_e);if(n){if(t===void 0&&(t="default"),r=Ja(n,e,t),!xi(r)||Bd(r))return r;throw Z_e("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(a,i){var o,s;if(i==="string"&&qn(o=a.toString)&&!xi(s=Ja(o,a))||qn(o=a.valueOf)&&!xi(s=Ja(o,a))||i!=="string"&&qn(o=a.toString)&&!xi(s=Ja(o,a)))return s;throw V_e("Can't convert object to primitive value")}(e,t)},Yp=function(e){var t=eAe(e,"string");return Bd(t)?t:t+""},h6=bt.document,tAe=xi(h6)&&xi(h6.createElement),PY=function(e){return tAe?h6.createElement(e):{}},NY=!ti&&!ii(function(){return Object.defineProperty(PY("div"),"a",{get:function(){return 7}}).a!=7}),RI=Object.getOwnPropertyDescriptor,rAe=ti?RI:function(e,t){if(e=Ns(e),t=Yp(t),NY)try{return RI(e,t)}catch(r){}if(Ut(e,t))return Lo(!Ja(pO.f,e,t),e[t])},ZE={f:rAe},nAe=/#|\.prototype\./,wm=function(e,t){var r=iAe[aAe(e)];return r==sAe||r!=oAe&&(qn(t)?ii(t):!!t)},aAe=wm.normalize=function(e){return String(e).replace(nAe,".").toLowerCase()},iAe=wm.data={},oAe=wm.NATIVE="N",sAe=wm.POLYFILL="P",uAe=wm,LI=kr(kr.bind),mO=function(e,t){return gO(e),t===void 0?e:LI?LI(e,t):function(){return e.apply(t,arguments)}},lAe=bt.String,cAe=bt.TypeError,ki=function(e){if(xi(e))return e;throw cAe(lAe(e)+" is not an object")},fAe=bt.TypeError,MI=Object.defineProperty,dAe=ti?MI:function(e,t,r){if(ki(e),t=Yp(t),ki(r),NY)try{return MI(e,t,r)}catch(n){}if("get"in r||"set"in r)throw fAe("Accessors not supported");return"value"in r&&(e[t]=r.value),e},dc={f:dAe},Ia=ti?function(e,t,r){return dc.f(e,t,Lo(1,r))}:function(e,t,r){return e[t]=r,e},pAe=ZE.f,hAe=function(e){var t=function(r,n,a){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,a)}return OY(e,this,arguments)};return t.prototype=e.prototype,t},Ws=function(e,t){var r,n,a,i,o,s,u,l,c=e.target,f=e.global,d=e.stat,p=e.proto,v=f?bt:d?bt[c]:(bt[c]||{}).prototype,h=f?mi:mi[c]||Ia(mi,c,{})[c],g=h.prototype;for(a in t)r=!uAe(f?a:c+(d?".":"#")+a,e.forced)&&v&&Ut(v,a),o=h[a],r&&(s=e.noTargetGet?(l=pAe(v,a))&&l.value:v[a]),i=r&&s?s:t[a],r&&typeof o==typeof i||(u=e.bind&&r?mO(i,bt):e.wrap&&r?hAe(i):p&&qn(i)?kr(i):i,(e.sham||i&&i.sham||o&&o.sham)&&Ia(u,"sham",!0),Ia(h,a,u),p&&(Ut(mi,n=c+"Prototype")||Ia(mi,n,{}),Ia(mi[n],a,i),e.real&&g&&!g[a]&&Ia(g,a,i)))},jI=h0("keys"),QE=function(e){return jI[e]||(jI[e]=Eb(e))},vAe=!ii(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),$I=QE("IE_PROTO"),v6=bt.Object,gAe=v6.prototype,Sb=vAe?v6.getPrototypeOf:function(e){var t=bm(e);if(Ut(t,$I))return t[$I];var r=t.constructor;return qn(r)&&t instanceof r?r.prototype:t instanceof v6?gAe:null},mAe=bt.String,yAe=bt.TypeError,Cb=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=kr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(n){}return function(n,a){return ki(n),function(i){if(typeof i=="object"||qn(i))return i;throw yAe("Can't set "+mAe(i)+" as a prototype")}(a),t?e(n,a):n.__proto__=a,n}}():void 0),xAe=Math.ceil,bAe=Math.floor,yO=function(e){var t=+e;return t!=t||t===0?0:(t>0?bAe:xAe)(t)},wAe=Math.max,EAe=Math.min,g6=function(e,t){var r=yO(e);return r<0?wAe(r+t,0):EAe(r,t)},SAe=Math.min,Em=function(e){return(t=e.length)>0?SAe(yO(t),9007199254740991):0;var t},UI=function(e){return function(t,r,n){var a,i=Ns(t),o=Em(i),s=g6(n,o);if(e&&r!=r){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},CAe={includes:UI(!0),indexOf:UI(!1)},Sm={},_Ae=CAe.indexOf,HI=kr([].push),IY=function(e,t){var r,n=Ns(e),a=0,i=[];for(r in n)!Ut(Sm,r)&&Ut(n,r)&&HI(i,r);for(;t.length>a;)Ut(n,r=t[a++])&&(~_Ae(i,r)||HI(i,r));return i},_b=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],AAe=_b.concat("length","prototype"),kAe=Object.getOwnPropertyNames||function(e){return IY(e,AAe)},xO={f:kAe},px={f:Object.getOwnPropertySymbols},TAe=kr([].concat),DAe=Xp("Reflect","ownKeys")||function(e){var t=xO.f(ki(e)),r=px.f;return r?TAe(t,r(e)):t},bO=Object.keys||function(e){return IY(e,_b)},OAe=ti?Object.defineProperties:function(e,t){ki(e);for(var r,n=Ns(t),a=bO(t),i=a.length,o=0;i>o;)dc.f(e,r=a[o++],n[r]);return e},FAe=Xp("document","documentElement"),RY=QE("IE_PROTO"),GS=function(){},LY=function(e){return"<script>"+e+"<\/script>"},zI=function(e){e.write(LY("")),e.close();var t=e.parentWindow.Object;return e=null,t},hx=function(){try{Uy=new ActiveXObject("htmlfile")}catch(n){}var e,t;hx=typeof document<"u"?document.domain&&Uy?zI(Uy):((t=PY("iframe")).style.display="none",FAe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(LY("document.F=Object")),e.close(),e.F):zI(Uy);for(var r=_b.length;r--;)delete hx.prototype[_b[r]];return hx()};Sm[RY]=!0;var fu=Object.create||function(e,t){var r;return e!==null?(GS.prototype=ki(e),r=new GS,GS.prototype=null,r[RY]=e):r=hx(),t===void 0?r:OAe(r,t)},m6=function(e,t,r){var n=Yp(t);n in e?dc.f(e,n,Lo(0,r)):e[n]=r},BAe=bt.Array,PAe=Math.max,MY=function(e,t,r){for(var n=Em(e),a=g6(t,n),i=g6(r===void 0?n:r,n),o=BAe(PAe(i-a,0)),s=0;a<i;a++,s++)m6(o,s,e[a]);return o.length=s,o},NAe=kr("".replace),IAe=kr("".split),RAe=kr([].join),y6=String(Error("zxcasd").stack),jY=/\n\s*at [^:]*:[^\n]*/,LAe=jY.test(y6),MAe=/@[^\n]*\n/.test(y6)&&!/zxcasd/.test(y6),jAe=function(e,t){if(typeof e!="string")return e;if(LAe)for(;t--;)e=NAe(e,jY,"");else if(MAe)return RAe(MY(IAe(e,`
|
||
`),t),`
|
||
`);return e},$Ae=function(e,t){xi(t)&&"cause"in t&&Ia(e,"cause",t.cause)},nu={},UAe=ka("iterator"),HAe=Array.prototype,$Y={};$Y[ka("toStringTag")]="z";var wO=String($Y)==="[object z]",zAe=ka("toStringTag"),VAe=bt.Object,WAe=df(function(){return arguments}())=="Arguments",Cm=wO?df:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(a,i){try{return a[i]}catch(o){}}(t=VAe(e),zAe))=="string"?r:WAe?df(t):(n=df(t))=="Object"&&qn(t.callee)?"Arguments":n},GAe=ka("iterator"),VI=function(e){if(e!=null)return wb(e,GAe)||wb(e,"@@iterator")||nu[Cm(e)]},KAe=bt.TypeError,WI=function(e,t,r){var n,a;ki(e);try{if(!(n=wb(e,"return"))){if(t==="throw")throw r;return r}n=Ja(n,e)}catch(i){a=!0,n=i}if(t==="throw")throw r;if(a)throw n;return ki(n),r},qAe=bt.TypeError,vx=function(e,t){this.stopped=e,this.result=t},GI=vx.prototype,XAe=function(e,t,r){var n,a,i,o,s,u,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=mO(t,c),h=function(m){return n&&WI(n,"normal",m),new vx(!0,m)},g=function(m){return f?(ki(m),p?v(m[0],m[1],h):v(m[0],m[1])):p?v(m,h):v(m)};if(d)n=e;else{if(!(a=VI(e)))throw qAe(p6(e)+" is not iterable");if(function(m){return m!==void 0&&(nu.Array===m||HAe[UAe]===m)}(a)){for(i=0,o=Em(e);o>i;i++)if((s=g(e[i]))&&s1(GI,s))return s;return new vx(!1)}n=function(m,y){var x=arguments.length<2?VI(m):y;if(gO(x))return ki(Ja(x,m));throw KAe(p6(m)+" is not iterable")}(e,a)}for(u=n.next;!(l=Ja(u,n)).done;){try{s=g(l.value)}catch(m){WI(n,"throw",m)}if(typeof s=="object"&&s&&s1(GI,s))return s}return new vx(!1)},YAe=bt.String,u1=function(e){if(Cm(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return YAe(e)},JAe=function(e,t){return e===void 0?arguments.length<2?"":t:u1(e)},ZAe=!ii(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Lo(1,7)),e.stack!==7)}),QAe=ka("toStringTag"),Ab=bt.Error,e8e=[].push,l1=function(e,t){var r,n=arguments.length>2?arguments[2]:void 0,a=s1(KS,this);Cb?r=Cb(new Ab(void 0),a?Sb(this):KS):(r=a?this:fu(KS),Ia(r,QAe,"Error")),Ia(r,"message",JAe(t,"")),ZAe&&Ia(r,"stack",jAe(r.stack,1)),$Ae(r,n);var i=[];return XAe(e,e8e,{that:i}),Ia(r,"errors",i),r};Cb?Cb(l1,Ab):function(e,t){for(var r=DAe(t),n=dc.f,a=ZE.f,i=0;i<r.length;i++){var o=r[i];Ut(e,o)||n(e,o,a(t,o))}}(l1,Ab);var KS=l1.prototype=fu(Ab.prototype,{constructor:Lo(1,l1),message:Lo(1,""),name:Lo(1,"AggregateError")});Ws({global:!0},{AggregateError:l1});var t8e=kr(Function.toString);qn(El.inspectSource)||(El.inspectSource=function(e){return t8e(e)});var kb,xg,Tb,UY=El.inspectSource,KI=bt.WeakMap,r8e=qn(KI)&&/native code/.test(UY(KI)),x6=bt.TypeError,n8e=bt.WeakMap;if(r8e||El.state){var Sc=El.state||(El.state=new n8e),a8e=kr(Sc.get),qI=kr(Sc.has),i8e=kr(Sc.set);kb=function(e,t){if(qI(Sc,e))throw new x6("Object already initialized");return t.facade=e,i8e(Sc,e,t),t},xg=function(e){return a8e(Sc,e)||{}},Tb=function(e){return qI(Sc,e)}}else{var F0=QE("state");Sm[F0]=!0,kb=function(e,t){if(Ut(e,F0))throw new x6("Object already initialized");return t.facade=e,Ia(e,F0,t),t},xg=function(e){return Ut(e,F0)?e[F0]:{}},Tb=function(e){return Ut(e,F0)}}var pl,XI,YI,Jp={set:kb,get:xg,has:Tb,enforce:function(e){return Tb(e)?xg(e):kb(e,{})},getterFor:function(e){return function(t){var r;if(!xi(t)||(r=xg(t)).type!==e)throw x6("Incompatible receiver, "+e+" required");return r}}},HY=Function.prototype,o8e=ti&&Object.getOwnPropertyDescriptor,qS=Ut(HY,"name"),s8e={EXISTS:qS,PROPER:qS&&function(){}.name==="something",CONFIGURABLE:qS&&(!ti||ti&&o8e(HY,"name").configurable)},up=function(e,t,r,n){n&&n.enumerable?e[t]=r:Ia(e,t,r)},b6=ka("iterator"),zY=!1;[].keys&&("next"in(YI=[].keys())?(XI=Sb(Sb(YI)))!==Object.prototype&&(pl=XI):zY=!0);var u8e=pl==null||ii(function(){var e={};return pl[b6].call(e)!==e});pl=u8e?{}:fu(pl),qn(pl[b6])||up(pl,b6,function(){return this});var VY={IteratorPrototype:pl,BUGGY_SAFARI_ITERATORS:zY},l8e=wO?{}.toString:function(){return"[object "+Cm(this)+"]"},c8e=dc.f,JI=ka("toStringTag"),Db=function(e,t,r,n){if(e){var a=r?e:e.prototype;Ut(a,JI)||c8e(a,JI,{configurable:!0,value:t}),n&&!wO&&Ia(a,"toString",l8e)}},f8e=VY.IteratorPrototype,d8e=function(){return this},p8e=s8e.PROPER,Hy=VY.BUGGY_SAFARI_ITERATORS,XS=ka("iterator"),h8e=function(){return this},WY=function(e,t,r,n,a,i,o){(function(m,y,x,b){var E=y+" Iterator";m.prototype=fu(f8e,{next:Lo(+!b,x)}),Db(m,E,!1,!0),nu[E]=d8e})(r,t,n);var s,u,l,c=function(m){if(m===a&&h)return h;if(!Hy&&m in p)return p[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,p=e.prototype,v=p[XS]||p["@@iterator"]||a&&p[a],h=!Hy&&v||c(a),g=t=="Array"&&p.entries||v;if(g&&(s=Sb(g.call(new e)))!==Object.prototype&&s.next&&(Db(s,f,!0,!0),nu[f]=h8e),p8e&&a=="values"&&v&&v.name!=="values"&&(d=!0,h=function(){return Ja(v,this)}),a)if(u={values:c("values"),keys:i?h:c("keys"),entries:c("entries")},o)for(l in u)(Hy||d||!(l in p))&&up(p,l,u[l]);else Ws({target:t,proto:!0,forced:Hy||d},u);return o&&p[XS]!==h&&up(p,XS,h,{name:a}),nu[t]=h,u},v8e=Jp.set,g8e=Jp.getterFor("Array Iterator");WY(Array,"Array",function(e,t){v8e(this,{type:"Array Iterator",target:Ns(e),index:0,kind:t})},function(){var e=g8e(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),nu.Arguments=nu.Array;var m8e=kr("".charAt),ZI=kr("".charCodeAt),y8e=kr("".slice),QI=function(e){return function(t,r){var n,a,i=u1(hO(t)),o=yO(r),s=i.length;return o<0||o>=s?e?"":void 0:(n=ZI(i,o))<55296||n>56319||o+1===s||(a=ZI(i,o+1))<56320||a>57343?e?m8e(i,o):n:e?y8e(i,o,o+2):a-56320+(n-55296<<10)+65536}},x8e={codeAt:QI(!1),charAt:QI(!0)}.charAt,b8e=Jp.set,w8e=Jp.getterFor("String Iterator");WY(String,"String",function(e){b8e(this,{type:"String Iterator",string:u1(e),index:0})},function(){var e,t=w8e(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=x8e(r,n),t.index+=e.length,{value:e,done:!1})});var E8e=mi.AggregateError,eR=ka("toStringTag");for(var YS in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var tR=bt[YS],JS=tR&&tR.prototype;JS&&Cm(JS)!==eR&&Ia(JS,eR,YS),nu[YS]=nu.Array}var Tu,gx,S8e=E8e,zy=function(e){return e&&e.Math==Math&&e},dt=zy(typeof globalThis=="object"&&globalThis)||zy(typeof window=="object"&&window)||zy(typeof self=="object"&&self)||zy(typeof mr=="object"&&mr)||function(){return this}()||Function("return this")(),Yn=function(e){try{return!!e()}catch(t){return!0}},Ss=!Yn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ch=Function.prototype.call,Gn=Ch.bind?Ch.bind(Ch):function(){return Ch.apply(Ch,arguments)},rR={}.propertyIsEnumerable,nR=Object.getOwnPropertyDescriptor,C8e=nR&&!rR.call({1:2},1)?function(e){var t=nR(this,e);return!!t&&t.enumerable}:rR,_8e={f:C8e},Sl=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},GY=Function.prototype,w6=GY.bind,E6=GY.call,A8e=w6&&w6.bind(E6),hr=w6?function(e){return e&&A8e(E6,e)}:function(e){return e&&function(){return E6.apply(e,arguments)}},k8e=hr({}.toString),T8e=hr("".slice),hf=function(e){return T8e(k8e(e),8,-1)},ZS=dt.Object,D8e=hr("".split),KY=Yn(function(){return!ZS("z").propertyIsEnumerable(0)})?function(e){return hf(e)=="String"?D8e(e,""):ZS(e)}:ZS,O8e=dt.TypeError,e4=function(e){if(e==null)throw O8e("Can't call method on "+e);return e},Zp=function(e){return KY(e4(e))},wn=function(e){return typeof e=="function"},Ao=function(e){return typeof e=="object"?e!==null:wn(e)},F8e=function(e){return wn(e)?e:void 0},_m=function(e,t){return arguments.length<2?F8e(dt[e]):dt[e]&&dt[e][t]},Ob=hr({}.isPrototypeOf),QS=_m("navigator","userAgent")||"",aR=dt.process,iR=dt.Deno,oR=aR&&aR.versions||iR&&iR.version,sR=oR&&oR.v8;sR&&(gx=(Tu=sR.split("."))[0]>0&&Tu[0]<4?1:+(Tu[0]+Tu[1])),!gx&&QS&&(!(Tu=QS.match(/Edge\/(\d+)/))||Tu[1]>=74)&&(Tu=QS.match(/Chrome\/(\d+)/))&&(gx=+Tu[1]);var uR=gx,S6=!!Object.getOwnPropertySymbols&&!Yn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&uR&&uR<41}),EO=S6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",B8e=dt.Object,C6=EO?function(e){return typeof e=="symbol"}:function(e){var t=_m("Symbol");return wn(t)&&Ob(t.prototype,B8e(e))},P8e=dt.String,_6=function(e){try{return P8e(e)}catch(t){return"Object"}},N8e=dt.TypeError,SO=function(e){if(wn(e))return e;throw N8e(_6(e)+" is not a function")},c1=function(e,t){var r=e[t];return r==null?void 0:SO(r)},I8e=dt.TypeError,R8e=Object.defineProperty,CO=function(e,t){try{R8e(dt,e,{value:t,configurable:!0,writable:!0})}catch(r){dt[e]=t}return t},Cl=dt["__core-js_shared__"]||CO("__core-js_shared__",{}),_O=p0(function(e){(e.exports=function(t,r){return Cl[t]||(Cl[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),L8e=dt.Object,AO=function(e){return L8e(e4(e))},M8e=hr({}.hasOwnProperty),ri=Object.hasOwn||function(e,t){return M8e(AO(e),t)},j8e=0,$8e=Math.random(),U8e=hr(1 .toString),qY=function(e){return"Symbol("+(e===void 0?"":e)+")_"+U8e(++j8e+$8e,36)},_h=_O("wks"),vf=dt.Symbol,lR=vf&&vf.for,H8e=EO?vf:vf&&vf.withoutSetter||qY,Ha=function(e){if(!ri(_h,e)||!S6&&typeof _h[e]!="string"){var t="Symbol."+e;S6&&ri(vf,e)?_h[e]=vf[e]:_h[e]=EO&&lR?lR(t):H8e(t)}return _h[e]},z8e=dt.TypeError,V8e=Ha("toPrimitive"),W8e=function(e,t){if(!Ao(e)||C6(e))return e;var r,n=c1(e,V8e);if(n){if(t===void 0&&(t="default"),r=Gn(n,e,t),!Ao(r)||C6(r))return r;throw z8e("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(a,i){var o,s;if(i==="string"&&wn(o=a.toString)&&!Ao(s=Gn(o,a))||wn(o=a.valueOf)&&!Ao(s=Gn(o,a))||i!=="string"&&wn(o=a.toString)&&!Ao(s=Gn(o,a)))return s;throw I8e("Can't convert object to primitive value")}(e,t)},kO=function(e){var t=W8e(e,"string");return C6(t)?t:t+""},A6=dt.document,G8e=Ao(A6)&&Ao(A6.createElement),TO=function(e){return G8e?A6.createElement(e):{}},XY=!Ss&&!Yn(function(){return Object.defineProperty(TO("div"),"a",{get:function(){return 7}}).a!=7}),cR=Object.getOwnPropertyDescriptor,K8e=Ss?cR:function(e,t){if(e=Zp(e),t=kO(t),XY)try{return cR(e,t)}catch(r){}if(ri(e,t))return Sl(!Gn(_8e.f,e,t),e[t])},DO={f:K8e},q8e=dt.String,X8e=dt.TypeError,Ti=function(e){if(Ao(e))return e;throw X8e(q8e(e)+" is not an object")},Y8e=dt.TypeError,fR=Object.defineProperty,J8e=Ss?fR:function(e,t,r){if(Ti(e),t=kO(t),Ti(r),XY)try{return fR(e,t,r)}catch(n){}if("get"in r||"set"in r)throw Y8e("Accessors not supported");return"value"in r&&(e[t]=r.value),e},Qp={f:J8e},Ma=Ss?function(e,t,r){return Qp.f(e,t,Sl(1,r))}:function(e,t,r){return e[t]=r,e},Z8e=hr(Function.toString);wn(Cl.inspectSource)||(Cl.inspectSource=function(e){return Z8e(e)});var Fb,bg,Bb,OO=Cl.inspectSource,dR=dt.WeakMap,Q8e=wn(dR)&&/native code/.test(OO(dR)),pR=_O("keys"),FO=function(e){return pR[e]||(pR[e]=qY(e))},BO={},k6=dt.TypeError,e6e=dt.WeakMap;if(Q8e||Cl.state){var Cc=Cl.state||(Cl.state=new e6e),t6e=hr(Cc.get),hR=hr(Cc.has),r6e=hr(Cc.set);Fb=function(e,t){if(hR(Cc,e))throw new k6("Object already initialized");return t.facade=e,r6e(Cc,e,t),t},bg=function(e){return t6e(Cc,e)||{}},Bb=function(e){return hR(Cc,e)}}else{var B0=FO("state");BO[B0]=!0,Fb=function(e,t){if(ri(e,B0))throw new k6("Object already initialized");return t.facade=e,Ma(e,B0,t),t},bg=function(e){return ri(e,B0)?e[B0]:{}},Bb=function(e){return ri(e,B0)}}var Hf={set:Fb,get:bg,has:Bb,enforce:function(e){return Bb(e)?bg(e):Fb(e,{})},getterFor:function(e){return function(t){var r;if(!Ao(t)||(r=bg(t)).type!==e)throw k6("Incompatible receiver, "+e+" required");return r}}},YY=Function.prototype,n6e=Ss&&Object.getOwnPropertyDescriptor,e3=ri(YY,"name"),PO={EXISTS:e3,PROPER:e3&&function(){}.name==="something",CONFIGURABLE:e3&&(!Ss||Ss&&n6e(YY,"name").configurable)},_l=p0(function(e){var t=PO.CONFIGURABLE,r=Hf.get,n=Hf.enforce,a=String(String).split("String");(e.exports=function(i,o,s,u){var l,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,p=u&&u.name!==void 0?u.name:o;wn(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ri(s,"name")||t&&s.name!==p)&&Ma(s,"name",p),(l=n(s)).source||(l.source=a.join(typeof p=="string"?p:""))),i!==dt?(c?!d&&i[o]&&(f=!0):delete i[o],f?i[o]=s:Ma(i,o,s)):f?i[o]=s:CO(o,s)})(Function.prototype,"toString",function(){return wn(this)&&r(this).source||OO(this)})}),a6e=Math.ceil,i6e=Math.floor,NO=function(e){var t=+e;return t!=t||t===0?0:(t>0?i6e:a6e)(t)},o6e=Math.max,s6e=Math.min,T6=function(e,t){var r=NO(e);return r<0?o6e(r+t,0):s6e(r,t)},u6e=Math.min,JY=function(e){return e>0?u6e(NO(e),9007199254740991):0},t4=function(e){return JY(e.length)},vR=function(e){return function(t,r,n){var a,i=Zp(t),o=t4(i),s=T6(n,o);if(e&&r!=r){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},l6e={includes:vR(!0),indexOf:vR(!1)}.indexOf,gR=hr([].push),ZY=function(e,t){var r,n=Zp(e),a=0,i=[];for(r in n)!ri(BO,r)&&ri(n,r)&&gR(i,r);for(;t.length>a;)ri(n,r=t[a++])&&(~l6e(i,r)||gR(i,r));return i},Pb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],c6e=Pb.concat("length","prototype"),f6e=Object.getOwnPropertyNames||function(e){return ZY(e,c6e)},d6e={f:f6e},p6e={f:Object.getOwnPropertySymbols},h6e=hr([].concat),v6e=_m("Reflect","ownKeys")||function(e){var t=d6e.f(Ti(e)),r=p6e.f;return r?h6e(t,r(e)):t},QY=function(e,t){for(var r=v6e(t),n=Qp.f,a=DO.f,i=0;i<r.length;i++){var o=r[i];ri(e,o)||n(e,o,a(t,o))}},g6e=/#|\.prototype\./,Am=function(e,t){var r=y6e[m6e(e)];return r==b6e||r!=x6e&&(wn(t)?Yn(t):!!t)},m6e=Am.normalize=function(e){return String(e).replace(g6e,".").toLowerCase()},y6e=Am.data={},x6e=Am.NATIVE="N",b6e=Am.POLYFILL="P",w6e=Am,E6e=DO.f,km=function(e,t){var r,n,a,i,o,s=e.target,u=e.global,l=e.stat;if(r=u?dt:l?dt[s]||CO(s,{}):(dt[s]||{}).prototype)for(n in t){if(i=t[n],a=e.noTargetGet?(o=E6e(r,n))&&o.value:r[n],!w6e(u?n:s+(l?".":"#")+n,e.forced)&&a!==void 0){if(typeof i==typeof a)continue;QY(i,a)}(e.sham||a&&a.sham)&&Ma(i,"sham",!0),_l(r,n,i,e)}},eJ={};eJ[Ha("toStringTag")]="z";var Vy,IO=String(eJ)==="[object z]",S6e=Ha("toStringTag"),C6e=dt.Object,_6e=hf(function(){return arguments}())=="Arguments",r4=IO?hf:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(a,i){try{return a[i]}catch(o){}}(t=C6e(e),S6e))=="string"?r:_6e?hf(t):(n=hf(t))=="Object"&&wn(t.callee)?"Arguments":n},A6e=dt.String,gf=function(e){if(r4(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return A6e(e)},k6e=function(){var e=Ti(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},RO=dt.RegExp,LO=Yn(function(){var e=RO("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),T6e=LO||Yn(function(){return!RO("a","y").sticky}),D6e=LO||Yn(function(){var e=RO("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),O6e={BROKEN_CARET:D6e,MISSED_STICKY:T6e,UNSUPPORTED_Y:LO},F6e=Object.keys||function(e){return ZY(e,Pb)},B6e=Ss?Object.defineProperties:function(e,t){Ti(e);for(var r,n=Zp(t),a=F6e(t),i=a.length,o=0;i>o;)Qp.f(e,r=a[o++],n[r]);return e},P6e=_m("document","documentElement"),tJ=FO("IE_PROTO"),t3=function(){},rJ=function(e){return"<script>"+e+"<\/script>"},mR=function(e){e.write(rJ("")),e.close();var t=e.parentWindow.Object;return e=null,t},mx=function(){try{Vy=new ActiveXObject("htmlfile")}catch(n){}var e,t;mx=typeof document<"u"?document.domain&&Vy?mR(Vy):((t=TO("iframe")).style.display="none",P6e.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(rJ("document.F=Object")),e.close(),e.F):mR(Vy);for(var r=Pb.length;r--;)delete mx.prototype[Pb[r]];return mx()};BO[tJ]=!0;var yR,r3,Tm=Object.create||function(e,t){var r;return e!==null?(t3.prototype=Ti(e),r=new t3,t3.prototype=null,r[tJ]=e):r=mx(),t===void 0?r:B6e(r,t)},N6e=dt.RegExp,I6e=Yn(function(){var e=N6e(".","s");return!(e.dotAll&&e.exec(`
|
||
`)&&e.flags==="s")}),R6e=dt.RegExp,L6e=Yn(function(){var e=R6e("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),M6e=Hf.get,j6e=_O("native-string-replace",String.prototype.replace),Nb=RegExp.prototype.exec,D6=Nb,$6e=hr("".charAt),U6e=hr("".indexOf),H6e=hr("".replace),n3=hr("".slice),a3=(r3=/b*/g,Gn(Nb,yR=/a/,"a"),Gn(Nb,r3,"a"),yR.lastIndex!==0||r3.lastIndex!==0),xR=O6e.BROKEN_CARET,i3=/()??/.exec("")[1]!==void 0;(a3||i3||xR||I6e||L6e)&&(D6=function(e){var t,r,n,a,i,o,s,u=this,l=M6e(u),c=gf(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=Gn(D6,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=xR&&u.sticky,v=Gn(k6e,u),h=u.source,g=0,m=c;if(p&&(v=H6e(v,"y",""),U6e(v,"g")===-1&&(v+="g"),m=n3(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&$6e(c,u.lastIndex-1)!==`
|
||
`)&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),i3&&(r=new RegExp("^"+h+"$(?!\\s)",v)),a3&&(n=u.lastIndex),a=Gn(Nb,p?r:u,m),p?a?(a.input=n3(a.input,g),a[0]=n3(a[0],g),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:a3&&a&&(u.lastIndex=u.global?a.index+a[0].length:n),i3&&a&&a.length>1&&Gn(j6e,a[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(a[i]=void 0)}),a&&d)for(a.groups=o=Tm(null),i=0;i<d.length;i++)o[(s=d[i])[0]]=a[s[1]];return a});var Ib=D6;km({target:"RegExp",proto:!0,forced:/./.exec!==Ib},{exec:Ib});var z6e=Ha("species"),o3=RegExp.prototype,V6e=hr("".charAt),bR=hr("".charCodeAt),W6e=hr("".slice),wR=function(e){return function(t,r){var n,a,i=gf(e4(t)),o=NO(r),s=i.length;return o<0||o>=s?e?"":void 0:(n=bR(i,o))<55296||n>56319||o+1===s||(a=bR(i,o+1))<56320||a>57343?e?V6e(i,o):n:e?W6e(i,o,o+2):a-56320+(n-55296<<10)+65536}},nJ={codeAt:wR(!1),charAt:wR(!0)},G6e=nJ.charAt,K6e=function(e,t,r){return t+(r?G6e(e,t).length:1)},q6e=dt.TypeError,ER=function(e,t){var r=e.exec;if(wn(r)){var n=Gn(r,e,t);return n!==null&&Ti(n),n}if(hf(e)==="RegExp")return Gn(Ib,e,t);throw q6e("RegExp#exec called on incompatible receiver")};(function(e,t,r,n){var a=Ha(e),i=!Yn(function(){var l={};return l[a]=function(){return 7},""[e](l)!=7}),o=i&&!Yn(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[z6e]=function(){return c},c.flags="",c[a]=/./[a]),c.exec=function(){return l=!0,null},c[a](""),!l});if(!i||!o||r){var s=hr(/./[a]),u=t(a,""[e],function(l,c,f,d,p){var v=hr(l),h=c.exec;return h===Ib||h===o3.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});_l(String.prototype,e,u[0]),_l(o3,a,u[1])}n&&Ma(o3[a],"sham",!0)})("match",function(e,t,r){return[function(n){var a=e4(this),i=n==null?void 0:c1(n,e);return i?Gn(i,n,a):new RegExp(n)[e](gf(a))},function(n){var a=Ti(this),i=gf(n),o=r(t,a,i);if(o.done)return o.value;if(!a.global)return ER(a,i);var s=a.unicode;a.lastIndex=0;for(var u,l=[],c=0;(u=ER(a,i))!==null;){var f=gf(u[0]);l[c]=f,f===""&&(a.lastIndex=K6e(i,JY(a.lastIndex),s)),c++}return c===0?null:l}]}),km({global:!0},{globalThis:dt});var X6e=!Yn(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),SR=FO("IE_PROTO"),O6=dt.Object,Y6e=O6.prototype,f1=X6e?O6.getPrototypeOf:function(e){var t=AO(e);if(ri(t,SR))return t[SR];var r=t.constructor;return wn(r)&&t instanceof r?r.prototype:t instanceof O6?Y6e:null},J6e=dt.String,Z6e=dt.TypeError,lp=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=hr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(n){}return function(n,a){return Ti(n),function(i){if(typeof i=="object"||wn(i))return i;throw Z6e("Can't set "+J6e(i)+" as a prototype")}(a),t?e(n,a):n.__proto__=a,n}}():void 0),Q6e=dt.Array,eke=Math.max,tke=hr("".replace),rke=hr("".split),nke=hr([].join),F6=String(Error("zxcasd").stack),aJ=/\n\s*at [^:]*:[^\n]*/,ake=aJ.test(F6),ike=/@[^\n]*\n/.test(F6)&&!/zxcasd/.test(F6),oke=function(e,t){if(typeof e!="string")return e;if(ake)for(;t--;)e=tke(e,aJ,"");else if(ike)return nke(function(r,n,a){for(var i,o,s,u,l=t4(r),c=T6(n,l),f=T6(a===void 0?l:a,l),d=Q6e(eke(f-c,0)),p=0;c<f;c++,p++)i=d,o=p,s=r[c],u=void 0,(u=kO(o))in i?Qp.f(i,u,Sl(0,s)):i[u]=s;return d.length=p,d}(rke(e,`
|
||
`),t),`
|
||
`);return e},ske=function(e,t){Ao(t)&&"cause"in t&&Ma(e,"cause",t.cause)},CR=hr(hr.bind),iJ=function(e,t){return SO(e),t===void 0?e:CR?CR(e,t):function(){return e.apply(t,arguments)}},cp={},uke=Ha("iterator"),lke=Array.prototype,cke=Ha("iterator"),_R=function(e){if(e!=null)return c1(e,cke)||c1(e,"@@iterator")||cp[r4(e)]},fke=dt.TypeError,AR=function(e,t,r){var n,a;Ti(e);try{if(!(n=c1(e,"return"))){if(t==="throw")throw r;return r}n=Gn(n,e)}catch(i){a=!0,n=i}if(t==="throw")throw r;if(a)throw n;return Ti(n),r},dke=dt.TypeError,yx=function(e,t){this.stopped=e,this.result=t},kR=yx.prototype,pke=function(e,t,r){var n,a,i,o,s,u,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=iJ(t,c),h=function(m){return n&&AR(n,"normal",m),new yx(!0,m)},g=function(m){return f?(Ti(m),p?v(m[0],m[1],h):v(m[0],m[1])):p?v(m,h):v(m)};if(d)n=e;else{if(!(a=_R(e)))throw dke(_6(e)+" is not iterable");if(function(m){return m!==void 0&&(cp.Array===m||lke[uke]===m)}(a)){for(i=0,o=t4(e);o>i;i++)if((s=g(e[i]))&&Ob(kR,s))return s;return new yx(!1)}n=function(m,y){var x=arguments.length<2?_R(m):y;if(SO(x))return Ti(Gn(x,m));throw fke(_6(m)+" is not iterable")}(e,a)}for(u=n.next;!(l=Gn(u,n)).done;){try{s=g(l.value)}catch(m){AR(n,"throw",m)}if(typeof s=="object"&&s&&Ob(kR,s))return s}return new yx(!1)},hke=function(e,t){return e===void 0?arguments.length<2?"":t:gf(e)},vke=!Yn(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Sl(1,7)),e.stack!==7)}),gke=Ha("toStringTag"),Rb=dt.Error,mke=[].push,d1=function(e,t){var r,n=arguments.length>2?arguments[2]:void 0,a=Ob(s3,this);lp?r=lp(new Rb(void 0),a?f1(this):s3):(r=a?this:Tm(s3),Ma(r,gke,"Error")),Ma(r,"message",hke(t,"")),vke&&Ma(r,"stack",oke(r.stack,1)),ske(r,n);var i=[];return pke(e,mke,{that:i}),Ma(r,"errors",i),r};lp?lp(d1,Rb):QY(d1,Rb);var s3=d1.prototype=Tm(Rb.prototype,{constructor:Sl(1,d1),message:Sl(1,""),name:Sl(1,"AggregateError")});km({global:!0},{AggregateError:d1});var B6=Ha("unscopables"),P6=Array.prototype;P6[B6]==null&&Qp.f(P6,B6,{configurable:!0,value:Tm(null)});var mf,TR,DR,u3=function(e){P6[B6][e]=!0},N6=Ha("iterator"),oJ=!1;[].keys&&("next"in(DR=[].keys())?(TR=f1(f1(DR)))!==Object.prototype&&(mf=TR):oJ=!0);var yke=mf==null||Yn(function(){var e={};return mf[N6].call(e)!==e});yke&&(mf={}),wn(mf[N6])||_l(mf,N6,function(){return this});var MO={IteratorPrototype:mf,BUGGY_SAFARI_ITERATORS:oJ},xke=Qp.f,OR=Ha("toStringTag"),FR=function(e,t,r){e&&!ri(e=r?e:e.prototype,OR)&&xke(e,OR,{configurable:!0,value:t})},bke=MO.IteratorPrototype,wke=function(){return this},Eke=PO.PROPER,Ske=PO.CONFIGURABLE,BR=MO.IteratorPrototype,Wy=MO.BUGGY_SAFARI_ITERATORS,Ah=Ha("iterator"),Cke=function(){return this},sJ=function(e,t,r,n,a,i,o){(function(m,y,x,b){var E=y+" Iterator";m.prototype=Tm(bke,{next:Sl(+!b,x)}),FR(m,E,!1),cp[E]=wke})(r,t,n);var s,u,l,c=function(m){if(m===a&&h)return h;if(!Wy&&m in p)return p[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,p=e.prototype,v=p[Ah]||p["@@iterator"]||a&&p[a],h=!Wy&&v||c(a),g=t=="Array"&&p.entries||v;if(g&&(s=f1(g.call(new e)))!==Object.prototype&&s.next&&(f1(s)!==BR&&(lp?lp(s,BR):wn(s[Ah])||_l(s,Ah,Cke)),FR(s,f,!0)),Eke&&a=="values"&&v&&v.name!=="values"&&(Ske?Ma(p,"name","values"):(d=!0,h=function(){return Gn(v,this)})),a)if(u={values:c("values"),keys:i?h:c("keys"),entries:c("entries")},o)for(l in u)(Wy||d||!(l in p))&&_l(p,l,u[l]);else km({target:t,proto:!0,forced:Wy||d},u);return p[Ah]!==h&&_l(p,Ah,h,{name:a}),cp[t]=h,u},_ke=Hf.set,Ake=Hf.getterFor("Array Iterator"),Kv=sJ(Array,"Array",function(e,t){_ke(this,{type:"Array Iterator",target:Zp(e),index:0,kind:t})},function(){var e=Ake(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");cp.Arguments=cp.Array,u3("keys"),u3("values"),u3("entries");var kke=nJ.charAt,Tke=Hf.set,Dke=Hf.getterFor("String Iterator");sJ(String,"String",function(e){Tke(this,{type:"String Iterator",string:gf(e),index:0})},function(){var e,t=Dke(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=kke(r,n),t.index+=e.length,{value:e,done:!1})});var l3,Lb={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},c3=TO("span").classList,PR=c3&&c3.constructor&&c3.constructor.prototype,uJ=PR===Object.prototype?void 0:PR,f3=Ha("iterator"),NR=Ha("toStringTag"),d3=Kv.values,lJ=function(e,t){if(e){if(e[f3]!==d3)try{Ma(e,f3,d3)}catch(n){e[f3]=d3}if(e[NR]||Ma(e,NR,t),Lb[t]){for(var r in Kv)if(e[r]!==Kv[r])try{Ma(e,r,Kv[r])}catch(n){e[r]=Kv[r]}}}};for(var p3 in Lb)lJ(dt[p3]&&dt[p3].prototype,p3);lJ(uJ,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
|
||
Sorry, wangEditor V5+ versions do not support IE browser.`),IR(),RR()):global&&(!((l3=global.navigator)===null||l3===void 0)&&l3.userAgent.match("QQBrowser"))&&(IR(),RR());function IR(){typeof globalThis>"u"&&(window.globalThis=window)}function RR(){S8e===void 0&&(window.AggregateError=function(e,t){var r=new Error(t);return r.errors=e,r})}var LR,Mb=Array.isArray||function(e){return df(e)=="Array"},cJ=function(){},Oke=[],fJ=Xp("Reflect","construct"),jO=/^\s*(?:class|function)\b/,Fke=kr(jO.exec),Bke=!jO.exec(cJ),kh=function(e){if(!qn(e))return!1;try{return fJ(cJ,Oke,e),!0}catch(t){return!1}},Pke=!fJ||ii(function(){var e;return kh(kh.call)||!kh(Object)||!kh(function(){e=!0})||e})?function(e){if(!qn(e))return!1;switch(Cm(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Bke||!!Fke(jO,UY(e))}:kh,Nke=ka("species"),MR=bt.Array,dJ=function(e,t){return new(function(r){var n;return Mb(r)&&(n=r.constructor,(Pke(n)&&(n===MR||Mb(n.prototype))||xi(n)&&(n=n[Nke])===null)&&(n=void 0)),n===void 0?MR:n}(e))(t===0?0:t)},Ike=ka("species"),pJ=ka("isConcatSpreadable"),jR=bt.TypeError,Rke=bb>=51||!ii(function(){var e=[];return e[pJ]=!1,e.concat()[0]!==e}),Lke=(LR="concat",bb>=51||!ii(function(){var e=[];return(e.constructor={})[Ike]=function(){return{foo:1}},e[LR](Boolean).foo!==1})),Mke=function(e){if(!xi(e))return!1;var t=e[pJ];return t!==void 0?!!t:Mb(e)};Ws({target:"Array",proto:!0,forced:!Rke||!Lke},{concat:function(e){var t,r,n,a,i,o=bm(this),s=dJ(o,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(Mke(i=t===-1?o:arguments[t])){if(u+(a=Em(i))>9007199254740991)throw jR("Maximum allowed index exceeded");for(r=0;r<a;r++,u++)r in i&&m6(s,u,i[r])}else{if(u>=9007199254740991)throw jR("Maximum allowed index exceeded");m6(s,u++,i)}return s.length=u,s}});var $R=xO.f,UR=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],hJ={f:function(e){return UR&&df(e)=="Window"?function(t){try{return $R(t)}catch(r){return MY(UR)}}(e):$R(Ns(e))}},jke=kr([].slice),$O={f:ka},$ke=dc.f,tn=function(e){var t=mi.Symbol||(mi.Symbol={});Ut(t,e)||$ke(t,e,{value:$O.f(e)})},HR=kr([].push),Du=function(e){var t=e==1,r=e==2,n=e==3,a=e==4,i=e==6,o=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,v=bm(u),h=BY(v),g=mO(l,c),m=Em(h),y=0,x=f||dJ,b=t?x(u,m):r||o?x(u,0):void 0;m>y;y++)if((s||y in h)&&(p=g(d=h[y],y,v),e))if(t)b[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:HR(b,d)}else switch(e){case 4:return!1;case 7:HR(b,d)}return i?-1:n||a?a:b}},n4={forEach:Du(0),map:Du(1),filter:Du(2),some:Du(3),every:Du(4),find:Du(5),findIndex:Du(6),filterReject:Du(7)}.forEach,Ka=QE("hidden"),zR=ka("toPrimitive"),Uke=Jp.set,VR=Jp.getterFor("Symbol"),Po=Object.prototype,il=bt.Symbol,hl=il&&il.prototype,WR=bt.TypeError,h3=bt.QObject,Th=Xp("JSON","stringify"),vJ=ZE.f,ol=dc.f,gJ=hJ.f,Hke=pO.f,mJ=kr([].push),du=h0("symbols"),Dm=h0("op-symbols"),v3=h0("string-to-symbol-registry"),g3=h0("symbol-to-string-registry"),zke=h0("wks"),m3=!h3||!h3.prototype||!h3.prototype.findChild,I6=ti&&ii(function(){return fu(ol({},"a",{get:function(){return ol(this,"a",{value:7}).a}})).a!=7})?function(e,t,r){var n=vJ(Po,t);n&&delete Po[t],ol(e,t,r),n&&e!==Po&&ol(Po,t,n)}:ol,y3=function(e,t){var r=du[e]=fu(hl);return Uke(r,{type:"Symbol",tag:e,description:t}),ti||(r.description=t),r},jb=function(e,t,r){e===Po&&jb(Dm,t,r),ki(e);var n=Yp(t);return ki(r),Ut(du,n)?(r.enumerable?(Ut(e,Ka)&&e[Ka][n]&&(e[Ka][n]=!1),r=fu(r,{enumerable:Lo(0,!1)})):(Ut(e,Ka)||ol(e,Ka,Lo(1,{})),e[Ka][n]=!0),I6(e,n,r)):ol(e,n,r)},GR=function(e,t){ki(e);var r=Ns(t),n=bO(r).concat(R6(r));return n4(n,function(a){ti&&!Ja(yJ,r,a)||jb(e,a,r[a])}),e},yJ=function(e){var t=Yp(e),r=Ja(Hke,this,t);return!(this===Po&&Ut(du,t)&&!Ut(Dm,t))&&(!(r||!Ut(this,t)||!Ut(du,t)||Ut(this,Ka)&&this[Ka][t])||r)},KR=function(e,t){var r=Ns(e),n=Yp(t);if(r!==Po||!Ut(du,n)||Ut(Dm,n)){var a=vJ(r,n);return!a||!Ut(du,n)||Ut(r,Ka)&&r[Ka][n]||(a.enumerable=!0),a}},qR=function(e){var t=gJ(Ns(e)),r=[];return n4(t,function(n){Ut(du,n)||Ut(Sm,n)||mJ(r,n)}),r},R6=function(e){var t=e===Po,r=gJ(t?Dm:Ns(e)),n=[];return n4(r,function(a){!Ut(du,a)||t&&!Ut(Po,a)||mJ(n,du[a])}),n};if(ts||(hl=(il=function(){if(s1(hl,this))throw WR("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?u1(arguments[0]):void 0,t=Eb(e),r=function(n){this===Po&&Ja(r,Dm,n),Ut(this,Ka)&&Ut(this[Ka],t)&&(this[Ka][t]=!1),I6(this,t,Lo(1,n))};return ti&&m3&&I6(Po,t,{configurable:!0,set:r}),y3(t,e)}).prototype,up(hl,"toString",function(){return VR(this).tag}),up(il,"withoutSetter",function(e){return y3(Eb(e),e)}),pO.f=yJ,dc.f=jb,ZE.f=KR,xO.f=hJ.f=qR,px.f=R6,$O.f=function(e){return y3(ka(e),e)},ti&&ol(hl,"description",{configurable:!0,get:function(){return VR(this).description}})),Ws({global:!0,wrap:!0,forced:!ts,sham:!ts},{Symbol:il}),n4(bO(zke),function(e){tn(e)}),Ws({target:"Symbol",stat:!0,forced:!ts},{for:function(e){var t=u1(e);if(Ut(v3,t))return v3[t];var r=il(t);return v3[t]=r,g3[r]=t,r},keyFor:function(e){if(!Bd(e))throw WR(e+" is not a symbol");if(Ut(g3,e))return g3[e]},useSetter:function(){m3=!0},useSimple:function(){m3=!1}}),Ws({target:"Object",stat:!0,forced:!ts,sham:!ti},{create:function(e,t){return t===void 0?fu(e):GR(fu(e),t)},defineProperty:jb,defineProperties:GR,getOwnPropertyDescriptor:KR}),Ws({target:"Object",stat:!0,forced:!ts},{getOwnPropertyNames:qR,getOwnPropertySymbols:R6}),Ws({target:"Object",stat:!0,forced:ii(function(){px.f(1)})},{getOwnPropertySymbols:function(e){return px.f(bm(e))}}),Th){var Vke=!ts||ii(function(){var e=il();return Th([e])!="[null]"||Th({a:e})!="{}"||Th(Object(e))!="{}"});Ws({target:"JSON",stat:!0,forced:Vke},{stringify:function(e,t,r){var n=jke(arguments),a=t;if((xi(t)||e!==void 0)&&!Bd(e))return Mb(t)||(t=function(i,o){if(qn(a)&&(o=Ja(a,this,i,o)),!Bd(o))return o}),n[1]=t,OY(Th,null,n)}})}if(!hl[zR]){var Wke=hl.valueOf;up(hl,zR,function(e){return Ja(Wke,this)})}Db(il,"Symbol"),Sm[Ka]=!0,tn("asyncIterator"),tn("hasInstance"),tn("isConcatSpreadable"),tn("iterator"),tn("match"),tn("matchAll"),tn("replace"),tn("search"),tn("species"),tn("split"),tn("toPrimitive"),tn("toStringTag"),tn("unscopables"),Db(bt.JSON,"JSON",!0);var Gke=mi.Symbol;tn("asyncDispose"),tn("dispose"),tn("matcher"),tn("metadata"),tn("observable"),tn("patternMatch"),tn("replaceAll");var Gy=Gke,Kke=$O.f("iterator"),qke=p0(function(e){function t(r){return typeof Gy=="function"&&typeof Kke=="symbol"?(e.exports=t=function(n){return typeof n},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(n){return n&&typeof Gy=="function"&&n.constructor===Gy&&n!==Gy.prototype?"symbol":typeof n},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),Xke=P_e(qke),xJ=DO.f,Yke=Yn(function(){xJ(1)});if(km({target:"Object",stat:!0,forced:!Ss||Yke,sham:!Ss},{getOwnPropertyDescriptor:function(e,t){return xJ(Zp(e),t)}}),(typeof global>"u"?"undefined":Xke(global))==="object"){var Jke=Object.getOwnPropertyDescriptor(global,"window");global.window&&!Jke.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
|
||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||
*
|
||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
* Released under the MIT License.
|
||
*/function XR(e){return Object.prototype.toString.call(e)==="[object Object]"}function ga(e){var t,r;return XR(e)!==!1&&((t=e.constructor)===void 0||XR(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)}function ko(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function zf(e){return!!e&&!!e[Di]}function Vf(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;var n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===nTe}(e)||Array.isArray(e)||!!e[nL]||!!e.constructor[nL]||UO(e)||HO(e))}function p1(e,t,r){r===void 0&&(r=!1),fp(e)===0?(r?Object.keys:KO)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function fp(e){var t=e[Di];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:UO(e)?2:HO(e)?3:0}function L6(e,t){return fp(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function bJ(e,t,r){var n=fp(e);n===2?e.set(t,r):n===3?(e.delete(t),e.add(r)):e[t]=r}function UO(e){return tTe&&e instanceof Map}function HO(e){return rTe&&e instanceof Set}function Lc(e){return e.o||e.t}function zO(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=aTe(e);delete t[Di];for(var r=KO(t),n=0;n<r.length;n++){var a=r[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function VO(e,t){return t===void 0&&(t=!1),WO(e)||zf(e)||!Vf(e)||(fp(e)>1&&(e.set=e.add=e.clear=e.delete=Zke),Object.freeze(e),t&&p1(e,function(r,n){return VO(n,!0)},!0)),e}function Zke(){ko(2)}function WO(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function au(e){var t=iTe[e];return t||ko(18,e),t}function YR(){return h1}function x3(e,t){t&&(au("Patches"),e.u=[],e.s=[],e.v=t)}function $b(e){M6(e),e.p.forEach(Qke),e.p=null}function M6(e){e===h1&&(h1=e.l)}function JR(e){return h1={p:[],l:h1,h:e,m:!0,_:0}}function Qke(e){var t=e[Di];t.i===0||t.i===1?t.j():t.O=!0}function b3(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.g||au("ES5").S(t,e,n),n?(r[Di].P&&($b(t),ko(4)),Vf(e)&&(e=Ub(t,e),t.l||Hb(t,e)),t.u&&au("Patches").M(r[Di],e,t.u,t.s)):e=Ub(t,r,[]),$b(t),t.u&&t.v(t.u,t.s),e!==wJ?e:void 0}function Ub(e,t,r){if(WO(t))return t;var n=t[Di];if(!n)return p1(t,function(i,o){return ZR(e,n,t,i,o,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Hb(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=zO(n.k):n.o;p1(n.i===3?new Set(a):a,function(i,o){return ZR(e,n,a,i,o,r)}),Hb(e,a,!1),r&&e.u&&au("Patches").R(n,r,e.u,e.s)}return n.o}function ZR(e,t,r,n,a,i){if(zf(a)){var o=Ub(e,a,i&&t&&t.i!==3&&!L6(t.D,n)?i.concat(n):void 0);if(bJ(r,n,o),!zf(o))return;e.m=!1}if(Vf(a)&&!WO(a)){if(!e.h.F&&e._<1)return;Ub(e,a),t&&t.A.l||Hb(e,a)}}function Hb(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&VO(t,r)}function w3(e,t){var r=e[Di];return(r?Lc(r):e)[t]}function QR(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function j6(e){e.P||(e.P=!0,e.l&&j6(e.l))}function E3(e){e.o||(e.o=zO(e.t))}function $6(e,t,r){var n=UO(t)?au("MapSet").N(t,r):HO(t)?au("MapSet").T(t,r):e.g?function(a,i){var o=Array.isArray(a),s={i:o?1:0,A:i?i.A:YR(),P:!1,I:!1,D:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=s,l=xx;o&&(u=[s],l=bx);var c=Proxy.revocable(u,l),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):au("ES5").J(t,r);return(r?r.A:YR()).p.push(n),n}function eTe(e){return zf(e)||ko(22,e),function t(r){if(!Vf(r))return r;var n,a=r[Di],i=fp(r);if(a){if(!a.P&&(a.i<4||!au("ES5").K(a)))return a.t;a.I=!0,n=eL(r,i),a.I=!1}else n=eL(r,i);return p1(n,function(o,s){a&&function(u,l){return fp(u)===2?u.get(l):u[l]}(a.t,o)===s||bJ(n,o,t(s))}),i===3?new Set(n):n}(e)}function eL(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return zO(e)}var tL,h1,GO=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",tTe=typeof Map<"u",rTe=typeof Set<"u",rL=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",wJ=GO?Symbol.for("immer-nothing"):((tL={})["immer-nothing"]=!0,tL),nL=GO?Symbol.for("immer-draftable"):"__$immer_draftable",Di=GO?Symbol.for("immer-state"):"__$immer_state",nTe=""+Object.prototype.constructor,KO=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,aTe=Object.getOwnPropertyDescriptors||function(e){var t={};return KO(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},iTe={},xx={get:function(e,t){if(t===Di)return e;var r=Lc(e);if(!L6(r,t))return function(a,i,o){var s,u=QR(i,o);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(a.k):void 0}(e,r,t);var n=r[t];return e.I||!Vf(n)?n:n===w3(e.t,t)?(E3(e),e.o[t]=$6(e.A.h,n,e)):n},has:function(e,t){return t in Lc(e)},ownKeys:function(e){return Reflect.ownKeys(Lc(e))},set:function(e,t,r){var n=QR(Lc(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var a=w3(Lc(e),t),i=a==null?void 0:a[Di];if(i&&i.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(function(o,s){return o===s?o!==0||1/o==1/s:o!=o&&s!=s}(r,a)&&(r!==void 0||L6(e.t,t)))return!0;E3(e),j6(e)}return e.o[t]===r&&typeof r!="number"&&(r!==void 0||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return w3(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,E3(e),j6(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Lc(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){ko(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ko(12)}},bx={};p1(xx,function(e,t){bx[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),bx.deleteProperty=function(e,t){return xx.deleteProperty.call(this,e[0],t)},bx.set=function(e,t,r){return xx.set.call(this,e[0],t,r,e[0])};var oTe=function(){function e(r){var n=this;this.g=rL,this.F=!0,this.produce=function(a,i,o){if(typeof a=="function"&&typeof i!="function"){var s=i;i=a;var u=n;return function(p){var v=this;p===void 0&&(p=s);for(var h=arguments.length,g=Array(h>1?h-1:0),m=1;m<h;m++)g[m-1]=arguments[m];return u.produce(p,function(y){var x;return(x=i).call.apply(x,[v,y].concat(g))})}}var l;if(typeof i!="function"&&ko(6),o!==void 0&&typeof o!="function"&&ko(7),Vf(a)){var c=JR(n),f=$6(n,a,void 0),d=!0;try{l=i(f),d=!1}finally{d?$b(c):M6(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(p){return x3(c,o),b3(p,c)},function(p){throw $b(c),p}):(x3(c,o),b3(l,c))}if(!a||typeof a!="object")return(l=i(a))===wJ?void 0:(l===void 0&&(l=a),n.F&&VO(l,!0),l);ko(21,a)},this.produceWithPatches=function(a,i){return typeof a=="function"?function(u){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return n.produceWithPatches(u,function(d){return a.apply(void 0,[d].concat(c))})}:[n.produce(a,i,function(u,l){o=u,s=l}),o,s];var o,s},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Vf(r)||ko(8),zf(r)&&(r=eTe(r));var n=JR(this),a=$6(this,r,void 0);return a[Di].C=!0,M6(n),a},t.finishDraft=function(r,n){var a=(r&&r[Di]).A;return x3(a,n),b3(void 0,a)},t.setAutoFreeze=function(r){this.F=r},t.setUseProxies=function(r){r&&!rL&&ko(20),this.g=r},t.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var o=au("Patches").$;return zf(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),hi=new oTe,a4=hi.produce;hi.produceWithPatches.bind(hi),hi.setAutoFreeze.bind(hi),hi.setUseProxies.bind(hi),hi.applyPatches.bind(hi);var aL=hi.createDraft.bind(hi),iL=hi.finishDraft.bind(hi);function Is(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var zb=new WeakMap,Dh=new WeakMap,oL=new WeakMap,sL=new WeakMap,uL=new WeakMap,lL=new WeakMap;function cL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ky(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cL(Object(r),!0).forEach(function(n){Is(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var sTe=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var r of D.pathRefs(e))LTe.transform(r,t);for(var n of D.pointRefs(e))MTe.transform(n,t);for(var a of D.rangeRefs(e))$Te.transform(a,t);var i=new Set,o=[],s=d=>{if(d){var p=d.join(",");i.has(p)||(i.add(p),o.push(d))}},u=zb.get(e)||[],l=uTe(t);for(var c of u)s(se.transform(c,t));for(var f of l)s(f);zb.set(e,o),pe.transform(e,t),e.operations.push(t),D.normalize(e),t.type==="set_selection"&&(e.marks=null),Dh.get(e)||(Dh.set(e,!0),Promise.resolve().then(()=>{Dh.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,r)=>{var{selection:n}=e;if(n)if(be.isExpanded(n))pe.setNodes(e,{[t]:r},{match:$e.isText,split:!0});else{var a=Ky(Ky({},D.marks(e)||{}),{},{[t]:r});e.marks=a,Dh.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:r}=e;r&&be.isCollapsed(r)&&pe.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:r}=e;r&&be.isCollapsed(r)&&pe.delete(e,{unit:t})},deleteFragment:t=>{var{selection:r}=e;r&&be.isExpanded(r)&&pe.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?Ie.fragment(e,t):[]},insertBreak:()=>{pe.splitNodes(e,{always:!0})},insertFragment:t=>{pe.insertFragment(e,t)},insertNode:t=>{pe.insertNodes(e,t)},insertText:t=>{var{selection:r,marks:n}=e;if(r){if(n){var a=Ky({text:t},n);pe.insertNodes(e,a)}else pe.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[r,n]=t;if(!$e.isText(r))if(qe.isElement(r)&&r.children.length===0)pe.insertNodes(e,{text:""},{at:n.concat(0),voids:!0});else for(var a=!D.isEditor(r)&&qe.isElement(r)&&(e.isInline(r)||r.children.length===0||$e.isText(r.children[0])||e.isInline(r.children[0])),i=0,o=0;o<r.children.length;o++,i++){var s=Ie.get(e,n);if(!$e.isText(s)){var u=r.children[o],l=s.children[i-1],c=o===r.children.length-1;($e.isText(u)||qe.isElement(u)&&e.isInline(u))!==a?(pe.removeNodes(e,{at:n.concat(i),voids:!0}),i--):qe.isElement(u)?e.isInline(u)&&(l!=null&&$e.isText(l)?c&&(pe.insertNodes(e,{text:""},{at:n.concat(i+1),voids:!0}),i++):(pe.insertNodes(e,{text:""},{at:n.concat(i),voids:!0}),i++)):l!=null&&$e.isText(l)&&($e.equals(u,l,{loose:!0})?(pe.mergeNodes(e,{at:n.concat(i),voids:!0}),i--):l.text===""?(pe.removeNodes(e,{at:n.concat(i-1),voids:!0}),i--):u.text===""&&(pe.removeNodes(e,{at:n.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:r}=e;if(r)if(be.isExpanded(r))pe.unsetNodes(e,t,{match:$e.isText,split:!0});else{var n=Ky({},D.marks(e)||{});delete n[t],e.marks=n,Dh.get(e)||e.onChange()}}};return e},uTe=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return se.levels(t);case"insert_node":var{node:r,path:n}=e,a=se.levels(n),i=$e.isText(r)?[]:Array.from(Ie.nodes(r),b=>{var[,E]=b;return n.concat(E)});return[...a,...i];case"merge_node":var{path:o}=e;return[...se.ancestors(o),se.previous(o)];case"move_node":var{path:s,newPath:u}=e;if(se.equals(s,u))return[];var l=[],c=[];for(var f of se.ancestors(s)){var d=se.transform(f,e);l.push(d)}for(var p of se.ancestors(u)){var v=se.transform(p,e);c.push(v)}var h=c[c.length-1],g=u[u.length-1],m=h.concat(g);return[...l,...c,m];case"remove_node":var{path:y}=e;return[...se.ancestors(y)];case"split_node":var{path:x}=e;return[...se.levels(x),se.next(x)];default:return[]}};function pu(e,t){if(e==null)return{};var r,n,a=function(o,s){if(o==null)return{};var u,l,c={},f=Object.keys(o);for(l=0;l<f.length;l++)u=f[l],s.indexOf(u)>=0||(c[u]=o[u]);return c}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var ht,U6=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=!t,n=t?pTe(e):e,a=ht.None,i=ht.None,o=0,s=null;for(var u of n){var l=u.codePointAt(0);if(!l)break;var c=_Te(u,l);if([a,i]=r?[i,c]:[c,a],wd(a,ht.ZWJ)&&wd(i,ht.ExtPict)&&!DTe(r?e.substring(0,o):e.substring(0,e.length-o))||wd(a,ht.RI)&&wd(i,ht.RI)&&!(s=s!==null?!s:!!r||FTe(e.substring(0,e.length-o)))||a!==ht.None&&i!==ht.None&&kTe(a,i))break;o+=u.length}return o||1},lTe=/\s/,cTe=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,fTe=/['\u2018\u2019]/,H6=(e,t,r)=>{if(r){var n=e.length-t;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,t),e.slice(t)]},dTe=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(lTe.test(t))return!1;if(fTe.test(t)){var a=U6(r,n),[i,o]=H6(r,a,n);if(e(i,o,n))return!0}return!cTe.test(t)},pTe=function*(e){for(var t=e.length-1,r=0;r<e.length;r++){var n=e.charAt(t-r);if(vTe(n.charCodeAt(0))){var a=e.charAt(t-r-1);if(hTe(a.charCodeAt(0))){yield a+n,r++;continue}}yield n}},hTe=e=>e>=55296&&e<=56319,vTe=e=>e>=56320&&e<=57343;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(ht||(ht={}));var gTe=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,mTe=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,yTe=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,xTe=/^[\u1100-\u115F\uA960-\uA97C]$/,bTe=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,wTe=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,ETe=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,STe=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,CTe=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,_Te=(e,t)=>{var r=ht.Any;return e.search(gTe)!==-1&&(r|=ht.Extend),t===8205&&(r|=ht.ZWJ),t>=127462&&t<=127487&&(r|=ht.RI),e.search(mTe)!==-1&&(r|=ht.Prepend),e.search(yTe)!==-1&&(r|=ht.SpacingMark),e.search(xTe)!==-1&&(r|=ht.L),e.search(bTe)!==-1&&(r|=ht.V),e.search(wTe)!==-1&&(r|=ht.T),e.search(ETe)!==-1&&(r|=ht.LV),e.search(STe)!==-1&&(r|=ht.LVT),e.search(CTe)!==-1&&(r|=ht.ExtPict),r};function wd(e,t){return(e&t)!=0}var ATe=[[ht.L,ht.L|ht.V|ht.LV|ht.LVT],[ht.LV|ht.V,ht.V|ht.T],[ht.LVT|ht.T,ht.T],[ht.Any,ht.Extend|ht.ZWJ],[ht.Any,ht.SpacingMark],[ht.Prepend,ht.Any],[ht.ZWJ,ht.ExtPict],[ht.RI,ht.RI]];function kTe(e,t){return ATe.findIndex(r=>wd(e,r[0])&&wd(t,r[1]))===-1}var TTe=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,DTe=e=>e.search(TTe)!==-1,OTe=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,FTe=e=>{var t=e.match(OTe);return t!==null&&t[0].length/2%2==1},fL=e=>ga(e)&&Ie.isNodeList(e.children)&&!D.isEditor(e),qe={isAncestor:e=>ga(e)&&Ie.isNodeList(e.children),isElement:fL,isElementList:e=>Array.isArray(e)&&e.every(t=>qe.isElement(t)),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return fL(e)&&e[r]===t},matches(e,t){for(var r in t)if(r!=="children"&&e[r]!==t[r])return!1;return!0}},BTe=["text"],PTe=["text"];function dL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function P0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dL(Object(r),!0).forEach(function(n){Is(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var pL=new WeakMap,D={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:a=e.selection,match:i}=t;if(a){var o=D.path(e,a),s=n==="lowest";for(var[u,l]of D.levels(e,{at:o,voids:r,match:i,reverse:s}))if(!$e.isText(u)&&!se.equals(o,l))return[u,l]}},addMark(e,t,r){e.addMark(t,r)},after(e,t){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a={anchor:D.point(e,t,{edge:"end"}),focus:D.end(e,[])},{distance:i=1}=n,o=0;for(var s of D.positions(e,P0(P0({},n),{},{at:a}))){if(o>i)break;o!==0&&(r=s),o++}return r},before(e,t){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a={anchor:D.start(e,[]),focus:D.point(e,t,{edge:"start"})},{distance:i=1}=n,o=0;for(var s of D.positions(e,P0(P0({},n),{},{at:a,reverse:!0}))){if(o>i)break;o!==0&&(r=s),o++}return r},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;e.deleteBackward(r)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;e.deleteForward(r)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:r="forward"}=t;e.deleteFragment(r)},edges:(e,t)=>[D.start(e,t),D.end(e,t)],end:(e,t)=>D.point(e,t,{edge:"end"}),first(e,t){var r=D.path(e,t,{edge:"start"});return D.node(e,r)},fragment(e,t){var r=D.range(e,t);return Ie.fragment(e,r)},hasBlocks:(e,t)=>t.children.some(r=>D.isBlock(e,r)),hasInlines:(e,t)=>t.children.some(r=>$e.isText(r)||D.isInline(e,r)),hasTexts:(e,t)=>t.children.every(r=>$e.isText(r)),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>qe.isElement(t)&&!e.isInline(t),isEditor(e){if(!ga(e))return!1;var t=pL.get(e);if(t!==void 0)return t;var r=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteBackward=="function"&&typeof e.deleteForward=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isInline=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&(e.marks===null||ga(e.marks))&&(e.selection===null||be.isRange(e.selection))&&Ie.isNodeList(e.children)&&vl.isOperationList(e.operations);return pL.set(e,r),r},isEnd(e,t,r){var n=D.end(e,r);return St.equals(t,n)},isEdge:(e,t,r)=>D.isStart(e,t,r)||D.isEnd(e,t,r),isEmpty(e,t){var{children:r}=t,[n]=r;return r.length===0||r.length===1&&$e.isText(n)&&n.text===""&&!e.isVoid(t)},isInline:(e,t)=>qe.isElement(t)&&e.isInline(t),isNormalizing(e){var t=oL.get(e);return t===void 0||t},isStart(e,t,r){if(t.offset!==0)return!1;var n=D.start(e,r);return St.equals(t,n)},isVoid:(e,t)=>qe.isElement(t)&&e.isVoid(t),last(e,t){var r=D.path(e,t,{edge:"end"});return D.node(e,r)},leaf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=D.path(e,t,r);return[Ie.leaf(e,n),n]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,reverse:n=!1,voids:a=!1}=t,{match:i}=t;if(i==null&&(i=()=>!0),r){var o=[],s=D.path(e,r);for(var[u,l]of Ie.levels(e,s))if(i(u,l)&&(o.push([u,l]),!a&&D.isVoid(e,u)))break;n&&o.reverse(),yield*o}},marks(e){var{marks:t,selection:r}=e;if(!r)return null;if(t)return t;if(be.isExpanded(r)){var[n]=D.nodes(e,{match:$e.isText});if(n){var[a]=n;return pu(a,BTe)}return{}}var{anchor:i}=r,{path:o}=i,[s]=D.leaf(e,o);if(i.offset===0){var u=D.previous(e,{at:o,match:$e.isText}),l=D.above(e,{match:p=>D.isBlock(e,p)});if(u&&l){var[c,f]=u,[,d]=l;se.isAncestor(d,f)&&(s=c)}}return pu(s,PTe)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:a,at:i=e.selection}=t;if(i){var o=D.after(e,i,{voids:n});if(o){var[,s]=D.last(e,[]),u=[o.path,s];if(se.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(a==null)if(se.isPath(i)){var[l]=D.parent(e,i);a=f=>l.children.includes(f)}else a=()=>!0;var[c]=D.nodes(e,{at:u,match:a,mode:r,voids:n});return c}}},node(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=D.path(e,t,r);return[Ie.get(e,n),n]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,mode:n="all",universal:a=!1,reverse:i=!1,voids:o=!1}=t,{match:s}=t;if(s||(s=()=>!0),r){var u,l;if(NTe.isSpan(r))u=r[0],l=r[1];else{var c=D.path(e,r,{edge:"start"}),f=D.path(e,r,{edge:"end"});u=i?f:c,l=i?c:f}var d,p=Ie.nodes(e,{reverse:i,from:u,to:l,pass:x=>{var[b]=x;return!o&&D.isVoid(e,b)}}),v=[];for(var[h,g]of p){var m=d&&se.compare(g,d[1])===0;if(n!=="highest"||!m){if(s(h,g))if(n==="lowest"&&m)d=[h,g];else{var y=n==="lowest"?d:[h,g];y&&(a?v.push(y):yield y),d=[h,g]}else if(a&&!m&&$e.isText(h))return}}n==="lowest"&&d&&(a?v.push(d):yield d),a&&(yield*v)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1}=t,n=i=>zb.get(i)||[];if(D.isNormalizing(e)){if(r){var a=Array.from(Ie.nodes(e),i=>{var[,o]=i;return o});zb.set(e,a)}n(e).length!==0&&D.withoutNormalizing(e,()=>{for(var i of n(e))if(Ie.has(e,i)){var o=D.node(e,i),[s,u]=o;qe.isElement(s)&&s.children.length===0&&e.normalizeNode(o)}for(var l=42*n(e).length,c=0;n(e).length!==0;){if(c>l)throw new Error(`
|
||
Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
|
||
`));var f=n(e).pop();if(Ie.has(e,f)){var d=D.node(e,f);e.normalizeNode(d)}c++}})}},parent(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=D.path(e,t,r),a=se.parent(n);return D.node(e,a)},path(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:n,edge:a}=r;if(se.isPath(t)){if(a==="start"){var[,i]=Ie.first(e,t);t=i}else if(a==="end"){var[,o]=Ie.last(e,t);t=o}}return be.isRange(t)&&(t=a==="start"?be.start(t):a==="end"?be.end(t):se.common(t.anchor.path,t.focus.path)),St.isPoint(t)&&(t=t.path),n!=null&&(t=t.slice(0,n)),t},hasPath:(e,t)=>Ie.has(e,t),pathRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,a={current:t,affinity:n,unref(){var{current:i}=a;return D.pathRefs(e).delete(a),a.current=null,i}};return D.pathRefs(e).add(a),a},pathRefs(e){var t=sL.get(e);return t||(t=new Set,sL.set(e,t)),t},point(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:n="start"}=r;if(se.isPath(t)){var a;if(n==="end"){var[,i]=Ie.last(e,t);a=i}else{var[,o]=Ie.first(e,t);a=o}var s=Ie.get(e,a);if(!$e.isText(s))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(t,"] because it has no ").concat(n," text node."));return{path:a,offset:n==="end"?s.text.length:0}}if(be.isRange(t)){var[u,l]=be.edges(t);return n==="start"?u:l}return t},pointRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,a={current:t,affinity:n,unref(){var{current:i}=a;return D.pointRefs(e).delete(a),a.current=null,i}};return D.pointRefs(e).add(a),a},pointRefs(e){var t=uL.get(e);return t||(t=new Set,uL.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,unit:n="offset",reverse:a=!1,voids:i=!1}=t;if(r){var o=D.range(e,r),[s,u]=be.edges(o),l=a?u:s,c=!1,f="",d=0,p=0,v=0;for(var[h,g]of D.nodes(e,{at:r,reverse:a,voids:i})){if(qe.isElement(h)){if(!i&&e.isVoid(h)){yield D.start(e,g);continue}if(e.isInline(h))continue;if(D.hasInlines(e,h)){var m=se.isAncestor(g,u.path)?u:D.end(e,g),y=se.isAncestor(g,s.path)?s:D.start(e,g);f=D.string(e,{anchor:y,focus:m},{voids:i}),c=!0}}if($e.isText(h)){var x=se.equals(g,l.path);for(x?(p=a?l.offset:h.text.length-l.offset,v=l.offset):(p=h.text.length,v=a?p:0),(x||c||n==="offset")&&(yield{path:g,offset:v},c=!1);;){if(d===0){if(f==="")break;d=b(f,n,a),f=H6(f,d,a)[1]}if(v=a?v-d:v+d,(p-=d)<0){d=-p;break}d=0,yield{path:g,offset:v}}}}}function b(E,S,w){return S==="character"?U6(E,w):S==="word"?function(C){for(var _=arguments.length>1&&arguments[1]!==void 0&&arguments[1],O=0,P=!1;C.length>0;){var F=U6(C,_),[q,ee]=H6(C,F,_);if(dTe(q,ee,_))P=!0,O+=F;else{if(P)break;O+=F}C=ee}return O}(E,w):S==="line"||S==="block"?E.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:a,at:i=e.selection}=t;if(i){var o=D.before(e,i,{voids:n});if(o){var[,s]=D.first(e,[]),u=[o.path,s];if(se.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(a==null)if(se.isPath(i)){var[l]=D.parent(e,i);a=f=>l.children.includes(f)}else a=()=>!0;var[c]=D.nodes(e,{reverse:!0,at:u,match:a,mode:r,voids:n});return c}}},range:(e,t,r)=>be.isRange(t)&&!r?t:{anchor:D.start(e,t),focus:D.end(e,r||t)},rangeRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,a={current:t,affinity:n,unref(){var{current:i}=a;return D.rangeRefs(e).delete(a),a.current=null,i}};return D.rangeRefs(e).add(a),a},rangeRefs(e){var t=lL.get(e);return t||(t=new Set,lL.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){oL.set(e,t)},start:(e,t)=>D.point(e,t,{edge:"start"}),string(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,a=D.range(e,t),[i,o]=be.edges(a),s="";for(var[u,l]of D.nodes(e,{at:a,match:$e.isText,voids:n})){var c=u.text;se.equals(l,o.path)&&(c=c.slice(0,o.offset)),se.equals(l,i.path)&&(c=c.slice(i.offset)),s+=c}return s},unhangRange(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,[a,i]=be.edges(t);if(a.offset!==0||i.offset!==0||be.isCollapsed(t))return t;var o=D.above(e,{at:i,match:d=>D.isBlock(e,d)}),s=o?o[1]:[],u={anchor:D.start(e,[]),focus:i},l=!0;for(var[c,f]of D.nodes(e,{at:u,match:$e.isText,reverse:!0,voids:n}))if(l)l=!1;else if(c.text!==""||se.isBefore(f,s)){i={path:f,offset:c.text.length};break}return{anchor:a,focus:i}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(e,P0(P0({},t),{},{match:r=>D.isVoid(e,r)}))},withoutNormalizing(e,t){var r=D.isNormalizing(e);D.setNormalizing(e,!1);try{t()}finally{D.setNormalizing(e,r)}D.normalize(e)}},NTe={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(se.isPath)},ITe=["children"],RTe=["text"],hL=new WeakMap,Ie={ancestor(e,t){var r=Ie.get(e,t);if($e.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(r));return r},*ancestors(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of se.ancestors(t,r)){var a=[Ie.ancestor(e,n),n];yield a}},child(e,t){if($e.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var r=e.children[t];if(r==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return r},*children(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:n=!1}=r,a=Ie.ancestor(e,t),{children:i}=a,o=n?i.length-1:0;n?o>=0:o<i.length;){var s=Ie.child(a,o),u=t.concat(o);yield[s,u],o=n?o-1:o+1}},common(e,t,r){var n=se.common(t,r);return[Ie.get(e,n),n]},descendant(e,t){var r=Ie.get(e,t);if(D.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(r));return r},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Ie.nodes(e,t))n.length!==0&&(yield[r,n])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Ie.nodes(e,t))qe.isElement(r)&&(yield[r,n])},extractProps:e=>qe.isAncestor(e)?pu(e,ITe):pu(e,RTe),first(e,t){for(var r=t.slice(),n=Ie.get(e,r);n&&!$e.isText(n)&&n.children.length!==0;)n=n.children[0],r.push(0);return[n,r]},fragment(e,t){if($e.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var r=a4({children:e.children},n=>{var[a,i]=be.edges(t),o=Ie.nodes(n,{reverse:!0,pass:d=>{var[,p]=d;return!be.includes(t,p)}});for(var[,s]of o){if(!be.includes(t,s)){var u=Ie.parent(n,s),l=s[s.length-1];u.children.splice(l,1)}if(se.equals(s,i.path)){var c=Ie.leaf(n,s);c.text=c.text.slice(0,i.offset)}if(se.equals(s,a.path)){var f=Ie.leaf(n,s);f.text=f.text.slice(a.offset)}}D.isEditor(n)&&(n.selection=null)});return r.children},get(e,t){for(var r=e,n=0;n<t.length;n++){var a=t[n];if($e.isText(r)||!r.children[a])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));r=r.children[a]}return r},has(e,t){for(var r=e,n=0;n<t.length;n++){var a=t[n];if($e.isText(r)||!r.children[a])return!1;r=r.children[a]}return!0},isNode:e=>$e.isText(e)||qe.isElement(e)||D.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=hL.get(e);if(t!==void 0)return t;var r=e.every(n=>Ie.isNode(n));return hL.set(e,r),r},last(e,t){for(var r=t.slice(),n=Ie.get(e,r);n&&!$e.isText(n)&&n.children.length!==0;){var a=n.children.length-1;n=n.children[a],r.push(a)}return[n,r]},leaf(e,t){var r=Ie.get(e,t);if(!$e.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(r));return r},*levels(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of se.levels(t,r)){var a=Ie.get(e,n);yield[a,n]}},matches:(e,t)=>qe.isElement(e)&&qe.isElementProps(t)&&qe.matches(e,t)||$e.isText(e)&&$e.isTextProps(t)&&$e.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:r,reverse:n=!1}=t,{from:a=[],to:i}=t,o=new Set,s=[],u=e;!i||!(n?se.isBefore(s,i):se.isAfter(s,i));)if(o.has(u)||(yield[u,s]),o.has(u)||$e.isText(u)||u.children.length===0||r!=null&&r([u,s])!==!1){if(s.length===0)break;if(!n){var l=se.next(s);if(Ie.has(e,l)){s=l,u=Ie.get(e,s);continue}}n&&s[s.length-1]!==0?(s=se.previous(s),u=Ie.get(e,s)):(s=se.parent(s),u=Ie.get(e,s),o.add(u))}else{o.add(u);var c=n?u.children.length-1:0;se.isAncestor(s,a)&&(c=a[s.length]),s=s.concat(c),u=Ie.get(e,s)}},parent(e,t){var r=se.parent(t),n=Ie.get(e,r);if($e.isText(n))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return n},string:e=>$e.isText(e)?e.text:e.children.map(Ie.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Ie.nodes(e,t))$e.isText(r)&&(yield[r,n])}};function vL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function fn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vL(Object(r),!0).forEach(function(n){Is(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var vl={isNodeOperation:e=>vl.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!ga(e))return!1;switch(e.type){case"insert_node":case"remove_node":return se.isPath(e.path)&&Ie.isNode(e.node);case"insert_text":case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&se.isPath(e.path);case"merge_node":return typeof e.position=="number"&&se.isPath(e.path)&&ga(e.properties);case"move_node":return se.isPath(e.path)&&se.isPath(e.newPath);case"set_node":return se.isPath(e.path)&&ga(e.properties)&&ga(e.newProperties);case"set_selection":return e.properties===null&&be.isRange(e.newProperties)||e.newProperties===null&&be.isRange(e.properties)||ga(e.properties)&&ga(e.newProperties);case"split_node":return se.isPath(e.path)&&typeof e.position=="number"&&ga(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(t=>vl.isOperation(t)),isSelectionOperation:e=>vl.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>vl.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return fn(fn({},e),{},{type:"remove_node"});case"insert_text":return fn(fn({},e),{},{type:"remove_text"});case"merge_node":return fn(fn({},e),{},{type:"split_node",path:se.previous(e.path)});case"move_node":var{newPath:t,path:r}=e;if(se.equals(t,r))return e;if(se.isSibling(r,t))return fn(fn({},e),{},{path:t,newPath:r});var n=se.transform(r,e),a=se.transform(se.next(r),e);return fn(fn({},e),{},{path:n,newPath:a});case"remove_node":return fn(fn({},e),{},{type:"insert_node"});case"remove_text":return fn(fn({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:o}=e;return fn(fn({},e),{},{properties:o,newProperties:i});case"set_selection":var{properties:s,newProperties:u}=e;return fn(fn({},e),{},s==null?{properties:u,newProperties:null}:u==null?{properties:null,newProperties:s}:{properties:u,newProperties:s});case"split_node":return fn(fn({},e),{},{type:"merge_node",path:se.next(e.path)})}}},se={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=se.levels(e,t);return n=r?n.slice(1):n.slice(0,-1)},common(e,t){for(var r=[],n=0;n<e.length&&n<t.length;n++){var a=e[n];if(a!==t[n])break;r.push(a)}return r},compare(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return 0},endsAfter(e,t){var r=e.length-1,n=e.slice(0,r),a=t.slice(0,r),i=e[r],o=t[r];return se.equals(n,a)&&i>o},endsAt(e,t){var r=e.length,n=e.slice(0,r),a=t.slice(0,r);return se.equals(n,a)},endsBefore(e,t){var r=e.length-1,n=e.slice(0,r),a=t.slice(0,r),i=e[r],o=t[r];return se.equals(n,a)&&i<o},equals:(e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>se.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&se.compare(e,t)===0,isBefore:(e,t)=>se.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&se.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&se.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&se.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&se.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]=="number"),isSibling(e,t){if(e.length!==t.length)return!1;var r=e.slice(0,-1),n=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&se.equals(r,n)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=[],a=0;a<=e.length;a++)n.push(e.slice(0,a));return r&&n.reverse(),n},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!se.isAncestor(t,e)&&!se.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return a4(e,n=>{var{affinity:a="forward"}=r;if(e&&(e==null?void 0:e.length)!==0){if(n===null)return null;switch(t.type){case"insert_node":var{path:i}=t;(se.equals(i,n)||se.endsBefore(i,n)||se.isAncestor(i,n))&&(n[i.length-1]+=1);break;case"remove_node":var{path:o}=t;if(se.equals(o,n)||se.isAncestor(o,n))return null;se.endsBefore(o,n)&&(n[o.length-1]-=1);break;case"merge_node":var{path:s,position:u}=t;se.equals(s,n)||se.endsBefore(s,n)?n[s.length-1]-=1:se.isAncestor(s,n)&&(n[s.length-1]-=1,n[s.length]+=u);break;case"split_node":var{path:l,position:c}=t;if(se.equals(l,n)){if(a==="forward")n[n.length-1]+=1;else if(a!=="backward")return null}else se.endsBefore(l,n)?n[l.length-1]+=1:se.isAncestor(l,n)&&e[l.length]>=c&&(n[l.length-1]+=1,n[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(se.equals(f,d))return;if(se.isAncestor(f,n)||se.equals(f,n)){var p=d.slice();return se.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(n.slice(f.length))}se.isSibling(f,d)&&(se.isAncestor(d,n)||se.equals(d,n))?se.endsBefore(f,n)?n[f.length-1]-=1:n[f.length-1]+=1:se.endsBefore(d,n)||se.equals(d,n)||se.isAncestor(d,n)?(se.endsBefore(f,n)&&(n[f.length-1]-=1),n[d.length-1]+=1):se.endsBefore(f,n)&&(se.equals(d,n)&&(n[d.length-1]+=1),n[f.length-1]-=1)}}})}},LTe={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var a=se.transform(r,t,{affinity:n});e.current=a,a==null&&e.unref()}}};function gL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function mL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gL(Object(r),!0).forEach(function(n){Is(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var St={compare(e,t){var r=se.compare(e.path,t.path);return r===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter:(e,t)=>St.compare(e,t)===1,isBefore:(e,t)=>St.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&se.equals(e.path,t.path),isPoint:e=>ga(e)&&typeof e.offset=="number"&&se.isPath(e.path),transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return a4(e,n=>{if(n===null)return null;var{affinity:a="forward"}=r,{path:i,offset:o}=n;switch(t.type){case"insert_node":case"move_node":n.path=se.transform(i,t,r);break;case"insert_text":se.equals(t.path,i)&&t.offset<=o&&(n.offset+=t.text.length);break;case"merge_node":se.equals(t.path,i)&&(n.offset+=t.position),n.path=se.transform(i,t,r);break;case"remove_text":se.equals(t.path,i)&&t.offset<=o&&(n.offset-=Math.min(o-t.offset,t.text.length));break;case"remove_node":if(se.equals(t.path,i)||se.isAncestor(t.path,i))return null;n.path=se.transform(i,t,r);break;case"split_node":if(se.equals(t.path,i)){if(t.position===o&&a==null)return null;(t.position<o||t.position===o&&a==="forward")&&(n.offset-=t.position,n.path=se.transform(i,t,mL(mL({},r),{},{affinity:"forward"})))}else n.path=se.transform(i,t,r)}})}},MTe={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var a=St.transform(r,t,{affinity:n});e.current=a,a==null&&e.unref()}}},jTe=["anchor","focus"];function yL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}var be={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,{anchor:n,focus:a}=e;return be.isBackward(e)===r?[n,a]:[a,n]},end(e){var[,t]=be.edges(e);return t},equals:(e,t)=>St.equals(e.anchor,t.anchor)&&St.equals(e.focus,t.focus),includes(e,t){if(be.isRange(t)){if(be.includes(e,t.anchor)||be.includes(e,t.focus))return!0;var[r,n]=be.edges(e),[a,i]=be.edges(t);return St.isBefore(r,a)&&St.isAfter(n,i)}var[o,s]=be.edges(e),u=!1,l=!1;return St.isPoint(t)?(u=St.compare(t,o)>=0,l=St.compare(t,s)<=0):(u=se.compare(t,o.path)>=0,l=se.compare(t,s.path)<=0),u&&l},intersection(e,t){var r=pu(e,jTe),[n,a]=be.edges(e),[i,o]=be.edges(t),s=St.isBefore(n,i)?i:n,u=St.isBefore(a,o)?a:o;return St.isBefore(u,s)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?yL(Object(f),!0).forEach(function(d){Is(l,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):yL(Object(f)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(f,d))})}return l}({anchor:s,focus:u},r)},isBackward(e){var{anchor:t,focus:r}=e;return St.isAfter(t,r)},isCollapsed(e){var{anchor:t,focus:r}=e;return St.equals(t,r)},isExpanded:e=>!be.isCollapsed(e),isForward:e=>!be.isBackward(e),isRange:e=>ga(e)&&St.isPoint(e.anchor)&&St.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=be.edges(e);return t},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return a4(e,n=>{if(n===null)return null;var a,i,{affinity:o="inward"}=r;if(o==="inward"){var s=be.isCollapsed(n);be.isForward(n)?(a="forward",i=s?a:"backward"):(a="backward",i=s?a:"forward")}else o==="outward"?be.isForward(n)?(a="backward",i="forward"):(a="forward",i="backward"):(a=o,i=o);var u=St.transform(n.anchor,t,{affinity:a}),l=St.transform(n.focus,t,{affinity:i});if(!u||!l)return null;n.anchor=u,n.focus=l})}},$Te={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var a=be.transform(r,t,{affinity:n});e.current=a,a==null&&e.unref()}}},EJ=(e,t)=>{for(var r in e){var n=e[r],a=t[r];if(ga(n)&&ga(a)){if(!EJ(n,a))return!1}else if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!==a[i])return!1}else if(n!==a)return!1}for(var o in t)if(e[o]===void 0&&t[o]!==void 0)return!1;return!0},UTe=["text"],HTe=["anchor","focus"];function xL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ms(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xL(Object(r),!0).forEach(function(n){Is(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var $e={equals(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function a(i){return pu(i,UTe)}return EJ(n?a(e):e,n?a(t):t)},isText:e=>ga(e)&&typeof e.text=="string",isTextList:e=>Array.isArray(e)&&e.every(t=>$e.isText(t)),isTextProps:e=>e.text!==void 0,matches(e,t){for(var r in t)if(r!=="text"&&(!e.hasOwnProperty(r)||e[r]!==t[r]))return!1;return!0},decorations(e,t){var r=[Ms({},e)];for(var n of t){var a=pu(n,HTe),[i,o]=be.edges(n),s=[],u=0;for(var l of r){var{length:c}=l.text,f=u;if(u+=c,i.offset<=f&&o.offset>=u)Object.assign(l,a),s.push(l);else if(i.offset!==o.offset&&(i.offset===u||o.offset===f)||i.offset>u||o.offset<f||o.offset===f&&f!==0)s.push(l);else{var d=l,p=void 0,v=void 0;if(o.offset<u){var h=o.offset-f;v=Ms(Ms({},d),{},{text:d.text.slice(h)}),d=Ms(Ms({},d),{},{text:d.text.slice(0,h)})}if(i.offset>f){var g=i.offset-f;p=Ms(Ms({},d),{},{text:d.text.slice(0,g)}),d=Ms(Ms({},d),{},{text:d.text.slice(g)})}Object.assign(d,a),p&&s.push(p),s.push(d),v&&s.push(v)}}r=s}return r}};function bL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Oh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bL(Object(r),!0).forEach(function(n){Is(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var zTe={transform(e,t){e.children=aL(e.children);var r=e.selection&&aL(e.selection);try{r=((n,a,i)=>{switch(i.type){case"insert_node":var{path:o,node:s}=i,u=Ie.parent(n,o),l=o[o.length-1];if(l>u.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(o,"] because the destination is past the end of the node."));if(u.children.splice(l,0,s),a)for(var[c,f]of be.points(a))a[f]=St.transform(c,i);break;case"insert_text":var{path:d,offset:p,text:v}=i;if(v.length===0)break;var h=Ie.leaf(n,d),g=h.text.slice(0,p),m=h.text.slice(p);if(h.text=g+v+m,a)for(var[y,x]of be.points(a))a[x]=St.transform(y,i);break;case"merge_node":var{path:b}=i,E=Ie.get(n,b),S=se.previous(b),w=Ie.get(n,S),C=Ie.parent(n,b),_=b[b.length-1];if($e.isText(E)&&$e.isText(w))w.text+=E.text;else{if($e.isText(E)||$e.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(b,"] to nodes of different interfaces: ").concat(E," ").concat(w));w.children.push(...E.children)}if(C.children.splice(_,1),a)for(var[O,P]of be.points(a))a[P]=St.transform(O,i);break;case"move_node":var{path:F,newPath:q}=i;if(se.isAncestor(F,q))throw new Error("Cannot move a path [".concat(F,"] to new path [").concat(q,"] because the destination is inside itself."));var ee=Ie.get(n,F),J=Ie.parent(n,F),Z=F[F.length-1];J.children.splice(Z,1);var V=se.transform(F,i),ie=Ie.get(n,se.parent(V)),W=V[V.length-1];if(ie.children.splice(W,0,ee),a)for(var[de,M]of be.points(a))a[M]=St.transform(de,i);break;case"remove_node":var{path:A}=i,N=A[A.length-1];if(Ie.parent(n,A).children.splice(N,1),a)for(var[I,L]of be.points(a)){var Y=St.transform(I,i);if(a!=null&&Y!=null)a[L]=Y;else{var Q=void 0,le=void 0;for(var[ve,he]of Ie.texts(n)){if(se.compare(he,A)!==-1){le=[ve,he];break}Q=[ve,he]}var fe=!1;Q&&le&&(fe=se.equals(le[1],A)?!se.hasPrevious(le[1]):se.common(Q[1],A).length<se.common(le[1],A).length),Q&&!fe?(I.path=Q[1],I.offset=Q[0].text.length):le?(I.path=le[1],I.offset=0):a=null}}break;case"remove_text":var{path:z,offset:je,text:Te}=i;if(Te.length===0)break;var Ne=Ie.leaf(n,z),He=Ne.text.slice(0,je),we=Ne.text.slice(je+Te.length);if(Ne.text=He+we,a)for(var[Je,ut]of be.points(a))a[ut]=St.transform(Je,i);break;case"set_node":var{path:_t,properties:Qe,newProperties:cr}=i;if(_t.length===0)throw new Error("Cannot set properties on the root node!");var zt=Ie.get(n,_t);for(var Se in cr){if(Se==="children"||Se==="text")throw new Error('Cannot set the "'.concat(Se,'" property of nodes!'));var at=cr[Se];at==null?delete zt[Se]:zt[Se]=at}for(var Rt in Qe)cr.hasOwnProperty(Rt)||delete zt[Rt];break;case"set_selection":var{newProperties:fr}=i;if(fr==null)a=fr;else{if(a==null){if(!be.isRange(fr))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(fr)," when there is no current selection."));a=Oh({},fr)}for(var It in fr){var Dr=fr[It];if(Dr==null){if(It==="anchor"||It==="focus")throw new Error('Cannot remove the "'.concat(It,'" selection property'));delete a[It]}else a[It]=Dr}}break;case"split_node":var{path:Ze,position:wt,properties:Vt}=i;if(Ze.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Ze,"] because the root node cannot be split."));var Ft,ir=Ie.get(n,Ze),An=Ie.parent(n,Ze),qo=Ze[Ze.length-1];if($e.isText(ir)){var xe=ir.text.slice(0,wt),_e=ir.text.slice(wt);ir.text=xe,Ft=Oh(Oh({},Vt),{},{text:_e})}else{var Ve=ir.children.slice(0,wt),ft=ir.children.slice(wt);ir.children=Ve,Ft=Oh(Oh({},Vt),{},{children:ft})}if(An.children.splice(qo+1,0,Ft),a)for(var[Or,dr]of be.points(a))a[dr]=St.transform(Or,i)}return a})(e,r,t)}finally{e.children=iL(e.children),e.selection=r?zf(r)?iL(r):r:null}}},VTe=["text"],WTe=["children"];function wL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function EL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wL(Object(r),!0).forEach(function(n){Is(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var GTe={insertNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:a=!1,mode:i="lowest"}=r,{at:o,match:s,select:u}=r;if(Ie.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(o||(o=e.selection?e.selection:e.children.length>0?D.end(e,[]):[0],u=!0),u==null&&(u=!1),be.isRange(o))if(n||(o=D.unhangRange(e,o)),be.isCollapsed(o))o=o.anchor;else{var[,c]=be.edges(o),f=D.pointRef(e,c);pe.delete(e,{at:o}),o=f.unref()}if(St.isPoint(o)){s==null&&(s=$e.isText(l)?S=>$e.isText(S):e.isInline(l)?S=>$e.isText(S)||D.isInline(e,S):S=>D.isBlock(e,S));var[d]=D.nodes(e,{at:o.path,match:s,mode:i,voids:a});if(!d)return;var[,p]=d,v=D.pathRef(e,p),h=D.isEnd(e,o,p);pe.splitNodes(e,{at:o,match:s,mode:i,voids:a});var g=v.unref();o=h?se.next(g):g}var m=se.parent(o),y=o[o.length-1];if(a||!D.void(e,{at:m})){for(var x of t){var b=m.concat(y);y++,e.apply({type:"insert_node",path:b,node:x}),o=se.next(o)}if(o=se.previous(o),u){var E=D.end(e,o);E&&pe.select(e,E)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{at:r=e.selection,mode:n="lowest",voids:a=!1}=t,{match:i}=t;if(i==null&&(i=se.isPath(r)?N0(e,r):x=>D.isBlock(e,x)),r){var o=D.nodes(e,{at:r,match:i,mode:n,voids:a}),s=Array.from(o,x=>{var[,b]=x;return D.pathRef(e,b)});for(var u of s){var l=u.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=D.node(e,se.parent(l)),[f,d]=c,p=l[l.length-1],{length:v}=f.children;if(v===1){var h=se.next(d);pe.moveNodes(e,{at:l,to:h,voids:a}),pe.removeNodes(e,{at:d,voids:a})}else if(p===0)pe.moveNodes(e,{at:l,to:d,voids:a});else if(p===v-1){var g=se.next(d);pe.moveNodes(e,{at:l,to:g,voids:a})}else{var m=se.next(l),y=se.next(d);pe.splitNodes(e,{at:m,voids:a}),pe.moveNodes(e,{at:l,to:y,voids:a})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{match:r,at:n=e.selection}=t,{hanging:a=!1,voids:i=!1,mode:o="lowest"}=t;if(n){if(r==null)if(se.isPath(n)){var[s]=D.parent(e,n);r=_=>s.children.includes(_)}else r=_=>D.isBlock(e,_);if(!a&&be.isRange(n)&&(n=D.unhangRange(e,n)),be.isRange(n))if(be.isCollapsed(n))n=n.anchor;else{var[,u]=be.edges(n),l=D.pointRef(e,u);pe.delete(e,{at:n}),n=l.unref(),t.at==null&&pe.select(e,n)}var[c]=D.nodes(e,{at:n,match:r,voids:i,mode:o}),f=D.previous(e,{at:n,match:r,voids:i,mode:o});if(c&&f){var[d,p]=c,[v,h]=f;if(p.length!==0&&h.length!==0){var g,m,y=se.next(h),x=se.common(p,h),b=se.isSibling(p,h),E=Array.from(D.levels(e,{at:p}),_=>{var[O]=_;return O}).slice(x.length).slice(0,-1),S=D.above(e,{at:p,mode:"highest",match:_=>E.includes(_)&&SJ(e,_)}),w=S&&D.pathRef(e,S[1]);if($e.isText(d)&&$e.isText(v)){var C=pu(d,VTe);m=v.text.length,g=C}else{if(!qe.isElement(d)||!qe.isElement(v))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(v)));C=pu(d,WTe),m=v.children.length,g=C}b||pe.moveNodes(e,{at:p,to:y,voids:i}),w&&pe.removeNodes(e,{at:w.current,voids:i}),qe.isElement(v)&&D.isEmpty(e,v)||$e.isText(v)&&v.text===""&&h[h.length-1]!==0?pe.removeNodes(e,{at:h,voids:i}):e.apply({type:"merge_node",path:y,position:m,properties:g}),w&&w.unref()}}}})},moveNodes(e,t){D.withoutNormalizing(e,()=>{var{to:r,at:n=e.selection,mode:a="lowest",voids:i=!1}=t,{match:o}=t;if(n){o==null&&(o=se.isPath(n)?N0(e,n):p=>D.isBlock(e,p));var s=D.pathRef(e,r),u=D.nodes(e,{at:n,match:o,mode:a,voids:i}),l=Array.from(u,p=>{var[,v]=p;return D.pathRef(e,v)});for(var c of l){var f=c.unref(),d=s.current;f.length!==0&&e.apply({type:"move_node",path:f,newPath:d}),s.current&&se.isSibling(d,f)&&se.isAfter(d,f)&&(s.current=se.next(s.current))}s.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:n=!1,mode:a="lowest"}=t,{at:i=e.selection,match:o}=t;if(i){o==null&&(o=se.isPath(i)?N0(e,i):d=>D.isBlock(e,d)),!r&&be.isRange(i)&&(i=D.unhangRange(e,i));var s=D.nodes(e,{at:i,match:o,mode:a,voids:n}),u=Array.from(s,d=>{var[,p]=d;return D.pathRef(e,p)});for(var l of u){var c=l.unref();if(c){var[f]=D.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{match:n,at:a=e.selection}=r,{hanging:i=!1,mode:o="lowest",split:s=!1,voids:u=!1}=r;if(a){if(n==null&&(n=se.isPath(a)?N0(e,a):E=>D.isBlock(e,E)),!i&&be.isRange(a)&&(a=D.unhangRange(e,a)),s&&be.isRange(a)){if(be.isCollapsed(a)&&D.leaf(e,a.anchor)[0].text.length>0)return;var l=D.rangeRef(e,a,{affinity:"inward"}),[c,f]=be.edges(a),d=o==="lowest"?"lowest":"highest",p=D.isEnd(e,f,f.path);pe.splitNodes(e,{at:f,match:n,mode:d,voids:u,always:!p});var v=D.isStart(e,c,c.path);pe.splitNodes(e,{at:c,match:n,mode:d,voids:u,always:!v}),a=l.unref(),r.at==null&&pe.select(e,a)}for(var[h,g]of D.nodes(e,{at:a,match:n,mode:o,voids:u})){var m={},y={};if(g.length!==0){var x=!1;for(var b in t)b!=="children"&&b!=="text"&&t[b]!==h[b]&&(x=!0,h.hasOwnProperty(b)&&(m[b]=h[b]),t[b]!=null&&(y[b]=t[b]));x&&e.apply({type:"set_node",path:g,properties:m,newProperties:y})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{mode:r="lowest",voids:n=!1}=t,{match:a,at:i=e.selection,height:o=0,always:s=!1}=t;if(a==null&&(a=ee=>D.isBlock(e,ee)),be.isRange(i)&&(i=KTe(e,i)),se.isPath(i)){var u=i,l=D.point(e,u),[c]=D.parent(e,u);a=ee=>ee===c,o=l.path.length-u.length+1,i=l,s=!0}if(i){var f=D.pointRef(e,i,{affinity:"backward"}),[d]=D.nodes(e,{at:i,match:a,mode:r,voids:n});if(d){var p=D.void(e,{at:i,mode:"highest"});if(!n&&p){var[v,h]=p;if(qe.isElement(v)&&e.isInline(v)){var g=D.after(e,h);if(!g){var m=se.next(h);pe.insertNodes(e,{text:""},{at:m,voids:n}),g=D.point(e,m)}i=g,s=!0}o=i.path.length-h.length+1,s=!0}var y=D.pointRef(e,i),x=i.path.length-o,[,b]=d,E=i.path.slice(0,x),S=o===0?i.offset:i.path[x]+0;for(var[w,C]of D.levels(e,{at:E,reverse:!0,voids:n})){var _=!1;if(C.length<b.length||C.length===0||!n&&D.isVoid(e,w))break;var O=f.current,P=D.isEnd(e,O,C);if(s||!f||!D.isEdge(e,O,C)){_=!0;var F=Ie.extractProps(w);e.apply({type:"split_node",path:C,position:S,properties:F})}S=C[C.length-1]+(_||P?1:0)}if(t.at==null){var q=y.current||D.end(e,[]);pe.select(e,q)}f.unref(),y.unref()}}})},unsetNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var n={};for(var a of t)n[a]=null;pe.setNodes(e,n,r)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{mode:r="lowest",split:n=!1,voids:a=!1}=t,{at:i=e.selection,match:o}=t;if(i){o==null&&(o=se.isPath(i)?N0(e,i):d=>D.isBlock(e,d)),se.isPath(i)&&(i=D.range(e,i));var s=be.isRange(i)?D.rangeRef(e,i):null,u=D.nodes(e,{at:i,match:o,mode:r,voids:a}),l=Array.from(u,d=>{var[,p]=d;return D.pathRef(e,p)}).reverse(),c=function(d){var p=d.unref(),[v]=D.node(e,p),h=D.range(e,p);n&&s&&(h=be.intersection(s.current,h)),pe.liftNodes(e,{at:h,match:g=>qe.isAncestor(v)&&v.children.includes(g),voids:a})};for(var f of l)c(f);s&&s.unref()}})},wrapNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{mode:n="lowest",split:a=!1,voids:i=!1}=r,{match:o,at:s=e.selection}=r;if(s){if(o==null&&(o=se.isPath(s)?N0(e,s):e.isInline(t)?g=>D.isInline(e,g)||$e.isText(g):g=>D.isBlock(e,g)),a&&be.isRange(s)){var[u,l]=be.edges(s),c=D.rangeRef(e,s,{affinity:"inward"});pe.splitNodes(e,{at:l,match:o,voids:i}),pe.splitNodes(e,{at:u,match:o,voids:i}),s=c.unref(),r.at==null&&pe.select(e,s)}var f=Array.from(D.nodes(e,{at:s,match:e.isInline(t)?g=>D.isBlock(e,g):g=>D.isEditor(g),mode:"lowest",voids:i}));for(var[,d]of f){var p=be.isRange(s)?be.intersection(s,D.range(e,d)):s;if(p){var v=Array.from(D.nodes(e,{at:p,match:o,mode:n,voids:i}));if(v.length>0){var h=function(){var[g]=v,m=v[v.length-1],[,y]=g,[,x]=m;if(y.length===0&&x.length===0)return"continue";var b=se.equals(y,x)?se.parent(y):se.common(y,x),E=D.range(e,y,x),S=D.node(e,b),[w]=S,C=b.length+1,_=se.next(x.slice(0,C)),O=EL(EL({},t),{},{children:[]});pe.insertNodes(e,O,{at:_,voids:i}),pe.moveNodes(e,{at:E,match:P=>qe.isAncestor(w)&&w.children.includes(P),to:_.concat(0),voids:i})}();if(h==="continue")continue}}}}})}},SJ=(e,t)=>{if(qe.isElement(t)){var r=t;return!!D.isVoid(e,t)||r.children.length===1&&SJ(e,r.children[0])}return!D.isEditor(t)},KTe=(e,t)=>{if(be.isCollapsed(t))return t.anchor;var[,r]=be.edges(t),n=D.pointRef(e,r);return pe.delete(e,{at:t}),n.unref()},N0=(e,t)=>{var[r]=D.node(e,t);return n=>n===r};function SL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function CL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SL(Object(r),!0).forEach(function(n){Is(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var qTe={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=t,{selection:n}=e;if(n){if(r==="anchor")pe.select(e,n.anchor);else if(r==="focus")pe.select(e,n.focus);else if(r==="start"){var[a]=be.edges(n);pe.select(e,a)}else if(r==="end"){var[,i]=be.edges(n);pe.select(e,i)}}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=e,{distance:n=1,unit:a="character",reverse:i=!1}=t,{edge:o=null}=t;if(r){o==="start"&&(o=be.isBackward(r)?"focus":"anchor"),o==="end"&&(o=be.isBackward(r)?"anchor":"focus");var{anchor:s,focus:u}=r,l={distance:n,unit:a},c={};if(o==null||o==="anchor"){var f=i?D.before(e,s,l):D.after(e,s,l);f&&(c.anchor=f)}if(o==null||o==="focus"){var d=i?D.before(e,u,l):D.after(e,u,l);d&&(c.focus=d)}pe.setSelection(e,c)}},select(e,t){var{selection:r}=e;if(t=D.range(e,t),r)pe.setSelection(e,t);else{if(!be.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})}},setPoint(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:n}=e,{edge:a="both"}=r;if(n){a==="start"&&(a=be.isBackward(n)?"focus":"anchor"),a==="end"&&(a=be.isBackward(n)?"anchor":"focus");var{anchor:i,focus:o}=n,s=a==="anchor"?i:o;pe.setSelection(e,{[a==="anchor"?"anchor":"focus"]:CL(CL({},s),t)})}},setSelection(e,t){var{selection:r}=e,n={},a={};if(r){for(var i in t)(i==="anchor"&&t.anchor!=null&&!St.equals(t.anchor,r.anchor)||i==="focus"&&t.focus!=null&&!St.equals(t.focus,r.focus)||i!=="anchor"&&i!=="focus"&&t[i]!==r[i])&&(n[i]=r[i],a[i]=t[i]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:a})}}},XTe={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{reverse:r=!1,unit:n="character",distance:a=1,voids:i=!1}=t,{at:o=e.selection,hanging:s=!1}=t;if(o){if(be.isRange(o)&&be.isCollapsed(o)&&(o=o.anchor),St.isPoint(o)){var u=D.void(e,{at:o,mode:"highest"});if(!i&&u){var[,l]=u;o=l}else{var c={unit:n,distance:a};o={anchor:o,focus:r?D.before(e,o,c)||D.start(e,[]):D.after(e,o,c)||D.end(e,[])},s=!0}}if(se.isPath(o))pe.removeNodes(e,{at:o,voids:i});else if(!be.isCollapsed(o)){if(!s){var[,f]=be.edges(o),d=D.end(e,[]);St.equals(f,d)||(o=D.unhangRange(e,o,{voids:i}))}var[p,v]=be.edges(o),h=D.above(e,{match:le=>D.isBlock(e,le),at:p,voids:i}),g=D.above(e,{match:le=>D.isBlock(e,le),at:v,voids:i}),m=h&&g&&!se.equals(h[1],g[1]),y=se.equals(p.path,v.path),x=i?null:D.void(e,{at:p,mode:"highest"}),b=i?null:D.void(e,{at:v,mode:"highest"});if(x){var E=D.before(e,p);E&&h&&se.isAncestor(h[1],E.path)&&(p=E)}if(b){var S=D.after(e,v);S&&g&&se.isAncestor(g[1],S.path)&&(v=S)}var w,C=[];for(var _ of D.nodes(e,{at:o,voids:i})){var[O,P]=_;w&&se.compare(P,w)===0||(!i&&D.isVoid(e,O)||!se.isCommon(P,p.path)&&!se.isCommon(P,v.path))&&(C.push(_),w=P)}var F=Array.from(C,le=>{var[,ve]=le;return D.pathRef(e,ve)}),q=D.pointRef(e,p),ee=D.pointRef(e,v);if(!y&&!x){var J=q.current,[Z]=D.leaf(e,J),{path:V}=J,{offset:ie}=p,W=Z.text.slice(ie);W.length>0&&e.apply({type:"remove_text",path:V,offset:ie,text:W})}for(var de of F){var M=de.unref();pe.removeNodes(e,{at:M,voids:i})}if(!b){var A=ee.current,[N]=D.leaf(e,A),{path:I}=A,L=y?p.offset:0,Y=N.text.slice(L,v.offset);Y.length>0&&e.apply({type:"remove_text",path:I,offset:L,text:Y})}!y&&m&&ee.current&&q.current&&pe.mergeNodes(e,{at:ee.current,hanging:!0,voids:i});var Q=r?q.unref()||ee.unref():ee.unref()||q.unref();t.at==null&&Q&&pe.select(e,Q)}}})},insertFragment(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:a=!1}=r,{at:i=e.selection}=r;if(t.length&&i){if(be.isRange(i))if(n||(i=D.unhangRange(e,i)),be.isCollapsed(i))i=i.anchor;else{var[,o]=be.edges(i);if(!a&&D.void(e,{at:o}))return;var s=D.pointRef(e,o);pe.delete(e,{at:i}),i=s.unref()}else se.isPath(i)&&(i=D.start(e,i));if(a||!D.void(e,{at:i})){var u=D.above(e,{at:i,match:A=>D.isInline(e,A),mode:"highest",voids:a});if(u){var[,l]=u;D.isEnd(e,i,l)?i=D.after(e,l):D.isStart(e,i,l)&&(i=D.before(e,l))}var c=D.above(e,{match:A=>D.isBlock(e,A),at:i,voids:a}),[,f]=c,d=D.isStart(e,i,f),p=D.isEnd(e,i,f),v=d&&p,h=!d||d&&p,g=!p,[,m]=Ie.first({children:t},[]),[,y]=Ie.last({children:t},[]),x=[],b=A=>{var[N,I]=A;return I.length!==0&&(!!v||!(h&&se.isAncestor(I,m)&&qe.isElement(N)&&!e.isVoid(N)&&!e.isInline(N))&&!(g&&se.isAncestor(I,y)&&qe.isElement(N)&&!e.isVoid(N)&&!e.isInline(N)))};for(var E of Ie.nodes({children:t},{pass:b}))b(E)&&x.push(E);var S=[],w=[],C=[],_=!0,O=!1;for(var[P]of x)qe.isElement(P)&&!e.isInline(P)?(_=!1,O=!0,w.push(P)):_?S.push(P):C.push(P);var[F]=D.nodes(e,{at:i,match:A=>$e.isText(A)||D.isInline(e,A),mode:"highest",voids:a}),[,q]=F,ee=D.isStart(e,i,q),J=D.isEnd(e,i,q),Z=D.pathRef(e,p?se.next(f):f),V=D.pathRef(e,J?se.next(q):q),ie=D.pathRef(e,f);pe.splitNodes(e,{at:i,match:A=>O?D.isBlock(e,A):$e.isText(A)||D.isInline(e,A),mode:O?"lowest":"highest",voids:a});var W=D.pathRef(e,!ee||ee&&J?se.next(q):q);if(pe.insertNodes(e,S,{at:W.current,match:A=>$e.isText(A)||D.isInline(e,A),mode:"highest",voids:a}),v&&w.length&&pe.delete(e,{at:ie.unref(),voids:a}),pe.insertNodes(e,w,{at:Z.current,match:A=>D.isBlock(e,A),mode:"lowest",voids:a}),pe.insertNodes(e,C,{at:V.current,match:A=>$e.isText(A)||D.isInline(e,A),mode:"highest",voids:a}),!r.at){var de;de=C.length>0?se.previous(V.current):w.length>0?se.previous(Z.current):se.previous(W.current);var M=D.end(e,de);pe.select(e,M)}W.unref(),Z.unref(),V.unref()}}})},insertText(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{voids:n=!1}=r,{at:a=e.selection}=r;if(a){if(se.isPath(a)&&(a=D.range(e,a)),be.isRange(a))if(be.isCollapsed(a))a=a.anchor;else{var i=be.end(a);if(!n&&D.void(e,{at:i}))return;var o=D.pointRef(e,i);pe.delete(e,{at:a,voids:n}),a=o.unref(),pe.setSelection(e,{anchor:a,focus:a})}if(n||!D.void(e,{at:a})){var{path:s,offset:u}=a;t.length>0&&e.apply({type:"insert_text",path:s,offset:u,text:t})}}})}};function _L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function qy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_L(Object(r),!0).forEach(function(n){Is(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_L(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var pe=qy(qy(qy(qy({},zTe),GTe),qTe),XTe),z6="[object Map]",V6="[object Set]",YTe=/^\[object .+?Constructor\]$/,JTe=/^(?:0|[1-9]\d*)$/,ZTe="[\\ud800-\\udfff]",W6="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",G6="\\ud83c[\\udffb-\\udfff]",CJ="[^\\ud800-\\udfff]",_J="(?:\\ud83c[\\udde6-\\uddff]){2}",AJ="[\\ud800-\\udbff][\\udc00-\\udfff]",AL="(?:"+W6+"|"+G6+")?",QTe="[\\ufe0e\\ufe0f]?"+AL+("(?:\\u200d(?:"+[CJ,_J,AJ].join("|")+")[\\ufe0e\\ufe0f]?"+AL+")*"),e5e="(?:"+[CJ+W6+"?",W6,_J,AJ,ZTe].join("|")+")",t5e=RegExp(G6+"(?="+G6+")|"+e5e+QTe,"g"),r5e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),n5e=typeof mr=="object"&&mr&&mr.Object===Object&&mr,a5e=typeof self=="object"&&self&&self.Object===Object&&self,v0=n5e||a5e||Function("return this")();function i5e(e,t){return function(r,n){for(var a=-1,i=r?r.length:0,o=Array(i);++a<i;)o[a]=n(r[a],a,r);return o}(t,function(r){return e[r]})}function o5e(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function s5e(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}function u5e(e){return function(t){return r5e.test(t)}(e)?function(t){return t.match(t5e)||[]}(e):function(t){return t.split("")}(e)}var kL,TL,l5e=Function.prototype,i4=Object.prototype,S3=v0["__core-js_shared__"],DL=function(){var e=/[^.]+$/.exec(S3&&S3.keys&&S3.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),kJ=l5e.toString,Vb=i4.hasOwnProperty,Om=i4.toString,c5e=RegExp("^"+kJ.call(Vb).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),OL=v0.Symbol,C3=OL?OL.iterator:void 0,f5e=i4.propertyIsEnumerable,d5e=(kL=Object.keys,TL=Object,function(e){return kL(TL(e))}),K6=Fm(v0,"DataView"),q6=Fm(v0,"Map"),X6=Fm(v0,"Promise"),Y6=Fm(v0,"Set"),J6=Fm(v0,"WeakMap"),p5e=g0(K6),h5e=g0(q6),v5e=g0(X6),g5e=g0(Y6),m5e=g0(J6);function y5e(e,t){var r=TJ(e)||function(o){return function(s){return FJ(s)&&qO(s)}(o)&&Vb.call(o,"callee")&&(!f5e.call(o,"callee")||Om.call(o)=="[object Arguments]")}(e)?function(o,s){for(var u=-1,l=Array(o);++u<o;)l[u]=s(u);return l}(e.length,String):[],n=r.length,a=!!n;for(var i in e)!t&&!Vb.call(e,i)||a&&(i=="length"||w5e(i,n))||r.push(i);return r}function x5e(e){if(!OJ(e)||function(r){return!!DL&&DL in r}(e))return!1;var t=DJ(e)||function(r){var n=!1;if(r!=null&&typeof r.toString!="function")try{n=!!(r+"")}catch(a){}return n}(e)?c5e:YTe;return t.test(g0(e))}function b5e(e){if(r=(t=e)&&t.constructor,n=typeof r=="function"&&r.prototype||i4,t!==n)return d5e(e);var t,r,n,a=[];for(var i in Object(e))Vb.call(e,i)&&i!="constructor"&&a.push(i);return a}function Fm(e,t){var r=function(n,a){return n==null?void 0:n[a]}(e,t);return x5e(r)?r:void 0}var Mc=function(e){return Om.call(e)};function w5e(e,t){return!!(t=t==null?9007199254740991:t)&&(typeof e=="number"||JTe.test(e))&&e>-1&&e%1==0&&e<t}function g0(e){if(e!=null){try{return kJ.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(K6&&Mc(new K6(new ArrayBuffer(1)))!="[object DataView]"||q6&&Mc(new q6)!=z6||X6&&Mc(X6.resolve())!="[object Promise]"||Y6&&Mc(new Y6)!=V6||J6&&Mc(new J6)!="[object WeakMap]")&&(Mc=function(e){var t=Om.call(e),r=t=="[object Object]"?e.constructor:void 0,n=r?g0(r):void 0;if(n)switch(n){case p5e:return"[object DataView]";case h5e:return z6;case v5e:return"[object Promise]";case g5e:return V6;case m5e:return"[object WeakMap]"}return t});var TJ=Array.isArray;function qO(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!DJ(e)}function DJ(e){var t=OJ(e)?Om.call(e):"";return t=="[object Function]"||t=="[object GeneratorFunction]"}function OJ(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function FJ(e){return!!e&&typeof e=="object"}function E5e(e){return e?i5e(e,function(t){return qO(t)?y5e(t):b5e(t)}(e)):[]}var FL=function(e){if(!e)return[];if(qO(e))return function(r){return typeof r=="string"||!TJ(r)&&FJ(r)&&Om.call(r)=="[object String]"}(e)?u5e(e):function(r,n){var a=-1,i=r.length;for(n||(n=Array(i));++a<i;)n[a]=r[a];return n}(e);if(C3&&e[C3])return function(r){for(var n,a=[];!(n=r.next()).done;)a.push(n.value);return a}(e[C3]());var t=Mc(e);return(t==z6?o5e:t==V6?s5e:E5e)(e)};function BL(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function XO(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(r){e[r]===void 0?e[r]=t[r]:BL(t[r])&&BL(e[r])&&Object.keys(t[r]).length>0&&XO(e[r],t[r])})}var BJ={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Bm(){var e=typeof document<"u"?document:{};return XO(e,BJ),e}var S5e={document:BJ,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout<"u"&&clearTimeout(e)}};function m0(){var e=typeof window<"u"?window:{};return XO(e,S5e),e}function Z6(e){return Z6=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Z6(e)}function Wb(e,t){return Wb=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Wb(e,t)}function C5e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Q6(e,t,r){return Q6=C5e()?Reflect.construct:function(n,a,i){var o=[null];o.push.apply(o,a);var s=new(Function.bind.apply(n,o));return i&&Wb(s,i.prototype),s},Q6.apply(null,arguments)}function ek(e){var t=typeof Map=="function"?new Map:void 0;return ek=function(r){if(r===null||!function(a){return Function.toString.call(a).indexOf("[native code]")!==-1}(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return Q6(r,arguments,Z6(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Wb(n,r)},ek(e)}var gl=function(e){var t,r;function n(a){var i,o,s;return i=e.call.apply(e,[this].concat(a))||this,o=function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}(i),s=o.__proto__,Object.defineProperty(o,"__proto__",{get:function(){return s},set:function(u){s.__proto__=u}}),i}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n}(ek(Array));function o4(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(r){Array.isArray(r)?t.push.apply(t,o4(r)):t.push(r)}),t}function PJ(e,t){return Array.prototype.filter.call(e,t)}function te(e,t){var r=m0(),n=Bm(),a=[];if(!t&&e instanceof gl)return e;if(!e)return new gl(a);if(typeof e=="string"){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var o="div";i.indexOf("<li")===0&&(o="ul"),i.indexOf("<tr")===0&&(o="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(o="tr"),i.indexOf("<tbody")===0&&(o="table"),i.indexOf("<option")===0&&(o="select");var s=n.createElement(o);s.innerHTML=i;for(var u=0;u<s.childNodes.length;u+=1)a.push(s.childNodes[u])}else a=function(l,c){if(typeof l!="string")return[l];for(var f=[],d=c.querySelectorAll(l),p=0;p<d.length;p+=1)f.push(d[p]);return f}(e.trim(),t||n)}else if(e.nodeType||e===r||e===n)a.push(e);else if(Array.isArray(e)){if(e instanceof gl)return e;a=e}return new gl(function(l){for(var c=[],f=0;f<l.length;f+=1)c.indexOf(l[f])===-1&&c.push(l[f]);return c}(a))}function dp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=o4(t.map(function(a){return a.split(" ")}));return this.forEach(function(a){var i;(i=a.classList).add.apply(i,n)}),this}function pp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=o4(t.map(function(a){return a.split(" ")}));return this.forEach(function(a){var i;(i=a.classList).remove.apply(i,n)}),this}function hp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=o4(t.map(function(a){return a.split(" ")}));return PJ(this,function(a){return n.filter(function(i){return a.classList.contains(i)}).length>0}).length>0}function ao(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var r=0;r<this.length;r+=1)if(arguments.length===2)this[r].setAttribute(e,t);else for(var n in e)this[r][n]=e[n],this[r].setAttribute(n,e[n]);return this}function Gb(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function vp(){var e=this[0];if(e){var t,r={};if(e.dataset)for(var n in e.dataset)r[n]=e.dataset[n];else for(var a=0;a<e.attributes.length;a+=1){var i=e.attributes[a];i.name.indexOf("data-")>=0&&(r[t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,function(s,u){return u.toUpperCase()})]=i.value)}for(var o in r)r[o]==="false"?r[o]=!1:r[o]==="true"?r[o]=!0:parseFloat(r[o])===1*r[o]&&(r[o]*=1);return r}}function Cs(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var r=[],n=0;n<t.selectedOptions.length;n+=1)r.push(t.selectedOptions[n].value);return r}return t.value}for(var a=0;a<this.length;a+=1){var i=this[a];if(Array.isArray(e)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var o=0;o<i.options.length;o+=1)i.options[o].selected=e.indexOf(i.options[o].value)>=0;else i.value=e}return this}function _s(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=t[1],i=t[2],o=t[3];function s(h){var g=h.target;if(g){var m=h.target.dom7EventData||[];if(m.indexOf(h)<0&&m.unshift(h),te(g).is(a))i.apply(g,m);else for(var y=te(g).parents(),x=0;x<y.length;x+=1)te(y[x]).is(a)&&i.apply(y[x],m)}}function u(h){var g=h&&h.target&&h.target.dom7EventData||[];g.indexOf(h)<0&&g.unshift(h),i.apply(this,g)}typeof t[1]=="function"&&(n=t[0],i=t[1],o=t[2],a=void 0),o||(o=!1);for(var l,c=n.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(a)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:s}),d.addEventListener(p,s,o)}else for(l=0;l<c.length;l+=1){var v=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[v]||(d.dom7Listeners[v]=[]),d.dom7Listeners[v].push({listener:i,proxyListener:u}),d.addEventListener(v,u,o)}}return this}function PL(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=t[1],i=t[2],o=t[3];typeof t[1]=="function"&&(n=t[0],i=t[1],o=t[2],a=void 0),o||(o=!1);for(var s=n.split(" "),u=0;u<s.length;u+=1)for(var l=s[u],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!a&&f.dom7Listeners?d=f.dom7Listeners[l]:a&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var v=d[p];i&&v.listener===i||i&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===i?(f.removeEventListener(l,v.proxyListener,o),d.splice(p,1)):i||(f.removeEventListener(l,v.proxyListener,o),d.splice(p,1))}}return this}function Kb(){var e=m0();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function qb(){var e=m0();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function NL(){if(this.length>0){var e=m0(),t=Bm(),r=this[0],n=r.getBoundingClientRect(),a=t.body,i=r.clientTop||a.clientTop||0,o=r.clientLeft||a.clientLeft||0,s=r===e?e.scrollY:r.scrollTop,u=r===e?e.scrollX:r.scrollLeft;return{top:n.top+s-i,left:n.left+u-o}}return null}function gp(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Xb(){for(var e=m0(),t=0;t<this.length;t+=1){var r=this[t];r.style.display==="none"&&(r.style.display=""),e.getComputedStyle(r,null).getPropertyValue("display")==="none"&&(r.style.display="block")}return this}function Yb(e,t){var r,n=m0();if(arguments.length===1){if(typeof e!="string"){for(r=0;r<this.length;r+=1)for(var a in e)this[r].style[a]=e[a];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}if(arguments.length===2&&typeof e=="string"){for(r=0;r<this.length;r+=1)this[r].style[e]=t;return this}return this}function Jb(e){return e?(this.forEach(function(t,r){e.apply(t,[t,r])}),this):this}function IL(e){return te(PJ(this,e))}function Yl(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Zb(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function RL(e){var t,r,n=m0(),a=Bm(),i=this[0];if(!i||e===void 0)return!1;if(typeof e=="string"){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=te(e),r=0;r<t.length;r+=1)if(t[r]===i)return!0;return!1}if(e===a)return i===a;if(e===n)return i===n;if(e.nodeType||e instanceof gl){for(t=e.nodeType?[e]:e,r=0;r<t.length;r+=1)if(t[r]===i)return!0;return!1}return!1}function io(){for(var e,t=Bm(),r=0;r<arguments.length;r+=1){e=r<0||arguments.length<=r?void 0:arguments[r];for(var n=0;n<this.length;n+=1)if(typeof e=="string"){var a=t.createElement("div");for(a.innerHTML=e;a.firstChild;)this[n].appendChild(a.firstChild)}else if(e instanceof gl)for(var i=0;i<e.length;i+=1)this[n].appendChild(e[i]);else this[n].appendChild(e)}return this}function LL(e){var t,r,n=Bm();for(t=0;t<this.length;t+=1)if(typeof e=="string"){var a=n.createElement("div");for(a.innerHTML=e,r=a.childNodes.length-1;r>=0;r-=1)this[t].insertBefore(a.childNodes[r],this[t].childNodes[0])}else if(e instanceof gl)for(r=0;r<e.length;r+=1)this[t].insertBefore(e[r],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function mp(e){for(var t=[],r=0;r<this.length;r+=1)this[r].parentNode!==null&&(e?te(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode));return te(t)}function Qb(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].parentNode;n;)e?te(n).is(e)&&t.push(n):t.push(n),n=n.parentNode;return te(t)}function yp(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].querySelectorAll(e),a=0;a<n.length;a+=1)t.push(n[a]);return te(t)}function xp(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].children,a=0;a<n.length;a+=1)e&&!te(n[a]).is(e)||t.push(n[a]);return te(t)}function bp(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function wp(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var r=0;r<t.childNodes.length;r+=1)t.childNodes[r].parentNode&&t.childNodes[r].parentNode.removeChild(t.childNodes[r]);t.textContent=""}}return this}te.fn=gl.prototype;var _5e="resize scroll".split(" ");function NJ(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r[0]===void 0){for(var a=0;a<this.length;a+=1)_5e.indexOf(e)<0&&(e in this[a]?this[a][e]():te(this[a]).trigger(e));return this}return this.on.apply(this,[e].concat(r))}}var ML=NJ("click"),Jl=NJ("focus"),A5e="[object GeneratorFunction]",k5e=/^(?:0|[1-9]\d*)$/;function T5e(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}var s4=Object.prototype,tk=s4.hasOwnProperty,IJ=s4.toString,D5e=s4.propertyIsEnumerable,O5e=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object);function F5e(e,t){var r=RJ(e)||function(o){return function(s){return function(u){return!!u&&typeof u=="object"}(s)&&YO(s)}(o)&&tk.call(o,"callee")&&(!D5e.call(o,"callee")||IJ.call(o)=="[object Arguments]")}(e)?function(o,s){for(var u=-1,l=Array(o);++u<o;)l[u]=s(u);return l}(e.length,String):[],n=r.length,a=!!n;for(var i in e)!t&&!tk.call(e,i)||a&&(i=="length"||I5e(i,n))||r.push(i);return r}var jL,B5e=(jL=function(e,t){return e&&P5e(e,t,R5e)},function(e,t){if(e==null)return e;if(!YO(e))return jL(e,t);for(var r=e.length,n=-1,a=Object(e);++n<r&&t(a[n],n,a)!==!1;);return e}),P5e=function(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var u=o[e?s:++a];if(r(i[u],u,i)===!1)break}return t}}();function N5e(e){if(r=(t=e)&&t.constructor,n=typeof r=="function"&&r.prototype||s4,t!==n)return O5e(e);var t,r,n,a=[];for(var i in Object(e))tk.call(e,i)&&i!="constructor"&&a.push(i);return a}function I5e(e,t){return!!(t=t==null?9007199254740991:t)&&(typeof e=="number"||k5e.test(e))&&e>-1&&e%1==0&&e<t}var RJ=Array.isArray;function YO(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!function(t){var r=function(n){var a=typeof n;return!!n&&(a=="object"||a=="function")}(t)?IJ.call(t):"";return r=="[object Function]"||r==A5e}(e)}function R5e(e){return YO(e)?F5e(e):N5e(e)}function L5e(e){return e}var JO=function(e,t){return(RJ(e)?T5e:B5e)(e,typeof t=="function"?t:L5e)};let LJ=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let n=63&r[e];t+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return t};var M5e=/^\s+|\s+$/g,j5e=/^[-+]0x[0-9a-f]+$/i,$5e=/^0b[01]+$/i,U5e=/^0o[0-7]+$/i,H5e=parseInt,z5e=typeof mr=="object"&&mr&&mr.Object===Object&&mr,V5e=typeof self=="object"&&self&&self.Object===Object&&self,W5e=z5e||V5e||Function("return this")(),G5e=Object.prototype.toString,K5e=Math.max,q5e=Math.min,_3=function(){return W5e.Date.now()};function X5e(e,t,r){var n,a,i,o,s,u,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError("Expected a function");function p(x){var b=n,E=a;return n=a=void 0,l=x,o=e.apply(E,b)}function v(x){return l=x,s=setTimeout(g,t),c?p(x):o}function h(x){var b=x-u;return u===void 0||b>=t||b<0||f&&x-l>=i}function g(){var x=_3();if(h(x))return m(x);s=setTimeout(g,function(b){var E=t-(b-u);return f?q5e(E,i-(b-l)):E}(x))}function m(x){return s=void 0,d&&n?p(x):(n=a=void 0,o)}function y(){var x=_3(),b=h(x);if(n=arguments,a=this,u=x,b){if(s===void 0)return v(u);if(f)return s=setTimeout(g,t),p(u)}return s===void 0&&(s=setTimeout(g,t)),o}return t=$L(t)||0,ew(r)&&(c=!!r.leading,i=(f="maxWait"in r)?K5e($L(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d),y.cancel=function(){s!==void 0&&clearTimeout(s),l=0,n=u=a=s=void 0},y.flush=function(){return s===void 0?o:m(_3())},y}function ew(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function $L(e){if(typeof e=="number")return e;if(function(n){return typeof n=="symbol"||function(a){return!!a&&typeof a=="object"}(n)&&G5e.call(n)=="[object Symbol]"}(e))return NaN;if(ew(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ew(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(M5e,"");var r=$5e.test(e);return r||U5e.test(e)?H5e(e.slice(2),r?2:8):j5e.test(e)?NaN:+e}var Wf=function(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError("Expected a function");return ew(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),X5e(e,t,{leading:n,maxWait:t,trailing:a})};const Y5e={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,r){return document.createElementNS(e,t,r)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,r){e.insertBefore(t,r)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function v1(e,t,r,n,a){return{sel:e,data:t,children:r,text:n,elm:a,key:t===void 0?void 0:t.key}}const rk=Array.isArray;function wx(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function A3(e){return e===void 0}function di(e){return e!==void 0}const UL=v1("",{},[],void 0,void 0);function Fh(e,t){var r,n;const a=e.key===t.key,i=((r=e.data)===null||r===void 0?void 0:r.is)===((n=t.data)===null||n===void 0?void 0:n.is);return e.sel===t.sel&&a&&i}function J5e(e,t,r){var n;const a={};for(let i=t;i<=r;++i){const o=(n=e[i])===null||n===void 0?void 0:n.key;o!==void 0&&(a[o]=i)}return a}const Z5e=["create","update","remove","destroy","pre","post"];function Q5e(e,t){const r={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},n=t!==void 0?t:Y5e;for(const f of Z5e)for(const d of e){const p=d[f];p!==void 0&&r[f].push(p)}function a(f){const d=f.id?"#"+f.id:"",p=f.getAttribute("class"),v=p?"."+p.split(" ").join("."):"";return v1(n.tagName(f).toLowerCase()+d+v,{},[],void 0,f)}function i(f,d){return function(){if(--d==0){const p=n.parentNode(f);n.removeChild(p,f)}}}function o(f,d){var p,v;let h,g=f.data;if(g!==void 0){const x=(p=g.hook)===null||p===void 0?void 0:p.init;di(x)&&(x(f),g=f.data)}const m=f.children,y=f.sel;if(y==="!")A3(f.text)&&(f.text=""),f.elm=n.createComment(f.text);else if(y!==void 0){const x=y.indexOf("#"),b=y.indexOf(".",x),E=x>0?x:y.length,S=b>0?b:y.length,w=x!==-1||b!==-1?y.slice(0,Math.min(E,S)):y,C=f.elm=di(g)&&di(h=g.ns)?n.createElementNS(h,w,g):n.createElement(w,g);for(E<S&&C.setAttribute("id",y.slice(E+1,S)),b>0&&C.setAttribute("class",y.slice(S+1).replace(/\./g," ")),h=0;h<r.create.length;++h)r.create[h](UL,f);if(rk(m))for(h=0;h<m.length;++h){const O=m[h];O!=null&&n.appendChild(C,o(O,d))}else wx(f.text)&&n.appendChild(C,n.createTextNode(f.text));const _=f.data.hook;di(_)&&((v=_.create)===null||v===void 0||v.call(_,UL,f),_.insert&&d.push(f))}else f.elm=n.createTextNode(f.text);return f.elm}function s(f,d,p,v,h,g){for(;v<=h;++v){const m=p[v];m!=null&&n.insertBefore(f,o(m,g),d)}}function u(f){var d,p;const v=f.data;if(v!==void 0){(p=(d=v==null?void 0:v.hook)===null||d===void 0?void 0:d.destroy)===null||p===void 0||p.call(d,f);for(let h=0;h<r.destroy.length;++h)r.destroy[h](f);if(f.children!==void 0)for(let h=0;h<f.children.length;++h){const g=f.children[h];g!=null&&typeof g!="string"&&u(g)}}}function l(f,d,p,v){for(var h,g;p<=v;++p){let m,y;const x=d[p];if(x!=null)if(di(x.sel)){u(x),m=r.remove.length+1,y=i(x.elm,m);for(let E=0;E<r.remove.length;++E)r.remove[E](x,y);const b=(g=(h=x==null?void 0:x.data)===null||h===void 0?void 0:h.hook)===null||g===void 0?void 0:g.remove;di(b)?b(x,y):y()}else n.removeChild(f,x.elm)}}function c(f,d,p){var v,h,g,m,y;const x=(v=d.data)===null||v===void 0?void 0:v.hook;(h=x==null?void 0:x.prepatch)===null||h===void 0||h.call(x,f,d);const b=d.elm=f.elm,E=f.children,S=d.children;if(f!==d){if(d.data!==void 0){for(let w=0;w<r.update.length;++w)r.update[w](f,d);(m=(g=d.data.hook)===null||g===void 0?void 0:g.update)===null||m===void 0||m.call(g,f,d)}A3(d.text)?di(E)&&di(S)?E!==S&&function(w,C,_,O){let P,F,q,ee,J=0,Z=0,V=C.length-1,ie=C[0],W=C[V],de=_.length-1,M=_[0],A=_[de];for(;J<=V&&Z<=de;)ie==null?ie=C[++J]:W==null?W=C[--V]:M==null?M=_[++Z]:A==null?A=_[--de]:Fh(ie,M)?(c(ie,M,O),ie=C[++J],M=_[++Z]):Fh(W,A)?(c(W,A,O),W=C[--V],A=_[--de]):Fh(ie,A)?(c(ie,A,O),n.insertBefore(w,ie.elm,n.nextSibling(W.elm)),ie=C[++J],A=_[--de]):Fh(W,M)?(c(W,M,O),n.insertBefore(w,W.elm,ie.elm),W=C[--V],M=_[++Z]):(P===void 0&&(P=J5e(C,J,V)),F=P[M.key],A3(F)?n.insertBefore(w,o(M,O),ie.elm):(q=C[F],q.sel!==M.sel?n.insertBefore(w,o(M,O),ie.elm):(c(q,M,O),C[F]=void 0,n.insertBefore(w,q.elm,ie.elm))),M=_[++Z]);(J<=V||Z<=de)&&(J>V?(ee=_[de+1]==null?null:_[de+1].elm,s(w,ee,_,Z,de,O)):l(w,C,J,V))}(b,E,S,p):di(S)?(di(f.text)&&n.setTextContent(b,""),s(b,null,S,0,S.length-1,p)):di(E)?l(b,E,0,E.length-1):di(f.text)&&n.setTextContent(b,""):f.text!==d.text&&(di(E)&&l(b,E,0,E.length-1),n.setTextContent(b,d.text)),(y=x==null?void 0:x.postpatch)===null||y===void 0||y.call(x,f,d)}}return function(f,d){let p,v,h;const g=[];for(p=0;p<r.pre.length;++p)r.pre[p]();for(function(m){return m.sel!==void 0}(f)||(f=a(f)),Fh(f,d)?c(f,d,g):(v=f.elm,h=n.parentNode(v),o(d,g),h!==null&&(n.insertBefore(h,d.elm,n.nextSibling(v)),l(h,[f],0,0))),p=0;p<g.length;++p)g[p].data.hook.insert(g[p]);for(p=0;p<r.post.length;++p)r.post[p]();return d}}function MJ(e,t,r){if(e.ns="http://www.w3.org/2000/svg",r!=="foreignObject"&&t!==void 0)for(let n=0;n<t.length;++n){const a=t[n].data;a!==void 0&&MJ(a,t[n].children,t[n].sel)}}function Ep(e,t,r){let n,a,i,o={};if(r!==void 0?(t!==null&&(o=t),rk(r)?n=r:wx(r)?a=r.toString():r&&r.sel&&(n=[r])):t!=null&&(rk(t)?n=t:wx(t)?a=t.toString():t&&t.sel?n=[t]:o=t),n!==void 0)for(i=0;i<n.length;++i)wx(n[i])&&(n[i]=v1(void 0,void 0,void 0,n[i],void 0));return e[0]!=="s"||e[1]!=="v"||e[2]!=="g"||e.length!==3&&e[3]!=="."&&e[3]!=="#"||MJ(o,n,e),v1(e,o,n,a,void 0)}function HL(e,t){let r;const n=t.elm;let a=e.data.attrs,i=t.data.attrs;if((a||i)&&a!==i){for(r in a=a||{},i=i||{},i){const o=i[r];a[r]!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r.charCodeAt(0)!==120?n.setAttribute(r,o):r.charCodeAt(3)===58?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,o):r.charCodeAt(5)===58?n.setAttributeNS("http://www.w3.org/1999/xlink",r,o):n.setAttribute(r,o))}for(r in a)r in i||n.removeAttribute(r)}}const eDe={create:HL,update:HL};function zL(e,t){let r,n;const a=t.elm;let i=e.data.class,o=t.data.class;if((i||o)&&i!==o){for(n in i=i||{},o=o||{},i)i[n]&&!Object.prototype.hasOwnProperty.call(o,n)&&a.classList.remove(n);for(n in o)r=o[n],r!==i[n]&&a.classList[r?"add":"remove"](n)}}const tDe={create:zL,update:zL},VL=/[A-Z]/g;function WL(e,t){const r=t.elm;let n,a=e.data.dataset,i=t.data.dataset;if(!a&&!i||a===i)return;a=a||{},i=i||{};const o=r.dataset;for(n in a)i[n]||(o?n in o&&delete o[n]:r.removeAttribute("data-"+n.replace(VL,"-$&").toLowerCase()));for(n in i)a[n]!==i[n]&&(o?o[n]=i[n]:r.setAttribute("data-"+n.replace(VL,"-$&").toLowerCase(),i[n]))}const rDe={create:WL,update:WL};function jJ(e,t,r){if(typeof e=="function")e.call(t,r,t);else if(typeof e=="object")for(let n=0;n<e.length;n++)jJ(e[n],t,r)}function nDe(e,t){const r=e.type,n=t.data.on;n&&n[r]&&jJ(n[r],t,e)}function k3(e,t){const r=e.data.on,n=e.listener,a=e.elm,i=t&&t.data.on,o=t&&t.elm;let s;if(r!==i){if(r&&n)if(i)for(s in r)i[s]||a.removeEventListener(s,n,!1);else for(s in r)a.removeEventListener(s,n,!1);if(i){const u=t.listener=e.listener||function l(c){nDe(c,l.vnode)};if(u.vnode=t,r)for(s in i)r[s]||o.addEventListener(s,u,!1);else for(s in i)o.addEventListener(s,u,!1)}}}const aDe={create:k3,update:k3,destroy:k3};function GL(e,t){let r,n,a;const i=t.elm;let o=e.data.props,s=t.data.props;if((o||s)&&o!==s)for(r in o=o||{},s=s||{},s)n=s[r],a=o[r],a===n||r==="value"&&i[r]===n||(i[r]=n)}const iDe={create:GL,update:GL},KL=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let T3=!1;function oDe(e,t,r){(function(n){KL(function(){KL(n)})})(function(){e[t]=r})}function qL(e,t){let r,n;const a=t.elm;let i=e.data.style,o=t.data.style;if(!i&&!o||i===o)return;i=i||{},o=o||{};const s="delayed"in i;for(n in i)o[n]||(n[0]==="-"&&n[1]==="-"?a.style.removeProperty(n):a.style[n]="");for(n in o)if(r=o[n],n==="delayed"&&o.delayed)for(const u in o.delayed)r=o.delayed[u],s&&r===i.delayed[u]||oDe(a.style,u,r);else n!=="remove"&&r!==i[n]&&(n[0]==="-"&&n[1]==="-"?a.style.setProperty(n,r):a.style[n]=r)}const sDe={pre:function(){T3=!1},create:qL,update:qL,destroy:function(e){let t,r;const n=e.elm,a=e.data.style;if(a&&(t=a.destroy))for(r in t)n.style[r]=t[r]},remove:function(e,t){const r=e.data.style;if(!r||!r.remove)return void t();let n;T3||(e.elm.offsetLeft,T3=!0);const a=e.elm;let i=0;const o=r.remove;let s=0;const u=[];for(n in o)u.push(n),a.style[n]=o[n];const l=getComputedStyle(a)["transition-property"].split(", ");for(;i<l.length;++i)u.indexOf(l[i])!==-1&&s++;a.addEventListener("transitionend",function(c){c.target===a&&--s,s===0&&t()})}};function $J(e,t){for(const r of e)r!=null&&r!==!1&&r!==""&&(Array.isArray(r)?$J(r,t):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?t.push(v1(void 0,void 0,void 0,String(r),void 0)):t.push(r));return t}function ot(e,t,...r){const n=$J(r,[]);return typeof e=="function"?e(t,n):n.length===1&&!n[0].sel&&n[0].text?Ep(e,t,n[0].text):Ep(e,t,n)}ot||(ot={});var uDe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lDe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,UJ="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",cDe="[\\ud800-\\udfff]",XL="["+UJ+"]",tw="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",HJ="\\d+",fDe="[\\u2700-\\u27bf]",zJ="[a-z\\xdf-\\xf6\\xf8-\\xff]",VJ="[^\\ud800-\\udfff"+UJ+HJ+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",nk="\\ud83c[\\udffb-\\udfff]",WJ="[^\\ud800-\\udfff]",ZO="(?:\\ud83c[\\udde6-\\uddff]){2}",QO="[\\ud800-\\udbff][\\udc00-\\udfff]",pd="[A-Z\\xc0-\\xd6\\xd8-\\xde]",YL="(?:"+zJ+"|"+VJ+")",dDe="(?:"+pd+"|"+VJ+")",JL="(?:"+tw+"|"+nk+")?",GJ="[\\ufe0e\\ufe0f]?"+JL+("(?:\\u200d(?:"+[WJ,ZO,QO].join("|")+")[\\ufe0e\\ufe0f]?"+JL+")*"),pDe="(?:"+[fDe,ZO,QO].join("|")+")"+GJ,hDe="(?:"+[WJ+tw+"?",tw,ZO,QO,cDe].join("|")+")",vDe=RegExp("['’]","g"),gDe=RegExp(tw,"g"),mDe=RegExp(nk+"(?="+nk+")|"+hDe+GJ,"g"),yDe=RegExp([pd+"?"+zJ+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[XL,pd,"$"].join("|")+")",dDe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[XL,pd+YL,"$"].join("|")+")",pd+"?"+YL+"+(?:['’](?:d|ll|m|re|s|t|ve))?",pd+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",HJ,pDe].join("|"),"g"),xDe=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),bDe=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wDe=typeof mr=="object"&&mr&&mr.Object===Object&&mr,EDe=typeof self=="object"&&self&&self.Object===Object&&self,SDe=wDe||EDe||Function("return this")(),D3,CDe=(D3={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return D3==null?void 0:D3[e]});function KJ(e){return xDe.test(e)}function _De(e){return KJ(e)?function(t){return t.match(mDe)||[]}(e):function(t){return t.split("")}(e)}var ADe=Object.prototype.toString,ZL=SDe.Symbol,QL=ZL?ZL.prototype:void 0,eM=QL?QL.toString:void 0;function kDe(e){if(typeof e=="string")return e;if(function(r){return typeof r=="symbol"||function(n){return!!n&&typeof n=="object"}(r)&&ADe.call(r)=="[object Symbol]"}(e))return eM?eM.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function TDe(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:function(a,i,o){var s=-1,u=a.length;i<0&&(i=-i>u?0:u+i),(o=o>u?u:o)<0&&(o+=u),u=i>o?0:o-i>>>0,i>>>=0;for(var l=Array(u);++s<u;)l[s]=a[s+i];return l}(e,t,r)}function Ex(e){return e==null?"":kDe(e)}var tM,DDe=(tM=function(e,t,r){return t=t.toLowerCase(),e+(r?ODe(Ex(t).toLowerCase()):t)},function(e){return function(t,r,n,a){var i=-1,o=t?t.length:0;for(a&&o&&(n=t[++i]);++i<o;)n=r(n,t[i],i,t);return n}(function(t,r,n){return t=Ex(t),(r=n?void 0:r)===void 0?function(a){return bDe.test(a)}(t)?function(a){return a.match(yDe)||[]}(t):function(a){return a.match(uDe)||[]}(t):t.match(r)||[]}(function(t){return(t=Ex(t))&&t.replace(lDe,CDe).replace(gDe,"")}(e).replace(vDe,"")),tM,"")}),rM,ODe=(rM="toUpperCase",function(e){var t=KJ(e=Ex(e))?_De(e):void 0,r=t?t[0]:e.charAt(0),n=t?TDe(t,1).join(""):e.slice(1);return r[rM]()+n});for(var FDe=DDe,BDe=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),O3={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},qJ={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:BDe?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},eF={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Xy=1;Xy<20;Xy++)eF["f"+Xy]=111+Xy;function XJ(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(i){return function(o,s){var u=s&&s.byKey,l={},c=(o=o.replace("++","+add")).split("+"),f=c.length;for(var d in O3)l[O3[d]]=!1;var p=!0,v=!1,h=void 0;try{for(var g,m=c[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var y=g.value,x=y.endsWith("?")&&y.length>1;x&&(y=y.slice(0,-1));var b=YJ(y),E=O3[b];if(y.length>1&&!E&&!qJ[y]&&!eF[b])throw new TypeError('Unknown modifier: "'+y+'"');f!==1&&E||(u?l.key=b:l.which=PDe(y)),E&&(l[E]=!x||null)}}catch(S){v=!0,h=S}finally{try{!p&&m.return&&m.return()}finally{if(v)throw h}}return l}(i,t)}),a=function(i){return n.some(function(o){return function(s,u){for(var l in s){var c=s[l],f=void 0;if(c!=null&&((f=l==="key"&&u.key!=null?u.key.toLowerCase():l==="which"?c===91&&u.which===93?91:u.which:u[l])!=null||c!==!1)&&f!==c)return!1}return!0}(o,i)})};return r==null?a:a(r)}function PDe(e){return e=YJ(e),eF[e]||e.toUpperCase().charCodeAt(0)}function YJ(e){return e=e.toLowerCase(),e=qJ[e]||e}var NDe=XJ,F3=function(e,t){return XJ(e,{byKey:!0},t)},IDe=/^\s+|\s+$/g,RDe=/^[-+]0x[0-9a-f]+$/i,LDe=/^0b[01]+$/i,MDe=/^0o[0-7]+$/i,jDe=parseInt,$De=typeof mr=="object"&&mr&&mr.Object===Object&&mr,UDe=typeof self=="object"&&self&&self.Object===Object&&self,HDe=$De||UDe||Function("return this")(),zDe=Object.prototype.toString,VDe=Math.max,WDe=Math.min,B3=function(){return HDe.Date.now()};function ak(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function nM(e){if(typeof e=="number")return e;if(function(n){return typeof n=="symbol"||function(a){return!!a&&typeof a=="object"}(n)&&zDe.call(n)=="[object Symbol]"}(e))return NaN;if(ak(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ak(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(IDe,"");var r=LDe.test(e);return r||MDe.test(e)?jDe(e.slice(2),r?2:8):RDe.test(e)?NaN:+e}var I0,JJ=function(e,t,r){var n,a,i,o,s,u,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError("Expected a function");function p(x){var b=n,E=a;return n=a=void 0,l=x,o=e.apply(E,b)}function v(x){return l=x,s=setTimeout(g,t),c?p(x):o}function h(x){var b=x-u;return u===void 0||b>=t||b<0||f&&x-l>=i}function g(){var x=B3();if(h(x))return m(x);s=setTimeout(g,function(b){var E=t-(b-u);return f?WDe(E,i-(b-l)):E}(x))}function m(x){return s=void 0,d&&n?p(x):(n=a=void 0,o)}function y(){var x=B3(),b=h(x);if(n=arguments,a=this,u=x,b){if(s===void 0)return v(u);if(f)return s=setTimeout(g,t),p(u)}return s===void 0&&(s=setTimeout(g,t)),o}return t=nM(t)||0,ak(r)&&(c=!!r.leading,i=(f="maxWait"in r)?VDe(nM(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d),y.cancel=function(){s!==void 0&&clearTimeout(s),l=0,n=u=a=s=void 0},y.flush=function(){return s===void 0?o:m(B3())},y},ZJ=p0(function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,a="[object Arguments]",i="[object Boolean]",o="[object Date]",s="[object Function]",u="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",v="[object Set]",h="[object String]",g="[object Symbol]",m="[object WeakMap]",y="[object ArrayBuffer]",x="[object DataView]",b="[object Float32Array]",E="[object Float64Array]",S="[object Int8Array]",w="[object Int16Array]",C="[object Int32Array]",_="[object Uint8Array]",O="[object Uint8ClampedArray]",P="[object Uint16Array]",F="[object Uint32Array]",q=/\w*$/,ee=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,Z={};Z[a]=Z["[object Array]"]=Z[y]=Z[x]=Z[i]=Z[o]=Z[b]=Z[E]=Z[S]=Z[w]=Z[C]=Z[l]=Z[c]=Z[f]=Z[p]=Z[v]=Z[h]=Z[g]=Z[_]=Z[O]=Z[P]=Z[F]=!0,Z["[object Error]"]=Z[s]=Z[m]=!1;var V=typeof mr=="object"&&mr&&mr.Object===Object&&mr,ie=typeof self=="object"&&self&&self.Object===Object&&self,W=V||ie||Function("return this")(),de=t&&!t.nodeType&&t,M=de&&e&&!e.nodeType&&e,A=M&&M.exports===de;function N(U,ne){return U.set(ne[0],ne[1]),U}function I(U,ne){return U.add(ne),U}function L(U,ne,ye,me){var Ae=-1,Ue=U?U.length:0;for(me&&Ue&&(ye=U[++Ae]);++Ae<Ue;)ye=ne(ye,U[Ae],Ae,U);return ye}function Y(U){var ne=!1;if(U!=null&&typeof U.toString!="function")try{ne=!!(U+"")}catch(ye){}return ne}function Q(U){var ne=-1,ye=Array(U.size);return U.forEach(function(me,Ae){ye[++ne]=[Ae,me]}),ye}function le(U,ne){return function(ye){return U(ne(ye))}}function ve(U){var ne=-1,ye=Array(U.size);return U.forEach(function(me){ye[++ne]=me}),ye}var he=Array.prototype,fe=Function.prototype,z=Object.prototype,je=W["__core-js_shared__"],Te=function(){var U=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),Ne=fe.toString,He=z.hasOwnProperty,we=z.toString,Je=RegExp("^"+Ne.call(He).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=A?W.Buffer:void 0,_t=W.Symbol,Qe=W.Uint8Array,cr=le(Object.getPrototypeOf,Object),zt=Object.create,Se=z.propertyIsEnumerable,at=he.splice,Rt=Object.getOwnPropertySymbols,fr=ut?ut.isBuffer:void 0,It=le(Object.keys,Object),Dr=Ii(W,"DataView"),Ze=Ii(W,"Map"),wt=Ii(W,"Promise"),Vt=Ii(W,"Set"),Ft=Ii(W,"WeakMap"),ir=Ii(Object,"create"),An=j(Dr),qo=j(Ze),xe=j(wt),_e=j(Vt),Ve=j(Ft),ft=_t?_t.prototype:void 0,Or=ft?ft.valueOf:void 0;function dr(U){var ne=-1,ye=U?U.length:0;for(this.clear();++ne<ye;){var me=U[ne];this.set(me[0],me[1])}}function Er(U){var ne=-1,ye=U?U.length:0;for(this.clear();++ne<ye;){var me=U[ne];this.set(me[0],me[1])}}function Zt(U){var ne=-1,ye=U?U.length:0;for(this.clear();++ne<ye;){var me=U[ne];this.set(me[0],me[1])}}function tr(U){this.__data__=new Er(U)}function ci(U,ne){var ye=k(U)||function(rt){return function(et){return function(Lt){return!!Lt&&typeof Lt=="object"}(et)&&H(et)}(rt)&&He.call(rt,"callee")&&(!Se.call(rt,"callee")||we.call(rt)==a)}(U)?function(rt,et){for(var Lt=-1,Kr=Array(rt);++Lt<rt;)Kr[Lt]=et(Lt);return Kr}(U.length,String):[],me=ye.length,Ae=!!me;for(var Ue in U)!ne&&!He.call(U,Ue)||Ae&&(Ue=="length"||G(Ue,me))||ye.push(Ue);return ye}function _0(U,ne,ye){var me=U[ne];He.call(U,ne)&&K(me,ye)&&(ye!==void 0||ne in U)||(U[ne]=ye)}function Ta(U,ne){for(var ye=U.length;ye--;)if(K(U[ye][0],ne))return ye;return-1}function bc(U,ne,ye,me,Ae,Ue,rt){var et;if(me&&(et=Ue?me(U,Ae,Ue,rt):me(U)),et!==void 0)return et;if(!ue(U))return U;var Lt=k(U);if(Lt){if(et=function(nt){var Et=nt.length,Qr=nt.constructor(Et);return Et&&typeof nt[0]=="string"&&He.call(nt,"index")&&(Qr.index=nt.index,Qr.input=nt.input),Qr}(U),!ne)return function(nt,Et){var Qr=-1,Bt=nt.length;for(Et||(Et=Array(Bt));++Qr<Bt;)Et[Qr]=nt[Qr];return Et}(U,et)}else{var Kr=B(U),fi=Kr==s||Kr==u;if(ae(U))return function(nt,Et){if(Et)return nt.slice();var Qr=new nt.constructor(nt.length);return nt.copy(Qr),Qr}(U,ne);if(Kr==f||Kr==a||fi&&!Ue){if(Y(U))return Ue?U:{};if(et=function(nt){return typeof nt.constructor!="function"||R(nt)?{}:(Et=cr(nt),ue(Et)?zt(Et):{});var Et}(fi?{}:U),!ne)return function(nt,Et){return wu(nt,wc(nt),Et)}(U,function(nt,Et){return nt&&wu(Et,oe(Et),nt)}(et,U))}else{if(!Z[Kr])return Ue?U:{};et=function(nt,Et,Qr,Bt){var Wt=nt.constructor;switch(Et){case y:return bu(nt);case i:case o:return new Wt(+nt);case x:return function(Gt,qr){var Oa=qr?bu(Gt.buffer):Gt.buffer;return new Gt.constructor(Oa,Gt.byteOffset,Gt.byteLength)}(nt,Bt);case b:case E:case S:case w:case C:case _:case O:case P:case F:return function(Gt,qr){var Oa=qr?bu(Gt.buffer):Gt.buffer;return new Gt.constructor(Oa,Gt.byteOffset,Gt.length)}(nt,Bt);case l:return function(Gt,qr,Oa){return L(qr?Oa(Q(Gt),!0):Q(Gt),N,new Gt.constructor)}(nt,Bt,Qr);case c:case h:return new Wt(nt);case p:return function(Gt){var qr=new Gt.constructor(Gt.source,q.exec(Gt));return qr.lastIndex=Gt.lastIndex,qr}(nt);case v:return function(Gt,qr,Oa){return L(qr?Oa(ve(Gt),!0):ve(Gt),I,new Gt.constructor)}(nt,Bt,Qr);case g:return function(Gt){return Or?Object(Or.call(Gt)):{}}(nt)}}(U,Kr,bc,ne)}}rt||(rt=new tr);var Da=rt.get(U);if(Da)return Da;if(rt.set(U,et),!Lt)var ca=ye?function(nt){return function(Et,Qr,Bt){var Wt=Qr(Et);return k(Et)?Wt:function(Gt,qr){for(var Oa=-1,za=qr.length,vo=Gt.length;++Oa<za;)Gt[vo+Oa]=qr[Oa];return Gt}(Wt,Bt(Et))}(nt,oe,wc)}(U):oe(U);return function(nt,Et){for(var Qr=-1,Bt=nt?nt.length:0;++Qr<Bt&&Et(nt[Qr],Qr,nt)!==!1;);}(ca||U,function(nt,Et){ca&&(nt=U[Et=nt]),_0(et,Et,bc(nt,ne,ye,me,Et,U,rt))}),et}function po(U){return!(!ue(U)||function(ne){return!!Te&&Te in ne}(U))&&(re(U)||Y(U)?Je:ee).test(j(U))}function bu(U){var ne=new U.constructor(U.byteLength);return new Qe(ne).set(new Qe(U)),ne}function wu(U,ne,ye,me){ye||(ye={});for(var Ae=-1,Ue=ne.length;++Ae<Ue;){var rt=ne[Ae],et=me?me(ye[rt],U[rt],rt,ye,U):void 0;_0(ye,rt,et===void 0?U[rt]:et)}return ye}function ho(U,ne){var ye,me,Ae=U.__data__;return((me=typeof(ye=ne))=="string"||me=="number"||me=="symbol"||me=="boolean"?ye!=="__proto__":ye===null)?Ae[typeof ne=="string"?"string":"hash"]:Ae.map}function Ii(U,ne){var ye=function(me,Ae){return me==null?void 0:me[Ae]}(U,ne);return po(ye)?ye:void 0}dr.prototype.clear=function(){this.__data__=ir?ir(null):{}},dr.prototype.delete=function(U){return this.has(U)&&delete this.__data__[U]},dr.prototype.get=function(U){var ne=this.__data__;if(ir){var ye=ne[U];return ye===r?void 0:ye}return He.call(ne,U)?ne[U]:void 0},dr.prototype.has=function(U){var ne=this.__data__;return ir?ne[U]!==void 0:He.call(ne,U)},dr.prototype.set=function(U,ne){return this.__data__[U]=ir&&ne===void 0?r:ne,this},Er.prototype.clear=function(){this.__data__=[]},Er.prototype.delete=function(U){var ne=this.__data__,ye=Ta(ne,U);return!(ye<0)&&(ye==ne.length-1?ne.pop():at.call(ne,ye,1),!0)},Er.prototype.get=function(U){var ne=this.__data__,ye=Ta(ne,U);return ye<0?void 0:ne[ye][1]},Er.prototype.has=function(U){return Ta(this.__data__,U)>-1},Er.prototype.set=function(U,ne){var ye=this.__data__,me=Ta(ye,U);return me<0?ye.push([U,ne]):ye[me][1]=ne,this},Zt.prototype.clear=function(){this.__data__={hash:new dr,map:new(Ze||Er),string:new dr}},Zt.prototype.delete=function(U){return ho(this,U).delete(U)},Zt.prototype.get=function(U){return ho(this,U).get(U)},Zt.prototype.has=function(U){return ho(this,U).has(U)},Zt.prototype.set=function(U,ne){return ho(this,U).set(U,ne),this},tr.prototype.clear=function(){this.__data__=new Er},tr.prototype.delete=function(U){return this.__data__.delete(U)},tr.prototype.get=function(U){return this.__data__.get(U)},tr.prototype.has=function(U){return this.__data__.has(U)},tr.prototype.set=function(U,ne){var ye=this.__data__;if(ye instanceof Er){var me=ye.__data__;if(!Ze||me.length<199)return me.push([U,ne]),this;ye=this.__data__=new Zt(me)}return ye.set(U,ne),this};var wc=Rt?le(Rt,Object):function(){return[]},B=function(U){return we.call(U)};function G(U,ne){return!!(ne=ne==null?n:ne)&&(typeof U=="number"||J.test(U))&&U>-1&&U%1==0&&U<ne}function R(U){var ne=U&&U.constructor;return U===(typeof ne=="function"&&ne.prototype||z)}function j(U){if(U!=null){try{return Ne.call(U)}catch(ne){}try{return U+""}catch(ne){}}return""}function K(U,ne){return U===ne||U!=U&&ne!=ne}(Dr&&B(new Dr(new ArrayBuffer(1)))!=x||Ze&&B(new Ze)!=l||wt&&B(wt.resolve())!=d||Vt&&B(new Vt)!=v||Ft&&B(new Ft)!=m)&&(B=function(U){var ne=we.call(U),ye=ne==f?U.constructor:void 0,me=ye?j(ye):void 0;if(me)switch(me){case An:return x;case qo:return l;case xe:return d;case _e:return v;case Ve:return m}return ne});var k=Array.isArray;function H(U){return U!=null&&function(ne){return typeof ne=="number"&&ne>-1&&ne%1==0&&ne<=n}(U.length)&&!re(U)}var ae=fr||function(){return!1};function re(U){var ne=ue(U)?we.call(U):"";return ne==s||ne==u}function ue(U){var ne=typeof U;return!!U&&(ne=="object"||ne=="function")}function oe(U){return H(U)?ci(U):function(ne){if(!R(ne))return It(ne);var ye=[];for(var me in Object(ne))He.call(ne,me)&&me!="constructor"&&ye.push(me);return ye}(U)}e.exports=function(U){return bc(U,!0,!0)}});function aM(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var GDe=0;function KDe(e){return"__private_"+GDe+++"_"+e}function qDe(e,t,r){const n=[];return e.forEach(a=>typeof a!="string"?n.push(a):t[Symbol.split](a).forEach((i,o,s)=>{i!==""&&n.push(i),o<s.length-1&&n.push(r)})),n}/**
|
||
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
||
* and replaces it with values from options `{smart_count: 5}`
|
||
*
|
||
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
|
||
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
|
||
*
|
||
* @param {string} phrase that needs interpolation, with placeholders
|
||
* @param {object} options with values that will be used to replace placeholders
|
||
* @returns {any[]} interpolated
|
||
*/function iM(e,t){const r=/\$/g;let n=[e];if(t==null)return n;for(const a of Object.keys(t))if(a!=="_"){let i=t[a];typeof i=="string"&&(i=r[Symbol.replace](i,"$$$$")),n=qDe(n,new RegExp(`%\\{${a}\\}`,"g"),i)}return n}var QJ=(I0=KDe("apply"),class{constructor(e){Object.defineProperty(this,I0,{value:XDe}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(aM(this,I0)[I0],this):aM(this,I0)[I0](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(n,a){return Object.prototype.hasOwnProperty.call(n,a)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const r=this.locale.strings[e];if(typeof r=="object"){if(t&&t.smart_count!==void 0)return iM(r[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return iM(r,t)}});function XDe(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var eZ=function(){var e={},t=e._fns={};return e.emit=function(r,n,a,i,o,s,u){var l=function(c){for(var f=t[c]?t[c]:[],d=c.indexOf(":"),p=d===-1?[c]:[c.substring(0,d),c.substring(d+1)],v=Object.keys(t),h=0,g=v.length;h<g;h++){var m=v[h];if(m==="*"&&(f=f.concat(t[m])),p.length===2&&p[0]===m){f=f.concat(t[m]);break}}return f}(r);l.length&&function(c,f,d){for(var p=0,v=f.length;p<v&&f[p];p++)f[p].event=c,f[p].apply(f[p],d)}(r,l,[n,a,i,o,s,u])},e.on=function(r,n){t[r]||(t[r]=[]),t[r].push(n)},e.once=function(r,n){this.on(r,function a(){n.apply(this,arguments),e.off(r,a)})},e.off=function(r,n){var a=[];if(r&&n)for(var i=this._fns[r],o=0,s=i?i.length:0;o<s;o++)i[o]!==n&&a.push(i[o]);a.length?this._fns[r]=a:delete this._fns[r]},e},YDe={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:JDe}=YDe,oM=e=>crypto.getRandomValues(new Uint8Array(e)),sM=(e,t,r)=>{let n=(2<<Math.log(e.length-1)/Math.LN2)-1,a=-~(1.6*n*t/e.length);return()=>{let i="";for(;;){let o=r(a),s=a;for(;s--;)if(i+=e[o[s]&n]||"",i.length===t)return i}}};var ZDe={nanoid:(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let n=63&r[e];t+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return t},customAlphabet:(e,t)=>sM(e,t,oM),customRandom:sM,urlAlphabet:JDe,random:oM},P3=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,n));var a=r[n];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+a:(t?"-":"")+e.toFixed(1)+" "+a};function tZ(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}tZ.prototype.match=function(e){var t,r,n=!0,a=this.parts,i=a.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(r=(e||"").split(this.separator),t=0;n&&t<i;t++)a[t]!=="*"&&(n=t<r.length&&a[t]===r[t]);n=n&&r}else n=!1;else if(typeof e.splice=="function")for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if(typeof e=="object")for(var o in n={},e)this.match(o)&&(n[o]=e[o]);return n};var QDe=/[\/\+\.]/,eOe=function(e,t){function r(n){var a=function(i,o,s){var u=new tZ(i,s||/[\/\.]/);return o!==void 0?u.match(o):u}(n,e,QDe);return a&&a.length>=2}return t?r(t.split(";")[0]):r},tOe=0;function rOe(e){return"__private_"+tOe+++"_"+e}var N3=rOe("publish");class rZ{constructor(){Object.defineProperty(this,N3,{value:nOe}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const r={...this.state},n={...this.state,...t};this.state=n,function(a,i){if(!Object.prototype.hasOwnProperty.call(a,i))throw new TypeError("attempted to use private field on non-instance");return a}(this,N3)[N3](r,n,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function nOe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.callbacks.forEach(n=>{n(...t)})}rZ.VERSION="2.0.3";var uM=function(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},lM={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function cM(e){let t="";return e.replace(/[^A-Z0-9]/gi,r=>(t+=`-${function(n){return n.charCodeAt(0).toString(32)}(r)}`,"/"))+t}var aOe=function(e){if(e==null&&(e=typeof navigator<"u"?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const r=t[1];let[n,a]=r.split(".");return n=parseInt(n,10),a=parseInt(a,10),n<15||n===15&&a<15063||n>18||n===18&&a>=18218};function I3(e){return e<10?`0${e}`:e.toString()}var Yy=function(){const e=new Date;return`${I3(e.getHours())}:${I3(e.getMinutes())}:${I3(e.getSeconds())}`},nZ={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${Yy()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.debug(`[Uppy] [${Yy()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.warn(`[Uppy] [${Yy()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${Yy()}]`,...t)}}},iOe={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},aZ=ZDe;let iZ,oZ;function Xe(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var oOe=0;function _n(e){return"__private_"+oOe+++"_"+e}const{nanoid:sOe}=aZ,{justErrorsLogger:uOe,debugLogger:lOe}=nZ;class os extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class cOe extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Qn=_n("plugins"),Bh=_n("storeUnsubscribe"),js=_n("emitter"),Gc=_n("preProcessors"),Kc=_n("uploaders"),Ks=_n("postProcessors"),wg=_n("checkRestrictions"),R3=_n("checkMinNumberOfFiles"),g1=_n("checkRequiredMetaFieldsOnFile"),L3=_n("checkRequiredMetaFields"),Dn=_n("showOrLogErrorAndThrow"),Ph=_n("assertNewUploadAllowed"),Nh=_n("checkAndCreateFileStateObject"),Ih=_n("startIfAutoProceed"),M3=_n("addListeners"),So=_n("updateOnlineStatus"),$s=_n("createUpload"),j3=_n("getUpload"),ef=_n("removeUpload"),Us=_n("runUpload");iZ=Symbol.for("uppy test: getPlugins"),oZ=Symbol.for("uppy test: createUpload");class sZ{constructor(t){Object.defineProperty(this,Us,{value:SOe}),Object.defineProperty(this,ef,{value:EOe}),Object.defineProperty(this,j3,{value:wOe}),Object.defineProperty(this,$s,{value:bOe}),Object.defineProperty(this,M3,{value:xOe}),Object.defineProperty(this,Ih,{value:yOe}),Object.defineProperty(this,Nh,{value:mOe}),Object.defineProperty(this,Ph,{value:gOe}),Object.defineProperty(this,Dn,{value:vOe}),Object.defineProperty(this,L3,{value:hOe}),Object.defineProperty(this,g1,{value:pOe}),Object.defineProperty(this,R3,{value:dOe}),Object.defineProperty(this,wg,{value:fOe}),Object.defineProperty(this,Qn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Bh,{writable:!0,value:void 0}),Object.defineProperty(this,js,{writable:!0,value:eZ()}),Object.defineProperty(this,Gc,{writable:!0,value:new Set}),Object.defineProperty(this,Kc,{writable:!0,value:new Set}),Object.defineProperty(this,Ks,{writable:!0,value:new Set}),Object.defineProperty(this,So,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=iOe;const r={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:n=>n,onBeforeUpload:n=>n,store:new rZ,logger:uOe,infoTimeout:5e3};if(this.opts={...r,...t,restrictions:{...r.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=lOe),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Wf(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:aOe(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Xe(this,Bh)[Bh]=this.store.subscribe((n,a,i)=>{this.emit("state-update",n,a,i),this.updateAll(a)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),Xe(this,M3)[M3]()}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];Xe(this,js)[js].emit(t,...n)}on(t,r){return Xe(this,js)[js].on(t,r),this}once(t,r){return Xe(this,js)[js].once(t,r),this}off(t,r){return Xe(this,js)[js].off(t,r),this}updateAll(t){this.iteratePlugins(r=>{r.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,r){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...r}}})}i18nInit(){const t=new QJ([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(r=>{r.setOptions()}),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},n={};Object.keys(r).forEach(a=>{const i={...r[a]};i.progress={...i.progress,...t},n[a]=i}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){Xe(this,Gc)[Gc].add(t)}removePreProcessor(t){return Xe(this,Gc)[Gc].delete(t)}addPostProcessor(t){Xe(this,Ks)[Ks].add(t)}removePostProcessor(t){return Xe(this,Ks)[Ks].delete(t)}addUploader(t){Xe(this,Kc)[Kc].add(t)}removeUploader(t){return Xe(this,Kc)[Kc].delete(t)}setMeta(t){const r={...this.getState().meta,...t},n={...this.getState().files};Object.keys(n).forEach(a=>{n[a]={...n[a],meta:{...n[a].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:r,files:n})}setFileMeta(t,r){const n={...this.getState().files};if(!n[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const a={...n[t].meta,...r};n[t]={...n[t],meta:a},this.setState({files:n})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:r,error:n}=this.getState(),a=Object.values(t),i=a.filter(v=>{let{progress:h}=v;return!h.uploadComplete&&h.uploadStarted}),o=a.filter(v=>!v.progress.uploadStarted),s=a.filter(v=>v.progress.uploadStarted||v.progress.preprocess||v.progress.postprocess),u=a.filter(v=>v.progress.uploadStarted),l=a.filter(v=>v.isPaused),c=a.filter(v=>v.progress.uploadComplete),f=a.filter(v=>v.error),d=i.filter(v=>!v.isPaused),p=a.filter(v=>v.progress.preprocess||v.progress.postprocess);return{newFiles:o,startedFiles:s,uploadStartedFiles:u,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:u.length>0,isAllComplete:r===100&&c.length===a.length&&p.length===0,isAllErrored:!!n&&f.length===a.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:a.some(v=>v.isGhost)}}validateRestrictions(t,r){try{return Xe(this,wg)[wg](t,r),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(t){const{files:r}=this.getState();return!(!r[t]||r[t].isGhost)}addFile(t){Xe(this,Ph)[Ph](t);const{files:r}=this.getState();let n=Xe(this,Nh)[Nh](r,t);return r[n.id]&&r[n.id].isGhost&&(n={...r[n.id],data:t.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...r,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Xe(this,Ih)[Ih](),n.id}addFiles(t){Xe(this,Ph)[Ph]();const r={...this.getState().files},n=[],a=[];for(let i=0;i<t.length;i++)try{let o=Xe(this,Nh)[Nh](r,t[i]);r[o.id]&&r[o.id].isGhost&&(o={...r[o.id],data:t[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${o.name}, ${o.id}`)),r[o.id]=o,n.push(o)}catch(o){o.isRestriction||a.push(o)}if(this.setState({files:r}),n.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(i=>{this.log(`Added file: ${n[i].name}
|
||
id: ${n[i].id}
|
||
type: ${n[i].type}`)}),n.length>0&&Xe(this,Ih)[Ih](),a.length>0){let i=`Multiple errors occurred while adding files:
|
||
`;if(a.forEach(o=>{i+=`
|
||
* ${o.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:a.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(a,i);{const o=new Error(i);throw o.errors=a,o}}}removeFiles(t,r){const{files:n,currentUploads:a}=this.getState(),i={...n},o={...a},s=Object.create(null);function u(f){return s[f]===void 0}t.forEach(f=>{n[f]&&(s[f]=n[f],delete i[f])}),Object.keys(o).forEach(f=>{const d=a[f].fileIDs.filter(u);d.length!==0?o[f]={...a[f],fileIDs:d}:delete o[f]});const l={currentUploads:o,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(s);c.forEach(f=>{this.emit("file-removed",s[f],r)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,r){r===void 0&&(r=null),this.removeFiles([t],r)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const r=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:r}),this.emit("upload-pause",t,r),r}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const n={...t[r],isPaused:!0};t[r]=n}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const n={...t[r],isPaused:!1,error:null};t[r]=n}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},r=Object.keys(t).filter(a=>t[a].error);if(r.forEach(a=>{const i={...t[a],isPaused:!1,error:null};t[a]=i}),this.setState({files:t,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=Xe(this,$s)[$s](r,{forceAllowNewUpload:!0});return Xe(this,Us)[Us](n)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),r=Object.keys(t);r.length&&this.removeFiles(r,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const r=Xe(this,$s)[$s]([t],{forceAllowNewUpload:!0});return Xe(this,Us)[Us](r)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,r){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n=Number.isFinite(r.bytesTotal)&&r.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:r.bytesUploaded,bytesTotal:r.bytesTotal,percentage:n?Math.round(r.bytesUploaded/r.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter(u=>u.progress.uploadStarted||u.progress.preprocess||u.progress.postprocess);if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const r=t.filter(u=>u.progress.bytesTotal!=null),n=t.filter(u=>u.progress.bytesTotal==null);if(r.length===0){const u=100*t.length,l=n.reduce((f,d)=>f+d.progress.percentage,0),c=Math.round(l/u*100);return void this.setState({totalProgress:c})}let a=r.reduce((u,l)=>u+l.progress.bytesTotal,0);const i=a/r.length;a+=i*n.length;let o=0;r.forEach(u=>{o+=u.progress.bytesUploaded}),n.forEach(u=>{o+=i*(u.progress.percentage||0)/100});let s=a===0?0:Math.round(o/a*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,r){if(typeof t!="function")throw new TypeError(`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`);const n=new t(this,r),a=n.id;if(!a)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(a);if(i){const o=`Already found a plugin named '${i.id}'. Tried to use: '${a}'.
|
||
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(o)}return t.VERSION&&this.log(`Using ${a} v${t.VERSION}`),n.type in Xe(this,Qn)[Qn]?Xe(this,Qn)[Qn][n.type].push(n):Xe(this,Qn)[Qn][n.type]=[n],n.install(),this}getPlugin(t){for(const r of Object.values(Xe(this,Qn)[Qn])){const n=r.find(a=>a.id===t);if(n!=null)return n}}[iZ](t){return Xe(this,Qn)[Qn][t]}iteratePlugins(t){Object.values(Xe(this,Qn)[Qn]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const r=Xe(this,Qn)[Qn][t.type],n=r.findIndex(i=>i.id===t.id);n!==-1&&r.splice(n,1);const a={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(a)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Xe(this,Bh)[Bh](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Xe(this,So)[So]),window.removeEventListener("offline",Xe(this,So)[So]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const a=typeof t=="object";this.setState({info:[...this.getState().info,{type:r,message:a?t.message:t,details:a?t.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(t,r){const{logger:n}=this.opts;switch(r){case"error":n.error(t);break;case"warning":n.warn(t);break;default:n.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?Xe(this,Us)[Us](t):(Xe(this,ef)[ef](t),Promise.reject(new Error("Nonexistent upload")))}[oZ](){return Xe(this,$s)[$s](...arguments)}addResultData(t,r){if(!Xe(this,j3)[j3](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:n}=this.getState(),a={...n[t],result:{...n[t].result,...r}};this.setState({currentUploads:{...n,[t]:a}})}upload(){var t;(t=Xe(this,Qn)[Qn].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then(()=>{Xe(this,R3)[R3](r),Xe(this,L3)[L3](r)}).catch(a=>{Xe(this,Dn)[Dn](a)}).then(()=>{const{currentUploads:a}=this.getState(),i=Object.values(a).flatMap(u=>u.fileIDs),o=[];Object.keys(r).forEach(u=>{const l=this.getFile(u);l.progress.uploadStarted||i.indexOf(u)!==-1||o.push(l.id)});const s=Xe(this,$s)[$s](o);return Xe(this,Us)[Us](s)}).catch(a=>{Xe(this,Dn)[Dn](a,{showInformer:!1})}))}}function fOe(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:r,minFileSize:n,maxTotalFileSize:a,maxNumberOfFiles:i,allowedFileTypes:o}=this.opts.restrictions;if(i&&t.length+1>i)throw new os(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(o&&!o.some(s=>s.indexOf("/")>-1?!!e.type&&eOe(e.type.replace(/;.*?$/,""),s):!(s[0]!=="."||!e.extension)&&e.extension.toLowerCase()===s.substr(1).toLowerCase())){const s=o.join(", ");throw new os(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(a&&e.size!=null){let s=0;if(s+=e.size,t.forEach(u=>{s+=u.size}),s>a)throw new os(this.i18n("exceedsSize",{size:P3(a),file:e.name}))}if(r&&e.size!=null&&e.size>r)throw new os(this.i18n("exceedsSize",{size:P3(r),file:e.name}));if(n&&e.size!=null&&e.size<n)throw new os(this.i18n("inferiorSize",{size:P3(n)}))}function dOe(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new os(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function pOe(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:r}=Object.prototype,n=[],a=[];for(let i=0;i<t.length;i++)if(!r.call(e.meta,t[i])||e.meta[t[i]]===""){const o=new os(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);n.push(o),a.push(t[i]),Xe(this,Dn)[Dn](o,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:a}),n}function hOe(e){const t=Object.keys(e).flatMap(r=>{const n=this.getFile(r);return Xe(this,g1)[g1](n)});if(t.length)throw new cOe(t,`${this.i18n("missingRequiredMetaField")}`)}function vOe(e,t){let{showInformer:r=!0,file:n=null,throwErr:a=!0}=t===void 0?{}:t;const i=typeof e=="object"?e.message:e,o=typeof e=="object"&&e.details?e.details:"";let s=i;if(o&&(s+=` ${o}`),e.isRestriction?(this.log(s),this.emit("restriction-failed",n,e)):this.log(s,"error"),r&&this.info({message:i,details:o},"error",this.opts.infoTimeout),a)throw typeof e=="object"?e:new Error(e)}function gOe(e){const{allowNewUpload:t}=this.getState();t===!1&&Xe(this,Dn)[Dn](new os(this.i18n("noMoreFilesAllowed")),{file:e})}function mOe(e,t){const r=function(f){var d;if(f.type)return f.type;const p=f.name?(d=uM(f.name).extension)==null?void 0:d.toLowerCase():null;return p&&p in lM?lM[p]:"application/octet-stream"}(t),n=function(f,d){return d.name?d.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(r,t),a=uM(n).extension,i=!!t.isRemote,o=function(f){let d="uppy";return typeof f.name=="string"&&(d+=`-${cM(f.name.toLowerCase())}`),f.type!==void 0&&(d+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(d+=`-${cM(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(d+=`-${f.data.size}`),f.data.lastModified!==void 0&&(d+=`-${f.data.lastModified}`),d}({...t,type:r});if(this.checkIfFileAlreadyExists(o)){const f=new os(this.i18n("noDuplicates",{fileName:n}));Xe(this,Dn)[Dn](f,{file:t})}const s=t.meta||{};s.name=n,s.type=r;const u=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:o,name:n,extension:a||"",meta:{...this.getState().meta,...s},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:u,uploadComplete:!1,uploadStarted:null},size:u,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);c===!1?Xe(this,Dn)[Dn](new os("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(e).map(d=>e[d]);Xe(this,wg)[wg](l,f)}catch(f){Xe(this,Dn)[Dn](f,{file:l})}return l}function yOe(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function xOe(){const e=(t,r,n)=>{let a=t.message||"Unknown error";t.details&&(a+=` ${t.details}`),this.setState({error:a}),r!=null&&r.id in this.getState().files&&this.setFileState(r.id,{error:a,response:n})};this.on("error",e),this.on("upload-error",(t,r,n)=>{if(e(r,t,n),typeof r=="object"&&r.message){const a=new Error(r.message);a.details=r.message,r.details&&(a.details+=` ${r.details}`),a.message=this.i18n("failedToUpload",{file:t.name}),Xe(this,Dn)[Dn](a,{throwErr:!1})}else Xe(this,Dn)[Dn](r,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",t=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(t,r)=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...n,postprocess:Xe(this,Ks)[Ks].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:r,uploadURL:r.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:r.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(t,r)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:r}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("preprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r={...this.getState().files};r[t.id]={...r[t.id],progress:{...r[t.id].progress}},delete r[t.id].progress.preprocess,this.setState({files:r})}),this.on("postprocess-progress",(t,r)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:r}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("postprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r={...this.getState().files};r[t.id]={...r[t.id],progress:{...r[t.id].progress}},delete r[t.id].progress.postprocess,this.setState({files:r})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",t=>{t&&Xe(this,g1)[g1](t)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",Xe(this,So)[So]),window.addEventListener("offline",Xe(this,So)[So]),setTimeout(Xe(this,So)[So],3e3))}function bOe(e,t){t===void 0&&(t={});const{forceAllowNewUpload:r=!1}=t,{allowNewUpload:n,currentUploads:a}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=sOe();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...a,[i]:{fileIDs:e,step:0,result:{}}}}),i}function wOe(e){const{currentUploads:t}=this.getState();return t[e]}function EOe(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function SOe(e){let{currentUploads:t}=this.getState(),r=t[e];const n=r.step||0,a=[...Xe(this,Gc)[Gc],...Xe(this,Kc)[Kc],...Xe(this,Ks)[Ks]];try{for(let o=n;o<a.length&&r;o++){const s=a[o],u={...r,step:o};this.setState({currentUploads:{...t,[e]:u}}),await s(u.fileIDs,e),t=this.getState().currentUploads,r=t[e]}}catch(o){throw this.emit("error",o),Xe(this,ef)[ef](e),o}if(r){r.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const o=r.fileIDs.map(l=>this.getFile(l)),s=o.filter(l=>!l.error),u=o.filter(l=>l.error);await this.addResultData(e,{successful:s,failed:u,uploadID:e}),t=this.getState().currentUploads,r=t[e]}let i;return r&&(i=r.result,this.emit("complete",i),Xe(this,ef)[ef](e)),i==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}sZ.VERSION="2.1.3";var uZ=sZ,COe=p0(function(e,t){var r,n,a,i,o,s,u,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(M,A){for(var N in A)M[N]=A[N];return M}function v(M){var A=M.parentNode;A&&A.removeChild(M)}function h(M,A,N){var I,L,Y,Q={};for(Y in A)Y=="key"?I=A[Y]:Y=="ref"?L=A[Y]:Q[Y]=A[Y];if(arguments.length>2&&(Q.children=arguments.length>3?r.call(arguments,2):N),typeof M=="function"&&M.defaultProps!=null)for(Y in M.defaultProps)Q[Y]===void 0&&(Q[Y]=M.defaultProps[Y]);return g(M,Q,I,L,null)}function g(M,A,N,I,L){var Y={type:M,props:A,key:N,ref:I,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:L==null?++a:L};return L==null&&n.vnode!=null&&n.vnode(Y),Y}function m(M){return M.children}function y(M,A){this.props=M,this.context=A}function x(M,A){if(A==null)return M.__?x(M.__,M.__.__k.indexOf(M)+1):null;for(var N;A<M.__k.length;A++)if((N=M.__k[A])!=null&&N.__e!=null)return N.__e;return typeof M.type=="function"?x(M):null}function b(M){var A,N;if((M=M.__)!=null&&M.__c!=null){for(M.__e=M.__c.base=null,A=0;A<M.__k.length;A++)if((N=M.__k[A])!=null&&N.__e!=null){M.__e=M.__c.base=N.__e;break}return b(M)}}function E(M){(!M.__d&&(M.__d=!0)&&o.push(M)&&!S.__r++||u!==n.debounceRendering)&&((u=n.debounceRendering)||s)(S)}function S(){for(var M;S.__r=o.length;)M=o.sort(function(A,N){return A.__v.__b-N.__v.__b}),o=[],M.some(function(A){var N,I,L,Y,Q,le;A.__d&&(Q=(Y=(N=A).__v).__e,(le=N.__P)&&(I=[],(L=p({},Y)).__v=Y.__v+1,ee(le,Y,L,N.__n,le.ownerSVGElement!==void 0,Y.__h!=null?[Q]:null,I,Q==null?x(Y):Q,Y.__h),J(I,Y),Y.__e!=Q&&b(Y)))})}function w(M,A,N,I,L,Y,Q,le,ve,he){var fe,z,je,Te,Ne,He,we,Je=I&&I.__k||f,ut=Je.length;for(N.__k=[],fe=0;fe<A.length;fe++)if((Te=N.__k[fe]=(Te=A[fe])==null||typeof Te=="boolean"?null:typeof Te=="string"||typeof Te=="number"||typeof Te=="bigint"?g(null,Te,null,null,Te):Array.isArray(Te)?g(m,{children:Te},null,null,null):Te.__b>0?g(Te.type,Te.props,Te.key,null,Te.__v):Te)!=null){if(Te.__=N,Te.__b=N.__b+1,(je=Je[fe])===null||je&&Te.key==je.key&&Te.type===je.type)Je[fe]=void 0;else for(z=0;z<ut;z++){if((je=Je[z])&&Te.key==je.key&&Te.type===je.type){Je[z]=void 0;break}je=null}ee(M,Te,je=je||c,L,Y,Q,le,ve,he),Ne=Te.__e,(z=Te.ref)&&je.ref!=z&&(we||(we=[]),je.ref&&we.push(je.ref,null,Te),we.push(z,Te.__c||Ne,Te)),Ne!=null?(He==null&&(He=Ne),typeof Te.type=="function"&&Te.__k===je.__k?Te.__d=ve=C(Te,ve,M):ve=_(M,Te,je,Je,Ne,ve),typeof N.type=="function"&&(N.__d=ve)):ve&&je.__e==ve&&ve.parentNode!=M&&(ve=x(je))}for(N.__e=He,fe=ut;fe--;)Je[fe]!=null&&(typeof N.type=="function"&&Je[fe].__e!=null&&Je[fe].__e==N.__d&&(N.__d=x(I,fe+1)),ie(Je[fe],Je[fe]));if(we)for(fe=0;fe<we.length;fe++)V(we[fe],we[++fe],we[++fe])}function C(M,A,N){for(var I,L=M.__k,Y=0;L&&Y<L.length;Y++)(I=L[Y])&&(I.__=M,A=typeof I.type=="function"?C(I,A,N):_(N,I,I,L,I.__e,A));return A}function _(M,A,N,I,L,Y){var Q,le,ve;if(A.__d!==void 0)Q=A.__d,A.__d=void 0;else if(N==null||L!=Y||L.parentNode==null)e:if(Y==null||Y.parentNode!==M)M.appendChild(L),Q=null;else{for(le=Y,ve=0;(le=le.nextSibling)&&ve<I.length;ve+=2)if(le==L)break e;M.insertBefore(L,Y),Q=Y}return Q!==void 0?Q:L.nextSibling}function O(M,A,N){A[0]==="-"?M.setProperty(A,N):M[A]=N==null?"":typeof N!="number"||d.test(A)?N:N+"px"}function P(M,A,N,I,L){var Y;e:if(A==="style")if(typeof N=="string")M.style.cssText=N;else{if(typeof I=="string"&&(M.style.cssText=I=""),I)for(A in I)N&&A in N||O(M.style,A,"");if(N)for(A in N)I&&N[A]===I[A]||O(M.style,A,N[A])}else if(A[0]==="o"&&A[1]==="n")Y=A!==(A=A.replace(/Capture$/,"")),A=A.toLowerCase()in M?A.toLowerCase().slice(2):A.slice(2),M.l||(M.l={}),M.l[A+Y]=N,N?I||M.addEventListener(A,Y?q:F,Y):M.removeEventListener(A,Y?q:F,Y);else if(A!=="dangerouslySetInnerHTML"){if(L)A=A.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(A!=="href"&&A!=="list"&&A!=="form"&&A!=="tabIndex"&&A!=="download"&&A in M)try{M[A]=N==null?"":N;break e}catch(Q){}typeof N=="function"||(N!=null&&(N!==!1||A[0]==="a"&&A[1]==="r")?M.setAttribute(A,N):M.removeAttribute(A))}}function F(M){this.l[M.type+!1](n.event?n.event(M):M)}function q(M){this.l[M.type+!0](n.event?n.event(M):M)}function ee(M,A,N,I,L,Y,Q,le,ve){var he,fe,z,je,Te,Ne,He,we,Je,ut,_t,Qe=A.type;if(A.constructor!==void 0)return null;N.__h!=null&&(ve=N.__h,le=A.__e=N.__e,A.__h=null,Y=[le]),(he=n.__b)&&he(A);try{e:if(typeof Qe=="function"){if(we=A.props,Je=(he=Qe.contextType)&&I[he.__c],ut=he?Je?Je.props.value:he.__:I,N.__c?He=(fe=A.__c=N.__c).__=fe.__E:("prototype"in Qe&&Qe.prototype.render?A.__c=fe=new Qe(we,ut):(A.__c=fe=new y(we,ut),fe.constructor=Qe,fe.render=W),Je&&Je.sub(fe),fe.props=we,fe.state||(fe.state={}),fe.context=ut,fe.__n=I,z=fe.__d=!0,fe.__h=[]),fe.__s==null&&(fe.__s=fe.state),Qe.getDerivedStateFromProps!=null&&(fe.__s==fe.state&&(fe.__s=p({},fe.__s)),p(fe.__s,Qe.getDerivedStateFromProps(we,fe.__s))),je=fe.props,Te=fe.state,z)Qe.getDerivedStateFromProps==null&&fe.componentWillMount!=null&&fe.componentWillMount(),fe.componentDidMount!=null&&fe.__h.push(fe.componentDidMount);else{if(Qe.getDerivedStateFromProps==null&&we!==je&&fe.componentWillReceiveProps!=null&&fe.componentWillReceiveProps(we,ut),!fe.__e&&fe.shouldComponentUpdate!=null&&fe.shouldComponentUpdate(we,fe.__s,ut)===!1||A.__v===N.__v){fe.props=we,fe.state=fe.__s,A.__v!==N.__v&&(fe.__d=!1),fe.__v=A,A.__e=N.__e,A.__k=N.__k,A.__k.forEach(function(cr){cr&&(cr.__=A)}),fe.__h.length&&Q.push(fe);break e}fe.componentWillUpdate!=null&&fe.componentWillUpdate(we,fe.__s,ut),fe.componentDidUpdate!=null&&fe.__h.push(function(){fe.componentDidUpdate(je,Te,Ne)})}fe.context=ut,fe.props=we,fe.state=fe.__s,(he=n.__r)&&he(A),fe.__d=!1,fe.__v=A,fe.__P=M,he=fe.render(fe.props,fe.state,fe.context),fe.state=fe.__s,fe.getChildContext!=null&&(I=p(p({},I),fe.getChildContext())),z||fe.getSnapshotBeforeUpdate==null||(Ne=fe.getSnapshotBeforeUpdate(je,Te)),_t=he!=null&&he.type===m&&he.key==null?he.props.children:he,w(M,Array.isArray(_t)?_t:[_t],A,N,I,L,Y,Q,le,ve),fe.base=A.__e,A.__h=null,fe.__h.length&&Q.push(fe),He&&(fe.__E=fe.__=null),fe.__e=!1}else Y==null&&A.__v===N.__v?(A.__k=N.__k,A.__e=N.__e):A.__e=Z(N.__e,A,N,I,L,Y,Q,ve);(he=n.diffed)&&he(A)}catch(cr){A.__v=null,(ve||Y!=null)&&(A.__e=le,A.__h=!!ve,Y[Y.indexOf(le)]=null),n.__e(cr,A,N)}}function J(M,A){n.__c&&n.__c(A,M),M.some(function(N){try{M=N.__h,N.__h=[],M.some(function(I){I.call(N)})}catch(I){n.__e(I,N.__v)}})}function Z(M,A,N,I,L,Y,Q,le){var ve,he,fe,z=N.props,je=A.props,Te=A.type,Ne=0;if(Te==="svg"&&(L=!0),Y!=null){for(;Ne<Y.length;Ne++)if((ve=Y[Ne])&&"setAttribute"in ve==!!Te&&(Te?ve.localName===Te:ve.nodeType===3)){M=ve,Y[Ne]=null;break}}if(M==null){if(Te===null)return document.createTextNode(je);M=L?document.createElementNS("http://www.w3.org/2000/svg",Te):document.createElement(Te,je.is&&je),Y=null,le=!1}if(Te===null)z===je||le&&M.data===je||(M.data=je);else{if(Y=Y&&r.call(M.childNodes),he=(z=N.props||c).dangerouslySetInnerHTML,fe=je.dangerouslySetInnerHTML,!le){if(Y!=null)for(z={},Ne=0;Ne<M.attributes.length;Ne++)z[M.attributes[Ne].name]=M.attributes[Ne].value;(fe||he)&&(fe&&(he&&fe.__html==he.__html||fe.__html===M.innerHTML)||(M.innerHTML=fe&&fe.__html||""))}if(function(He,we,Je,ut,_t){var Qe;for(Qe in Je)Qe==="children"||Qe==="key"||Qe in we||P(He,Qe,null,Je[Qe],ut);for(Qe in we)_t&&typeof we[Qe]!="function"||Qe==="children"||Qe==="key"||Qe==="value"||Qe==="checked"||Je[Qe]===we[Qe]||P(He,Qe,we[Qe],Je[Qe],ut)}(M,je,z,L,le),fe)A.__k=[];else if(Ne=A.props.children,w(M,Array.isArray(Ne)?Ne:[Ne],A,N,I,L&&Te!=="foreignObject",Y,Q,Y?Y[0]:N.__k&&x(N,0),le),Y!=null)for(Ne=Y.length;Ne--;)Y[Ne]!=null&&v(Y[Ne]);le||("value"in je&&(Ne=je.value)!==void 0&&(Ne!==z.value||Ne!==M.value||Te==="progress"&&!Ne)&&P(M,"value",Ne,z.value,!1),"checked"in je&&(Ne=je.checked)!==void 0&&Ne!==M.checked&&P(M,"checked",Ne,z.checked,!1))}return M}function V(M,A,N){try{typeof M=="function"?M(A):M.current=A}catch(I){n.__e(I,N)}}function ie(M,A,N){var I,L;if(n.unmount&&n.unmount(M),(I=M.ref)&&(I.current&&I.current!==M.__e||V(I,null,A)),(I=M.__c)!=null){if(I.componentWillUnmount)try{I.componentWillUnmount()}catch(Y){n.__e(Y,A)}I.base=I.__P=null}if(I=M.__k)for(L=0;L<I.length;L++)I[L]&&ie(I[L],A,typeof M.type!="function");N||M.__e==null||v(M.__e),M.__e=M.__d=void 0}function W(M,A,N){return this.constructor(M,N)}function de(M,A,N){var I,L,Y;n.__&&n.__(M,A),L=(I=typeof N=="function")?null:N&&N.__k||A.__k,Y=[],ee(A,M=(!I&&N||A).__k=h(m,null,[M]),L||c,c,A.ownerSVGElement!==void 0,!I&&N?[N]:L?null:A.firstChild?r.call(A.childNodes):null,Y,!I&&N?N:L?L.__e:A.firstChild,I),J(Y,M)}r=f.slice,n={__e:function(M,A){for(var N,I,L;A=A.__;)if((N=A.__c)&&!N.__)try{if((I=N.constructor)&&I.getDerivedStateFromError!=null&&(N.setState(I.getDerivedStateFromError(M)),L=N.__d),N.componentDidCatch!=null&&(N.componentDidCatch(M),L=N.__d),L)return N.__E=N}catch(Y){M=Y}throw M}},a=0,i=function(M){return M!=null&&M.constructor===void 0},y.prototype.setState=function(M,A){var N;N=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof M=="function"&&(M=M(p({},N),this.props)),M&&p(N,M),M!=null&&this.__v&&(A&&this.__h.push(A),E(this))},y.prototype.forceUpdate=function(M){this.__v&&(this.__e=!0,M&&this.__h.push(M),E(this))},y.prototype.render=m,o=[],s=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,t.Component=y,t.Fragment=m,t.cloneElement=function(M,A,N){var I,L,Y,Q=p({},M.props);for(Y in A)Y=="key"?I=A[Y]:Y=="ref"?L=A[Y]:Q[Y]=A[Y];return arguments.length>2&&(Q.children=arguments.length>3?r.call(arguments,2):N),g(M.type,Q,I||M.key,L||M.ref,null)},t.createContext=function(M,A){var N={__c:A="__cC"+l++,__:M,Consumer:function(I,L){return I.children(L)},Provider:function(I){var L,Y;return this.getChildContext||(L=[],(Y={})[A]=this,this.getChildContext=function(){return Y},this.shouldComponentUpdate=function(Q){this.props.value!==Q.value&&L.some(E)},this.sub=function(Q){L.push(Q);var le=Q.componentWillUnmount;Q.componentWillUnmount=function(){L.splice(L.indexOf(Q),1),le&&le.call(Q)}}),I.children}};return N.Provider.__=N.Consumer.contextType=N},t.createElement=h,t.createRef=function(){return{current:null}},t.h=h,t.hydrate=function M(A,N){de(A,N,M)},t.isValidElement=i,t.options=n,t.render=de,t.toChildArray=function M(A,N){return N=N||[],A==null||typeof A=="boolean"||(Array.isArray(A)?A.some(function(I){M(I,N)}):N.push(A)),N}}),_Oe=function(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):((r=e)==null?void 0:r.nodeType)===Node.ELEMENT_NODE?e:null;var r},tF=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new QJ([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function fM(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var AOe=0;function kOe(e){return"__private_"+AOe+++"_"+e}const{render:dM}=COe;var Rh=kOe("updateUI");class rF extends tF{constructor(){super(...arguments),Object.defineProperty(this,Rh,{writable:!0,value:void 0})}mount(t,r){const n=r.id,a=_Oe(t);if(a){this.isTargetDOMEl=!0;const s=document.createDocumentFragment();return fM(this,Rh)[Rh]=function(u){let l=null,c=null;return function(){for(var f=arguments.length,d=new Array(f),p=0;p<f;p++)d[p]=arguments[p];return c=d,l||(l=Promise.resolve().then(()=>(l=null,u(...c)))),l}}(u=>{this.uppy.getPlugin(this.id)&&(dM(this.render(u),s),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(a.innerHTML=""),dM(this.render(this.uppy.getState()),s),this.el=s.firstElementChild,a.appendChild(s),this.onMount(),this.el}let i;if(typeof t=="object"&&t instanceof rF)i=t;else if(typeof t=="function"){const s=t;this.uppy.iteratePlugins(u=>{if(u instanceof s)return i=u,!1})}if(i)return this.uppy.log(`Installing ${n} to ${i.id}`),this.parent=i,this.el=i.addTarget(r),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let o=`Invalid target option given to ${n}.`;throw o+=typeof t=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(o)}update(t){var r,n;this.el!=null&&((r=(n=fM(this,Rh))[Rh])==null||r.call(n,t))}unmount(){var t;this.isTargetDOMEl&&((t=this.el)==null||t.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var TOe=rF;const{debugLogger:DOe}=nZ;var qv=uZ,OOe=uZ,FOe=TOe,BOe=tF,POe=DOe;qv.Uppy=OOe,qv.UIPlugin=FOe,qv.BasePlugin=BOe,qv.debugLogger=POe;class NOe extends Error{constructor(t,r){r===void 0&&(r=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=r}}var nF=NOe,$3=function(){return fetch(...arguments).catch(e=>{throw e.name==="AbortError"?e:new nF(e)})};class IOe extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Jy,Ou,es,Fu,pM,ROe=IOe;function Qo(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var LOe=0;function U3(e){return"__private_"+LOe+++"_"+e}async function H3(e){if(e.status===401)throw new ROe;const t=e.json();if(e.status<200||e.status>300){let r=`Failed request with status: ${e.status}. ${e.statusText}`;try{const n=await t;r=n.message?`${r} message: ${n.message}`:r,r=n.requestId?`${r} request-Id: ${n.requestId}`:r}finally{throw new Error(r)}}return t}var z3=(Ou=U3("getPostResponseFunc"),es=U3("getUrl"),Fu=U3("errorHandler"),pM=Jy=class lZ{constructor(t,r){Object.defineProperty(this,Fu,{value:jOe}),Object.defineProperty(this,es,{value:MOe}),Object.defineProperty(this,Ou,{writable:!0,value:n=>a=>n?a:this.onReceiveResponse(a)}),this.uppy=t,this.opts=r,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),r=this.opts.companionUrl;return(t&&t[r]?t[r]:r).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...lZ.defaultHeaders,...t})}onReceiveResponse(t){const r=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:a}=t;return a.has("i-am")&&a.get("i-am")!==r[n]&&this.uppy.setState({companion:{...r,[n]:a.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Qo(this,es)[es](t),{method:"OPTIONS"}).then(r=>(r.headers.has("access-control-allow-headers")&&(this.allowedHeaders=r.headers.get("access-control-allow-headers").split(",").map(n=>n.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(r=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${r}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then(r=>{let[n,a]=r;return Object.keys(a).forEach(i=>{n.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete a[i])}),a})}get(t,r){return this.preflightAndHeaders(t).then(n=>$3(Qo(this,es)[es](t),{method:"get",headers:n,credentials:this.opts.companionCookiesRule||"same-origin"})).then(Qo(this,Ou)[Ou](r)).then(H3).catch(Qo(this,Fu)[Fu]("get",t))}post(t,r,n){const a="post";return this.preflightAndHeaders(t).then(i=>$3(Qo(this,es)[es](t),{method:a,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(r)})).then(Qo(this,Ou)[Ou](n)).then(H3).catch(Qo(this,Fu)[Fu](a,t))}delete(t,r,n){const a="delete";return this.preflightAndHeaders(t).then(i=>$3(`${this.hostname}/${t}`,{method:a,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null})).then(Qo(this,Ou)[Ou](n)).then(H3).catch(Qo(this,Fu)[Fu](a,t))}},Jy.VERSION="2.0.4",Jy.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Jy.VERSION}`},pM);function MOe(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function jOe(e,t){return r=>{var n;if((n=r)==null||!n.isAuthError){const a=new Error(`Could not ${e} ${Qo(this,es)[es](t)}`);a.cause=r,r=a}return Promise.reject(r)}}var $Oe={setItem:(e,t)=>new Promise(r=>{localStorage.setItem(e,t),r()}),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise(t=>{localStorage.removeItem(e),t()})},Jo,Bu,Li,da,Zy;let hM,vM;function dn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var UOe=0;function Lh(e){return"__private_"+UOe+++"_"+e}var HOe=(Jo=Lh("queued"),Bu=Lh("emitter"),Li=Lh("isOpen"),da=Lh("socket"),Zy=Lh("handleMessage"),hM=Symbol.for("uppy test: getSocket"),vM=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,Jo,{writable:!0,value:[]}),Object.defineProperty(this,Bu,{writable:!0,value:eZ()}),Object.defineProperty(this,Li,{writable:!0,value:!1}),Object.defineProperty(this,da,{writable:!0,value:void 0}),Object.defineProperty(this,Zy,{writable:!0,value:t=>{try{const r=JSON.parse(t.data);this.emit(r.action,r.payload)}catch(r){console.log(r)}}}),this.opts=e,e&&e.autoOpen===!1||this.open()}get isOpen(){return dn(this,Li)[Li]}[hM](){return dn(this,da)[da]}[vM](){return dn(this,Jo)[Jo]}open(){dn(this,da)[da]=new WebSocket(this.opts.target),dn(this,da)[da].onopen=()=>{for(dn(this,Li)[Li]=!0;dn(this,Jo)[Jo].length>0&&dn(this,Li)[Li];){const e=dn(this,Jo)[Jo].shift();this.send(e.action,e.payload)}},dn(this,da)[da].onclose=()=>{dn(this,Li)[Li]=!1},dn(this,da)[da].onmessage=dn(this,Zy)[Zy]}close(){var e;(e=dn(this,da)[da])==null||e.close()}send(e,t){dn(this,Li)[Li]?dn(this,da)[da].send(JSON.stringify({action:e,payload:t})):dn(this,Jo)[Jo].push({action:e,payload:t})}on(e,t){dn(this,Bu)[Bu].on(e,t)}emit(e,t){dn(this,Bu)[Bu].emit(e,t)}once(e,t){dn(this,Bu)[Bu].once(e,t)}}),zOe={RequestClient:z3,Provider:class extends z3{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(r=>r.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(e=>{let[t,r]=e;const n={};return r&&(n["uppy-auth-token"]=r),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...n}})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),r=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:r}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return e===void 0&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,r){if(e.type="acquirer",e.files=[],r&&(e.opts={...r,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!(typeof n=="string"||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||$Oe}},SearchProvider:class extends z3{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(r=>r.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:HOe},Pu,R0,VOe=Wf(function(e,t,r){const{progress:n,bytesUploaded:a,bytesTotal:i}=t;n&&(e.uppy.log(`Upload progress: ${n}`),e.uppy.emit("upload-progress",r,{uploader:e,bytesUploaded:a,bytesTotal:i}))},300,{leading:!0,trailing:!0});function Mh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var WOe=0;function gM(e){return"__private_"+WOe+++"_"+e}var mM=(Pu=gM("emitter"),R0=gM("events"),class{constructor(e){Object.defineProperty(this,Pu,{writable:!0,value:void 0}),Object.defineProperty(this,R0,{writable:!0,value:[]}),Mh(this,Pu)[Pu]=e}on(e,t){return Mh(this,R0)[R0].push([e,t]),Mh(this,Pu)[Pu].on(e,t)}remove(){for(const[e,t]of Mh(this,R0)[R0].splice(0))Mh(this,Pu)[Pu].off(e,t)}});function Mi(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var GOe=0;function u4(e){return"__private_"+GOe+++"_"+e}var Hs=u4("aliveTimer"),_c=u4("isDone"),jh=u4("onTimedOut"),Ac=u4("timeout"),yM=class{constructor(e,t){Object.defineProperty(this,Hs,{writable:!0,value:void 0}),Object.defineProperty(this,_c,{writable:!0,value:!1}),Object.defineProperty(this,jh,{writable:!0,value:void 0}),Object.defineProperty(this,Ac,{writable:!0,value:void 0}),Mi(this,Ac)[Ac]=e,Mi(this,jh)[jh]=t}progress(){Mi(this,_c)[_c]||Mi(this,Ac)[Ac]>0&&(clearTimeout(Mi(this,Hs)[Hs]),Mi(this,Hs)[Hs]=setTimeout(Mi(this,jh)[jh],Mi(this,Ac)[Ac]))}done(){Mi(this,_c)[_c]||(clearTimeout(Mi(this,Hs)[Hs]),Mi(this,Hs)[Hs]=null,Mi(this,_c)[_c]=!0)}};function mn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var KOe=0;function y0(e){return"__private_"+KOe+++"_"+e}function qOe(){return new Error("Cancelled")}var vi=y0("activeRequests"),Ra=y0("queuedHandlers"),Eg=y0("call"),Xv=y0("queueNext"),ik=y0("next"),V3=y0("queue"),ok=y0("dequeue");function XOe(e){mn(this,vi)[vi]+=1;let t,r=!1;try{t=e()}catch(n){throw mn(this,vi)[vi]-=1,n}return{abort:()=>{r||(r=!0,mn(this,vi)[vi]-=1,t(),mn(this,Xv)[Xv]())},done:()=>{r||(r=!0,mn(this,vi)[vi]-=1,mn(this,Xv)[Xv]())}}}function YOe(){queueMicrotask(()=>mn(this,ik)[ik]())}function JOe(){if(mn(this,vi)[vi]>=this.limit||mn(this,Ra)[Ra].length===0)return;const e=mn(this,Ra)[Ra].shift(),t=mn(this,Eg)[Eg](e.fn);e.abort=t.abort,e.done=t.done}function ZOe(e,t){t===void 0&&(t={});const r={fn:e,priority:t.priority||0,abort:()=>{mn(this,ok)[ok](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=mn(this,Ra)[Ra].findIndex(a=>r.priority>a.priority);return n===-1?mn(this,Ra)[Ra].push(r):mn(this,Ra)[Ra].splice(n,0,r),r}function QOe(e){const t=mn(this,Ra)[Ra].indexOf(e);t!==-1&&mn(this,Ra)[Ra].splice(t,1)}var eFe={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,ok,{value:QOe}),Object.defineProperty(this,V3,{value:ZOe}),Object.defineProperty(this,ik,{value:JOe}),Object.defineProperty(this,Xv,{value:YOe}),Object.defineProperty(this,Eg,{value:XOe}),Object.defineProperty(this,vi,{writable:!0,value:0}),Object.defineProperty(this,Ra,{writable:!0,value:[]}),this.limit=typeof e!="number"||e===0?1/0:e}run(e,t){return mn(this,vi)[vi]<this.limit?mn(this,Eg)[Eg](e):mn(this,V3)[V3](e,t)}wrapPromiseFunction(e,t){var r=this;return function(){for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];let o;const s=new Promise((u,l)=>{o=r.run(()=>{let c,f;try{f=Promise.resolve(e(...a))}catch(d){f=Promise.reject(d)}return f.then(d=>{c?l(c):(o.done(),u(d))},d=>{c?l(c):(o.done(),l(d))}),()=>{c=qOe()}},t)});return s.abort=()=>{o.abort()},s}}},internalRateLimitedQueue:Symbol("__queue")},xM,bM,cZ=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},tFe={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:rFe}=aZ,{Provider:nFe,RequestClient:aFe,Socket:iFe}=zOe,{RateLimitedQueue:oFe,internalRateLimitedQueue:W3}=eFe;function wM(e,t){let r=t;return r||(r=new Error("Upload error")),typeof r=="string"&&(r=new Error(r)),r instanceof Error||(r=Object.assign(new Error("Upload error"),{data:r})),cZ(e)?(r=new nF(r,e),r):(r.request=e,r)}function EM(e){return e.data.slice(0,e.data.size,e.meta.type)}var sFe=(bM=xM=class extends tF{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=tFe;const r={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(n){let a={};try{a=JSON.parse(n)}catch(i){e.log(i)}return a},getResponseError(n,a){let i=new Error("Upload error");return cZ(a)&&(i=new nF(i,a)),i},validateStatus:n=>n>=200&&n<300};if(this.opts={...r,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),W3 in this.opts?this.requests=this.opts[W3]:this.requests=new oFe(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:r}=this.opts,n={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return typeof r=="function"?n.headers=r(e):Object.assign(n.headers,this.opts.headers),t&&Object.assign(n.headers,t.headers),e.xhrUpload&&Object.assign(n.headers,e.xhrUpload.headers),n}addMetadata(e,t,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(t)).forEach(n=>{e.append(n,t[n])})}createFormDataUpload(e,t){const r=new FormData;this.addMetadata(r,e.meta,t);const n=EM(e);return e.name?r.append(t.fieldName,n,e.meta.name):r.append(t.fieldName,n),r}createBundledUpload(e,t){const r=new FormData,{meta:n}=this.uppy.getState();return this.addMetadata(r,n,t),e.forEach(a=>{const i=this.getOptions(a),o=EM(a);a.name?r.append(i.fieldName,o,a.name):r.append(i.fieldName,o)}),r}upload(e,t,r){const n=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${r}`),new Promise((a,i)=>{this.uppy.emit("upload-started",e);const o=n.formData?this.createFormDataUpload(e,n):e.data,s=new XMLHttpRequest;this.uploaderEvents[e.id]=new mM(this.uppy);const u=new yM(n.timeout,()=>{s.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(n.timeout/1e3)}));this.uppy.emit("upload-error",e,f),i(f)}),l=rFe();s.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${l} started`)}),s.upload.addEventListener("progress",f=>{this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`),u.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})}),s.addEventListener("load",f=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),u.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n.validateStatus(f.target.status,s.responseText,s)){const h=n.getResponseData(s.responseText,s),g=h[n.responseUrlFieldName],m={status:f.target.status,body:h,uploadURL:g};return this.uppy.emit("upload-success",e,m),g&&this.uppy.log(`Download ${e.name} from ${g}`),a(e)}const d=n.getResponseData(s.responseText,s),p=wM(s,n.getResponseError(s.responseText,s)),v={status:f.target.status,body:d};return this.uppy.emit("upload-error",e,p,v),i(p)}),s.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),u.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const f=wM(s,n.getResponseError(s.responseText,s));return this.uppy.emit("upload-error",e,f),i(f)}),s.open(n.method.toUpperCase(),n.endpoint,!0),s.withCredentials=n.withCredentials,n.responseType!==""&&(s.responseType=n.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",e);const f=this.getOptions(e);return Object.keys(f.headers).forEach(d=>{s.setRequestHeader(d,f.headers[d])}),s.send(o),()=>{u.done(),s.abort()}});this.onFileRemove(e.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(e.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(e){const t=this.getOptions(e);return new Promise((r,n)=>{this.uppy.emit("upload-started",e);const a={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach(i=>{a[i]=e.meta[i]}),new(e.remote.providerOptions.provider?nFe:aFe)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:a,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then(i=>{const{token:o}=i,s=function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${f}`}(e.remote.companionUrl),u=new iFe({target:`${s}/api/${o}`,autoOpen:!1});this.uploaderEvents[e.id]=new mM(this.uppy),this.onFileRemove(e.id,()=>{u.send("cancel",{}),l.abort(),r(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{u.send("cancel",{}),l.abort(),r(`upload ${e.id} was canceled`)}),this.onRetry(e.id,()=>{u.send("pause",{}),u.send("resume",{})}),this.onRetryAll(e.id,()=>{u.send("pause",{}),u.send("resume",{})}),u.on("progress",c=>VOe(this,c,e)),u.on("success",c=>{const f=t.getResponseData(c.response.responseText,c.response),d=f[t.responseUrlFieldName],p={status:c.response.status,body:f,uploadURL:d};return this.uppy.emit("upload-success",e,p),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r()}),u.on("error",c=>{const f=c.response,d=f?t.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",e,d),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n(d)});const l=this.requests.run(()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close()))}).catch(i=>{this.uppy.emit("upload-error",e,i),n(i)})})}uploadBundle(e){return new Promise((t,r)=>{const{endpoint:n}=this.opts,{method:a}=this.opts,i=this.uppy.getState().xhrUpload,o=this.createBundledUpload(e,{...this.opts,...i||{}}),s=new XMLHttpRequest,u=new yM(this.opts.timeout,()=>{s.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),r(c)}),l=c=>{e.forEach(f=>{this.uppy.emit("upload-error",f,c)})};s.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),u.progress()}),s.upload.addEventListener("progress",c=>{u.progress(),c.lengthComputable&&e.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})})}),s.addEventListener("load",c=>{if(u.done(),this.opts.validateStatus(c.target.status,s.responseText,s)){const d=this.opts.getResponseData(s.responseText,s),p={status:c.target.status,body:d};return e.forEach(v=>{this.uppy.emit("upload-success",v,p)}),t()}const f=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return f.request=s,l(f),r(f)}),s.addEventListener("error",()=>{u.done();const c=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return l(c),r(c)}),this.uppy.on("cancel-all",()=>{u.done(),s.abort()}),s.open(a.toUpperCase(),n,!0),s.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(c=>{s.setRequestHeader(c,this.opts.headers[c])}),s.send(o),e.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(e){const t=e.map((r,n)=>{const a=parseInt(n,10)+1,i=e.length;return r.error?Promise.reject(new Error(r.error)):r.isRemote?this.uploadRemote(r,a,i):this.upload(r,a,i)});return function(r){const n=[],a=[];function i(s){n.push(s)}function o(s){a.push(s)}return Promise.all(r.map(s=>s.then(i,o))).then(()=>({successful:n,failed:a}))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",r=>{e===r.id&&t(r.id)})}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",r=>{e===r&&t()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(e.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[W3]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map(r=>this.uppy.getFile(r));if(this.opts.bundle){if(t.some(r=>r.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},xM.VERSION="2.0.6",bM),SM=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pm(e){var t={exports:{}};return e(t,t.exports),t.exports}var Nu,Sx,Qy=function(e){return e&&e.Math==Math&&e},Be=Qy(typeof globalThis=="object"&&globalThis)||Qy(typeof window=="object"&&window)||Qy(typeof self=="object"&&self)||Qy(typeof SM=="object"&&SM)||function(){return this}()||Function("return this")(),uFe=Object.defineProperty,aF=function(e,t){try{uFe(Be,e,{value:t,configurable:!0,writable:!0})}catch(r){Be[e]=t}return t},Al=Be["__core-js_shared__"]||aF("__core-js_shared__",{}),iF=Pm(function(e){(e.exports=function(t,r){return Al[t]||(Al[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),fZ=Function.prototype,sk=fZ.bind,uk=fZ.call,lFe=sk&&sk.bind(uk),Ye=sk?function(e){return e&&lFe(uk,e)}:function(e){return e&&function(){return uk.apply(e,arguments)}},cFe=Be.TypeError,oo=function(e){if(e==null)throw cFe("Can't call method on "+e);return e},fFe=Be.Object,pc=function(e){return fFe(oo(e))},dFe=Ye({}.hasOwnProperty),an=Object.hasOwn||function(e,t){return dFe(pc(e),t)},pFe=0,hFe=Math.random(),vFe=Ye(1 .toString),oF=function(e){return"Symbol("+(e===void 0?"":e)+")_"+vFe(++pFe+hFe,36)},ur=function(e){return typeof e=="function"},gFe=function(e){return ur(e)?e:void 0},x0=function(e,t){return arguments.length<2?gFe(Be[e]):Be[e]&&Be[e][t]},Pd=x0("navigator","userAgent")||"",CM=Be.process,_M=Be.Deno,AM=CM&&CM.versions||_M&&_M.version,kM=AM&&AM.v8;kM&&(Sx=(Nu=kM.split("."))[0]>0&&Nu[0]<4?1:+(Nu[0]+Nu[1])),!Sx&&Pd&&(!(Nu=Pd.match(/Edge\/(\d+)/))||Nu[1]>=74)&&(Nu=Pd.match(/Chrome\/(\d+)/))&&(Sx=+Nu[1]);var m1=Sx,nr=function(e){try{return!!e()}catch(t){return!0}},lk=!!Object.getOwnPropertySymbols&&!nr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&m1&&m1<41}),sF=lk&&!Symbol.sham&&typeof Symbol.iterator=="symbol",$h=iF("wks"),yf=Be.Symbol,TM=yf&&yf.for,mFe=sF?yf:yf&&yf.withoutSetter||oF,Ur=function(e){if(!an($h,e)||!lk&&typeof $h[e]!="string"){var t="Symbol."+e;lk&&an(yf,e)?$h[e]=yf[e]:$h[e]=sF&&TM?TM(t):mFe(t)}return $h[e]},dZ={};dZ[Ur("toStringTag")]="z";var uF=String(dZ)==="[object z]",Vn=!nr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),xr=function(e){return typeof e=="object"?e!==null:ur(e)},ck=Be.document,yFe=xr(ck)&&xr(ck.createElement),y1=function(e){return yFe?ck.createElement(e):{}},pZ=!Vn&&!nr(function(){return Object.defineProperty(y1("div"),"a",{get:function(){return 7}}).a!=7}),xFe=Be.String,bFe=Be.TypeError,sn=function(e){if(xr(e))return e;throw bFe(xFe(e)+" is not an object")},Uh=Function.prototype.call,Ht=Uh.bind?Uh.bind(Uh):function(){return Uh.apply(Uh,arguments)},Gf=Ye({}.isPrototypeOf),wFe=Be.Object,G3=sF?function(e){return typeof e=="symbol"}:function(e){var t=x0("Symbol");return ur(t)&&Gf(t.prototype,wFe(e))},EFe=Be.String,l4=function(e){try{return EFe(e)}catch(t){return"Object"}},SFe=Be.TypeError,Zl=function(e){if(ur(e))return e;throw SFe(l4(e)+" is not a function")},Kf=function(e,t){var r=e[t];return r==null?void 0:Zl(r)},CFe=Be.TypeError,_Fe=Be.TypeError,AFe=Ur("toPrimitive"),lF=function(e){var t=function(r,n){if(!xr(r)||G3(r))return r;var a,i=Kf(r,AFe);if(i){if(n===void 0&&(n="default"),a=Ht(i,r,n),!xr(a)||G3(a))return a;throw _Fe("Can't convert object to primitive value")}return n===void 0&&(n="number"),function(o,s){var u,l;if(s==="string"&&ur(u=o.toString)&&!xr(l=Ht(u,o))||ur(u=o.valueOf)&&!xr(l=Ht(u,o))||s!=="string"&&ur(u=o.toString)&&!xr(l=Ht(u,o)))return l;throw CFe("Can't convert object to primitive value")}(r,n)}(e,"string");return G3(t)?t:t+""},kFe=Be.TypeError,DM=Object.defineProperty,Ko={f:Vn?DM:function(e,t,r){if(sn(e),t=lF(t),sn(r),pZ)try{return DM(e,t,r)}catch(n){}if("get"in r||"set"in r)throw kFe("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},c4=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Mo=Vn?function(e,t,r){return Ko.f(e,t,c4(1,r))}:function(e,t,r){return e[t]=r,e},TFe=Ye(Function.toString);ur(Al.inspectSource)||(Al.inspectSource=function(e){return TFe(e)});var rw,Sg,nw,f4=Al.inspectSource,OM=Be.WeakMap,hZ=ur(OM)&&/native code/.test(f4(OM)),FM=iF("keys"),cF=function(e){return FM[e]||(FM[e]=oF(e))},d4={},fk=Be.TypeError,DFe=Be.WeakMap;if(hZ||Al.state){var kc=Al.state||(Al.state=new DFe),OFe=Ye(kc.get),BM=Ye(kc.has),FFe=Ye(kc.set);rw=function(e,t){if(BM(kc,e))throw new fk("Object already initialized");return t.facade=e,FFe(kc,e,t),t},Sg=function(e){return OFe(kc,e)||{}},nw=function(e){return BM(kc,e)}}else{var L0=cF("state");d4[L0]=!0,rw=function(e,t){if(an(e,L0))throw new fk("Object already initialized");return t.facade=e,Mo(e,L0,t),t},Sg=function(e){return an(e,L0)?e[L0]:{}},nw=function(e){return an(e,L0)}}var Ca={set:rw,get:Sg,has:nw,enforce:function(e){return nw(e)?Sg(e):rw(e,{})},getterFor:function(e){return function(t){var r;if(!xr(t)||(r=Sg(t)).type!==e)throw fk("Incompatible receiver, "+e+" required");return r}}},vZ=Function.prototype,BFe=Vn&&Object.getOwnPropertyDescriptor,K3=an(vZ,"name"),eh={EXISTS:K3,PROPER:K3&&function(){}.name==="something",CONFIGURABLE:K3&&(!Vn||Vn&&BFe(vZ,"name").configurable)},ni=Pm(function(e){var t=eh.CONFIGURABLE,r=Ca.get,n=Ca.enforce,a=String(String).split("String");(e.exports=function(i,o,s,u){var l,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,p=u&&u.name!==void 0?u.name:o;ur(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!an(s,"name")||t&&s.name!==p)&&Mo(s,"name",p),(l=n(s)).source||(l.source=a.join(typeof p=="string"?p:""))),i!==Be?(c?!d&&i[o]&&(f=!0):delete i[o],f?i[o]=s:Mo(i,o,s)):f?i[o]=s:aF(o,s)})(Function.prototype,"toString",function(){return ur(this)&&r(this).source||f4(this)})}),PFe=Ye({}.toString),NFe=Ye("".slice),jo=function(e){return NFe(PFe(e),8,-1)},IFe=Ur("toStringTag"),RFe=Be.Object,LFe=jo(function(){return arguments}())=="Arguments",p4=uF?jo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(a,i){try{return a[i]}catch(o){}}(t=RFe(e),IFe))=="string"?r:LFe?jo(t):(n=jo(t))=="Object"&&ur(t.callee)?"Arguments":n},MFe=uF?{}.toString:function(){return"[object "+p4(this)+"]"};uF||ni(Object.prototype,"toString",MFe,{unsafe:!0});var aw={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},q3=y1("span").classList,PM=q3&&q3.constructor&&q3.constructor.prototype,gZ=PM===Object.prototype?void 0:PM,NM=Ye(Ye.bind),qf=function(e,t){return Zl(e),t===void 0?e:NM?NM(e,t):function(){return e.apply(t,arguments)}},X3=Be.Object,jFe=Ye("".split),h4=nr(function(){return!X3("z").propertyIsEnumerable(0)})?function(e){return jo(e)=="String"?jFe(e,""):X3(e)}:X3,$Fe=Math.ceil,UFe=Math.floor,Nm=function(e){var t=+e;return t!=t||t===0?0:(t>0?UFe:$Fe)(t)},HFe=Math.min,th=function(e){return e>0?HFe(Nm(e),9007199254740991):0},b0=function(e){return th(e.length)},iw=Array.isArray||function(e){return jo(e)=="Array"},mZ=function(){},zFe=[],yZ=x0("Reflect","construct"),fF=/^\s*(?:class|function)\b/,VFe=Ye(fF.exec),WFe=!fF.exec(mZ),Hh=function(e){if(!ur(e))return!1;try{return yZ(mZ,zFe,e),!0}catch(t){return!1}},v4=!yZ||nr(function(){var e;return Hh(Hh.call)||!Hh(Object)||!Hh(function(){e=!0})||e})?function(e){if(!ur(e))return!1;switch(p4(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return WFe||!!VFe(fF,f4(e))}:Hh,GFe=Ur("species"),IM=Be.Array,xZ=function(e,t){return new(function(r){var n;return iw(r)&&(n=r.constructor,(v4(n)&&(n===IM||iw(n.prototype))||xr(n)&&(n=n[GFe])===null)&&(n=void 0)),n===void 0?IM:n}(e))(t===0?0:t)},RM=Ye([].push),Iu=function(e){var t=e==1,r=e==2,n=e==3,a=e==4,i=e==6,o=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,v=pc(u),h=h4(v),g=qf(l,c),m=b0(h),y=0,x=f||xZ,b=t?x(u,m):r||o?x(u,0):void 0;m>y;y++)if((s||y in h)&&(p=g(d=h[y],y,v),e))if(t)b[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:RM(b,d)}else switch(e){case 4:return!1;case 7:RM(b,d)}return i?-1:n||a?a:b}},rh={forEach:Iu(0),map:Iu(1),filter:Iu(2),some:Iu(3),every:Iu(4),find:Iu(5),findIndex:Iu(6),filterReject:Iu(7)},bZ=function(e,t){var r=[][e];return!!r&&nr(function(){r.call(null,t||function(){throw 1},1)})},KFe=rh.forEach,Y3=bZ("forEach")?[].forEach:function(e){return KFe(this,e,arguments.length>1?arguments[1]:void 0)},wZ=function(e){if(e&&e.forEach!==Y3)try{Mo(e,"forEach",Y3)}catch(t){e.forEach=Y3}};for(var J3 in aw)aw[J3]&&wZ(Be[J3]&&Be[J3].prototype);wZ(gZ);var LM={}.propertyIsEnumerable,MM=Object.getOwnPropertyDescriptor,qFe=MM&&!LM.call({1:2},1)?function(e){var t=MM(this,e);return!!t&&t.enumerable}:LM,EZ={f:qFe},hc=function(e){return h4(oo(e))},jM=Object.getOwnPropertyDescriptor,Im={f:Vn?jM:function(e,t){if(e=hc(e),t=lF(t),pZ)try{return jM(e,t)}catch(r){}if(an(e,t))return c4(!Ht(EZ.f,e,t),e[t])}},XFe=Math.max,YFe=Math.min,Sp=function(e,t){var r=Nm(e);return r<0?XFe(r+t,0):YFe(r,t)},$M=function(e){return function(t,r,n){var a,i=hc(t),o=b0(i),s=Sp(n,o);if(e&&r!=r){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},SZ={includes:$M(!0),indexOf:$M(!1)},JFe=SZ.indexOf,UM=Ye([].push),CZ=function(e,t){var r,n=hc(e),a=0,i=[];for(r in n)!an(d4,r)&&an(n,r)&&UM(i,r);for(;t.length>a;)an(n,r=t[a++])&&(~JFe(i,r)||UM(i,r));return i},ow=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ZFe=ow.concat("length","prototype"),x1={f:Object.getOwnPropertyNames||function(e){return CZ(e,ZFe)}},_Z={f:Object.getOwnPropertySymbols},QFe=Ye([].concat),e9e=x0("Reflect","ownKeys")||function(e){var t=x1.f(sn(e)),r=_Z.f;return r?QFe(t,r(e)):t},t9e=function(e,t){for(var r=e9e(t),n=Ko.f,a=Im.f,i=0;i<r.length;i++){var o=r[i];an(e,o)||n(e,o,a(t,o))}},r9e=/#|\.prototype\./,Rm=function(e,t){var r=a9e[n9e(e)];return r==o9e||r!=i9e&&(ur(t)?nr(t):!!t)},n9e=Rm.normalize=function(e){return String(e).replace(r9e,".").toLowerCase()},a9e=Rm.data={},i9e=Rm.NATIVE="N",o9e=Rm.POLYFILL="P",b1=Rm,s9e=Im.f,Mr=function(e,t){var r,n,a,i,o,s=e.target,u=e.global,l=e.stat;if(r=u?Be:l?Be[s]||aF(s,{}):(Be[s]||{}).prototype)for(n in t){if(i=t[n],a=e.noTargetGet?(o=s9e(r,n))&&o.value:r[n],!b1(u?n:s+(l?".":"#")+n,e.forced)&&a!==void 0){if(typeof i==typeof a)continue;t9e(i,a)}(e.sham||a&&a.sham)&&Mo(i,"sham",!0),ni(r,n,i,e)}},Nd=Object.keys||function(e){return CZ(e,ow)},u9e=nr(function(){Nd(1)});/*!
|
||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||
*
|
||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
* Released under the MIT License.
|
||
*/function HM(e){return Object.prototype.toString.call(e)==="[object Object]"}Mr({target:"Object",stat:!0,forced:u9e},{keys:function(e){return Nd(pc(e))}});var l9e={isHistory(e){return HM(t=e)!==!1&&((r=t.constructor)===void 0||HM(n=r.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||vl.isOperationList(e.redos[0]))&&(e.undos.length===0||vl.isOperationList(e.undos[0]));var t,r,n}},Z3=new WeakMap,Q3=new WeakMap,Ed={isHistoryEditor:e=>l9e.isHistory(e.history)&&D.isEditor(e),isMerging:e=>Q3.get(e),isSaving:e=>Z3.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var r=Ed.isMerging(e);Q3.set(e,!1),t(),Q3.set(e,r)},withoutSaving(e,t){var r=Ed.isSaving(e);Z3.set(e,!1),t(),Z3.set(e,r)}},c9e=Be.String,gr=function(e){if(p4(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return c9e(e)},dF=function(){var e=sn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},f9e=eh.PROPER,dk=RegExp.prototype,AZ=dk.toString,d9e=Ye(dF),p9e=nr(function(){return AZ.call({source:"a",flags:"b"})!="/a/b"}),h9e=f9e&&AZ.name!="toString";(p9e||h9e)&&ni(RegExp.prototype,"toString",function(){var e=sn(this),t=gr(e.source),r=e.flags;return"/"+t+"/"+gr(r===void 0&&Gf(dk,e)&&!("flags"in dk)?d9e(e):r)},{unsafe:!0});var e2,v9e=Vn?Object.defineProperties:function(e,t){sn(e);for(var r,n=hc(t),a=Nd(t),i=a.length,o=0;i>o;)Ko.f(e,r=a[o++],n[r]);return e},pk=x0("document","documentElement"),kZ=cF("IE_PROTO"),eC=function(){},TZ=function(e){return"<script>"+e+"<\/script>"},zM=function(e){e.write(TZ("")),e.close();var t=e.parentWindow.Object;return e=null,t},Cx=function(){try{e2=new ActiveXObject("htmlfile")}catch(n){}var e,t;Cx=typeof document<"u"?document.domain&&e2?zM(e2):((t=y1("iframe")).style.display="none",pk.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(TZ("document.F=Object")),e.close(),e.F):zM(e2);for(var r=ow.length;r--;)delete Cx.prototype[ow[r]];return Cx()};d4[kZ]=!0;var g4=Object.create||function(e,t){var r;return e!==null?(eC.prototype=sn(e),r=new eC,eC.prototype=null,r[kZ]=e):r=Cx(),t===void 0?r:v9e(r,t)},hk=Ur("unscopables"),vk=Array.prototype;vk[hk]==null&&Ko.f(vk,hk,{configurable:!0,value:g4(null)});var Cg=function(e){vk[hk][e]=!0},g9e=SZ.includes;Mr({target:"Array",proto:!0},{includes:function(e){return g9e(this,e,arguments.length>1?arguments[1]:void 0)}}),Cg("includes");var m9e=Ur("match"),pF=function(e){var t;return xr(e)&&((t=e[m9e])!==void 0?!!t:jo(e)=="RegExp")},y9e=Be.TypeError,hF=function(e){if(pF(e))throw y9e("The method doesn't accept regular expressions");return e},x9e=Ur("match"),vF=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[x9e]=!1,"/./"[e](t)}catch(n){}}return!1},b9e=Ye("".indexOf);Mr({target:"String",proto:!0,forced:!vF("includes")},{includes:function(e){return!!~b9e(gr(oo(this)),gr(hF(e)),arguments.length>1?arguments[1]:void 0)}});var w9e=/"/g,E9e=Ye("".replace);Mr({target:"String",proto:!0,forced:nr(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,r=gr(oo(this)),n="<a",(n+=' name="'+E9e(gr(t),w9e,""")+'"')+">"+r+"</a>";var t,r,n}});var gk=function(e,t,r){var n,a;sn(e);try{if(!(n=Kf(e,"return"))){if(t==="throw")throw r;return r}n=Ht(n,e)}catch(i){a=!0,n=i}if(t==="throw")throw r;if(a)throw n;return sn(n),r},S9e=function(e,t,r,n){try{return n?t(sn(r)[0],r[1]):t(r)}catch(a){gk(e,"throw",a)}},Cp={},C9e=Ur("iterator"),_9e=Array.prototype,DZ=function(e){return e!==void 0&&(Cp.Array===e||_9e[C9e]===e)},w1=function(e,t,r){var n=lF(t);n in e?Ko.f(e,n,c4(0,r)):e[n]=r},A9e=Ur("iterator"),gF=function(e){if(e!=null)return Kf(e,A9e)||Kf(e,"@@iterator")||Cp[p4(e)]},k9e=Be.TypeError,OZ=function(e,t){var r=arguments.length<2?gF(e):t;if(Zl(r))return sn(Ht(r,e));throw k9e(l4(e)+" is not iterable")},VM=Be.Array,FZ=Ur("iterator"),BZ=!1;try{var T9e=0,WM={next:function(){return{done:!!T9e++}},return:function(){BZ=!0}};WM[FZ]=function(){return this},Array.from(WM,function(){throw 2})}catch(e){}var mF=function(e,t){if(!t&&!BZ)return!1;var r=!1;try{var n={};n[FZ]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(a){}return r},D9e=!mF(function(e){Array.from(e)});Mr({target:"Array",stat:!0,forced:D9e},{from:function(e){var t=pc(e),r=v4(this),n=arguments.length,a=n>1?arguments[1]:void 0,i=a!==void 0;i&&(a=qf(a,n>2?arguments[2]:void 0));var o,s,u,l,c,f,d=gF(t),p=0;if(!d||this==VM&&DZ(d))for(o=b0(t),s=r?new this(o):VM(o);o>p;p++)f=i?a(t[p],p):t[p],w1(s,p,f);else for(c=(l=OZ(t,d)).next,s=r?new this:[];!(u=Ht(c,l)).done;p++)f=i?S9e(l,a,[u.value,p],!0):u.value,w1(s,p,f);return s.length=p,s}});var xf,GM,KM,O9e=Ye("".charAt),qM=Ye("".charCodeAt),F9e=Ye("".slice),XM=function(e){return function(t,r){var n,a,i=gr(oo(t)),o=Nm(r),s=i.length;return o<0||o>=s?e?"":void 0:(n=qM(i,o))<55296||n>56319||o+1===s||(a=qM(i,o+1))<56320||a>57343?e?O9e(i,o):n:e?F9e(i,o,o+2):a-56320+(n-55296<<10)+65536}},PZ={codeAt:XM(!1),charAt:XM(!0)},B9e=!nr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),YM=cF("IE_PROTO"),mk=Be.Object,P9e=mk.prototype,sw=B9e?mk.getPrototypeOf:function(e){var t=pc(e);if(an(t,YM))return t[YM];var r=t.constructor;return ur(r)&&t instanceof r?r.prototype:t instanceof mk?P9e:null},yk=Ur("iterator"),NZ=!1;[].keys&&("next"in(KM=[].keys())?(GM=sw(sw(KM)))!==Object.prototype&&(xf=GM):NZ=!0);var N9e=xf==null||nr(function(){var e={};return xf[yk].call(e)!==e});N9e&&(xf={}),ur(xf[yk])||ni(xf,yk,function(){return this});var yF={IteratorPrototype:xf,BUGGY_SAFARI_ITERATORS:NZ},I9e=Ko.f,JM=Ur("toStringTag"),uw=function(e,t,r){e&&!an(e=r?e:e.prototype,JM)&&I9e(e,JM,{configurable:!0,value:t})},R9e=yF.IteratorPrototype,L9e=function(){return this},M9e=Be.String,j9e=Be.TypeError,_p=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ye(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(n){}return function(n,a){return sn(n),function(i){if(typeof i=="object"||ur(i))return i;throw j9e("Can't set "+M9e(i)+" as a prototype")}(a),t?e(n,a):n.__proto__=a,n}}():void 0),$9e=eh.PROPER,U9e=eh.CONFIGURABLE,ZM=yF.IteratorPrototype,t2=yF.BUGGY_SAFARI_ITERATORS,zh=Ur("iterator"),H9e=function(){return this},xF=function(e,t,r,n,a,i,o){(function(m,y,x,b){var E=y+" Iterator";m.prototype=g4(R9e,{next:c4(1,x)}),uw(m,E,!1),Cp[E]=L9e})(r,t,n);var s,u,l,c=function(m){if(m===a&&h)return h;if(!t2&&m in p)return p[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,p=e.prototype,v=p[zh]||p["@@iterator"]||a&&p[a],h=!t2&&v||c(a),g=t=="Array"&&p.entries||v;if(g&&(s=sw(g.call(new e)))!==Object.prototype&&s.next&&(sw(s)!==ZM&&(_p?_p(s,ZM):ur(s[zh])||ni(s,zh,H9e)),uw(s,f,!0)),$9e&&a=="values"&&v&&v.name!=="values"&&(U9e?Mo(p,"name","values"):(d=!0,h=function(){return Ht(v,this)})),a)if(u={values:c("values"),keys:i?h:c("keys"),entries:c("entries")},o)for(l in u)(t2||d||!(l in p))&&ni(p,l,u[l]);else Mr({target:t,proto:!0,forced:t2||d},u);return p[zh]!==h&&ni(p,zh,h,{name:a}),Cp[t]=h,u},z9e=PZ.charAt,V9e=Ca.set,W9e=Ca.getterFor("String Iterator");xF(String,"String",function(e){V9e(this,{type:"String Iterator",string:gr(e),index:0})},function(){var e,t=W9e(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=z9e(r,n),t.index+=e.length,{value:e,done:!1})});var tC,G9e=Im.f,QM=Ye("".endsWith),K9e=Ye("".slice),q9e=Math.min,IZ=vF("endsWith"),X9e=!(IZ||(tC=G9e(String.prototype,"endsWith"),!tC||tC.writable));Mr({target:"String",proto:!0,forced:!X9e&&!IZ},{endsWith:function(e){var t=gr(oo(this));hF(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,a=r===void 0?n:q9e(th(r),n),i=gr(e);return QM?QM(t,i,a):K9e(t,a-i.length,a)===i}});var Y9e=Ye([].join),J9e=h4!=Object,Z9e=bZ("join",",");Mr({target:"Array",proto:!0,forced:J9e||!Z9e},{join:function(e){return Y9e(hc(this),e===void 0?",":e)}});var Q9e=Ur("species"),m4=function(e){return m1>=51||!nr(function(){var t=[];return(t.constructor={})[Q9e]=function(){return{foo:1}},t[e](Boolean).foo!==1})},e7e=rh.map,t7e=m4("map");Mr({target:"Array",proto:!0,forced:!t7e},{map:function(e){return e7e(this,e,arguments.length>1?arguments[1]:void 0)}});var bF=Be.RegExp,xk=nr(function(){var e=bF("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),r7e=xk||nr(function(){return!bF("a","y").sticky}),y4={BROKEN_CARET:xk||nr(function(){var e=bF("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:r7e,UNSUPPORTED_Y:xk},n7e=Be.RegExp,wF=nr(function(){var e=n7e(".","s");return!(e.dotAll&&e.exec(`
|
||
`)&&e.flags==="s")}),a7e=Be.RegExp,EF=nr(function(){var e=a7e("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),i7e=Ca.get,o7e=iF("native-string-replace",String.prototype.replace),lw=RegExp.prototype.exec,bk=lw,s7e=Ye("".charAt),u7e=Ye("".indexOf),l7e=Ye("".replace),rC=Ye("".slice),nC=function(){var e=/a/,t=/b*/g;return Ht(lw,e,"a"),Ht(lw,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),ej=y4.BROKEN_CARET,aC=/()??/.exec("")[1]!==void 0;(nC||aC||ej||wF||EF)&&(bk=function(e){var t,r,n,a,i,o,s,u=this,l=i7e(u),c=gr(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=Ht(bk,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=ej&&u.sticky,v=Ht(dF,u),h=u.source,g=0,m=c;if(p&&(v=l7e(v,"y",""),u7e(v,"g")===-1&&(v+="g"),m=rC(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&s7e(c,u.lastIndex-1)!==`
|
||
`)&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),aC&&(r=new RegExp("^"+h+"$(?!\\s)",v)),nC&&(n=u.lastIndex),a=Ht(lw,p?r:u,m),p?a?(a.input=rC(a.input,g),a[0]=rC(a[0],g),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:nC&&a&&(u.lastIndex=u.global?a.index+a[0].length:n),aC&&a&&a.length>1&&Ht(o7e,a[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(a[i]=void 0)}),a&&d)for(a.groups=o=g4(null),i=0;i<d.length;i++)o[(s=d[i])[0]]=a[s[1]];return a});var E1=bk;Mr({target:"RegExp",proto:!0,forced:/./.exec!==E1},{exec:E1});var SF=Function.prototype,tj=SF.apply,c7e=SF.bind,rj=SF.call,CF=typeof Reflect=="object"&&Reflect.apply||(c7e?rj.bind(tj):function(){return rj.apply(tj,arguments)}),f7e=Ur("species"),iC=RegExp.prototype,_F=function(e,t,r,n){var a=Ur(e),i=!nr(function(){var l={};return l[a]=function(){return 7},""[e](l)!=7}),o=i&&!nr(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[f7e]=function(){return c},c.flags="",c[a]=/./[a]),c.exec=function(){return l=!0,null},c[a](""),!l});if(!i||!o||r){var s=Ye(/./[a]),u=t(a,""[e],function(l,c,f,d,p){var v=Ye(l),h=c.exec;return h===E1||h===iC.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});ni(String.prototype,e,u[0]),ni(iC,a,u[1])}n&&Mo(iC[a],"sham",!0)},d7e=PZ.charAt,AF=function(e,t,r){return t+(r?d7e(e,t).length:1)},p7e=Math.floor,oC=Ye("".charAt),h7e=Ye("".replace),sC=Ye("".slice),v7e=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,g7e=/\$([$&'`]|\d{1,2})/g,m7e=function(e,t,r,n,a,i){var o=r+e.length,s=n.length,u=g7e;return a!==void 0&&(a=pc(a),u=v7e),h7e(i,u,function(l,c){var f;switch(oC(c,0)){case"$":return"$";case"&":return e;case"`":return sC(t,0,r);case"'":return sC(t,o);case"<":f=a[sC(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>s){var p=p7e(d/10);return p===0?l:p<=s?n[p-1]===void 0?oC(c,1):n[p-1]+oC(c,1):l}f=n[d-1]}return f===void 0?"":f})},y7e=Be.TypeError,S1=function(e,t){var r=e.exec;if(ur(r)){var n=Ht(r,e,t);return n!==null&&sn(n),n}if(jo(e)==="RegExp")return Ht(E1,e,t);throw y7e("RegExp#exec called on incompatible receiver")},wk=Ur("replace"),x7e=Math.max,b7e=Math.min,w7e=Ye([].concat),uC=Ye([].push),nj=Ye("".indexOf),aj=Ye("".slice),E7e="a".replace(/./,"$0")==="$0",ij=!!/./[wk]&&/./[wk]("a","$0")==="";_F("replace",function(e,t,r){var n=ij?"$":"$0";return[function(a,i){var o=oo(this),s=a==null?void 0:Kf(a,wk);return s?Ht(s,a,o,i):Ht(t,gr(o),a,i)},function(a,i){var o=sn(this),s=gr(a);if(typeof i=="string"&&nj(i,n)===-1&&nj(i,"$<")===-1){var u=r(t,o,s,i);if(u.done)return u.value}var l=ur(i);l||(i=gr(i));var c=o.global;if(c){var f=o.unicode;o.lastIndex=0}for(var d=[];;){var p=S1(o,s);if(p===null||(uC(d,p),!c))break;gr(p[0])===""&&(o.lastIndex=AF(s,th(o.lastIndex),f))}for(var v,h="",g=0,m=0;m<d.length;m++){for(var y=gr((p=d[m])[0]),x=x7e(b7e(Nm(p.index),s.length),0),b=[],E=1;E<p.length;E++)uC(b,(v=p[E])===void 0?v:String(v));var S=p.groups;if(l){var w=w7e([y],b,x,s);S!==void 0&&uC(w,S);var C=gr(CF(i,void 0,w))}else C=m7e(y,s,x,b,S,i);x>=g&&(h+=aj(s,g,x)+C,g=x+y.length)}return h+aj(s,g)}]},!!nr(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!E7e||ij);/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var Ek=function(e,t){return Ek=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Ek(e,t)};function nh(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ek(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Vi=function(){return Vi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Vi.apply(this,arguments)};function Wi(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function jt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}function Sk(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e}var S7e=0,oj=function(){this.id=""+S7e++},C7e=Ca.set,_7e=Ca.getterFor("Array Iterator"),Yv=xF(Array,"Array",function(e,t){C7e(this,{type:"Array Iterator",target:hc(e),index:0,kind:t})},function(){var e=_7e(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");Cp.Arguments=Cp.Array,Cg("keys"),Cg("values"),Cg("entries");var Ap=function(e,t,r){for(var n in t)ni(e,n,t[n],r);return e},A7e=Be.Array,k7e=Math.max,Ck=function(e,t,r){for(var n=b0(e),a=Sp(t,n),i=Sp(r===void 0?n:r,n),o=A7e(k7e(i-a,0)),s=0;a<i;a++,s++)w1(o,s,e[a]);return o.length=s,o},sj=x1.f,uj=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],T7e={f:function(e){return uj&&jo(e)=="Window"?function(t){try{return sj(t)}catch(r){return Ck(uj)}}(e):sj(hc(e))}},lj=nr(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),r2=Object.isExtensible,tf=nr(function(){r2(1)})||lj?function(e){return!!xr(e)&&(!lj||jo(e)!="ArrayBuffer")&&(!r2||r2(e))}:r2,D7e=!nr(function(){return Object.isExtensible(Object.preventExtensions({}))}),x4=Pm(function(e){var t=Ko.f,r=!1,n=oF("meta"),a=0,i=function(s){t(s,n,{value:{objectID:"O"+a++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},r=!0;var s=x1.f,u=Ye([].splice),l={};l[n]=1,s(l).length&&(x1.f=function(c){for(var f=s(c),d=0,p=f.length;d<p;d++)if(f[d]===n){u(f,d,1);break}return f},Mr({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:T7e.f}))},fastKey:function(s,u){if(!xr(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!an(s,n)){if(!tf(s))return"F";if(!u)return"E";i(s)}return s[n].objectID},getWeakData:function(s,u){if(!an(s,n)){if(!tf(s))return!0;if(!u)return!1;i(s)}return s[n].weakData},onFreeze:function(s){return D7e&&r&&tf(s)&&!an(s,n)&&i(s),s}};d4[n]=!0}),O7e=Be.TypeError,_x=function(e,t){this.stopped=e,this.result=t},cj=_x.prototype,C1=function(e,t,r){var n,a,i,o,s,u,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=qf(t,c),h=function(m){return n&&gk(n,"normal",m),new _x(!0,m)},g=function(m){return f?(sn(m),p?v(m[0],m[1],h):v(m[0],m[1])):p?v(m,h):v(m)};if(d)n=e;else{if(!(a=gF(e)))throw O7e(l4(e)+" is not iterable");if(DZ(a)){for(i=0,o=b0(e);o>i;i++)if((s=g(e[i]))&&Gf(cj,s))return s;return new _x(!1)}n=OZ(e,a)}for(u=n.next;!(l=Ht(u,n)).done;){try{s=g(l.value)}catch(m){gk(n,"throw",m)}if(typeof s=="object"&&s&&Gf(cj,s))return s}return new _x(!1)},F7e=Be.TypeError,b4=function(e,t){if(Gf(t,e))return e;throw F7e("Incorrect invocation")},RZ=function(e,t,r){var n,a;return _p&&ur(n=t.constructor)&&n!==r&&xr(a=n.prototype)&&a!==r.prototype&&_p(e,a),e},LZ=function(e,t,r){var n=e.indexOf("Map")!==-1,a=e.indexOf("Weak")!==-1,i=n?"set":"add",o=Be[e],s=o&&o.prototype,u=o,l={},c=function(g){var m=Ye(s[g]);ni(s,g,g=="add"?function(y){return m(this,y===0?0:y),this}:g=="delete"?function(y){return!(a&&!xr(y))&&m(this,y===0?0:y)}:g=="get"?function(y){return a&&!xr(y)?void 0:m(this,y===0?0:y)}:g=="has"?function(y){return!(a&&!xr(y))&&m(this,y===0?0:y)}:function(y,x){return m(this,y===0?0:y,x),this})};if(b1(e,!ur(o)||!(a||s.forEach&&!nr(function(){new o().entries().next()}))))u=r.getConstructor(t,e,n,i),x4.enable();else if(b1(e,!0)){var f=new u,d=f[i](a?{}:-0,1)!=f,p=nr(function(){f.has(1)}),v=mF(function(g){new o(g)}),h=!a&&nr(function(){for(var g=new o,m=5;m--;)g[i](m,m);return!g.has(-0)});v||((u=t(function(g,m){b4(g,s);var y=RZ(new o,g,u);return m!=null&&C1(m,y[i],{that:y,AS_ENTRIES:n}),y})).prototype=s,s.constructor=u),(p||h)&&(c("delete"),c("has"),n&&c("get")),(h||d)&&c(i),a&&s.clear&&delete s.clear}return l[e]=u,Mr({global:!0,forced:u!=o},l),uw(u,e),a||r.setStrong(u,e,n),u},n2=x4.getWeakData,B7e=Ca.set,P7e=Ca.getterFor,N7e=rh.find,I7e=rh.findIndex,R7e=Ye([].splice),L7e=0,a2=function(e){return e.frozen||(e.frozen=new MZ)},MZ=function(){this.entries=[]},lC=function(e,t){return N7e(e.entries,function(r){return r[0]===t})};MZ.prototype={get:function(e){var t=lC(this,e);if(t)return t[1]},has:function(e){return!!lC(this,e)},set:function(e,t){var r=lC(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=I7e(this.entries,function(r){return r[0]===e});return~t&&R7e(this.entries,t,1),!!~t}};var Vh,jZ={getConstructor:function(e,t,r,n){var a=e(function(u,l){b4(u,i),B7e(u,{type:t,id:L7e++,frozen:void 0}),l!=null&&C1(l,u[n],{that:u,AS_ENTRIES:r})}),i=a.prototype,o=P7e(t),s=function(u,l,c){var f=o(u),d=n2(sn(l),!0);return d===!0?a2(f).set(l,c):d[f.id]=c,u};return Ap(i,{delete:function(u){var l=o(this);if(!xr(u))return!1;var c=n2(u);return c===!0?a2(l).delete(u):c&&an(c,l.id)&&delete c[l.id]},has:function(u){var l=o(this);if(!xr(u))return!1;var c=n2(u);return c===!0?a2(l).has(u):c&&an(c,l.id)}}),Ap(i,r?{get:function(u){var l=o(this);if(xr(u)){var c=n2(u);return c===!0?a2(l).get(u):c?c[l.id]:void 0}},set:function(u,l){return s(this,u,l)}}:{add:function(u){return s(this,u,!0)}}),a}},i2=Ca.enforce,M7e=!Be.ActiveXObject&&"ActiveXObject"in Be,$Z=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},j7e=LZ("WeakMap",$Z,jZ);if(hZ&&M7e){Vh=jZ.getConstructor($Z,"WeakMap",!0),x4.enable();var Wh=j7e.prototype,fj=Ye(Wh.delete),o2=Ye(Wh.has),dj=Ye(Wh.get),pj=Ye(Wh.set);Ap(Wh,{delete:function(e){if(xr(e)&&!tf(e)){var t=i2(this);return t.frozen||(t.frozen=new Vh),fj(this,e)||t.frozen.delete(e)}return fj(this,e)},has:function(e){if(xr(e)&&!tf(e)){var t=i2(this);return t.frozen||(t.frozen=new Vh),o2(this,e)||t.frozen.has(e)}return o2(this,e)},get:function(e){if(xr(e)&&!tf(e)){var t=i2(this);return t.frozen||(t.frozen=new Vh),o2(this,e)?dj(this,e):t.frozen.get(e)}return dj(this,e)},set:function(e,t){if(xr(e)&&!tf(e)){var r=i2(this);r.frozen||(r.frozen=new Vh),o2(this,e)?pj(this,e,t):r.frozen.set(e,t)}else pj(this,e,t);return this}})}var cC=Ur("iterator"),hj=Ur("toStringTag"),fC=Yv.values,UZ=function(e,t){if(e){if(e[cC]!==fC)try{Mo(e,cC,fC)}catch(n){e[cC]=fC}if(e[hj]||Mo(e,hj,t),aw[t]){for(var r in Yv)if(e[r]!==Yv[r])try{Mo(e,r,Yv[r])}catch(n){e[r]=Yv[r]}}}};for(var dC in aw)UZ(Be[dC]&&Be[dC].prototype,dC);UZ(gZ,"DOMTokenList");var _k=new WeakMap,Ak=new WeakMap,kF=new WeakMap,w4=new WeakMap,kk=new WeakMap,cw=new WeakMap,TF=new WeakMap,Tk=new WeakMap,Ax=new WeakMap,vj=new WeakMap,gj=new WeakMap,mj=new WeakMap,yj=new WeakMap,_1=new WeakMap,kp=new WeakMap,DF=new WeakMap,fw=new WeakMap,Dk=new WeakMap,dw=new WeakMap,kx=new WeakMap,HZ=new WeakMap,bf=new WeakMap,pC=new WeakMap,xj=new WeakMap,hC=new WeakMap,$7e=rh.find,bj=!0;"find"in[]&&Array(1).find(function(){bj=!1}),Mr({target:"Array",proto:!0,forced:bj},{find:function(e){return $7e(this,e,arguments.length>1?arguments[1]:void 0)}}),Cg("find"),Mr({global:!0},{globalThis:Be});const U7e=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Yb&&(te.fn.css=Yb),io&&(te.fn.append=io),dp&&(te.fn.addClass=dp),pp&&(te.fn.removeClass=pp),hp&&(te.fn.hasClass=hp),_s&&(te.fn.on=_s),Jl&&(te.fn.focus=Jl),ao&&(te.fn.attr=ao),Gb&&(te.fn.removeAttr=Gb),gp&&(te.fn.hide=gp),Xb&&(te.fn.show=Xb),NL&&(te.fn.offset=NL),Kb&&(te.fn.width=Kb),qb&&(te.fn.height=qb),mp&&(te.fn.parent=mp),Qb&&(te.fn.parents=Qb),RL&&(te.fn.is=RL),vp&&(te.fn.dataset=vp),Cs&&(te.fn.val=Cs),Zb&&(te.fn.text=Zb),Yl&&(te.fn.html=Yl),xp&&(te.fn.children=xp),bp&&(te.fn.remove=bp),yp&&(te.fn.find=yp),Jb&&(te.fn.each=Jb),wp&&(te.fn.empty=wp);var ss,pa,OF=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Eo=function(e){return Xf(e)&&e.nodeType===1},Xf=function(e){var t=OF(e);return!!t&&e instanceof t.Node},wj=function(e){var t=e&&e.anchorNode&&OF(e.anchorNode);return!!t&&e instanceof t.Selection},zZ=function(e){return Xf(e)&&e.nodeType===3},Ok=function(e){var t,r,n;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((n=(r=window.document.activeElement)===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.getElementById(e))||null},VZ=function(e,t,r){for(var n,a=e.childNodes,i=a[t],o=t,s=!1,u=!1;(Xf(n=i)&&n.nodeType===8||Eo(i)&&i.childNodes.length===0||Eo(i)&&i.getAttribute("contenteditable")==="false")&&(!s||!u);)o>=a.length?(s=!0,o=t-1,r="backward"):o<0?(u=!0,o=t+1,r="forward"):(i=a[o],t=o,o+=r==="forward"?1:-1);return[i,t]},H7e=function(e,t,r){return jt(VZ(e,t,r),1)[0]},z7e=function e(t){var r,n,a="";if(zZ(t)&&t.nodeValue)return t.nodeValue;if(Eo(t)){try{for(var i=Wi(Array.from(t.childNodes)),o=i.next();!o.done;o=i.next())a+=e(o.value)}catch(u){r={error:u}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}var s=getComputedStyle(t).getPropertyValue("display");s!=="block"&&s!=="list"&&s!=="table-row"&&t.tagName!=="BR"||(a+=`
|
||
`)}return a};function WZ(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var r=e.childNodes,n=r.length;n--;){var a=r[n],i=a.nodeType;i==3?t(a,e):i!=1&&i!=9&&i!=11||WZ(a,t)}}function Ej(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==ss.ELEMENT_NODE?"":t.tagName.toLowerCase()}(pa=ss||(ss={}))[pa.ELEMENT_NODE=1]="ELEMENT_NODE",pa[pa.TEXT_NODE=3]="TEXT_NODE",pa[pa.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",pa[pa.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",pa[pa.COMMENT_NODE=8]="COMMENT_NODE",pa[pa.DOCUMENT_NODE=9]="DOCUMENT_NODE",pa[pa.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",pa[pa.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var Fk=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),_g=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Gh=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),V7e=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),W7e=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Bk=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Kh=!W7e&&!V7e&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",X={getWindow:function(e){var t=HZ.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var r=kx.get(t);return r||(r=new oj,kx.set(t,r)),r},setNewKey:function(e){var t=new oj;kx.set(e,t)},findPath:function(e,t){for(var r=[],n=t;;){var a=kp.get(n);if(a==null){if(D.isEditor(n))return r;break}var i=_1.get(n);if(i==null)break;r.unshift(i),n=a}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=X.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&r.getSelection!=null?r:t.ownerDocument},getParentNode:function(e,t){return kp.get(t)||null},getParentsNodes:function(e,t){for(var r=[],n=t;n!==e&&n!=null;){var a=X.getParentNode(e,n);if(a==null)break;r.push(a),n=a}return r},getTopNode:function(e,t){var r=[X.findPath(e,t)[0]];return Ie.get(e,r)},toDOMNode:function(e,t){var r;if(D.isEditor(t))r=DF.get(e);else{var n=X.findKey(e,t);r=Dk.get(n)}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return r},hasDOMNode:function(e,t,r){r===void 0&&(r={});var n,a=r.editable,i=a!==void 0&&a,o=X.toDOMNode(e,e);try{n=Eo(t)?t:t.parentElement}catch(s){if(!s.message.includes('Permission denied to access property "nodeType"'))throw s}return!!n&&n.closest("[data-slate-editor]")===o&&(!i||n.isContentEditable||!!n.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var r=t.anchor,n=t.focus,a=be.isBackward(t),i=X.toDOMPoint(e,r),o=be.isCollapsed(t)?i:X.toDOMPoint(e,n),s=X.getWindow(e).document.createRange(),u=jt(a?o:i,2),l=u[0],c=u[1],f=jt(a?i:o,2),d=f[0],p=f[1],v=!!(Eo(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),h=!!(Eo(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,v?1:c),s.setEnd(d,h?1:p),s},toDOMPoint:function(e,t){var r,n,a,i=jt(D.node(e,t.path),1)[0],o=X.toDOMNode(e,i);D.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(o.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),u=0;try{for(var l=Wi(s),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,v=f.getAttribute("data-slate-length"),h=u+(v==null?p:parseInt(v,10));if(t.offset<=h){a=[d,Math.min(p,Math.max(0,t.offset-u))];break}u=h}}}catch(g){r={error:g}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(!a)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return a},toSlateNode:function(e,t){var r=Eo(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?fw.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: "+r);return n},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var r=t.clientX,n=t.clientY,a=t.target;if(r==null||n==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,o=X.toSlateNode(e,t.target),s=X.findPath(e,o);if(D.isVoid(e,o)){var u=a.getBoundingClientRect(),l=e.isInline(o)?r-u.left<u.left+u.width-r:n-u.top<u.top+u.height-n,c=D.point(e,s,{edge:l?"start":"end"}),f=l?D.before(e,c):D.after(e,c);if(f)return D.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(r,n);else{var p=d.caretPositionFromPoint(r,n);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return X.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,r){var n,a,i,o,s,u=r.exactMatch,l=r.suppressThrow;if((wj(t)?t.anchorNode:t.startContainer)&&(wj(t)?(n=t.anchorNode,a=t.anchorOffset,i=t.focusNode,o=t.focusOffset,s=Bk&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(n=t.startContainer,a=t.startOffset,i=t.endContainer,o=t.endOffset,s=t.collapsed)),n==null||i==null||a==null||o==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=X.toSlatePoint(e,[n,a],{exactMatch:u,suppressThrow:l});if(!c)return null;var f=s?c:X.toSlatePoint(e,[i,o],{exactMatch:u,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return be.isExpanded(d)&&be.isForward(d)&&Eo(i)&&D.void(e,{at:d.focus,mode:"highest"})&&(d=D.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,r){var n,a=r.exactMatch,i=r.suppressThrow,o=jt(a?t:function(y){var x,b=jt(y,2),E=b[0],S=b[1];if(Eo(E)&&E.childNodes.length){var w=S===E.childNodes.length,C=w?S-1:S;for(E=(x=jt(VZ(E,C,w?"backward":"forward"),2))[0],w=(C=x[1])<S;Eo(E)&&E.childNodes.length;){var _=w?E.childNodes.length-1:0;E=H7e(E,_,w?"backward":"forward")}S=w&&E.textContent!=null?E.textContent.length:0}return[E,S]}(t),2),s=o[0],u=o[1],l=s.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),v=null;if(p){c=p.closest('[data-slate-node="text"]');var h=X.getWindow(e).document.createRange();h.setStart(c,0),h.setEnd(s,u);var g=h.cloneContents();Sk(Sk([],jt(FL(g.querySelectorAll("[data-slate-zero-width]")))),jt(FL(g.querySelectorAll("[contenteditable=false]")))).forEach(function(y){y.parentNode.removeChild(y)}),f=g.textContent.length,v=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(v=p).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach(function(y){f-=y.textContent.length})):f=1);v&&f===v.textContent.length&&(l.hasAttribute("data-slate-zero-width")||_g&&(!((n=v.textContent)===null||n===void 0)&&n.endsWith(`
|
||
`)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var m=X.toSlateNode(e,c);return{path:X.findPath(e,m),offset:f}},hasRange:function(e,t){var r=t.anchor,n=t.focus;return D.hasPath(e,r.path)&&D.hasPath(e,n.path)},getNodeType:function(e){return qe.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return Ie.string(t)}).join("")},getSelectedElems:function(e){var t,r,n=[],a=D.nodes(e,{universal:!0});try{for(var i=Wi(a),o=i.next();!o.done;o=i.next()){var s=jt(o.value,1)[0];qe.isElement(s)&&n.push(s)}}catch(u){t={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},getSelectedNodeByType:function(e,t){var r=this,n=jt(D.nodes(e,{match:function(i){return r.checkNodeType(i,t)},universal:!0}),1),a=n[0];return a==null?null:a[0]},getSelectedTextNode:function(e){var t=jt(D.nodes(e,{match:function(n){return $e.isText(n)},universal:!0}),1),r=t[0];return r==null?null:r[0]},isNodeSelected:function(e,t){var r=jt(D.nodes(e,{match:function(a){return a===t},universal:!0}),1),n=r[0];return n!=null&&jt(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var r=e.selection;return!!r&&(D.isEnd(e,r.anchor,t)||D.isEnd(e,r.focus,t))},getTextarea:function(e){var t=_k.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return w4.get(e)||null},getHoverbar:function(e){return cw.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,r){e.normalizeNode([t,[r]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),r=t.maxLength,n=t.onMaxLength;if(typeof r!="number"||r<=0)return 1/0;var a=r-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return a<=0&&n&&n(e),a},cleanExposedTexNodeInSelectionBlock:function(e){var t,r,n,a,i=X.getTextarea(e).$textArea,o=i==null?void 0:i[0].childNodes;if(o)try{for(var s=Wi(Array.from(o)),u=s.next();!u.done;u=s.next()){var l=u.value;if(l.nodeType!==3)break;l.remove()}}catch(h){t={error:h}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}var c=D.nodes(e,{match:function(h){return!(!qe.isElement(h)||e.isInline(h))},universal:!0});try{for(var f=Wi(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var v=p[0];WZ(X.toDOMNode(e,v),function(h,g){var m=te(g);m.attr("data-slate-string")||m.attr("data-slate-zero-width")||m.attr("data-w-e-reserve")||g.removeChild(h)})}}}catch(h){n={error:h}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(n)throw n.error}}},isLastNode:function(e,t){var r=e.children||[];return r[r.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,r,n=D.nodes(e,{match:function(s){return e.isVoid(s)}}),a=0;try{for(var i=Wi(n),o=i.next();!o.done;o=i.next())o.value,a++}catch(s){t={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return a>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||be.isExpanded(t))return!1;var r=X.getSelectedNodeByType(e,"paragraph");if(r===null)return!1;var n=r.children;return n.length===1&&(n[0].text===""||void 0)},isEmptyPath:function(e,t){var r=D.node(e,t);if(r==null)return!1;var n=jt(r,1)[0].children;return n.length===1&&n[0].text===""}},G7e=1,GZ={},A1={},K7e=rh.filter,q7e=m4("filter");Mr({target:"Array",proto:!0,forced:!q7e},{filter:function(e){return K7e(this,e,arguments.length>1?arguments[1]:void 0)}});var Pk=`
|
||
\v\f\r \u2028\u2029\uFEFF`,Sj=Ye("".replace),pw="["+Pk+"]",X7e=RegExp("^"+pw+pw+"*"),Y7e=RegExp(pw+pw+"*$"),vC=function(e){return function(t){var r=gr(oo(t));return 1&e&&(r=Sj(r,X7e,"")),2&e&&(r=Sj(r,Y7e,"")),r}},J7e={start:vC(1),end:vC(2),trim:vC(3)},Z7e=eh.PROPER,Q7e=J7e.trim;Mr({target:"String",proto:!0,forced:function(e){return nr(function(){return!!Pk[e]()||"
"[e]()!=="
"||Z7e&&Pk[e].name!==e})}("trim")},{trim:function(){return Q7e(this)}});var Nk=[],KZ={};function eBe(e,t,r){var n=r.isInline(e)?"span":"div";return"<"+n+">"+t+"</"+n+">"}var k1,M0,Cj,gC,hw=Be.Promise,_j=Ur("species"),FF=function(e){var t=x0(e),r=Ko.f;Vn&&t&&!t[_j]&&r(t,_j,{configurable:!0,get:function(){return this}})},tBe=Be.TypeError,rBe=Ur("species"),qZ=function(e,t){var r,n=sn(e).constructor;return n===void 0||(r=sn(n)[rBe])==null?t:function(a){if(v4(a))return a;throw tBe(l4(a)+" is not a constructor")}(r)},XZ=Ye([].slice),YZ=/(?:ipad|iphone|ipod).*applewebkit/i.test(Pd),kl=jo(Be.process)=="process",Ik=Be.setImmediate,Rk=Be.clearImmediate,nBe=Be.process,mC=Be.Dispatch,aBe=Be.Function,Aj=Be.MessageChannel,iBe=Be.String,yC=0,Ag={};try{k1=Be.location}catch(e){}var BF=function(e){if(an(Ag,e)){var t=Ag[e];delete Ag[e],t()}},xC=function(e){return function(){BF(e)}},kj=function(e){BF(e.data)},Tj=function(e){Be.postMessage(iBe(e),k1.protocol+"//"+k1.host)};Ik&&Rk||(Ik=function(e){var t=XZ(arguments,1);return Ag[++yC]=function(){CF(ur(e)?e:aBe(e),void 0,t)},M0(yC),yC},Rk=function(e){delete Ag[e]},kl?M0=function(e){nBe.nextTick(xC(e))}:mC&&mC.now?M0=function(e){mC.now(xC(e))}:Aj&&!YZ?(gC=(Cj=new Aj).port2,Cj.port1.onmessage=kj,M0=qf(gC.postMessage,gC)):Be.addEventListener&&ur(Be.postMessage)&&!Be.importScripts&&k1&&k1.protocol!=="file:"&&!nr(Tj)?(M0=Tj,Be.addEventListener("message",kj,!1)):M0="onreadystatechange"in y1("script")?function(e){pk.appendChild(y1("script")).onreadystatechange=function(){pk.removeChild(this),BF(e)}}:function(e){setTimeout(xC(e),0)});var qh,qc,kg,hd,bC,wC,EC,Dj,JZ={set:Ik,clear:Rk},oBe=/ipad|iphone|ipod/i.test(Pd)&&Be.Pebble!==void 0,sBe=/web0s(?!.*chrome)/i.test(Pd),uBe=Im.f,SC=JZ.set,Oj=Be.MutationObserver||Be.WebKitMutationObserver,Fj=Be.document,Bj=Be.process,s2=Be.Promise,Pj=uBe(Be,"queueMicrotask"),ZZ=Pj&&Pj.value;ZZ||(qh=function(){var e,t;for(kl&&(e=Bj.domain)&&e.exit();qc;){t=qc.fn,qc=qc.next;try{t()}catch(r){throw qc?hd():kg=void 0,r}}kg=void 0,e&&e.enter()},YZ||kl||sBe||!Oj||!Fj?!oBe&&s2&&s2.resolve?((EC=s2.resolve(void 0)).constructor=s2,Dj=qf(EC.then,EC),hd=function(){Dj(qh)}):kl?hd=function(){Bj.nextTick(qh)}:(SC=qf(SC,Be),hd=function(){SC(qh)}):(bC=!0,wC=Fj.createTextNode(""),new Oj(qh).observe(wC,{characterData:!0}),hd=function(){wC.data=bC=!bC}));var CC,Nj,QZ,Ij,eQ=ZZ||function(e){var t={fn:e,next:void 0};kg&&(kg.next=t),qc||(qc=t,hd()),kg=t},lBe=function(e){var t,r;this.promise=new e(function(n,a){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=a}),this.resolve=Zl(t),this.reject=Zl(r)},PF={f:function(e){return new lBe(e)}},Lk=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},cBe=typeof window=="object",tQ=JZ.set,fBe=Ur("species"),as="Promise",Rj=Ca.getterFor(as),dBe=Ca.set,pBe=Ca.getterFor(as),jc=hw&&hw.prototype,ls=hw,Xh=jc,rQ=Be.TypeError,Mk=Be.document,NF=Be.process,Id=PF.f,hBe=Id,vBe=!!(Mk&&Mk.createEvent&&Be.dispatchEvent),nQ=ur(Be.PromiseRejectionEvent),aQ=!1,Tg=b1(as,function(){var e=f4(ls),t=e!==String(ls);if(!t&&m1===66)return!0;if(m1>=51&&/native code/.test(e))return!1;var r=new ls(function(a){a(1)}),n=function(a){a(function(){},function(){})};return(r.constructor={})[fBe]=n,!(aQ=r.then(function(){})instanceof n)||!t&&cBe&&!nQ}),gBe=Tg||!mF(function(e){ls.all(e).catch(function(){})}),iQ=function(e){var t;return!(!xr(e)||!ur(t=e.then))&&t},IF=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;eQ(function(){for(var n=e.value,a=e.state==1,i=0;r.length>i;){var o,s,u,l=r[i++],c=a?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(a||(e.rejection===2&&yBe(e),e.rejection=1),c===!0?o=n:(p&&p.enter(),o=c(n),p&&(p.exit(),u=!0)),o===l.promise?d(rQ("Promise-chain cycle")):(s=iQ(o))?Ht(s,o,f,d):f(o)):d(n)}catch(v){p&&!u&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&mBe(e)})}},oQ=function(e,t,r){var n,a;vBe?((n=Mk.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Be.dispatchEvent(n)):n={promise:t,reason:r},!nQ&&(a=Be["on"+e])?a(n):e==="unhandledrejection"&&function(i,o){var s=Be.console;s&&s.error&&(arguments.length==1?s.error(i):s.error(i,o))}("Unhandled promise rejection",r)},mBe=function(e){Ht(tQ,Be,function(){var t,r=e.facade,n=e.value;if(Lj(e)&&(t=Lk(function(){kl?NF.emit("unhandledRejection",n,r):oQ("unhandledrejection",r,n)}),e.rejection=kl||Lj(e)?2:1,t.error))throw t.value})},Lj=function(e){return e.rejection!==1&&!e.parent},yBe=function(e){Ht(tQ,Be,function(){var t=e.facade;kl?NF.emit("rejectionHandled",t):oQ("rejectionhandled",t,e.value)})},Sd=function(e,t,r){return function(n){e(t,n,r)}},Rd=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,IF(e,!0))},jk=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw rQ("Promise can't be resolved itself");var n=iQ(t);n?eQ(function(){var a={done:!1};try{Ht(n,t,Sd(jk,a,e),Sd(Rd,a,e))}catch(i){Rd(a,i,e)}}):(e.value=t,e.state=1,IF(e,!1))}catch(a){Rd({done:!1},a,e)}}};if(Tg&&(Xh=(ls=function(e){b4(this,Xh),Zl(e),Ht(CC,this);var t=Rj(this);try{e(Sd(jk,t),Sd(Rd,t))}catch(r){Rd(t,r)}}).prototype,(CC=function(e){dBe(this,{type:as,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Ap(Xh,{then:function(e,t){var r=pBe(this),n=r.reactions,a=Id(qZ(this,ls));return a.ok=!ur(e)||e,a.fail=ur(t)&&t,a.domain=kl?NF.domain:void 0,r.parent=!0,n[n.length]=a,r.state!=0&&IF(r,!1),a.promise},catch:function(e){return this.then(void 0,e)}}),Nj=function(){var e=new CC,t=Rj(e);this.promise=e,this.resolve=Sd(jk,t),this.reject=Sd(Rd,t)},PF.f=Id=function(e){return e===ls||e===QZ?new Nj(e):hBe(e)},ur(hw)&&jc!==Object.prototype)){Ij=jc.then,aQ||(ni(jc,"then",function(e,t){var r=this;return new ls(function(n,a){Ht(Ij,r,n,a)}).then(e,t)},{unsafe:!0}),ni(jc,"catch",Xh.catch,{unsafe:!0}));try{delete jc.constructor}catch(e){}_p&&_p(jc,Xh)}Mr({global:!0,wrap:!0,forced:Tg},{Promise:ls}),uw(ls,as,!1),FF(as),QZ=x0(as),Mr({target:as,stat:!0,forced:Tg},{reject:function(e){var t=Id(this);return Ht(t.reject,void 0,e),t.promise}}),Mr({target:as,stat:!0,forced:Tg},{resolve:function(e){return function(t,r){if(sn(t),xr(r)&&r.constructor===t)return r;var n=PF.f(t);return(0,n.resolve)(r),n.promise}(this,e)}}),Mr({target:as,stat:!0,forced:gBe},{all:function(e){var t=this,r=Id(t),n=r.resolve,a=r.reject,i=Lk(function(){var o=Zl(t.resolve),s=[],u=0,l=1;C1(e,function(c){var f=u++,d=!1;l++,Ht(o,t,c).then(function(p){d||(d=!0,s[f]=p,--l||n(s))},a)}),--l||n(s)});return i.error&&a(i.value),r.promise},race:function(e){var t=this,r=Id(t),n=r.reject,a=Lk(function(){var i=Zl(t.resolve);C1(e,function(o){Ht(i,t,o).then(r.resolve,n)})});return a.error&&n(a.value),r.promise}});var j0=y4.UNSUPPORTED_Y,xBe=Math.min,sQ=[].push,bBe=Ye(/./.exec),$0=Ye(sQ),Yh=Ye("".slice);function so(e){Promise.resolve().then(e)}function uQ(e,t){return qe.isElement(e)?function(r,n){var a=r.type,i=a===void 0?"":a,o=r.children,s=o===void 0?[]:o,u=D.isVoid(n,r),l="";u||(l=s.map(function(m){return uQ(m,n)}).join(""));var c=function(m){return KZ[m]||eBe}(i),f=c(r,l,n),d="";if(d=typeof f=="string"?f:f.html||"",u||Nk.forEach(function(m){return d=m(r,d)}),typeof f=="string")return d;var p=f.prefix,v=p===void 0?"":p,h=f.suffix,g=h===void 0?"":h;return v&&(d=v+d),g&&(d+=g),d}(e,t):function(r,n){var a=r.text;if(a==null)throw new Error("Current node is not slate Text "+JSON.stringify(r));var i=a;i=function(u){return u.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(i);var o=X.getParentsNodes(n,r).some(function(u){return X.getNodeType(u)==="pre"});if(o||(i=i.replace(/\r\n|\r|\n/g,"<br>")),o&&(i=i.replace(/ /g," ")),i===""){var s=X.getParentNode(null,r);if(!s||s.children.length!==0)return i;i="<br>"}return Nk.forEach(function(u){return i=u(r,i)}),i}(e,t)}function lQ(e){return"w-e-element-"+e}_F("split",function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(a,i){var o=gr(oo(this)),s=i===void 0?4294967295:i>>>0;if(s===0)return[];if(a===void 0)return[o];if(!pF(a))return Ht(t,o,a,s);for(var u,l,c,f=[],d=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),p=0,v=new RegExp(a.source,d+"g");(u=Ht(E1,v,o))&&!((l=v.lastIndex)>p&&($0(f,Yh(o,p,u.index)),u.length>1&&u.index<o.length&&CF(sQ,f,Ck(u,1)),c=u[0].length,p=l,f.length>=s));)v.lastIndex===u.index&&v.lastIndex++;return p===o.length?!c&&bBe(v,"")||$0(f,""):$0(f,Yh(o,p)),f.length>s?Ck(f,0,s):f}:"0".split(void 0,0).length?function(a,i){return a===void 0&&i===0?[]:Ht(t,this,a,i)}:t,[function(a,i){var o=oo(this),s=a==null?void 0:Kf(a,e);return s?Ht(s,a,o,i):Ht(n,gr(o),a,i)},function(a,i){var o=sn(this),s=gr(a),u=r(n,o,s,i,n!==t);if(u.done)return u.value;var l=qZ(o,RegExp),c=o.unicode,f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(j0?"g":"y"),d=new l(j0?"^(?:"+o.source+")":o,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(s.length===0)return S1(d,s)===null?[s]:[];for(var v=0,h=0,g=[];h<s.length;){d.lastIndex=j0?0:h;var m,y=S1(d,j0?Yh(s,h):s);if(y===null||(m=xBe(th(d.lastIndex+(j0?h:0)),s.length))===v)h=AF(s,h,c);else{if($0(g,Yh(s,v,h)),g.length===p)return g;for(var x=1;x<=y.length-1;x++)if($0(g,y[x]),g.length===p)return g;h=v=m}}return $0(g,Yh(s,v)),g}]},!!nr(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),j0);var Mj=function(e,t){var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},jj=function(e,t,r){var n=X.toDOMRange(e,t).getBoundingClientRect(),a=X.toDOMRange(e,r).getBoundingClientRect();return Mj(n,a)&&Mj(a,n)},cQ=["span","b","strong","i","em","s","strike","u","font","sub","sup"],fQ=[],RF=[],vw={},wBe=Ko.f,EBe=x1.f,SBe=Ca.enforce,CBe=Ur("match"),Js=Be.RegExp,vd=Js.prototype,_Be=Be.SyntaxError,ABe=Ye(dF),kBe=Ye(vd.exec),u2=Ye("".charAt),$j=Ye("".replace),Uj=Ye("".indexOf),TBe=Ye("".slice),DBe=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,wf=/a/g,_C=/a/g,OBe=new Js(wf)!==wf,dQ=y4.MISSED_STICKY,FBe=y4.UNSUPPORTED_Y,BBe=Vn&&(!OBe||dQ||wF||EF||nr(function(){return _C[CBe]=!1,Js(wf)!=wf||Js(_C)==_C||Js(wf,"i")!="/a/i"}));if(b1("RegExp",BBe)){for(var Ru=function(e,t){var r,n,a,i,o,s,u=Gf(vd,this),l=pF(e),c=t===void 0,f=[],d=e;if(!u&&l&&c&&e.constructor===Ru)return e;if((l||Gf(vd,e))&&(e=e.source,c&&(t="flags"in d?d.flags:ABe(d))),e=e===void 0?"":gr(e),t=t===void 0?"":gr(t),d=e,wF&&"dotAll"in wf&&(n=!!t&&Uj(t,"s")>-1)&&(t=$j(t,/s/g,"")),r=t,dQ&&"sticky"in wf&&(a=!!t&&Uj(t,"y")>-1)&&FBe&&(t=$j(t,/y/g,"")),EF&&(i=function(p){for(var v,h=p.length,g=0,m="",y=[],x={},b=!1,E=!1,S=0,w="";g<=h;g++){if((v=u2(p,g))==="\\")v+=u2(p,++g);else if(v==="]")b=!1;else if(!b)switch(!0){case v==="[":b=!0;break;case v==="(":kBe(DBe,TBe(p,g+1))&&(g+=2,E=!0),m+=v,S++;continue;case(v===">"&&E):if(w===""||an(x,w))throw new _Be("Invalid capture group name");x[w]=!0,y[y.length]=[w,S],E=!1,w="";continue}E?w+=v:m+=v}return[m,y]}(e),e=i[0],f=i[1]),o=RZ(Js(e,t),u?this:vd,Ru),(n||a||f.length)&&(s=SBe(o),n&&(s.dotAll=!0,s.raw=Ru(function(p){for(var v,h=p.length,g=0,m="",y=!1;g<=h;g++)(v=u2(p,g))!=="\\"?y||v!=="."?(v==="["?y=!0:v==="]"&&(y=!1),m+=v):m+="[\\s\\S]":m+=v+u2(p,++g);return m}(e),r)),a&&(s.sticky=!0),f.length&&(s.groups=f)),e!==d)try{Mo(o,"source",d===""?"(?:)":d)}catch(p){}return o},PBe=function(e){e in Ru||wBe(Ru,e,{configurable:!0,get:function(){return Js[e]},set:function(t){Js[e]=t}})},Hj=EBe(Js),zj=0;Hj.length>zj;)PBe(Hj[zj++]);vd.constructor=Ru,Ru.prototype=vd,ni(Be,"RegExp",Ru)}FF("RegExp");var NBe=new RegExp(String.fromCharCode(160),"g");function pQ(e){return e.replace(NBe," ")}function Vj(e,t){var r=e.length;if(r){var n=e[r-1];if($e.isText(n)){var a=Object.keys(n);if(a.length===1&&a[0]==="text")return n.text=n.text+t,!0}}return!1}function IBe(e,t,r){return{type:"paragraph",children:[{text:te(e).text().replace(/\s+/gm," ")}]}}function AC(e,t){var r=function(i,o){var s=[];if(i.attr("data-w-e-is-void")!=null)return s;var u=i[0].childNodes;return u.length===1&&u[0].nodeName==="BR"?(s.push({text:""}),s):(u.forEach(function(l){if(l.nodeType!==ss.ELEMENT_NODE){if(l.nodeType===ss.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
|
||
`)>=0)return;c&&(c=pQ(c),Vj(s,c)||s.push({text:c}))}}else{if(l.nodeName==="BR")return void(Vj(s,`
|
||
`)||s.push({text:`
|
||
`}));var f=LF(te(l),o);Array.isArray(f)?f.forEach(function(d){return s.push(d)}):s.push(f)}}),s)}(e,t),n=function(i){for(var o in vw)if(i[0].matches(o))return vw[o];return IBe}(e),a=n(e[0],r,t);return Array.isArray(a)||(a=[a]),a.forEach(function(i){D.isVoid(t,i)||(r.length===0&&(i.children=[{text:e.text().replace(/\s+/gm," ")}]),RF.forEach(function(o){i=o(e[0],i,t)}))}),a}function kC(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
|
||
`));var r=e[0].textContent||"";r=function(a){return a.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(r);var n={text:r=pQ(r)};return RF.forEach(function(a){n=a(e[0],n,t)}),n}function LF(e,t){fQ.forEach(function(n){var a=n.selector,i=n.preParseHtml;e[0].matches(a)&&(e=te(i(e[0])))});var r=Ej(e);return r==="span"?e.attr("data-w-e-type")?AC(e,t):kC(e,t):r==="code"?Ej(e.parent())==="pre"?AC(e,t):kC(e,t):cQ.includes(r)?kC(e,t):AC(e,t)}function hQ(e,t,r){var n=te(r);return!!n.attr(t)||(n.attr(t,"true"),e.on("destroyed",function(){n.removeAttr(t)}),!1)}function Wj(e,t){t===void 0&&(t="");var r=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(a){return"<p>"+a+"</p>"}).join(""));var n=te("<div>"+t+"</div>");return Array.from(n.children()).forEach(function(a){var i=LF(te(a),e);Array.isArray(i)?i.forEach(function(o){return r.push(o)}):r.push(i)}),r}var RBe=Ko.f,Gj=x4.fastKey,Kj=Ca.set,TC=Ca.getterFor,LBe={getConstructor:function(e,t,r,n){var a=e(function(l,c){b4(l,i),Kj(l,{type:t,index:g4(null),first:void 0,last:void 0,size:0}),Vn||(l.size=0),c!=null&&C1(c,l[n],{that:l,AS_ENTRIES:r})}),i=a.prototype,o=TC(t),s=function(l,c,f){var d,p,v=o(l),h=u(l,c);return h?h.value=f:(v.last=h={index:p=Gj(c,!0),key:c,value:f,previous:d=v.last,next:void 0,removed:!1},v.first||(v.first=h),d&&(d.next=h),Vn?v.size++:l.size++,p!=="F"&&(v.index[p]=h)),l},u=function(l,c){var f,d=o(l),p=Gj(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return Ap(i,{clear:function(){for(var l=o(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,Vn?l.size=0:this.size=0},delete:function(l){var c=this,f=o(c),d=u(c,l);if(d){var p=d.next,v=d.previous;delete f.index[d.index],d.removed=!0,v&&(v.next=p),p&&(p.previous=v),f.first==d&&(f.first=p),f.last==d&&(f.last=v),Vn?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=o(this),d=qf(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(d(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!u(this,l)}}),Ap(i,r?{get:function(l){var c=u(this,l);return c&&c.value},set:function(l,c){return s(this,l===0?0:l,c)}}:{add:function(l){return s(this,l=l===0?0:l,l)}}),Vn&&RBe(i,"size",{get:function(){return o(this).size}}),a},setStrong:function(e,t,r){var n=t+" Iterator",a=TC(t),i=TC(n);xF(e,t,function(o,s){Kj(this,{type:n,target:o,state:a(o),kind:s,last:void 0})},function(){for(var o=i(this),s=o.kind,u=o.last;u&&u.removed;)u=u.previous;return o.target&&(o.last=u=u?u.next:o.state.first)?s=="keys"?{value:u.key,done:!1}:s=="values"?{value:u.value,done:!1}:{value:[u.key,u.value],done:!1}:(o.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),FF(t)}};LZ("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},LBe);var qj=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function Xj(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):pe.insertNodes(e,t,{mode:"highest"})}var MBe=function(e){var t=e,r=t.insertText;return t.insertFragment,t.setFragmentData=function(n){var a=t.selection;if(a){var i=jt(be.edges(a),2),o=i[0],s=i[1],u=D.void(t,{at:o.path}),l=D.void(t,{at:s.path});if(!be.isCollapsed(a)||u){var c=X.toDOMRange(t,a),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(E){E.textContent&&E.textContent.trim()!==""&&(d=E)}),l){var p=jt(l,1)[0],v=c.cloneRange(),h=X.toDOMNode(t,p);v.setEndAfter(h),f=v.cloneContents()}if(u&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(E){var S=E.getAttribute("data-slate-zero-width")==="n";E.textContent=S?`
|
||
`:""}),zZ(d)){var g=d.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),f.appendChild(g),d=g}var m=t.getFragment(),y=JSON.stringify(m),x=window.btoa(encodeURIComponent(y));d.setAttribute("data-slate-fragment",x),n.setData("application/x-slate-fragment",x);var b=f.ownerDocument.createElement("div");return b.appendChild(f),b.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(b),n.setData("text/html",b.innerHTML),n.setData("text/plain",z7e(b)),f.ownerDocument.body.removeChild(b),n}}},t.insertData=function(n){var a,i,o=n.getData("application/x-slate-fragment");if(o){var s=decodeURIComponent(window.atob(o)),u=JSON.parse(s);t.insertFragment(u)}else{var l=n.getData("text/plain"),c=n.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=Wi(f),v=p.next();!v.done;v=p.next()){var h=v.value;d&&pe.splitNodes(t,{always:!0}),r(h),d=!0}}catch(g){a={error:g}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(a)throw a.error}}}}},t},Jv=function(e){return e!=null},jBe={object:!0,function:!0,undefined:!0},$Be=/^\s*class[\s{/}]/,UBe=Function.prototype.toString,Yj=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch(r){return!1}return!function(r){if(!function(n){return!!Jv(n)&&hasOwnProperty.call(jBe,typeof n)}(r))return!1;try{return!!r.constructor&&r.constructor.prototype===r}catch(n){return!1}}(t)}(e)&&!$Be.test(UBe.call(e))},MF=function(e){return e!=null},HBe=Object.keys,zBe=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return HBe(MF(e)?Object(e):e)},VBe=function(e){if(!MF(e))throw new TypeError("Cannot use null or undefined");return e},WBe=Math.max,Jj=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var r,n,a,i=WBe(arguments.length,2);for(e=Object(VBe(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n<i;++n)zBe(t=arguments[n]).forEach(a);if(r!==void 0)throw r;return e},GBe=Array.prototype.forEach,KBe=Object.create,qBe=function(e,t){var r;for(r in e)t[r]=e[r]},Zj=function(e){var t=KBe(null);return GBe.call(arguments,function(r){MF(r)&&qBe(Object(r),t)}),t},DC="razdwatrzy",XBe=String.prototype.indexOf,Jh=typeof DC.contains=="function"&&DC.contains("dwa")===!0&&DC.contains("foo")===!1?String.prototype.contains:function(e){return XBe.call(this,e,arguments[1])>-1},l2=Pm(function(e){var t=e.exports=function(r,n){var a,i,o,s,u;return arguments.length<2||typeof r!="string"?(s=n,n=r,r=null):s=arguments[2],Jv(r)?(a=Jh.call(r,"c"),i=Jh.call(r,"e"),o=Jh.call(r,"w")):(a=o=!0,i=!1),u={value:n,configurable:a,enumerable:i,writable:o},s?Jj(Zj(s),u):u};t.gs=function(r,n,a){var i,o,s,u;return typeof r!="string"?(s=a,a=n,n=r,r=null):s=arguments[3],Jv(n)?Yj(n)?Jv(a)?Yj(a)||(s=a,a=void 0):a=void 0:(s=n,n=a=void 0):n=void 0,Jv(r)?(i=Jh.call(r,"c"),o=Jh.call(r,"e")):(i=!0,o=!1),u={get:n,set:a,configurable:i,enumerable:o},s?Jj(Zj(s),u):u}}),OC=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},YBe=Pm(function(e,t){var r,n,a,i,o,s,u,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,v=Object.prototype.hasOwnProperty,h={configurable:!0,enumerable:!1,writable:!0};r=function(g,m){var y;return OC(m),v.call(this,"__ee__")?y=this.__ee__:(y=h.value=f(null),d(this,"__ee__",h),h.value=null),y[g]?typeof y[g]=="object"?y[g].push(m):y[g]=[y[g],m]:y[g]=m,this},n=function(g,m){var y,x;return OC(m),x=this,r.call(this,g,y=function(){a.call(x,g,y),l.call(m,this,arguments)}),y.__eeOnceListener__=m,this},a=function(g,m){var y,x,b,E;if(OC(m),!v.call(this,"__ee__"))return this;if(!(y=this.__ee__)[g])return this;if(typeof(x=y[g])=="object")for(E=0;b=x[E];++E)b!==m&&b.__eeOnceListener__!==m||(x.length===2?y[g]=x[E?0:1]:x.splice(E,1));else x!==m&&x.__eeOnceListener__!==m||delete y[g];return this},i=function(g){var m,y,x,b,E;if(v.call(this,"__ee__")&&(b=this.__ee__[g]))if(typeof b=="object"){for(y=arguments.length,E=new Array(y-1),m=1;m<y;++m)E[m-1]=arguments[m];for(b=b.slice(),m=0;x=b[m];++m)l.call(x,this,E)}else switch(arguments.length){case 1:c.call(b,this);break;case 2:c.call(b,this,arguments[1]);break;case 3:c.call(b,this,arguments[1],arguments[2]);break;default:for(y=arguments.length,E=new Array(y-1),m=1;m<y;++m)E[m-1]=arguments[m];l.call(b,this,E)}},o={on:r,once:n,off:a,emit:i},s={on:l2(r),once:l2(n),off:l2(a),emit:l2(i)},u=p({},s),e.exports=t=function(g){return g==null?f(u):p(Object(g),s)},t.methods=o});function c2(e){var t=xj.get(e);return t==null&&(t=YBe(),xj.set(e,t)),t}var gw=new WeakMap;function Qj(e,t){var r=gw.get(e);r==null&&(r=new Set,gw.set(e,r)),r.add(t)}function JBe(e){return gw.get(e)||new Set}function ZBe(e){gw.set(e,new Set)}function jF(e){var t=X.getTextarea(e).$textAreaContainer,r=t.width(),n=t.height(),a=t.offset();return{top:a.top,left:a.left,width:r,height:n}}function $F(e){var t={top:"0",left:"0"},r=e.selection;if(r==null)return t;var n=jF(e);if(n==null)return t;var a=n.top,i=n.left,o=n.width,s=n.height,u=X.toDOMRange(e,r).getClientRects()[0];if(u==null)return t;u.width;var l=u.height,c={},f=u.top-a,d=u.left-i;if(d>o/2){var p=o-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>s/2){var v=s-f;c.bottom=v+5+"px"}else{var h=f+l;h<0&&(h=0),c.top=h+5+"px"}return c}function UF(e,t,r){r===void 0&&(r="modal");var n={top:"0",left:"0"};if(e.selection==null)return n;var a=qe.isElement(t)&&e.isVoid(t),i=qe.isElement(t)&&e.isInline(t),o=dw.get(t);if(o==null)return n;var s=o.getBoundingClientRect(),u=s.top,l=s.left,c=s.height,f=s.width;if(a){var d=function(w){var C=[];C.push(w);for(var _=0;C.length>0;){var O=C.pop();if(O==null||++_>1e4)break;var P=O.nodeName;if(O.nodeType===1){var F=P.toLowerCase();if(U7e.includes(F)||F==="iframe"||F==="video")return O;var q=O.children||[],ee=q.length;if(ee)for(var J=ee-1;J>=0;J--)C.push(q[J])}}return null}(o);if(d!=null){var p=d.getBoundingClientRect();u=p.top,c=p.height}}var v=jF(e);if(v==null)return n;var h,g=v.top,m=v.left,y=v.width,x=v.height,b={},E=u-g,S=l-m;if(r==="bar")return b.left=S+"px",E>40?b.bottom=x-E+5+"px":b.top=E+c+5+"px",b;if(r==="modal")return a?i?S>(y-f)/2?b.right=y-S+5+"px":b.left=S+f+5+"px":b.left="20px":b.left=S+"px",a?((h=E)<0&&(h=0),b.top=h+"px"):E>(x-c)/2?b.bottom=x-E+5+"px":((h=E+c)<0&&(h=0),b.top=h+5+"px"),b;throw new Error("type '"+r+"' is invalid")}function $k(e,t){so(function(){var r=jF(e);if(r!=null){var n,a=r.top,i=r.left,o=r.width,s=r.height,u=t.offset(),l=u.top,c=u.left,f=t.width(),d=t.height(),p=l-a,v=c-i,h=t.attr("style");if(h.indexOf("top")>=0&&(n=p+d-s)>0){var g=t.css("top"),m=parseInt(g.toString())-n;m<0&&(m=0),t.css("top",m+"px")}if(h.indexOf("bottom")>=0&&l<0){var y=t.css("bottom"),x=parseInt(y.toString())-Math.abs(l);t.css("bottom",x+"px")}if(h.indexOf("left")>=0&&(n=v+f-o)>0){var b=t.css("left"),E=parseInt(b.toString())-n;E<0&&(E=0),t.css("left",E+"px")}if(h.indexOf("right")>=0&&c<0){var S=t.css("right"),w=parseInt(S.toString())-Math.abs(c);t.css("right",w+"px")}}})}var QBe=m4("slice"),ePe=Ur("species"),FC=Be.Array,tPe=Math.max;Mr({target:"Array",proto:!0,forced:!QBe},{slice:function(e,t){var r,n,a,i=hc(this),o=b0(i),s=Sp(e,o),u=Sp(t===void 0?o:t,o);if(iw(i)&&(r=i.constructor,(v4(r)&&(r===FC||iw(r.prototype))||xr(r)&&(r=r[ePe])===null)&&(r=void 0),r===FC||r===void 0))return XZ(i,s,u);for(n=new(r===void 0?FC:r)(tPe(u-s,0)),a=0;s<u;s++,a++)s in i&&w1(n,a,i[s]);return n.length=a,n}});var rPe=Im.f,e$=Ye("".startsWith),nPe=Ye("".slice),aPe=Math.min,vQ=vF("startsWith"),iPe=!vQ&&!!function(){var e=rPe(String.prototype,"startsWith");return e&&!e.writable}();Mr({target:"String",proto:!0,forced:!iPe&&!vQ},{startsWith:function(e){var t=gr(oo(this));hF(e);var r=th(aPe(arguments.length>1?arguments[1]:void 0,t.length)),n=gr(e);return e$?e$(t,n,r):nPe(t,r,r+n.length)===n}});var U0=Object.assign,t$=Object.defineProperty,oPe=Ye([].concat),r$=!U0||nr(function(){if(Vn&&U0({b:1},U0(t$({},"a",{enumerable:!0,get:function(){t$(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(a){t[a]=a}),U0({},e)[r]!=7||Nd(U0({},t)).join("")!=n})?function(e,t){for(var r=pc(e),n=arguments.length,a=1,i=_Z.f,o=EZ.f;n>a;)for(var s,u=h4(arguments[a++]),l=i?oPe(Nd(u),i(u)):Nd(u),c=l.length,f=0;c>f;)s=l[f++],Vn&&!Ht(o,u,s)||(r[s]=u[s]);return r}:U0;Mr({target:"Object",stat:!0,forced:Object.assign!==r$},{assign:r$});var sPe=["props","attrs","style","dataset","on","hook"];function gQ(e){var t=e.data,r=t===void 0?{}:t,n=e.children,a=n===void 0?[]:n;Object.keys(r).forEach(function(i){var o,s,u=r[i];if(i!=="key"){if(!sPe.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=FDe(l),function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)}(e,((o={})[l]=u,o)),void delete r[i]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.props,f)})(e,(s={},s[i]=u,s)),delete r[i]}}else e.key=u}),a.length>0&&a.forEach(function(i){typeof i!="string"&&gQ(i)})}var Uk=[],mQ={};function uPe(e,t,r){return ot(r.isInline(e)?"span":"div",null,t)}function n$(e,t){return t===void 0&&(t=!1),ot("span",{"data-slate-string":!0},t?e+`
|
||
`:e)}function BC(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),ot("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?ot("br",null):null)}function Hk(e,t,r,n){return _1.set(e,t),kp.set(e,r),qe.isElement(e)?function(a,i){var o,s=X.findKey(i,a),u=i.isInline(a),l=D.isVoid(i,a),c=lQ(s.id),f={id:c,key:s.id,"data-slate-node":"element","data-slate-inline":u},d=a.type,p=a.children,v=p===void 0?[]:p,h=function(E){return mQ[E]||uPe}(d);o=l?null:v.map(function(E,S){return Hk(E,S,a,i)});var g=h(a,o,i);if(l){f["data-slate-void"]=!0;var m=u?"span":"div",y=jt(Ie.texts(a),1),x=jt(y[0],1)[0],b=ot(m,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},Hk(x,0,a,i));g=ot(m,{style:{position:"relative"}},g,b),_1.set(x,0),kp.set(x,a)}return g.data==null&&(g.data={}),Object.assign(g.data,f),l||u||(g=function(E,S){var w=S;return Uk.forEach(function(C){w=C(E,S)}),w}(a,g)),so(function(){var E=Ok(c);E!=null&&(Dk.set(s,E),dw.set(a,E),fw.set(E,a))}),g}(e,n):function(a,i,o){if(a.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(a));var s=X.findKey(o,a),u=o.getConfig().decorate;if(u==null)throw new Error("Can not get config.decorate");var l=X.findPath(o,a),c=u([a,l]),f=$e.decorations(a,c),d=f.map(function(h,g){var m=function(y,x,b,E,S){x===void 0&&(x=!1);var w=y.text,C=X.findPath(S,b),_=se.parent(C);if(D.isEditor(E))throw new Error("Text node "+JSON.stringify(b)+" parent is Editor");return S.isVoid(E)?BC(Ie.string(E).length):w!==""||E.children[E.children.length-1]!==b||S.isInline(E)||D.string(S,_)!==""?w===""?BC():x&&w.slice(-1)===`
|
||
`?n$(w,!0):n$(w):BC(0,!0)}(h,g===f.length-1,a,i,o);return m=function(y,x){var b=x;return Uk.forEach(function(E){b=E(y,b)}),b}(h,m),ot("span",{"data-slate-leaf":!0},m)}),p=function(h){return"w-e-text-"+h}(s.id),v=ot("span",{"data-slate-node":"text",id:p,key:s.id},d);return so(function(){var h=Ok(p);h!=null&&(Dk.set(s,h),dw.set(a,h),fw.set(h,a))}),v}(e,r,n)}function lPe(e,t){var r,n=e.$scroll,a=function(h){return"w-e-textarea-"+h}(e.id),i=t.getConfig(),o=i.readOnly,s=i.autoFocus,u=function(h,g){return g===void 0&&(g=!1),Ep("div#"+h,{props:{contentEditable:!g}})}(a,o),l=t.children||[];u.children=l.map(function(h,g){var m=Hk(h,g,t,t);return gQ(m),m});var c=gj.get(e);if(c==null&&(c=!0),c){var f=function(h,g){return te(`<div
|
||
id="`+h+`"
|
||
data-slate-editor
|
||
data-slate-node="value"
|
||
suppressContentEditableWarning
|
||
role="textarea"
|
||
spellCheck="true"
|
||
autoCorrect="true"
|
||
autoCapitalize="true"
|
||
></div>`)}(a);n.append(f),e.$textArea=f,r=f[0],(p=Q5e([tDe,iDe,sDe,rDe,aDe,eDe]))(r,u),gj.set(e,!1),mj.set(e,p)}else{var d=yj.get(e),p=mj.get(e);if(d==null||p==null)return;r=d.elm,p(d,u)}if(r!=null||(r=Ok(a))!=null){if((c?s:t.isFocused())&&r.focus({preventScroll:!0}),c){var v=OF(r);v&&HZ.set(t,v)}DF.set(t,r),dw.set(t,r),fw.set(r,t),yj.set(e,u)}}function a$(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function i$(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function PC(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return i$(r.overflowY,t)||i$(r.overflowX,t)||function(n){var a=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(o){return null}}(n);return!!a&&(a.clientHeight<n.scrollHeight||a.clientWidth<n.scrollWidth)}(e)}return!1}function f2(e,t,r,n,a,i,o,s){return i<e&&o>t||i>e&&o<t?0:i<=e&&s<=r||o>=t&&s>=r?i-e-n:o>t&&s<r||i<e&&s>r?o-t+a:0}function o$(e,t){var r=window,n=t.scrollMode,a=t.block,i=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,u=typeof o=="function"?o:function(he){return he!==o};if(!a$(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;a$(f)&&u(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&PC(f)&&!PC(document.documentElement)||f!=null&&PC(f,s)&&c.push(f)}for(var d=r.visualViewport?r.visualViewport.width:innerWidth,p=r.visualViewport?r.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),m=g.height,y=g.width,x=g.top,b=g.right,E=g.bottom,S=g.left,w=a==="start"||a==="nearest"?x:a==="end"?E:x+m/2,C=i==="center"?S+y/2:i==="end"?b:S,_=[],O=0;O<c.length;O++){var P=c[O],F=P.getBoundingClientRect(),q=F.height,ee=F.width,J=F.top,Z=F.right,V=F.bottom,ie=F.left;if(n==="if-needed"&&x>=0&&S>=0&&E<=p&&b<=d&&x>=J&&E<=V&&S>=ie&&b<=Z)return _;var W=getComputedStyle(P),de=parseInt(W.borderLeftWidth,10),M=parseInt(W.borderTopWidth,10),A=parseInt(W.borderRightWidth,10),N=parseInt(W.borderBottomWidth,10),I=0,L=0,Y="offsetWidth"in P?P.offsetWidth-P.clientWidth-de-A:0,Q="offsetHeight"in P?P.offsetHeight-P.clientHeight-M-N:0;if(l===P)I=a==="start"?w:a==="end"?w-p:a==="nearest"?f2(h,h+p,p,M,N,h+w,h+w+m,m):w-p/2,L=i==="start"?C:i==="center"?C-d/2:i==="end"?C-d:f2(v,v+d,d,de,A,v+C,v+C+y,y),I=Math.max(0,I+h),L=Math.max(0,L+v);else{I=a==="start"?w-J-M:a==="end"?w-V+N+Q:a==="nearest"?f2(J,V,q,M,N+Q,w,w+m,m):w-(J+q/2)+Q/2,L=i==="start"?C-ie-de:i==="center"?C-(ie+ee/2)+Y/2:i==="end"?C-Z+A+Y:f2(ie,Z,ee,de,A+Y,C,C+y,y);var le=P.scrollLeft,ve=P.scrollTop;w+=ve-(I=Math.max(0,Math.min(ve+I,P.scrollHeight-q+Q))),C+=le-(L=Math.max(0,Math.min(le+L,P.scrollWidth-ee+Y)))}_.push({el:P,top:I,left:L})}return _}function s$(e){return e===Object(e)&&Object.keys(e).length!==0}function $i(e,t){return Xf(t)&&X.hasDOMNode(e,t,{editable:!0})}function u$(e,t){if(e.getConfig().readOnly)return!1;var r=gd(e,t)&&X.toSlateNode(e,t);return D.isVoid(e,r)}function gd(e,t){return Xf(t)&&X.hasDOMNode(e,t)}function yQ(e,t,r){r===void 0&&(r=!1);var n=t.selection,a=t.getConfig(),i=X.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||r)&&t.isFocused()){var o=i.type!=="None";if(n||o){var s=DF.get(t),u=!1;if(s.contains(i.anchorNode)&&s.contains(i.focusNode)&&(u=!0),o&&u&&n){var l=X.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&be.equals(l,n)){var c=!0;if(be.isCollapsed(n)){var f=i.anchorNode,d=i.anchorOffset;if(f===s){var p=s.childNodes,v=void 0;(v=p[d])&&v.matches("table")&&(c=!1),(v=p[d-1])&&v.matches("table")&&(c=!1)}}if(c)return}}if(!n||X.hasRange(t,n)){e.isUpdatingSelection=!0;var h=n&&X.toDOMRange(t,n);if(h){be.isBackward(n)?i.setBaseAndExtent(h.endContainer,h.endOffset,h.startContainer,h.startOffset):i.setBaseAndExtent(h.startContainer,h.startOffset,h.endContainer,h.endOffset);var g=h.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=h.getBoundingClientRect.bind(h);var m=document.body;(function(y,x){var b=!y.ownerDocument.documentElement.contains(y);if(s$(x)&&typeof x.behavior=="function")return x.behavior(b?[]:o$(y,x));if(!b){var E=function(S){return S===!1?{block:"end",inline:"nearest"}:s$(S)?S:{block:"start",inline:"nearest"}}(x);(function(S,w){w===void 0&&(w="auto");var C="scrollBehavior"in document.body.style;S.forEach(function(_){var O=_.el,P=_.top,F=_.left;O.scroll&&C?O.scroll({top:P,left:F,behavior:w}):(O.scrollTop=P,O.scrollLeft=F)})})(o$(y,E),E.behavior)}})(g,{scrollMode:"if-needed",boundary:a.scroll?s.parentElement:m,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){h&&_g&&s.focus(),e.isUpdatingSelection=!1})}else t.selection=X.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var NC=new WeakMap,l$=new WeakMap,cPe={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},fPe={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},dPe={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Fr=function(e){var t=cPe[e],r=fPe[e],n=dPe[e],a=t&&F3(t),i=r&&F3(r),o=n&&F3(n);return function(s){return!(!a||!a(s))||!!(Fk&&i&&i(s))||!(Fk||!o||!o(s))}},Ir={isBold:Fr("bold"),isCompose:Fr("compose"),isMoveBackward:Fr("moveBackward"),isMoveForward:Fr("moveForward"),isDeleteBackward:Fr("deleteBackward"),isDeleteForward:Fr("deleteForward"),isDeleteLineBackward:Fr("deleteLineBackward"),isDeleteLineForward:Fr("deleteLineForward"),isDeleteWordBackward:Fr("deleteWordBackward"),isDeleteWordForward:Fr("deleteWordForward"),isExtendBackward:Fr("extendBackward"),isExtendForward:Fr("extendForward"),isExtendLineBackward:Fr("extendLineBackward"),isExtendLineForward:Fr("extendLineForward"),isItalic:Fr("italic"),isMoveLineBackward:Fr("moveLineBackward"),isMoveLineForward:Fr("moveLineForward"),isMoveWordBackward:Fr("moveWordBackward"),isMoveWordForward:Fr("moveWordForward"),isRedo:Fr("redo"),isSplitBlock:Fr("splitBlock"),isTransposeCharacter:Fr("transposeCharacter"),isUndo:Fr("undo"),isTab:Fr("tab"),isSelectAll:Fr("selectAll")};function pn(e){e.preventDefault()}var pPe={beforeinput:function(e,t,r){var n=e,a=r.getConfig().readOnly;if(Kh&&!a&&$i(r,n.target)){var i=r.selection,o=n.inputType,s=n.dataTransfer||n.data||void 0;if(o!=="insertCompositionText"&&o!=="deleteCompositionText"){if(n.preventDefault(),!o.startsWith("delete")||o.startsWith("deleteBy")){var u=jt(n.getTargetRanges(),1)[0];if(u){var l=X.toSlateRange(r,u,{exactMatch:!1,suppressThrow:!1});i&&be.equals(i,l)||pe.select(r,l)}}if(i&&be.isExpanded(i)&&o.startsWith("delete")){var c=o.endsWith("Backward")?"backward":"forward";D.deleteFragment(r,{direction:c})}else switch(o){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":D.deleteFragment(r);break;case"deleteContent":case"deleteContentForward":D.deleteForward(r);break;case"deleteContentBackward":D.deleteBackward(r);break;case"deleteEntireSoftLine":D.deleteBackward(r,{unit:"line"}),D.deleteForward(r,{unit:"line"});break;case"deleteHardLineBackward":D.deleteBackward(r,{unit:"block"});break;case"deleteSoftLineBackward":D.deleteBackward(r,{unit:"line"});break;case"deleteHardLineForward":D.deleteForward(r,{unit:"block"});break;case"deleteSoftLineForward":D.deleteForward(r,{unit:"line"});break;case"deleteWordBackward":D.deleteBackward(r,{unit:"word"});break;case"deleteWordForward":D.deleteForward(r,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":D.insertBreak(r);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(o==="insertFromPaste"&&!hC.get(r))break;s instanceof DataTransfer?r.insertData(s):typeof s=="string"&&D.insertText(r,s)}}}},blur:function(e,t,r){var n=e,a=t.isUpdatingSelection,i=t.latestElement;if(!r.getConfig().readOnly&&!a&&$i(r,n.target)){var o=X.findDocumentOrShadowRoot(r);if(i!==o.activeElement){var s=n.relatedTarget;if(!(s===X.toDOMNode(r,r)||Eo(s)&&s.hasAttribute("data-slate-spacer"))){if(s!=null&&Xf(s)&&X.hasDOMNode(r,s)){var u=X.toSlateNode(r,s);if(qe.isElement(u)&&!r.isVoid(u))return}if(Gh){var l=o.getSelection();l==null||l.removeAllRanges()}bf.delete(r)}}}},focus:function(e,t,r){var n=X.toDOMNode(r,r),a=X.findDocumentOrShadowRoot(r);t.latestElement=a.activeElement,_g&&e.target!==n?n.focus():bf.set(r,!0)},click:function(e,t,r){if(!r.getConfig().readOnly&&gd(r,e.target)&&Xf(e.target)){var n=X.toSlateNode(r,e.target),a=X.findPath(r,n);if(D.hasPath(r,a)&&Ie.get(r,a)===n){var i=D.start(r,a),o=D.end(r,a),s=D.void(r,{at:i}),u=D.void(r,{at:o});if(s&&u&&se.equals(s[1],u[1])){var l=D.range(r,i);pe.select(r,l)}}}},compositionstart:function(e,t,r){if($i(r,e.target)){var n=r.selection;if(n&&be.isExpanded(n)&&(D.deleteFragment(r),Promise.resolve().then(function(){yQ(t,r,!0)})),n&&be.isCollapsed(n)){var a=X.toDOMRange(r,n).startContainer,i=a.textContent||"";NC.set(r,i),l$.set(r,a)}t.isComposing=!0,function(o,s){var u;s.getConfig().placeholder&&s.isEmpty()&&o.showPlaceholder&&((u=o.$placeholder)===null||u===void 0||u.hide(),o.showPlaceholder=!1)}(t,r)}},compositionend:function(e,t,r){var n=e;if($i(r,n.target)){t.isComposing=!1;var a=r.selection;if(a!=null){(Bk||_g)&&X.cleanExposedTexNodeInSelectionBlock(r);for(var i=be.isBackward(a)?a.focus:a.anchor,o=jt(D.node(r,[i.path[0]]),1)[0],s=0;s<i.path.length;s++){var u=jt(D.node(r,i.path.slice(0,s+1)),1)[0];if(qe.isElement(u)&&((Gh||_g)&&u.type==="link"||u.type==="code")){X.setNewKey(o);break}}var l=n.data;if(l){if(r.getConfig().maxLength){var c=X.getLeftLengthOfMaxLength(r);c<l.length?(X.toDOMRange(r,a).startContainer.textContent=NC.get(r)||"",c>0&&D.insertText(r,l.slice(0,c)),t.changeViewState()):D.insertText(r,l)}else D.insertText(r,l);Gh||setTimeout(function(){var f=r.selection;if(f!=null){var d=l$.get(r);d!=null&&X.toDOMRange(r,f).startContainer!==d&&(d.textContent=NC.get(r)||"")}})}}}},compositionupdate:function(e,t,r){$i(r,e.target)&&(t.isComposing=!0)},keydown:function(e,t,r){var n=e,a=r.selection;if(!r.getConfig().readOnly&&!t.isComposing&&$i(r,n.target)){if(function(o,s){var u=w4.get(o),l=u&&u.getMenus(),c=cw.get(o),f=c&&c.getMenus(),d=Vi(Vi({},l),f);for(var p in d){var v=d[p],h=v.hotkey;if(h&&NDe(h,s)&&!v.isDisabled(o)){var g=v.getValue(o);v.exec(o,g)}}}(r,n),Ir.isTab(n))return pn(n),void r.handleTab();if(Ir.isRedo(n))return pn(n),void(typeof r.redo=="function"&&r.redo());if(Ir.isUndo(n))return pn(n),void(typeof r.undo=="function"&&r.undo());if(Ir.isMoveLineBackward(n))return pn(n),void pe.move(r,{unit:"line",reverse:!0});if(Ir.isMoveLineForward(n))return pn(n),void pe.move(r,{unit:"line"});if(Ir.isExtendLineBackward(n))return pn(n),void pe.move(r,{unit:"line",edge:"focus",reverse:!0});if(Ir.isExtendLineForward(n))return pn(n),void pe.move(r,{unit:"line",edge:"focus"});if(Ir.isMoveBackward(n))return pn(n),void(a&&be.isCollapsed(a)?pe.move(r,{reverse:!0}):pe.collapse(r,{edge:"start"}));if(Ir.isMoveForward(n))return pn(n),void(a&&be.isCollapsed(a)?pe.move(r):pe.collapse(r,{edge:"end"}));if(Ir.isMoveWordBackward(n))return pn(n),a&&be.isExpanded(a)&&pe.collapse(r,{edge:"focus"}),void pe.move(r,{unit:"word",reverse:!0});if(Ir.isMoveWordForward(n))return pn(n),a&&be.isExpanded(a)&&pe.collapse(r,{edge:"focus"}),void pe.move(r,{unit:"word"});if(Ir.isSelectAll(n))return pn(n),void r.selectAll();if(Kh){if((Bk||Gh)&&a&&(Ir.isDeleteBackward(n)||Ir.isDeleteForward(n))&&be.isCollapsed(a)){var i=Ie.parent(r,a.anchor.path);if(qe.isElement(i)&&D.isVoid(r,i)&&D.isInline(r,i))return n.preventDefault(),void pe.delete(r,{unit:"block"})}}else{if(Ir.isBold(n)||Ir.isItalic(n)||Ir.isTransposeCharacter(n))return void pn(n);if(Ir.isSplitBlock(n))return pn(n),void D.insertBreak(r);if(Ir.isDeleteBackward(n))return pn(n),void(a&&be.isExpanded(a)?D.deleteFragment(r,{direction:"backward"}):D.deleteBackward(r));if(Ir.isDeleteForward(n))return pn(n),void(a&&be.isExpanded(a)?D.deleteFragment(r,{direction:"forward"}):D.deleteForward(r));if(Ir.isDeleteLineBackward(n))return pn(n),void(a&&be.isExpanded(a)?D.deleteFragment(r,{direction:"backward"}):D.deleteBackward(r,{unit:"line"}));if(Ir.isDeleteLineForward(n))return pn(n),void(a&&be.isExpanded(a)?D.deleteFragment(r,{direction:"forward"}):D.deleteForward(r,{unit:"line"}));if(Ir.isDeleteWordBackward(n))return pn(n),void(a&&be.isExpanded(a)?D.deleteFragment(r,{direction:"backward"}):D.deleteBackward(r,{unit:"word"}));if(Ir.isDeleteWordForward(n))return pn(n),void(a&&be.isExpanded(a)?D.deleteFragment(r,{direction:"forward"}):D.deleteForward(r,{unit:"word"}))}}},keypress:function(e,t,r){if(!Kh&&!r.getConfig().readOnly&&$i(r,e.target)){e.preventDefault();var n=e.key;D.insertText(r,n)}},copy:function(e,t,r){var n=e;if($i(r,n.target)){n.preventDefault();var a=n.clipboardData;a!=null&&r.setFragmentData(a)}},cut:function(e,t,r){var n=e,a=r.selection;if(!r.getConfig().readOnly&&$i(r,n.target)){n.preventDefault();var i=n.clipboardData;if(i!=null&&(r.setFragmentData(i),a))if(be.isExpanded(a))D.deleteFragment(r);else{var o=Ie.parent(r,a.anchor.path);D.isVoid(r,o)&&pe.delete(r)}}},paste:function(e,t,r){hC.set(r,!0);var n=e;if(!r.getConfig().readOnly&&$i(r,n.target)){var a=r.getConfig().customPaste;if(a&&a(r,n)===!1)return void hC.set(r,!1);if(!Kh||function(o){return o.clipboardData&&o.clipboardData.getData("text/plain")!==""&&o.clipboardData.types.length===1}(n)){n.preventDefault();var i=n.clipboardData;i!=null&&r.insertData(i)}}},dragover:function(e,t,r){if(gd(r,e.target)){var n=X.toSlateNode(r,e.target);D.isVoid(r,n)&&e.preventDefault()}},dragstart:function(e,t,r){var n=e;if(gd(r,n.target)&&!r.getConfig().readOnly){var a=X.toSlateNode(r,n.target),i=X.findPath(r,a);if(D.isVoid(r,a)||D.void(r,{at:i,voids:!0})){var o=D.range(r,i);pe.select(r,o)}var s=n.dataTransfer;s!=null&&(t.isDraggingInternally=!0,r.setFragmentData(s))}},dragend:function(e,t,r){var n=e;r.getConfig().readOnly||t.isDraggingInternally&&gd(r,n.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,r){var n=e,a=n.dataTransfer;if(!r.getConfig().readOnly&&gd(r,n.target)&&a!=null&&!(Kh&&Gh&&a.files.length>0)){n.preventDefault();var i=r.selection,o=X.findEventRange(r,n);pe.select(r,o),t.isDraggingInternally&&(i&&pe.delete(r,{at:i}),t.isDraggingInternally=!1),r.insertData(a),r.isFocused()||r.focus()}}},hPe=1,vPe=function(){function e(t){var r=this;this.id=hPe++,this.$textArea=null,this.$progressBar=te('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=te('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Wf(function(){var o=r.editorInstance;(function(s,u){var l=s.isComposing,c=s.isUpdatingSelection,f=s.isDraggingInternally;if(!(u.getConfig().readOnly||l||c||f)){var d=X.findDocumentOrShadowRoot(u),p=d.activeElement,v=X.toDOMNode(u,u),h=d.getSelection();if(p===v?(s.latestElement=p,bf.set(u,!0)):bf.delete(u),!h)return pe.deselect(u);var g=h.anchorNode,m=h.focusNode,y=$i(u,g)||u$(u,g),x=$i(u,m)||u$(u,m);if(y&&x){var b=X.toSlateRange(u,h,{exactMatch:!1,suppressThrow:!1});pe.select(u,b)}else pe.deselect(u)}})(r,o)},100);var n=te(t);if(n.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=n;var a=te('<div class="w-e-text-container"></div>');a.append(this.$progressBar),a.append(this.$maxLengthInfo),n.append(a);var i=te('<div class="w-e-scroll"></div>');a.append(i),this.$scroll=i,this.$textAreaContainer=a,so(function(){var o=r.editorInstance,s=X.getWindow(o);s.document.addEventListener("selectionchange",r.onDOMSelectionChange),o.on("destroyed",function(){s.document.removeEventListener("selectionchange",r.onDOMSelectionChange)}),a.on("click",function(){return o.hidePanelOrModal()}),o.on("change",r.changeViewState.bind(r));var u=o.getConfig().onChange;u&&o.on("change",function(){return u(o)}),r.onFocusAndOnBlur(),o.on("change",r.changeMaxLengthInfo.bind(r)),r.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=Ak.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,r=this.$textArea,n=this.$scroll,a=this.editorInstance;r!=null&&(JO(pPe,function(i,o){r.on(o,function(s){i(s,t,a)})}),a.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Wf(function(){a.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,r=this.editorInstance,n=r.getConfig(),a=n.onBlur,i=n.onFocus;this.latestEditorSelection=r.selection,r.on("change",function(){t.latestEditorSelection==null&&r.selection!=null?setTimeout(function(){return i&&i(r)}):t.latestEditorSelection!=null&&r.selection==null&&setTimeout(function(){return a&&a(r)}),t.latestEditorSelection=r.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,r=t.getConfig().maxLength;if(r){var n=r-X.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=n+"/"+r}},e.prototype.changeProgress=function(t){var r=this.$progressBar;r.css("width",t+"%"),t>=100&&setTimeout(function(){r.hide(),r.css("width","0"),r.show()},1e3)},e.prototype.changeViewState=function(){var t=this,r=this.editorInstance;lPe(this,r),function(n,a){var i,o=a.getConfig().placeholder;if(o){var s=a.isEmpty();if(s&&!n.showPlaceholder&&!n.isComposing){if(n.$placeholder==null){var u=te('<div class="w-e-text-placeholder">'+o+"</div>");n.$textAreaContainer.append(u),n.$placeholder=u}return n.$placeholder.show(),void(n.showPlaceholder=!0)}!s&&n.showPlaceholder&&((i=n.$placeholder)===null||i===void 0||i.hide(),n.showPlaceholder=!1)}}(this,r),so(function(){yQ(t,r)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function HF(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&HF(t)}function zF(){return te('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function xQ(){return te('<div class="w-e-bar-divider"></div>')}function bQ(e,t,r,n,a){if(a===void 0&&(a=!1),t){if(n){var i=Fk?"cmd":"ctrl";n=n.replace("mod",i)}if(a)n&&(e.attr("data-tooltip",n),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var o=n?r+`
|
||
`+n:r;e.attr("data-tooltip",o),e.addClass("w-e-menu-tooltip-v5")}}}_F("match",function(e,t,r){return[function(n){var a=oo(this),i=n==null?void 0:Kf(n,e);return i?Ht(i,n,a):new RegExp(n)[e](gr(a))},function(n){var a=sn(this),i=gr(n),o=r(t,a,i);if(o.done)return o.value;if(!a.global)return S1(a,i);var s=a.unicode;a.lastIndex=0;for(var u,l=[],c=0;(u=S1(a,i))!==null;){var f=gr(u[0]);l[c]=f,f===""&&(a.lastIndex=AF(i,th(a.lastIndex),s)),c++}return c===0?null:l}]});var VF=function(){function e(t,r,n){var a=this;n===void 0&&(n=!1),this.$elem=te('<div class="w-e-bar-item"></div>'),this.$button=te('<button type="button"></button>'),this.disabled=!1,this.menu=r;var i=r.tag,o=r.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var s=r.title,u=r.hotkey,l=u===void 0?"":u,c=r.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var p=te(f);HF(p),d.append(p)}else d.text(s);bQ(d,f,s,l,n),n&&f&&d.append(te('<span class="title">'+s+"</span>")),o&&d.css("width",o+"px"),d.attr("data-menu-key",t),this.$elem.append(d),so(function(){return a.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(r){r.preventDefault(),bi(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=bi(this),r=this.menu,n=r.getValue(t);r.exec(t,n)},e.prototype.setActive=function(){var t=bi(this),r=this.$button,n="active";this.menu.isActive(t)?r.addClass(n):r.removeClass(n)},e.prototype.setDisabled=function(){var t=bi(this),r=this.$button,n=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var a="disabled";n?r.addClass(a):r.removeClass(a),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),gPe=function(e){function t(r,n,a){return a===void 0&&(a=!1),e.call(this,r,n,a)||this}return nh(t,e),t.prototype.onButtonClick=function(){},t}(VF),WF=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var r=Tk.get(t);r==null&&(r=new Set,Tk.set(t,r)),r.add(this),Ax.set(this,t)},e.prototype.renderContent=function(t){var r=this.$elem;r.empty(),r.append(t);var n=this.genSelfElem();n&&r.append(n)},e.prototype.appendTo=function(t){var r=this.$elem;t.append(r)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=Ax.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=Ax.get(this);t&&t.emit("modalOrPanelHide")}},e}(),mPe=function(e){function t(r){var n=e.call(this,r)||this;return n.type="dropPanel",n.$elem=te('<div class="w-e-drop-panel"></div>'),n}return nh(t,e),t.prototype.genSelfElem=function(){return null},t}(WF),yPe=function(e){function t(r,n,a){a===void 0&&(a=!1);var i=e.call(this,r,n,a)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var o=zF();i.$button.append(o)}return i}return nh(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var r=this.menu;if(r.getPanelContentElem!=null){var n=bi(this);if(this.dropPanel==null){var a=new mPe(n),i=r.getPanelContentElem(n);a.renderContent(i),a.appendTo(this.$elem),a.show(),this.dropPanel=a}else{var o=this.dropPanel;o.isShow?o.hide():(i=r.getPanelContentElem(n),o.renderContent(i),o.show())}var s=this.dropPanel;if(s.isShow){var u=this.$elem,l=u.offset().left,c=u.parents(".w-e-bar");l-c.offset().left>=c.width()/2?s.$elem.css({left:"none",right:"0"}):s.$elem.css({left:"0",right:"none"})}}},t}(VF),xPe=function(e){function t(r,n){n===void 0&&(n=0);var a=e.call(this,r)||this;a.type="modal",a.$elem=te('<div class="w-e-modal"></div>'),a.width=0,n&&(a.width=n);var i=a.$elem;return i.on("click",function(o){return o.stopPropagation()}),i.on("keyup",function(o){o.code==="Escape"&&(a.hide(),r.restoreSelection())}),a}return nh(t,e),t.prototype.genSelfElem=function(){var r=this,n=te('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),a=Ax.get(this);return n.on("click",function(){r.hide(),a==null||a.restoreSelection()}),n},t.prototype.setStyle=function(r){var n=this.width,a=this.$elem;a.attr("style",""),n&&a.css("width",n+"px"),a.css(r)},t}(WF);function Ei(e,t,r){var n=te('<label class="babel-container"></label>');n.append("<span>"+e+"</span>");var a=te('<input type="text" id="'+t+'" placeholder="'+(r||"")+'">');return n.append(a),[n[0],a[0]]}function ah(e,t){var r=te('<div class="button-container"></div>'),n=te('<button type="button" id="'+e+'">'+t+"</button>");return r.append(n),[r[0],n[0]]}var bPe=function(e){function t(r,n,a){a===void 0&&(a=!1);var i=e.call(this,r,n,a)||this;return i.$body=te("body"),i.modal=null,i.menu=n,i}return nh(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var r=bi(this),n=this.menu.getModalPositionNode(r);return qe.isElement(n)?UF(r,n,"modal"):$F(r)},t.prototype.handleModal=function(){var r=bi(this),n=this.menu;if(this.modal==null){var a=new xPe(r,n.modalWidth);this.renderAndShowModal(a,!0),this.modal=a}else(a=this.modal).isShow?a.hide():this.renderAndShowModal(a,!1)},t.prototype.renderAndShowModal=function(r,n){n===void 0&&(n=!1);var a=bi(this),i=this.menu;if(i.getModalContentElem!=null){var o=X.getTextarea(a),s=X.getToolbar(a),u=((s==null?void 0:s.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(a);if(r.renderContent(l),u)r.setStyle({left:"0",right:"0"});else{var c=this.getPosition();r.setStyle(c)}n&&(u?r.appendTo(this.$body):r.appendTo(o.$textAreaContainer)),r.show(),u||$k(a,r.$elem),setTimeout(function(){a.blur()})}},t}(VF),wPe=function(e){function t(r,n){var a=e.call(this,r)||this;return a.type="selectList",a.$elem=te('<div class="w-e-select-list"></div>'),n&&a.$elem.css("width",n+"px"),a.$elem.on("click",function(i){i.stopPropagation()}),a}return nh(t,e),t.prototype.renderList=function(r){var n=this.$elem;n.empty();var a=te("<ul></ul>");r.forEach(function(i){var o=i.value,s=i.text,u=i.selected,l=i.styleForRenderMenuList,c=te('<li data-value="'+o+'"></li>');if(l&&c.css(l),u){var f=te('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');c.append(f),c.addClass("selected")}c.append(te('<span data-value="'+o+'">'+s+"</span>")),c.attr("title",s),a.append(c)}),n.append(a)},t.prototype.genSelfElem=function(){return null},t}(WF),EPe=function(){function e(t,r,n){var a=this;n===void 0&&(n=!1),this.$elem=te('<div class="w-e-bar-item"></div>'),this.$button=te('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=r.tag,o=r.title,s=r.width,u=r.iconSvg,l=u===void 0?"":u,c=r.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var d=this.$button;s&&d.css("width",s+"px"),d.attr("data-menu-key",t),bQ(d,l,o,f,n),this.$elem.append(d),this.menu=r,so(function(){return a.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(r){r.preventDefault(),bi(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,r=bi(this);if(!r.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new wPe(r,n.selectPanelWidth);var a=this.selectList,i=n.getOptions(r);a.renderList(i),a.appendTo(this.$elem),a.show(),a.$elem.on("click","li",function(o){var s=o.target;if(s!=null){o.preventDefault();var u=te(s).attr("data-value");t.onChange(u)}})}else(a=this.selectList).isShow?a.hide():(i=n.getOptions(r),a.renderList(i),a.show())}},e.prototype.onChange=function(t){var r=bi(this),n=this.menu;n.exec&&n.exec(r,t)},e.prototype.setSelectedValue=function(){var t=bi(this),r=this.menu,n=r.getValue(t),a=function(s,u){for(var l=s.length,c="",f=0;f<l;f++){var d=s[f];if(d.value===u){c=d.text;break}}return c}(r.getOptions(t),n.toString()),i=this.$button,o=zF();i.empty(),i.text(a),i.append(o)},e.prototype.setDisabled=function(){var t=bi(this),r=this.menu.isDisabled(t),n=this.$button;(t.selection==null||t.isDisabled())&&(r=!0);var a="disabled";r?n.addClass(a):n.removeClass(a),this.disabled=r},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),c$=function(){function e(t){this.$elem=te('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=te('<div class="w-e-bar-item-menus-container"></div>'),this.$button=te('<button type="button"></button>');var r=t.key,n=t.iconSvg,a=t.title,i=this.$elem,o=this.$button;if(n){var s=te(n);HF(s),o.append(s)}else o.text(a);o.attr("data-menu-key",r);var u=zF();o.append(u),i.append(o);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(t){var r=t.$elem;this.$container.append(r)},e.prototype.observe=function(t){var r=this.$container;t.observe(r[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=this,r=this.$container,n=this.$button,a=new MutationObserver(function(){var i=r.find("button"),o=i.length;if(o!==0){var s=0;i.each(function(u){te(u).hasClass("disabled")&&s++}),a.disconnect(),s===o?n.addClass("disabled"):n.removeClass("disabled"),t.observe(a)}});return a},e}(),f$=new WeakMap;function bi(e){var t=TF.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function wQ(e,t,r){r===void 0&&(r=!1);var n=f$.get(t);if(n)return n;var a=t.tag;if(a==="button"){var i=t.showDropPanel,o=t.showModal;n=i?new yPe(e,t,r):o?new bPe(e,t,r):new gPe(e,t,r)}if(a==="select"&&(n=new EPe(e,t,r)),n==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return f$.set(t,n),n}function SPe(e,t){var r=e.selection;return r!=null&&!be.isCollapsed(r)&&!X.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var a=n.type;return!!["pre","code","table"].includes(a)||void 0})&&!!$e.isText(t)}var CPe=function(){function e(){var t=this;this.$elem=te('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=JJ(function(){var r=t.isShow,n=t.getSelectedNodeAndMenuKeys()||{},a=n.node,i=a===void 0?null:a,o=n.menuKeys,s=o===void 0?[]:o;i!=null&&t.changeItemsState(),i&&qe.isElement(i)&&r&&t.isSamePath(i,t.prevSelectedNode)||(t.hideAndClean(),i!=null&&(t.registerItems(s),t.setPosition(i),t.show()),t.prevSelectedNode=i)},200),so(function(){var r=t.getEditorInstance(),n=t.$elem;n.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),X.getTextarea(r).$textAreaContainer.append(n),r.on("change",t.changeHoverbarState);var a=t.hideAndClean.bind(t);r.on("scroll",a),r.on("fullScreen",a),r.on("unFullScreen",a)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,r=!1,n=window.innerHeight;n&&n>=360&&n-t[0].getBoundingClientRect().bottom<360&&(r=!0),r?t.addClass("w-e-bar-bottom"):t.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var t=this;so(function(){t.hoverbarItems.forEach(function(r){r.changeMenuState()})})},e.prototype.registerItems=function(t){var r=this,n=this.$elem;t.forEach(function(a){if(a!=="|")r.registerSingleItem(a);else{var i=xQ();n.append(i)}})},e.prototype.registerSingleItem=function(t){var r=this.getEditorInstance(),n=this.menus,a=n[t];if(a==null){var i=A1[t];if(i==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=i(),n[t]=a}var o=wQ(t,a);this.hoverbarItems.push(o),TF.set(o,r),this.$elem.append(o.$elem)},e.prototype.setPosition=function(t){var r=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),qe.isElement(t)){var a=UF(r,t,"bar");return n.css(a),void $k(r,n)}if($e.isText(t))return a=$F(r),n.css(a),void $k(r,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.selection==null)return null;var r=this.getHoverbarKeysConf(),n=null,a=[],i=function(s){var u=r[s],l=u.match,c=u.menuKeys,f=c===void 0?[]:c,d=l||function(h,g){return X.checkNodeType(g,s)},p=jt(D.nodes(t,{match:function(h){return d(t,h)},universal:!0}),1),v=p[0];if(v!=null)return n=v[0],a=f,"break"};for(var o in r)if(i(o)==="break")break;return n==null||a.length===0?null:{node:n,menuKeys:a}},e.prototype.getEditorInstance=function(){var t=kk.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,r=t===void 0?{}:t,n=r.text;return n&&n.match==null&&(n.match=SPe),r},e.prototype.isSamePath=function(t,r){if(t==null||r==null)return!1;var n=X.findPath(null,t),a=X.findPath(null,r);return se.equals(n,a)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function EQ(e,t,r,n){if(_1.set(e,t),kp.set(e,r),qe.isElement(e)){var a=e.children;if((a===void 0?[]:a).forEach(function(s,u){return EQ(s,u,e,n)}),D.isVoid(n,e)){var i=jt(Ie.texts(e),1),o=jt(i[0],1)[0];_1.set(o,0),kp.set(o,e)}}}function _Pe(e){var t=e.selector,r=t===void 0?"":t,n=e.config,a=n===void 0?{}:n,i=e.content,o=e.html,s=e.plugins,u=s===void 0?[]:s,l=(m=>{var y=m,{apply:x}=y;return y.history={undos:[],redos:[]},y.redo=()=>{var{history:b}=y,{redos:E}=b;if(E.length>0){var S=E[E.length-1];Ed.withoutSaving(y,()=>{D.withoutNormalizing(y,()=>{for(var w of S)y.apply(w)})}),b.redos.pop(),b.undos.push(S)}},y.undo=()=>{var{history:b}=y,{undos:E}=b;if(E.length>0){var S=E[E.length-1];Ed.withoutSaving(y,()=>{D.withoutNormalizing(y,()=>{var w=S.map(vl.inverse).reverse();for(var C of w)y.apply(C)})}),b.redos.push(S),b.undos.pop()}},y.apply=b=>{var{operations:E,history:S}=y,{undos:w}=S,C=w[w.length-1],_=C&&C[C.length-1],O=((ee,J)=>!(!J||ee.type!=="set_selection"||J.type!=="set_selection"))(b,_),P=Ed.isSaving(y),F=Ed.isMerging(y);if(P==null&&(P=((ee,J)=>ee.type!=="set_selection"||ee.properties!=null&&ee.newProperties!=null)(b)),P){if(F==null&&(F=C!=null&&(E.length!==0||((ee,J)=>ee.type==="set_selection"||!(!J||ee.type!=="insert_text"||J.type!=="insert_text"||ee.offset!==J.offset+J.text.length||!se.equals(ee.path,J.path))||!(!J||ee.type!=="remove_text"||J.type!=="remove_text"||ee.offset+ee.text.length!==J.offset||!se.equals(ee.path,J.path)))(b,_)||O)),C&&F)O&&C.pop(),C.push(b);else{var q=[b];w.push(q)}for(;w.length>100;)w.shift();(ee=>ee.type!=="set_selection")(b)&&(S.redos=[])}x(b)},y})(function(m){var y=m,x=y.insertText,b=y.insertNode,E=y.insertFragment,S=y.dangerouslyInsertHtml;return y.insertText=function(w){if(y.getConfig().maxLength){var C=X.getLeftLengthOfMaxLength(y);C<=0||(C<w.length?x(w.slice(0,C)):x(w))}else x(w)},y.insertNode=function(w){if(y.getConfig().maxLength){var C=X.getLeftLengthOfMaxLength(y);C<=0||C<Ie.string(w).length||b(w)}else b(w)},y.insertFragment=function(w){if(y.getConfig().maxLength)if(w.length!==1)w.forEach(function(_){y.insertNode(_)});else{var C=w[0];if(X.getLeftLengthOfMaxLength(y)<Ie.string(C).length)return;E(w)}else E(w)},y.dangerouslyInsertHtml=function(w,C){if(w===void 0&&(w=""),C===void 0&&(C=!1),w)if(y.getConfig().maxLength){var _=X.getLeftLengthOfMaxLength(y);if(!(_<=0)){var O=document.createElement("div");O.innerHTML=w;var P=Array.from(O.childNodes).reduce(function(F,q){var ee=q.nodeType,J=q.nodeName;return q?ee===ss.TEXT_NODE?F+(q.textContent||""):ee===ss.ELEMENT_NODE?qj.has(J.toLowerCase())?F:F+(q.textContent||""):F:F},"");_<P.length||S(w,C)}}else S(w,C)},y}(function(m){var y=m;return y.on=function(x,b){var E=c2(y);if(E.on(x,b),x==="destroyed"&&Qj(y,b),x!=="destroyed"){var S=function(){return E.off(x,b)};E.on("destroyed",S),Qj(y,S)}},y.once=function(x,b){c2(y).once(x,b)},y.off=function(x,b){c2(y).off(x,b)},y.emit=function(x){for(var b=[],E=1;E<arguments.length;E++)b[E-1]=arguments[E];var S=c2(y);S.emit.apply(S,Sk([x],jt(b))),x==="destroyed"&&(JBe(y).forEach(function(w){return S.off("destroyed",w)}),ZBe(y))},y}(function(m){var y=m;return y.select=function(x){pe.select(y,x)},y.deselect=function(){var x=y.selection,b=X.findDocumentOrShadowRoot(y).getSelection();b&&b.rangeCount>0&&b.removeAllRanges(),x&&pe.deselect(m)},y.move=function(x,b){b===void 0&&(b=!1),x&&(x<0||pe.move(m,{distance:x,unit:"character",reverse:b}))},y.moveReverse=function(x){y.move(x,!0)},y.restoreSelection=function(){var x=pC.get(y);x!=null&&(y.focus(),pe.select(y,x))},y.getSelectionPosition=function(){return $F(y)},y.getNodePosition=function(x){return UF(y,x)},y.isSelectedAll=function(){var x=y.selection;if(x==null)return!1;var b=jt(be.edges(x),2),E=b[0],S=b[1],w=jt(D.edges(y,[]),2),C=w[0],_=w[1];return!(!St.equals(E,C)||!St.equals(S,_))},y.selectAll=function(){var x=D.start(y,[]),b=D.end(y,[]);pe.select(y,{anchor:x,focus:b})},y}(function(m){var y=m,x=y.onChange,b=y.insertText,E=y.apply,S=y.deleteBackward;return y.insertText=function(w){y.getConfig().readOnly||b(w)},y.apply=function(w){var C,_,O,P,F,q,ee,J,Z=[];switch(w.type){case"insert_text":case"remove_text":case"set_node":try{for(var V=Wi(D.levels(y,{at:w.path})),ie=V.next();!ie.done;ie=V.next()){var W=jt(ie.value,2),de=W[0],M=W[1],A=X.findKey(y,de);Z.push([M,A])}}catch(z){C={error:z}}finally{try{ie&&!ie.done&&(_=V.return)&&_.call(V)}finally{if(C)throw C.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var N=Wi(D.levels(y,{at:se.parent(w.path)})),I=N.next();!I.done;I=N.next()){var L=jt(I.value,2);de=L[0],M=L[1],A=X.findKey(y,de),Z.push([M,A])}}catch(z){O={error:z}}finally{try{I&&!I.done&&(P=N.return)&&P.call(N)}finally{if(O)throw O.error}}break;case"move_node":try{for(var Y=Wi(D.levels(y,{at:se.common(se.parent(w.path),se.parent(w.newPath))})),Q=Y.next();!Q.done;Q=Y.next()){var le=jt(Q.value,2);de=le[0],M=le[1],A=X.findKey(y,de),Z.push([M,A])}}catch(z){F={error:z}}finally{try{Q&&!Q.done&&(q=Y.return)&&q.call(Y)}finally{if(F)throw F.error}}}E(w);try{for(var ve=Wi(Z),he=ve.next();!he.done;he=ve.next()){var fe=jt(he.value,2);M=fe[0],A=fe[1],de=jt(D.node(y,M),1)[0],kx.set(de,A)}}catch(z){ee={error:z}}finally{try{he&&!he.done&&(J=ve.return)&&J.call(ve)}finally{if(ee)throw ee.error}}},y.deleteBackward=function(w){if(w!=="line")return S(w);if(m.selection&&be.isCollapsed(m.selection)){var C=D.above(m,{match:function(F){return D.isBlock(m,F)},at:m.selection});if(C){var _=jt(C,2)[1],O=D.range(m,_,m.selection.anchor),P=function(F,q){var ee=D.range(F,be.end(q)),J=Array.from(D.positions(F,{at:q})),Z=0,V=J.length,ie=Math.floor(V/2);if(jj(F,D.range(F,J[Z]),ee))return D.range(F,J[Z],ee);if(J.length<2)return D.range(F,J[J.length-1],ee);for(;ie!==J.length&&ie!==Z;)jj(F,D.range(F,J[ie]),ee)?V=ie:Z=ie,ie=Math.floor((Z+V)/2);return D.range(F,J[V],ee)}(y,O);be.isCollapsed(P)||pe.delete(m,{at:P})}}},y.onChange=function(){var w=y.selection;w!=null&&pC.set(y,w),y.emit("change"),x()},y.handleTab=function(){y.insertText(" ")},y.getHtml=function(){var w=y.children;return(w===void 0?[]:w).map(function(C){return uQ(C,y)}).join("")},y.getText=function(){var w=y.children;return(w===void 0?[]:w).map(function(C){return Ie.string(C)}).join(`
|
||
`)},y.getSelectionText=function(){var w=y.selection;return w==null?"":D.string(m,w)},y.getElemsByType=function(w,C){var _,O;C===void 0&&(C=!1);var P=[],F=D.nodes(y,{at:[],universal:!0});try{for(var q=Wi(F),ee=q.next();!ee.done;ee=q.next()){var J=jt(ee.value,1)[0];if(qe.isElement(J)&&(C?J.type.indexOf(w)>=0:J.type===w)){var Z=lQ(X.findKey(y,J).id);P.push(Vi(Vi({},J),{id:Z}))}}}catch(V){_={error:V}}finally{try{ee&&!ee.done&&(O=q.return)&&O.call(q)}finally{if(_)throw _.error}}return P},y.getElemsByTypePrefix=function(w){return y.getElemsByType(w,!0)},y.isEmpty=function(){var w=y.children,C=w===void 0?[]:w;if(C.length>1)return!1;var _=C[0];if(_==null)return!0;if(qe.isElement(_)&&_.type==="paragraph"){var O=_.children,P=O===void 0?[]:O;if(P.length>1)return!1;var F=P[0];if(F==null||$e.isText(F)&&F.text==="")return!0}return!1},y.clear=function(){pe.delete(y,{at:{anchor:D.start(y,[]),focus:D.end(y,[])}}),y.children.length===0&&pe.insertNodes(y,[{type:"paragraph",children:[{text:""}]}])},y.getParentNode=function(w){return X.getParentNode(y,w)},y.dangerouslyInsertHtml=function(w,C){if(w===void 0&&(w=""),C===void 0&&(C=!1),w){var _=document.createElement("div");_.innerHTML=w;var O=Array.from(_.childNodes);if(O=O.filter(function(ee){var J=ee.nodeType,Z=ee.nodeName;return J===ss.TEXT_NODE||J===ss.ELEMENT_NODE&&!qj.has(Z.toLowerCase())}),O.length!==0){var P=y.selection;if(P!=null){var F=null;X.isSelectedEmptyParagraph(y)&&!C&&(F=[P.focus.path[0]]),_.setAttribute("hidden","true"),document.body.appendChild(_);var q=0;O.forEach(function(ee){var J=ee.nodeType,Z=ee.nodeName,V=ee.textContent,ie=V===void 0?"":V;if(J!==ss.TEXT_NODE)if(Z!=="BR"){var W=ee,de=!1;if(cQ.includes(Z.toLowerCase()))de=!0;else for(var M in vw)if(W.matches(M)){de=!0;break}if(de){var A=LF(te(W),y);return Array.isArray(A)?(A.forEach(function(I){return Xj(y,I)}),q++):(Xj(y,A),q++),void(X.isSelectedVoidNode(y)&&y.move(1))}var N=window.getComputedStyle(W).display;X.isSelectedEmptyParagraph(y)||N.indexOf("inline")<0&&y.insertBreak(),y.dangerouslyInsertHtml(W.innerHTML,!0)}else y.insertText(`
|
||
`);else{if(!ie||!ie.trim())return;y.insertNode({text:ie})}}),q&&F&&X.isEmptyPath(y,F)&&pe.removeNodes(y,{at:F}),_.remove()}}}},y.setHtml=function(w){w===void 0&&(w="");var C=y.isDisabled(),_=y.isFocused(),O=JSON.stringify(y.selection);y.enable(),y.focus(),y.clear();var P=Wj(y,w);if(pe.insertFragment(y,P),_||(y.deselect(),y.blur()),C&&(y.deselect(),y.disable()),y.isFocused())try{y.select(JSON.parse(O))}catch(F){y.select(D.start(y,[]))}},y}(function(m){var y=m;return y.getAllMenuKeys=function(){var x=[];for(var b in A1)x.push(b);return x},y.getConfig=function(){var x=vj.get(y);if(x==null)throw new Error("Can not get editor config");return x},y.getMenuConfig=function(x){var b=y.getConfig().MENU_CONF;return(b===void 0?{}:b)[x]||{}},y.alert=function(x,b){b===void 0&&(b="info");var E=y.getConfig().customAlert;E&&E(x,b)},y}(function(m){var y=MBe(sTe());return y.id="wangEditor-"+G7e++,y.isDestroyed=!1,y.isFullScreen=!1,y.focus=function(x){if(X.toDOMNode(y,y).focus({preventScroll:!0}),bf.set(y,!0),x){var b=D.end(y,[]);pe.select(y,b)}else{var E=pC.get(y);E?pe.select(y,E):pe.select(y,D.start(y,[]))}},y.isFocused=function(){return!!bf.get(y)},y.blur=function(){X.toDOMNode(y,y).blur(),pe.deselect(y),bf.set(y,!1)},y.updateView=function(){X.getTextarea(y).changeViewState();var x=X.getToolbar(y);x&&x.changeToolbarState();var b=X.getHoverbar(y);b&&b.changeHoverbarState()},y.destroy=function(){if(!y.isDestroyed){var x=X.getTextarea(y);x.destroy(),_k.delete(y),Ak.delete(x);var b=X.getToolbar(y);b&&(b.destroy(),w4.delete(y),kF.delete(b));var E=X.getHoverbar(y);E&&(E.destroy(),cw.delete(y),kk.delete(E)),y.isDestroyed=!0,y.emit("destroyed")}},y.scrollToElem=function(x){if(!y.getConfig().scroll){var b="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return b+=`
|
||
You has disabled editor scroll, please do this yourself`,void console.warn(b)}var E=te("#"+x);if(E.length!==0){var S=E[0];if(!X.hasDOMNode(y,S))return b="Element (found by id is '"+x+"') is not in editor DOM",b+=`
|
||
通过 id '`+x+"' 找到的 element 不在 editor DOM 之内",void console.error(b,S);var w=X.getTextarea(y),C=w.$textAreaContainer,_=w.$scroll,O=E.offset().top,P=C.offset().top;_[0].scrollBy({top:O-P,behavior:"smooth"})}},y.showProgressBar=function(x){x<1||X.getTextarea(y).changeProgress(x)},y.hidePanelOrModal=function(){var x=Tk.get(y);x!=null&&x.forEach(function(b){return b.hide()})},y.enable=function(){y.getConfig().readOnly=!1,y.updateView()},y.disable=function(){y.getConfig().readOnly=!0,y.updateView()},y.isDisabled=function(){return y.getConfig().readOnly},y.toDOMNode=function(x){return X.toDOMNode(y,x)},y.fullScreen=function(){if(!y.isFullScreen){var x=null,b=X.getToolbar(y);b&&(x=b.$box);var E=X.getTextarea(y).$box.parent();if(x&&x.parent()[0]!==E[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
|
||
不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);E.addClass("w-e-full-screen-container");var S=E.css("z-index");E.attr("data-z-index",S.toString()),y.isFullScreen=!0,y.emit("fullScreen")}},y.unFullScreen=function(){if(y.isFullScreen){var x=X.getTextarea(y).$box.parent();setTimeout(function(){x.removeClass("w-e-full-screen-container"),y.isFullScreen=!1,y.emit("unFullScreen")},200)}},y.getEditableContainer=function(){return X.getTextarea(y).$textAreaContainer[0]},y}()))))));if(r&&function(m,y){return hQ(m,"data-w-e-textarea",y)}(l,r))throw new Error("Repeated create editor by selector '"+r+"'");var c=function(m){m===void 0&&(m={});var y=ZJ(GZ),x={},b=m.MENU_CONF,E=b===void 0?{}:b;return JO(y,function(S,w){x[w]=Vi(Vi({},S),E[w]||{})}),delete m.MENU_CONF,Vi({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:x,hoverbarKeys:{},customAlert:function(S,w){window.alert(w+`:
|
||
`+S)}},m)}(a);vj.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(u.forEach(function(m){l=m(l)}),o!=null&&(l.children=Wj(l,o)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),X.normalizeContent(l),r){var p=new vPe(r);_k.set(l,p),Ak.set(p,l),p.changeViewState(),so(function(){var m=p.$scroll;m!=null&&m.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
|
||
Textarea height < 300px . This may be cause modal and hoverbar position error`,m)});var v=void 0;Object.keys(d).length>0&&(v=new CPe,kk.set(v,l),cw.set(l,v)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(m,y){return EQ(m,y,l,l)});var h=c.onCreated,g=c.onDestroyed;return h&&l.on("created",function(){return h(l)}),g&&l.on("destroyed",function(){return g(l)}),so(function(){return l.emit("created")}),l}var APe=m4("splice"),kPe=Be.TypeError,TPe=Math.max,DPe=Math.min;Mr({target:"Array",proto:!0,forced:!APe},{splice:function(e,t){var r,n,a,i,o,s,u=pc(this),l=b0(u),c=Sp(e,l),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=l-c):(r=f-2,n=DPe(TPe(Nm(t),0),l-c)),l+r-n>9007199254740991)throw kPe("Maximum allowed length exceeded");for(a=xZ(u,n),i=0;i<n;i++)(o=c+i)in u&&w1(a,i,u[o]);if(a.length=n,r<n){for(i=c;i<l-n;i++)s=i+r,(o=i+n)in u?u[s]=u[o]:delete u[s];for(i=l;i>l-n+r;i--)delete u[i-1]}else if(r>n)for(i=l-n;i>c;i--)s=i+r-1,(o=i+n-1)in u?u[s]=u[o]:delete u[s];for(i=0;i<r;i++)u[i+c]=arguments[i+2];return u.length=l-n+r,a}});var OPe=function(){function e(t,r){var n=this;this.$toolbar=te('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=JJ(function(){n.toolbarItems.forEach(function(o){o.changeMenuState()})},200),this.config=r;var a=te(t);if(a.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=a;var i=this.$toolbar;i.on("mousedown",function(o){return o.preventDefault()},{passive:!1}),a.append(i),so(function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,r="",n=this.$toolbar,a=this.config,i=a.toolbarKeys,o=i===void 0?[]:i,s=a.insertKeys,u=s===void 0?{index:0,keys:[]}:s,l=a.excludeKeys,c=l===void 0?[]:l,f=ZJ(o);u.keys.length>0&&(typeof u.keys=="string"&&(u.keys=[u.keys]),u.keys.forEach(function(v,h){f.splice(u.index+h,0,v)}));var d=f.filter(function(v){if(typeof v=="string"){if(c.includes(v))return!1}else if(c.includes(v.key))return!1;return!0}),p=d.length;d.forEach(function(v,h){if(v==="|"){if(h===0||h+1===p||r==="|")return;var g=xQ();return n.append(g),void(r=v)}if(typeof v=="string")return t.registerSingleItem(v,t),void(r=v);t.registerGroup(v),r="group"})},e.prototype.registerGroup=function(t){var r=this,n=this.$toolbar,a=function(l){return new c$(l)}(t),i=t.menuKeys,o=i===void 0?[]:i,s=this.config.excludeKeys,u=s===void 0?[]:s;o.forEach(function(l){u.includes(l)||r.registerSingleItem(l,a)}),n.append(a.$elem)},e.prototype.registerSingleItem=function(t,r){var n=this.getEditorInstance(),a=r instanceof c$,i=this.menus,o=i[t];if(o==null){var s=A1[t];if(s==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof s!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");o=s(),i[t]=o}else console.warn("Duplicated toolbar menu key '"+t+`'
|
||
重复注册了菜单栏 menu '`+t+"'");var u=wQ(t,o,a);this.toolbarItems.push(u),TF.set(u,n),a?r.appendBarItem(u):r.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var t=kF.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),FPe=eh.EXISTS,BPe=Ko.f,SQ=Function.prototype,PPe=Ye(SQ.toString),CQ=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,NPe=Ye(CQ.exec);function _Q(e){var t=e.server,r=t===void 0?"":t,n=e.fieldName,a=n===void 0?"":n,i=e.maxFileSize,o=i===void 0?10485760:i,s=e.maxNumberOfFiles,u=s===void 0?100:s,l=e.meta,c=l===void 0?{}:l,f=e.metaWithUrl,d=f!==void 0&&f,p=e.headers,v=p===void 0?{}:p,h=e.withCredentials,g=h!==void 0&&h,m=e.timeout,y=m===void 0?1e4:m,x=e.onBeforeUpload,b=x===void 0?function(q){return q}:x,E=e.onSuccess,S=E===void 0?function(q,ee){}:E,w=e.onError,C=w===void 0?function(q,ee,J){console.error(q.name+" upload error",ee,J)}:w,_=e.onProgress,O=_===void 0?function(q){}:_;if(!r)throw new Error(`Cannot get upload server address
|
||
没有配置上传地址`);if(!a)throw new Error(`Cannot get fieldName
|
||
没有配置 fieldName`);var P=r;d&&(P=function(q,ee){var J=jt(q.split("#"),2),Z=J[0],V=J[1],ie=[];JO(ee,function(de,M){ie.push(M+"="+de)});var W=ie.join("&");return Z=Z.indexOf("?")>0?Z+"&"+W:Z+"?"+W,V?Z+"#"+V:Z}(P,c));var F=new qv({onBeforeUpload:b,restrictions:{maxFileSize:o,maxNumberOfFiles:u},meta:c}).use(sFe,{endpoint:P,headers:v,formData:!0,fieldName:a,bundle:!0,withCredentials:g,timeout:y});return F.on("upload-success",function(q,ee){var J=ee.body,Z=J===void 0?{}:J;try{S(q,Z)}catch(V){console.error("wangEditor upload file - onSuccess error",V)}F.removeFile(q.id)}),F.on("progress",function(q){q<1||O(q)}),F.on("upload-error",function(q,ee,J){try{C(q,ee,J)}catch(Z){console.error("wangEditor upload file - onError error",Z)}F.removeFile(q.id)}),F.on("restriction-failed",function(q,ee){try{C(q,ee)}catch(J){console.error("wangEditor upload file - onError error",J)}F.removeFile(q.id)}),F}function Tl(e){return Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tl(e)}function IPe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.forEach(function(a){IPe(e,a,r[a])})}return e}function gu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mu(e,t,r){return t&&d$(e.prototype,t),r&&d$(e,r),e}function Yf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T1(e,t){if(t&&(Tl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yf(e)}function Tp(e){return Tp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Tp(e)}function zk(e,t){return zk=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},zk(e,t)}function E4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zk(e,t)}Vn&&!FPe&&BPe(SQ,"name",{configurable:!0,get:function(){try{return NPe(CQ,PPe(this))[1]}catch(e){return""}}});var RPe={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Zs=new(function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};gu(this,e),this.init(t,r)}return mu(e,[{key:"init",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||RPe,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,r,n,a){return a&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(n).concat(this.prefix," ").concat(t[0])),this.logger[r](t))}},{key:"create",value:function(t){return new e(this.logger,gn({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),Ql=function(){function e(){gu(this,e),this.observers={}}return mu(e,[{key:"on",value:function(t,r){var n=this;return t.split(" ").forEach(function(a){n.observers[a]=n.observers[a]||[],n.observers[a].push(r)}),this}},{key:"off",value:function(t,r){this.observers[t]&&(r?this.observers[t]=this.observers[t].filter(function(n){return n!==r}):delete this.observers[t])}},{key:"emit",value:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach(function(s){s.apply(void 0,n)})}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach(function(s){s.apply(s,[t].concat(n))})}}}]),e}();function Zh(){var e,t,r=new Promise(function(n,a){e=n,t=a});return r.resolve=e,r.reject=t,r}function p$(e){return e==null?"":""+e}function LPe(e,t,r){e.forEach(function(n){t[n]&&(r[n]=t[n])})}function GF(e,t,r){function n(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function a(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(a())return{};var o=n(i.shift());!e[o]&&r&&(e[o]=new r),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return a()?{}:{obj:e,k:n(i.shift())}}function h$(e,t,r){var n=GF(e,t,Object);n.obj[n.k]=r}function mw(e,t){var r=GF(e,t),n=r.obj,a=r.k;if(n)return n[a]}function v$(e,t,r){var n=mw(e,r);return n!==void 0?n:mw(t,r)}function AQ(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):AQ(e[n],t[n],r):e[n]=t[n]);return e}function H0(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var MPe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function jPe(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return MPe[t]}):e}var S4=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function kQ(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),a=e,i=0;i<n.length;++i){if(!a||typeof a[n[i]]=="string"&&i+1<n.length)return;if(a[n[i]]===void 0){for(var o=2,s=n.slice(i,i+o).join(r),u=a[s];u===void 0&&n.length>i+o;)o++,u=a[s=n.slice(i,i+o).join(r)];if(u===void 0)return;if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s];var l=n.slice(i+o).join(r);return l?kQ(u,l,r):void 0}a=a[n[i]]}return a}}var $Pe=function(e){function t(r){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return gu(this,t),n=T1(this,Tp(t).call(this)),S4&&Ql.call(Yf(n)),n.data=r||{},n.options=a,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return E4(t,Ql),mu(t,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var n=this.options.ns.indexOf(r);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(r,n,a){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[r,n];a&&typeof a!="string"&&(u=u.concat(a)),a&&typeof a=="string"&&(u=u.concat(o?a.split(o):a)),r.indexOf(".")>-1&&(u=r.split("."));var l=mw(this.data,u);return l||!s||typeof a!="string"?l:kQ(this.data&&this.data[r]&&this.data[r][n],a,o)}},{key:"addResource",value:function(r,n,a,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=this.options.keySeparator;s===void 0&&(s=".");var u=[r,n];a&&(u=u.concat(s?a.split(s):a)),r.indexOf(".")>-1&&(i=n,n=(u=r.split("."))[1]),this.addNamespaces(n),h$(this.data,u,i),o.silent||this.emit("added",r,n,a,i)}},{key:"addResources",value:function(r,n,a){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var o in a)typeof a[o]!="string"&&Object.prototype.toString.apply(a[o])!=="[object Array]"||this.addResource(r,n,o,a[o],{silent:!0});i.silent||this.emit("added",r,n,a)}},{key:"addResourceBundle",value:function(r,n,a,i,o){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[r,n];r.indexOf(".")>-1&&(i=a,a=n,n=(u=r.split("."))[1]),this.addNamespaces(n);var l=mw(this.data,u)||{};i?AQ(l,a,o):l=gn({},l,a),h$(this.data,u,l),s.silent||this.emit("added",r,n,a)}},{key:"removeResourceBundle",value:function(r,n){this.hasResourceBundle(r,n)&&delete this.data[r][n],this.removeNamespaces(n),this.emit("removed",r,n)}},{key:"hasResourceBundle",value:function(r,n){return this.getResource(r,n)!==void 0}},{key:"getResourceBundle",value:function(r,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?gn({},{},this.getResource(r,n)):this.getResource(r,n)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"toJSON",value:function(){return this.data}}]),t}(),TQ={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,a){var i=this;return e.forEach(function(o){i.processors[o]&&(t=i.processors[o].process(t,r,n,a))}),t}},g$={},m$=function(e){function t(r){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return gu(this,t),n=T1(this,Tp(t).call(this)),S4&&Ql.call(Yf(n)),LPe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Yf(n)),n.options=a,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=Zs.create("translator"),n}return E4(t,Ql),mu(t,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var a=this.resolve(r,n);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(r,n){var a=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ns||this.options.defaultNS;if(a&&r.indexOf(a)>-1){var s=r.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:r,namespaces:o};var u=r.split(a);(a!==i||a===i&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),r=u.join(i)}return typeof o=="string"&&(o=[o]),{key:r,namespaces:o}}},{key:"translate",value:function(r,n,a){var i=this;if(Tl(n)!=="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(r[r.length-1],n),u=s.key,l=s.namespaces,c=l[l.length-1],f=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=n.nsSeparator||this.options.nsSeparator;return c+p+u}return u}var v=this.resolve(r,n),h=v&&v.res,g=v&&v.usedKey||u,m=v&&v.exactUsedKey||u,y=Object.prototype.toString.apply(h),x=["[object Number]","[object Function]","[object RegExp]"],b=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,S=typeof h!="string"&&typeof h!="boolean"&&typeof h!="number";if(E&&h&&S&&x.indexOf(y)<0&&(typeof b!="string"||y!=="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,gn({},n,{ns:l})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(o){var w=y==="[object Array]",C=w?[]:{},_=w?m:g;for(var O in h)if(Object.prototype.hasOwnProperty.call(h,O)){var P="".concat(_).concat(o).concat(O);C[O]=this.translate(P,gn({},n,{joinArrays:!1,ns:l})),C[O]===P&&(C[O]=h[O])}h=C}}else if(E&&typeof b=="string"&&y==="[object Array]")(h=h.join(b))&&(h=this.extendTranslation(h,r,n,a));else{var F=!1,q=!1,ee=n.count!==void 0&&typeof n.count!="string",J=t.hasDefaultValue(n),Z=ee?this.pluralResolver.getSuffix(f,n.count):"",V=n["defaultValue".concat(Z)]||n.defaultValue;!this.isValidLookup(h)&&J&&(F=!0,h=V),this.isValidLookup(h)||(q=!0,h=u);var ie=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,W=ie&&q?void 0:h,de=J&&V!==h&&this.options.updateMissing;if(q||F||de){if(this.logger.log(de?"updateKey":"missingKey",f,c,u,de?V:h),o){var M=this.resolve(u,gn({},n,{keySeparator:!1}));M&&M.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var A=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&N&&N[0])for(var I=0;I<N.length;I++)A.push(N[I]);else this.options.saveMissingTo==="all"?A=this.languageUtils.toResolveHierarchy(n.lng||this.language):A.push(n.lng||this.language);var L=function(Y,Q,le){i.options.missingKeyHandler?i.options.missingKeyHandler(Y,c,Q,de?le:W,de,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(Y,c,Q,de?le:W,de,n),i.emit("missingKey",Y,c,Q,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&ee?A.forEach(function(Y){i.pluralResolver.getSuffixes(Y).forEach(function(Q){L([Y],u+Q,n["defaultValue".concat(Q)]||V)})}):L(A,u,V))}h=this.extendTranslation(h,r,n,v,a),q&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(u)),(q||F)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(r,n,a,i,o){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,a,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(gn({},a,{interpolation:gn({},this.options.interpolation,a.interpolation)}));var u,l=a.interpolation&&a.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=r.match(this.interpolator.nestingRegexp);u=c&&c.length}var f=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(f=gn({},this.options.interpolation.defaultVariables,f)),r=this.interpolator.interpolate(r,f,a.lng||this.language,a),l){var d=r.match(this.interpolator.nestingRegexp);u<(d&&d.length)&&(a.nest=!1)}a.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var h=arguments.length,g=new Array(h),m=0;m<h;m++)g[m]=arguments[m];return o&&o[0]===g[0]&&!a.context?(s.logger.warn("It seems you are nesting recursively key: ".concat(g[0]," in key: ").concat(n[0])),null):s.translate.apply(s,g.concat([n]))},a)),a.interpolation&&this.interpolator.reset()}var p=a.postProcess||this.options.postProcess,v=typeof p=="string"?[p]:p;return r!=null&&v&&v.length&&a.applyPostProcessor!==!1&&(r=TQ.handle(v,r,n,this.options&&this.options.postProcessPassResolved?gn({i18nResolved:i},a):a,this)),r}},{key:"resolve",value:function(r){var n,a,i,o,s,u=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof r=="string"&&(r=[r]),r.forEach(function(c){if(!u.isValidLookup(n)){var f=u.extractFromKey(c,l),d=f.key;a=d;var p=f.namespaces;u.options.fallbackNS&&(p=p.concat(u.options.fallbackNS));var v=l.count!==void 0&&typeof l.count!="string",h=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",g=l.lngs?l.lngs:u.languageUtils.toResolveHierarchy(l.lng||u.language,l.fallbackLng);p.forEach(function(m){u.isValidLookup(n)||(s=m,!g$["".concat(g[0],"-").concat(m)]&&u.utils&&u.utils.hasLoadedNamespace&&!u.utils.hasLoadedNamespace(s)&&(g$["".concat(g[0],"-").concat(m)]=!0,u.logger.warn('key "'.concat(a,'" for languages "').concat(g.join(", "),`" won't get resolved as namespace "`).concat(s,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(function(y){if(!u.isValidLookup(n)){o=y;var x,b,E=d,S=[E];for(u.i18nFormat&&u.i18nFormat.addLookupKeys?u.i18nFormat.addLookupKeys(S,d,y,m,l):(v&&(x=u.pluralResolver.getSuffix(y,l.count)),v&&h&&S.push(E+x),h&&S.push(E+="".concat(u.options.contextSeparator).concat(l.context)),v&&S.push(E+=x));b=S.pop();)u.isValidLookup(n)||(i=b,n=u.getResource(y,m,b,l))}}))})}}),{res:n,usedKey:a,exactUsedKey:i,usedLng:o,usedNS:s}}},{key:"isValidLookup",value:function(r){return!(r===void 0||!this.options.returnNull&&r===null||!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,n,a){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,n,a,i):this.resourceStore.getResource(r,n,a,i)}}],[{key:"hasDefaultValue",value:function(r){var n="defaultValue";for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)&&n===a.substring(0,n.length)&&r[a]!==void 0)return!0;return!1}}]),t}();function IC(e){return e.charAt(0).toUpperCase()+e.slice(1)}var UPe=function(){function e(t){gu(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Zs.create("languageUtils")}return mu(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var r=t.split("-");return r.length===2?null:(r.pop(),r[r.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(r.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var r=t.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map(function(a){return a.toLowerCase()}):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=IC(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=IC(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=IC(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var r,n=this;return t?(t.forEach(function(a){if(!r){var i=n.formatLanguageCode(a);n.options.supportedLngs&&!n.isSupportedCode(i)||(r=i)}}),!r&&this.options.supportedLngs&&t.forEach(function(a){if(!r){var i=n.getLanguagePartFromCode(a);if(n.isSupportedCode(i))return r=i;r=n.options.supportedLngs.find(function(o){if(o.indexOf(i)===0)return o})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t.default||[];var n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function(t,r){var n=this,a=this.getFallbackCodes(r||this.options.fallbackLng||[],t),i=[],o=function(s){s&&(n.isSupportedCode(s)?i.push(s):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(s)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),a.forEach(function(s){i.indexOf(s)<0&&o(n.formatLanguageCode(s))}),i}}]),e}(),HPe=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],zPe={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};function VPe(){var e={};return HPe.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:zPe[t.fc]}})}),e}var WPe=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};gu(this,e),this.languageUtils=t,this.options=r,this.logger=Zs.create("pluralResolver"),this.rules=VPe()}return mu(e,[{key:"addRule",value:function(t,r){this.rules[t]=r}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var r=this.getRule(t);return r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,r){return this.getSuffixes(t).map(function(n){return r+n})}},{key:"getSuffixes",value:function(t){var r=this,n=this.getRule(t);return n?n.numbers.map(function(a){return r.getSuffix(t,a)}):[]}},{key:"getSuffix",value:function(t,r){var n=this,a=this.getRule(t);if(a){var i=a.noAbs?a.plurals(r):a.plurals(Math.abs(r)),o=a.numbers[i];this.options.simplifyPluralSuffix&&a.numbers.length===2&&a.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var s=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&a.numbers.length===2&&a.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),GPe=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gu(this,e),this.logger=Zs.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return mu(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=r.escape!==void 0?r.escape:jPe,this.escapeValue=r.escapeValue===void 0||r.escapeValue,this.useRawValueToEscape=r.useRawValueToEscape!==void 0&&r.useRawValueToEscape,this.prefix=r.prefix?H0(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?H0(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?H0(r.nestingPrefix):r.nestingPrefixEscaped||H0("$t("),this.nestingSuffix=r.nestingSuffix?H0(r.nestingSuffix):r.nestingSuffixEscaped||H0(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0&&r.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(t,r,n,a){var i,o,s,u=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(h){return h.replace(/\$/g,"$$$$")}var f=function(h){if(h.indexOf(u.formatSeparator)<0){var g=v$(r,l,h);return u.alwaysFormat?u.format(g,void 0,n,gn({},a,r,{interpolationkey:h})):g}var m=h.split(u.formatSeparator),y=m.shift().trim(),x=m.join(u.formatSeparator).trim();return u.format(v$(r,l,y),x,n,gn({},a,r,{interpolationkey:y}))};this.resetRegExp();var d=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,p=a&&a.interpolation&&a.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(h){return c(h)}},{regex:this.regexp,safeValue:function(h){return u.escapeValue?c(u.escape(h)):c(h)}}];return v.forEach(function(h){for(s=0;i=h.regex.exec(t);){if((o=f(i[1].trim()))===void 0)if(typeof d=="function"){var g=d(t,i,a);o=typeof g=="string"?g:""}else{if(p){o=i[0];continue}u.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(t)),o=""}else typeof o=="string"||u.useRawValueToEscape||(o=p$(o));var m=h.safeValue(o);if(t=t.replace(i[0],m),p?(h.regex.lastIndex+=m.length,h.regex.lastIndex-=i[0].length):h.regex.lastIndex=0,++s>=u.maxReplaces)break}}),t}},{key:"nest",value:function(t,r){var n,a,i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=gn({},o);function u(d,p){var v=this.nestingOptionsSeparator;if(d.indexOf(v)<0)return d;var h=d.split(new RegExp("".concat(v,"[ ]*{"))),g="{".concat(h[1]);d=h[0],g=(g=this.interpolate(g,s)).replace(/'/g,'"');try{s=JSON.parse(g),p&&(s=gn({},p,s))}catch(m){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),m),"".concat(d).concat(v).concat(g)}return delete s.defaultValue,d}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(t);){var l=[],c=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map(function(d){return d.trim()});n[1]=f.shift(),l=f,c=!0}if((a=r(u.call(this,n[1].trim(),s),s))&&n[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=p$(a)),a||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),a=""),c&&(a=l.reduce(function(d,p){return i.format(d,p,o.lng,gn({},o,{interpolationkey:n[1].trim()}))},a.trim())),t=t.replace(n[0],a),this.regexp.lastIndex=0}return t}}]),e}(),KPe=function(e){function t(r,n,a){var i,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return gu(this,t),i=T1(this,Tp(t).call(this)),S4&&Ql.call(Yf(i)),i.backend=r,i.store=n,i.services=a,i.languageUtils=a.languageUtils,i.options=o,i.logger=Zs.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(a,o.backend,o),i}return E4(t,Ql),mu(t,[{key:"queueLoad",value:function(r,n,a,i){var o=this,s=[],u=[],l=[],c=[];return r.forEach(function(f){var d=!0;n.forEach(function(p){var v="".concat(f,"|").concat(p);!a.reload&&o.store.hasResourceBundle(f,p)?o.state[v]=2:o.state[v]<0||(o.state[v]===1?u.indexOf(v)<0&&u.push(v):(o.state[v]=1,d=!1,u.indexOf(v)<0&&u.push(v),s.indexOf(v)<0&&s.push(v),c.indexOf(p)<0&&c.push(p)))}),d||l.push(f)}),(s.length||u.length)&&this.queue.push({pending:u,loaded:{},errors:[],callback:i}),{toLoad:s,pending:u,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(r,n,a){var i=r.split("|"),o=i[0],s=i[1];n&&this.emit("failedLoading",o,s,n),a&&this.store.addResourceBundle(o,s,a),this.state[r]=n?-1:2;var u={};this.queue.forEach(function(l){(function(c,f,d,p){var v=GF(c,f,Object),h=v.obj,g=v.k;h[g]=h[g]||[],h[g].push(d)})(l.loaded,[o],s),function(c,f){for(var d=c.indexOf(f);d!==-1;)c.splice(d,1),d=c.indexOf(f)}(l.pending,r),n&&l.errors.push(n),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){u[c]||(u[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){u[c].indexOf(f)<0&&u[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(r,n,a){var i=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,u=arguments.length>5?arguments[5]:void 0;return r.length?this.backend[a](r,n,function(l,c){l&&c&&o<5?setTimeout(function(){i.read.call(i,r,n,a,o+1,2*s,u)},s):u(l,c)}):u(null,{})}},{key:"prepareLoading",value:function(r,n){var a=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof n=="string"&&(n=[n]);var s=this.queueLoad(r,n,i,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(function(u){a.loadOne(u)})}},{key:"load",value:function(r,n,a){this.prepareLoading(r,n,{},a)}},{key:"reload",value:function(r,n,a){this.prepareLoading(r,n,{reload:!0},a)}},{key:"loadOne",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=r.split("|"),o=i[0],s=i[1];this.read(o,s,"read",void 0,void 0,function(u,l){u&&n.logger.warn("".concat(a,"loading namespace ").concat(s," for language ").concat(o," failed"),u),!u&&l&&n.logger.log("".concat(a,"loaded namespace ").concat(s," for language ").concat(o),l),n.loaded(r,u,l)})}},{key:"saveMissing",value:function(r,n,a,i,o){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):a!=null&&a!==""&&(this.backend&&this.backend.create&&this.backend.create(r,n,a,i,null,gn({},s,{isUpdate:o})),r&&r[0]&&this.store.addResource(r[0],n,a,i))}}]),t}();function qPe(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(Tl(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),Tl(e[2])==="object"||Tl(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach(function(n){t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:function(e,t,r,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function y$(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function d2(){}var XPe=function(e){function t(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(gu(this,t),r=T1(this,Tp(t).call(this)),S4&&Ql.call(Yf(r)),r.options=y$(n),r.services={},r.logger=Zs,r.modules={external:[]},a&&!r.isInitialized&&!n.isClone){if(!r.options.initImmediate)return r.init(n,a),T1(r,Yf(r));setTimeout(function(){r.init(n,a)},0)}return r}return E4(t,Ql),mu(t,[{key:"init",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;function i(p){return p?typeof p=="function"?new p:p:null}if(typeof n=="function"&&(a=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=gn({},qPe(),this.options,y$(n)),this.format=this.options.interpolation.format,a||(a=d2),!this.options.isClone){this.modules.logger?Zs.init(i(this.modules.logger),this.options):Zs.init(null,this.options);var o=new UPe(this.options);this.store=new $Pe(this.options.resources,this.options);var s=this.services;s.logger=Zs,s.resourceStore=this.store,s.languageUtils=o,s.pluralResolver=new WPe(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new GPe(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new KPe(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(p){for(var v=arguments.length,h=new Array(v>1?v-1:0),g=1;g<v;g++)h[g-1]=arguments[g];r.emit.apply(r,[p].concat(h))}),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new m$(this.services,this.options),this.translator.on("*",function(p){for(var v=arguments.length,h=new Array(v>1?v-1:0),g=1;g<v;g++)h[g-1]=arguments[g];r.emit.apply(r,[p].concat(h))}),this.modules.external.forEach(function(p){p.init&&p.init(r)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(p){r[p]=function(){var v;return(v=r.store)[p].apply(v,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){r[p]=function(){var v;return(v=r.store)[p].apply(v,arguments),r}});var f=Zh(),d=function(){var p=function(v,h){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),f.resolve(h),a(v,h)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return p(null,r.t.bind(r));r.changeLanguage(r.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d2,i=a,o=typeof r=="string"?r:this.language;if(typeof r=="function"&&(i=r),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode")return i();var s=[],u=function(c){c&&n.services.languageUtils.toResolveHierarchy(c).forEach(function(f){s.indexOf(f)<0&&s.push(f)})};if(o)u(o);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return u(c)})}this.options.preload&&this.options.preload.forEach(function(c){return u(c)}),this.services.backendConnector.load(s,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(r,n,a){var i=Zh();return r||(r=this.languages),n||(n=this.options.ns),a||(a=d2),this.services.backendConnector.reload(r,n,function(o){i.resolve(),a(o)}),i}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&TQ.addPostProcessor(r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"changeLanguage",value:function(r,n){var a=this;this.isLanguageChangingTo=r;var i=Zh();this.emit("languageChanging",r);var o=function(s){r||s||!a.services.languageDetector||(s=[]);var u=typeof s=="string"?s:a.services.languageUtils.getBestMatchFromCodes(s);u&&(a.language||(a.language=u,a.languages=a.services.languageUtils.toResolveHierarchy(u)),a.translator.language||a.translator.changeLanguage(u),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage(u)),a.loadResources(u,function(l){(function(c,f){f?(a.language=f,a.languages=a.services.languageUtils.toResolveHierarchy(f),a.translator.changeLanguage(f),a.isLanguageChangingTo=void 0,a.emit("languageChanged",f),a.logger.log("languageChanged",f)):a.isLanguageChangingTo=void 0,i.resolve(function(){return a.t.apply(a,arguments)}),n&&n(c,function(){return a.t.apply(a,arguments)})})(l,u)})};return r||!this.services.languageDetector||this.services.languageDetector.async?!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(r):o(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(r,n,a){var i=this,o=function s(u,l){var c;if(Tl(l)!=="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),p=2;p<f;p++)d[p-2]=arguments[p];c=i.options.overloadTranslationOptionHandler([u,l].concat(d))}else c=gn({},l);c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns;var v=i.options.keySeparator||".",h=a?"".concat(a).concat(v).concat(u):u;return i.t(h,c)};return typeof r=="string"?o.lng=r:o.lngs=r,o.ns=n,o.keyPrefix=a,o}},{key:"t",value:function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)}},{key:"exists",value:function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)}},{key:"setDefaultNamespace",value:function(r){this.options.defaultNS=r}},{key:"hasLoadedNamespace",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],o=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var u=function(c,f){var d=n.services.backendConnector.state["".concat(c,"|").concat(f)];return d===-1||d===2};if(a.precheck){var l=a.precheck(this,u);if(l!==void 0)return l}return!!this.hasResourceBundle(i,r)||!this.services.backendConnector.backend||!(!u(i,r)||o&&!u(s,r))}},{key:"loadNamespaces",value:function(r,n){var a=this,i=Zh();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(o){a.options.ns.indexOf(o)<0&&a.options.ns.push(o)}),this.loadResources(function(o){i.resolve(),n&&n(o)}),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(r,n){var a=Zh();typeof r=="string"&&(r=[r]);var i=this.options.preload||[],o=r.filter(function(s){return i.indexOf(s)<0});return o.length?(this.options.preload=i.concat(o),this.loadResources(function(s){a.resolve(),n&&n(s)}),a):(n&&n(),Promise.resolve())}},{key:"dir",value:function(r){return r||(r=this.languages&&this.languages.length>0?this.languages[0]:this.language),r?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(r))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(r,n)}},{key:"cloneInstance",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d2,i=gn({},this.options,n,{isClone:!0}),o=new t(i),s=["store","services","language"];return s.forEach(function(u){o[u]=r[u]}),o.services=gn({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new m$(o.services,o.options),o.translator.on("*",function(u){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];o.emit.apply(o,[u].concat(c))}),o.init(i,a),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),yw=new XPe;function oi(e,t){yw.addResourceBundle(e,"translation",t,!0,!0)}yw.init({lng:"zh-CN",resources:{}});var Re=yw.t.bind(yw);oi("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),oi("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var YPe=IO?{}.toString:function(){return"[object "+r4(this)+"]"};IO||_l(Object.prototype,"toString",YPe,{unsafe:!0});var x$=Array.isArray||function(e){return hf(e)=="Array"},DQ=function(){},JPe=[],OQ=_m("Reflect","construct"),KF=/^\s*(?:class|function)\b/,ZPe=hr(KF.exec),QPe=!KF.exec(DQ),Qh=function(e){if(!wn(e))return!1;try{return OQ(DQ,JPe,e),!0}catch(t){return!1}},eNe=!OQ||Yn(function(){var e;return Qh(Qh.call)||!Qh(Object)||!Qh(function(){e=!0})||e})?function(e){if(!wn(e))return!1;switch(r4(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return QPe||!!ZPe(KF,OO(e))}:Qh,tNe=Ha("species"),b$=dt.Array,rNe=function(e,t){return new(function(r){var n;return x$(r)&&(n=r.constructor,(eNe(n)&&(n===b$||x$(n.prototype))||Ao(n)&&(n=n[tNe])===null)&&(n=void 0)),n===void 0?b$:n}(e))(t===0?0:t)},w$=hr([].push),Lu=function(e){var t=e==1,r=e==2,n=e==3,a=e==4,i=e==6,o=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,v=AO(u),h=KY(v),g=iJ(l,c),m=t4(h),y=0,x=f||rNe,b=t?x(u,m):r||o?x(u,0):void 0;m>y;y++)if((s||y in h)&&(p=g(d=h[y],y,v),e))if(t)b[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:w$(b,d)}else switch(e){case 4:return!1;case 7:w$(b,d)}return i?-1:n||a?a:b}},nNe={forEach:Lu(0),map:Lu(1),filter:Lu(2),some:Lu(3),every:Lu(4),find:Lu(5),findIndex:Lu(6),filterReject:Lu(7)}.forEach,aNe=function(e,t){var r=[][e];return!!r&&Yn(function(){r.call(null,t||function(){throw 1},1)})}("forEach"),RC=aNe?[].forEach:function(e){return nNe(this,e,arguments.length>1?arguments[1]:void 0)},FQ=function(e){if(e&&e.forEach!==RC)try{Ma(e,"forEach",RC)}catch(t){e.forEach=RC}};for(var LC in Lb)Lb[LC]&&FQ(dt[LC]&&dt[LC].prototype);FQ(uJ),oi("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),oi("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var iNe={type:"paragraph",renderElem:function(e,t,r){return ot("p",null,t)}},xw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function C4(e){var t={exports:{}};return e(t,t.exports),t.exports}var Mu,Tx,p2=function(e){return e&&e.Math==Math&&e},vt=p2(typeof globalThis=="object"&&globalThis)||p2(typeof window=="object"&&window)||p2(typeof self=="object"&&self)||p2(typeof xw=="object"&&xw)||function(){return this}()||Function("return this")(),jr=function(e){try{return!!e()}catch(t){return!0}},Vo=!jr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ev=Function.prototype.call,Yr=ev.bind?ev.bind(ev):function(){return ev.apply(ev,arguments)},E$={}.propertyIsEnumerable,S$=Object.getOwnPropertyDescriptor,oNe=S$&&!E$.call({1:2},1)?function(e){var t=S$(this,e);return!!t&&t.enumerable}:E$,BQ={f:oNe},qF=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},PQ=Function.prototype,Vk=PQ.bind,Wk=PQ.call,sNe=Vk&&Vk.bind(Wk),it=Vk?function(e){return e&&sNe(Wk,e)}:function(e){return e&&function(){return Wk.apply(e,arguments)}},uNe=it({}.toString),lNe=it("".slice),Dl=function(e){return lNe(uNe(e),8,-1)},MC=vt.Object,cNe=it("".split),_4=jr(function(){return!MC("z").propertyIsEnumerable(0)})?function(e){return Dl(e)=="String"?cNe(e,""):MC(e)}:MC,fNe=vt.TypeError,uo=function(e){if(e==null)throw fNe("Can't call method on "+e);return e},ih=function(e){return _4(uo(e))},ia=function(e){return typeof e=="function"},Gi=function(e){return typeof e=="object"?e!==null:ia(e)},dNe=function(e){return ia(e)?e:void 0},Lm=function(e,t){return arguments.length<2?dNe(vt[e]):vt[e]&&vt[e][t]},NQ=it({}.isPrototypeOf),jC=Lm("navigator","userAgent")||"",C$=vt.process,_$=vt.Deno,A$=C$&&C$.versions||_$&&_$.version,k$=A$&&A$.v8;k$&&(Tx=(Mu=k$.split("."))[0]>0&&Mu[0]<4?1:+(Mu[0]+Mu[1])),!Tx&&jC&&(!(Mu=jC.match(/Edge\/(\d+)/))||Mu[1]>=74)&&(Mu=jC.match(/Chrome\/(\d+)/))&&(Tx=+Mu[1]);var Gk=Tx,Kk=!!Object.getOwnPropertySymbols&&!jr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Gk&&Gk<41}),XF=Kk&&!Symbol.sham&&typeof Symbol.iterator=="symbol",pNe=vt.Object,$C=XF?function(e){return typeof e=="symbol"}:function(e){var t=Lm("Symbol");return ia(t)&&NQ(t.prototype,pNe(e))},hNe=vt.String,IQ=function(e){try{return hNe(e)}catch(t){return"Object"}},vNe=vt.TypeError,RQ=function(e){if(ia(e))return e;throw vNe(IQ(e)+" is not a function")},A4=function(e,t){var r=e[t];return r==null?void 0:RQ(r)},gNe=vt.TypeError,mNe=Object.defineProperty,YF=function(e,t){try{mNe(vt,e,{value:t,configurable:!0,writable:!0})}catch(r){vt[e]=t}return t},Ol=vt["__core-js_shared__"]||YF("__core-js_shared__",{}),JF=C4(function(e){(e.exports=function(t,r){return Ol[t]||(Ol[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),yNe=vt.Object,Mm=function(e){return yNe(uo(e))},xNe=it({}.hasOwnProperty),Ji=Object.hasOwn||function(e,t){return xNe(Mm(e),t)},bNe=0,wNe=Math.random(),ENe=it(1 .toString),LQ=function(e){return"Symbol("+(e===void 0?"":e)+")_"+ENe(++bNe+wNe,36)},tv=JF("wks"),Ef=vt.Symbol,T$=Ef&&Ef.for,SNe=XF?Ef:Ef&&Ef.withoutSetter||LQ,Pi=function(e){if(!Ji(tv,e)||!Kk&&typeof tv[e]!="string"){var t="Symbol."+e;Kk&&Ji(Ef,e)?tv[e]=Ef[e]:tv[e]=XF&&T$?T$(t):SNe(t)}return tv[e]},CNe=vt.TypeError,_Ne=Pi("toPrimitive"),ZF=function(e){var t=function(r,n){if(!Gi(r)||$C(r))return r;var a,i=A4(r,_Ne);if(i){if(n===void 0&&(n="default"),a=Yr(i,r,n),!Gi(a)||$C(a))return a;throw CNe("Can't convert object to primitive value")}return n===void 0&&(n="number"),function(o,s){var u,l;if(s==="string"&&ia(u=o.toString)&&!Gi(l=Yr(u,o))||ia(u=o.valueOf)&&!Gi(l=Yr(u,o))||s!=="string"&&ia(u=o.toString)&&!Gi(l=Yr(u,o)))return l;throw gNe("Can't convert object to primitive value")}(r,n)}(e,"string");return $C(t)?t:t+""},qk=vt.document,ANe=Gi(qk)&&Gi(qk.createElement),QF=function(e){return ANe?qk.createElement(e):{}},MQ=!Vo&&!jr(function(){return Object.defineProperty(QF("div"),"a",{get:function(){return 7}}).a!=7}),D$=Object.getOwnPropertyDescriptor,e9={f:Vo?D$:function(e,t){if(e=ih(e),t=ZF(t),MQ)try{return D$(e,t)}catch(r){}if(Ji(e,t))return qF(!Yr(BQ.f,e,t),e[t])}},kNe=vt.String,TNe=vt.TypeError,Si=function(e){if(Gi(e))return e;throw TNe(kNe(e)+" is not an object")},DNe=vt.TypeError,O$=Object.defineProperty,oh={f:Vo?O$:function(e,t,r){if(Si(e),t=ZF(t),Si(r),MQ)try{return O$(e,t,r)}catch(n){}if("get"in r||"set"in r)throw DNe("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Dp=Vo?function(e,t,r){return oh.f(e,t,qF(1,r))}:function(e,t,r){return e[t]=r,e},ONe=it(Function.toString);ia(Ol.inspectSource)||(Ol.inspectSource=function(e){return ONe(e)});var bw,Dg,ww,t9=Ol.inspectSource,F$=vt.WeakMap,FNe=ia(F$)&&/native code/.test(t9(F$)),B$=JF("keys"),jQ=function(e){return B$[e]||(B$[e]=LQ(e))},r9={},Xk=vt.TypeError,BNe=vt.WeakMap;if(FNe||Ol.state){var Tc=Ol.state||(Ol.state=new BNe),PNe=it(Tc.get),P$=it(Tc.has),NNe=it(Tc.set);bw=function(e,t){if(P$(Tc,e))throw new Xk("Object already initialized");return t.facade=e,NNe(Tc,e,t),t},Dg=function(e){return PNe(Tc,e)||{}},ww=function(e){return P$(Tc,e)}}else{var z0=jQ("state");r9[z0]=!0,bw=function(e,t){if(Ji(e,z0))throw new Xk("Object already initialized");return t.facade=e,Dp(e,z0,t),t},Dg=function(e){return Ji(e,z0)?e[z0]:{}},ww=function(e){return Ji(e,z0)}}var Yk={set:bw,get:Dg,has:ww,enforce:function(e){return ww(e)?Dg(e):bw(e,{})},getterFor:function(e){return function(t){var r;if(!Gi(t)||(r=Dg(t)).type!==e)throw Xk("Incompatible receiver, "+e+" required");return r}}},$Q=Function.prototype,INe=Vo&&Object.getOwnPropertyDescriptor,UC=Ji($Q,"name"),k4={EXISTS:UC,PROPER:UC&&function(){}.name==="something",CONFIGURABLE:UC&&(!Vo||Vo&&INe($Q,"name").configurable)},D1=C4(function(e){var t=k4.CONFIGURABLE,r=Yk.get,n=Yk.enforce,a=String(String).split("String");(e.exports=function(i,o,s,u){var l,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,p=u&&u.name!==void 0?u.name:o;ia(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ji(s,"name")||t&&s.name!==p)&&Dp(s,"name",p),(l=n(s)).source||(l.source=a.join(typeof p=="string"?p:""))),i!==vt?(c?!d&&i[o]&&(f=!0):delete i[o],f?i[o]=s:Dp(i,o,s)):f?i[o]=s:YF(o,s)})(Function.prototype,"toString",function(){return ia(this)&&r(this).source||t9(this)})}),RNe=Math.ceil,LNe=Math.floor,sh=function(e){var t=+e;return t!=t||t===0?0:(t>0?LNe:RNe)(t)},MNe=Math.max,jNe=Math.min,O1=function(e,t){var r=sh(e);return r<0?MNe(r+t,0):jNe(r,t)},$Ne=Math.min,jm=function(e){return e>0?$Ne(sh(e),9007199254740991):0},T4=function(e){return jm(e.length)},N$=function(e){return function(t,r,n){var a,i=ih(t),o=T4(i),s=O1(n,o);if(e&&r!=r){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},UQ={includes:N$(!0),indexOf:N$(!1)},UNe=UQ.indexOf,I$=it([].push),HQ=function(e,t){var r,n=ih(e),a=0,i=[];for(r in n)!Ji(r9,r)&&Ji(n,r)&&I$(i,r);for(;t.length>a;)Ji(n,r=t[a++])&&(~UNe(i,r)||I$(i,r));return i},Ew=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],HNe=Ew.concat("length","prototype"),zNe={f:Object.getOwnPropertyNames||function(e){return HQ(e,HNe)}},zQ={f:Object.getOwnPropertySymbols},VNe=it([].concat),WNe=Lm("Reflect","ownKeys")||function(e){var t=zNe.f(Si(e)),r=zQ.f;return r?VNe(t,r(e)):t},GNe=function(e,t){for(var r=WNe(t),n=oh.f,a=e9.f,i=0;i<r.length;i++){var o=r[i];Ji(e,o)||n(e,o,a(t,o))}},KNe=/#|\.prototype\./,$m=function(e,t){var r=XNe[qNe(e)];return r==JNe||r!=YNe&&(ia(t)?jr(t):!!t)},qNe=$m.normalize=function(e){return String(e).replace(KNe,".").toLowerCase()},XNe=$m.data={},YNe=$m.NATIVE="N",JNe=$m.POLYFILL="P",ZNe=$m,QNe=e9.f,Pn=function(e,t){var r,n,a,i,o,s=e.target,u=e.global,l=e.stat;if(r=u?vt:l?vt[s]||YF(s,{}):(vt[s]||{}).prototype)for(n in t){if(i=t[n],a=e.noTargetGet?(o=QNe(r,n))&&o.value:r[n],!ZNe(u?n:s+(l?".":"#")+n,e.forced)&&a!==void 0){if(typeof i==typeof a)continue;GNe(i,a)}(e.sham||a&&a.sham)&&Dp(i,"sham",!0),D1(r,n,i,e)}},R$=it(it.bind),Sw=Array.isArray||function(e){return Dl(e)=="Array"},VQ={};VQ[Pi("toStringTag")]="z";var n9=String(VQ)==="[object z]",eIe=Pi("toStringTag"),tIe=vt.Object,rIe=Dl(function(){return arguments}())=="Arguments",a9=n9?Dl:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(a,i){try{return a[i]}catch(o){}}(t=tIe(e),eIe))=="string"?r:rIe?Dl(t):(n=Dl(t))=="Object"&&ia(t.callee)?"Arguments":n},WQ=function(){},nIe=[],GQ=Lm("Reflect","construct"),i9=/^\s*(?:class|function)\b/,aIe=it(i9.exec),iIe=!i9.exec(WQ),rv=function(e){if(!ia(e))return!1;try{return GQ(WQ,nIe,e),!0}catch(t){return!1}},o9=!GQ||jr(function(){var e;return rv(rv.call)||!rv(Object)||!rv(function(){e=!0})||e})?function(e){if(!ia(e))return!1;switch(a9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return iIe||!!aIe(i9,t9(e))}:rv,oIe=Pi("species"),L$=vt.Array,sIe=function(e,t){return new(function(r){var n;return Sw(r)&&(n=r.constructor,(o9(n)&&(n===L$||Sw(n.prototype))||Gi(n)&&(n=n[oIe])===null)&&(n=void 0)),n===void 0?L$:n}(e))(t===0?0:t)},M$=it([].push),ju=function(e){var t=e==1,r=e==2,n=e==3,a=e==4,i=e==6,o=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,v=Mm(u),h=_4(v),g=function(E,S){return RQ(E),S===void 0?E:R$?R$(E,S):function(){return E.apply(S,arguments)}}(l,c),m=T4(h),y=0,x=f||sIe,b=t?x(u,m):r||o?x(u,0):void 0;m>y;y++)if((s||y in h)&&(p=g(d=h[y],y,v),e))if(t)b[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:M$(b,d)}else switch(e){case 4:return!1;case 7:M$(b,d)}return i?-1:n||a?a:b}},D4={forEach:ju(0),map:ju(1),filter:ju(2),some:ju(3),every:ju(4),find:ju(5),findIndex:ju(6),filterReject:ju(7)},uIe=Pi("species"),s9=function(e){return Gk>=51||!jr(function(){var t=[];return(t.constructor={})[uIe]=function(){return{foo:1}},t[e](Boolean).foo!==1})},lIe=D4.filter;Pn({target:"Array",proto:!0,forced:!s9("filter")},{filter:function(e){return lIe(this,e,arguments.length>1?arguments[1]:void 0)}});var cIe=n9?{}.toString:function(){return"[object "+a9(this)+"]"};n9||D1(Object.prototype,"toString",cIe,{unsafe:!0});var h2,fIe=vt.String,Lr=function(e){if(a9(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return fIe(e)},KQ=function(){var e=Si(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},u9=vt.RegExp,Jk=jr(function(){var e=u9("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),dIe=Jk||jr(function(){return!u9("a","y").sticky}),qQ={BROKEN_CARET:Jk||jr(function(){var e=u9("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:dIe,UNSUPPORTED_Y:Jk},Ld=Object.keys||function(e){return HQ(e,Ew)},pIe=Vo?Object.defineProperties:function(e,t){Si(e);for(var r,n=ih(t),a=Ld(t),i=a.length,o=0;i>o;)oh.f(e,r=a[o++],n[r]);return e},hIe=Lm("document","documentElement"),XQ=jQ("IE_PROTO"),HC=function(){},YQ=function(e){return"<script>"+e+"<\/script>"},j$=function(e){e.write(YQ("")),e.close();var t=e.parentWindow.Object;return e=null,t},Dx=function(){try{h2=new ActiveXObject("htmlfile")}catch(n){}var e,t;Dx=typeof document<"u"?document.domain&&h2?j$(h2):((t=QF("iframe")).style.display="none",hIe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(YQ("document.F=Object")),e.close(),e.F):j$(h2);for(var r=Ew.length;r--;)delete Dx.prototype[Ew[r]];return Dx()};r9[XQ]=!0;var $$,zC,JQ=Object.create||function(e,t){var r;return e!==null?(HC.prototype=Si(e),r=new HC,HC.prototype=null,r[XQ]=e):r=Dx(),t===void 0?r:pIe(r,t)},vIe=vt.RegExp,gIe=jr(function(){var e=vIe(".","s");return!(e.dotAll&&e.exec(`
|
||
`)&&e.flags==="s")}),mIe=vt.RegExp,yIe=jr(function(){var e=mIe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),xIe=Yk.get,bIe=JF("native-string-replace",String.prototype.replace),Cw=RegExp.prototype.exec,Zk=Cw,wIe=it("".charAt),EIe=it("".indexOf),SIe=it("".replace),VC=it("".slice),WC=(zC=/b*/g,Yr(Cw,$$=/a/,"a"),Yr(Cw,zC,"a"),$$.lastIndex!==0||zC.lastIndex!==0),U$=qQ.BROKEN_CARET,GC=/()??/.exec("")[1]!==void 0;(WC||GC||U$||gIe||yIe)&&(Zk=function(e){var t,r,n,a,i,o,s,u=this,l=xIe(u),c=Lr(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=Yr(Zk,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=U$&&u.sticky,v=Yr(KQ,u),h=u.source,g=0,m=c;if(p&&(v=SIe(v,"y",""),EIe(v,"g")===-1&&(v+="g"),m=VC(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&wIe(c,u.lastIndex-1)!==`
|
||
`)&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),GC&&(r=new RegExp("^"+h+"$(?!\\s)",v)),WC&&(n=u.lastIndex),a=Yr(Cw,p?r:u,m),p?a?(a.input=VC(a.input,g),a[0]=VC(a[0],g),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:WC&&a&&(u.lastIndex=u.global?a.index+a[0].length:n),GC&&a&&a.length>1&&Yr(bIe,a[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(a[i]=void 0)}),a&&d)for(a.groups=o=JQ(null),i=0;i<d.length;i++)o[(s=d[i])[0]]=a[s[1]];return a});var F1=Zk;Pn({target:"RegExp",proto:!0,forced:/./.exec!==F1},{exec:F1});var l9=Function.prototype,H$=l9.apply,CIe=l9.bind,z$=l9.call,ZQ=typeof Reflect=="object"&&Reflect.apply||(CIe?z$.bind(H$):function(){return z$.apply(H$,arguments)}),_Ie=Pi("species"),KC=RegExp.prototype,c9=function(e,t,r,n){var a=Pi(e),i=!jr(function(){var l={};return l[a]=function(){return 7},""[e](l)!=7}),o=i&&!jr(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[_Ie]=function(){return c},c.flags="",c[a]=/./[a]),c.exec=function(){return l=!0,null},c[a](""),!l});if(!i||!o||r){var s=it(/./[a]),u=t(a,""[e],function(l,c,f,d,p){var v=it(l),h=c.exec;return h===F1||h===KC.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});D1(String.prototype,e,u[0]),D1(KC,a,u[1])}n&&Dp(KC[a],"sham",!0)},AIe=it("".charAt),V$=it("".charCodeAt),kIe=it("".slice),TIe=function(e){return function(t,r){var n,a,i=Lr(uo(t)),o=sh(r),s=i.length;return o<0||o>=s?e?"":void 0:(n=V$(i,o))<55296||n>56319||o+1===s||(a=V$(i,o+1))<56320||a>57343?e?AIe(i,o):n:e?kIe(i,o,o+2):a-56320+(n-55296<<10)+65536}},DIe=TIe(!0),f9=function(e,t,r){return t+(r?DIe(e,t).length:1)},OIe=Math.floor,qC=it("".charAt),FIe=it("".replace),XC=it("".slice),BIe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,PIe=/\$([$&'`]|\d{1,2})/g,NIe=function(e,t,r,n,a,i){var o=r+e.length,s=n.length,u=PIe;return a!==void 0&&(a=Mm(a),u=BIe),FIe(i,u,function(l,c){var f;switch(qC(c,0)){case"$":return"$";case"&":return e;case"`":return XC(t,0,r);case"'":return XC(t,o);case"<":f=a[XC(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>s){var p=OIe(d/10);return p===0?l:p<=s?n[p-1]===void 0?qC(c,1):n[p-1]+qC(c,1):l}f=n[d-1]}return f===void 0?"":f})},IIe=vt.TypeError,B1=function(e,t){var r=e.exec;if(ia(r)){var n=Yr(r,e,t);return n!==null&&Si(n),n}if(Dl(e)==="RegExp")return Yr(F1,e,t);throw IIe("RegExp#exec called on incompatible receiver")},Qk=Pi("replace"),RIe=Math.max,LIe=Math.min,MIe=it([].concat),YC=it([].push),W$=it("".indexOf),G$=it("".slice),jIe="a".replace(/./,"$0")==="$0",K$=!!/./[Qk]&&/./[Qk]("a","$0")==="";c9("replace",function(e,t,r){var n=K$?"$":"$0";return[function(a,i){var o=uo(this),s=a==null?void 0:A4(a,Qk);return s?Yr(s,a,o,i):Yr(t,Lr(o),a,i)},function(a,i){var o=Si(this),s=Lr(a);if(typeof i=="string"&&W$(i,n)===-1&&W$(i,"$<")===-1){var u=r(t,o,s,i);if(u.done)return u.value}var l=ia(i);l||(i=Lr(i));var c=o.global;if(c){var f=o.unicode;o.lastIndex=0}for(var d=[];;){var p=B1(o,s);if(p===null||(YC(d,p),!c))break;Lr(p[0])===""&&(o.lastIndex=f9(s,jm(o.lastIndex),f))}for(var v,h="",g=0,m=0;m<d.length;m++){for(var y=Lr((p=d[m])[0]),x=RIe(LIe(sh(p.index),s.length),0),b=[],E=1;E<p.length;E++)YC(b,(v=p[E])===void 0?v:String(v));var S=p.groups;if(l){var w=MIe([y],b,x,s);S!==void 0&&YC(w,S);var C=Lr(ZQ(i,void 0,w))}else C=NIe(y,s,x,b,S,i);x>=g&&(h+=G$(s,g,x)+C,g=x+y.length)}return h+G$(s,g)}]},!!jr(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!jIe||K$);var eT=Pi("unscopables"),tT=Array.prototype;tT[eT]==null&&oh.f(tT,eT,{configurable:!0,value:JQ(null)});var QQ=function(e){tT[eT][e]=!0},$Ie=D4.find,q$=!0;"find"in[]&&Array(1).find(function(){q$=!1}),Pn({target:"Array",proto:!0,forced:q$},{find:function(e){return $Ie(this,e,arguments.length>1?arguments[1]:void 0)}}),QQ("find");var UIe=Pi("match"),eee=function(e){var t;return Gi(e)&&((t=e[UIe])!==void 0?!!t:Dl(e)=="RegExp")},HIe=vt.TypeError,zIe=Pi("species"),tee=function(e,t,r){var n=ZF(t);n in e?oh.f(e,n,qF(0,r)):e[n]=r},VIe=vt.Array,WIe=Math.max,X$=function(e,t,r){for(var n=T4(e),a=O1(t,n),i=O1(r===void 0?n:r,n),o=VIe(WIe(i-a,0)),s=0;a<i;a++,s++)tee(o,s,e[a]);return o.length=s,o},V0=qQ.UNSUPPORTED_Y,GIe=Math.min,ree=[].push,KIe=it(/./.exec),W0=it(ree),nv=it("".slice);c9("split",function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(a,i){var o=Lr(uo(this)),s=i===void 0?4294967295:i>>>0;if(s===0)return[];if(a===void 0)return[o];if(!eee(a))return Yr(t,o,a,s);for(var u,l,c,f=[],d=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),p=0,v=new RegExp(a.source,d+"g");(u=Yr(F1,v,o))&&!((l=v.lastIndex)>p&&(W0(f,nv(o,p,u.index)),u.length>1&&u.index<o.length&&ZQ(ree,f,X$(u,1)),c=u[0].length,p=l,f.length>=s));)v.lastIndex===u.index&&v.lastIndex++;return p===o.length?!c&&KIe(v,"")||W0(f,""):W0(f,nv(o,p)),f.length>s?X$(f,0,s):f}:"0".split(void 0,0).length?function(a,i){return a===void 0&&i===0?[]:Yr(t,this,a,i)}:t,[function(a,i){var o=uo(this),s=a==null?void 0:A4(a,e);return s?Yr(s,a,o,i):Yr(n,Lr(o),a,i)},function(a,i){var o=Si(this),s=Lr(a),u=r(n,o,s,i,n!==t);if(u.done)return u.value;var l=function(b,E){var S,w=Si(b).constructor;return w===void 0||(S=Si(w)[zIe])==null?E:function(C){if(o9(C))return C;throw HIe(IQ(C)+" is not a constructor")}(S)}(o,RegExp),c=o.unicode,f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(V0?"g":"y"),d=new l(V0?"^(?:"+o.source+")":o,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(s.length===0)return B1(d,s)===null?[s]:[];for(var v=0,h=0,g=[];h<s.length;){d.lastIndex=V0?0:h;var m,y=B1(d,V0?nv(s,h):s);if(y===null||(m=GIe(jm(d.lastIndex+(V0?h:0)),s.length))===v)h=f9(s,h,c);else{if(W0(g,nv(s,v,h)),g.length===p)return g;for(var x=1;x<=y.length-1;x++)if(W0(g,y[x]),g.length===p)return g;h=v=m}}return W0(g,nv(s,v)),g}]},!!jr(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),V0);var rT=`
|
||
\v\f\r \u2028\u2029\uFEFF`,Y$=it("".replace),_w="["+rT+"]",qIe=RegExp("^"+_w+_w+"*"),XIe=RegExp(_w+_w+"*$"),JC=function(e){return function(t){var r=Lr(uo(t));return 1&e&&(r=Y$(r,qIe,"")),2&e&&(r=Y$(r,XIe,"")),r}},YIe={start:JC(1),end:JC(2),trim:JC(3)},JIe=k4.PROPER,ZIe=YIe.trim;function d9(e){return te("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function uh(e){return e.length===0?"":e[0].outerHTML}function lh(e){return e.length?e[0].tagName.toLowerCase():""}function $o(e,t){for(var r="",n=(e.attr("style")||"").split(";"),a=n.length,i=0;i<a;i++){var o=n[i];if(o){var s=o.split(":");s[0].trim()===t&&(r=s[1].trim())}}return r}Pn({target:"String",proto:!0,forced:jr(function(){return!!rT.trim()||"
".trim()!=="
"||JIe&&rT.trim.name!=="trim"})},{trim:function(){return ZIe(this)}}),Pn({global:!0},{globalThis:vt}),Yb&&(te.fn.css=Yb),io&&(te.fn.append=io),LL&&(te.fn.prepend=LL),dp&&(te.fn.addClass=dp),pp&&(te.fn.removeClass=pp),hp&&(te.fn.hasClass=hp),_s&&(te.fn.on=_s),PL&&(te.fn.off=PL),Jl&&(te.fn.focus=Jl),ao&&(te.fn.attr=ao),Gb&&(te.fn.removeAttr=Gb),gp&&(te.fn.hide=gp),Xb&&(te.fn.show=Xb),Qb&&(te.fn.parents=Qb),vp&&(te.fn.dataset=vp),Cs&&(te.fn.val=Cs),Zb&&(te.fn.text=Zb),Yl&&(te.fn.html=Yl),xp&&(te.fn.children=xp),bp&&(te.fn.remove=bp),yp&&(te.fn.find=yp),Kb&&(te.fn.width=Kb),qb&&(te.fn.height=qb),IL&&(te.fn.filter=IL),wp&&(te.fn.empty=wp);var QIe={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=te(e);return(t=t.filter(function(a){return!!$e.isText(a)||!!r.isInline(a)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},nT=function(e,t){return nT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},nT(e,t);/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */};function Nr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}nT(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ec=function(){return ec=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},ec.apply(this,arguments)};function vc(e,t,r,n){return new(r||(r=Promise))(function(a,i){function o(l){try{u(n.next(l))}catch(c){i(c)}}function s(l){try{u(n.throw(l))}catch(c){i(c)}}function u(l){var c;l.done?a(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(o,s)}u((n=n.apply(e,t||[])).next())})}function gc(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&c[0]?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||c[0]!==6&&c[0]!==2)){o=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(c[0]===6&&o.label<a[1]){o.label=a[1],a=c;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(f){c=[6,f],n=0}finally{r=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([u,l])}}}function nee(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}function J$(e){var t=Xt(D.nodes(e,{match:function(i){return e.children[0]===i},mode:"highest"}),1)[0];if(t==null)return!1;var r=t[0];if(!qe.isElement(r)||r.type==="paragraph"||Ie.string(r)!=="")return!1;var n=r.children,a=n===void 0?[]:n;return!!$e.isText(a[0])&&(pe.setNodes(e,{type:"paragraph"}),!0)}var eRe={renderElems:[iNe],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[QIe],editorPlugin:function(e){var t=e.deleteBackward,r=e.deleteForward;e.insertText,e.insertBreak;var n=e;return n.deleteBackward=function(a){J$(n)||t(a)},n.deleteForward=function(a){J$(n)||r(a)},n}},tRe=/"/g,rRe=it("".replace),Zv=function(e,t,r,n){var a=Lr(uo(e)),i="<"+t;return r!==""&&(i+=" "+r+'="'+rRe(Lr(n),tRe,""")+'"'),i+">"+a+"</"+t+">"},Qv=function(e){return jr(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function ZC(e,t){var r=t,n=e,a=n.bold,i=n.italic,o=n.underline;return a&&(r="<strong>"+r+"</strong>"),n.code&&(r="<code>"+r+"</code>"),i&&(r="<em>"+r+"</em>"),o&&(r="<u>"+r+"</u>"),n.through&&(r="<s>"+r+"</s>"),n.sub&&(r="<sub>"+r+"</sub>"),n.sup&&(r="<sup>"+r+"</sup>"),r}function Dc(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}Pn({target:"String",proto:!0,forced:Qv("bold")},{bold:function(){return Zv(this,"b","","")}}),Pn({target:"String",proto:!0,forced:Qv("italics")},{italics:function(){return Zv(this,"i","","")}}),Pn({target:"String",proto:!0,forced:Qv("sub")},{sub:function(){return Zv(this,"sub","","")}}),Pn({target:"String",proto:!0,forced:Qv("sup")},{sup:function(){return Zv(this,"sup","","")}});var Z$={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},QC=QF("span").classList,Q$=QC&&QC.constructor&&QC.constructor.prototype,nRe=Q$===Object.prototype?void 0:Q$,aee=function(e,t){var r=[][e];return!!r&&jr(function(){r.call(null,t||function(){throw 1},1)})},aRe=D4.forEach,e_=aee("forEach")?[].forEach:function(e){return aRe(this,e,arguments.length>1?arguments[1]:void 0)},iee=function(e){if(e&&e.forEach!==e_)try{Dp(e,"forEach",e_)}catch(t){e.forEach=e_}};for(var t_ in Z$)Z$[t_]&&iee(vt[t_]&&vt[t_].prototype);function oee(e,t){return e.selection==null||!!Xt(D.nodes(e,{match:function(r){return X.getNodeType(r)==="pre"||!!D.isVoid(e,r)},universal:!0}),1)[0]}function iRe(e,t){Object.keys(t).forEach(function(r){r!=="text"&&D.removeMark(e,r)})}iee(nRe),Pn({target:"Object",stat:!0,forced:jr(function(){Ld(1)})},{keys:function(e){return Ld(Mm(e))}});var w0=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var r=this.mark,n=D.marks(t);return n?n[r]:!!Xt(D.nodes(t,{match:function(a){return a[r]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return oee(t,this.mark)},e.prototype.exec=function(t,r){var n=this.mark,a=this.marksNeedToRemove;r?t.removeMark(n):(t.addMark(n,!0),a&&a.forEach(function(i){return t.removeMark(i)}))},e}(),oRe='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',sRe='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',uRe='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',lRe='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',cRe='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',see='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',uee='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',fRe='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',dRe='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',pRe='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',hRe='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',vRe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',gRe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',mRe='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',yRe='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',xRe='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',bRe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',wRe='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',ERe='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',SRe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="bold",r.title=Re("textStyle.bold"),r.iconSvg=oRe,r.hotkey="mod+b",r}return Nr(t,e),t}(w0),CRe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="code",r.title=Re("textStyle.code"),r.iconSvg=cRe,r.hotkey="mod+e",r}return Nr(t,e),t}(w0),_Re=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="italic",r.title=Re("textStyle.italic"),r.iconSvg=uRe,r.hotkey="mod+i",r}return Nr(t,e),t}(w0),ARe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="through",r.title=Re("textStyle.through"),r.iconSvg=lRe,r.hotkey="mod+shift+x",r}return Nr(t,e),t}(w0),kRe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="underline",r.title=Re("textStyle.underline"),r.iconSvg=sRe,r.hotkey="mod+u",r}return Nr(t,e),t}(w0),TRe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="sub",r.marksNeedToRemove=["sup"],r.title=Re("textStyle.sub"),r.iconSvg=ERe,r.hotkey="",r}return Nr(t,e),t}(w0),DRe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="sup",r.marksNeedToRemove=["sub"],r.title=Re("textStyle.sup"),r.iconSvg=wRe,r.hotkey="",r}return Nr(t,e),t}(w0),ORe=function(){function e(){this.title=Re("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return oee(t)},e.prototype.exec=function(t,r){var n,a,i=D.nodes(t,{match:function(u){return $e.isText(u)},universal:!0});try{for(var o=nee(i),s=o.next();!s.done;s=o.next())iRe(t,s.value[0])}catch(u){n={error:u}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}},e}(),FRe={renderStyle:function(e,t){var r=e,n=r.bold,a=r.italic,i=r.underline,o=r.code,s=r.through,u=r.sub,l=r.sup,c=t;return n&&(c=ot("strong",null,c)),o&&(c=ot("code",null,c)),a&&(c=ot("em",null,c)),i&&(c=ot("u",null,c)),s&&(c=ot("s",null,c)),u&&(c=ot("sub",null,c)),l&&(c=ot("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new SRe}},{key:"underline",factory:function(){return new kRe}},{key:"italic",factory:function(){return new _Re}},{key:"through",factory:function(){return new ARe}},{key:"code",factory:function(){return new CRe}},{key:"sub",factory:function(){return new TRe}},{key:"sup",factory:function(){return new DRe}},{key:"clearStyle",factory:function(){return new ORe}}],styleToHtml:function(e,t){if(!$e.isText(e))return t;if(d9(t))return ZC(e,t);var r=te(t);if(lh(r)==="br")return ZC(e,"<br>");var n=r.html();return n=ZC(e,n),r.html(n),uh(r)},parseStyleHtml:function(e,t,r){var n=te(e);if(!$e.isText(t))return t;var a=t;return Dc(n,"b,strong")&&(a.bold=!0),Dc(n,"i,em")&&(a.italic=!0),Dc(n,"u")&&(a.underline=!0),Dc(n,"s,strike")&&(a.through=!0),Dc(n,"sub")&&(a.sub=!0),Dc(n,"sup")&&(a.sup=!0),Dc(n,"code")&&(a.code=!0),a}};function Um(e){return function(t,r,n){return ot("h"+e,null,r)}}var BRe={type:"header1",renderElem:Um(1)},PRe={type:"header2",renderElem:Um(2)},NRe={type:"header3",renderElem:Um(3)},IRe={type:"header4",renderElem:Um(4)},RRe={type:"header5",renderElem:Um(5)},LRe=k4.PROPER,aT=RegExp.prototype,lee=aT.toString,MRe=it(KQ),jRe=jr(function(){return lee.call({source:"a",flags:"b"})!="/a/b"}),$Re=LRe&&lee.name!="toString";(jRe||$Re)&&D1(RegExp.prototype,"toString",function(){var e=Si(this),t=Lr(e.source),r=e.flags;return"/"+t+"/"+Lr(r===void 0&&NQ(aT,e)&&!("flags"in aT)?MRe(e):r)},{unsafe:!0});var r_,URe=vt.TypeError,cee=function(e){if(eee(e))throw URe("The method doesn't accept regular expressions");return e},HRe=Pi("match"),fee=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[HRe]=!1,"/./"[e](t)}catch(n){}}return!1},zRe=e9.f,eU=it("".startsWith),VRe=it("".slice),WRe=Math.min,tU=fee("startsWith");function dee(e){var t=Xt(D.nodes(e,{match:function(a){return X.getNodeType(a).startsWith("header")},universal:!0}),1),r=t[0];if(r==null)return"paragraph";var n=Xt(r,1)[0];return X.getNodeType(n)}function pee(e){return e.selection==null||!Xt(D.nodes(e,{match:function(t){var r=X.getNodeType(t);return r==="paragraph"||!!r.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function hee(e,t){t&&pe.setNodes(e,{type:t})}Pn({target:"String",proto:!0,forced:!(!tU&&(r_=zRe(String.prototype,"startsWith"),r_&&!r_.writable)||tU)},{startsWith:function(e){var t=Lr(uo(this));cee(e);var r=jm(WRe(arguments.length>1?arguments[1]:void 0,t.length)),n=Lr(e);return eU?eU(t,n,r):VRe(t,r,r+n.length)===n}});var GRe=function(){function e(){this.title=Re("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(t){var r=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:Re("header.text")}],n=this.getValue(t).toString();return r.forEach(function(a){a.value===n?a.selected=!0:delete a.selected}),r},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return dee(t)},e.prototype.isDisabled=function(t){return pee(t)},e.prototype.exec=function(t,r){hee(t,r.toString())},e}(),Hm=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return dee(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return pee(t)},e.prototype.exec=function(t,r){var n=this.type;hee(t,r===n?"paragraph":n)},e}(),KRe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H1",r.type="header1",r}return Nr(t,e),t}(Hm),qRe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H2",r.type="header2",r}return Nr(t,e),t}(Hm),XRe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H3",r.type="header3",r}return Nr(t,e),t}(Hm),YRe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H4",r.type="header4",r}return Nr(t,e),t}(Hm),JRe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H5",r.type="header5",r}return Nr(t,e),t}(Hm),ZRe={key:"headerSelect",factory:function(){return new GRe}},QRe={key:"header1",factory:function(){return new KRe}},eLe={key:"header2",factory:function(){return new qRe}},tLe={key:"header3",factory:function(){return new XRe}},rLe={key:"header4",factory:function(){return new YRe}},nLe={key:"header5",factory:function(){return new JRe}};function av(e){return function(t,r){return"<h"+e+">"+r+"</h"+e+">"}}function iv(e){return function(t,r,n){var a=te(t);return(r=r.filter(function(i){return!!$e.isText(i)||!!n.isInline(i)})).length===0&&(r=[{text:a.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:r}}}var aLe={renderElems:[BRe,PRe,NRe,IRe,RRe],elemsToHtml:[{type:"header1",elemToHtml:av(1)},{type:"header2",elemToHtml:av(2)},{type:"header3",elemToHtml:av(3)},{type:"header4",elemToHtml:av(4)},{type:"header5",elemToHtml:av(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:iv(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:iv(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:iv(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:iv(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:iv(5)}],menus:[ZRe,QRe,eLe,tLe,rLe,nLe],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var r=e;return r.insertBreak=function(){var n=Xt(D.nodes(r,{match:function(a){return X.getNodeType(a).startsWith("header")},universal:!0}),1)[0];n&&X.isSelectionAtLineEnd(e,n[1])?pe.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},r}},G0=Object.assign,rU=Object.defineProperty,iLe=it([].concat),nU=!G0||jr(function(){if(Vo&&G0({b:1},G0(rU({},"a",{enumerable:!0,get:function(){rU(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(a){t[a]=a}),G0({},e)[r]!=7||Ld(G0({},t)).join("")!=n})?function(e,t){for(var r=Mm(e),n=arguments.length,a=1,i=zQ.f,o=BQ.f;n>a;)for(var s,u=_4(arguments[a++]),l=i?iLe(Ld(u),i(u)):Ld(u),c=l.length,f=0;c>f;)s=l[f++],Vo&&!Yr(o,u,s)||(r[s]=u[s]);return r}:G0;function Jf(e,t){e.data==null&&(e.data={});var r=e.data;r.style==null&&(r.style={}),Object.assign(r.style,t)}Pn({target:"Object",stat:!0,forced:Object.assign!==nU},{assign:nU});var oLe={selector:"font",preParseHtml:function(e){var t=te(e);if(lh(t)!=="font")return e;var r=t.attr("color")||"";return r&&(t.removeAttr("color"),t.css("color",r)),t[0]}},vee=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,r){},e.prototype.getValue=function(t){var r=this.mark,n=D.marks(t);return n&&n[r]?n[r]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!Xt(D.nodes(t,{match:function(r){return X.getNodeType(r)==="pre"||!!D.isVoid(t,r)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var r=this.mark;if(this.$content==null){var n=te('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),t.selection!=null)){var f=te(c).attr("data-value");f==="0"?D.removeMark(t,r):D.addMark(t,r,f)}}),this.$content=n}var a=this.$content;if(a==null)return document.createElement("ul");a.empty();var i=this.getValue(t),o=t.getMenuConfig(r).colors;(o===void 0?[]:o).forEach(function(l){var c=te('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=te('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),a.append(f)});var s="";r==="color"&&(s=Re("color.default")),r==="bgColor"&&(s=Re("color.clear"));var u=te(`
|
||
<li data-value="0" class="clear">
|
||
<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
|
||
`+s+`
|
||
</li>
|
||
`);return a.prepend(u),a[0]},e}(),sLe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Re("color.color"),r.iconSvg=fRe,r.mark="color",r}return Nr(t,e),t}(vee),uLe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Re("color.bgColor"),r.iconSvg=dRe,r.mark="bgColor",r}return Nr(t,e),t}(vee),aU=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],lLe={renderStyle:function(e,t){var r=e,n=r.color,a=r.bgColor,i=t;return n&&Jf(i,{color:n}),a&&Jf(i,{backgroundColor:a}),i},styleToHtml:function(e,t){if(!$e.isText(e))return t;var r,n=e,a=n.color,i=n.bgColor;return a||i?((d9(t)||lh(r=te(t))!=="span")&&(r=te("<span>"+t+"</span>")),a&&r.css("color",a),i&&r.css("background-color",i),uh(r)):t},preParseHtml:[oLe],parseStyleHtml:function(e,t,r){var n=te(e);if(!$e.isText(t))return t;var a=t,i=$o(n,"color");i&&(a.color=i);var o=$o(n,"background-color");return o||(o=$o(n,"background")),o&&(a.bgColor=o),a},menus:[{key:"color",factory:function(){return new sLe},config:{colors:aU}},{key:"bgColor",factory:function(){return new uLe},config:{colors:aU}}]},cLe=/^(?:\w+:)?\/\/(\S+)$/,fLe=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,dLe=/^[^\s\.]+\.\S{2,}$/,pLe=UQ.includes;function O4(e){return e===void 0&&(e="r"),e+"-"+LJ()}function p9(e){return e.replace(/</g,"<").replace(/>/g,">")}function gee(e,t,r,n){return vc(this,void 0,void 0,function(){var a,i;return gc(this,function(o){switch(o.label){case 0:return(a=t.getMenuConfig(e).checkLink)?[4,a(r,n)]:[3,2];case 1:if(typeof(i=o.sent())=="string")return t.alert(i,"error"),[2,!1];if(i==null)return[2,!1];o.label=2;case 2:return[2,!0]}})})}function mee(e,t,r){return vc(this,void 0,void 0,function(){var n;return gc(this,function(a){switch(a.label){case 0:return(n=t.getMenuConfig(e).parseLinkUrl)?[4,n(r)]:[3,2];case 1:return[2,a.sent()];case 2:return[2,r]}})})}function h9(e){return e.selection==null||!!X.getSelectedElems(e).some(function(t){var r=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(r)||void 0})}function n_(e,t){return{type:"link",url:p9(e),children:t?[{text:t}]:[]}}function yee(e,t,r){return vc(this,void 0,void 0,function(){var n,a,i;return gc(this,function(o){switch(o.label){case 0:return r?(t||(t=r),e.restoreSelection(),h9(e)?[2]:[4,gee("insertLink",e,t,r)]):[2];case 1:return o.sent()?[4,mee("insertLink",e,r)]:[2];case 2:return n=o.sent(),(a=e.selection)==null||(be.isCollapsed(a)?(e.insertText(" "),i=n_(n,t),pe.insertNodes(e,i),e.insertFragment([{text:" "}])):D.string(e,a)!==t?(e.deleteFragment(),i=n_(n,t),pe.insertNodes(e,i)):(i=n_(n),pe.wrapNodes(e,i,{split:!0}),pe.collapse(e,{edge:"end"}))),[2]}})})}Pn({target:"Array",proto:!0},{includes:function(e){return pLe(this,e,arguments.length>1?arguments[1]:void 0)}}),QQ("includes");var hLe={type:"link",renderElem:function(e,t,r){var n=e,a=n.url,i=n.target;return ot("a",{href:a,target:i===void 0?"_blank":i},t)}},vLe={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=te(e);return(t=t.filter(function(a){return!!$e.isText(a)||!!r.isInline(a)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]),{type:"link",url:n.attr("href")||"",target:n.attr("target")||"",children:t}}};function a_(){return O4("w-e-insert-link")}var gLe=function(){function e(){this.title=Re("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=a_(),this.urlInputId=a_(),this.buttonId=a_()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return h9(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var r=t.selection,n=this,a=n.textInputId,i=n.urlInputId,o=n.buttonId,s=Xt(Ei(Re("link.text"),a),2),u=s[0],l=te(s[1]),c=Xt(Ei(Re("link.url"),i),2),f=c[0],d=te(c[1]),p=Xt(ah(o,Re("common.ok")),1)[0];if(this.$content==null){var v=te("<div></div>");v.on("click","#"+o,function(m){m.preventDefault();var y=v.find("#"+a).val(),x=v.find("#"+i).val();yee(t,y,x),t.hidePanelOrModal()}),this.$content=v}var h=this.$content;if(h.empty(),h.append(u),h.append(f),h.append(p),r==null||be.isCollapsed(r))l.val("");else{var g=D.string(t,r);l.val(g)}return d.val(""),setTimeout(function(){l.focus()}),h[0]},e}();function iU(){return O4("w-e-update-link")}var mLe=function(){function e(){this.title=Re("link.edit"),this.iconSvg=see,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=iU(),this.buttonId=iU()}return e.prototype.getSelectedLinkElem=function(t){var r=X.getSelectedNodeByType(t,"link");return r==null?null:r},e.prototype.getValue=function(t){var r=this.getSelectedLinkElem(t);return r&&r.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return X.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var r=this.urlInputId,n=this.buttonId,a=Xt(Ei(Re("link.url"),r),2),i=a[0],o=te(a[1]),s=Xt(ah(n,Re("common.ok")),1)[0];if(this.$content==null){var u=te("<div></div>");u.on("click","button",function(f){f.preventDefault(),t.restoreSelection();var d=X.getSelectedNodeByType(t,"link"),p=d?Ie.string(d):"",v=u.find("#"+r).val();(function(h,g,m){vc(this,void 0,void 0,function(){var y,x;return gc(this,function(b){switch(b.label){case 0:return m?[4,gee("editLink",h,g,m)]:[2];case 1:return b.sent()?[4,mee("editLink",h,m)]:[2];case 2:return y=b.sent(),x={url:p9(y)},pe.setNodes(h,x,{match:function(E){return X.checkNodeType(E,"link")}}),[2]}})})})(t,p,v),t.hidePanelOrModal()}),this.$content=u}var l=this.$content;l.empty(),l.append(i),l.append(s);var c=this.getValue(t);return o.val(c),setTimeout(function(){o.focus()}),l[0]},e}(),yLe=function(){function e(){this.title=Re("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||X.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,r){this.isDisabled(t)||pe.unwrapNodes(t,{match:function(n){return X.checkNodeType(n,"link")}})},e}(),xLe=function(){function e(){this.title=Re("link.view"),this.iconSvg=uee,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var r=X.getSelectedNodeByType(t,"link");return r==null?null:r},e.prototype.getValue=function(t){var r=this.getSelectedLinkElem(t);return r&&r.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){if(!r||typeof r!="string")throw new Error("View link failed, link url is '"+r+"'");window.open(r,"_blank")}},e}(),oU={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},bLe={renderElems:[hLe],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var r=e,n=r.url,a=r.target;return'<a href="'+n+'" target="'+(a===void 0?"_blank":a)+'">'+t+"</a>"}}],parseElemsHtml:[vLe],menus:[{key:"insertLink",factory:function(){return new gLe},config:oU},{key:"editLink",factory:function(){return new mLe},config:oU},{key:"unLink",factory:function(){return new yLe}},{key:"viewLink",factory:function(){return new xLe}}],editorPlugin:function(e){var t=e.isInline,r=e.insertData,n=e.normalizeNode;e.insertNode,e.insertText;var a=e;return a.isInline=function(i){return i.type==="link"||t(i)},a.insertData=function(i){var o=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(cLe);if(!c)return!1;var f=c[1];return!(!f||!fLe.test(f)&&!dLe.test(f))}(o)){if(!h9(a)){var s=a.selection;if(s!=null){var u=D.string(a,s);yee(a,u,o)}}}else r(i)},a.normalizeNode=function(i){var o=Xt(i,2),s=o[0],u=o[1];return X.getNodeType(s)!=="link"?n([s,u]):Ie.string(s)===""?pe.removeNodes(a,{at:u}):n([s,u])},a}},wLe=it(1 .valueOf),ELe=vt.RangeError,SLe=vt.RangeError,xee=vt.String,bee=Math.floor,iT=it(function(e){var t=Lr(uo(this)),r="",n=sh(e);if(n<0||n==1/0)throw ELe("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r}),sU=it("".slice),ov=it(1 .toFixed),Cd=function(e,t,r){return t===0?r:t%2==1?Cd(e,t-1,r*e):Cd(e*e,t/2,r)},K0=function(e,t,r){for(var n=-1,a=r;++n<6;)a+=t*e[n],e[n]=a%1e7,a=bee(a/1e7)},i_=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=bee(n/t),n=n%t*1e7},uU=function(e){for(var t=6,r="";--t>=0;)if(r!==""||t===0||e[t]!==0){var n=xee(e[t]);r=r===""?n:r+iT("0",7-n.length)+n}return r};function lU(e,t){return"w-e-image-container-"+X.findKey(e,t).id}Pn({target:"Number",proto:!0,forced:jr(function(){return ov(8e-5,3)!=="0.000"||ov(.9,0)!=="1"||ov(1.255,2)!=="1.25"||ov(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!jr(function(){ov({})})},{toFixed:function(e){var t,r,n,a,i=wLe(this),o=sh(e),s=[0,0,0,0,0,0],u="",l="0";if(o<0||o>20)throw SLe("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return xee(i);if(i<0&&(u="-",i=-i),i>1e-21)if(r=(t=function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f}(i*Cd(2,69,1))-69)<0?i*Cd(2,-t,1):i/Cd(2,t,1),r*=4503599627370496,(t=52-t)>0){for(K0(s,0,r),n=o;n>=7;)K0(s,1e7,0),n-=7;for(K0(s,Cd(10,n,1),0),n=t-1;n>=23;)i_(s,1<<23),n-=23;i_(s,1<<n),K0(s,1,1),i_(s,2),l=uU(s)}else K0(s,0,r),K0(s,1<<-t,0),l=uU(s)+iT("0",o);return o>0?u+((a=l.length)<=o?"0."+iT("0",o-a)+l:sU(l,0,a-o)+"."+sU(l,a-o)):u+l}});var CLe={type:"image",renderElem:function(e,t,r){var n=e,a=n.src,i=n.alt,o=i===void 0?"":i,s=n.href,u=s===void 0?"":s,l=n.style,c=l===void 0?{}:l,f=c.width,d=f===void 0?"":f,p=c.height,v=p===void 0?"":p,h=X.isNodeSelected(r,e),g={};d&&(g.width="100%"),v&&(g.height="100%");var m=ot("img",{style:g,src:a,alt:o,"data-href":u}),y=r.isDisabled();return h&&!y?function(x,b,E,S){var w=te("body"),C=lU(x,b),_=S.width,O=S.height,P=0,F=0,q=0,ee=!1,J=null;function Z(de){J=function(){var N=te("#"+C);if(N.length===0)throw new Error("Cannot find image container elem");return N}(),P=de;var M=J.find("img");if(M.length===0)throw new Error("Cannot find image elem");F=M.width(),q=M.height(),w.on("mousemove",V),w.on("mouseup",ie);var A=X.getHoverbar(x);A&&A.hideAndClean()}var V=Wf(function(de){de.preventDefault();var M=de.clientX,A=F+(ee?P-M:M-P),N=q*(A/F);J!=null&&(A<=15||N<=15||(J.css("width",A+"px"),J.css("height",N+"px")))},100);function ie(de){if(w.off("mousemove",V),J!=null){var M=J.width().toFixed(2),A=J.height().toFixed(2),N={style:ec(ec({},b.style),{width:M+"px",height:A+"px"})};pe.setNodes(x,N,{at:X.findPath(x,b)}),w.off("mouseup",ie)}}var W={};return _&&(W.width=_),O&&(W.height=O),ot("div",{id:C,style:W,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(de){var M=te(de.target);M.hasClass("w-e-image-dragger")&&(de.preventDefault(),(M.hasClass("left-top")||M.hasClass("left-bottom"))&&(ee=!0),Z(de.clientX))}}},E,ot("div",{className:"w-e-image-dragger left-top"}),ot("div",{className:"w-e-image-dragger right-top"}),ot("div",{className:"w-e-image-dragger left-bottom"}),ot("div",{className:"w-e-image-dragger right-bottom"}))}(r,e,m,{width:d,height:v}):function(x,b,E,S){var w=S.width,C=S.height,_={};return w&&(_.width=w),C&&(_.height=C),ot("div",{id:lU(x,b),style:_,className:"w-e-image-container"},E)}(r,e,m,{width:d,height:v})}},_Le={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=te(e),a=n.attr("data-href")||"";return a=decodeURIComponent(a),{type:"image",src:n.attr("src")||"",alt:n.attr("alt")||"",href:a,style:{width:$o(n,"width"),height:$o(n,"height")},children:[{text:""}]}}};function wee(e,t,r,n,a){return n===void 0&&(n=""),a===void 0&&(a=""),vc(this,void 0,void 0,function(){var i,o;return gc(this,function(s){switch(s.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(r,n,a)]:[3,2];case 1:if(typeof(o=s.sent())=="string")return t.alert(o,"error"),[2,!1];if(o==null)return[2,!1];s.label=2;case 2:return[2,!0]}})})}function Eee(e,t,r){return vc(this,void 0,void 0,function(){var n;return gc(this,function(a){switch(a.label){case 0:return(n=t.getMenuConfig(e).parseImageSrc)?[4,n(r)]:[3,2];case 1:return[2,a.sent()];case 2:return[2,r]}})})}function Sf(e,t,r,n){return r===void 0&&(r=""),n===void 0&&(n=""),vc(this,void 0,void 0,function(){var a,i,o;return gc(this,function(s){switch(s.label){case 0:return[4,wee("insertImage",e,t,r,n)];case 1:return s.sent()?[4,Eee("insertImage",e,t)]:[2];case 2:return a=s.sent(),i={type:"image",src:p9(a),href:n,alt:r,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),X.getSelectedNodeByType(e,"image")&&e.move(1),F4(e)||(pe.insertNodes(e,i),(o=e.getMenuConfig("insertImage").onInsertedImage)&&o(i)),[2]}})})}function F4(e){var t=e.selection;return t==null||!be.isCollapsed(t)||!!Xt(D.nodes(e,{match:function(r){var n=X.getNodeType(r);return n==="code"||n==="pre"||n==="link"||n==="list-item"||!!n.startsWith("header")||n==="blockquote"||!!D.isVoid(e,r)},universal:!0}),1)[0]}function v2(){return O4("w-e-insert-image")}var ALe=function(){function e(){this.title=Re("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=v2(),this.altInputId=v2(),this.hrefInputId=v2(),this.buttonId=v2()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return F4(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var r=this,n=this,a=n.srcInputId,i=n.altInputId,o=n.hrefInputId,s=n.buttonId,u=Xt(Ei(Re("image.src"),a),2),l=u[0],c=te(u[1]),f=Xt(Ei(Re("image.desc"),i),2),d=f[0],p=te(f[1]),v=Xt(Ei(Re("image.link"),o),2),h=v[0],g=te(v[1]),m=Xt(ah(s,Re("common.ok")),1)[0];if(this.$content==null){var y=te("<div></div>");y.on("click","#"+s,function(b){b.preventDefault();var E=y.find("#"+a).val().trim(),S=y.find("#"+i).val().trim(),w=y.find("#"+o).val().trim();r.insertImage(t,E,S,w),t.hidePanelOrModal()}),this.$content=y}var x=this.$content;return x.empty(),x.append(l),x.append(d),x.append(h),x.append(m),c.val(""),p.val(""),g.val(""),setTimeout(function(){c.focus()}),x[0]},e.prototype.insertImage=function(t,r,n,a){n===void 0&&(n=""),a===void 0&&(a=""),r&&(t.restoreSelection(),this.isDisabled(t)||Sf(t,r,n,a))},e}(),kLe=function(){function e(){this.title=Re("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||X.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,r){this.isDisabled(t)||pe.removeNodes(t,{match:function(n){return X.checkNodeType(n,"image")}})},e}();function g2(){return O4("w-e-edit-image")}var TLe=function(){function e(){this.title=Re("image.edit"),this.iconSvg=see,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=g2(),this.altInputId=g2(),this.hrefInputId=g2(),this.buttonId=g2()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return X.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!be.isCollapsed(r)||X.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var r=this,n=this,a=n.srcInputId,i=n.altInputId,o=n.hrefInputId,s=n.buttonId,u=this.getImageNode(t);if(u==null)throw new Error("Not found selected image node");var l=Xt(Ei(Re("image.src"),a),2),c=l[0],f=te(l[1]),d=Xt(Ei(Re("image.desc"),i),2),p=d[0],v=te(d[1]),h=Xt(Ei(Re("image.link"),o),2),g=h[0],m=te(h[1]),y=Xt(ah(s,Re("common.ok")),1)[0];if(this.$content==null){var x=te("<div></div>");x.on("click","#"+s,function(P){P.preventDefault();var F=x.find("#"+a).val(),q=x.find("#"+i).val(),ee=x.find("#"+o).val();r.updateImage(t,F,q,ee),t.hidePanelOrModal()}),this.$content=x}var b=this.$content;b.empty(),b.append(c),b.append(p),b.append(g),b.append(y);var E=u,S=E.src,w=E.alt,C=w===void 0?"":w,_=E.href,O=_===void 0?"":_;return f.val(S),v.val(C),m.val(O),setTimeout(function(){f.focus()}),b[0]},e.prototype.updateImage=function(t,r,n,a,i){n===void 0&&(n=""),a===void 0&&(a=""),i===void 0&&(i={}),r&&(t.restoreSelection(),this.isDisabled(t)||function(o,s,u,l,c){u===void 0&&(u=""),l===void 0&&(l=""),c===void 0&&(c={}),vc(this,void 0,void 0,function(){var f,d,p,v,h,g;return gc(this,function(m){switch(m.label){case 0:return[4,wee("editImage",o,s,u,l)];case 1:return m.sent()?[4,Eee("editImage",o,s)]:[2];case 2:return f=m.sent(),(d=X.getSelectedNodeByType(o,"image"))==null||(p=d.style,v={src:f,alt:u,href:l,style:ec(ec({},p===void 0?{}:p),c)},pe.setNodes(o,v,{match:function(y){return X.checkNodeType(y,"image")}}),h=X.getSelectedNodeByType(o,"image"),(g=o.getMenuConfig("editImage").onUpdatedImage)&&g(h)),[2]}})})}(t,r,n,a,i))},e}(),DLe=function(){function e(){this.title=Re("image.viewLink"),this.iconSvg=uee,this.tag="button"}return e.prototype.getValue=function(t){var r=X.getSelectedNodeByType(t,"image");return r&&r.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){if(!r||typeof r!="string")throw new Error("View image link failed, image.href is '"+r+"'");window.open(r,"_blank")}},e}(),v9=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return X.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=this.getSelectedNode(t);if(n!=null){var a=X.getHoverbar(t);a&&a.hideAndClean();var i=n.style,o={style:ec(ec({},i===void 0?{}:i),{width:this.value,height:""})};pe.setNodes(t,o,{match:function(s){return X.checkNodeType(s,"image")}})}}},e}(),OLe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="30%",r.value="30%",r}return Nr(t,e),t}(v9),FLe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="50%",r.value="50%",r}return Nr(t,e),t}(v9),BLe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="100%",r.value="100%",r}return Nr(t,e),t}(v9),cU={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,r){return!0},parseImageSrc:function(e){return e}},PLe={renderElems:[CLe],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var r=e,n=r.src,a=r.alt,i=a===void 0?"":a,o=r.href,s=o===void 0?"":o,u=r.style,l=u===void 0?{}:u,c=l.width,f=c===void 0?"":c,d=l.height,p=d===void 0?"":d,v="";return f&&(v+="width: "+f+";"),p&&(v+="height: "+p+";"),'<img src="'+n+'" alt="'+i+'" data-href="'+s+'" style="'+v+'"/>'}}],parseElemsHtml:[_Le],menus:[{key:"insertImage",factory:function(){return new ALe},config:cU},{key:"deleteImage",factory:function(){return new kLe}},{key:"editImage",factory:function(){return new TLe},config:cU},{key:"viewImageLink",factory:function(){return new DLe}},{key:"imageWidth30",factory:function(){return new OLe}},{key:"imageWidth50",factory:function(){return new FLe}},{key:"imageWidth100",factory:function(){return new BLe}}],editorPlugin:function(e){var t=e.isInline,r=e.isVoid;e.insertNode;var n=e;return n.isInline=function(a){return a.type==="image"||t(a)},n.isVoid=function(a){return a.type==="image"||r(a)},n}},NLe={type:"todo",renderElem:function(e,t,r){var n=!1;r.isDisabled()&&(n=!0);var a=ot("div",{style:{margin:"5px 0"}},ot("span",{contentEditable:!1,style:{marginRight:"0.5em"}},ot("input",{type:"checkbox",checked:e.checked,disabled:n,on:{change:function(i){var o=X.findPath(r,e),s={checked:i.target.checked};pe.setNodes(r,s,{at:o})}}})),ot("span",null,t));return a}},ILe=function(){function e(){this.title=Re("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!X.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!X.getSelectedElems(t).some(function(r){if(D.isVoid(t,r)&&D.isBlock(t,r))return!0;var n=r.type;return!!["pre","table","list-item"].includes(n)||void 0})},e.prototype.exec=function(t,r){var n=this.isActive(t);pe.setNodes(t,{type:n?"paragraph":"todo"})},e}(),RLe={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,r){var n=te(e);(t=t.filter(function(i){return!!$e.isText(i)||!!r.isInline(i)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var a=!1;return n.find('input[type="checkbox"]').attr("checked")!=null&&(a=!0),{type:"todo",checked:a,children:t}}},LLe={renderElems:[NLe],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=te(e).find("li"),r=te('<div data-w-e-type="todo"></div>'),n=t.find("input[type]");return r.append(n),t.children()[0].remove(),r[0].innerHTML=r[0].innerHTML+t[0].innerHTML,r[0]}}],parseElemsHtml:[RLe],menus:[{key:"todo",factory:function(){return new ILe}}],editorPlugin:function(e){var t=e.deleteBackward,r=e;return r.deleteBackward=function(n){var a=e.selection;if(a&&be.isCollapsed(a)){var i=X.getSelectedNodeByType(e,"todo");if(i&&Ie.string(i).length===0)return void pe.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},r}},MLe={type:"blockquote",renderElem:function(e,t,r){return ot("blockquote",null,t)}},jLe={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=te(e);return(t=t.filter(function(a){return!!$e.isText(a)||!!r.isInline(a)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},$Le=function(){function e(){this.title=Re("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!X.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!Xt(D.nodes(t,{match:function(r){var n=X.getNodeType(r);return n==="paragraph"||n==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=this.isActive(t)?"paragraph":"blockquote";pe.setNodes(t,{type:n},{mode:"highest"})}},e}(),ULe={key:"blockquote",factory:function(){return new $Le}},HLe=it([].slice),zLe=s9("slice"),VLe=Pi("species"),o_=vt.Array,WLe=Math.max;Pn({target:"Array",proto:!0,forced:!zLe},{slice:function(e,t){var r,n,a,i=ih(this),o=T4(i),s=O1(e,o),u=O1(t===void 0?o:t,o);if(Sw(i)&&(r=i.constructor,(o9(r)&&(r===o_||Sw(r.prototype))||Gi(r)&&(r=r[VLe])===null)&&(r=void 0),r===o_||r===void 0))return HLe(i,s,u);for(n=new(r===void 0?o_:r)(WLe(u-s,0)),a=0;s<u;s++,a++)s in i&&tee(n,a,i[s]);return n.length=a,n}});var GLe={renderElems:[MLe],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[jLe],menus:[ULe],editorPlugin:function(e){var t=e.insertBreak,r=e.insertText,n=e;return n.insertBreak=function(){var a=n.selection;if(a==null)return t();var i=Xt(D.nodes(e,{match:function(c){return X.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return t();var o=i[0],s=X.findPath(e,o),u=D.end(e,s);if(St.equals(u,a.focus)){var l=Ie.string(o);if(l&&l.slice(-1)===`
|
||
`)return e.deleteBackward("character"),void pe.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}r(`
|
||
`)},n}},KLe=function(){function e(){this.title=Re("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,r){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Xt(D.nodes(t,{match:function(r){return X.getNodeType(r)==="pre"||!!D.isVoid(t,r)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var r=te('<ul class="w-e-panel-content-emotion"></ul>');r.on("click","li",function(i){var o=i.target;if(o!=null){i.preventDefault();var s=te(o).text();t.insertText(s)}}),this.$content=r}var n=this.$content;if(n==null)return document.createElement("ul");n.empty();var a=t.getMenuConfig("emotion").emotions;return(a===void 0?[]:a).forEach(function(i){var o=te("<li>"+i+"</li>");n.append(o)}),n[0]},e}(),qLe={menus:[{key:"emotion",factory:function(){return new KLe},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},XLe={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},YLe={selector:"font",preParseHtml:function(e){var t=te(e);if(lh(t)!=="font")return e;var r=t.attr("size")||"";r&&(t.removeAttr("size"),t.css("font-size",XLe[r]));var n=t.attr("face")||"";return n&&(t.removeAttr("face"),t.css("font-family",n)),t[0]}},JLe=it("".indexOf);Pn({target:"String",proto:!0,forced:!fee("includes")},{includes:function(e){return!!~JLe(Lr(uo(this)),Lr(cee(e)),arguments.length>1?arguments[1]:void 0)}});var $u,Ox,m2=function(e){return e&&e.Math==Math&&e},At=m2(typeof globalThis=="object"&&globalThis)||m2(typeof window=="object"&&window)||m2(typeof self=="object"&&self)||m2(typeof xw=="object"&&xw)||function(){return this}()||Function("return this")(),g9=Function.prototype,fU=g9.apply,ZLe=g9.bind,dU=g9.call,See=typeof Reflect=="object"&&Reflect.apply||(ZLe?dU.bind(fU):function(){return dU.apply(fU,arguments)}),Cee=Function.prototype,oT=Cee.bind,sT=Cee.call,QLe=oT&&oT.bind(sT),Jr=oT?function(e){return e&&QLe(sT,e)}:function(e){return e&&function(){return sT.apply(e,arguments)}},oa=function(e){return typeof e=="function"},Oi=function(e){try{return!!e()}catch(t){return!0}},ai=!Oi(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),sv=Function.prototype.call,No=sv.bind?sv.bind(sv):function(){return sv.apply(sv,arguments)},pU={}.propertyIsEnumerable,hU=Object.getOwnPropertyDescriptor,eMe=hU&&!pU.call({1:2},1)?function(e){var t=hU(this,e);return!!t&&t.enumerable}:pU,m9={f:eMe},Zf=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tMe=Jr({}.toString),rMe=Jr("".slice),Cf=function(e){return rMe(tMe(e),8,-1)},s_=At.Object,nMe=Jr("".split),_ee=Oi(function(){return!s_("z").propertyIsEnumerable(0)})?function(e){return Cf(e)=="String"?nMe(e,""):s_(e)}:s_,aMe=At.TypeError,y9=function(e){if(e==null)throw aMe("Can't call method on "+e);return e},Rs=function(e){return _ee(y9(e))},Ki=function(e){return typeof e=="object"?e!==null:oa(e)},Hi={},vU=function(e){return oa(e)?e:void 0},zm=function(e,t){return arguments.length<2?vU(Hi[e])||vU(At[e]):Hi[e]&&Hi[e][t]||At[e]&&At[e][t]},Aee=Jr({}.isPrototypeOf),u_=zm("navigator","userAgent")||"",gU=At.process,mU=At.Deno,yU=gU&&gU.versions||mU&&mU.version,xU=yU&&yU.v8;xU&&(Ox=($u=xU.split("."))[0]>0&&$u[0]<4?1:+($u[0]+$u[1])),!Ox&&u_&&(!($u=u_.match(/Edge\/(\d+)/))||$u[1]>=74)&&($u=u_.match(/Chrome\/(\d+)/))&&(Ox=+$u[1]);var Aw=Ox,rs=!!Object.getOwnPropertySymbols&&!Oi(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Aw&&Aw<41}),x9=rs&&!Symbol.sham&&typeof Symbol.iterator=="symbol",iMe=At.Object,Md=x9?function(e){return typeof e=="symbol"}:function(e){var t=zm("Symbol");return oa(t)&&Aee(t.prototype,iMe(e))},oMe=At.String,sMe=At.TypeError,kee=function(e){if(oa(e))return e;throw sMe(function(t){try{return oMe(t)}catch(r){return"Object"}}(e)+" is not a function")},uMe=At.TypeError,lMe=Object.defineProperty,Fl=At["__core-js_shared__"]||function(e,t){try{lMe(At,e,{value:t,configurable:!0,writable:!0})}catch(r){At[e]=t}return t}("__core-js_shared__",{}),E0=C4(function(e){(e.exports=function(t,r){return Fl[t]||(Fl[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),cMe=At.Object,Vm=function(e){return cMe(y9(e))},fMe=Jr({}.hasOwnProperty),qt=Object.hasOwn||function(e,t){return fMe(Vm(e),t)},dMe=0,pMe=Math.random(),hMe=Jr(1 .toString),kw=function(e){return"Symbol("+(e===void 0?"":e)+")_"+hMe(++dMe+pMe,36)},uv=E0("wks"),_f=At.Symbol,bU=_f&&_f.for,vMe=x9?_f:_f&&_f.withoutSetter||kw,Ni=function(e){if(!qt(uv,e)||!rs&&typeof uv[e]!="string"){var t="Symbol."+e;rs&&qt(_f,e)?uv[e]=_f[e]:uv[e]=x9&&bU?bU(t):vMe(t)}return uv[e]},gMe=At.TypeError,mMe=Ni("toPrimitive"),ch=function(e){var t=function(r,n){if(!Ki(r)||Md(r))return r;var a,i,o=(a=r[mMe])==null?void 0:kee(a);if(o){if(n===void 0&&(n="default"),i=No(o,r,n),!Ki(i)||Md(i))return i;throw gMe("Can't convert object to primitive value")}return n===void 0&&(n="number"),function(s,u){var l,c;if(u==="string"&&oa(l=s.toString)&&!Ki(c=No(l,s))||oa(l=s.valueOf)&&!Ki(c=No(l,s))||u!=="string"&&oa(l=s.toString)&&!Ki(c=No(l,s)))return c;throw uMe("Can't convert object to primitive value")}(r,n)}(e,"string");return Md(t)?t:t+""},uT=At.document,yMe=Ki(uT)&&Ki(uT.createElement),Tee=function(e){return yMe?uT.createElement(e):{}},Dee=!ai&&!Oi(function(){return Object.defineProperty(Tee("div"),"a",{get:function(){return 7}}).a!=7}),wU=Object.getOwnPropertyDescriptor,b9={f:ai?wU:function(e,t){if(e=Rs(e),t=ch(t),Dee)try{return wU(e,t)}catch(r){}if(qt(e,t))return Zf(!No(m9.f,e,t),e[t])}},xMe=/#|\.prototype\./,Wm=function(e,t){var r=wMe[bMe(e)];return r==SMe||r!=EMe&&(oa(t)?Oi(t):!!t)},bMe=Wm.normalize=function(e){return String(e).replace(xMe,".").toLowerCase()},wMe=Wm.data={},EMe=Wm.NATIVE="N",SMe=Wm.POLYFILL="P",CMe=Wm,EU=Jr(Jr.bind),Oee=function(e,t){return kee(e),t===void 0?e:EU?EU(e,t):function(){return e.apply(t,arguments)}},_Me=At.String,AMe=At.TypeError,Qf=function(e){if(Ki(e))return e;throw AMe(_Me(e)+" is not an object")},kMe=At.TypeError,SU=Object.defineProperty,S0={f:ai?SU:function(e,t,r){if(Qf(e),t=ch(t),Qf(r),Dee)try{return SU(e,t,r)}catch(n){}if("get"in r||"set"in r)throw kMe("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},is=ai?function(e,t,r){return S0.f(e,t,Zf(1,r))}:function(e,t,r){return e[t]=r,e},TMe=b9.f,DMe=function(e){var t=function(r,n,a){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,a)}return See(e,this,arguments)};return t.prototype=e.prototype,t},rl=function(e,t){var r,n,a,i,o,s,u,l,c=e.target,f=e.global,d=e.stat,p=e.proto,v=f?At:d?At[c]:(At[c]||{}).prototype,h=f?Hi:Hi[c]||is(Hi,c,{})[c],g=h.prototype;for(a in t)r=!CMe(f?a:c+(d?".":"#")+a,e.forced)&&v&&qt(v,a),o=h[a],r&&(s=e.noTargetGet?(l=TMe(v,a))&&l.value:v[a]),i=r&&s?s:t[a],r&&typeof o==typeof i||(u=e.bind&&r?Oee(i,At):e.wrap&&r?DMe(i):p&&oa(i)?Jr(i):i,(e.sham||i&&i.sham||o&&o.sham)&&is(u,"sham",!0),is(h,a,u),p&&(qt(Hi,n=c+"Prototype")||is(Hi,n,{}),is(Hi[n],a,i),e.real&&g&&!g[a]&&is(g,a,i)))},Tw=Array.isArray||function(e){return Cf(e)=="Array"},OMe=Math.ceil,FMe=Math.floor,w9=function(e){var t=+e;return t!=t||t===0?0:(t>0?FMe:OMe)(t)},BMe=Math.min,B4=function(e){return(t=e.length)>0?BMe(w9(t),9007199254740991):0;var t},lT=function(e,t,r){var n=ch(t);n in e?S0.f(e,n,Zf(0,r)):e[n]=r},Fee={};Fee[Ni("toStringTag")]="z";var E9=String(Fee)==="[object z]",PMe=Ni("toStringTag"),NMe=At.Object,IMe=Cf(function(){return arguments}())=="Arguments",P4=E9?Cf:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(a,i){try{return a[i]}catch(o){}}(t=NMe(e),PMe))=="string"?r:IMe?Cf(t):(n=Cf(t))=="Object"&&oa(t.callee)?"Arguments":n},RMe=Jr(Function.toString);oa(Fl.inspectSource)||(Fl.inspectSource=function(e){return RMe(e)});var Bee=Fl.inspectSource,Pee=function(){},LMe=[],Nee=zm("Reflect","construct"),S9=/^\s*(?:class|function)\b/,MMe=Jr(S9.exec),jMe=!S9.exec(Pee),lv=function(e){if(!oa(e))return!1;try{return Nee(Pee,LMe,e),!0}catch(t){return!1}},$Me=!Nee||Oi(function(){var e;return lv(lv.call)||!lv(Object)||!lv(function(){e=!0})||e})?function(e){if(!oa(e))return!1;switch(P4(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return jMe||!!MMe(S9,Bee(e))}:lv,UMe=Ni("species"),CU=At.Array,Iee=function(e,t){return new(function(r){var n;return Tw(r)&&(n=r.constructor,($Me(n)&&(n===CU||Tw(n.prototype))||Ki(n)&&(n=n[UMe])===null)&&(n=void 0)),n===void 0?CU:n}(e))(t===0?0:t)},HMe=Ni("species"),Ree=Ni("isConcatSpreadable"),_U=At.TypeError,zMe=Aw>=51||!Oi(function(){var e=[];return e[Ree]=!1,e.concat()[0]!==e}),VMe=Aw>=51||!Oi(function(){var e=[];return(e.constructor={})[HMe]=function(){return{foo:1}},e.concat(Boolean).foo!==1}),WMe=function(e){if(!Ki(e))return!1;var t=e[Ree];return t!==void 0?!!t:Tw(e)};rl({target:"Array",proto:!0,forced:!zMe||!VMe},{concat:function(e){var t,r,n,a,i,o=Vm(this),s=Iee(o,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(WMe(i=t===-1?o:arguments[t])){if(u+(a=B4(i))>9007199254740991)throw _U("Maximum allowed index exceeded");for(r=0;r<a;r++,u++)r in i&&lT(s,u,i[r])}else{if(u>=9007199254740991)throw _U("Maximum allowed index exceeded");lT(s,u++,i)}return s.length=u,s}});var y2,GMe=At.String,Dw=function(e){if(P4(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return GMe(e)},KMe=Math.max,qMe=Math.min,cT=function(e,t){var r=w9(e);return r<0?KMe(r+t,0):qMe(r,t)},AU=function(e){return function(t,r,n){var a,i=Rs(t),o=B4(i),s=cT(n,o);if(e&&r!=r){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},XMe={includes:AU(!0),indexOf:AU(!1)},Gm={},YMe=XMe.indexOf,kU=Jr([].push),Lee=function(e,t){var r,n=Rs(e),a=0,i=[];for(r in n)!qt(Gm,r)&&qt(n,r)&&kU(i,r);for(;t.length>a;)qt(n,r=t[a++])&&(~YMe(i,r)||kU(i,r));return i},Ow=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],C9=Object.keys||function(e){return Lee(e,Ow)},JMe=ai?Object.defineProperties:function(e,t){Qf(e);for(var r,n=Rs(t),a=C9(t),i=a.length,o=0;i>o;)S0.f(e,r=a[o++],n[r]);return e},ZMe=zm("document","documentElement"),TU=E0("keys"),N4=function(e){return TU[e]||(TU[e]=kw(e))},Mee=N4("IE_PROTO"),l_=function(){},jee=function(e){return"<script>"+e+"<\/script>"},DU=function(e){e.write(jee("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fx=function(){try{y2=new ActiveXObject("htmlfile")}catch(n){}var e,t;Fx=typeof document<"u"?document.domain&&y2?DU(y2):((t=Tee("iframe")).style.display="none",ZMe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(jee("document.F=Object")),e.close(),e.F):DU(y2);for(var r=Ow.length;r--;)delete Fx.prototype[Ow[r]];return Fx()};Gm[Mee]=!0;var Fw,Og,Bw,e0=Object.create||function(e,t){var r;return e!==null?(l_.prototype=Qf(e),r=new l_,l_.prototype=null,r[Mee]=e):r=Fx(),t===void 0?r:JMe(r,t)},QMe=Ow.concat("length","prototype"),$ee={f:Object.getOwnPropertyNames||function(e){return Lee(e,QMe)}},eje=At.Array,tje=Math.max,OU=$ee.f,FU=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Uee={f:function(e){return FU&&Cf(e)=="Window"?function(t){try{return OU(t)}catch(r){return function(n,a,i){for(var o=B4(n),s=cT(void 0,o),u=cT(o,o),l=eje(tje(u-s,0)),c=0;s<u;s++,c++)lT(l,c,n[s]);return l.length=c,l}(FU)}}(e):OU(Rs(e))}},c_={f:Object.getOwnPropertySymbols},rje=Jr([].slice),Op=function(e,t,r,n){n&&n.enumerable?e[t]=r:is(e,t,r)},_9={f:Ni},nje=S0.f,rn=function(e){var t=Hi.Symbol||(Hi.Symbol={});qt(t,e)||nje(t,e,{value:_9.f(e)})},aje=E9?{}.toString:function(){return"[object "+P4(this)+"]"},ije=S0.f,BU=Ni("toStringTag"),Pw=function(e,t,r,n){if(e){var a=r?e:e.prototype;qt(a,BU)||ije(a,BU,{configurable:!0,value:t}),n&&!E9&&is(a,"toString",aje)}},PU=At.WeakMap,oje=oa(PU)&&/native code/.test(Bee(PU)),fT=At.TypeError,sje=At.WeakMap;if(oje||Fl.state){var Oc=Fl.state||(Fl.state=new sje),uje=Jr(Oc.get),NU=Jr(Oc.has),lje=Jr(Oc.set);Fw=function(e,t){if(NU(Oc,e))throw new fT("Object already initialized");return t.facade=e,lje(Oc,e,t),t},Og=function(e){return uje(Oc,e)||{}},Bw=function(e){return NU(Oc,e)}}else{var q0=N4("state");Gm[q0]=!0,Fw=function(e,t){if(qt(e,q0))throw new fT("Object already initialized");return t.facade=e,is(e,q0,t),t},Og=function(e){return qt(e,q0)?e[q0]:{}},Bw=function(e){return qt(e,q0)}}var fh={set:Fw,get:Og,has:Bw,enforce:function(e){return Bw(e)?Og(e):Fw(e,{})},getterFor:function(e){return function(t){var r;if(!Ki(t)||(r=Og(t)).type!==e)throw fT("Incompatible receiver, "+e+" required");return r}}},IU=Jr([].push),Uu=function(e){var t=e==1,r=e==2,n=e==3,a=e==4,i=e==6,o=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,v=Vm(u),h=_ee(v),g=Oee(l,c),m=B4(h),y=0,x=f||Iee,b=t?x(u,m):r||o?x(u,0):void 0;m>y;y++)if((s||y in h)&&(p=g(d=h[y],y,v),e))if(t)b[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:IU(b,d)}else switch(e){case 4:return!1;case 7:IU(b,d)}return i?-1:n||a?a:b}},I4=[Uu(0),Uu(1),Uu(2),Uu(3),Uu(4),Uu(5),Uu(6),Uu(7)][0],qa=N4("hidden"),RU=Ni("toPrimitive"),cje=fh.set,LU=fh.getterFor("Symbol"),Io=Object.prototype,sl=At.Symbol,ml=sl&&sl.prototype,MU=At.TypeError,f_=At.QObject,cv=zm("JSON","stringify"),Hee=b9.f,ul=S0.f,zee=Uee.f,fje=m9.f,Vee=Jr([].push),hu=E0("symbols"),Km=E0("op-symbols"),d_=E0("string-to-symbol-registry"),p_=E0("symbol-to-string-registry"),dje=E0("wks"),h_=!f_||!f_.prototype||!f_.prototype.findChild,dT=ai&&Oi(function(){return e0(ul({},"a",{get:function(){return ul(this,"a",{value:7}).a}})).a!=7})?function(e,t,r){var n=Hee(Io,t);n&&delete Io[t],ul(e,t,r),n&&e!==Io&&ul(Io,t,n)}:ul,v_=function(e,t){var r=hu[e]=e0(ml);return cje(r,{type:"Symbol",tag:e,description:t}),ai||(r.description=t),r},Nw=function(e,t,r){e===Io&&Nw(Km,t,r),Qf(e);var n=ch(t);return Qf(r),qt(hu,n)?(r.enumerable?(qt(e,qa)&&e[qa][n]&&(e[qa][n]=!1),r=e0(r,{enumerable:Zf(0,!1)})):(qt(e,qa)||ul(e,qa,Zf(1,{})),e[qa][n]=!0),dT(e,n,r)):ul(e,n,r)},jU=function(e,t){Qf(e);var r=Rs(t),n=C9(r).concat(pT(r));return I4(n,function(a){ai&&!No(Wee,r,a)||Nw(e,a,r[a])}),e},Wee=function(e){var t=ch(e),r=No(fje,this,t);return!(this===Io&&qt(hu,t)&&!qt(Km,t))&&(!(r||!qt(this,t)||!qt(hu,t)||qt(this,qa)&&this[qa][t])||r)},$U=function(e,t){var r=Rs(e),n=ch(t);if(r!==Io||!qt(hu,n)||qt(Km,n)){var a=Hee(r,n);return!a||!qt(hu,n)||qt(r,qa)&&r[qa][n]||(a.enumerable=!0),a}},UU=function(e){var t=zee(Rs(e)),r=[];return I4(t,function(n){qt(hu,n)||qt(Gm,n)||Vee(r,n)}),r},pT=function(e){var t=e===Io,r=zee(t?Km:Rs(e)),n=[];return I4(r,function(a){!qt(hu,a)||t&&!qt(Io,a)||Vee(n,hu[a])}),n};if(rs||(ml=(sl=function(){if(Aee(ml,this))throw MU("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?Dw(arguments[0]):void 0,t=kw(e),r=function(n){this===Io&&No(r,Km,n),qt(this,qa)&&qt(this[qa],t)&&(this[qa][t]=!1),dT(this,t,Zf(1,n))};return ai&&h_&&dT(Io,t,{configurable:!0,set:r}),v_(t,e)}).prototype,Op(ml,"toString",function(){return LU(this).tag}),Op(sl,"withoutSetter",function(e){return v_(kw(e),e)}),m9.f=Wee,S0.f=Nw,b9.f=$U,$ee.f=Uee.f=UU,c_.f=pT,_9.f=function(e){return v_(Ni(e),e)},ai&&ul(ml,"description",{configurable:!0,get:function(){return LU(this).description}})),rl({global:!0,wrap:!0,forced:!rs,sham:!rs},{Symbol:sl}),I4(C9(dje),function(e){rn(e)}),rl({target:"Symbol",stat:!0,forced:!rs},{for:function(e){var t=Dw(e);if(qt(d_,t))return d_[t];var r=sl(t);return d_[t]=r,p_[r]=t,r},keyFor:function(e){if(!Md(e))throw MU(e+" is not a symbol");if(qt(p_,e))return p_[e]},useSetter:function(){h_=!0},useSimple:function(){h_=!1}}),rl({target:"Object",stat:!0,forced:!rs,sham:!ai},{create:function(e,t){return t===void 0?e0(e):jU(e0(e),t)},defineProperty:Nw,defineProperties:jU,getOwnPropertyDescriptor:$U}),rl({target:"Object",stat:!0,forced:!rs},{getOwnPropertyNames:UU,getOwnPropertySymbols:pT}),rl({target:"Object",stat:!0,forced:Oi(function(){c_.f(1)})},{getOwnPropertySymbols:function(e){return c_.f(Vm(e))}}),cv){var pje=!rs||Oi(function(){var e=sl();return cv([e])!="[null]"||cv({a:e})!="{}"||cv(Object(e))!="{}"});rl({target:"JSON",stat:!0,forced:pje},{stringify:function(e,t,r){var n=rje(arguments),a=t;if((Ki(t)||e!==void 0)&&!Md(e))return Tw(t)||(t=function(i,o){if(oa(a)&&(o=No(a,this,i,o)),!Md(o))return o}),n[1]=t,See(cv,null,n)}})}if(!ml[RU]){var hje=ml.valueOf;Op(ml,RU,function(e){return No(hje,this)})}Pw(sl,"Symbol"),Gm[qa]=!0,rn("asyncIterator"),rn("hasInstance"),rn("isConcatSpreadable"),rn("iterator"),rn("match"),rn("matchAll"),rn("replace"),rn("search"),rn("species"),rn("split"),rn("toPrimitive"),rn("toStringTag"),rn("unscopables"),Pw(At.JSON,"JSON",!0);var yl,HU,zU,vje=Hi.Symbol,Af={},Gee=Function.prototype,gje=ai&&Object.getOwnPropertyDescriptor,g_=qt(Gee,"name"),mje={EXISTS:g_,PROPER:g_&&function(){}.name==="something",CONFIGURABLE:g_&&(!ai||ai&&gje(Gee,"name").configurable)},yje=!Oi(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),VU=N4("IE_PROTO"),hT=At.Object,xje=hT.prototype,vT=yje?hT.getPrototypeOf:function(e){var t=Vm(e);if(qt(t,VU))return t[VU];var r=t.constructor;return oa(r)&&t instanceof r?r.prototype:t instanceof hT?xje:null},gT=Ni("iterator"),Kee=!1;[].keys&&("next"in(zU=[].keys())?(HU=vT(vT(zU)))!==Object.prototype&&(yl=HU):Kee=!0);var bje=yl==null||Oi(function(){var e={};return yl[gT].call(e)!==e});yl=bje?{}:e0(yl),oa(yl[gT])||Op(yl,gT,function(){return this});var qee={IteratorPrototype:yl,BUGGY_SAFARI_ITERATORS:Kee},wje=qee.IteratorPrototype,Eje=function(){return this};At.String,At.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{Jr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch(t){}}();var Sje=mje.PROPER,x2=qee.BUGGY_SAFARI_ITERATORS,m_=Ni("iterator"),Cje=function(){return this},Xee=function(e,t,r,n,a,i,o){(function(m,y,x,b){var E=y+" Iterator";m.prototype=e0(wje,{next:Zf(1,x)}),Pw(m,E,!1,!0),Af[E]=Eje})(r,t,n);var s,u,l,c=function(m){if(m===a&&h)return h;if(!x2&&m in p)return p[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,p=e.prototype,v=p[m_]||p["@@iterator"]||a&&p[a],h=!x2&&v||c(a),g=t=="Array"&&p.entries||v;if(g&&(s=vT(g.call(new e)))!==Object.prototype&&s.next&&(Pw(s,f,!0,!0),Af[f]=Cje),Sje&&a=="values"&&v&&v.name!=="values"&&(d=!0,h=function(){return No(v,this)}),a)if(u={values:c("values"),keys:i?h:c("keys"),entries:c("entries")},o)for(l in u)(x2||d||!(l in p))&&Op(p,l,u[l]);else rl({target:t,proto:!0,forced:x2||d},u);return o&&p[m_]!==h&&Op(p,m_,h,{name:a}),Af[t]=h,u},_je=fh.set,Aje=fh.getterFor("Array Iterator");Xee(Array,"Array",function(e,t){_je(this,{type:"Array Iterator",target:Rs(e),index:0,kind:t})},function(){var e=Aje(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),Af.Arguments=Af.Array;var WU=Ni("toStringTag");for(var y_ in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var GU=At[y_],x_=GU&&GU.prototype;x_&&P4(x_)!==WU&&is(x_,WU,y_),Af[y_]=Af.Array}var kje=vje;rn("asyncDispose"),rn("dispose"),rn("matcher"),rn("metadata"),rn("observable"),rn("patternMatch"),rn("replaceAll");var b2=kje,Tje=Jr("".charAt),KU=Jr("".charCodeAt),Dje=Jr("".slice),Oje=function(e){return function(t,r){var n,a,i=Dw(y9(t)),o=w9(r),s=i.length;return o<0||o>=s?e?"":void 0:(n=KU(i,o))<55296||n>56319||o+1===s||(a=KU(i,o+1))<56320||a>57343?e?Tje(i,o):n:e?Dje(i,o,o+2):a-56320+(n-55296<<10)+65536}},Fje=Oje(!0),Bje=fh.set,Pje=fh.getterFor("String Iterator");Xee(String,"String",function(e){Bje(this,{type:"String Iterator",string:Dw(e),index:0})},function(){var e,t=Pje(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Fje(r,n),t.index+=e.length,{value:e,done:!1})});var Nje=_9.f("iterator"),Ije=C4(function(e){function t(r){return typeof b2=="function"&&typeof Nje=="symbol"?(e.exports=t=function(n){return typeof n},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(n){return n&&typeof b2=="function"&&n.constructor===b2&&n!==b2.prototype?"symbol":typeof n},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),Yee=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Ije),Rje=k4.EXISTS,Lje=oh.f,Jee=Function.prototype,Mje=it(Jee.toString),Zee=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,jje=it(Zee.exec);Vo&&!Rje&&Lje(Jee,"name",{configurable:!0,get:function(){try{return jje(Zee,Mje(this))[1]}catch(e){return""}}});var Qee=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var r=this.mark,n=D.marks(t);return n&&n[r]?n[r]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!Xt(D.nodes(t,{match:function(r){return X.getNodeType(r)==="pre"||!!D.isVoid(t,r)},universal:!0}),1)[0])},e.prototype.exec=function(t,r){var n=this.mark;r?t.addMark(n,r):t.removeMark(n)},e}(),$je=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Re("fontSize.title"),r.iconSvg=pRe,r.mark="fontSize",r}return Nr(t,e),t.prototype.getOptions=function(r){var n=[],a=r.getMenuConfig(this.mark).fontSizeList,i=a===void 0?[]:a;n.push({text:Re("fontSize.default"),value:""}),i.forEach(function(s){if(typeof s=="string")n.push({text:s,value:s});else if(Yee(s)==="object"){var u=s.name,l=s.value;n.push({text:u,value:l})}});var o=this.getValue(r);return n.forEach(function(s){s.value===o?s.selected=!0:delete s.selected}),n},t}(Qee),Uje=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Re("fontFamily.title"),r.iconSvg=hRe,r.mark="fontFamily",r.selectPanelWidth=150,r}return Nr(t,e),t.prototype.getOptions=function(r){var n=[],a=r.getMenuConfig(this.mark).fontFamilyList,i=a===void 0?[]:a;n.push({text:Re("fontFamily.default"),value:""}),i.forEach(function(s){if(typeof s=="string")n.push({text:s,value:s,styleForRenderMenuList:{"font-family":s}});else if(Yee(s)==="object"){var u=s.name,l=s.value;n.push({text:u,value:l,styleForRenderMenuList:{"font-family":l}})}});var o=this.getValue(r);return n.forEach(function(s){s.value===o?s.selected=!0:delete s.selected}),n},t}(Qee),Hje={renderStyle:function(e,t){var r=e,n=r.fontSize,a=r.fontFamily,i=t;return n&&Jf(i,{fontSize:n}),a&&Jf(i,{fontFamily:a}),i},styleToHtml:function(e,t){if(!$e.isText(e))return t;var r,n=e,a=n.fontSize,i=n.fontFamily;return a||i?((d9(t)||lh(r=te(t))!=="span")&&(r=te("<span>"+t+"</span>")),a&&r.css("font-size",a),i&&r.css("font-family",i),uh(r)):t},preParseHtml:[YLe],parseStyleHtml:function(e,t,r){var n=te(e);if(!$e.isText(t))return t;var a=t,i=r.getMenuConfig("fontSize").fontSizeList,o=i===void 0?[]:i,s=$o(n,"font-size"),u=o.find(function(p){return p.value&&p.value===s})||o.includes(s);s&&u&&(a.fontSize=s);var l=r.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=$o(n,"font-family").replace(/"/g,""),d=c.find(function(p){return p.value&&p.value===f})||c.includes(f);return f&&d&&(a.fontFamily=f),a},menus:[{key:"fontSize",factory:function(){return new $je},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new Uje},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},zje={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=te(e),r=$o(t,"padding-left");return/\dem/.test(r)&&t.css("text-indent","2em"),/\dpx/.test(r)&&parseInt(r,10)%32==0&&t.css("text-indent","2em"),t[0]}},ete=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var r=Xt(D.nodes(t,{match:function(a){return!!a.indent},universal:!0}),1),n=r[0];return n==null?"":Xt(n,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var r=Xt(D.nodes(t,{match:function(n){var a=X.getNodeType(n);return a==="paragraph"||!!a.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},e}(),Vje=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Re("indent.decrease"),r.iconSvg=vRe,r}return Nr(t,e),t.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!n.indent},t.prototype.exec=function(r,n){pe.setNodes(r,{indent:null},{match:function(a){return qe.isElement(a)}})},t}(ete),Wje=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Re("indent.increase"),r.iconSvg=gRe,r}return Nr(t,e),t.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!!n.indent},t.prototype.exec=function(r,n){pe.setNodes(r,{indent:"2em"},{match:function(a){return qe.isElement(a)},mode:"highest"})},t}(ete),Gje={renderStyle:function(e,t){if(!qe.isElement(e))return t;var r=e.indent,n=t;return r&&Jf(n,{textIndent:r}),n},styleToHtml:function(e,t){if(!qe.isElement(e))return t;var r=e.indent;if(!r)return t;var n=te(t);return n.css("text-indent",r),uh(n)},preParseHtml:[zje],parseStyleHtml:function(e,t,r){var n=te(e);if(!qe.isElement(t))return t;var a=t,i=$o(n,"text-indent"),o=parseInt(i,10);return i&&o>0&&(a.indent=i),a},menus:[{key:"indent",factory:function(){return new Wje}},{key:"delIndent",factory:function(){return new Vje}}]},R4=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var r=Xt(D.nodes(t,{match:function(n){var a=X.getNodeType(n);return a==="paragraph"||a==="blockquote"||!!a.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},e.prototype.isDisabled=function(t){return t.selection==null||!!X.getSelectedElems(t).some(function(r){if(D.isVoid(t,r)&&D.isBlock(t,r))return!0;var n=r.type;return!!["pre","code"].includes(n)||void 0})},e}(),Kje=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Re("justify.left"),r.iconSvg=mRe,r}return Nr(t,e),t.prototype.exec=function(r,n){pe.setNodes(r,{textAlign:"left"},{match:function(a){return qe.isElement(a)&&!r.isInline(a)}})},t}(R4),qje=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Re("justify.right"),r.iconSvg=yRe,r}return Nr(t,e),t.prototype.exec=function(r,n){pe.setNodes(r,{textAlign:"right"},{match:function(a){return qe.isElement(a)&&!r.isInline(a)}})},t}(R4),Xje=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Re("justify.center"),r.iconSvg=xRe,r}return Nr(t,e),t.prototype.exec=function(r,n){pe.setNodes(r,{textAlign:"center"},{match:function(a){return qe.isElement(a)&&!r.isInline(a)}})},t}(R4),Yje=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=Re("justify.justify"),r.iconSvg=bRe,r}return Nr(t,e),t.prototype.exec=function(r,n){pe.setNodes(r,{textAlign:"justify"},{match:function(a){return qe.isElement(a)&&!r.isInline(a)}})},t}(R4),Jje={renderStyle:function(e,t){if(!qe.isElement(e))return t;var r=e.textAlign,n=t;return r&&Jf(n,{textAlign:r}),n},styleToHtml:function(e,t){if(!qe.isElement(e))return t;var r=e.textAlign;if(!r)return t;var n=te(t);return n.css("text-align",r),uh(n)},parseStyleHtml:function(e,t,r){var n=te(e);if(!qe.isElement(t))return t;var a=t,i=$o(n,"text-align");return i&&(a.textAlign=i),a},menus:[{key:"justifyLeft",factory:function(){return new Kje}},{key:"justifyRight",factory:function(){return new qje}},{key:"justifyCenter",factory:function(){return new Xje}},{key:"justifyJustify",factory:function(){return new Yje}}]},Zje=function(){function e(){this.title=Re("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(t){var r=[],n=t.getMenuConfig("lineHeight").lineHeightList,a=n===void 0?[]:n;r.push({text:Re("lineHeight.default"),value:""}),a.forEach(function(o){r.push({text:o,value:o})});var i=this.getValue(t);return r.forEach(function(o){o.value===i?o.selected=!0:delete o.selected}),r},e.prototype.getMatchNode=function(t){var r=Xt(D.nodes(t,{match:function(n){var a=X.getNodeType(n);return!!a.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(a)},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var r=this.getMatchNode(t);return r==null?"":qe.isElement(r)&&r.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,r){pe.setNodes(t,{lineHeight:r.toString()},{mode:"highest"})},e}(),Qje={renderStyle:function(e,t){if(!qe.isElement(e))return t;var r=e.lineHeight,n=t;return r&&Jf(n,{lineHeight:r}),n},styleToHtml:function(e,t){if(!qe.isElement(e))return t;var r=e.lineHeight;if(!r)return t;var n=te(t);return n.css("line-height",r),uh(n)},parseStyleHtml:function(e,t,r){var n=te(e);if(!qe.isElement(t))return t;var a=t,i=r.getMenuConfig("lineHeight").lineHeightList,o=i===void 0?[]:i,s=$o(n,"line-height");return s&&o.includes(s)&&(a.lineHeight=s),a},menus:[{key:"lineHeight",factory:function(){return new Zje},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},e$e=function(){function e(){this.title=Re("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,r){typeof t.redo=="function"&&t.redo()},e}(),t$e=function(){function e(){this.title=Re("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,r){typeof t.undo=="function"&&t.undo()},e}(),r$e={menus:[{key:"redo",factory:function(){return new e$e}},{key:"undo",factory:function(){return new t$e}}]},n$e={type:"divider",renderElem:function(e,t,r){return Ep("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:X.isNodeSelected(r,e)?"true":""},style:{},on:{mousedown:function(n){return n.preventDefault()}}},[Ep("hr")])}},a$e=function(){function e(){this.title=Re("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!X.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var n=X.getNodeType(r);return n==="table"||n==="pre"||void 0})},e.prototype.exec=function(t,r){pe.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),i$e={renderElems:[n$e],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,r){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new a$e}}],editorPlugin:function(e){var t=e.isVoid,r=e.normalizeNode,n=e;return n.isVoid=function(a){return a.type==="divider"||t(a)},n.normalizeNode=function(a){var i=Xt(a,2),o=i[0],s=i[1];if(X.getNodeType(o)!=="divider")return r([o,s]);X.isLastNode(n,o)&&pe.insertNodes(n,X.genEmptyParagraph(),{at:[s[0]+1]})},n}},o$e=D4.map;Pn({target:"Array",proto:!0,forced:!s9("map")},{map:function(e){return o$e(this,e,arguments.length>1?arguments[1]:void 0)}});var s$e=it([].join),u$e=_4!=Object,l$e=aee("join",",");Pn({target:"Array",proto:!0,forced:u$e||!l$e},{join:function(e){return s$e(ih(this),e===void 0?",":e)}});var c$e=function(){function e(){this.title=Re("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(t){var r=X.getSelectedNodeByType(t,"code");if(r==null)return null;var n=X.getParentNode(t,r);return n==null||X.getNodeType(n)!=="pre"?null:r},e.prototype.getValue=function(t){var r=this.getSelectCodeElem(t);return r==null?"":r.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var r=X.getSelectedElems(t);return!!r.some(function(n){return t.isVoid(n)})||!r.some(function(n){var a=X.getNodeType(n);if(a==="pre"||a==="paragraph")return!0})},e.prototype.exec=function(t,r){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,r.toString())},e.prototype.changeToPlainText=function(t){var r=this.getSelectCodeElem(t);if(r!=null){var n=Ie.string(r);pe.removeNodes(t,{mode:"highest"});var a=n.split(`
|
||
`).map(function(i){return{type:"paragraph",children:[{text:i}]}});pe.insertNodes(t,a,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,r){var n,a,i=[],o=D.nodes(t,{match:function(f){return t.children.includes(f)},universal:!0});try{for(var s=nee(o),u=s.next();!u.done;u=s.next()){var l=Xt(u.value,1)[0];l&&i.push(Ie.string(l))}}catch(f){n={error:f}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(n)throw n.error}}pe.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:r,children:[{text:i.join(`
|
||
`)}]}]};pe.insertNodes(t,c,{mode:"highest"})},e}(),f$e={key:"codeBlock",factory:function(){return new c$e}};Pn({target:"String",proto:!0,forced:Qv("anchor")},{anchor:function(e){return Zv(this,"a","name",e)}}),c9("match",function(e,t,r){return[function(n){var a=uo(this),i=n==null?void 0:A4(n,e);return i?Yr(i,n,a):new RegExp(n)[e](Lr(a))},function(n){var a=Si(this),i=Lr(n),o=r(t,a,i);if(o.done)return o.value;if(!a.global)return B1(a,i);var s=a.unicode;a.lastIndex=0;for(var u,l=[],c=0;(u=B1(a,i))!==null;){var f=Lr(u[0]);l[c]=f,f===""&&(a.lastIndex=f9(i,jm(a.lastIndex),s)),c++}return c===0?null:l}]});var d$e={type:"pre",renderElem:function(e,t,r){return ot("pre",null,t)}},p$e={type:"code",renderElem:function(e,t,r){return ot("code",null,t)}},h$e={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=te(e);return(t=t.filter(function(a){return X.getNodeType(a)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:n[0].textContent||""}]}]),{type:"pre",children:t.filter(function(a){return X.getNodeType(a)==="code"})}}},v$e={menus:[f$e],editorPlugin:function(e){var t=e.insertBreak,r=e.normalizeNode,n=e.insertData;e.insertNode;var a=e;return a.insertBreak=function(){var i=X.getSelectedNodeByType(a,"code");if(i!=null){var o=function(l,c){var f=c.selection;if(f==null)return"";var d=Ie.string(l),p=f.anchor.offset,v=d.slice(0,p).split(`
|
||
`),h=v.length;return h===0?"":v[h-1]}(i,a);if(o){var s=o.match(/^\s+/);if(s!=null&&s[0]!=null){var u=s[0];return void a.insertText(`
|
||
`+u)}}a.insertText(`
|
||
`)}else t()},a.normalizeNode=function(i){var o=Xt(i,2),s=o[0],u=o[1],l=X.getNodeType(s);return l==="code"&&u.length<=1&&pe.setNodes(a,{type:"paragraph"},{at:u}),l==="pre"&&(X.isLastNode(a,s)&&pe.insertNodes(a,X.genEmptyParagraph(),{at:[u[0]+1]}),X.getNodeType(s.children[0])!=="code"&&(pe.unwrapNodes(a),pe.setNodes(a,{type:"paragraph"},{mode:"highest"}))),r([s,u])},a.insertData=function(i){if(X.getSelectedNodeByType(a,"code")!=null){var o=i.getData("text/plain");D.insertText(a,o)}else n(i)},a},renderElems:[d$e,p$e],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=te(e);if(lh(t)!=="code")return e;var r=t.find("xmp");if(r.length===0)return e;var n=r.text();return r.remove(),t.text(n),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,r){return{type:"code",language:"",children:[{text:te(e)[0].textContent||""}]}}},h$e]},g$e=function(){function e(){this.title=Re("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,r){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),m$e={menus:[{key:"fullScreen",factory:function(){return new g$e}}]},y$e=function(){function e(){this.title=Re("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!!be.isExpanded(r)},e.prototype.exec=function(t,r){var n=t.selection;if(n!=null){var a=[n.anchor.path[0]];pe.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:a}),t.select(D.start(t,a))}},e}(),x$e=[FRe,lLe,Hje,Gje,Jje,Qje,PLe,i$e,qLe,bLe,v$e,GLe,aLe,eRe,LLe,r$e,m$e,{menus:[{key:"enter",factory:function(){return new y$e}}]}];oi("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),oi("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var qU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function A9(e){var t={exports:{}};return e(t,t.exports),t.exports}var Hu,Bx,w2=function(e){return e&&e.Math==Math&&e},st=w2(typeof globalThis=="object"&&globalThis)||w2(typeof window=="object"&&window)||w2(typeof self=="object"&&self)||w2(typeof qU=="object"&&qU)||function(){return this}()||Function("return this")(),tte=Function.prototype,mT=tte.bind,yT=tte.call,b$e=mT&&mT.bind(yT),Dt=mT?function(e){return e&&b$e(yT,e)}:function(e){return e&&function(){return yT.apply(e,arguments)}},Wr=function(e){try{return!!e()}catch(t){return!0}},w$e=Dt({}.toString),E$e=Dt("".slice),iu=function(e){return E$e(w$e(e),8,-1)},b_=st.Object,S$e=Dt("".split),rte=Wr(function(){return!b_("z").propertyIsEnumerable(0)})?function(e){return iu(e)=="String"?S$e(e,""):b_(e)}:b_,C$e=st.TypeError,L4=function(e){if(e==null)throw C$e("Can't call method on "+e);return e},dh=function(e){return rte(L4(e))},_$e=Object.defineProperty,k9=function(e,t){try{_$e(st,e,{value:t,configurable:!0,writable:!0})}catch(r){st[e]=t}return t},Bl=st["__core-js_shared__"]||k9("__core-js_shared__",{}),T9=A9(function(e){(e.exports=function(t,r){return Bl[t]||(Bl[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),A$e=st.Object,qm=function(e){return A$e(L4(e))},k$e=Dt({}.hasOwnProperty),Ln=Object.hasOwn||function(e,t){return k$e(qm(e),t)},T$e=0,D$e=Math.random(),O$e=Dt(1 .toString),D9=function(e){return"Symbol("+(e===void 0?"":e)+")_"+O$e(++T$e+D$e,36)},Gr=function(e){return typeof e=="function"},F$e=function(e){return Gr(e)?e:void 0},Xm=function(e,t){return arguments.length<2?F$e(st[e]):st[e]&&st[e][t]},w_=Xm("navigator","userAgent")||"",XU=st.process,YU=st.Deno,JU=XU&&XU.versions||YU&&YU.version,ZU=JU&&JU.v8;ZU&&(Bx=(Hu=ZU.split("."))[0]>0&&Hu[0]<4?1:+(Hu[0]+Hu[1])),!Bx&&w_&&(!(Hu=w_.match(/Edge\/(\d+)/))||Hu[1]>=74)&&(Hu=w_.match(/Chrome\/(\d+)/))&&(Bx=+Hu[1]);var E2,xT=Bx,bT=!!Object.getOwnPropertySymbols&&!Wr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&xT&&xT<41}),O9=bT&&!Symbol.sham&&typeof Symbol.iterator=="symbol",fv=T9("wks"),kf=st.Symbol,QU=kf&&kf.for,B$e=O9?kf:kf&&kf.withoutSetter||D9,la=function(e){if(!Ln(fv,e)||!bT&&typeof fv[e]!="string"){var t="Symbol."+e;bT&&Ln(kf,e)?fv[e]=kf[e]:fv[e]=O9&&QU?QU(t):B$e(t)}return fv[e]},Vr=function(e){return typeof e=="object"?e!==null:Gr(e)},P$e=st.String,N$e=st.TypeError,si=function(e){if(Vr(e))return e;throw N$e(P$e(e)+" is not an object")},tc=!Wr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),wT=st.document,I$e=Vr(wT)&&Vr(wT.createElement),F9=function(e){return I$e?wT.createElement(e):{}},nte=!tc&&!Wr(function(){return Object.defineProperty(F9("div"),"a",{get:function(){return 7}}).a!=7}),dv=Function.prototype.call,Nn=dv.bind?dv.bind(dv):function(){return dv.apply(dv,arguments)},Iw=Dt({}.isPrototypeOf),R$e=st.Object,E_=O9?function(e){return typeof e=="symbol"}:function(e){var t=Xm("Symbol");return Gr(t)&&Iw(t.prototype,R$e(e))},L$e=st.String,ET=function(e){try{return L$e(e)}catch(t){return"Object"}},M$e=st.TypeError,B9=function(e){if(Gr(e))return e;throw M$e(ET(e)+" is not a function")},P1=function(e,t){var r=e[t];return r==null?void 0:B9(r)},j$e=st.TypeError,$$e=st.TypeError,U$e=la("toPrimitive"),P9=function(e){var t=function(r,n){if(!Vr(r)||E_(r))return r;var a,i=P1(r,U$e);if(i){if(n===void 0&&(n="default"),a=Nn(i,r,n),!Vr(a)||E_(a))return a;throw $$e("Can't convert object to primitive value")}return n===void 0&&(n="number"),function(o,s){var u,l;if(s==="string"&&Gr(u=o.toString)&&!Vr(l=Nn(u,o))||Gr(u=o.valueOf)&&!Vr(l=Nn(u,o))||s!=="string"&&Gr(u=o.toString)&&!Vr(l=Nn(u,o)))return l;throw j$e("Can't convert object to primitive value")}(r,n)}(e,"string");return E_(t)?t:t+""},H$e=st.TypeError,eH=Object.defineProperty,C0={f:tc?eH:function(e,t,r){if(si(e),t=P9(t),si(r),nte)try{return eH(e,t,r)}catch(n){}if("get"in r||"set"in r)throw H$e("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},z$e=Math.ceil,V$e=Math.floor,Ym=function(e){var t=+e;return t!=t||t===0?0:(t>0?V$e:z$e)(t)},W$e=Math.max,G$e=Math.min,ST=function(e,t){var r=Ym(e);return r<0?W$e(r+t,0):G$e(r,t)},K$e=Math.min,ate=function(e){return e>0?K$e(Ym(e),9007199254740991):0},ph=function(e){return ate(e.length)},tH=function(e){return function(t,r,n){var a,i=dh(t),o=ph(i),s=ST(n,o);if(e&&r!=r){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},ite={includes:tH(!0),indexOf:tH(!1)},M4={},q$e=ite.indexOf,rH=Dt([].push),ote=function(e,t){var r,n=dh(e),a=0,i=[];for(r in n)!Ln(M4,r)&&Ln(n,r)&&rH(i,r);for(;t.length>a;)Ln(n,r=t[a++])&&(~q$e(i,r)||rH(i,r));return i},Rw=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],X$e=Object.keys||function(e){return ote(e,Rw)},Y$e=tc?Object.defineProperties:function(e,t){si(e);for(var r,n=dh(t),a=X$e(t),i=a.length,o=0;i>o;)C0.f(e,r=a[o++],n[r]);return e},J$e=Xm("document","documentElement"),nH=T9("keys"),N9=function(e){return nH[e]||(nH[e]=D9(e))},ste=N9("IE_PROTO"),S_=function(){},ute=function(e){return"<script>"+e+"<\/script>"},aH=function(e){e.write(ute("")),e.close();var t=e.parentWindow.Object;return e=null,t},Px=function(){try{E2=new ActiveXObject("htmlfile")}catch(n){}var e,t;Px=typeof document<"u"?document.domain&&E2?aH(E2):((t=F9("iframe")).style.display="none",J$e.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(ute("document.F=Object")),e.close(),e.F):aH(E2);for(var r=Rw.length;r--;)delete Px.prototype[Rw[r]];return Px()};M4[ste]=!0;var I9=Object.create||function(e,t){var r;return e!==null?(S_.prototype=si(e),r=new S_,S_.prototype=null,r[ste]=e):r=Px(),t===void 0?r:Y$e(r,t)},CT=la("unscopables"),_T=Array.prototype;_T[CT]==null&&C0.f(_T,CT,{configurable:!0,value:I9(null)});var Fg=function(e){_T[CT][e]=!0},Fp={},Z$e=Dt(Function.toString);Gr(Bl.inspectSource)||(Bl.inspectSource=function(e){return Z$e(e)});var Lw,Bg,Mw,R9=Bl.inspectSource,iH=st.WeakMap,lte=Gr(iH)&&/native code/.test(R9(iH)),j4=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Pl=tc?function(e,t,r){return C0.f(e,t,j4(1,r))}:function(e,t,r){return e[t]=r,e},AT=st.TypeError,Q$e=st.WeakMap;if(lte||Bl.state){var Fc=Bl.state||(Bl.state=new Q$e),eUe=Dt(Fc.get),oH=Dt(Fc.has),tUe=Dt(Fc.set);Lw=function(e,t){if(oH(Fc,e))throw new AT("Object already initialized");return t.facade=e,tUe(Fc,e,t),t},Bg=function(e){return eUe(Fc,e)||{}},Mw=function(e){return oH(Fc,e)}}else{var X0=N9("state");M4[X0]=!0,Lw=function(e,t){if(Ln(e,X0))throw new AT("Object already initialized");return t.facade=e,Pl(e,X0,t),t},Bg=function(e){return Ln(e,X0)?e[X0]:{}},Mw=function(e){return Ln(e,X0)}}var Tf,sH,uH,As={set:Lw,get:Bg,has:Mw,enforce:function(e){return Mw(e)?Bg(e):Lw(e,{})},getterFor:function(e){return function(t){var r;if(!Vr(t)||(r=Bg(t)).type!==e)throw AT("Incompatible receiver, "+e+" required");return r}}},lH={}.propertyIsEnumerable,cH=Object.getOwnPropertyDescriptor,rUe={f:cH&&!lH.call({1:2},1)?function(e){var t=cH(this,e);return!!t&&t.enumerable}:lH},fH=Object.getOwnPropertyDescriptor,cte={f:tc?fH:function(e,t){if(e=dh(e),t=P9(t),nte)try{return fH(e,t)}catch(r){}if(Ln(e,t))return j4(!Nn(rUe.f,e,t),e[t])}},fte=Function.prototype,nUe=tc&&Object.getOwnPropertyDescriptor,C_=Ln(fte,"name"),L9={EXISTS:C_,PROPER:C_&&function(){}.name==="something",CONFIGURABLE:C_&&(!tc||tc&&nUe(fte,"name").configurable)},gs=A9(function(e){var t=L9.CONFIGURABLE,r=As.get,n=As.enforce,a=String(String).split("String");(e.exports=function(i,o,s,u){var l,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,p=u&&u.name!==void 0?u.name:o;Gr(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ln(s,"name")||t&&s.name!==p)&&Pl(s,"name",p),(l=n(s)).source||(l.source=a.join(typeof p=="string"?p:""))),i!==st?(c?!d&&i[o]&&(f=!0):delete i[o],f?i[o]=s:Pl(i,o,s)):f?i[o]=s:k9(o,s)})(Function.prototype,"toString",function(){return Gr(this)&&r(this).source||R9(this)})}),aUe=Rw.concat("length","prototype"),jw={f:Object.getOwnPropertyNames||function(e){return ote(e,aUe)}},iUe={f:Object.getOwnPropertySymbols},oUe=Dt([].concat),sUe=Xm("Reflect","ownKeys")||function(e){var t=jw.f(si(e)),r=iUe.f;return r?oUe(t,r(e)):t},uUe=function(e,t){for(var r=sUe(t),n=C0.f,a=cte.f,i=0;i<r.length;i++){var o=r[i];Ln(e,o)||n(e,o,a(t,o))}},lUe=/#|\.prototype\./,Jm=function(e,t){var r=fUe[cUe(e)];return r==pUe||r!=dUe&&(Gr(t)?Wr(t):!!t)},cUe=Jm.normalize=function(e){return String(e).replace(lUe,".").toLowerCase()},fUe=Jm.data={},dUe=Jm.NATIVE="N",pUe=Jm.POLYFILL="P",kT=Jm,hUe=cte.f,rc=function(e,t){var r,n,a,i,o,s=e.target,u=e.global,l=e.stat;if(r=u?st:l?st[s]||k9(s,{}):(st[s]||{}).prototype)for(n in t){if(i=t[n],a=e.noTargetGet?(o=hUe(r,n))&&o.value:r[n],!kT(u?n:s+(l?".":"#")+n,e.forced)&&a!==void 0){if(typeof i==typeof a)continue;uUe(i,a)}(e.sham||a&&a.sham)&&Pl(i,"sham",!0),gs(r,n,i,e)}},vUe=!Wr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),dH=N9("IE_PROTO"),TT=st.Object,gUe=TT.prototype,$w=vUe?TT.getPrototypeOf:function(e){var t=qm(e);if(Ln(t,dH))return t[dH];var r=t.constructor;return Gr(r)&&t instanceof r?r.prototype:t instanceof TT?gUe:null},DT=la("iterator"),dte=!1;[].keys&&("next"in(uH=[].keys())?(sH=$w($w(uH)))!==Object.prototype&&(Tf=sH):dte=!0);var mUe=Tf==null||Wr(function(){var e={};return Tf[DT].call(e)!==e});mUe&&(Tf={}),Gr(Tf[DT])||gs(Tf,DT,function(){return this});var M9={IteratorPrototype:Tf,BUGGY_SAFARI_ITERATORS:dte},yUe=C0.f,pH=la("toStringTag"),OT=function(e,t,r){e&&!Ln(e=r?e:e.prototype,pH)&&yUe(e,pH,{configurable:!0,value:t})},xUe=M9.IteratorPrototype,bUe=function(){return this},wUe=st.String,EUe=st.TypeError,Uw=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Dt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(n){}return function(n,a){return si(n),function(i){if(typeof i=="object"||Gr(i))return i;throw EUe("Can't set "+wUe(i)+" as a prototype")}(a),t?e(n,a):n.__proto__=a,n}}():void 0),SUe=L9.PROPER,CUe=L9.CONFIGURABLE,hH=M9.IteratorPrototype,S2=M9.BUGGY_SAFARI_ITERATORS,pv=la("iterator"),_Ue=function(){return this},pte=function(e,t,r,n,a,i,o){(function(m,y,x,b){var E=y+" Iterator";m.prototype=I9(xUe,{next:j4(1,x)}),OT(m,E,!1),Fp[E]=bUe})(r,t,n);var s,u,l,c=function(m){if(m===a&&h)return h;if(!S2&&m in p)return p[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,p=e.prototype,v=p[pv]||p["@@iterator"]||a&&p[a],h=!S2&&v||c(a),g=t=="Array"&&p.entries||v;if(g&&(s=$w(g.call(new e)))!==Object.prototype&&s.next&&($w(s)!==hH&&(Uw?Uw(s,hH):Gr(s[pv])||gs(s,pv,_Ue)),OT(s,f,!0)),SUe&&a=="values"&&v&&v.name!=="values"&&(CUe?Pl(p,"name","values"):(d=!0,h=function(){return Nn(v,this)})),a)if(u={values:c("values"),keys:i?h:c("keys"),entries:c("entries")},o)for(l in u)(S2||d||!(l in p))&&gs(p,l,u[l]);else rc({target:t,proto:!0,forced:S2||d},u);return p[pv]!==h&&gs(p,pv,h,{name:a}),Fp[t]=h,u},AUe=As.set,kUe=As.getterFor("Array Iterator"),eg=pte(Array,"Array",function(e,t){AUe(this,{type:"Array Iterator",target:dh(e),index:0,kind:t})},function(){var e=kUe(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");Fp.Arguments=Fp.Array,Fg("keys"),Fg("values"),Fg("entries");var hte={};hte[la("toStringTag")]="z";var j9=String(hte)==="[object z]",TUe=la("toStringTag"),DUe=st.Object,OUe=iu(function(){return arguments}())=="Arguments",$4=j9?iu:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(a,i){try{return a[i]}catch(o){}}(t=DUe(e),TUe))=="string"?r:OUe?iu(t):(n=iu(t))=="Object"&&Gr(t.callee)?"Arguments":n},FUe=j9?{}.toString:function(){return"[object "+$4(this)+"]"};j9||gs(Object.prototype,"toString",FUe,{unsafe:!0});var BUe=st.String,Gs=function(e){if($4(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return BUe(e)},PUe=Dt("".charAt),vH=Dt("".charCodeAt),NUe=Dt("".slice),gH=function(e){return function(t,r){var n,a,i=Gs(L4(t)),o=Ym(r),s=i.length;return o<0||o>=s?e?"":void 0:(n=vH(i,o))<55296||n>56319||o+1===s||(a=vH(i,o+1))<56320||a>57343?e?PUe(i,o):n:e?NUe(i,o,o+2):a-56320+(n-55296<<10)+65536}},vte={codeAt:gH(!1),charAt:gH(!0)},IUe=vte.charAt,RUe=As.set,LUe=As.getterFor("String Iterator");pte(String,"String",function(e){RUe(this,{type:"String Iterator",string:Gs(e),index:0})},function(){var e,t=LUe(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=IUe(r,n),t.index+=e.length,{value:e,done:!1})});var FT=function(e,t,r){for(var n in t)gs(e,n,t[n],r);return e},MUe=st.Array,jUe=Math.max,mH=jw.f,yH=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$Ue={f:function(e){return yH&&iu(e)=="Window"?function(t){try{return mH(t)}catch(r){return function(n,a,i){for(var o,s,u,l,c=ph(n),f=ST(void 0,c),d=ST(c,c),p=MUe(jUe(d-f,0)),v=0;f<d;f++,v++)o=p,s=v,u=n[f],(l=P9(s))in o?C0.f(o,l,j4(0,u)):o[l]=u;return p.length=v,p}(yH)}}(e):mH(dh(e))}},xH=Wr(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),C2=Object.isExtensible,rf=Wr(function(){C2(1)})||xH?function(e){return!!Vr(e)&&(!xH||iu(e)!="ArrayBuffer")&&(!C2||C2(e))}:C2,UUe=!Wr(function(){return Object.isExtensible(Object.preventExtensions({}))}),$9=A9(function(e){var t=C0.f,r=!1,n=D9("meta"),a=0,i=function(s){t(s,n,{value:{objectID:"O"+a++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},r=!0;var s=jw.f,u=Dt([].splice),l={};l[n]=1,s(l).length&&(jw.f=function(c){for(var f=s(c),d=0,p=f.length;d<p;d++)if(f[d]===n){u(f,d,1);break}return f},rc({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:$Ue.f}))},fastKey:function(s,u){if(!Vr(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Ln(s,n)){if(!rf(s))return"F";if(!u)return"E";i(s)}return s[n].objectID},getWeakData:function(s,u){if(!Ln(s,n)){if(!rf(s))return!0;if(!u)return!1;i(s)}return s[n].weakData},onFreeze:function(s){return UUe&&r&&rf(s)&&!Ln(s,n)&&i(s),s}};M4[n]=!0}),bH=Dt(Dt.bind),U9=function(e,t){return B9(e),t===void 0?e:bH?bH(e,t):function(){return e.apply(t,arguments)}},HUe=la("iterator"),zUe=Array.prototype,VUe=la("iterator"),wH=function(e){if(e!=null)return P1(e,VUe)||P1(e,"@@iterator")||Fp[$4(e)]},WUe=st.TypeError,EH=function(e,t,r){var n,a;si(e);try{if(!(n=P1(e,"return"))){if(t==="throw")throw r;return r}n=Nn(n,e)}catch(i){a=!0,n=i}if(t==="throw")throw r;if(a)throw n;return si(n),r},GUe=st.TypeError,Nx=function(e,t){this.stopped=e,this.result=t},SH=Nx.prototype,gte=function(e,t,r){var n,a,i,o,s,u,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),h=U9(t,f),g=function(y){return n&&EH(n,"normal",y),new Nx(!0,y)},m=function(y){return d?(si(y),v?h(y[0],y[1],g):h(y[0],y[1])):v?h(y,g):h(y)};if(p)n=e;else{if(!(a=wH(e)))throw GUe(ET(e)+" is not iterable");if((c=a)!==void 0&&(Fp.Array===c||zUe[HUe]===c)){for(i=0,o=ph(e);o>i;i++)if((s=m(e[i]))&&Iw(SH,s))return s;return new Nx(!1)}n=function(y,x){var b=arguments.length<2?wH(y):x;if(B9(b))return si(Nn(b,y));throw WUe(ET(y)+" is not iterable")}(e,a)}for(u=n.next;!(l=Nn(u,n)).done;){try{s=m(l.value)}catch(y){EH(n,"throw",y)}if(typeof s=="object"&&s&&Iw(SH,s))return s}return new Nx(!1)},KUe=st.TypeError,mte=function(e,t){if(Iw(t,e))return e;throw KUe("Incorrect invocation")},yte=la("iterator"),xte=!1;try{var qUe=0,CH={next:function(){return{done:!!qUe++}},return:function(){xte=!0}};CH[yte]=function(){return this},Array.from(CH,function(){throw 2})}catch(e){}var BT=Array.isArray||function(e){return iu(e)=="Array"},bte=function(){},XUe=[],wte=Xm("Reflect","construct"),H9=/^\s*(?:class|function)\b/,YUe=Dt(H9.exec),JUe=!H9.exec(bte),hv=function(e){if(!Gr(e))return!1;try{return wte(bte,XUe,e),!0}catch(t){return!1}},ZUe=!wte||Wr(function(){var e;return hv(hv.call)||!hv(Object)||!hv(function(){e=!0})||e})?function(e){if(!Gr(e))return!1;switch($4(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return JUe||!!YUe(H9,R9(e))}:hv,QUe=la("species"),_H=st.Array,Ete=function(e,t){return new(function(r){var n;return BT(r)&&(n=r.constructor,(ZUe(n)&&(n===_H||BT(n.prototype))||Vr(n)&&(n=n[QUe])===null)&&(n=void 0)),n===void 0?_H:n}(e))(t===0?0:t)},AH=Dt([].push),zu=function(e){var t=e==1,r=e==2,n=e==3,a=e==4,i=e==6,o=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,v=qm(u),h=rte(v),g=U9(l,c),m=ph(h),y=0,x=f||Ete,b=t?x(u,m):r||o?x(u,0):void 0;m>y;y++)if((s||y in h)&&(p=g(d=h[y],y,v),e))if(t)b[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:AH(b,d)}else switch(e){case 4:return!1;case 7:AH(b,d)}return i?-1:n||a?a:b}},z9={forEach:zu(0),map:zu(1),filter:zu(2),some:zu(3),every:zu(4),find:zu(5),findIndex:zu(6),filterReject:zu(7)},_2=$9.getWeakData,eHe=As.set,tHe=As.getterFor,rHe=z9.find,nHe=z9.findIndex,aHe=Dt([].splice),iHe=0,A2=function(e){return e.frozen||(e.frozen=new Ste)},Ste=function(){this.entries=[]},__=function(e,t){return rHe(e.entries,function(r){return r[0]===t})};Ste.prototype={get:function(e){var t=__(this,e);if(t)return t[1]},has:function(e){return!!__(this,e)},set:function(e,t){var r=__(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=nHe(this.entries,function(r){return r[0]===e});return~t&&aHe(this.entries,t,1),!!~t}};var vv,Cte={getConstructor:function(e,t,r,n){var a=e(function(u,l){mte(u,i),eHe(u,{type:t,id:iHe++,frozen:void 0}),l!=null&>e(l,u[n],{that:u,AS_ENTRIES:r})}),i=a.prototype,o=tHe(t),s=function(u,l,c){var f=o(u),d=_2(si(l),!0);return d===!0?A2(f).set(l,c):d[f.id]=c,u};return FT(i,{delete:function(u){var l=o(this);if(!Vr(u))return!1;var c=_2(u);return c===!0?A2(l).delete(u):c&&Ln(c,l.id)&&delete c[l.id]},has:function(u){var l=o(this);if(!Vr(u))return!1;var c=_2(u);return c===!0?A2(l).has(u):c&&Ln(c,l.id)}}),FT(i,r?{get:function(u){var l=o(this);if(Vr(u)){var c=_2(u);return c===!0?A2(l).get(u):c?c[l.id]:void 0}},set:function(u,l){return s(this,u,l)}}:{add:function(u){return s(this,u,!0)}}),a}},k2=As.enforce,oHe=!st.ActiveXObject&&"ActiveXObject"in st,_te=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},sHe=function(e,t,r){var n=e.indexOf("Map")!==-1,a=e.indexOf("Weak")!==-1,i=n?"set":"add",o=st[e],s=o&&o.prototype,u=o,l={},c=function(g){var m=Dt(s[g]);gs(s,g,g=="add"?function(y){return m(this,y===0?0:y),this}:g=="delete"?function(y){return!(a&&!Vr(y))&&m(this,y===0?0:y)}:g=="get"?function(y){return a&&!Vr(y)?void 0:m(this,y===0?0:y)}:g=="has"?function(y){return!(a&&!Vr(y))&&m(this,y===0?0:y)}:function(y,x){return m(this,y===0?0:y,x),this})};if(kT(e,!Gr(o)||!(a||s.forEach&&!Wr(function(){new o().entries().next()}))))u=r.getConstructor(t,e,n,i),$9.enable();else if(kT(e,!0)){var f=new u,d=f[i](a?{}:-0,1)!=f,p=Wr(function(){f.has(1)}),v=function(g,m){if(!xte)return!1;var y=!1;try{var x={};x[yte]=function(){return{next:function(){return{done:y=!0}}}},function(b){new o(b)}(x)}catch(b){}return y}(),h=!a&&Wr(function(){for(var g=new o,m=5;m--;)g[i](m,m);return!g.has(-0)});v||((u=t(function(g,m){mte(g,s);var y=function(x,b,E){var S,w;return Uw&&Gr(S=b.constructor)&&S!==E&&Vr(w=S.prototype)&&w!==E.prototype&&Uw(x,w),x}(new o,g,u);return m!=null&>e(m,y[i],{that:y,AS_ENTRIES:n}),y})).prototype=s,s.constructor=u),(p||h)&&(c("delete"),c("has"),n&&c("get")),(h||d)&&c(i),a&&s.clear&&delete s.clear}return l[e]=u,rc({global:!0,forced:u!=o},l),OT(u,e),a||r.setStrong(u,e,n),u}("WeakMap",_te,Cte);if(lte&&oHe){vv=Cte.getConstructor(_te,"WeakMap",!0),$9.enable();var gv=sHe.prototype,kH=Dt(gv.delete),T2=Dt(gv.has),TH=Dt(gv.get),DH=Dt(gv.set);FT(gv,{delete:function(e){if(Vr(e)&&!rf(e)){var t=k2(this);return t.frozen||(t.frozen=new vv),kH(this,e)||t.frozen.delete(e)}return kH(this,e)},has:function(e){if(Vr(e)&&!rf(e)){var t=k2(this);return t.frozen||(t.frozen=new vv),T2(this,e)||t.frozen.has(e)}return T2(this,e)},get:function(e){if(Vr(e)&&!rf(e)){var t=k2(this);return t.frozen||(t.frozen=new vv),T2(this,e)?TH(this,e):t.frozen.get(e)}return TH(this,e)},set:function(e,t){if(Vr(e)&&!rf(e)){var r=k2(this);r.frozen||(r.frozen=new vv),T2(this,e)?DH(this,e,t):r.frozen.set(e,t)}else DH(this,e,t);return this}})}var Ate={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},A_=F9("span").classList,OH=A_&&A_.constructor&&A_.constructor.prototype,uHe=OH===Object.prototype?void 0:OH,k_=la("iterator"),FH=la("toStringTag"),T_=eg.values,kte=function(e,t){if(e){if(e[k_]!==T_)try{Pl(e,k_,T_)}catch(n){e[k_]=T_}if(e[FH]||Pl(e,FH,t),Ate[t]){for(var r in eg)if(e[r]!==eg[r])try{Pl(e,r,eg[r])}catch(n){e[r]=eg[r]}}}};for(var D_ in Ate)kte(st[D_]&&st[D_].prototype,D_);kte(uHe,"DOMTokenList");var PT=new WeakMap,lHe={type:"list-item",renderElem:function(e,t,r){PT.set(e,r);var n=e,a=n.level,i=a===void 0?0:a,o=n.ordered,s={margin:"5px 0 5px "+20*i+"px"},u="";if(o!==void 0&&o){var l=function(f,d){var p=d,v=p.type,h=p.level,g=h===void 0?0:h,m=p.ordered,y=m!==void 0&&m;if(!y)return-1;var x=1,b=d,E=X.findPath(f,b);if(E[0]===0)return 1;for(;E[0]>0;){var S=se.previous(E),w=D.node(f,S);if(w==null)break;var C=w[0],_=C.level,O=_===void 0?0:_,P=C.type,F=C.ordered;if(P!==v||O<g)break;if(O===g){if(F!==y)break;x++}b=C,E=S}return x}(r,e);u=l+"."}else u=function(f){f===void 0&&(f=0);var d="";switch(f){case 0:d="•";break;case 1:d="◦";break;default:d="▪"}return d}(i);var c=function(f){var d,p=f.children||[],v=p.length;if(v===0)return"";for(var h=0;h<v&&!d;h++){var g=p[h];$e.isText(g)&&(d=g)}return d==null?"":d.color||""}(e);return ot("div",{style:s},ot("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},u),ot("span",null,t))}},NT=function(e,t){return NT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},NT(e,t);/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */};function Tte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}NT(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function BH(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Pg(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}function PH(e){return D.nodes(e,{at:e.selection||void 0,match:function(t){return X.findPath(e,t).length===1}})}var cHe=ite.includes;rc({target:"Array",proto:!0},{includes:function(e){return cHe(this,e,arguments.length>1?arguments[1]:void 0)}}),Fg("includes");var NH,O_,fHe=function(){var e=si(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},V9=st.RegExp,IT=Wr(function(){var e=V9("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),dHe=IT||Wr(function(){return!V9("a","y").sticky}),pHe={BROKEN_CARET:IT||Wr(function(){var e=V9("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:dHe,UNSUPPORTED_Y:IT},hHe=st.RegExp,vHe=Wr(function(){var e=hHe(".","s");return!(e.dotAll&&e.exec(`
|
||
`)&&e.flags==="s")}),gHe=st.RegExp,mHe=Wr(function(){var e=gHe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),yHe=As.get,xHe=T9("native-string-replace",String.prototype.replace),Hw=RegExp.prototype.exec,RT=Hw,bHe=Dt("".charAt),wHe=Dt("".indexOf),EHe=Dt("".replace),F_=Dt("".slice),B_=(O_=/b*/g,Nn(Hw,NH=/a/,"a"),Nn(Hw,O_,"a"),NH.lastIndex!==0||O_.lastIndex!==0),IH=pHe.BROKEN_CARET,P_=/()??/.exec("")[1]!==void 0;(B_||P_||IH||vHe||mHe)&&(RT=function(e){var t,r,n,a,i,o,s,u=this,l=yHe(u),c=Gs(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=Nn(RT,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=IH&&u.sticky,v=Nn(fHe,u),h=u.source,g=0,m=c;if(p&&(v=EHe(v,"y",""),wHe(v,"g")===-1&&(v+="g"),m=F_(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&bHe(c,u.lastIndex-1)!==`
|
||
`)&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),P_&&(r=new RegExp("^"+h+"$(?!\\s)",v)),B_&&(n=u.lastIndex),a=Nn(Hw,p?r:u,m),p?a?(a.input=F_(a.input,g),a[0]=F_(a[0],g),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:B_&&a&&(u.lastIndex=u.global?a.index+a[0].length:n),P_&&a&&a.length>1&&Nn(xHe,a[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(a[i]=void 0)}),a&&d)for(a.groups=o=I9(null),i=0;i<d.length;i++)o[(s=d[i])[0]]=a[s[1]];return a});var zw=RT;rc({target:"RegExp",proto:!0,forced:/./.exec!==zw},{exec:zw});var Dte=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var r=this.type;return X.getSelectedNodeByType(t,r)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var r=this.getListNode(t);if(r==null)return!1;var n=r.ordered;return(n!==void 0&&n)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!X.getSelectedElems(t).some(function(r){if(D.isVoid(t,r)&&D.isBlock(t,r))return!0;var n=r.type;return!!["pre","code","table"].includes(n)||void 0})},e.prototype.exec=function(t,r){this.isActive(t)?pe.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):pe.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),SHe='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',CHe='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',_He=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ordered=!1,r.title=Re("listModule.unOrderedList"),r.iconSvg=SHe,r}return Tte(t,e),t}(Dte),AHe=function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ordered=!0,r.title=Re("listModule.orderedList"),r.iconSvg=CHe,r}return Tte(t,e),t}(Dte),kHe={key:"bulletedList",factory:function(){return new _He}},THe={key:"numberedList",factory:function(){return new AHe}},RH=[],DHe={type:"list-item",elemToHtml:function(e,t){var r="",n="",a=e.ordered,i=a!==void 0&&a?"ol":"ul",o=function(l){var c=PT.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,h=f.level,g=h===void 0?0:h,m=X.findPath(c,l);if(m[0]===0)return g+1;var y=se.previous(m),x=D.node(c,y);if(!x)return 0;var b=Pg(x,1)[0];if(X.getNodeType(b)!==d)return g+1;var E=b,S=E.ordered,w=S!==void 0&&S,C=E.level,_=C===void 0?0:C;return _<g?g-_:_>g?0:_===g?w===v?0:1:0}(e);if(o>0)for(var s=0;s<o;s++)r+="<"+i+">",RH.push(i);var u=function(l){var c=PT.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,h=f.level,g=h===void 0?0:h,m=X.findPath(c,l);if(m[0]===c.children.length-1)return g+1;var y=se.next(m),x=D.node(c,y);if(!x)return 0;var b=Pg(x,1)[0];if(X.getNodeType(b)!==d)return g+1;var E=b,S=E.ordered,w=S!==void 0&&S,C=E.level,_=C===void 0?0:C;return _<g?g-_:_>g?0:_===g?w===v?0:1:0}(e);if(u>0)for(s=0;s<u;s++)n+="</"+RH.pop()+">";return{html:"<li>"+t+"</li>",prefix:r,suffix:n}}},OHe=la("species"),FHe=z9.filter,BHe=xT>=51||!Wr(function(){var e=[];return(e.constructor={})[OHe]=function(){return{foo:1}},e.filter(Boolean).foo!==1});rc({target:"Array",proto:!0,forced:!BHe},{filter:function(e){return FHe(this,e,arguments.length>1?arguments[1]:void 0)}});var W9=Function.prototype,LH=W9.apply,PHe=W9.bind,MH=W9.call,NHe=typeof Reflect=="object"&&Reflect.apply||(PHe?MH.bind(LH):function(){return MH.apply(LH,arguments)}),jH=(la("species"),RegExp.prototype),IHe=vte.charAt,RHe=function(e,t,r){return t+(r?IHe(e,t).length:1)},LHe=Math.floor,N_=Dt("".charAt),MHe=Dt("".replace),I_=Dt("".slice),jHe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$He=/\$([$&'`]|\d{1,2})/g,UHe=function(e,t,r,n,a,i){var o=r+e.length,s=n.length,u=$He;return a!==void 0&&(a=qm(a),u=jHe),MHe(i,u,function(l,c){var f;switch(N_(c,0)){case"$":return"$";case"&":return e;case"`":return I_(t,0,r);case"'":return I_(t,o);case"<":f=a[I_(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>s){var p=LHe(d/10);return p===0?l:p<=s?n[p-1]===void 0?N_(c,1):n[p-1]+N_(c,1):l}f=n[d-1]}return f===void 0?"":f})},HHe=st.TypeError,zHe=function(e,t){var r=e.exec;if(Gr(r)){var n=Nn(r,e,t);return n!==null&&si(n),n}if(iu(e)==="RegExp")return Nn(zw,e,t);throw HHe("RegExp#exec called on incompatible receiver")},LT=la("replace"),VHe=Math.max,WHe=Math.min,GHe=Dt([].concat),R_=Dt([].push),$H=Dt("".indexOf),UH=Dt("".slice),KHe="a".replace(/./,"$0")==="$0",HH=!!/./[LT]&&/./[LT]("a","$0")==="";(function(e,t,r,n){var a=la(e),i=!Wr(function(){var l={};return l[a]=function(){return 7},""[e](l)!=7}),o=i&&!Wr(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[a](""),!l});if(!i||!o||r){var s=Dt(/./[a]),u=function(l,c,f){var d=HH?"$":"$0";return[function(p,v){var h=L4(this),g=p==null?void 0:P1(p,LT);return g?Nn(g,p,h,v):Nn(c,Gs(h),p,v)},function(p,v){var h=si(this),g=Gs(p);if(typeof v=="string"&&$H(v,d)===-1&&$H(v,"$<")===-1){var m=f(c,h,g,v);if(m.done)return m.value}var y=Gr(v);y||(v=Gs(v));var x=h.global;if(x){var b=h.unicode;h.lastIndex=0}for(var E=[];;){var S=zHe(h,g);if(S===null||(R_(E,S),!x))break;Gs(S[0])===""&&(h.lastIndex=RHe(g,ate(h.lastIndex),b))}for(var w,C="",_=0,O=0;O<E.length;O++){for(var P=Gs((S=E[O])[0]),F=VHe(WHe(Ym(S.index),g.length),0),q=[],ee=1;ee<S.length;ee++)R_(q,(w=S[ee])===void 0?w:String(w));var J=S.groups;if(y){var Z=GHe([P],q,F,g);J!==void 0&&R_(Z,J);var V=Gs(NHe(v,void 0,Z))}else V=UHe(P,g,F,q,J,v);F>=_&&(C+=UH(g,_,F)+V,_=F+P.length)}return C+UH(g,_)}]}(0,""[e],function(l,c,f,d,p){var v=Dt(l),h=c.exec;return h===zw||h===jH.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});gs(String.prototype,e,u[0]),gs(jH,a,u[1])}})("replace",0,!!Wr(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!KHe||HH);var qHe=st.TypeError,Ote=function(e,t,r,n,a,i,o,s){for(var u,l,c=a,f=0,d=!!o&&U9(o,s);f<n;){if(f in r){if(u=d?d(r[f],f,t):r[f],i>0&&BT(u))l=ph(u),c=Ote(e,t,u,l,c,i-1)-1;else{if(c>=9007199254740991)throw qHe("Exceed the acceptable array length");e[c]=u}c++}f++}return c},XHe=Ote;function L_(e){return e.length?e[0].tagName.toLowerCase():""}rc({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=qm(this),r=ph(t),n=Ete(t,0);return n.length=XHe(n,t,t,r,0,e===void 0?1:Ym(e)),n}}),Fg("flat"),rc({global:!0},{globalThis:st}),io&&(te.fn.append=io),ao&&(te.fn.attr=ao),mp&&(te.fn.parent=mp);var YHe={renderElems:[lHe],editorPlugin:function(e){var t=e.deleteBackward,r=e.handleTab,n=e.normalizeNode,a=e;return a.deleteBackward=function(i){var o=a.selection;if(o!=null)if(be.isExpanded(o))t(i);else{var s=X.getSelectedNodeByType(a,"list-item");if(s!=null)if(o.focus.offset!==0)t(i);else{var u=s.level,l=u===void 0?0:u;l>0?pe.setNodes(a,{level:l-1}):pe.setNodes(a,{type:"paragraph",ordered:void 0,level:void 0})}else t(i)}else t(i)},a.handleTab=function(){var i,o,s,u,l=a.selection;if(l!=null){if(be.isCollapsed(l)){var c=X.getSelectedNodeByType(a,"list-item");if(c==null)return void r();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void pe.setNodes(a,{level:d+1})}}if(be.isExpanded(l)){var p=0,v=!1;try{for(var h=BH(PH(a)),g=h.next();!g.done;g=h.next()){var m=Pg(g.value,1)[0];X.getNodeType(m)==="list-item"?p++:v=!0}}catch(w){i={error:w}}finally{try{g&&!g.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}if(v||p<=1)return void r();try{for(var y=BH(PH(a)),x=y.next();!x.done;x=y.next()){var b=Pg(x.value,2),E=(m=b[0],b[1]),S=m.level;d=S===void 0?0:S,pe.setNodes(a,{level:d+1},{at:E})}}catch(w){s={error:w}}finally{try{x&&!x.done&&(u=y.return)&&u.call(y)}finally{if(s)throw s.error}}}else r()}else r()},a.normalizeNode=function(i){var o=Pg(i,2),s=o[0],u=o[1],l=X.getNodeType(s);return l!=="bulleted-list"&&l!=="numbered-list"||pe.unwrapNodes(a,{at:u}),n([s,u])},a},menus:[kHe,THe],elemsToHtml:[DHe],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,r){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=te(e);(t=t.filter(function(o){return!!$e.isText(o)||!!r.isInline(o)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var a=function(o){return L_(o.parent())==="ol"}(n),i=function(o){for(var s=0,u=o.parent(),l=L_(u);l==="ul"||l==="ol";)l=L_(u=u.parent()),s++;return s-1}(n);return{type:"list-item",ordered:a,level:i,children:t}}}]},Fte=p0(function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,a="[object Arguments]",i="[object Array]",o="[object Boolean]",s="[object Date]",u="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",v="[object RegExp]",h="[object Set]",g="[object String]",m="[object Symbol]",y="[object WeakMap]",x="[object ArrayBuffer]",b="[object DataView]",E=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[a]=w[i]=w[x]=w[o]=w[b]=w[s]=w[u]=w[l]=w[c]=w[f]=w[d]=w[v]=w[h]=w[g]=w[y]=!1;var C=typeof mr=="object"&&mr&&mr.Object===Object&&mr,_=typeof self=="object"&&self&&self.Object===Object&&self,O=C||_||Function("return this")(),P=t&&!t.nodeType&&t,F=P&&e&&!e.nodeType&&e,q=F&&F.exports===P,ee=q&&C.process,J=function(){try{return ee&&ee.binding&&ee.binding("util")}catch(k){}}(),Z=J&&J.isTypedArray;function V(k,H){for(var ae=-1,re=k==null?0:k.length;++ae<re;)if(H(k[ae],ae,k))return!0;return!1}function ie(k){var H=-1,ae=Array(k.size);return k.forEach(function(re,ue){ae[++H]=[ue,re]}),ae}function W(k){var H=-1,ae=Array(k.size);return k.forEach(function(re){ae[++H]=re}),ae}var de=Array.prototype,M=Function.prototype,A=Object.prototype,N=O["__core-js_shared__"],I=M.toString,L=A.hasOwnProperty,Y=function(){var k=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||"");return k?"Symbol(src)_1."+k:""}(),Q=A.toString,le=RegExp("^"+I.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=q?O.Buffer:void 0,he=O.Symbol,fe=O.Uint8Array,z=A.propertyIsEnumerable,je=de.splice,Te=he?he.toStringTag:void 0,Ne=Object.getOwnPropertySymbols,He=ve?ve.isBuffer:void 0,we=function(k,H){return function(ae){return k(H(ae))}}(Object.keys,Object),Je=ci(O,"DataView"),ut=ci(O,"Map"),_t=ci(O,"Promise"),Qe=ci(O,"Set"),cr=ci(O,"WeakMap"),zt=ci(Object,"create"),Se=po(Je),at=po(ut),Rt=po(_t),fr=po(Qe),It=po(cr),Dr=he?he.prototype:void 0,Ze=Dr?Dr.valueOf:void 0;function wt(k){var H=-1,ae=k==null?0:k.length;for(this.clear();++H<ae;){var re=k[H];this.set(re[0],re[1])}}function Vt(k){var H=-1,ae=k==null?0:k.length;for(this.clear();++H<ae;){var re=k[H];this.set(re[0],re[1])}}function Ft(k){var H=-1,ae=k==null?0:k.length;for(this.clear();++H<ae;){var re=k[H];this.set(re[0],re[1])}}function ir(k){var H=-1,ae=k==null?0:k.length;for(this.__data__=new Ft;++H<ae;)this.add(k[H])}function An(k){var H=this.__data__=new Vt(k);this.size=H.size}function qo(k,H){var ae=ho(k),re=!ae&&wu(k),ue=!ae&&!re&&Ii(k),oe=!ae&&!re&&!ue&&j(k),U=ae||re||ue||oe,ne=U?function(Ae,Ue){for(var rt=-1,et=Array(Ae);++rt<Ae;)et[rt]=Ue(rt);return et}(k.length,String):[],ye=ne.length;for(var me in k)!H&&!L.call(k,me)||U&&(me=="length"||ue&&(me=="offset"||me=="parent")||oe&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||bc(me,ye))||ne.push(me);return ne}function xe(k,H){for(var ae=k.length;ae--;)if(bu(k[ae][0],H))return ae;return-1}function _e(k){return k==null?k===void 0?"[object Undefined]":"[object Null]":Te&&Te in Object(k)?function(H){var ae=L.call(H,Te),re=H[Te];try{H[Te]=void 0;var ue=!0}catch(U){}var oe=Q.call(H);return ue&&(ae?H[Te]=re:delete H[Te]),oe}(k):function(H){return Q.call(H)}(k)}function Ve(k){return R(k)&&_e(k)==a}function ft(k,H,ae,re,ue){return k===H||(k==null||H==null||!R(k)&&!R(H)?k!=k&&H!=H:function(oe,U,ne,ye,me,Ae){var Ue=ho(oe),rt=ho(U),et=Ue?i:Ta(oe),Lt=rt?i:Ta(U),Kr=(et=et==a?d:et)==d,fi=(Lt=Lt==a?d:Lt)==d,Da=et==Lt;if(Da&&Ii(oe)){if(!Ii(U))return!1;Ue=!0,Kr=!1}if(Da&&!Kr)return Ae||(Ae=new An),Ue||j(oe)?Er(oe,U,ne,ye,me,Ae):function(Bt,Wt,Gt,qr,Oa,za,vo){switch(Gt){case b:if(Bt.byteLength!=Wt.byteLength||Bt.byteOffset!=Wt.byteOffset)return!1;Bt=Bt.buffer,Wt=Wt.buffer;case x:return!(Bt.byteLength!=Wt.byteLength||!za(new fe(Bt),new fe(Wt)));case o:case s:case f:return bu(+Bt,+Wt);case u:return Bt.name==Wt.name&&Bt.message==Wt.message;case v:case g:return Bt==Wt+"";case c:var Eu=ie;case h:var gh=1&qr;if(Eu||(Eu=W),Bt.size!=Wt.size&&!gh)return!1;var cy=vo.get(Bt);if(cy)return cy==Wt;qr|=2,vo.set(Bt,Wt);var A0=Er(Eu(Bt),Eu(Wt),qr,Oa,za,vo);return vo.delete(Bt),A0;case m:if(Ze)return Ze.call(Bt)==Ze.call(Wt)}return!1}(oe,U,et,ne,ye,me,Ae);if(!(1&ne)){var ca=Kr&&L.call(oe,"__wrapped__"),nt=fi&&L.call(U,"__wrapped__");if(ca||nt){var Et=ca?oe.value():oe,Qr=nt?U.value():U;return Ae||(Ae=new An),me(Et,Qr,ne,ye,Ae)}}return Da?(Ae||(Ae=new An),function(Bt,Wt,Gt,qr,Oa,za){var vo=1&Gt,Eu=Zt(Bt),gh=Eu.length,cy=Zt(Wt).length;if(gh!=cy&&!vo)return!1;for(var A0=gh;A0--;){var Ec=Eu[A0];if(!(vo?Ec in Wt:L.call(Wt,Ec)))return!1}var _B=za.get(Bt);if(_B&&za.get(Wt))return _B==Wt;var fy=!0;za.set(Bt,Wt),za.set(Wt,Bt);for(var oS=vo;++A0<gh;){var dy=Bt[Ec=Eu[A0]],py=Wt[Ec];if(qr)var AB=vo?qr(py,dy,Ec,Wt,Bt,za):qr(dy,py,Ec,Bt,Wt,za);if(!(AB===void 0?dy===py||Oa(dy,py,Gt,qr,za):AB)){fy=!1;break}oS||(oS=Ec=="constructor")}if(fy&&!oS){var hy=Bt.constructor,vy=Wt.constructor;hy==vy||!("constructor"in Bt)||!("constructor"in Wt)||typeof hy=="function"&&hy instanceof hy&&typeof vy=="function"&&vy instanceof vy||(fy=!1)}return za.delete(Bt),za.delete(Wt),fy}(oe,U,ne,ye,me,Ae)):!1}(k,H,ae,re,ft,ue))}function Or(k){return!(!G(k)||function(H){return!!Y&&Y in H}(k))&&(wc(k)?le:E).test(po(k))}function dr(k){if(ae=(H=k)&&H.constructor,re=typeof ae=="function"&&ae.prototype||A,H!==re)return we(k);var H,ae,re,ue=[];for(var oe in Object(k))L.call(k,oe)&&oe!="constructor"&&ue.push(oe);return ue}function Er(k,H,ae,re,ue,oe){var U=1&ae,ne=k.length,ye=H.length;if(ne!=ye&&!(U&&ye>ne))return!1;var me=oe.get(k);if(me&&oe.get(H))return me==H;var Ae=-1,Ue=!0,rt=2&ae?new ir:void 0;for(oe.set(k,H),oe.set(H,k);++Ae<ne;){var et=k[Ae],Lt=H[Ae];if(re)var Kr=U?re(Lt,et,Ae,H,k,oe):re(et,Lt,Ae,k,H,oe);if(Kr!==void 0){if(Kr)continue;Ue=!1;break}if(rt){if(!V(H,function(fi,Da){if(ca=Da,!rt.has(ca)&&(et===fi||ue(et,fi,ae,re,oe)))return rt.push(Da);var ca})){Ue=!1;break}}else if(et!==Lt&&!ue(et,Lt,ae,re,oe)){Ue=!1;break}}return oe.delete(k),oe.delete(H),Ue}function Zt(k){return function(H,ae,re){var ue=ae(H);return ho(H)?ue:function(oe,U){for(var ne=-1,ye=U.length,me=oe.length;++ne<ye;)oe[me+ne]=U[ne];return oe}(ue,re(H))}(k,K,_0)}function tr(k,H){var ae,re,ue=k.__data__;return((re=typeof(ae=H))=="string"||re=="number"||re=="symbol"||re=="boolean"?ae!=="__proto__":ae===null)?ue[typeof H=="string"?"string":"hash"]:ue.map}function ci(k,H){var ae=function(re,ue){return re==null?void 0:re[ue]}(k,H);return Or(ae)?ae:void 0}wt.prototype.clear=function(){this.__data__=zt?zt(null):{},this.size=0},wt.prototype.delete=function(k){var H=this.has(k)&&delete this.__data__[k];return this.size-=H?1:0,H},wt.prototype.get=function(k){var H=this.__data__;if(zt){var ae=H[k];return ae===r?void 0:ae}return L.call(H,k)?H[k]:void 0},wt.prototype.has=function(k){var H=this.__data__;return zt?H[k]!==void 0:L.call(H,k)},wt.prototype.set=function(k,H){var ae=this.__data__;return this.size+=this.has(k)?0:1,ae[k]=zt&&H===void 0?r:H,this},Vt.prototype.clear=function(){this.__data__=[],this.size=0},Vt.prototype.delete=function(k){var H=this.__data__,ae=xe(H,k);return!(ae<0)&&(ae==H.length-1?H.pop():je.call(H,ae,1),--this.size,!0)},Vt.prototype.get=function(k){var H=this.__data__,ae=xe(H,k);return ae<0?void 0:H[ae][1]},Vt.prototype.has=function(k){return xe(this.__data__,k)>-1},Vt.prototype.set=function(k,H){var ae=this.__data__,re=xe(ae,k);return re<0?(++this.size,ae.push([k,H])):ae[re][1]=H,this},Ft.prototype.clear=function(){this.size=0,this.__data__={hash:new wt,map:new(ut||Vt),string:new wt}},Ft.prototype.delete=function(k){var H=tr(this,k).delete(k);return this.size-=H?1:0,H},Ft.prototype.get=function(k){return tr(this,k).get(k)},Ft.prototype.has=function(k){return tr(this,k).has(k)},Ft.prototype.set=function(k,H){var ae=tr(this,k),re=ae.size;return ae.set(k,H),this.size+=ae.size==re?0:1,this},ir.prototype.add=ir.prototype.push=function(k){return this.__data__.set(k,r),this},ir.prototype.has=function(k){return this.__data__.has(k)},An.prototype.clear=function(){this.__data__=new Vt,this.size=0},An.prototype.delete=function(k){var H=this.__data__,ae=H.delete(k);return this.size=H.size,ae},An.prototype.get=function(k){return this.__data__.get(k)},An.prototype.has=function(k){return this.__data__.has(k)},An.prototype.set=function(k,H){var ae=this.__data__;if(ae instanceof Vt){var re=ae.__data__;if(!ut||re.length<199)return re.push([k,H]),this.size=++ae.size,this;ae=this.__data__=new Ft(re)}return ae.set(k,H),this.size=ae.size,this};var _0=Ne?function(k){return k==null?[]:(k=Object(k),function(H,ae){for(var re=-1,ue=H==null?0:H.length,oe=0,U=[];++re<ue;){var ne=H[re];ae(ne,re,H)&&(U[oe++]=ne)}return U}(Ne(k),function(H){return z.call(k,H)}))}:function(){return[]},Ta=_e;function bc(k,H){return!!(H=H==null?n:H)&&(typeof k=="number"||S.test(k))&&k>-1&&k%1==0&&k<H}function po(k){if(k!=null){try{return I.call(k)}catch(H){}try{return k+""}catch(H){}}return""}function bu(k,H){return k===H||k!=k&&H!=H}(Je&&Ta(new Je(new ArrayBuffer(1)))!=b||ut&&Ta(new ut)!=c||_t&&Ta(_t.resolve())!=p||Qe&&Ta(new Qe)!=h||cr&&Ta(new cr)!=y)&&(Ta=function(k){var H=_e(k),ae=H==d?k.constructor:void 0,re=ae?po(ae):"";if(re)switch(re){case Se:return b;case at:return c;case Rt:return p;case fr:return h;case It:return y}return H});var wu=Ve(function(){return arguments}())?Ve:function(k){return R(k)&&L.call(k,"callee")&&!z.call(k,"callee")},ho=Array.isArray,Ii=He||function(){return!1};function wc(k){if(!G(k))return!1;var H=_e(k);return H==l||H=="[object GeneratorFunction]"||H=="[object AsyncFunction]"||H=="[object Proxy]"}function B(k){return typeof k=="number"&&k>-1&&k%1==0&&k<=n}function G(k){var H=typeof k;return k!=null&&(H=="object"||H=="function")}function R(k){return k!=null&&typeof k=="object"}var j=Z?function(k){return function(H){return k(H)}}(Z):function(k){return R(k)&&B(k.length)&&!!w[_e(k)]};function K(k){return(H=k)!=null&&B(H.length)&&!wc(H)?qo(k):dr(k);var H}e.exports=function(k,H){return ft(k,H)}});oi("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),oi("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var zH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bte(e){var t={exports:{}};return e(t,t.exports),t.exports}var Vu,Ix,D2=function(e){return e&&e.Math==Math&&e},Tt=D2(typeof globalThis=="object"&&globalThis)||D2(typeof window=="object"&&window)||D2(typeof self=="object"&&self)||D2(typeof zH=="object"&&zH)||function(){return this}()||Function("return this")(),Cn=function(e){try{return!!e()}catch(t){return!0}},nc=!Cn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),mv=Function.prototype.call,yn=mv.bind?mv.bind(mv):function(){return mv.apply(mv,arguments)},VH={}.propertyIsEnumerable,WH=Object.getOwnPropertyDescriptor,JHe={f:WH&&!VH.call({1:2},1)?function(e){var t=WH(this,e);return!!t&&t.enumerable}:VH},G9=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Pte=Function.prototype,MT=Pte.bind,jT=Pte.call,ZHe=MT&&MT.bind(jT),Pt=MT?function(e){return e&&ZHe(jT,e)}:function(e){return e&&function(){return jT.apply(e,arguments)}},QHe=Pt({}.toString),eze=Pt("".slice),Nl=function(e){return eze(QHe(e),8,-1)},M_=Tt.Object,tze=Pt("".split),Nte=Cn(function(){return!M_("z").propertyIsEnumerable(0)})?function(e){return Nl(e)=="String"?tze(e,""):M_(e)}:M_,rze=Tt.TypeError,ac=function(e){if(e==null)throw rze("Can't call method on "+e);return e},Zm=function(e){return Nte(ac(e))},sa=function(e){return typeof e=="function"},qi=function(e){return typeof e=="object"?e!==null:sa(e)},nze=function(e){return sa(e)?e:void 0},Qm=function(e,t){return arguments.length<2?nze(Tt[e]):Tt[e]&&Tt[e][t]},Ite=Pt({}.isPrototypeOf),j_=Qm("navigator","userAgent")||"",GH=Tt.process,KH=Tt.Deno,qH=GH&&GH.versions||KH&&KH.version,XH=qH&&qH.v8;XH&&(Ix=(Vu=XH.split("."))[0]>0&&Vu[0]<4?1:+(Vu[0]+Vu[1])),!Ix&&j_&&(!(Vu=j_.match(/Edge\/(\d+)/))||Vu[1]>=74)&&(Vu=j_.match(/Chrome\/(\d+)/))&&(Ix=+Vu[1]);var $T=Ix,UT=!!Object.getOwnPropertySymbols&&!Cn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$T&&$T<41}),K9=UT&&!Symbol.sham&&typeof Symbol.iterator=="symbol",aze=Tt.Object,$_=K9?function(e){return typeof e=="symbol"}:function(e){var t=Qm("Symbol");return sa(t)&&Ite(t.prototype,aze(e))},ize=Tt.String,Rte=function(e){try{return ize(e)}catch(t){return"Object"}},oze=Tt.TypeError,Lte=function(e){if(sa(e))return e;throw oze(Rte(e)+" is not a function")},q9=function(e,t){var r=e[t];return r==null?void 0:Lte(r)},sze=Tt.TypeError,uze=Object.defineProperty,X9=function(e,t){try{uze(Tt,e,{value:t,configurable:!0,writable:!0})}catch(r){Tt[e]=t}return t},Il=Tt["__core-js_shared__"]||X9("__core-js_shared__",{}),Y9=Bte(function(e){(e.exports=function(t,r){return Il[t]||(Il[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),lze=Tt.Object,J9=function(e){return lze(ac(e))},cze=Pt({}.hasOwnProperty),Zi=Object.hasOwn||function(e,t){return cze(J9(e),t)},fze=0,dze=Math.random(),pze=Pt(1 .toString),Mte=function(e){return"Symbol("+(e===void 0?"":e)+")_"+pze(++fze+dze,36)},yv=Y9("wks"),Df=Tt.Symbol,YH=Df&&Df.for,hze=K9?Df:Df&&Df.withoutSetter||Mte,fo=function(e){if(!Zi(yv,e)||!UT&&typeof yv[e]!="string"){var t="Symbol."+e;UT&&Zi(Df,e)?yv[e]=Df[e]:yv[e]=K9&&YH?YH(t):hze(t)}return yv[e]},vze=Tt.TypeError,gze=fo("toPrimitive"),Z9=function(e){var t=function(r,n){if(!qi(r)||$_(r))return r;var a,i=q9(r,gze);if(i){if(n===void 0&&(n="default"),a=yn(i,r,n),!qi(a)||$_(a))return a;throw vze("Can't convert object to primitive value")}return n===void 0&&(n="number"),function(o,s){var u,l;if(s==="string"&&sa(u=o.toString)&&!qi(l=yn(u,o))||sa(u=o.valueOf)&&!qi(l=yn(u,o))||s!=="string"&&sa(u=o.toString)&&!qi(l=yn(u,o)))return l;throw sze("Can't convert object to primitive value")}(r,n)}(e,"string");return $_(t)?t:t+""},HT=Tt.document,mze=qi(HT)&&qi(HT.createElement),Q9=function(e){return mze?HT.createElement(e):{}},jte=!nc&&!Cn(function(){return Object.defineProperty(Q9("div"),"a",{get:function(){return 7}}).a!=7}),JH=Object.getOwnPropertyDescriptor,$te={f:nc?JH:function(e,t){if(e=Zm(e),t=Z9(t),jte)try{return JH(e,t)}catch(r){}if(Zi(e,t))return G9(!yn(JHe.f,e,t),e[t])}},yze=Tt.String,xze=Tt.TypeError,Qi=function(e){if(qi(e))return e;throw xze(yze(e)+" is not an object")},bze=Tt.TypeError,ZH=Object.defineProperty,ey={f:nc?ZH:function(e,t,r){if(Qi(e),t=Z9(t),Qi(r),jte)try{return ZH(e,t,r)}catch(n){}if("get"in r||"set"in r)throw bze("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Bp=nc?function(e,t,r){return ey.f(e,t,G9(1,r))}:function(e,t,r){return e[t]=r,e},wze=Pt(Function.toString);sa(Il.inspectSource)||(Il.inspectSource=function(e){return wze(e)});var Vw,Ng,Ww,e7=Il.inspectSource,QH=Tt.WeakMap,Eze=sa(QH)&&/native code/.test(e7(QH)),ez=Y9("keys"),Ute=function(e){return ez[e]||(ez[e]=Mte(e))},t7={},zT=Tt.TypeError,Sze=Tt.WeakMap;if(Eze||Il.state){var Bc=Il.state||(Il.state=new Sze),Cze=Pt(Bc.get),tz=Pt(Bc.has),_ze=Pt(Bc.set);Vw=function(e,t){if(tz(Bc,e))throw new zT("Object already initialized");return t.facade=e,_ze(Bc,e,t),t},Ng=function(e){return Cze(Bc,e)||{}},Ww=function(e){return tz(Bc,e)}}else{var Y0=Ute("state");t7[Y0]=!0,Vw=function(e,t){if(Zi(e,Y0))throw new zT("Object already initialized");return t.facade=e,Bp(e,Y0,t),t},Ng=function(e){return Zi(e,Y0)?e[Y0]:{}},Ww=function(e){return Zi(e,Y0)}}var VT={set:Vw,get:Ng,has:Ww,enforce:function(e){return Ww(e)?Ng(e):Vw(e,{})},getterFor:function(e){return function(t){var r;if(!qi(t)||(r=Ng(t)).type!==e)throw zT("Incompatible receiver, "+e+" required");return r}}},Hte=Function.prototype,Aze=nc&&Object.getOwnPropertyDescriptor,U_=Zi(Hte,"name"),r7={EXISTS:U_,PROPER:U_&&function(){}.name==="something",CONFIGURABLE:U_&&(!nc||nc&&Aze(Hte,"name").configurable)},N1=Bte(function(e){var t=r7.CONFIGURABLE,r=VT.get,n=VT.enforce,a=String(String).split("String");(e.exports=function(i,o,s,u){var l,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,p=u&&u.name!==void 0?u.name:o;sa(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Zi(s,"name")||t&&s.name!==p)&&Bp(s,"name",p),(l=n(s)).source||(l.source=a.join(typeof p=="string"?p:""))),i!==Tt?(c?!d&&i[o]&&(f=!0):delete i[o],f?i[o]=s:Bp(i,o,s)):f?i[o]=s:X9(o,s)})(Function.prototype,"toString",function(){return sa(this)&&r(this).source||e7(this)})}),kze=Math.ceil,Tze=Math.floor,U4=function(e){var t=+e;return t!=t||t===0?0:(t>0?Tze:kze)(t)},Dze=Math.max,Oze=Math.min,I1=function(e,t){var r=U4(e);return r<0?Dze(r+t,0):Oze(r,t)},Fze=Math.min,n7=function(e){return e>0?Fze(U4(e),9007199254740991):0},H4=function(e){return n7(e.length)},Bze=function(e){return function(t,r,n){var a,i=Zm(t),o=H4(i),s=I1(n,o);if(e&&r!=r){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},Pze=Bze(!1),rz=Pt([].push),zte=function(e,t){var r,n=Zm(e),a=0,i=[];for(r in n)!Zi(t7,r)&&Zi(n,r)&&rz(i,r);for(;t.length>a;)Zi(n,r=t[a++])&&(~Pze(i,r)||rz(i,r));return i},Gw=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nze=Gw.concat("length","prototype"),Ize={f:Object.getOwnPropertyNames||function(e){return zte(e,Nze)}},Rze={f:Object.getOwnPropertySymbols},Lze=Pt([].concat),Mze=Qm("Reflect","ownKeys")||function(e){var t=Ize.f(Qi(e)),r=Rze.f;return r?Lze(t,r(e)):t},jze=function(e,t){for(var r=Mze(t),n=ey.f,a=$te.f,i=0;i<r.length;i++){var o=r[i];Zi(e,o)||n(e,o,a(t,o))}},$ze=/#|\.prototype\./,ty=function(e,t){var r=Hze[Uze(e)];return r==Vze||r!=zze&&(sa(t)?Cn(t):!!t)},Uze=ty.normalize=function(e){return String(e).replace($ze,".").toLowerCase()},Hze=ty.data={},zze=ty.NATIVE="N",Vze=ty.POLYFILL="P",Wze=ty,Gze=$te.f,ic=function(e,t){var r,n,a,i,o,s=e.target,u=e.global,l=e.stat;if(r=u?Tt:l?Tt[s]||X9(s,{}):(Tt[s]||{}).prototype)for(n in t){if(i=t[n],a=e.noTargetGet?(o=Gze(r,n))&&o.value:r[n],!Wze(u?n:s+(l?".":"#")+n,e.forced)&&a!==void 0){if(typeof i==typeof a)continue;jze(i,a)}(e.sham||a&&a.sham)&&Bp(i,"sham",!0),N1(r,n,i,e)}},Vte={};Vte[fo("toStringTag")]="z";var a7=String(Vte)==="[object z]",Kze=fo("toStringTag"),qze=Tt.Object,Xze=Nl(function(){return arguments}())=="Arguments",i7=a7?Nl:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(a,i){try{return a[i]}catch(o){}}(t=qze(e),Kze))=="string"?r:Xze?Nl(t):(n=Nl(t))=="Object"&&sa(t.callee)?"Arguments":n},Yze=Tt.String,ma=function(e){if(i7(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Yze(e)},Jze=/"/g,Zze=Pt("".replace);ic({target:"String",proto:!0,forced:Cn(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,r=ma(ac(this)),n="<a",(n+=' name="'+Zze(ma(t),Jze,""")+'"')+">"+r+"</a>";var t,r,n}});var O2,Wte=function(){var e=Qi(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},o7=Tt.RegExp,WT=Cn(function(){var e=o7("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Qze=WT||Cn(function(){return!o7("a","y").sticky}),Gte={BROKEN_CARET:WT||Cn(function(){var e=o7("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Qze,UNSUPPORTED_Y:WT},eVe=Object.keys||function(e){return zte(e,Gw)},tVe=nc?Object.defineProperties:function(e,t){Qi(e);for(var r,n=Zm(t),a=eVe(t),i=a.length,o=0;i>o;)ey.f(e,r=a[o++],n[r]);return e},rVe=Qm("document","documentElement"),Kte=Ute("IE_PROTO"),H_=function(){},qte=function(e){return"<script>"+e+"<\/script>"},nz=function(e){e.write(qte("")),e.close();var t=e.parentWindow.Object;return e=null,t},Rx=function(){try{O2=new ActiveXObject("htmlfile")}catch(n){}var e,t;Rx=typeof document<"u"?document.domain&&O2?nz(O2):((t=Q9("iframe")).style.display="none",rVe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(qte("document.F=Object")),e.close(),e.F):nz(O2);for(var r=Gw.length;r--;)delete Rx.prototype[Gw[r]];return Rx()};t7[Kte]=!0;var az,z_,Xte=Object.create||function(e,t){var r;return e!==null?(H_.prototype=Qi(e),r=new H_,H_.prototype=null,r[Kte]=e):r=Rx(),t===void 0?r:tVe(r,t)},nVe=Tt.RegExp,aVe=Cn(function(){var e=nVe(".","s");return!(e.dotAll&&e.exec(`
|
||
`)&&e.flags==="s")}),iVe=Tt.RegExp,oVe=Cn(function(){var e=iVe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),sVe=VT.get,uVe=Y9("native-string-replace",String.prototype.replace),Kw=RegExp.prototype.exec,GT=Kw,lVe=Pt("".charAt),cVe=Pt("".indexOf),fVe=Pt("".replace),V_=Pt("".slice),W_=(z_=/b*/g,yn(Kw,az=/a/,"a"),yn(Kw,z_,"a"),az.lastIndex!==0||z_.lastIndex!==0),iz=Gte.BROKEN_CARET,G_=/()??/.exec("")[1]!==void 0;(W_||G_||iz||aVe||oVe)&&(GT=function(e){var t,r,n,a,i,o,s,u=this,l=sVe(u),c=ma(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=yn(GT,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=iz&&u.sticky,v=yn(Wte,u),h=u.source,g=0,m=c;if(p&&(v=fVe(v,"y",""),cVe(v,"g")===-1&&(v+="g"),m=V_(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&lVe(c,u.lastIndex-1)!==`
|
||
`)&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),G_&&(r=new RegExp("^"+h+"$(?!\\s)",v)),W_&&(n=u.lastIndex),a=yn(Kw,p?r:u,m),p?a?(a.input=V_(a.input,g),a[0]=V_(a[0],g),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:W_&&a&&(u.lastIndex=u.global?a.index+a[0].length:n),G_&&a&&a.length>1&&yn(uVe,a[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(a[i]=void 0)}),a&&d)for(a.groups=o=Xte(null),i=0;i<d.length;i++)o[(s=d[i])[0]]=a[s[1]];return a});var R1=GT;ic({target:"RegExp",proto:!0,forced:/./.exec!==R1},{exec:R1});var qw=Array.isArray||function(e){return Nl(e)=="Array"},Yte=function(){},dVe=[],Jte=Qm("Reflect","construct"),s7=/^\s*(?:class|function)\b/,pVe=Pt(s7.exec),hVe=!s7.exec(Yte),xv=function(e){if(!sa(e))return!1;try{return Jte(Yte,dVe,e),!0}catch(t){return!1}},u7=!Jte||Cn(function(){var e;return xv(xv.call)||!xv(Object)||!xv(function(){e=!0})||e})?function(e){if(!sa(e))return!1;switch(i7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return hVe||!!pVe(s7,e7(e))}:xv,Zte=function(e,t,r){var n=Z9(t);n in e?ey.f(e,n,G9(0,r)):e[n]=r},vVe=fo("species"),l7=function(e){return $T>=51||!Cn(function(){var t=[];return(t.constructor={})[vVe]=function(){return{foo:1}},t[e](Boolean).foo!==1})},gVe=Pt([].slice),mVe=l7("slice"),yVe=fo("species"),K_=Tt.Array,xVe=Math.max;function Wo(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}function oz(e){var t=e.selection;if(t==null)return!1;var r=Wo(D.nodes(e,{match:function(i){return X.checkNodeType(i,"table-cell")}}),1)[0];if(r){var n=Wo(r,2)[1],a=D.start(e,n);if(St.equals(t.anchor,a))return!0}return!1}function sz(e,t){var r,n,a=D.nodes(e,{at:t,match:function(u){return X.getNodeType(u)==="table"}}),i=!1;try{for(var o=function(u){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&u[l],f=0;if(c)return c.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&f>=u.length&&(u=void 0),{value:u&&u[f++],done:!u}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(a),s=o.next();!s.done;s=o.next())s.value,i=!0}catch(u){r={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i}ic({target:"Array",proto:!0,forced:!mVe},{slice:function(e,t){var r,n,a,i=Zm(this),o=H4(i),s=I1(e,o),u=I1(t===void 0?o:t,o);if(qw(i)&&(r=i.constructor,(u7(r)&&(r===K_||qw(r.prototype))||qi(r)&&(r=r[yVe])===null)&&(r=void 0),r===K_||r===void 0))return gVe(i,s,u);for(n=new(r===void 0?K_:r)(xVe(u-s,0)),a=0;s<u;s++,a++)s in i&&Zte(n,a,i[s]);return n.length=a,n}});var uz=Pt(Pt.bind),bVe=fo("species"),lz=Tt.Array,wVe=function(e,t){return new(function(r){var n;return qw(r)&&(n=r.constructor,(u7(n)&&(n===lz||qw(n.prototype))||qi(n)&&(n=n[bVe])===null)&&(n=void 0)),n===void 0?lz:n}(e))(t===0?0:t)},cz=Pt([].push),Wu=function(e){var t=e==1,r=e==2,n=e==3,a=e==4,i=e==6,o=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,v=J9(u),h=Nte(v),g=function(E,S){return Lte(E),S===void 0?E:uz?uz(E,S):function(){return E.apply(S,arguments)}}(l,c),m=H4(h),y=0,x=f||wVe,b=t?x(u,m):r||o?x(u,0):void 0;m>y;y++)if((s||y in h)&&(p=g(d=h[y],y,v),e))if(t)b[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:cz(b,d)}else switch(e){case 4:return!1;case 7:cz(b,d)}return i?-1:n||a?a:b}},z4={forEach:Wu(0),map:Wu(1),filter:Wu(2),some:Wu(3),every:Wu(4),find:Wu(5),findIndex:Wu(6),filterReject:Wu(7)},EVe=z4.map;ic({target:"Array",proto:!0,forced:!l7("map")},{map:function(e){return EVe(this,e,arguments.length>1?arguments[1]:void 0)}});var SVe=a7?{}.toString:function(){return"[object "+i7(this)+"]"};function V4(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function Qte(e){return V4(e).every(function(t){return!!t.isHeader})}a7||N1(Object.prototype,"toString",SVe,{unsafe:!0});var CVe=r7.PROPER,KT=RegExp.prototype,ere=KT.toString,_Ve=Pt(Wte),AVe=Cn(function(){return ere.call({source:"a",flags:"b"})!="/a/b"}),kVe=CVe&&ere.name!="toString";(AVe||kVe)&&N1(RegExp.prototype,"toString",function(){var e=Qi(this),t=ma(e.source),r=e.flags;return"/"+t+"/"+ma(r===void 0&&Ite(KT,e)&&!("flags"in KT)?_Ve(e):r)},{unsafe:!0});var qT=fo("unscopables"),XT=Array.prototype;XT[qT]==null&&ey.f(XT,qT,{configurable:!0,value:Xte(null)});var TVe=z4.find,fz=!0;"find"in[]&&Array(1).find(function(){fz=!1}),ic({target:"Array",proto:!0,forced:fz},{find:function(e){return TVe(this,e,arguments.length>1?arguments[1]:void 0)}}),XT[qT].find=!0;var c7=Function.prototype,dz=c7.apply,DVe=c7.bind,pz=c7.call,tre=typeof Reflect=="object"&&Reflect.apply||(DVe?pz.bind(dz):function(){return pz.apply(dz,arguments)}),OVe=fo("species"),q_=RegExp.prototype,rre=function(e,t,r,n){var a=fo(e),i=!Cn(function(){var l={};return l[a]=function(){return 7},""[e](l)!=7}),o=i&&!Cn(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[OVe]=function(){return c},c.flags="",c[a]=/./[a]),c.exec=function(){return l=!0,null},c[a](""),!l});if(!i||!o||r){var s=Pt(/./[a]),u=t(a,""[e],function(l,c,f,d,p){var v=Pt(l),h=c.exec;return h===R1||h===q_.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});N1(String.prototype,e,u[0]),N1(q_,a,u[1])}n&&Bp(q_[a],"sham",!0)},FVe=fo("match"),BVe=Tt.TypeError,PVe=fo("species"),NVe=Pt("".charAt),hz=Pt("".charCodeAt),IVe=Pt("".slice),RVe=function(e){return function(t,r){var n,a,i=ma(ac(t)),o=U4(r),s=i.length;return o<0||o>=s?e?"":void 0:(n=hz(i,o))<55296||n>56319||o+1===s||(a=hz(i,o+1))<56320||a>57343?e?NVe(i,o):n:e?IVe(i,o,o+2):a-56320+(n-55296<<10)+65536}},LVe=RVe(!0),nre=function(e,t,r){return t+(r?LVe(e,t).length:1)},MVe=Tt.Array,jVe=Math.max,vz=function(e,t,r){for(var n=H4(e),a=I1(t,n),i=I1(r===void 0?n:r,n),o=MVe(jVe(i-a,0)),s=0;a<i;a++,s++)Zte(o,s,e[a]);return o.length=s,o},$Ve=Tt.TypeError,YT=function(e,t){var r=e.exec;if(sa(r)){var n=yn(r,e,t);return n!==null&&Qi(n),n}if(Nl(e)==="RegExp")return yn(R1,e,t);throw $Ve("RegExp#exec called on incompatible receiver")},J0=Gte.UNSUPPORTED_Y,UVe=Math.min,are=[].push,HVe=Pt(/./.exec),Z0=Pt(are),bv=Pt("".slice);rre("split",function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(a,i){var o,s,u=ma(ac(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(a===void 0)return[u];if(!qi(o=a)||!((s=o[FVe])!==void 0?s:Nl(o)=="RegExp"))return yn(t,u,a,l);for(var c,f,d,p=[],v=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),h=0,g=new RegExp(a.source,v+"g");(c=yn(R1,g,u))&&!((f=g.lastIndex)>h&&(Z0(p,bv(u,h,c.index)),c.length>1&&c.index<u.length&&tre(are,p,vz(c,1)),d=c[0].length,h=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return h===u.length?!d&&HVe(g,"")||Z0(p,""):Z0(p,bv(u,h)),p.length>l?vz(p,0,l):p}:"0".split(void 0,0).length?function(a,i){return a===void 0&&i===0?[]:yn(t,this,a,i)}:t,[function(a,i){var o=ac(this),s=a==null?void 0:q9(a,e);return s?yn(s,a,o,i):yn(n,ma(o),a,i)},function(a,i){var o=Qi(this),s=ma(a),u=r(n,o,s,i,n!==t);if(u.done)return u.value;var l=function(b,E){var S,w=Qi(b).constructor;return w===void 0||(S=Qi(w)[PVe])==null?E:function(C){if(u7(C))return C;throw BVe(Rte(C)+" is not a constructor")}(S)}(o,RegExp),c=o.unicode,f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(J0?"g":"y"),d=new l(J0?"^(?:"+o.source+")":o,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(s.length===0)return YT(d,s)===null?[s]:[];for(var v=0,h=0,g=[];h<s.length;){d.lastIndex=J0?0:h;var m,y=YT(d,J0?bv(s,h):s);if(y===null||(m=UVe(n7(d.lastIndex+(J0?h:0)),s.length))===v)h=nre(s,h,c);else{if(Z0(g,bv(s,v,h)),g.length===p)return g;for(var x=1;x<=y.length-1;x++)if(Z0(g,y[x]),g.length===p)return g;h=v=m}}return Z0(g,bv(s,v)),g}]},!!Cn(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),J0);var JT=`
|
||
\v\f\r \u2028\u2029\uFEFF`,gz=Pt("".replace),Xw="["+JT+"]",zVe=RegExp("^"+Xw+Xw+"*"),VVe=RegExp(Xw+Xw+"*$"),X_=function(e){return function(t){var r=ma(ac(t));return 1&e&&(r=gz(r,zVe,"")),2&e&&(r=gz(r,VVe,"")),r}},WVe={start:X_(1),end:X_(2),trim:X_(3)},GVe=r7.PROPER,KVe=WVe.trim;function ire(e){return e.length?e[0].tagName.toLowerCase():""}ic({target:"String",proto:!0,forced:function(e){return Cn(function(){return!!JT[e]()||"
"[e]()!=="
"||GVe&&JT[e].name!==e})}("trim")},{trim:function(){return KVe(this)}}),ic({global:!0},{globalThis:Tt}),io&&(te.fn.append=io),_s&&(te.fn.on=_s),Jl&&(te.fn.focus=Jl),ao&&(te.fn.attr=ao),Cs&&(te.fn.val=Cs),Yl&&(te.fn.html=Yl),vp&&(te.fn.dataset=vp),dp&&(te.fn.addClass=dp),pp&&(te.fn.removeClass=pp),xp&&(te.fn.children=xp),Jb&&(te.fn.each=Jb),yp&&(te.fn.find=yp);var L1=!1,ore=0,sre=0,M1=null,j1=null,Ig=te("body");function ure(e){L1=!1,j1=null,M1=null,Ig.off("mousemove",lre),Ig.off("mouseup",ure)}Ig.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),L1=!0;var r=e.clientX;ore=r;var n=t.getBoundingClientRect().width;sre=n,Ig.on("mousemove",lre),Ig.on("mouseup",ure)}});var lre=Wf(function(e){if(L1&&j1!=null&&M1!=null){e.preventDefault();var t=e.clientX,r=sre+(t-ore);(r=Math.floor(100*r)/100)<30&&(r=30),pe.setNodes(j1,{width:r.toString()},{at:M1})}},100),qVe={type:"table",renderElem:function(e,t,r){var n=function(s,u){if(s.isDisabled())return!1;var l=s.selection;if(l==null||be.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,d=X.findPath(s,u),p=D.start(s,d),v=D.end(s,d),h=St.compare(c,v)<=0&&St.compare(c,p)>=0,g=St.compare(f,v)<=0&&St.compare(f,p)>=0;return!!(h&&g&&se.equals(c.path.slice(0,3),f.path.slice(0,3)))}(r,e),a=e.width,i=a===void 0?"auto":a,o=ot("div",{className:"table-container","data-selected":X.isNodeSelected(r,e),on:{mousedown:function(s){if(s.target.tagName==="DIV"&&s.preventDefault(),!r.isDisabled()){var u=X.findPath(r,e),l=D.start(r,u),c=r.selection;c!=null?c.anchor.path[0]!==u[0]&&r.select(l):r.select(l)}}}},ot("table",{width:i,contentEditable:n},ot("colgroup",null,V4(e).map(function(s){var u=s.width;return ot("col",{width:u===void 0?"auto":u})})),ot("tbody",null,t)));return o}},XVe={type:"table-row",renderElem:function(e,t,r){return ot("tr",null,t)}},YVe={type:"table-cell",renderElem:function(e,t,r){var n=function(d,p){var v=X.getParentNode(d,p);if(v==null)return!1;var h=X.getParentNode(d,v);return h!=null&&V4(h).some(function(g){return g===p})}(r,e),a=e,i=a.colSpan,o=i===void 0?1:i,s=a.rowSpan,u=s===void 0?1:s,l=a.isHeader,c=l!==void 0&&l;if(!n)return ot("td",{colSpan:o,rowSpan:u},t);var f=ot(c?"th":"td",{colSpan:o,rowSpan:u,style:{borderRightWidth:"3px"},on:{mousemove:Wf(function(d){var p=this.elm;if(p!=null){var v=p.getBoundingClientRect(),h=v.left,g=v.width,m=v.top,y=v.height,x=d.clientX,b=d.clientY;L1||(x>h+g-5&&x<h+g&&b>m&&b<m+y?(p.style.cursor="col-resize",j1=r,M1=X.findPath(r,e)):L1||(p.style.cursor="auto",j1=null,M1=null))}},100)}},t);return f}},JVe={selector:"table",preParseHtml:function(e){var t=te(e);if(ire(t)!=="table")return e;var r=t.find("tbody");if(r.length===0)return e;var n=t.find("tr");return t.append(n),r.remove(),t[0]}},ZVe=z4.filter;ic({target:"Array",proto:!0,forced:!l7("filter")},{filter:function(e){return ZVe(this,e,arguments.length>1?arguments[1]:void 0)}});var QVe=Math.floor,Y_=Pt("".charAt),eWe=Pt("".replace),J_=Pt("".slice),tWe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,rWe=/\$([$&'`]|\d{1,2})/g,nWe=function(e,t,r,n,a,i){var o=r+e.length,s=n.length,u=rWe;return a!==void 0&&(a=J9(a),u=tWe),eWe(i,u,function(l,c){var f;switch(Y_(c,0)){case"$":return"$";case"&":return e;case"`":return J_(t,0,r);case"'":return J_(t,o);case"<":f=a[J_(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>s){var p=QVe(d/10);return p===0?l:p<=s?n[p-1]===void 0?Y_(c,1):n[p-1]+Y_(c,1):l}f=n[d-1]}return f===void 0?"":f})},ZT=fo("replace"),aWe=Math.max,iWe=Math.min,oWe=Pt([].concat),Z_=Pt([].push),mz=Pt("".indexOf),yz=Pt("".slice),sWe="a".replace(/./,"$0")==="$0",xz=!!/./[ZT]&&/./[ZT]("a","$0")==="";rre("replace",function(e,t,r){var n=xz?"$":"$0";return[function(a,i){var o=ac(this),s=a==null?void 0:q9(a,ZT);return s?yn(s,a,o,i):yn(t,ma(o),a,i)},function(a,i){var o=Qi(this),s=ma(a);if(typeof i=="string"&&mz(i,n)===-1&&mz(i,"$<")===-1){var u=r(t,o,s,i);if(u.done)return u.value}var l=sa(i);l||(i=ma(i));var c=o.global;if(c){var f=o.unicode;o.lastIndex=0}for(var d=[];;){var p=YT(o,s);if(p===null||(Z_(d,p),!c))break;ma(p[0])===""&&(o.lastIndex=nre(s,n7(o.lastIndex),f))}for(var v,h="",g=0,m=0;m<d.length;m++){for(var y=ma((p=d[m])[0]),x=aWe(iWe(U4(p.index),s.length),0),b=[],E=1;E<p.length;E++)Z_(b,(v=p[E])===void 0?v:String(v));var S=p.groups;if(l){var w=oWe([y],b,x,s);S!==void 0&&Z_(w,S);var C=ma(tre(i,void 0,w))}else C=nWe(y,s,x,b,S,i);x>=g&&(h+=yz(s,g,x)+C,g=x+y.length)}return h+yz(s,g)}]},!!Cn(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!sWe||xz);var uWe={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=te(e);(t=t.filter(function(s){return!!$e.isText(s)||!!r.isInline(s)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var a=parseInt(n.attr("colSpan")||"1"),i=parseInt(n.attr("rowSpan")||"1"),o=n.attr("width")||"auto";return{type:"table-cell",isHeader:ire(n)==="th",colSpan:a,rowSpan:i,width:o,children:t}}},lWe={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,r){return{type:"table-row",children:t.filter(function(n){return X.getNodeType(n)==="table-cell"})}}},cWe={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=te(e),a="auto";return function(i,o){for(var s="",u=(i.attr("style")||"").split(";"),l=u.length,c=0;c<l;c++){var f=u[c];if(f){var d=f.split(":");d[0].trim()==="width"&&(s=d[1].trim())}}return s}(n)==="100%"&&(a="100%"),n.attr("width")==="100%"&&(a="100%"),{type:"table",width:a,children:t.filter(function(i){return X.getNodeType(i)==="table-row"})}}},fWe=function(){function e(){this.title=Re("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!be.isCollapsed(r)||!!X.getSelectedElems(t).some(function(n){var a=X.getNodeType(n);return a==="pre"||a==="table"||a==="list-item"||!!t.isVoid(n)})},e.prototype.getPanelContentElem=function(t){var r=this;if(this.$content)return this.$content[0];for(var n=te('<div class="w-e-panel-content-table"></div>'),a=te("<span>0 × 0</span>"),i=te("<table></table>"),o=0;o<10;o++){for(var s=te("<tr></tr>"),u=0;u<10;u++){var l=te("<td></td>");l.attr("data-x",u.toString()),l.attr("data-y",o.toString()),s.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var d=te(f).dataset(),p=d.x,v=d.y;a[0].innerHTML=p+1+" × "+(v+1),i.children().each(function(h){te(h).children().each(function(g){var m=te(g),y=m.dataset(),x=y.x,b=y.y;x<=p&&b<=v?m.addClass("active"):m.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var d=te(f).dataset(),p=d.x,v=d.y;r.insertTable(t,v+1,p+1)}})}i.append(s)}return n.append(i),n.append(a),this.$content=n,n[0]},e.prototype.insertTable=function(t,r,n){var a=parseInt(r,10),i=parseInt(n,10);if(a&&i&&!(a<=0||i<=0)){X.isSelectedEmptyParagraph(t)&&pe.removeNodes(t,{mode:"highest"});var o=function(s,u){for(var l=[],c=0;c<s;c++){for(var f=[],d=0;d<u;d++){var p={type:"table-cell",children:[{text:""}]};c===0&&(p.isHeader=!0),f.push(p)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(a,i);pe.insertNodes(t,o,{mode:"highest"})}},e}(),dWe=function(){function e(){this.title=Re("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||X.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){this.isDisabled(t)||pe.removeNodes(t,{mode:"highest"})},e}(),pWe=function(){function e(){this.title=Re("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!be.isCollapsed(r)||X.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=Wo(D.nodes(t,{match:function(p){return X.checkNodeType(p,"table-cell")},universal:!0}),1),a=Wo(n[0],2),i=a[0],o=a[1],s=X.getParentNode(t,i),u=(s==null?void 0:s.children.length)||0;if(u!==0){for(var l={type:"table-row",children:[]},c=0;c<u;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=se.parent(o),d=se.next(f);pe.insertNodes(t,l,{at:d})}}},e}(),hWe=function(){function e(){this.title=Re("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!be.isCollapsed(r)||X.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=Wo(D.nodes(t,{match:function(u){return X.checkNodeType(u,"table-row")},universal:!0}),1),a=Wo(n[0],2),i=a[0],o=a[1],s=X.getParentNode(t,i);((s==null?void 0:s.children.length)||0)<=1?pe.removeNodes(t,{mode:"highest"}):pe.removeNodes(t,{at:o})}},e}(),bz={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},Q_=Q9("span").classList,wz=Q_&&Q_.constructor&&Q_.constructor.prototype,vWe=wz===Object.prototype?void 0:wz,gWe=z4.forEach,mWe=function(e,t){var r=[].forEach;return!!r&&Cn(function(){r.call(null,function(){throw 1},1)})}(),eA=mWe?[].forEach:function(e){return gWe(this,e,arguments.length>1?arguments[1]:void 0)},cre=function(e){if(e&&e.forEach!==eA)try{Bp(e,"forEach",eA)}catch(t){e.forEach=eA}};for(var tA in bz)bz[tA]&&cre(Tt[tA]&&Tt[tA].prototype);cre(vWe);var yWe=function(){function e(){this.title=Re("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!be.isCollapsed(r)||X.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=Wo(D.nodes(t,{match:function(l){return X.checkNodeType(l,"table-cell")},universal:!0}),1),a=Wo(n[0],2),i=a[0],o=a[1],s=X.getParentNode(t,i);if(s!=null){var u=X.getParentNode(t,s);u!=null&&(u.children||[]).forEach(function(l,c){qe.isElement(l)&&(l.children||[]).forEach(function(f){var d=X.findPath(t,f);if(d.length===o.length&&Fte(d.slice(-1),o.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&Qte(u)&&(p.isHeader=!0),pe.insertNodes(t,p,{at:d})}})})}}},e}(),xWe=function(){function e(){this.title=Re("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!be.isCollapsed(r)||X.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=Wo(D.nodes(t,{match:function(c){return X.checkNodeType(c,"table-cell")},universal:!0}),1),a=Wo(n[0],2),i=a[0],o=a[1],s=X.getParentNode(t,i),u=(s==null?void 0:s.children.length)||0;if(!s||u<=1)pe.removeNodes(t,{mode:"highest"});else{var l=X.getParentNode(t,s);l!=null&&(l.children||[]).forEach(function(c){qe.isElement(c)&&(c.children||[]).forEach(function(f){var d=X.findPath(t,f);d.length===o.length&&Fte(d.slice(-1),o.slice(-1))&&pe.removeNodes(t,{at:d})})})}}},e}(),bWe=function(){function e(){this.title=Re("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var r=X.getSelectedNodeByType(t,"table");return r!=null&&Qte(r)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!be.isCollapsed(r)||X.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=!r,a=X.getSelectedNodeByType(t,"table");a!=null&&V4(a).forEach(function(i){return pe.setNodes(t,{isHeader:n},{at:X.findPath(t,i)})})}},e}(),wWe=function(){function e(){this.title=Re("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var r=X.getSelectedNodeByType(t,"table");return r!=null&&r.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!be.isCollapsed(r)||X.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n={width:r?"auto":"100%"};pe.setNodes(t,n,{mode:"highest"})}},e}(),EWe={renderElems:[qVe,XVe,YVe],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var r=e.width;return'<table style="width: '+(r===void 0?"auto":r)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var r=e,n=r.colSpan,a=n===void 0?1:n,i=r.rowSpan,o=i===void 0?1:i,s=r.isHeader,u=s!==void 0&&s,l=r.width,c=u?"th":"td";return"<"+c+' colSpan="'+a+'" rowSpan="'+o+'" width="'+(l===void 0?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[JVe],parseElemsHtml:[uWe,lWe,cWe],menus:[{key:"insertTable",factory:function(){return new fWe}},{key:"deleteTable",factory:function(){return new dWe}},{key:"insertTableRow",factory:function(){return new pWe}},{key:"deleteTableRow",factory:function(){return new hWe}},{key:"insertTableCol",factory:function(){return new yWe}},{key:"deleteTableCol",factory:function(){return new xWe}},{key:"tableHeader",factory:function(){return new bWe}},{key:"tableFullWidth",factory:function(){return new wWe}}],editorPlugin:function(e){var t=e.insertBreak,r=e.deleteBackward,n=e.deleteForward,a=e.normalizeNode,i=e.insertData,o=e.handleTab,s=e.selectAll,u=e;return u.insertBreak=function(){X.getSelectedNodeByType(u,"table")==null?t():u.insertText(`
|
||
`)},u.deleteBackward=function(l){if(!oz(u)){var c=u.selection;if(c){var f=D.before(u,c);if(f){var d=sz(u,f),p=sz(u,c);if(d&&!p)return}}r(l)}},u.handleTab=function(){var l;if(X.getSelectedNodeByType(u,"table")){var c=D.above(e);X.checkNodeType(c[0],"table-cell")&&pe.select(e,c[1]);var f=D.next(e);if(f)f[0]&&f[0].text&&(f=(l=D.above(e,{at:f[1]}))!==null&&l!==void 0?l:f),pe.select(e,f[1]);else{var d=u.children||[],p=d.length;if(X.checkNodeType(d[p-1],"table")){var v=X.genEmptyParagraph();pe.insertNodes(u,v,{at:[p]}),u.handleTab()}}}else o()},u.deleteForward=function(l){oz(u)||n(l)},u.normalizeNode=function(l){var c=Wo(l,2),f=c[0],d=c[1];if(X.getNodeType(f)!=="table")return a([f,d]);if(X.isLastNode(u,f)){var p=X.genEmptyParagraph();pe.insertNodes(u,p,{at:[d[0]+1]})}},u.insertData=function(l){if(X.getSelectedNodeByType(u,"table")!=null){var c=l.getData("text/plain");c===`
|
||
`||/<img[^>]+>/.test(l.getData("text/html"))?i(l):D.insertText(u,c)}else i(l)},u.selectAll=function(){var l=u.selection;if(l!=null){var c=X.getSelectedNodeByType(u,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(se.equals(f.path.slice(0,3),d.path.slice(0,3)))if(Ie.string(c).length!==0){var p=X.findPath(u,c),v={anchor:D.start(u,p),focus:D.end(u,p)};u.select(v)}else s();else s()}else s()}else s()},u}};oi("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),oi("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var Yw=function(){return Yw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Yw.apply(this,arguments)};function W4(e,t,r,n){return new(r||(r=Promise))(function(a,i){function o(l){try{u(n.next(l))}catch(c){i(c)}}function s(l){try{u(n.throw(l))}catch(c){i(c)}}function u(l){var c;l.done?a(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(o,s)}u((n=n.apply(e,t||[])).next())})}function G4(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&c[0]?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||c[0]!==6&&c[0]!==2)){o=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(c[0]===6&&o.label<a[1]){o.label=a[1],a=c;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(f){c=[6,f],n=0}finally{r=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([u,l])}}}function Of(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}function SWe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=function(a){var i=typeof Symbol=="function"&&Symbol.iterator,o=i&&a[i],s=0;if(o)return o.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&s>=a.length&&(a=void 0),{value:a&&a[s++],done:!a}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(a){t[a]=e[a]&&function(i){return new Promise(function(o,s){(function(u,l,c,f){Promise.resolve(f).then(function(d){u({value:d,done:c})},l)})(o,s,(i=e[a](i)).done,i.value)})}}}var Ez=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f7(e){var t={exports:{}};return e(t,t.exports),t.exports}var Gu,Lx,F2=function(e){return e&&e.Math==Math&&e},Me=F2(typeof globalThis=="object"&&globalThis)||F2(typeof window=="object"&&window)||F2(typeof self=="object"&&self)||F2(typeof Ez=="object"&&Ez)||function(){return this}()||Function("return this")(),wr=function(e){try{return!!e()}catch(t){return!0}},ks=!wr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),wv=Function.prototype.call,yr=wv.bind?wv.bind(wv):function(){return wv.apply(wv,arguments)},Sz={}.propertyIsEnumerable,Cz=Object.getOwnPropertyDescriptor,CWe={f:Cz&&!Sz.call({1:2},1)?function(e){var t=Cz(this,e);return!!t&&t.enumerable}:Sz},K4=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},fre=Function.prototype,QT=fre.bind,e5=fre.call,_We=QT&&QT.bind(e5),pt=QT?function(e){return e&&_We(e5,e)}:function(e){return e&&function(){return e5.apply(e,arguments)}},AWe=pt({}.toString),kWe=pt("".slice),ms=function(e){return kWe(AWe(e),8,-1)},rA=Me.Object,TWe=pt("".split),d7=wr(function(){return!rA("z").propertyIsEnumerable(0)})?function(e){return ms(e)=="String"?TWe(e,""):rA(e)}:rA,DWe=Me.TypeError,ry=function(e){if(e==null)throw DWe("Can't call method on "+e);return e},mc=function(e){return d7(ry(e))},lr=function(e){return typeof e=="function"},Cr=function(e){return typeof e=="object"?e!==null:lr(e)},OWe=function(e){return lr(e)?e:void 0},t0=function(e,t){return arguments.length<2?OWe(Me[e]):Me[e]&&Me[e][t]},$1=pt({}.isPrototypeOf),jd=t0("navigator","userAgent")||"",_z=Me.process,Az=Me.Deno,kz=_z&&_z.versions||Az&&Az.version,Tz=kz&&kz.v8;Tz&&(Lx=(Gu=Tz.split("."))[0]>0&&Gu[0]<4?1:+(Gu[0]+Gu[1])),!Lx&&jd&&(!(Gu=jd.match(/Edge\/(\d+)/))||Gu[1]>=74)&&(Gu=jd.match(/Chrome\/(\d+)/))&&(Lx=+Gu[1]);var U1=Lx,t5=!!Object.getOwnPropertySymbols&&!wr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&U1&&U1<41}),p7=t5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",FWe=Me.Object,nA=p7?function(e){return typeof e=="symbol"}:function(e){var t=t0("Symbol");return lr(t)&&$1(t.prototype,FWe(e))},BWe=Me.String,Jw=function(e){try{return BWe(e)}catch(t){return"Object"}},PWe=Me.TypeError,oc=function(e){if(lr(e))return e;throw PWe(Jw(e)+" is not a function")},H1=function(e,t){var r=e[t];return r==null?void 0:oc(r)},NWe=Me.TypeError,IWe=Object.defineProperty,h7=function(e,t){try{IWe(Me,e,{value:t,configurable:!0,writable:!0})}catch(r){Me[e]=t}return t},Rl=Me["__core-js_shared__"]||h7("__core-js_shared__",{}),v7=f7(function(e){(e.exports=function(t,r){return Rl[t]||(Rl[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),RWe=Me.Object,q4=function(e){return RWe(ry(e))},LWe=pt({}.hasOwnProperty),En=Object.hasOwn||function(e,t){return LWe(q4(e),t)},MWe=0,jWe=Math.random(),$We=pt(1 .toString),g7=function(e){return"Symbol("+(e===void 0?"":e)+")_"+$We(++MWe+jWe,36)},Ev=v7("wks"),Ff=Me.Symbol,Dz=Ff&&Ff.for,UWe=p7?Ff:Ff&&Ff.withoutSetter||g7,un=function(e){if(!En(Ev,e)||!t5&&typeof Ev[e]!="string"){var t="Symbol."+e;t5&&En(Ff,e)?Ev[e]=Ff[e]:Ev[e]=p7&&Dz?Dz(t):UWe(t)}return Ev[e]},HWe=Me.TypeError,zWe=un("toPrimitive"),m7=function(e){var t=function(r,n){if(!Cr(r)||nA(r))return r;var a,i=H1(r,zWe);if(i){if(n===void 0&&(n="default"),a=yr(i,r,n),!Cr(a)||nA(a))return a;throw HWe("Can't convert object to primitive value")}return n===void 0&&(n="number"),function(o,s){var u,l;if(s==="string"&&lr(u=o.toString)&&!Cr(l=yr(u,o))||lr(u=o.valueOf)&&!Cr(l=yr(u,o))||s!=="string"&&lr(u=o.toString)&&!Cr(l=yr(u,o)))return l;throw NWe("Can't convert object to primitive value")}(r,n)}(e,"string");return nA(t)?t:t+""},r5=Me.document,VWe=Cr(r5)&&Cr(r5.createElement),z1=function(e){return VWe?r5.createElement(e):{}},dre=!ks&&!wr(function(){return Object.defineProperty(z1("div"),"a",{get:function(){return 7}}).a!=7}),Oz=Object.getOwnPropertyDescriptor,y7={f:ks?Oz:function(e,t){if(e=mc(e),t=m7(t),dre)try{return Oz(e,t)}catch(r){}if(En(e,t))return K4(!yr(CWe.f,e,t),e[t])}},WWe=Me.String,GWe=Me.TypeError,Jn=function(e){if(Cr(e))return e;throw GWe(WWe(e)+" is not an object")},KWe=Me.TypeError,Fz=Object.defineProperty,yu={f:ks?Fz:function(e,t,r){if(Jn(e),t=m7(t),Jn(r),dre)try{return Fz(e,t,r)}catch(n){}if("get"in r||"set"in r)throw KWe("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Ll=ks?function(e,t,r){return yu.f(e,t,K4(1,r))}:function(e,t,r){return e[t]=r,e},qWe=pt(Function.toString);lr(Rl.inspectSource)||(Rl.inspectSource=function(e){return qWe(e)});var Zw,Rg,Qw,X4=Rl.inspectSource,Bz=Me.WeakMap,pre=lr(Bz)&&/native code/.test(X4(Bz)),Pz=v7("keys"),x7=function(e){return Pz[e]||(Pz[e]=g7(e))},Y4={},n5=Me.TypeError,XWe=Me.WeakMap;if(pre||Rl.state){var Pc=Rl.state||(Rl.state=new XWe),YWe=pt(Pc.get),Nz=pt(Pc.has),JWe=pt(Pc.set);Zw=function(e,t){if(Nz(Pc,e))throw new n5("Object already initialized");return t.facade=e,JWe(Pc,e,t),t},Rg=function(e){return YWe(Pc,e)||{}},Qw=function(e){return Nz(Pc,e)}}else{var Q0=x7("state");Y4[Q0]=!0,Zw=function(e,t){if(En(e,Q0))throw new n5("Object already initialized");return t.facade=e,Ll(e,Q0,t),t},Rg=function(e){return En(e,Q0)?e[Q0]:{}},Qw=function(e){return En(e,Q0)}}var Fi={set:Zw,get:Rg,has:Qw,enforce:function(e){return Qw(e)?Rg(e):Zw(e,{})},getterFor:function(e){return function(t){var r;if(!Cr(t)||(r=Rg(t)).type!==e)throw n5("Incompatible receiver, "+e+" required");return r}}},hre=Function.prototype,ZWe=ks&&Object.getOwnPropertyDescriptor,aA=En(hre,"name"),hh={EXISTS:aA,PROPER:aA&&function(){}.name==="something",CONFIGURABLE:aA&&(!ks||ks&&ZWe(hre,"name").configurable)},Ci=f7(function(e){var t=hh.CONFIGURABLE,r=Fi.get,n=Fi.enforce,a=String(String).split("String");(e.exports=function(i,o,s,u){var l,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,p=u&&u.name!==void 0?u.name:o;lr(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!En(s,"name")||t&&s.name!==p)&&Ll(s,"name",p),(l=n(s)).source||(l.source=a.join(typeof p=="string"?p:""))),i!==Me?(c?!d&&i[o]&&(f=!0):delete i[o],f?i[o]=s:Ll(i,o,s)):f?i[o]=s:h7(o,s)})(Function.prototype,"toString",function(){return lr(this)&&r(this).source||X4(this)})}),QWe=Math.ceil,eGe=Math.floor,J4=function(e){var t=+e;return t!=t||t===0?0:(t>0?eGe:QWe)(t)},tGe=Math.max,rGe=Math.min,V1=function(e,t){var r=J4(e);return r<0?tGe(r+t,0):rGe(r,t)},nGe=Math.min,vre=function(e){return e>0?nGe(J4(e),9007199254740991):0},ny=function(e){return vre(e.length)},Iz=function(e){return function(t,r,n){var a,i=mc(t),o=ny(i),s=V1(n,o);if(e&&r!=r){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},gre={includes:Iz(!0),indexOf:Iz(!1)},aGe=gre.indexOf,Rz=pt([].push),mre=function(e,t){var r,n=mc(e),a=0,i=[];for(r in n)!En(Y4,r)&&En(n,r)&&Rz(i,r);for(;t.length>a;)En(n,r=t[a++])&&(~aGe(i,r)||Rz(i,r));return i},eE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iGe=eE.concat("length","prototype"),tE={f:Object.getOwnPropertyNames||function(e){return mre(e,iGe)}},oGe={f:Object.getOwnPropertySymbols},sGe=pt([].concat),uGe=t0("Reflect","ownKeys")||function(e){var t=tE.f(Jn(e)),r=oGe.f;return r?sGe(t,r(e)):t},lGe=function(e,t){for(var r=uGe(t),n=yu.f,a=y7.f,i=0;i<r.length;i++){var o=r[i];En(e,o)||n(e,o,a(t,o))}},cGe=/#|\.prototype\./,ay=function(e,t){var r=dGe[fGe(e)];return r==hGe||r!=pGe&&(lr(t)?wr(t):!!t)},fGe=ay.normalize=function(e){return String(e).replace(cGe,".").toLowerCase()},dGe=ay.data={},pGe=ay.NATIVE="N",hGe=ay.POLYFILL="P",rE=ay,vGe=y7.f,Za=function(e,t){var r,n,a,i,o,s=e.target,u=e.global,l=e.stat;if(r=u?Me:l?Me[s]||h7(s,{}):(Me[s]||{}).prototype)for(n in t){if(i=t[n],a=e.noTargetGet?(o=vGe(r,n))&&o.value:r[n],!rE(u?n:s+(l?".":"#")+n,e.forced)&&a!==void 0){if(typeof i==typeof a)continue;lGe(i,a)}(e.sham||a&&a.sham)&&Ll(i,"sham",!0),Ci(r,n,i,e)}},yre={};yre[un("toStringTag")]="z";var b7=String(yre)==="[object z]",gGe=un("toStringTag"),mGe=Me.Object,yGe=ms(function(){return arguments}())=="Arguments",Z4=b7?ms:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(a,i){try{return a[i]}catch(o){}}(t=mGe(e),gGe))=="string"?r:yGe?ms(t):(n=ms(t))=="Object"&&lr(t.callee)?"Arguments":n},xGe=Me.String,zi=function(e){if(Z4(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return xGe(e)},a5=`
|
||
\v\f\r \u2028\u2029\uFEFF`,Lz=pt("".replace),nE="["+a5+"]",bGe=RegExp("^"+nE+nE+"*"),wGe=RegExp(nE+nE+"*$"),iA=function(e){return function(t){var r=zi(ry(t));return 1&e&&(r=Lz(r,bGe,"")),2&e&&(r=Lz(r,wGe,"")),r}},EGe={start:iA(1),end:iA(2),trim:iA(3)},SGe=hh.PROPER,CGe=EGe.trim;function Mz(e){return e.length?e[0].tagName.toLowerCase():""}function xre(e,t,r){t===void 0&&(t="auto"),r===void 0&&(r="auto");var n=te(e);return n.attr("width",t),n.attr("height",r),n[0].outerHTML}Za({target:"String",proto:!0,forced:wr(function(){return!!a5.trim()||"
".trim()!=="
"||SGe&&a5.trim.name!=="trim"})},{trim:function(){return CGe(this)}}),Za({global:!0},{globalThis:Me}),io&&(te.fn.append=io),_s&&(te.fn.on=_s),Jl&&(te.fn.focus=Jl),ao&&(te.fn.attr=ao),Cs&&(te.fn.val=Cs),Yl&&(te.fn.html=Yl),mp&&(te.fn.parent=mp),hp&&(te.fn.hasClass=hp),wp&&(te.fn.empty=wp);var B2,_Ge={type:"video",renderElem:function(e,t,r){var n,a=e,i=a.src,o=i===void 0?"":i,s=a.poster,u=s===void 0?"":s,l=a.width,c=l===void 0?"auto":l,f=a.height,d=f===void 0?"auto":f,p=X.isNodeSelected(r,e);if(o.trim().indexOf("<iframe ")===0)n=ot("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:xre(o,c,d)});else{var v=ot("video",{poster:u,controls:!0},ot("source",{src:o,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
|
||
抱歉,浏览器不支持 video 视频`);c!=="auto"&&(v.data.width=c),d!=="auto"&&(v.data.height=d),n=ot("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},v)}return Ep("div",{props:{contentEditable:!1},on:{mousedown:function(h){return h.preventDefault()}}},n)}},AGe={type:"video",elemToHtml:function(e,t){var r=e,n=r.src,a=n===void 0?"":n,i=r.poster,o=i===void 0?"":i,s=r.width,u=s===void 0?"auto":s,l=r.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
|
||
`;return a.trim().indexOf("<iframe ")===0?f+=xre(a,u,c):f+='<video poster="'+o+'" controls="true" width="'+u+'" height="'+c+'"><source src="'+a+'" type="video/mp4"/></video>',f+`
|
||
</div>`}},kGe=Object.keys||function(e){return mre(e,eE)},TGe=ks?Object.defineProperties:function(e,t){Jn(e);for(var r,n=mc(t),a=kGe(t),i=a.length,o=0;i>o;)yu.f(e,r=a[o++],n[r]);return e},i5=t0("document","documentElement"),bre=x7("IE_PROTO"),oA=function(){},wre=function(e){return"<script>"+e+"<\/script>"},jz=function(e){e.write(wre("")),e.close();var t=e.parentWindow.Object;return e=null,t},Mx=function(){try{B2=new ActiveXObject("htmlfile")}catch(n){}var e,t;Mx=typeof document<"u"?document.domain&&B2?jz(B2):((t=z1("iframe")).style.display="none",i5.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(wre("document.F=Object")),e.close(),e.F):jz(B2);for(var r=eE.length;r--;)delete Mx.prototype[eE[r]];return Mx()};Y4[bre]=!0;var w7=Object.create||function(e,t){var r;return e!==null?(oA.prototype=Jn(e),r=new oA,oA.prototype=null,r[bre]=e):r=Mx(),t===void 0?r:TGe(r,t)},o5=un("unscopables"),s5=Array.prototype;s5[o5]==null&&yu.f(s5,o5,{configurable:!0,value:w7(null)});var Lg=function(e){s5[o5][e]=!0},DGe=gre.includes;Za({target:"Array",proto:!0},{includes:function(e){return DGe(this,e,arguments.length>1?arguments[1]:void 0)}}),Lg("includes");var OGe={selector:"iframe,video,p",preParseHtml:function(e){var t=te(e),r=t;if(Mz(t)==="p"){var n=t.children();if(n.length===1){var a=n[0],i=a.tagName.toLowerCase();["iframe","video"].includes(i)&&(r=te(a))}}var o=Mz(r);if(o!=="iframe"&&o!=="video"||r.parent().attr("data-w-e-type")==="video")return r[0];var s=te('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(r),s[0]}},$z=pt(pt.bind),W1=function(e,t){return oc(e),t===void 0?e:$z?$z(e,t):function(){return e.apply(t,arguments)}},aE=Array.isArray||function(e){return ms(e)=="Array"},Ere=function(){},FGe=[],Sre=t0("Reflect","construct"),E7=/^\s*(?:class|function)\b/,BGe=pt(E7.exec),PGe=!E7.exec(Ere),Sv=function(e){if(!lr(e))return!1;try{return Sre(Ere,FGe,e),!0}catch(t){return!1}},S7=!Sre||wr(function(){var e;return Sv(Sv.call)||!Sv(Object)||!Sv(function(){e=!0})||e})?function(e){if(!lr(e))return!1;switch(Z4(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return PGe||!!BGe(E7,X4(e))}:Sv,NGe=un("species"),Uz=Me.Array,IGe=function(e,t){return new(function(r){var n;return aE(r)&&(n=r.constructor,(S7(n)&&(n===Uz||aE(n.prototype))||Cr(n)&&(n=n[NGe])===null)&&(n=void 0)),n===void 0?Uz:n}(e))(t===0?0:t)},Hz=pt([].push),Ku=function(e){var t=e==1,r=e==2,n=e==3,a=e==4,i=e==6,o=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,v=q4(u),h=d7(v),g=W1(l,c),m=ny(h),y=0,x=f||IGe,b=t?x(u,m):r||o?x(u,0):void 0;m>y;y++)if((s||y in h)&&(p=g(d=h[y],y,v),e))if(t)b[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Hz(b,d)}else switch(e){case 4:return!1;case 7:Hz(b,d)}return i?-1:n||a?a:b}},C7={forEach:Ku(0),map:Ku(1),filter:Ku(2),some:Ku(3),every:Ku(4),find:Ku(5),findIndex:Ku(6),filterReject:Ku(7)},RGe=C7.find,zz=!0;"find"in[]&&Array(1).find(function(){zz=!1}),Za({target:"Array",proto:!0,forced:zz},{find:function(e){return RGe(this,e,arguments.length>1?arguments[1]:void 0)}}),Lg("find");var LGe=b7?{}.toString:function(){return"[object "+Z4(this)+"]"};function Vz(e,t,r,n){return t===void 0&&(t=""),r===void 0&&(r="auto"),n===void 0&&(n="auto"),{type:"video",src:e,poster:t,width:r,height:n,children:[{text:""}]}}b7||Ci(Object.prototype,"toString",LGe,{unsafe:!0});var Wz,sA,MGe={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,r){var n=te(e),a="",i="",o="auto",s="auto",u=n.find("iframe");if(u.length>0)return o=u.attr("width")||"auto",s=u.attr("height")||"auto",Vz(a=u[0].outerHTML,i,o,s);var l=n.find("video");return(a=l.attr("src")||"")||l.length>0&&(a=l.find("source").attr("src")||""),o=l.attr("width")||"auto",s=l.attr("height")||"auto",Vz(a,i=l.attr("poster")||"",o,s)}},Cre=function(){var e=Jn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},_7=Me.RegExp,u5=wr(function(){var e=_7("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),jGe=u5||wr(function(){return!_7("a","y").sticky}),$Ge={BROKEN_CARET:u5||wr(function(){var e=_7("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:jGe,UNSUPPORTED_Y:u5},UGe=Me.RegExp,HGe=wr(function(){var e=UGe(".","s");return!(e.dotAll&&e.exec(`
|
||
`)&&e.flags==="s")}),zGe=Me.RegExp,VGe=wr(function(){var e=zGe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),WGe=Fi.get,GGe=v7("native-string-replace",String.prototype.replace),iE=RegExp.prototype.exec,l5=iE,KGe=pt("".charAt),qGe=pt("".indexOf),XGe=pt("".replace),uA=pt("".slice),lA=(sA=/b*/g,yr(iE,Wz=/a/,"a"),yr(iE,sA,"a"),Wz.lastIndex!==0||sA.lastIndex!==0),Gz=$Ge.BROKEN_CARET,cA=/()??/.exec("")[1]!==void 0;(lA||cA||Gz||HGe||VGe)&&(l5=function(e){var t,r,n,a,i,o,s,u=this,l=WGe(u),c=zi(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=yr(l5,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=Gz&&u.sticky,v=yr(Cre,u),h=u.source,g=0,m=c;if(p&&(v=XGe(v,"y",""),qGe(v,"g")===-1&&(v+="g"),m=uA(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&KGe(c,u.lastIndex-1)!==`
|
||
`)&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),cA&&(r=new RegExp("^"+h+"$(?!\\s)",v)),lA&&(n=u.lastIndex),a=yr(iE,p?r:u,m),p?a?(a.input=uA(a.input,g),a[0]=uA(a[0],g),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:lA&&a&&(u.lastIndex=u.global?a.index+a[0].length:n),cA&&a&&a.length>1&&yr(GGe,a[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(a[i]=void 0)}),a&&d)for(a.groups=o=w7(null),i=0;i<d.length;i++)o[(s=d[i])[0]]=a[s[1]];return a});var oE=l5;Za({target:"RegExp",proto:!0,forced:/./.exec!==oE},{exec:oE});var A7=Function.prototype,Kz=A7.apply,YGe=A7.bind,qz=A7.call,_re=typeof Reflect=="object"&&Reflect.apply||(YGe?qz.bind(Kz):function(){return qz.apply(Kz,arguments)}),Xz=(un("species"),RegExp.prototype),JGe=pt("".charAt),Yz=pt("".charCodeAt),ZGe=pt("".slice),Jz=function(e){return function(t,r){var n,a,i=zi(ry(t)),o=J4(r),s=i.length;return o<0||o>=s?e?"":void 0:(n=Yz(i,o))<55296||n>56319||o+1===s||(a=Yz(i,o+1))<56320||a>57343?e?JGe(i,o):n:e?ZGe(i,o,o+2):a-56320+(n-55296<<10)+65536}},Are={codeAt:Jz(!1),charAt:Jz(!0)},QGe=Are.charAt,eKe=function(e,t,r){return t+(r?QGe(e,t).length:1)},tKe=Math.floor,fA=pt("".charAt),rKe=pt("".replace),dA=pt("".slice),nKe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,aKe=/\$([$&'`]|\d{1,2})/g,iKe=function(e,t,r,n,a,i){var o=r+e.length,s=n.length,u=aKe;return a!==void 0&&(a=q4(a),u=nKe),rKe(i,u,function(l,c){var f;switch(fA(c,0)){case"$":return"$";case"&":return e;case"`":return dA(t,0,r);case"'":return dA(t,o);case"<":f=a[dA(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>s){var p=tKe(d/10);return p===0?l:p<=s?n[p-1]===void 0?fA(c,1):n[p-1]+fA(c,1):l}f=n[d-1]}return f===void 0?"":f})},oKe=Me.TypeError,sKe=function(e,t){var r=e.exec;if(lr(r)){var n=yr(r,e,t);return n!==null&&Jn(n),n}if(ms(e)==="RegExp")return yr(oE,e,t);throw oKe("RegExp#exec called on incompatible receiver")},c5=un("replace"),uKe=Math.max,lKe=Math.min,cKe=pt([].concat),pA=pt([].push),Zz=pt("".indexOf),Qz=pt("".slice),fKe="a".replace(/./,"$0")==="$0",eV=!!/./[c5]&&/./[c5]("a","$0")==="";function kre(e){return e===void 0&&(e="r"),e+"-"+LJ()}(function(e,t,r,n){var a=un(e),i=!wr(function(){var l={};return l[a]=function(){return 7},""[e](l)!=7}),o=i&&!wr(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[a](""),!l});if(!i||!o||r){var s=pt(/./[a]),u=function(l,c,f){var d=eV?"$":"$0";return[function(p,v){var h=ry(this),g=p==null?void 0:H1(p,c5);return g?yr(g,p,h,v):yr(c,zi(h),p,v)},function(p,v){var h=Jn(this),g=zi(p);if(typeof v=="string"&&Zz(v,d)===-1&&Zz(v,"$<")===-1){var m=f(c,h,g,v);if(m.done)return m.value}var y=lr(v);y||(v=zi(v));var x=h.global;if(x){var b=h.unicode;h.lastIndex=0}for(var E=[];;){var S=sKe(h,g);if(S===null||(pA(E,S),!x))break;zi(S[0])===""&&(h.lastIndex=eKe(g,vre(h.lastIndex),b))}for(var w,C="",_=0,O=0;O<E.length;O++){for(var P=zi((S=E[O])[0]),F=uKe(lKe(J4(S.index),g.length),0),q=[],ee=1;ee<S.length;ee++)pA(q,(w=S[ee])===void 0?w:String(w));var J=S.groups;if(y){var Z=cKe([P],q,F,g);J!==void 0&&pA(Z,J);var V=zi(_re(v,void 0,Z))}else V=iKe(P,g,F,q,J,v);F>=_&&(C+=Qz(g,_,F)+V,_=F+P.length)}return C+Qz(g,_)}]}(0,""[e],function(l,c,f,d,p){var v=pt(l),h=c.exec;return h===oE||h===Xz.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Ci(String.prototype,e,u[0]),Ci(Xz,a,u[1])}})("replace",0,!!wr(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!fKe||eV);var sE=Me.Promise,uE=function(e,t,r){for(var n in t)Ci(e,n,t[n],r);return e},dKe=Me.String,pKe=Me.TypeError,Pp=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=pt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(n){}return function(n,a){return Jn(n),function(i){if(typeof i=="object"||lr(i))return i;throw pKe("Can't set "+dKe(i)+" as a prototype")}(a),t?e(n,a):n.__proto__=a,n}}():void 0),hKe=yu.f,tV=un("toStringTag"),lE=function(e,t,r){e&&!En(e=r?e:e.prototype,tV)&&hKe(e,tV,{configurable:!0,value:t})},rV=un("species"),vKe=Me.TypeError,k7=function(e,t){if($1(t,e))return e;throw vKe("Incorrect invocation")},Np={},gKe=un("iterator"),mKe=Array.prototype,yKe=un("iterator"),nV=function(e){if(e!=null)return H1(e,yKe)||H1(e,"@@iterator")||Np[Z4(e)]},xKe=Me.TypeError,aV=function(e,t,r){var n,a;Jn(e);try{if(!(n=H1(e,"return"))){if(t==="throw")throw r;return r}n=yr(n,e)}catch(i){a=!0,n=i}if(t==="throw")throw r;if(a)throw n;return Jn(n),r},bKe=Me.TypeError,jx=function(e,t){this.stopped=e,this.result=t},iV=jx.prototype,cE=function(e,t,r){var n,a,i,o,s,u,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),h=W1(t,f),g=function(y){return n&&aV(n,"normal",y),new jx(!0,y)},m=function(y){return d?(Jn(y),v?h(y[0],y[1],g):h(y[0],y[1])):v?h(y,g):h(y)};if(p)n=e;else{if(!(a=nV(e)))throw bKe(Jw(e)+" is not iterable");if((c=a)!==void 0&&(Np.Array===c||mKe[gKe]===c)){for(i=0,o=ny(e);o>i;i++)if((s=m(e[i]))&&$1(iV,s))return s;return new jx(!1)}n=function(y,x){var b=arguments.length<2?nV(y):x;if(oc(b))return Jn(yr(b,y));throw xKe(Jw(y)+" is not iterable")}(e,a)}for(u=n.next;!(l=yr(u,n)).done;){try{s=m(l.value)}catch(y){aV(n,"throw",y)}if(typeof s=="object"&&s&&$1(iV,s))return s}return new jx(!1)},Tre=un("iterator"),Dre=!1;try{var wKe=0,oV={next:function(){return{done:!!wKe++}},return:function(){Dre=!0}};oV[Tre]=function(){return this},Array.from(oV,function(){throw 2})}catch(e){}var G1,ed,sV,hA,Ore=function(e,t){if(!t&&!Dre)return!1;var r=!1;try{var n={};n[Tre]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(a){}return r},EKe=Me.TypeError,SKe=un("species"),Fre=pt([].slice),Bre=/(?:ipad|iphone|ipod).*applewebkit/i.test(jd),Ml=ms(Me.process)=="process",f5=Me.setImmediate,d5=Me.clearImmediate,CKe=Me.process,vA=Me.Dispatch,_Ke=Me.Function,uV=Me.MessageChannel,AKe=Me.String,gA=0,Mg={};try{G1=Me.location}catch(e){}var T7=function(e){if(En(Mg,e)){var t=Mg[e];delete Mg[e],t()}},mA=function(e){return function(){T7(e)}},lV=function(e){T7(e.data)},cV=function(e){Me.postMessage(AKe(e),G1.protocol+"//"+G1.host)};f5&&d5||(f5=function(e){var t=Fre(arguments,1);return Mg[++gA]=function(){_re(lr(e)?e:_Ke(e),void 0,t)},ed(gA),gA},d5=function(e){delete Mg[e]},Ml?ed=function(e){CKe.nextTick(mA(e))}:vA&&vA.now?ed=function(e){vA.now(mA(e))}:uV&&!Bre?(hA=(sV=new uV).port2,sV.port1.onmessage=lV,ed=W1(hA.postMessage,hA)):Me.addEventListener&&lr(Me.postMessage)&&!Me.importScripts&&G1&&G1.protocol!=="file:"&&!wr(cV)?(ed=cV,Me.addEventListener("message",lV,!1)):ed="onreadystatechange"in z1("script")?function(e){i5.appendChild(z1("script")).onreadystatechange=function(){i5.removeChild(this),T7(e)}}:function(e){setTimeout(mA(e),0)});var Cv,Xc,jg,md,yA,xA,bA,fV,Pre={set:f5,clear:d5},kKe=/ipad|iphone|ipod/i.test(jd)&&Me.Pebble!==void 0,TKe=/web0s(?!.*chrome)/i.test(jd),DKe=y7.f,wA=Pre.set,dV=Me.MutationObserver||Me.WebKitMutationObserver,pV=Me.document,hV=Me.process,P2=Me.Promise,vV=DKe(Me,"queueMicrotask"),Nre=vV&&vV.value;Nre||(Cv=function(){var e,t;for(Ml&&(e=hV.domain)&&e.exit();Xc;){t=Xc.fn,Xc=Xc.next;try{t()}catch(r){throw Xc?md():jg=void 0,r}}jg=void 0,e&&e.enter()},Bre||Ml||TKe||!dV||!pV?!kKe&&P2&&P2.resolve?((bA=P2.resolve(void 0)).constructor=P2,fV=W1(bA.then,bA),md=function(){fV(Cv)}):Ml?md=function(){hV.nextTick(Cv)}:(wA=W1(wA,Me),md=function(){wA(Cv)}):(yA=!0,xA=pV.createTextNode(""),new dV(Cv).observe(xA,{characterData:!0}),md=function(){xA.data=yA=!yA}));var EA,gV,Ire,mV,Rre=Nre||function(e){var t={fn:e,next:void 0};jg&&(jg.next=t),Xc||(Xc=t,md()),jg=t},OKe=function(e){var t,r;this.promise=new e(function(n,a){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=a}),this.resolve=oc(t),this.reject=oc(r)},D7={f:function(e){return new OKe(e)}},p5=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},FKe=typeof window=="object",Lre=Pre.set,BKe=un("species"),qs="Promise",yV=Fi.getterFor(qs),PKe=Fi.set,NKe=Fi.getterFor(qs),$c=sE&&sE.prototype,cs=sE,_v=$c,Mre=Me.TypeError,h5=Me.document,O7=Me.process,$d=D7.f,IKe=$d,RKe=!!(h5&&h5.createEvent&&Me.dispatchEvent),jre=lr(Me.PromiseRejectionEvent),$re=!1,$g=rE(qs,function(){var e=X4(cs),t=e!==String(cs);if(!t&&U1===66)return!0;if(U1>=51&&/native code/.test(e))return!1;var r=new cs(function(a){a(1)}),n=function(a){a(function(){},function(){})};return(r.constructor={})[BKe]=n,!($re=r.then(function(){})instanceof n)||!t&&FKe&&!jre}),LKe=$g||!Ore(function(e){cs.all(e).catch(function(){})}),Ure=function(e){var t;return!(!Cr(e)||!lr(t=e.then))&&t},F7=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;Rre(function(){for(var n=e.value,a=e.state==1,i=0;r.length>i;){var o,s,u,l=r[i++],c=a?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(a||(e.rejection===2&&jKe(e),e.rejection=1),c===!0?o=n:(p&&p.enter(),o=c(n),p&&(p.exit(),u=!0)),o===l.promise?d(Mre("Promise-chain cycle")):(s=Ure(o))?yr(s,o,f,d):f(o)):d(n)}catch(v){p&&!u&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&MKe(e)})}},Hre=function(e,t,r){var n,a;RKe?((n=h5.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Me.dispatchEvent(n)):n={promise:t,reason:r},!jre&&(a=Me["on"+e])?a(n):e==="unhandledrejection"&&function(i,o){var s=Me.console;s&&s.error&&(arguments.length==1?s.error(i):s.error(i,o))}("Unhandled promise rejection",r)},MKe=function(e){yr(Lre,Me,function(){var t,r=e.facade,n=e.value;if(xV(e)&&(t=p5(function(){Ml?O7.emit("unhandledRejection",n,r):Hre("unhandledrejection",r,n)}),e.rejection=Ml||xV(e)?2:1,t.error))throw t.value})},xV=function(e){return e.rejection!==1&&!e.parent},jKe=function(e){yr(Lre,Me,function(){var t=e.facade;Ml?O7.emit("rejectionHandled",t):Hre("rejectionhandled",t,e.value)})},_d=function(e,t,r){return function(n){e(t,n,r)}},Ud=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,F7(e,!0))},v5=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Mre("Promise can't be resolved itself");var n=Ure(t);n?Rre(function(){var a={done:!1};try{yr(n,t,_d(v5,a,e),_d(Ud,a,e))}catch(i){Ud(a,i,e)}}):(e.value=t,e.state=1,F7(e,!1))}catch(a){Ud({done:!1},a,e)}}};if($g&&(_v=(cs=function(e){k7(this,_v),oc(e),yr(EA,this);var t=yV(this);try{e(_d(v5,t),_d(Ud,t))}catch(r){Ud(t,r)}}).prototype,(EA=function(e){PKe(this,{type:qs,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=uE(_v,{then:function(e,t){var r=NKe(this),n=r.reactions,a=$d(function(i,o){var s,u=Jn(i).constructor;return u===void 0||(s=Jn(u)[SKe])==null?o:function(l){if(S7(l))return l;throw EKe(Jw(l)+" is not a constructor")}(s)}(this,cs));return a.ok=!lr(e)||e,a.fail=lr(t)&&t,a.domain=Ml?O7.domain:void 0,r.parent=!0,n[n.length]=a,r.state!=0&&F7(r,!1),a.promise},catch:function(e){return this.then(void 0,e)}}),gV=function(){var e=new EA,t=yV(e);this.promise=e,this.resolve=_d(v5,t),this.reject=_d(Ud,t)},D7.f=$d=function(e){return e===cs||e===Ire?new gV(e):IKe(e)},lr(sE)&&$c!==Object.prototype)){mV=$c.then,$re||(Ci($c,"then",function(e,t){var r=this;return new cs(function(n,a){yr(mV,r,n,a)}).then(e,t)},{unsafe:!0}),Ci($c,"catch",_v.catch,{unsafe:!0}));try{delete $c.constructor}catch(e){}Pp&&Pp($c,_v)}function K1(e,t,r){return r===void 0&&(r=""),W4(this,void 0,void 0,function(){var n,a,i,o,s,u,l;return G4(this,function(c){switch(c.label){case 0:return t?(e.restoreSelection(),n=e.getMenuConfig("insertVideo"),a=n.onInsertedVideo,i=n.checkVideo,o=n.parseVideoSrc,[4,i(t,r)]):[2];case 1:return typeof(s=c.sent())=="string"?(e.alert(s,"error"),[2]):s==null?[2]:[4,o(t)];case 2:return(u=c.sent()).trim().indexOf("<iframe ")!==0&&(u=u.replace(/</g,"<").replace(/>/g,">")),l={type:"video",src:u,poster:r,children:[{text:""}]},Promise.resolve().then(function(){pe.insertNodes(e,l)}),a(l),[2]}})})}function SA(){return kre("w-e-insert-video")}Za({global:!0,wrap:!0,forced:$g},{Promise:cs}),lE(cs,qs,!1),function(e){var t=t0("Promise"),r=yu.f;ks&&t&&!t[rV]&&r(t,rV,{configurable:!0,get:function(){return this}})}(),Ire=t0(qs),Za({target:qs,stat:!0,forced:$g},{reject:function(e){var t=$d(this);return yr(t.reject,void 0,e),t.promise}}),Za({target:qs,stat:!0,forced:$g},{resolve:function(e){return function(t,r){if(Jn(t),Cr(r)&&r.constructor===t)return r;var n=D7.f(t);return(0,n.resolve)(r),n.promise}(this,e)}}),Za({target:qs,stat:!0,forced:LKe},{all:function(e){var t=this,r=$d(t),n=r.resolve,a=r.reject,i=p5(function(){var o=oc(t.resolve),s=[],u=0,l=1;cE(e,function(c){var f=u++,d=!1;l++,yr(o,t,c).then(function(p){d||(d=!0,s[f]=p,--l||n(s))},a)}),--l||n(s)});return i.error&&a(i.value),r.promise},race:function(e){var t=this,r=$d(t),n=r.reject,a=p5(function(){var i=oc(t.resolve);cE(e,function(o){yr(i,t,o).then(r.resolve,n)})});return a.error&&n(a.value),r.promise}});var $Ke=function(){function e(){this.title=Re("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=SA(),this.posterInputId=SA(),this.buttonId=SA()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!be.isCollapsed(r)||!!X.getSelectedElems(t).some(function(n){var a=X.getNodeType(n);return a==="pre"||a==="list-item"||!!t.isVoid(n)})},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var r=this,n=this,a=n.srcInputId,i=n.posterInputId,o=n.buttonId,s=Of(Ei(Re("videoModule.videoSrc"),a,Re("videoModule.videoSrcPlaceHolder")),2),u=s[0],l=s[1],c=Of(Ei(Re("videoModule.videoPoster"),i,Re("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=te(l),v=te(d),h=Of(ah(o,Re("videoModule.ok")),1)[0];if(this.$content==null){var g=te("<div></div>");g.on("click","#"+o,function(y){return W4(r,void 0,void 0,function(){var x,b;return G4(this,function(E){switch(E.label){case 0:return y.preventDefault(),x=g.find("#"+a).val().trim(),b=g.find("#"+i).val().trim(),[4,K1(t,x,b)];case 1:return E.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=g}var m=this.$content;return m.empty(),m.append(u),m.append(f),m.append(h),p.val(""),v.val(""),setTimeout(function(){p.focus()}),m[0]},e}(),UKe=pt([].join),HKe=d7!=Object,zKe=function(e,t){var r=[].join;return!!r&&wr(function(){r.call(null,",",1)})}();Za({target:"Array",proto:!0,forced:HKe||!zKe},{join:function(e){return UKe(mc(this),e===void 0?",":e)}});var Bf,bV,wV,VKe=!wr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),EV=x7("IE_PROTO"),g5=Me.Object,WKe=g5.prototype,fE=VKe?g5.getPrototypeOf:function(e){var t=q4(e);if(En(t,EV))return t[EV];var r=t.constructor;return lr(r)&&t instanceof r?r.prototype:t instanceof g5?WKe:null},m5=un("iterator"),zre=!1;[].keys&&("next"in(wV=[].keys())?(bV=fE(fE(wV)))!==Object.prototype&&(Bf=bV):zre=!0);var GKe=Bf==null||wr(function(){var e={};return Bf[m5].call(e)!==e});GKe&&(Bf={}),lr(Bf[m5])||Ci(Bf,m5,function(){return this});var B7={IteratorPrototype:Bf,BUGGY_SAFARI_ITERATORS:zre},KKe=B7.IteratorPrototype,qKe=function(){return this},XKe=hh.PROPER,YKe=hh.CONFIGURABLE,SV=B7.IteratorPrototype,N2=B7.BUGGY_SAFARI_ITERATORS,Av=un("iterator"),JKe=function(){return this},Vre=function(e,t,r,n,a,i,o){(function(m,y,x,b){var E=y+" Iterator";m.prototype=w7(KKe,{next:K4(1,x)}),lE(m,E,!1),Np[E]=qKe})(r,t,n);var s,u,l,c=function(m){if(m===a&&h)return h;if(!N2&&m in p)return p[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,p=e.prototype,v=p[Av]||p["@@iterator"]||a&&p[a],h=!N2&&v||c(a),g=t=="Array"&&p.entries||v;if(g&&(s=fE(g.call(new e)))!==Object.prototype&&s.next&&(fE(s)!==SV&&(Pp?Pp(s,SV):lr(s[Av])||Ci(s,Av,JKe)),lE(s,f,!0)),XKe&&a=="values"&&v&&v.name!=="values"&&(YKe?Ll(p,"name","values"):(d=!0,h=function(){return yr(v,this)})),a)if(u={values:c("values"),keys:i?h:c("keys"),entries:c("entries")},o)for(l in u)(N2||d||!(l in p))&&Ci(p,l,u[l]);else Za({target:t,proto:!0,forced:N2||d},u);return p[Av]!==h&&Ci(p,Av,h,{name:a}),Np[t]=h,u},ZKe=Fi.set,QKe=Fi.getterFor("Array Iterator"),tg=Vre(Array,"Array",function(e,t){ZKe(this,{type:"Array Iterator",target:mc(e),index:0,kind:t})},function(){var e=QKe(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");Np.Arguments=Np.Array,Lg("keys"),Lg("values"),Lg("entries");var eqe=Are.charAt,tqe=Fi.set,rqe=Fi.getterFor("String Iterator");Vre(String,"String",function(e){tqe(this,{type:"String Iterator",string:zi(e),index:0})},function(){var e,t=rqe(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=eqe(r,n),t.index+=e.length,{value:e,done:!1})});var Wre=function(e,t,r){var n=m7(t);n in e?yu.f(e,n,K4(0,r)):e[n]=r},nqe=Me.Array,aqe=Math.max,CV=tE.f,_V=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],iqe={f:function(e){return _V&&ms(e)=="Window"?function(t){try{return CV(t)}catch(r){return function(n,a,i){for(var o=ny(n),s=V1(void 0,o),u=V1(o,o),l=nqe(aqe(u-s,0)),c=0;s<u;s++,c++)Wre(l,c,n[s]);return l.length=c,l}(_V)}}(e):CV(mc(e))}},AV=wr(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),I2=Object.isExtensible,nf=wr(function(){I2(1)})||AV?function(e){return!!Cr(e)&&(!AV||ms(e)!="ArrayBuffer")&&(!I2||I2(e))}:I2,oqe=!wr(function(){return Object.isExtensible(Object.preventExtensions({}))}),P7=f7(function(e){var t=yu.f,r=!1,n=g7("meta"),a=0,i=function(s){t(s,n,{value:{objectID:"O"+a++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},r=!0;var s=tE.f,u=pt([].splice),l={};l[n]=1,s(l).length&&(tE.f=function(c){for(var f=s(c),d=0,p=f.length;d<p;d++)if(f[d]===n){u(f,d,1);break}return f},Za({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:iqe.f}))},fastKey:function(s,u){if(!Cr(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!En(s,n)){if(!nf(s))return"F";if(!u)return"E";i(s)}return s[n].objectID},getWeakData:function(s,u){if(!En(s,n)){if(!nf(s))return!0;if(!u)return!1;i(s)}return s[n].weakData},onFreeze:function(s){return oqe&&r&&nf(s)&&!En(s,n)&&i(s),s}};Y4[n]=!0}),R2=P7.getWeakData,sqe=Fi.set,uqe=Fi.getterFor,lqe=C7.find,cqe=C7.findIndex,fqe=pt([].splice),dqe=0,L2=function(e){return e.frozen||(e.frozen=new Gre)},Gre=function(){this.entries=[]},CA=function(e,t){return lqe(e.entries,function(r){return r[0]===t})};Gre.prototype={get:function(e){var t=CA(this,e);if(t)return t[1]},has:function(e){return!!CA(this,e)},set:function(e,t){var r=CA(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=cqe(this.entries,function(r){return r[0]===e});return~t&&fqe(this.entries,t,1),!!~t}};var kv,Kre={getConstructor:function(e,t,r,n){var a=e(function(u,l){k7(u,i),sqe(u,{type:t,id:dqe++,frozen:void 0}),l!=null&&cE(l,u[n],{that:u,AS_ENTRIES:r})}),i=a.prototype,o=uqe(t),s=function(u,l,c){var f=o(u),d=R2(Jn(l),!0);return d===!0?L2(f).set(l,c):d[f.id]=c,u};return uE(i,{delete:function(u){var l=o(this);if(!Cr(u))return!1;var c=R2(u);return c===!0?L2(l).delete(u):c&&En(c,l.id)&&delete c[l.id]},has:function(u){var l=o(this);if(!Cr(u))return!1;var c=R2(u);return c===!0?L2(l).has(u):c&&En(c,l.id)}}),uE(i,r?{get:function(u){var l=o(this);if(Cr(u)){var c=R2(u);return c===!0?L2(l).get(u):c?c[l.id]:void 0}},set:function(u,l){return s(this,u,l)}}:{add:function(u){return s(this,u,!0)}}),a}},M2=Fi.enforce,pqe=!Me.ActiveXObject&&"ActiveXObject"in Me,qre=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},hqe=function(e,t,r){var n=e.indexOf("Map")!==-1,a=e.indexOf("Weak")!==-1,i=n?"set":"add",o=Me[e],s=o&&o.prototype,u=o,l={},c=function(g){var m=pt(s[g]);Ci(s,g,g=="add"?function(y){return m(this,y===0?0:y),this}:g=="delete"?function(y){return!(a&&!Cr(y))&&m(this,y===0?0:y)}:g=="get"?function(y){return a&&!Cr(y)?void 0:m(this,y===0?0:y)}:g=="has"?function(y){return!(a&&!Cr(y))&&m(this,y===0?0:y)}:function(y,x){return m(this,y===0?0:y,x),this})};if(rE(e,!lr(o)||!(a||s.forEach&&!wr(function(){new o().entries().next()}))))u=r.getConstructor(t,e,n,i),P7.enable();else if(rE(e,!0)){var f=new u,d=f[i](a?{}:-0,1)!=f,p=wr(function(){f.has(1)}),v=Ore(function(g){new o(g)}),h=!a&&wr(function(){for(var g=new o,m=5;m--;)g[i](m,m);return!g.has(-0)});v||((u=t(function(g,m){k7(g,s);var y=function(x,b,E){var S,w;return Pp&&lr(S=b.constructor)&&S!==E&&Cr(w=S.prototype)&&w!==E.prototype&&Pp(x,w),x}(new o,g,u);return m!=null&&cE(m,y[i],{that:y,AS_ENTRIES:n}),y})).prototype=s,s.constructor=u),(p||h)&&(c("delete"),c("has"),n&&c("get")),(h||d)&&c(i),a&&s.clear&&delete s.clear}return l[e]=u,Za({global:!0,forced:u!=o},l),lE(u,e),a||r.setStrong(u,e,n),u}("WeakMap",qre,Kre);if(pre&&pqe){kv=Kre.getConstructor(qre,"WeakMap",!0),P7.enable();var Tv=hqe.prototype,kV=pt(Tv.delete),j2=pt(Tv.has),TV=pt(Tv.get),DV=pt(Tv.set);uE(Tv,{delete:function(e){if(Cr(e)&&!nf(e)){var t=M2(this);return t.frozen||(t.frozen=new kv),kV(this,e)||t.frozen.delete(e)}return kV(this,e)},has:function(e){if(Cr(e)&&!nf(e)){var t=M2(this);return t.frozen||(t.frozen=new kv),j2(this,e)||t.frozen.has(e)}return j2(this,e)},get:function(e){if(Cr(e)&&!nf(e)){var t=M2(this);return t.frozen||(t.frozen=new kv),j2(this,e)?TV(this,e):t.frozen.get(e)}return TV(this,e)},set:function(e,t){if(Cr(e)&&!nf(e)){var r=M2(this);r.frozen||(r.frozen=new kv),j2(this,e)?DV(this,e,t):r.frozen.set(e,t)}else DV(this,e,t);return this}})}var Xre={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},_A=z1("span").classList,OV=_A&&_A.constructor&&_A.constructor.prototype,vqe=OV===Object.prototype?void 0:OV,AA=un("iterator"),FV=un("toStringTag"),kA=tg.values,Yre=function(e,t){if(e){if(e[AA]!==kA)try{Ll(e,AA,kA)}catch(n){e[AA]=kA}if(e[FV]||Ll(e,FV,t),Xre[t]){for(var r in tg)if(e[r]!==tg[r])try{Ll(e,r,tg[r])}catch(n){e[r]=tg[r]}}}};for(var TA in Xre)Yre(Me[TA]&&Me[TA].prototype,TA);Yre(vqe,"DOMTokenList");var gqe=hh.EXISTS,mqe=yu.f,Jre=Function.prototype,yqe=pt(Jre.toString),Zre=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,xqe=pt(Zre.exec);ks&&!gqe&&mqe(Jre,"name",{configurable:!0,get:function(){try{return xqe(Zre,yqe(this))[1]}catch(e){return""}}});var bqe=un("species"),wqe=U1>=51||!wr(function(){var e=[];return(e.constructor={})[bqe]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),Eqe=un("species"),DA=Me.Array,Sqe=Math.max;function Qre(e){return e.getMenuConfig("uploadVideo")}Za({target:"Array",proto:!0,forced:!wqe},{slice:function(e,t){var r,n,a,i=mc(this),o=ny(i),s=V1(e,o),u=V1(t===void 0?o:t,o);if(aE(i)&&(r=i.constructor,(S7(r)&&(r===DA||aE(r.prototype))||Cr(r)&&(r=r[Eqe])===null)&&(r=void 0),r===DA||r===void 0))return Fre(i,s,u);for(n=new(r===void 0?DA:r)(Sqe(u-s,0)),a=0;s<u;s++,a++)s in i&&Wre(n,a,i[s]);return n.length=a,n}});var BV=new WeakMap;function Cqe(e,t){return W4(this,void 0,void 0,function(){var r,n,a,i;return G4(this,function(o){switch(o.label){case 0:return r=function(s){var u=BV.get(s);if(u!=null)return u;var l=Qre(s),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return u=_Q(Yw(Yw({},l),{onProgress:function(h){s.showProgressBar(h),f&&f(h)},onSuccess:function(h,g){if(p)return p(g,function(C,_){return K1(s,C,_)}),void c(h,g);var m=g.errno,y=m===void 0?1:m,x=g.data,b=x===void 0?{}:x;if(y===0){var E=b.url,S=E===void 0?"":E,w=b.poster;K1(s,S,w===void 0?"":w),c(h,g)}else d(h,g)},onError:function(h,g,m){v(h,g,m)}})),BV.set(s,u),u}(e),n=t.name,a=t.type,i=t.size,r.addFile({name:n,type:a,size:i,data:t}),[4,r.upload()];case 1:return o.sent(),[2]}})})}var _qe=function(){function e(){this.title=Re("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){var n=this.getMenuConfig(t),a=n.allowedFileTypes,i=a===void 0?[]:a,o=n.customBrowseAndUpload;if(o)o(function(c,f){return K1(t,c,f)});else{var s="";i.length>0&&(s='accept="'+i.join(", ")+'"');var u=te("body"),l=te('<input type="file" '+s+" multiple/>");l.hide(),u.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,d){var p,v;W4(this,void 0,void 0,function(){var h,g,m,y,x,b;return G4(this,function(E){switch(E.label){case 0:if(d==null)return[2];h=Array.prototype.slice.call(d),g=Qre(f).customUpload,E.label=1;case 1:E.trys.push([1,9,10,15]),m=SWe(h),E.label=2;case 2:return[4,m.next()];case 3:return(y=E.sent()).done?[3,8]:(x=y.value,g?[4,g(x,function(S,w){return K1(f,S,w)})]:[3,5]);case 4:return E.sent(),[3,7];case 5:return[4,Cqe(f,x)];case 6:E.sent(),E.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return b=E.sent(),p={error:b},[3,15];case 10:return E.trys.push([10,,13,14]),y&&!y.done&&(v=m.return)?[4,v.call(m)]:[3,12];case 11:E.sent(),E.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return[2]}})})})(t,c)})}},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!be.isCollapsed(r)||!!X.getSelectedElems(t).some(function(n){var a=X.getNodeType(n);return a==="pre"||a==="list-item"||!!t.isVoid(n)})},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e}(),Aqe=hh.PROPER,y5=RegExp.prototype,ene=y5.toString,kqe=pt(Cre),Tqe=wr(function(){return ene.call({source:"a",flags:"b"})!="/a/b"}),Dqe=Aqe&&ene.name!="toString";function OA(){return kre("w-e-insert-video")}(Tqe||Dqe)&&Ci(RegExp.prototype,"toString",function(){var e=Jn(this),t=zi(e.source),r=e.flags;return"/"+t+"/"+zi(r===void 0&&$1(y5,e)&&!("flags"in y5)?kqe(e):r)},{unsafe:!0});var Oqe=function(){function e(){this.title=Re("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=OA(),this.heightInputId=OA(),this.buttonId=OA()}return e.prototype.getSelectedVideoNode=function(t){return X.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var r=this,n=r.widthInputId,a=r.heightInputId,i=r.buttonId,o=Of(Ei(Re("videoModule.width"),n,"auto"),2),s=o[0],u=te(o[1]),l=Of(Ei(Re("videoModule.height"),a,"auto"),2),c=l[0],f=te(l[1]),d=Of(ah(i,Re("videoModule.ok")),1)[0];if(this.$content==null){var p=te("<div></div>");p.on("click","#"+i,function(b){b.preventDefault();var E=p.find("#"+n).val().trim(),S=p.find("#"+a).val().trim(),w=parseInt(E),C=parseInt(S),_=w?w.toString():"auto",O=C?C.toString():"auto";t.restoreSelection(),pe.setNodes(t,{width:_,height:O},{match:function(P){return X.checkNodeType(P,"video")}}),t.hidePanelOrModal()}),this.$content=p}var v=this.$content;v.empty(),v.append(s),v.append(c),v.append(d);var h=this.getSelectedVideoNode(t);if(h==null)return v[0];var g=h.width,m=g===void 0?"auto":g,y=h.height,x=y===void 0?"auto":y;return u.val(m),f.val(x),setTimeout(function(){u.focus()}),v[0]},e}(),Fqe={renderElems:[_Ge],elemsToHtml:[AGe],preParseHtml:[OGe],parseElemsHtml:[MGe],menus:[{key:"insertVideo",factory:function(){return new $Ke},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new _qe},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,r){console.error("'"+e.name+" upload error",t,r)}}},{key:"editVideoSize",factory:function(){return new Oqe}}],editorPlugin:function(e){var t=e.isVoid,r=e.normalizeNode,n=e;return n.isVoid=function(a){return a.type==="video"||t(a)},n.normalizeNode=function(a){var i=Of(a,2),o=i[0],s=i[1];return X.getNodeType(o)==="video"&&X.isLastNode(n,o)&&pe.insertNodes(n,X.genEmptyParagraph(),{at:[s[0]+1]}),r([o,s])},n}};oi("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),oi("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var PV=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function N7(e){var t={exports:{}};return e(t,t.exports),t.exports}var qu,$x,$2=function(e){return e&&e.Math==Math&&e},Le=$2(typeof globalThis=="object"&&globalThis)||$2(typeof window=="object"&&window)||$2(typeof self=="object"&&self)||$2(typeof PV=="object"&&PV)||function(){return this}()||Function("return this")(),Tr=function(e){try{return!!e()}catch(t){return!0}},Ts=!Tr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Dv=Function.prototype.call,or=Dv.bind?Dv.bind(Dv):function(){return Dv.apply(Dv,arguments)},NV={}.propertyIsEnumerable,IV=Object.getOwnPropertyDescriptor,Bqe={f:IV&&!NV.call({1:2},1)?function(e){var t=IV(this,e);return!!t&&t.enumerable}:NV},Q4=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tne=Function.prototype,x5=tne.bind,b5=tne.call,Pqe=x5&&x5.bind(b5),kt=x5?function(e){return e&&Pqe(b5,e)}:function(e){return e&&function(){return b5.apply(e,arguments)}},Nqe=kt({}.toString),Iqe=kt("".slice),Uo=function(e){return Iqe(Nqe(e),8,-1)},FA=Le.Object,Rqe=kt("".split),I7=Tr(function(){return!FA("z").propertyIsEnumerable(0)})?function(e){return Uo(e)=="String"?Rqe(e,""):FA(e)}:FA,Lqe=Le.TypeError,q1=function(e){if(e==null)throw Lqe("Can't call method on "+e);return e},yc=function(e){return I7(q1(e))},vr=function(e){return typeof e=="function"},br=function(e){return typeof e=="object"?e!==null:vr(e)},Mqe=function(e){return vr(e)?e:void 0},r0=function(e,t){return arguments.length<2?Mqe(Le[e]):Le[e]&&Le[e][t]},X1=kt({}.isPrototypeOf),Hd=r0("navigator","userAgent")||"",RV=Le.process,LV=Le.Deno,MV=RV&&RV.versions||LV&&LV.version,jV=MV&&MV.v8;jV&&($x=(qu=jV.split("."))[0]>0&&qu[0]<4?1:+(qu[0]+qu[1])),!$x&&Hd&&(!(qu=Hd.match(/Edge\/(\d+)/))||qu[1]>=74)&&(qu=Hd.match(/Chrome\/(\d+)/))&&($x=+qu[1]);var Y1=$x,w5=!!Object.getOwnPropertySymbols&&!Tr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Y1&&Y1<41}),R7=w5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",jqe=Le.Object,BA=R7?function(e){return typeof e=="symbol"}:function(e){var t=r0("Symbol");return vr(t)&&X1(t.prototype,jqe(e))},$qe=Le.String,dE=function(e){try{return $qe(e)}catch(t){return"Object"}},Uqe=Le.TypeError,sc=function(e){if(vr(e))return e;throw Uqe(dE(e)+" is not a function")},J1=function(e,t){var r=e[t];return r==null?void 0:sc(r)},Hqe=Le.TypeError,zqe=Object.defineProperty,L7=function(e,t){try{zqe(Le,e,{value:t,configurable:!0,writable:!0})}catch(r){Le[e]=t}return t},jl=Le["__core-js_shared__"]||L7("__core-js_shared__",{}),M7=N7(function(e){(e.exports=function(t,r){return jl[t]||(jl[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Vqe=Le.Object,j7=function(e){return Vqe(q1(e))},Wqe=kt({}.hasOwnProperty),Sn=Object.hasOwn||function(e,t){return Wqe(j7(e),t)},Gqe=0,Kqe=Math.random(),qqe=kt(1 .toString),$7=function(e){return"Symbol("+(e===void 0?"":e)+")_"+qqe(++Gqe+Kqe,36)},Ov=M7("wks"),Pf=Le.Symbol,$V=Pf&&Pf.for,Xqe=R7?Pf:Pf&&Pf.withoutSetter||$7,ln=function(e){if(!Sn(Ov,e)||!w5&&typeof Ov[e]!="string"){var t="Symbol."+e;w5&&Sn(Pf,e)?Ov[e]=Pf[e]:Ov[e]=R7&&$V?$V(t):Xqe(t)}return Ov[e]},Yqe=Le.TypeError,Jqe=ln("toPrimitive"),U7=function(e){var t=function(r,n){if(!br(r)||BA(r))return r;var a,i=J1(r,Jqe);if(i){if(n===void 0&&(n="default"),a=or(i,r,n),!br(a)||BA(a))return a;throw Yqe("Can't convert object to primitive value")}return n===void 0&&(n="number"),function(o,s){var u,l;if(s==="string"&&vr(u=o.toString)&&!br(l=or(u,o))||vr(u=o.valueOf)&&!br(l=or(u,o))||s!=="string"&&vr(u=o.toString)&&!br(l=or(u,o)))return l;throw Hqe("Can't convert object to primitive value")}(r,n)}(e,"string");return BA(t)?t:t+""},E5=Le.document,Zqe=br(E5)&&br(E5.createElement),Z1=function(e){return Zqe?E5.createElement(e):{}},rne=!Ts&&!Tr(function(){return Object.defineProperty(Z1("div"),"a",{get:function(){return 7}}).a!=7}),UV=Object.getOwnPropertyDescriptor,H7={f:Ts?UV:function(e,t){if(e=yc(e),t=U7(t),rne)try{return UV(e,t)}catch(r){}if(Sn(e,t))return Q4(!or(Bqe.f,e,t),e[t])}},Qqe=Le.String,eXe=Le.TypeError,Zn=function(e){if(br(e))return e;throw eXe(Qqe(e)+" is not an object")},tXe=Le.TypeError,HV=Object.defineProperty,xu={f:Ts?HV:function(e,t,r){if(Zn(e),t=U7(t),Zn(r),rne)try{return HV(e,t,r)}catch(n){}if("get"in r||"set"in r)throw tXe("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},ys=Ts?function(e,t,r){return xu.f(e,t,Q4(1,r))}:function(e,t,r){return e[t]=r,e},rXe=kt(Function.toString);vr(jl.inspectSource)||(jl.inspectSource=function(e){return rXe(e)});var pE,Ug,hE,eS=jl.inspectSource,zV=Le.WeakMap,nne=vr(zV)&&/native code/.test(eS(zV)),VV=M7("keys"),z7=function(e){return VV[e]||(VV[e]=$7(e))},tS={},S5=Le.TypeError,nXe=Le.WeakMap;if(nne||jl.state){var Nc=jl.state||(jl.state=new nXe),aXe=kt(Nc.get),WV=kt(Nc.has),iXe=kt(Nc.set);pE=function(e,t){if(WV(Nc,e))throw new S5("Object already initialized");return t.facade=e,iXe(Nc,e,t),t},Ug=function(e){return aXe(Nc,e)||{}},hE=function(e){return WV(Nc,e)}}else{var td=z7("state");tS[td]=!0,pE=function(e,t){if(Sn(e,td))throw new S5("Object already initialized");return t.facade=e,ys(e,td,t),t},Ug=function(e){return Sn(e,td)?e[td]:{}},hE=function(e){return Sn(e,td)}}var Bi={set:pE,get:Ug,has:hE,enforce:function(e){return hE(e)?Ug(e):pE(e,{})},getterFor:function(e){return function(t){var r;if(!br(t)||(r=Ug(t)).type!==e)throw S5("Incompatible receiver, "+e+" required");return r}}},ane=Function.prototype,oXe=Ts&&Object.getOwnPropertyDescriptor,PA=Sn(ane,"name"),iy={EXISTS:PA,PROPER:PA&&function(){}.name==="something",CONFIGURABLE:PA&&(!Ts||Ts&&oXe(ane,"name").configurable)},_i=N7(function(e){var t=iy.CONFIGURABLE,r=Bi.get,n=Bi.enforce,a=String(String).split("String");(e.exports=function(i,o,s,u){var l,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,p=u&&u.name!==void 0?u.name:o;vr(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Sn(s,"name")||t&&s.name!==p)&&ys(s,"name",p),(l=n(s)).source||(l.source=a.join(typeof p=="string"?p:""))),i!==Le?(c?!d&&i[o]&&(f=!0):delete i[o],f?i[o]=s:ys(i,o,s)):f?i[o]=s:L7(o,s)})(Function.prototype,"toString",function(){return vr(this)&&r(this).source||eS(this)})}),sXe=Math.ceil,uXe=Math.floor,V7=function(e){var t=+e;return t!=t||t===0?0:(t>0?uXe:sXe)(t)},lXe=Math.max,cXe=Math.min,Q1=function(e,t){var r=V7(e);return r<0?lXe(r+t,0):cXe(r,t)},fXe=Math.min,ine=function(e){return e>0?fXe(V7(e),9007199254740991):0},oy=function(e){return ine(e.length)},dXe=function(e){return function(t,r,n){var a,i=yc(t),o=oy(i),s=Q1(n,o);if(e&&r!=r){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},pXe=dXe(!1),GV=kt([].push),one=function(e,t){var r,n=yc(e),a=0,i=[];for(r in n)!Sn(tS,r)&&Sn(n,r)&&GV(i,r);for(;t.length>a;)Sn(n,r=t[a++])&&(~pXe(i,r)||GV(i,r));return i},vE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hXe=vE.concat("length","prototype"),gE={f:Object.getOwnPropertyNames||function(e){return one(e,hXe)}},vXe={f:Object.getOwnPropertySymbols},gXe=kt([].concat),mXe=r0("Reflect","ownKeys")||function(e){var t=gE.f(Zn(e)),r=vXe.f;return r?gXe(t,r(e)):t},yXe=function(e,t){for(var r=mXe(t),n=xu.f,a=H7.f,i=0;i<r.length;i++){var o=r[i];Sn(e,o)||n(e,o,a(t,o))}},xXe=/#|\.prototype\./,sy=function(e,t){var r=wXe[bXe(e)];return r==SXe||r!=EXe&&(vr(t)?Tr(t):!!t)},bXe=sy.normalize=function(e){return String(e).replace(xXe,".").toLowerCase()},wXe=sy.data={},EXe=sy.NATIVE="N",SXe=sy.POLYFILL="P",mE=sy,CXe=H7.f,fs=function(e,t){var r,n,a,i,o,s=e.target,u=e.global,l=e.stat;if(r=u?Le:l?Le[s]||L7(s,{}):(Le[s]||{}).prototype)for(n in t){if(i=t[n],a=e.noTargetGet?(o=CXe(r,n))&&o.value:r[n],!mE(u?n:s+(l?".":"#")+n,e.forced)&&a!==void 0){if(typeof i==typeof a)continue;yXe(i,a)}(e.sham||a&&a.sham)&&ys(i,"sham",!0),_i(r,n,i,e)}},yE=Array.isArray||function(e){return Uo(e)=="Array"},sne={};sne[ln("toStringTag")]="z";var W7=String(sne)==="[object z]",_Xe=ln("toStringTag"),AXe=Le.Object,kXe=Uo(function(){return arguments}())=="Arguments",rS=W7?Uo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(a,i){try{return a[i]}catch(o){}}(t=AXe(e),_Xe))=="string"?r:kXe?Uo(t):(n=Uo(t))=="Object"&&vr(t.callee)?"Arguments":n},une=function(){},TXe=[],lne=r0("Reflect","construct"),G7=/^\s*(?:class|function)\b/,DXe=kt(G7.exec),OXe=!G7.exec(une),Fv=function(e){if(!vr(e))return!1;try{return lne(une,TXe,e),!0}catch(t){return!1}},K7=!lne||Tr(function(){var e;return Fv(Fv.call)||!Fv(Object)||!Fv(function(){e=!0})||e})?function(e){if(!vr(e))return!1;switch(rS(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return OXe||!!DXe(G7,eS(e))}:Fv,cne=function(e,t,r){var n=U7(t);n in e?xu.f(e,n,Q4(0,r)):e[n]=r},FXe=ln("species"),fne=kt([].slice),BXe=Y1>=51||!Tr(function(){var e=[];return(e.constructor={})[FXe]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),PXe=ln("species"),NA=Le.Array,NXe=Math.max;fs({target:"Array",proto:!0,forced:!BXe},{slice:function(e,t){var r,n,a,i=yc(this),o=oy(i),s=Q1(e,o),u=Q1(t===void 0?o:t,o);if(yE(i)&&(r=i.constructor,(K7(r)&&(r===NA||yE(r.prototype))||br(r)&&(r=r[PXe])===null)&&(r=void 0),r===NA||r===void 0))return fne(i,s,u);for(n=new(r===void 0?NA:r)(NXe(u-s,0)),a=0;s<u;s++,a++)s in i&&cne(n,a,i[s]);return n.length=a,n}});var IXe=W7?{}.toString:function(){return"[object "+rS(this)+"]"};W7||_i(Object.prototype,"toString",IXe,{unsafe:!0});var U2,RXe=Le.String,$l=function(e){if(rS(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return RXe(e)},dne=function(){var e=Zn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},q7=Le.RegExp,C5=Tr(function(){var e=q7("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),LXe=C5||Tr(function(){return!q7("a","y").sticky}),pne={BROKEN_CARET:C5||Tr(function(){var e=q7("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:LXe,UNSUPPORTED_Y:C5},MXe=Object.keys||function(e){return one(e,vE)},jXe=Ts?Object.defineProperties:function(e,t){Zn(e);for(var r,n=yc(t),a=MXe(t),i=a.length,o=0;i>o;)xu.f(e,r=a[o++],n[r]);return e},_5=r0("document","documentElement"),hne=z7("IE_PROTO"),IA=function(){},vne=function(e){return"<script>"+e+"<\/script>"},KV=function(e){e.write(vne("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ux=function(){try{U2=new ActiveXObject("htmlfile")}catch(n){}var e,t;Ux=typeof document<"u"?document.domain&&U2?KV(U2):((t=Z1("iframe")).style.display="none",_5.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(vne("document.F=Object")),e.close(),e.F):KV(U2);for(var r=vE.length;r--;)delete Ux.prototype[vE[r]];return Ux()};tS[hne]=!0;var qV,RA,X7=Object.create||function(e,t){var r;return e!==null?(IA.prototype=Zn(e),r=new IA,IA.prototype=null,r[hne]=e):r=Ux(),t===void 0?r:jXe(r,t)},$Xe=Le.RegExp,UXe=Tr(function(){var e=$Xe(".","s");return!(e.dotAll&&e.exec(`
|
||
`)&&e.flags==="s")}),HXe=Le.RegExp,zXe=Tr(function(){var e=HXe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),VXe=Bi.get,WXe=M7("native-string-replace",String.prototype.replace),xE=RegExp.prototype.exec,A5=xE,GXe=kt("".charAt),KXe=kt("".indexOf),qXe=kt("".replace),LA=kt("".slice),MA=(RA=/b*/g,or(xE,qV=/a/,"a"),or(xE,RA,"a"),qV.lastIndex!==0||RA.lastIndex!==0),XV=pne.BROKEN_CARET,jA=/()??/.exec("")[1]!==void 0;(MA||jA||XV||UXe||zXe)&&(A5=function(e){var t,r,n,a,i,o,s,u=this,l=VXe(u),c=$l(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=or(A5,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=XV&&u.sticky,v=or(dne,u),h=u.source,g=0,m=c;if(p&&(v=qXe(v,"y",""),KXe(v,"g")===-1&&(v+="g"),m=LA(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&GXe(c,u.lastIndex-1)!==`
|
||
`)&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),jA&&(r=new RegExp("^"+h+"$(?!\\s)",v)),MA&&(n=u.lastIndex),a=or(xE,p?r:u,m),p?a?(a.input=LA(a.input,g),a[0]=LA(a[0],g),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:MA&&a&&(u.lastIndex=u.global?a.index+a[0].length:n),jA&&a&&a.length>1&&or(WXe,a[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(a[i]=void 0)}),a&&d)for(a.groups=o=X7(null),i=0;i<d.length;i++)o[(s=d[i])[0]]=a[s[1]];return a});var em=A5;fs({target:"RegExp",proto:!0,forced:/./.exec!==em},{exec:em});var Y7=Function.prototype,YV=Y7.apply,XXe=Y7.bind,JV=Y7.call,gne=typeof Reflect=="object"&&Reflect.apply||(XXe?JV.bind(YV):function(){return JV.apply(YV,arguments)}),YXe=ln("species"),$A=RegExp.prototype,JXe=ln("match"),ZXe=Le.TypeError,QXe=ln("species"),mne=function(e,t){var r,n=Zn(e).constructor;return n===void 0||(r=Zn(n)[QXe])==null?t:function(a){if(K7(a))return a;throw ZXe(dE(a)+" is not a constructor")}(r)},eYe=kt("".charAt),ZV=kt("".charCodeAt),tYe=kt("".slice),QV=function(e){return function(t,r){var n,a,i=$l(q1(t)),o=V7(r),s=i.length;return o<0||o>=s?e?"":void 0:(n=ZV(i,o))<55296||n>56319||o+1===s||(a=ZV(i,o+1))<56320||a>57343?e?eYe(i,o):n:e?tYe(i,o,o+2):a-56320+(n-55296<<10)+65536}},yne={codeAt:QV(!1),charAt:QV(!0)},rYe=yne.charAt,nYe=function(e,t,r){return t+(r?rYe(e,t).length:1)},aYe=Le.Array,iYe=Math.max,k5=function(e,t,r){for(var n=oy(e),a=Q1(t,n),i=Q1(r===void 0?n:r,n),o=aYe(iYe(i-a,0)),s=0;a<i;a++,s++)cne(o,s,e[a]);return o.length=s,o},oYe=Le.TypeError,eW=function(e,t){var r=e.exec;if(vr(r)){var n=or(r,e,t);return n!==null&&Zn(n),n}if(Uo(e)==="RegExp")return or(em,e,t);throw oYe("RegExp#exec called on incompatible receiver")},rd=pne.UNSUPPORTED_Y,sYe=Math.min,xne=[].push,uYe=kt(/./.exec),nd=kt(xne),Bv=kt("".slice);(function(e,t,r,n){var a=ln(e),i=!Tr(function(){var l={};return l[a]=function(){return 7},""[e](l)!=7}),o=i&&!Tr(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[YXe]=function(){return c},c.flags="",c[a]=/./[a],c.exec=function(){return l=!0,null},c[a](""),!l});if(!i||!o||r){var s=kt(/./[a]),u=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var h,g,m=$l(q1(this)),y=v===void 0?4294967295:v>>>0;if(y===0)return[];if(p===void 0)return[m];if(!br(h=p)||!((g=h[JXe])!==void 0?g:Uo(h)=="RegExp"))return or(c,m,p,y);for(var x,b,E,S=[],w=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),C=0,_=new RegExp(p.source,w+"g");(x=or(em,_,m))&&!((b=_.lastIndex)>C&&(nd(S,Bv(m,C,x.index)),x.length>1&&x.index<m.length&&gne(xne,S,k5(x,1)),E=x[0].length,C=b,S.length>=y));)_.lastIndex===x.index&&_.lastIndex++;return C===m.length?!E&&uYe(_,"")||nd(S,""):nd(S,Bv(m,C)),S.length>y?k5(S,0,y):S}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:or(c,this,p,v)}:c,[function(p,v){var h=q1(this),g=p==null?void 0:J1(p,l);return g?or(g,p,h,v):or(d,$l(h),p,v)},function(p,v){var h=Zn(this),g=$l(p),m=f(d,h,g,v,d!==c);if(m.done)return m.value;var y=mne(h,RegExp),x=h.unicode,b=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(rd?"g":"y"),E=new y(rd?"^(?:"+h.source+")":h,b),S=v===void 0?4294967295:v>>>0;if(S===0)return[];if(g.length===0)return eW(E,g)===null?[g]:[];for(var w=0,C=0,_=[];C<g.length;){E.lastIndex=rd?0:C;var O,P=eW(E,rd?Bv(g,C):g);if(P===null||(O=sYe(ine(E.lastIndex+(rd?C:0)),g.length))===w)C=nYe(g,C,x);else{if(nd(_,Bv(g,w,C)),_.length===S)return _;for(var F=1;F<=P.length-1;F++)if(nd(_,P[F]),_.length===S)return _;C=w=O}}return nd(_,Bv(g,w)),_}]}(a,""[e],function(l,c,f,d,p){var v=kt(l),h=c.exec;return h===em||h===$A.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});_i(String.prototype,e,u[0]),_i($A,a,u[1])}n&&ys($A[a],"sham",!0)})("split",0,!!Tr(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),rd);/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var bE=function(){return bE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},bE.apply(this,arguments)};function J7(e,t,r,n){return new(r||(r=Promise))(function(a,i){function o(l){try{u(n.next(l))}catch(c){i(c)}}function s(l){try{u(n.throw(l))}catch(c){i(c)}}function u(l){var c;l.done?a(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(o,s)}u((n=n.apply(e,t||[])).next())})}function Z7(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&c[0]?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||c[0]!==6&&c[0]!==2)){o=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(c[0]===6&&o.label<a[1]){o.label=a[1],a=c;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(f){c=[6,f],n=0}finally{r=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([u,l])}}}function lYe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=function(a){var i=typeof Symbol=="function"&&Symbol.iterator,o=i&&a[i],s=0;if(o)return o.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&s>=a.length&&(a=void 0),{value:a&&a[s++],done:!a}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(a){t[a]=e[a]&&function(i){return new Promise(function(o,s){(function(u,l,c,f){Promise.resolve(f).then(function(d){u({value:d,done:c})},l)})(o,s,(i=e[a](i)).done,i.value)})}}}var T5=ln("unscopables"),D5=Array.prototype;D5[T5]==null&&xu.f(D5,T5,{configurable:!0,value:X7(null)});var Nf,tW,rW,UA=function(e){D5[T5][e]=!0},Ip={},cYe=!Tr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),nW=z7("IE_PROTO"),O5=Le.Object,fYe=O5.prototype,wE=cYe?O5.getPrototypeOf:function(e){var t=j7(e);if(Sn(t,nW))return t[nW];var r=t.constructor;return vr(r)&&t instanceof r?r.prototype:t instanceof O5?fYe:null},F5=ln("iterator"),bne=!1;[].keys&&("next"in(rW=[].keys())?(tW=wE(wE(rW)))!==Object.prototype&&(Nf=tW):bne=!0);var dYe=Nf==null||Tr(function(){var e={};return Nf[F5].call(e)!==e});dYe&&(Nf={}),vr(Nf[F5])||_i(Nf,F5,function(){return this});var Q7={IteratorPrototype:Nf,BUGGY_SAFARI_ITERATORS:bne},pYe=xu.f,aW=ln("toStringTag"),EE=function(e,t,r){e&&!Sn(e=r?e:e.prototype,aW)&&pYe(e,aW,{configurable:!0,value:t})},hYe=Q7.IteratorPrototype,vYe=function(){return this},gYe=Le.String,mYe=Le.TypeError,Rp=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=kt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(n){}return function(n,a){return Zn(n),function(i){if(typeof i=="object"||vr(i))return i;throw mYe("Can't set "+gYe(i)+" as a prototype")}(a),t?e(n,a):n.__proto__=a,n}}():void 0),yYe=iy.PROPER,xYe=iy.CONFIGURABLE,iW=Q7.IteratorPrototype,H2=Q7.BUGGY_SAFARI_ITERATORS,Pv=ln("iterator"),bYe=function(){return this},wne=function(e,t,r,n,a,i,o){(function(m,y,x,b){var E=y+" Iterator";m.prototype=X7(hYe,{next:Q4(1,x)}),EE(m,E,!1),Ip[E]=vYe})(r,t,n);var s,u,l,c=function(m){if(m===a&&h)return h;if(!H2&&m in p)return p[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,p=e.prototype,v=p[Pv]||p["@@iterator"]||a&&p[a],h=!H2&&v||c(a),g=t=="Array"&&p.entries||v;if(g&&(s=wE(g.call(new e)))!==Object.prototype&&s.next&&(wE(s)!==iW&&(Rp?Rp(s,iW):vr(s[Pv])||_i(s,Pv,bYe)),EE(s,f,!0)),yYe&&a=="values"&&v&&v.name!=="values"&&(xYe?ys(p,"name","values"):(d=!0,h=function(){return or(v,this)})),a)if(u={values:c("values"),keys:i?h:c("keys"),entries:c("entries")},o)for(l in u)(H2||d||!(l in p))&&_i(p,l,u[l]);else fs({target:t,proto:!0,forced:H2||d},u);return p[Pv]!==h&&_i(p,Pv,h,{name:a}),Ip[t]=h,u},wYe=Bi.set,EYe=Bi.getterFor("Array Iterator"),rg=wne(Array,"Array",function(e,t){wYe(this,{type:"Array Iterator",target:yc(e),index:0,kind:t})},function(){var e=EYe(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");Ip.Arguments=Ip.Array,UA("keys"),UA("values"),UA("entries");var SYe=yne.charAt,CYe=Bi.set,_Ye=Bi.getterFor("String Iterator");wne(String,"String",function(e){CYe(this,{type:"String Iterator",string:$l(e),index:0})},function(){var e,t=_Ye(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=SYe(r,n),t.index+=e.length,{value:e,done:!1})});var SE=function(e,t,r){for(var n in t)_i(e,n,t[n],r);return e},oW=gE.f,sW=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],AYe={f:function(e){return sW&&Uo(e)=="Window"?function(t){try{return oW(t)}catch(r){return k5(sW)}}(e):oW(yc(e))}},uW=Tr(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),z2=Object.isExtensible,af=Tr(function(){z2(1)})||uW?function(e){return!!br(e)&&(!uW||Uo(e)!="ArrayBuffer")&&(!z2||z2(e))}:z2,kYe=!Tr(function(){return Object.isExtensible(Object.preventExtensions({}))}),eB=N7(function(e){var t=xu.f,r=!1,n=$7("meta"),a=0,i=function(s){t(s,n,{value:{objectID:"O"+a++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},r=!0;var s=gE.f,u=kt([].splice),l={};l[n]=1,s(l).length&&(gE.f=function(c){for(var f=s(c),d=0,p=f.length;d<p;d++)if(f[d]===n){u(f,d,1);break}return f},fs({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:AYe.f}))},fastKey:function(s,u){if(!br(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Sn(s,n)){if(!af(s))return"F";if(!u)return"E";i(s)}return s[n].objectID},getWeakData:function(s,u){if(!Sn(s,n)){if(!af(s))return!0;if(!u)return!1;i(s)}return s[n].weakData},onFreeze:function(s){return kYe&&r&&af(s)&&!Sn(s,n)&&i(s),s}};tS[n]=!0}),lW=kt(kt.bind),tm=function(e,t){return sc(e),t===void 0?e:lW?lW(e,t):function(){return e.apply(t,arguments)}},TYe=ln("iterator"),DYe=Array.prototype,OYe=ln("iterator"),cW=function(e){if(e!=null)return J1(e,OYe)||J1(e,"@@iterator")||Ip[rS(e)]},FYe=Le.TypeError,fW=function(e,t,r){var n,a;Zn(e);try{if(!(n=J1(e,"return"))){if(t==="throw")throw r;return r}n=or(n,e)}catch(i){a=!0,n=i}if(t==="throw")throw r;if(a)throw n;return Zn(n),r},BYe=Le.TypeError,Hx=function(e,t){this.stopped=e,this.result=t},dW=Hx.prototype,CE=function(e,t,r){var n,a,i,o,s,u,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),h=tm(t,f),g=function(y){return n&&fW(n,"normal",y),new Hx(!0,y)},m=function(y){return d?(Zn(y),v?h(y[0],y[1],g):h(y[0],y[1])):v?h(y,g):h(y)};if(p)n=e;else{if(!(a=cW(e)))throw BYe(dE(e)+" is not iterable");if((c=a)!==void 0&&(Ip.Array===c||DYe[TYe]===c)){for(i=0,o=oy(e);o>i;i++)if((s=m(e[i]))&&X1(dW,s))return s;return new Hx(!1)}n=function(y,x){var b=arguments.length<2?cW(y):x;if(sc(b))return Zn(or(b,y));throw FYe(dE(y)+" is not iterable")}(e,a)}for(u=n.next;!(l=or(u,n)).done;){try{s=m(l.value)}catch(y){fW(n,"throw",y)}if(typeof s=="object"&&s&&X1(dW,s))return s}return new Hx(!1)},PYe=Le.TypeError,tB=function(e,t){if(X1(t,e))return e;throw PYe("Incorrect invocation")},Ene=ln("iterator"),Sne=!1;try{var NYe=0,pW={next:function(){return{done:!!NYe++}},return:function(){Sne=!0}};pW[Ene]=function(){return this},Array.from(pW,function(){throw 2})}catch(e){}var Cne=function(e,t){if(!t&&!Sne)return!1;var r=!1;try{var n={};n[Ene]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(a){}return r},IYe=ln("species"),hW=Le.Array,RYe=function(e,t){return new(function(r){var n;return yE(r)&&(n=r.constructor,(K7(n)&&(n===hW||yE(n.prototype))||br(n)&&(n=n[IYe])===null)&&(n=void 0)),n===void 0?hW:n}(e))(t===0?0:t)},vW=kt([].push),Xu=function(e){var t=e==1,r=e==2,n=e==3,a=e==4,i=e==6,o=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,v=j7(u),h=I7(v),g=tm(l,c),m=oy(h),y=0,x=f||RYe,b=t?x(u,m):r||o?x(u,0):void 0;m>y;y++)if((s||y in h)&&(p=g(d=h[y],y,v),e))if(t)b[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:vW(b,d)}else switch(e){case 4:return!1;case 7:vW(b,d)}return i?-1:n||a?a:b}},rB={forEach:Xu(0),map:Xu(1),filter:Xu(2),some:Xu(3),every:Xu(4),find:Xu(5),findIndex:Xu(6),filterReject:Xu(7)},V2=eB.getWeakData,LYe=Bi.set,MYe=Bi.getterFor,jYe=rB.find,$Ye=rB.findIndex,UYe=kt([].splice),HYe=0,W2=function(e){return e.frozen||(e.frozen=new _ne)},_ne=function(){this.entries=[]},HA=function(e,t){return jYe(e.entries,function(r){return r[0]===t})};_ne.prototype={get:function(e){var t=HA(this,e);if(t)return t[1]},has:function(e){return!!HA(this,e)},set:function(e,t){var r=HA(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=$Ye(this.entries,function(r){return r[0]===e});return~t&&UYe(this.entries,t,1),!!~t}};var Nv,Ane={getConstructor:function(e,t,r,n){var a=e(function(u,l){tB(u,i),LYe(u,{type:t,id:HYe++,frozen:void 0}),l!=null&&CE(l,u[n],{that:u,AS_ENTRIES:r})}),i=a.prototype,o=MYe(t),s=function(u,l,c){var f=o(u),d=V2(Zn(l),!0);return d===!0?W2(f).set(l,c):d[f.id]=c,u};return SE(i,{delete:function(u){var l=o(this);if(!br(u))return!1;var c=V2(u);return c===!0?W2(l).delete(u):c&&Sn(c,l.id)&&delete c[l.id]},has:function(u){var l=o(this);if(!br(u))return!1;var c=V2(u);return c===!0?W2(l).has(u):c&&Sn(c,l.id)}}),SE(i,r?{get:function(u){var l=o(this);if(br(u)){var c=V2(u);return c===!0?W2(l).get(u):c?c[l.id]:void 0}},set:function(u,l){return s(this,u,l)}}:{add:function(u){return s(this,u,!0)}}),a}},G2=Bi.enforce,zYe=!Le.ActiveXObject&&"ActiveXObject"in Le,kne=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},VYe=function(e,t,r){var n=e.indexOf("Map")!==-1,a=e.indexOf("Weak")!==-1,i=n?"set":"add",o=Le[e],s=o&&o.prototype,u=o,l={},c=function(g){var m=kt(s[g]);_i(s,g,g=="add"?function(y){return m(this,y===0?0:y),this}:g=="delete"?function(y){return!(a&&!br(y))&&m(this,y===0?0:y)}:g=="get"?function(y){return a&&!br(y)?void 0:m(this,y===0?0:y)}:g=="has"?function(y){return!(a&&!br(y))&&m(this,y===0?0:y)}:function(y,x){return m(this,y===0?0:y,x),this})};if(mE(e,!vr(o)||!(a||s.forEach&&!Tr(function(){new o().entries().next()}))))u=r.getConstructor(t,e,n,i),eB.enable();else if(mE(e,!0)){var f=new u,d=f[i](a?{}:-0,1)!=f,p=Tr(function(){f.has(1)}),v=Cne(function(g){new o(g)}),h=!a&&Tr(function(){for(var g=new o,m=5;m--;)g[i](m,m);return!g.has(-0)});v||((u=t(function(g,m){tB(g,s);var y=function(x,b,E){var S,w;return Rp&&vr(S=b.constructor)&&S!==E&&br(w=S.prototype)&&w!==E.prototype&&Rp(x,w),x}(new o,g,u);return m!=null&&CE(m,y[i],{that:y,AS_ENTRIES:n}),y})).prototype=s,s.constructor=u),(p||h)&&(c("delete"),c("has"),n&&c("get")),(h||d)&&c(i),a&&s.clear&&delete s.clear}return l[e]=u,fs({global:!0,forced:u!=o},l),EE(u,e),a||r.setStrong(u,e,n),u}("WeakMap",kne,Ane);if(nne&&zYe){Nv=Ane.getConstructor(kne,"WeakMap",!0),eB.enable();var Iv=VYe.prototype,gW=kt(Iv.delete),K2=kt(Iv.has),mW=kt(Iv.get),yW=kt(Iv.set);SE(Iv,{delete:function(e){if(br(e)&&!af(e)){var t=G2(this);return t.frozen||(t.frozen=new Nv),gW(this,e)||t.frozen.delete(e)}return gW(this,e)},has:function(e){if(br(e)&&!af(e)){var t=G2(this);return t.frozen||(t.frozen=new Nv),K2(this,e)||t.frozen.has(e)}return K2(this,e)},get:function(e){if(br(e)&&!af(e)){var t=G2(this);return t.frozen||(t.frozen=new Nv),K2(this,e)?mW(this,e):t.frozen.get(e)}return mW(this,e)},set:function(e,t){if(br(e)&&!af(e)){var r=G2(this);r.frozen||(r.frozen=new Nv),K2(this,e)?yW(this,e,t):r.frozen.set(e,t)}else yW(this,e,t);return this}})}var _E={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},zA=Z1("span").classList,xW=zA&&zA.constructor&&zA.constructor.prototype,Tne=xW===Object.prototype?void 0:xW,VA=ln("iterator"),bW=ln("toStringTag"),WA=rg.values,Dne=function(e,t){if(e){if(e[VA]!==WA)try{ys(e,VA,WA)}catch(n){e[VA]=WA}if(e[bW]||ys(e,bW,t),_E[t]){for(var r in rg)if(e[r]!==rg[r])try{ys(e,r,rg[r])}catch(n){e[r]=rg[r]}}}};for(var GA in _E)Dne(Le[GA]&&Le[GA].prototype,GA);Dne(Tne,"DOMTokenList");var One=function(e,t){var r=[][e];return!!r&&Tr(function(){r.call(null,t||function(){throw 1},1)})},WYe=rB.forEach,KA=One("forEach")?[].forEach:function(e){return WYe(this,e,arguments.length>1?arguments[1]:void 0)},Fne=function(e){if(e&&e.forEach!==KA)try{ys(e,"forEach",KA)}catch(t){e.forEach=KA}};for(var qA in _E)_E[qA]&&Fne(Le[qA]&&Le[qA].prototype);Fne(Tne);var rm,ad,wW,XA,AE=Le.Promise,EW=ln("species"),Bne=/(?:ipad|iphone|ipod).*applewebkit/i.test(Hd),Ul=Uo(Le.process)=="process",B5=Le.setImmediate,P5=Le.clearImmediate,GYe=Le.process,YA=Le.Dispatch,KYe=Le.Function,SW=Le.MessageChannel,qYe=Le.String,JA=0,Hg={};try{rm=Le.location}catch(e){}var nB=function(e){if(Sn(Hg,e)){var t=Hg[e];delete Hg[e],t()}},ZA=function(e){return function(){nB(e)}},CW=function(e){nB(e.data)},_W=function(e){Le.postMessage(qYe(e),rm.protocol+"//"+rm.host)};B5&&P5||(B5=function(e){var t=fne(arguments,1);return Hg[++JA]=function(){gne(vr(e)?e:KYe(e),void 0,t)},ad(JA),JA},P5=function(e){delete Hg[e]},Ul?ad=function(e){GYe.nextTick(ZA(e))}:YA&&YA.now?ad=function(e){YA.now(ZA(e))}:SW&&!Bne?(XA=(wW=new SW).port2,wW.port1.onmessage=CW,ad=tm(XA.postMessage,XA)):Le.addEventListener&&vr(Le.postMessage)&&!Le.importScripts&&rm&&rm.protocol!=="file:"&&!Tr(_W)?(ad=_W,Le.addEventListener("message",CW,!1)):ad="onreadystatechange"in Z1("script")?function(e){_5.appendChild(Z1("script")).onreadystatechange=function(){_5.removeChild(this),nB(e)}}:function(e){setTimeout(ZA(e),0)});var Rv,Yc,zg,yd,QA,e8,t8,AW,Pne={set:B5,clear:P5},XYe=/ipad|iphone|ipod/i.test(Hd)&&Le.Pebble!==void 0,YYe=/web0s(?!.*chrome)/i.test(Hd),JYe=H7.f,r8=Pne.set,kW=Le.MutationObserver||Le.WebKitMutationObserver,TW=Le.document,DW=Le.process,q2=Le.Promise,OW=JYe(Le,"queueMicrotask"),Nne=OW&&OW.value;Nne||(Rv=function(){var e,t;for(Ul&&(e=DW.domain)&&e.exit();Yc;){t=Yc.fn,Yc=Yc.next;try{t()}catch(r){throw Yc?yd():zg=void 0,r}}zg=void 0,e&&e.enter()},Bne||Ul||YYe||!kW||!TW?!XYe&&q2&&q2.resolve?((t8=q2.resolve(void 0)).constructor=q2,AW=tm(t8.then,t8),yd=function(){AW(Rv)}):Ul?yd=function(){DW.nextTick(Rv)}:(r8=tm(r8,Le),yd=function(){r8(Rv)}):(QA=!0,e8=TW.createTextNode(""),new kW(Rv).observe(e8,{characterData:!0}),yd=function(){e8.data=QA=!QA}));var n8,FW,Ine,BW,Rne=Nne||function(e){var t={fn:e,next:void 0};zg&&(zg.next=t),Yc||(Yc=t,yd()),zg=t},ZYe=function(e){var t,r;this.promise=new e(function(n,a){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=a}),this.resolve=sc(t),this.reject=sc(r)},aB={f:function(e){return new ZYe(e)}},N5=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},QYe=typeof window=="object",Lne=Pne.set,eJe=ln("species"),Xs="Promise",PW=Bi.getterFor(Xs),tJe=Bi.set,rJe=Bi.getterFor(Xs),Uc=AE&&AE.prototype,ds=AE,Lv=Uc,Mne=Le.TypeError,I5=Le.document,iB=Le.process,zd=aB.f,nJe=zd,aJe=!!(I5&&I5.createEvent&&Le.dispatchEvent),jne=vr(Le.PromiseRejectionEvent),$ne=!1,Vg=mE(Xs,function(){var e=eS(ds),t=e!==String(ds);if(!t&&Y1===66)return!0;if(Y1>=51&&/native code/.test(e))return!1;var r=new ds(function(a){a(1)}),n=function(a){a(function(){},function(){})};return(r.constructor={})[eJe]=n,!($ne=r.then(function(){})instanceof n)||!t&&QYe&&!jne}),iJe=Vg||!Cne(function(e){ds.all(e).catch(function(){})}),Une=function(e){var t;return!(!br(e)||!vr(t=e.then))&&t},oB=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;Rne(function(){for(var n=e.value,a=e.state==1,i=0;r.length>i;){var o,s,u,l=r[i++],c=a?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(a||(e.rejection===2&&sJe(e),e.rejection=1),c===!0?o=n:(p&&p.enter(),o=c(n),p&&(p.exit(),u=!0)),o===l.promise?d(Mne("Promise-chain cycle")):(s=Une(o))?or(s,o,f,d):f(o)):d(n)}catch(v){p&&!u&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&oJe(e)})}},Hne=function(e,t,r){var n,a;aJe?((n=I5.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Le.dispatchEvent(n)):n={promise:t,reason:r},!jne&&(a=Le["on"+e])?a(n):e==="unhandledrejection"&&function(i,o){var s=Le.console;s&&s.error&&(arguments.length==1?s.error(i):s.error(i,o))}("Unhandled promise rejection",r)},oJe=function(e){or(Lne,Le,function(){var t,r=e.facade,n=e.value;if(NW(e)&&(t=N5(function(){Ul?iB.emit("unhandledRejection",n,r):Hne("unhandledrejection",r,n)}),e.rejection=Ul||NW(e)?2:1,t.error))throw t.value})},NW=function(e){return e.rejection!==1&&!e.parent},sJe=function(e){or(Lne,Le,function(){var t=e.facade;Ul?iB.emit("rejectionHandled",t):Hne("rejectionhandled",t,e.value)})},Ad=function(e,t,r){return function(n){e(t,n,r)}},Vd=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,oB(e,!0))},R5=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Mne("Promise can't be resolved itself");var n=Une(t);n?Rne(function(){var a={done:!1};try{or(n,t,Ad(R5,a,e),Ad(Vd,a,e))}catch(i){Vd(a,i,e)}}):(e.value=t,e.state=1,oB(e,!1))}catch(a){Vd({done:!1},a,e)}}};if(Vg&&(Lv=(ds=function(e){tB(this,Lv),sc(e),or(n8,this);var t=PW(this);try{e(Ad(R5,t),Ad(Vd,t))}catch(r){Vd(t,r)}}).prototype,(n8=function(e){tJe(this,{type:Xs,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=SE(Lv,{then:function(e,t){var r=rJe(this),n=r.reactions,a=zd(mne(this,ds));return a.ok=!vr(e)||e,a.fail=vr(t)&&t,a.domain=Ul?iB.domain:void 0,r.parent=!0,n[n.length]=a,r.state!=0&&oB(r,!1),a.promise},catch:function(e){return this.then(void 0,e)}}),FW=function(){var e=new n8,t=PW(e);this.promise=e,this.resolve=Ad(R5,t),this.reject=Ad(Vd,t)},aB.f=zd=function(e){return e===ds||e===Ine?new FW(e):nJe(e)},vr(AE)&&Uc!==Object.prototype)){BW=Uc.then,$ne||(_i(Uc,"then",function(e,t){var r=this;return new ds(function(n,a){or(BW,r,n,a)}).then(e,t)},{unsafe:!0}),_i(Uc,"catch",Lv.catch,{unsafe:!0}));try{delete Uc.constructor}catch(e){}Rp&&Rp(Uc,Lv)}fs({global:!0,wrap:!0,forced:Vg},{Promise:ds}),EE(ds,Xs,!1),function(e){var t=r0("Promise"),r=xu.f;Ts&&t&&!t[EW]&&r(t,EW,{configurable:!0,get:function(){return this}})}(),Ine=r0(Xs),fs({target:Xs,stat:!0,forced:Vg},{reject:function(e){var t=zd(this);return or(t.reject,void 0,e),t.promise}}),fs({target:Xs,stat:!0,forced:Vg},{resolve:function(e){return function(t,r){if(Zn(t),br(r)&&r.constructor===t)return r;var n=aB.f(t);return(0,n.resolve)(r),n.promise}(this,e)}}),fs({target:Xs,stat:!0,forced:iJe},{all:function(e){var t=this,r=zd(t),n=r.resolve,a=r.reject,i=N5(function(){var o=sc(t.resolve),s=[],u=0,l=1;CE(e,function(c){var f=u++,d=!1;l++,or(o,t,c).then(function(p){d||(d=!0,s[f]=p,--l||n(s))},a)}),--l||n(s)});return i.error&&a(i.value),r.promise},race:function(e){var t=this,r=zd(t),n=r.reject,a=N5(function(){var i=sc(t.resolve);CE(e,function(o){or(i,t,o).then(r.resolve,n)})});return a.error&&n(a.value),r.promise}});var uJe=iy.PROPER,L5=RegExp.prototype,zne=L5.toString,lJe=kt(dne),cJe=Tr(function(){return zne.call({source:"a",flags:"b"})!="/a/b"}),fJe=uJe&&zne.name!="toString";(cJe||fJe)&&_i(RegExp.prototype,"toString",function(){var e=Zn(this),t=$l(e.source),r=e.flags;return"/"+t+"/"+$l(r===void 0&&X1(L5,e)&&!("flags"in L5)?lJe(e):r)},{unsafe:!0});var dJe=iy.EXISTS,pJe=xu.f,Vne=Function.prototype,hJe=kt(Vne.toString),Wne=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,vJe=kt(Wne.exec);Ts&&!dJe&&pJe(Vne,"name",{configurable:!0,get:function(){try{return vJe(Wne,hJe(this))[1]}catch(e){return""}}});var IW=new WeakMap;function Gne(e){return e.getMenuConfig("uploadImage")}function gJe(e,t){return J7(this,void 0,void 0,function(){return Z7(this,function(r){return[2,new Promise(function(n){var a=new FileReader;a.readAsDataURL(t),a.onload=function(){var i=a.result;if(i){var o=i.toString(),s=o.indexOf("data:image")===0?"":o;Sf(e,o,t.name,s),n("ok")}}})]})})}function mJe(e,t){return J7(this,void 0,void 0,function(){var r,n,a,i;return Z7(this,function(o){switch(o.label){case 0:return r=function(s){var u=IW.get(s);if(u!=null)return u;var l=Gne(s),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return u=_Q(bE(bE({},l),{onProgress:function(h){s.showProgressBar(h),f&&f(h)},onSuccess:function(h,g){if(p)return p(g,function(O,P,F){return Sf(s,O,P,F)}),void c(h,g);var m=g.errno,y=m===void 0?1:m,x=g.data,b=x===void 0?{}:x;if(y===0){if(Array.isArray(b))b.forEach(function(O){var P=O.url,F=P===void 0?"":P,q=O.alt,ee=q===void 0?"":q,J=O.href;Sf(s,F,ee,J===void 0?"":J)});else{var E=b.url,S=E===void 0?"":E,w=b.alt,C=w===void 0?"":w,_=b.href;Sf(s,S,C,_===void 0?"":_)}c(h,g)}else d(h,g)},onError:function(h,g,m){v(h,g,m)}})),IW.set(s,u),u}(e),n=t.name,a=t.type,i=t.size,r.addFile({name:n,type:a,size:i,data:t}),[4,r.upload()];case 1:return o.sent(),[2]}})})}function Kne(e,t){var r,n;return J7(this,void 0,void 0,function(){var a,i,o,s,u,l,c,f,d;return Z7(this,function(p){switch(p.label){case 0:if(t==null)return[2];a=Array.prototype.slice.call(t),i=Gne(e),o=i.customUpload,s=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),u=lYe(a),p.label=2;case 2:return[4,u.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,s&&f<=s?[4,gJe(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return o?[4,o(c,function(v,h,g){return Sf(e,v,h,g)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,mJe(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),r={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(n=u.return)?[4,n.call(u)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(r)throw r.error;return[7];case 16:return[7];case 17:return[2]}})})}var yJe=kt([].join),xJe=I7!=Object,bJe=One("join",",");fs({target:"Array",proto:!0,forced:xJe||!bJe},{join:function(e){return yJe(yc(this),e===void 0?",":e)}}),io&&(te.fn.append=io),_s&&(te.fn.on=_s),bp&&(te.fn.remove=bp),Cs&&(te.fn.val=Cs),ML&&(te.fn.click=ML),gp&&(te.fn.hide=gp);var wJe=function(){function e(){this.title=Re("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return F4(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,r){var n=this.getMenuConfig(t),a=n.allowedFileTypes,i=a===void 0?[]:a,o=n.customBrowseAndUpload;if(o)o(function(c,f,d){return Sf(t,c,f,d)});else{var s="";i.length>0&&(s='accept="'+i.join(", ")+'"');var u=te("body"),l=te('<input type="file" '+s+" multiple/>");l.hide(),u.append(l),l.click(),l.on("change",function(){var c=l[0].files;Kne(t,c)})}},e}(),EJe={menus:[{key:"uploadImage",factory:function(){return new wJe},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,r){console.error("'"+e.name+"' upload error",r)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,r=e;return r.insertData=function(n){if(F4(r))t(n);else if(n.getData("text/plain"))t(n);else{var a=n.files;a.length<=0?t(n):Array.prototype.slice.call(a).some(function(i){return function(o,s){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var l,c,f=u.call(o),d=[];try{for(;(s===void 0||s-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(p){c={error:p}}finally{try{l&&!l.done&&(u=f.return)&&u.call(f)}finally{if(c)throw c.error}}return d}(i.type.split("/"),1)[0]==="image"})?Kne(e,a):t(n)}},r}};oi("en",{highLightModule:{selectLang:"Language"}}),oi("zh-CN",{highLightModule:{selectLang:"选择语言"}});var kE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sB(e){var t={exports:{}};return e(t,t.exports),t.exports}var Yu,zx,X2=function(e){return e&&e.Math==Math&&e},Ot=X2(typeof globalThis=="object"&&globalThis)||X2(typeof window=="object"&&window)||X2(typeof self=="object"&&self)||X2(typeof kE=="object"&&kE)||function(){return this}()||Function("return this")(),SJe=Object.defineProperty,uB=function(e,t){try{SJe(Ot,e,{value:t,configurable:!0,writable:!0})}catch(r){Ot[e]=t}return t},Hl=Ot["__core-js_shared__"]||uB("__core-js_shared__",{}),lB=sB(function(e){(e.exports=function(t,r){return Hl[t]||(Hl[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),qne=Function.prototype,M5=qne.bind,j5=qne.call,CJe=M5&&M5.bind(j5),sr=M5?function(e){return e&&CJe(j5,e)}:function(e){return e&&function(){return j5.apply(e,arguments)}},_Je=Ot.TypeError,Lp=function(e){if(e==null)throw _Je("Can't call method on "+e);return e},AJe=Ot.Object,cB=function(e){return AJe(Lp(e))},kJe=sr({}.hasOwnProperty),eo=Object.hasOwn||function(e,t){return kJe(cB(e),t)},TJe=0,DJe=Math.random(),OJe=sr(1 .toString),Xne=function(e){return"Symbol("+(e===void 0?"":e)+")_"+OJe(++TJe+DJe,36)},wa=function(e){return typeof e=="function"},FJe=function(e){return wa(e)?e:void 0},uy=function(e,t){return arguments.length<2?FJe(Ot[e]):Ot[e]&&Ot[e][t]},a8=uy("navigator","userAgent")||"",RW=Ot.process,LW=Ot.Deno,MW=RW&&RW.versions||LW&&LW.version,jW=MW&&MW.v8;jW&&(zx=(Yu=jW.split("."))[0]>0&&Yu[0]<4?1:+(Yu[0]+Yu[1])),!zx&&a8&&(!(Yu=a8.match(/Edge\/(\d+)/))||Yu[1]>=74)&&(Yu=a8.match(/Chrome\/(\d+)/))&&(zx=+Yu[1]);var $W=zx,Xn=function(e){try{return!!e()}catch(t){return!0}},$5=!!Object.getOwnPropertySymbols&&!Xn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$W&&$W<41}),fB=$5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Mv=lB("wks"),If=Ot.Symbol,UW=If&&If.for,BJe=fB?If:If&&If.withoutSetter||Xne,xc=function(e){if(!eo(Mv,e)||!$5&&typeof Mv[e]!="string"){var t="Symbol."+e;$5&&eo(If,e)?Mv[e]=If[e]:Mv[e]=fB&&UW?UW(t):BJe(t)}return Mv[e]},Yne={};Yne[xc("toStringTag")]="z";var dB=String(Yne)==="[object z]",Ds=!Xn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),To=function(e){return typeof e=="object"?e!==null:wa(e)},U5=Ot.document,PJe=To(U5)&&To(U5.createElement),pB=function(e){return PJe?U5.createElement(e):{}},Jne=!Ds&&!Xn(function(){return Object.defineProperty(pB("div"),"a",{get:function(){return 7}}).a!=7}),NJe=Ot.String,IJe=Ot.TypeError,Ho=function(e){if(To(e))return e;throw IJe(NJe(e)+" is not an object")},jv=Function.prototype.call,On=jv.bind?jv.bind(jv):function(){return jv.apply(jv,arguments)},Zne=sr({}.isPrototypeOf),RJe=Ot.Object,i8=fB?function(e){return typeof e=="symbol"}:function(e){var t=uy("Symbol");return wa(t)&&Zne(t.prototype,RJe(e))},LJe=Ot.String,Qne=function(e){try{return LJe(e)}catch(t){return"Object"}},MJe=Ot.TypeError,eae=function(e){if(wa(e))return e;throw MJe(Qne(e)+" is not a function")},tae=function(e,t){var r=e[t];return r==null?void 0:eae(r)},jJe=Ot.TypeError,$Je=Ot.TypeError,UJe=xc("toPrimitive"),hB=function(e){var t=function(r,n){if(!To(r)||i8(r))return r;var a,i=tae(r,UJe);if(i){if(n===void 0&&(n="default"),a=On(i,r,n),!To(a)||i8(a))return a;throw $Je("Can't convert object to primitive value")}return n===void 0&&(n="number"),function(o,s){var u,l;if(s==="string"&&wa(u=o.toString)&&!To(l=On(u,o))||wa(u=o.valueOf)&&!To(l=On(u,o))||s!=="string"&&wa(u=o.toString)&&!To(l=On(u,o)))return l;throw jJe("Can't convert object to primitive value")}(r,n)}(e,"string");return i8(t)?t:t+""},HJe=Ot.TypeError,HW=Object.defineProperty,nS={f:Ds?HW:function(e,t,r){if(Ho(e),t=hB(t),Ho(r),Jne)try{return HW(e,t,r)}catch(n){}if("get"in r||"set"in r)throw HJe("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},vB=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Mp=Ds?function(e,t,r){return nS.f(e,t,vB(1,r))}:function(e,t,r){return e[t]=r,e},zJe=sr(Function.toString);wa(Hl.inspectSource)||(Hl.inspectSource=function(e){return zJe(e)});var TE,Wg,DE,gB=Hl.inspectSource,zW=Ot.WeakMap,VJe=wa(zW)&&/native code/.test(gB(zW)),VW=lB("keys"),rae=function(e){return VW[e]||(VW[e]=Xne(e))},mB={},H5=Ot.TypeError,WJe=Ot.WeakMap;if(VJe||Hl.state){var Ic=Hl.state||(Hl.state=new WJe),GJe=sr(Ic.get),WW=sr(Ic.has),KJe=sr(Ic.set);TE=function(e,t){if(WW(Ic,e))throw new H5("Object already initialized");return t.facade=e,KJe(Ic,e,t),t},Wg=function(e){return GJe(Ic,e)||{}},DE=function(e){return WW(Ic,e)}}else{var id=rae("state");mB[id]=!0,TE=function(e,t){if(eo(e,id))throw new H5("Object already initialized");return t.facade=e,Mp(e,id,t),t},Wg=function(e){return eo(e,id)?e[id]:{}},DE=function(e){return eo(e,id)}}var z5={set:TE,get:Wg,has:DE,enforce:function(e){return DE(e)?Wg(e):TE(e,{})},getterFor:function(e){return function(t){var r;if(!To(t)||(r=Wg(t)).type!==e)throw H5("Incompatible receiver, "+e+" required");return r}}},nae=Function.prototype,qJe=Ds&&Object.getOwnPropertyDescriptor,o8=eo(nae,"name"),aae={EXISTS:o8,PROPER:o8&&function(){}.name==="something",CONFIGURABLE:o8&&(!Ds||Ds&&qJe(nae,"name").configurable)},nm=sB(function(e){var t=aae.CONFIGURABLE,r=z5.get,n=z5.enforce,a=String(String).split("String");(e.exports=function(i,o,s,u){var l,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet,p=u&&u.name!==void 0?u.name:o;wa(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!eo(s,"name")||t&&s.name!==p)&&Mp(s,"name",p),(l=n(s)).source||(l.source=a.join(typeof p=="string"?p:""))),i!==Ot?(c?!d&&i[o]&&(f=!0):delete i[o],f?i[o]=s:Mp(i,o,s)):f?i[o]=s:uB(o,s)})(Function.prototype,"toString",function(){return wa(this)&&r(this).source||gB(this)})}),XJe=sr({}.toString),YJe=sr("".slice),zl=function(e){return YJe(XJe(e),8,-1)},JJe=xc("toStringTag"),ZJe=Ot.Object,QJe=zl(function(){return arguments}())=="Arguments",yB=dB?zl:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(a,i){try{return a[i]}catch(o){}}(t=ZJe(e),JJe))=="string"?r:QJe?zl(t):(n=zl(t))=="Object"&&wa(t.callee)?"Arguments":n},eZe=dB?{}.toString:function(){return"[object "+yB(this)+"]"};dB||nm(Object.prototype,"toString",eZe,{unsafe:!0});var GW,KW={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},s8=pB("span").classList,qW=s8&&s8.constructor&&s8.constructor.prototype,tZe=qW===Object.prototype?void 0:qW,XW=sr(sr.bind),u8=Ot.Object,rZe=sr("".split),xB=Xn(function(){return!u8("z").propertyIsEnumerable(0)})?function(e){return zl(e)=="String"?rZe(e,""):u8(e)}:u8,nZe=Math.ceil,aZe=Math.floor,bB=function(e){var t=+e;return t!=t||t===0?0:(t>0?aZe:nZe)(t)},iZe=Math.min,iae=function(e){return e>0?iZe(bB(e),9007199254740991):0},wB=function(e){return iae(e.length)},YW=Array.isArray||function(e){return zl(e)=="Array"},oae=function(){},oZe=[],sae=uy("Reflect","construct"),EB=/^\s*(?:class|function)\b/,sZe=sr(EB.exec),uZe=!EB.exec(oae),$v=function(e){if(!wa(e))return!1;try{return sae(oae,oZe,e),!0}catch(t){return!1}},uae=!sae||Xn(function(){var e;return $v($v.call)||!$v(Object)||!$v(function(){e=!0})||e})?function(e){if(!wa(e))return!1;switch(yB(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return uZe||!!sZe(EB,gB(e))}:$v,lZe=xc("species"),JW=Ot.Array,cZe=function(e,t){return new(function(r){var n;return YW(r)&&(n=r.constructor,(uae(n)&&(n===JW||YW(n.prototype))||To(n)&&(n=n[lZe])===null)&&(n=void 0)),n===void 0?JW:n}(e))(t===0?0:t)},ZW=sr([].push),Ju=function(e){var t=e==1,r=e==2,n=e==3,a=e==4,i=e==6,o=e==7,s=e==5||i;return function(u,l,c,f){for(var d,p,v=cB(u),h=xB(v),g=function(E,S){return eae(E),S===void 0?E:XW?XW(E,S):function(){return E.apply(S,arguments)}}(l,c),m=wB(h),y=0,x=f||cZe,b=t?x(u,m):r||o?x(u,0):void 0;m>y;y++)if((s||y in h)&&(p=g(d=h[y],y,v),e))if(t)b[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:ZW(b,d)}else switch(e){case 4:return!1;case 7:ZW(b,d)}return i?-1:n||a?a:b}},fZe=[Ju(0),Ju(1),Ju(2),Ju(3),Ju(4),Ju(5),Ju(6),Ju(7)][0],l8=(GW=[].forEach)&&Xn(function(){GW.call(null,function(){throw 1},1)})?[].forEach:function(e){return fZe(this,e,arguments.length>1?arguments[1]:void 0)},lae=function(e){if(e&&e.forEach!==l8)try{Mp(e,"forEach",l8)}catch(t){e.forEach=l8}};for(var c8 in KW)KW[c8]&&lae(Ot[c8]&&Ot[c8].prototype);lae(tZe);var QW={}.propertyIsEnumerable,eG=Object.getOwnPropertyDescriptor,cae={f:eG&&!QW.call({1:2},1)?function(e){var t=eG(this,e);return!!t&&t.enumerable}:QW},aS=function(e){return xB(Lp(e))},tG=Object.getOwnPropertyDescriptor,fae={f:Ds?tG:function(e,t){if(e=aS(e),t=hB(t),Jne)try{return tG(e,t)}catch(r){}if(eo(e,t))return vB(!On(cae.f,e,t),e[t])}},dZe=Math.max,pZe=Math.min,V5=function(e,t){var r=bB(e);return r<0?dZe(r+t,0):pZe(r,t)},hZe=function(e){return function(t,r,n){var a,i=aS(t),o=wB(i),s=V5(n,o);if(e&&r!=r){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},vZe=hZe(!1),rG=sr([].push),dae=function(e,t){var r,n=aS(e),a=0,i=[];for(r in n)!eo(mB,r)&&eo(n,r)&&rG(i,r);for(;t.length>a;)eo(n,r=t[a++])&&(~vZe(i,r)||rG(i,r));return i},OE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gZe=OE.concat("length","prototype"),mZe={f:Object.getOwnPropertyNames||function(e){return dae(e,gZe)}},pae={f:Object.getOwnPropertySymbols},yZe=sr([].concat),xZe=uy("Reflect","ownKeys")||function(e){var t=mZe.f(Ho(e)),r=pae.f;return r?yZe(t,r(e)):t},bZe=function(e,t){for(var r=xZe(t),n=nS.f,a=fae.f,i=0;i<r.length;i++){var o=r[i];eo(e,o)||n(e,o,a(t,o))}},wZe=/#|\.prototype\./,ly=function(e,t){var r=SZe[EZe(e)];return r==_Ze||r!=CZe&&(wa(t)?Xn(t):!!t)},EZe=ly.normalize=function(e){return String(e).replace(wZe,".").toLowerCase()},SZe=ly.data={},CZe=ly.NATIVE="N",_Ze=ly.POLYFILL="P",AZe=ly,kZe=fae.f,iS=function(e,t){var r,n,a,i,o,s=e.target,u=e.global,l=e.stat;if(r=u?Ot:l?Ot[s]||uB(s,{}):(Ot[s]||{}).prototype)for(n in t){if(i=t[n],a=e.noTargetGet?(o=kZe(r,n))&&o.value:r[n],!AZe(u?n:s+(l?".":"#")+n,e.forced)&&a!==void 0){if(typeof i==typeof a)continue;bZe(i,a)}(e.sham||a&&a.sham)&&Mp(i,"sham",!0),nm(r,n,i,e)}},Vx=Object.keys||function(e){return dae(e,OE)},od=Object.assign,nG=Object.defineProperty,TZe=sr([].concat),aG=!od||Xn(function(){if(Ds&&od({b:1},od(nG({},"a",{enumerable:!0,get:function(){nG(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(a){t[a]=a}),od({},e)[r]!=7||Vx(od({},t)).join("")!=n})?function(e,t){for(var r=cB(e),n=arguments.length,a=1,i=pae.f,o=cae.f;n>a;)for(var s,u=xB(arguments[a++]),l=i?TZe(Vx(u),i(u)):Vx(u),c=l.length,f=0;c>f;)s=l[f++],Ds&&!On(o,u,s)||(r[s]=u[s]);return r}:od;iS({target:"Object",stat:!0,forced:Object.assign!==aG},{assign:aG});var iG=sB(function(e){var t=function(r){var n=/\blang(?:uage)?-([\w-]+)\b/i,a=0,i={},o={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function g(m){return m instanceof s?new s(m.type,g(m.content),m.alias):Array.isArray(m)?m.map(g):m.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++a}),g.__id},clone:function g(m,y){var x,b;switch(y=y||{},o.util.type(m)){case"Object":if(b=o.util.objId(m),y[b])return y[b];for(var E in x={},y[b]=x,m)m.hasOwnProperty(E)&&(x[E]=g(m[E],y));return x;case"Array":return b=o.util.objId(m),y[b]?y[b]:(x=[],y[b]=x,m.forEach(function(S,w){x[w]=g(S,y)}),x);default:return m}},getLanguage:function(g){for(;g&&!n.test(g.className);)g=g.parentElement;return g?(g.className.match(n)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(x){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(x.stack)||[])[1];if(g){var m=document.getElementsByTagName("script");for(var y in m)if(m[y].src==g)return m[y]}return null}},isActive:function(g,m,y){for(var x="no-"+m;g;){var b=g.classList;if(b.contains(m))return!0;if(b.contains(x))return!1;g=g.parentElement}return!!y}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(g,m){var y=o.util.clone(o.languages[g]);for(var x in m)y[x]=m[x];return y},insertBefore:function(g,m,y,x){var b=(x=x||o.languages)[g],E={};for(var S in b)if(b.hasOwnProperty(S)){if(S==m)for(var w in y)y.hasOwnProperty(w)&&(E[w]=y[w]);y.hasOwnProperty(S)||(E[S]=b[S])}var C=x[g];return x[g]=E,o.languages.DFS(o.languages,function(_,O){O===C&&_!=g&&(this[_]=E)}),E},DFS:function g(m,y,x,b){b=b||{};var E=o.util.objId;for(var S in m)if(m.hasOwnProperty(S)){y.call(m,S,m[S],x||S);var w=m[S],C=o.util.type(w);C!=="Object"||b[E(w)]?C!=="Array"||b[E(w)]||(b[E(w)]=!0,g(w,y,S,b)):(b[E(w)]=!0,g(w,y,null,b))}}},plugins:{},highlightAll:function(g,m){o.highlightAllUnder(document,g,m)},highlightAllUnder:function(g,m,y){var x={callback:y,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",x),x.elements=Array.prototype.slice.apply(x.container.querySelectorAll(x.selector)),o.hooks.run("before-all-elements-highlight",x);for(var b,E=0;b=x.elements[E++];)o.highlightElement(b,m===!0,x.callback)},highlightElement:function(g,m,y){var x=o.util.getLanguage(g),b=o.languages[x];g.className=g.className.replace(n,"").replace(/\s+/g," ")+" language-"+x;var E=g.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&(E.className=E.className.replace(n,"").replace(/\s+/g," ")+" language-"+x);var S={element:g,language:x,grammar:b,code:g.textContent};function w(_){S.highlightedCode=_,o.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,o.hooks.run("after-highlight",S),o.hooks.run("complete",S),y&&y.call(S.element)}if(o.hooks.run("before-sanity-check",S),(E=S.element.parentElement)&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!S.code)return o.hooks.run("complete",S),void(y&&y.call(S.element));if(o.hooks.run("before-highlight",S),S.grammar)if(m&&r.Worker){var C=new Worker(o.filename);C.onmessage=function(_){w(_.data)},C.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else w(o.highlight(S.code,S.grammar,S.language));else w(o.util.encode(S.code))},highlight:function(g,m,y){var x={code:g,grammar:m,language:y};return o.hooks.run("before-tokenize",x),x.tokens=o.tokenize(x.code,x.grammar),o.hooks.run("after-tokenize",x),s.stringify(o.util.encode(x.tokens),x.language)},tokenize:function(g,m){var y=m.rest;if(y){for(var x in y)m[x]=y[x];delete m.rest}var b=new c;return f(b,b.head,g),l(g,b,m,b.head,0),function(E){for(var S=[],w=E.head.next;w!==E.tail;)S.push(w.value),w=w.next;return S}(b)},hooks:{all:{},add:function(g,m){var y=o.hooks.all;y[g]=y[g]||[],y[g].push(m)},run:function(g,m){var y=o.hooks.all[g];if(y&&y.length)for(var x,b=0;x=y[b++];)x(m)}},Token:s};function s(g,m,y,x){this.type=g,this.content=m,this.alias=y,this.length=0|(x||"").length}function u(g,m,y,x){g.lastIndex=m;var b=g.exec(y);if(b&&x&&b[1]){var E=b[1].length;b.index+=E,b[0]=b[0].slice(E)}return b}function l(g,m,y,x,b,E){for(var S in y)if(y.hasOwnProperty(S)&&y[S]){var w=y[S];w=Array.isArray(w)?w:[w];for(var C=0;C<w.length;++C){if(E&&E.cause==S+","+C)return;var _=w[C],O=_.inside,P=!!_.lookbehind,F=!!_.greedy,q=_.alias;if(F&&!_.pattern.global){var ee=_.pattern.toString().match(/[imsuy]*$/)[0];_.pattern=RegExp(_.pattern.source,ee+"g")}for(var J=_.pattern||_,Z=x.next,V=b;Z!==m.tail&&!(E&&V>=E.reach);V+=Z.value.length,Z=Z.next){var ie=Z.value;if(m.length>g.length)return;if(!(ie instanceof s)){var W,de=1;if(F){if(!(W=u(J,V,g,P)))break;var M=W.index,A=W.index+W[0].length,N=V;for(N+=Z.value.length;M>=N;)N+=(Z=Z.next).value.length;if(V=N-=Z.value.length,Z.value instanceof s)continue;for(var I=Z;I!==m.tail&&(N<A||typeof I.value=="string");I=I.next)de++,N+=I.value.length;de--,ie=g.slice(V,N),W.index-=V}else if(!(W=u(J,0,ie,P)))continue;M=W.index;var L=W[0],Y=ie.slice(0,M),Q=ie.slice(M+L.length),le=V+ie.length;E&&le>E.reach&&(E.reach=le);var ve=Z.prev;if(Y&&(ve=f(m,ve,Y),V+=Y.length),d(m,ve,de),Z=f(m,ve,new s(S,O?o.tokenize(L,O):L,q,L)),Q&&f(m,Z,Q),de>1){var he={cause:S+","+C,reach:le};l(g,m,y,Z.prev,V,he),E&&he.reach>E.reach&&(E.reach=he.reach)}}}}}}function c(){var g={value:null,prev:null,next:null},m={value:null,prev:g,next:null};g.next=m,this.head=g,this.tail=m,this.length=0}function f(g,m,y){var x=m.next,b={value:y,prev:m,next:x};return m.next=b,x.prev=b,g.length++,b}function d(g,m,y){for(var x=m.next,b=0;b<y&&x!==g.tail;b++)x=x.next;m.next=x,x.prev=m,g.length-=b}if(r.Prism=o,s.stringify=function g(m,y){if(typeof m=="string")return m;if(Array.isArray(m)){var x="";return m.forEach(function(C){x+=g(C,y)}),x}var b={type:m.type,content:g(m.content,y),tag:"span",classes:["token",m.type],attributes:{},language:y},E=m.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(b.classes,E):b.classes.push(E)),o.hooks.run("wrap",b);var S="";for(var w in b.attributes)S+=" "+w+'="'+(b.attributes[w]||"").replace(/"/g,""")+'"';return"<"+b.tag+' class="'+b.classes.join(" ")+'"'+S+">"+b.content+"</"+b.tag+">"},!r.document)return r.addEventListener&&(o.disableWorkerMessageHandler||r.addEventListener("message",function(g){var m=JSON.parse(g.data),y=m.language,x=m.code,b=m.immediateClose;r.postMessage(o.highlight(x,o.languages[y],y)),b&&r.close()},!1)),o;var p=o.util.currentScript();function v(){o.manual||o.highlightAll()}if(p&&(o.filename=p.src,p.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var h=document.readyState;h==="loading"||h==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return o}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
|
||
* Prism: Lightweight, robust, elegant syntax highlighting
|
||
*
|
||
* @license MIT <https://opensource.org/licenses/MIT>
|
||
* @author Lea Verou <https://lea.verou.me>
|
||
* @namespace
|
||
* @public
|
||
*/e.exports&&(e.exports=t),kE!==void 0&&(kE.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(r,n){var a={};a["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};i["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var o={};o[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(r,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(r){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var a=r.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(t!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",a='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",function(u){u.selector+=", "+a}),t.hooks.add("before-sanity-check",function(u){var l=u.element;if(l.matches(a)){u.code="",l.setAttribute(n,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var f=l.getAttribute("data-src"),d=u.language;if(d==="none"){var p=(/\.(\w+)$/.exec(f)||[,"none"])[1];d=r[p]||p}s(c,d),s(l,d);var v=t.plugins.autoloader;v&&v.loadLanguages(d);var h=new XMLHttpRequest;h.open("GET",f,!0),h.onreadystatechange=function(){h.readyState==4&&(h.status<400&&h.responseText?(l.setAttribute(n,"loaded"),c.textContent=h.responseText,t.highlightElement(c)):(l.setAttribute(n,"failed"),h.status>=400?c.textContent="✖ Error "+h.status+" while fetching file: "+h.statusText:c.textContent="✖ Error: File does not exist or is empty"))},h.send(null)}}),t.plugins.fileHighlight={highlight:function(u){for(var l,c=(u||document).querySelectorAll(a),f=0;l=c[f++];)t.highlightElement(l)}};var o=!1;t.fileHighlight=function(){o||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),o=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function s(u,l){var c=u.className;c=c.replace(i," ")+" language-"+l,u.className=c.replace(/\s+/g," ").trim()}}()});(function(e){var t=e.util.clone(e.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(u,l){return u=u.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return n}).replace(/<SPREAD>/g,function(){return a}),RegExp(u,l)}a=i(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var o=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(o).join(""):""},s=function(u){for(var l=[],c=0;c<u.length;c++){var f=u[c],d=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===o(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:o(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:d=!0),(d||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var p=o(f);c<u.length-1&&(typeof u[c+1]=="string"||u[c+1].type==="plain-text")&&(p+=o(u[c+1]),u.splice(c+1,1)),c>0&&(typeof u[c-1]=="string"||u[c-1].type==="plain-text")&&(p=o(u[c-1])+p,u.splice(c-1,1),c--),u[c]=new e.Token("plain-text",p,null,p)}f.content&&typeof f.content!="string"&&s(f.content)}};e.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||s(u.tokens)})})(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:a,punctuation:i};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:n,operator:a,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(u){/<\?/.test(u.code)&&e.languages["markup-templating"].buildPlaceholders(u,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(u){e.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[n,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:n.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":n,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(A,N){return A.replace(/<<(\d+)>>/g,function(I,L){return"(?:"+N[+L]+")"})}function r(A,N,I){return RegExp(t(A,N),I||"")}function n(A,N){for(var I=0;I<N;I++)A=A.replace(/<<self>>/g,function(){return"(?:"+A+")"});return A.replace(/<<self>>/g,"[^\\s\\S]")}var a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",o="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function u(A){return"\\b(?:"+A.trim().replace(/ /g,"|")+")\\b"}var l=u(i),c=RegExp(u(a+" "+i+" "+o+" "+s)),f=u(i+" "+o+" "+s),d=u(a+" "+i+" "+s),p=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),v=n(/\((?:[^()]|<<self>>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[h,p]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),y=/\[\s*(?:,\s*)*\]/.source,x=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,y]),b=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,v,y]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[b]),S=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,m,y]),w={keyword:c,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,_=/"(?:\\.|[^\\"\r\n])*"/.source,O=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[O]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0},{pattern:RegExp(C),greedy:!0,alias:"character"}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:w},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,S]),lookbehind:!0,inside:w},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:w},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:w},{pattern:r(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[x]),lookbehind:!0,inside:w},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,d,h]),inside:w}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[v]),lookbehind:!0,alias:"class-name",inside:w},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,m]),inside:w,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:w,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,p]),inside:{function:r(/^<<0>>/.source,[h]),generic:{pattern:RegExp(p),alias:"class-name",inside:w}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,h,S,c.source,v,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,v]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(S),greedy:!0,inside:w},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var P=_+"|"+C,F=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[P]),q=n(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[F]),2),ee=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,J=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,q]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[ee,J]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[ee]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[q]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Z=/:[^}\r\n]+/.source,V=n(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[F]),2),ie=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[V,Z]),W=n(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[P]),2),de=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,Z]);function M(A,N){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[A]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[N,Z]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[ie]),lookbehind:!0,greedy:!0,inside:M(ie,V)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[de]),lookbehind:!0,greedy:!0,inside:M(de,W)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=n.variable[1].inside,o=0;o<a.length;o++)i[a[o]]=e.languages.bash[a[o]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(l){return l=l.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return n}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+i+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+i+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(n),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(e.languages.markdown[l].inside.content.inside[c]=e.languages.markdown[c])})}),e.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var d=0,p=f.length;d<p;d++){var v=f[d];if(v.type==="code"){var h=v.content[1],g=v.content[3];if(h&&g&&h.type==="code-language"&&g.type==="code-block"&&typeof h.content=="string"){var m=h.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),y="language-"+(m=(/[a-z][\w-]*/i.exec(m)||[""])[0].toLowerCase());g.alias?typeof g.alias=="string"?g.alias=[g.alias,y]:g.alias.push(y):g.alias=[y]}}else c(v.content)}}(l.tokens)}),e.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,d=l.classes.length;f<d;f++){var p=l.classes[f],v=/language-(.+)/.exec(p);if(v){c=v[1];break}}var h=e.languages[c];if(h)l.content=e.highlight(function(m){var y=m.replace(o,"");return y.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(x,b){var E;return(b=b.toLowerCase())[0]==="#"?(E=b[1]==="x"?parseInt(b.slice(2),16):Number(b.slice(1)),u(E)):s[b]||x})}(l.content),h,c);else if(c&&c!=="none"&&e.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=g,e.plugins.autoloader.loadLanguages(c,function(){var m=document.getElementById(g);m&&(m.innerHTML=e.highlight(m.textContent,e.languages[c],c))})}}});var o=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(e){if(e.language==="groovy"&&e.type==="string"){var t=e.content[0];if(t!="'"){var r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t==="$"&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:r,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t==="/"?"regex":"gstring")}}});var DZe=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function hae(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,r){return t+hae(r)},0)}var Y2,OZe=Ot.String,ou=function(e){if(yB(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return OZe(e)},vae=function(){var e=Ho(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},SB=Ot.RegExp,W5=Xn(function(){var e=SB("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),FZe=W5||Xn(function(){return!SB("a","y").sticky}),gae={BROKEN_CARET:W5||Xn(function(){var e=SB("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:FZe,UNSUPPORTED_Y:W5},BZe=Ds?Object.defineProperties:function(e,t){Ho(e);for(var r,n=aS(t),a=Vx(t),i=a.length,o=0;i>o;)nS.f(e,r=a[o++],n[r]);return e},PZe=uy("document","documentElement"),mae=rae("IE_PROTO"),f8=function(){},yae=function(e){return"<script>"+e+"<\/script>"},oG=function(e){e.write(yae("")),e.close();var t=e.parentWindow.Object;return e=null,t},Wx=function(){try{Y2=new ActiveXObject("htmlfile")}catch(n){}var e,t;Wx=typeof document<"u"?document.domain&&Y2?oG(Y2):((t=pB("iframe")).style.display="none",PZe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(yae("document.F=Object")),e.close(),e.F):oG(Y2);for(var r=OE.length;r--;)delete Wx.prototype[OE[r]];return Wx()};mB[mae]=!0;var sG,d8,NZe=Object.create||function(e,t){var r;return e!==null?(f8.prototype=Ho(e),r=new f8,f8.prototype=null,r[mae]=e):r=Wx(),t===void 0?r:BZe(r,t)},IZe=Ot.RegExp,RZe=Xn(function(){var e=IZe(".","s");return!(e.dotAll&&e.exec(`
|
||
`)&&e.flags==="s")}),LZe=Ot.RegExp,MZe=Xn(function(){var e=LZe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),jZe=z5.get,$Ze=lB("native-string-replace",String.prototype.replace),FE=RegExp.prototype.exec,G5=FE,UZe=sr("".charAt),HZe=sr("".indexOf),zZe=sr("".replace),p8=sr("".slice),h8=(d8=/b*/g,On(FE,sG=/a/,"a"),On(FE,d8,"a"),sG.lastIndex!==0||d8.lastIndex!==0),uG=gae.BROKEN_CARET,v8=/()??/.exec("")[1]!==void 0;(h8||v8||uG||RZe||MZe)&&(G5=function(e){var t,r,n,a,i,o,s,u=this,l=jZe(u),c=ou(e),f=l.raw;if(f)return f.lastIndex=u.lastIndex,t=On(G5,f,c),u.lastIndex=f.lastIndex,t;var d=l.groups,p=uG&&u.sticky,v=On(vae,u),h=u.source,g=0,m=c;if(p&&(v=zZe(v,"y",""),HZe(v,"g")===-1&&(v+="g"),m=p8(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&UZe(c,u.lastIndex-1)!==`
|
||
`)&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),v8&&(r=new RegExp("^"+h+"$(?!\\s)",v)),h8&&(n=u.lastIndex),a=On(FE,p?r:u,m),p?a?(a.input=p8(a.input,g),a[0]=p8(a[0],g),a.index=u.lastIndex,u.lastIndex+=a[0].length):u.lastIndex=0:h8&&a&&(u.lastIndex=u.global?a.index+a[0].length:n),v8&&a&&a.length>1&&On($Ze,a[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(a[i]=void 0)}),a&&d)for(a.groups=o=NZe(null),i=0;i<d.length;i++)o[(s=d[i])[0]]=a[s[1]];return a});var am=G5;iS({target:"RegExp",proto:!0,forced:/./.exec!==am},{exec:am});var CB=Function.prototype,lG=CB.apply,VZe=CB.bind,cG=CB.call,WZe=typeof Reflect=="object"&&Reflect.apply||(VZe?cG.bind(lG):function(){return cG.apply(lG,arguments)}),GZe=xc("species"),g8=RegExp.prototype,KZe=xc("match"),qZe=Ot.TypeError,XZe=xc("species"),YZe=sr("".charAt),fG=sr("".charCodeAt),JZe=sr("".slice),ZZe=function(e){return function(t,r){var n,a,i=ou(Lp(t)),o=bB(r),s=i.length;return o<0||o>=s?e?"":void 0:(n=fG(i,o))<55296||n>56319||o+1===s||(a=fG(i,o+1))<56320||a>57343?e?YZe(i,o):n:e?JZe(i,o,o+2):a-56320+(n-55296<<10)+65536}},QZe=ZZe(!0),eQe=function(e,t,r){return t+(r?QZe(e,t).length:1)},tQe=Ot.Array,rQe=Math.max,dG=function(e,t,r){for(var n,a,i,o,s=wB(e),u=V5(t,s),l=V5(r===void 0?s:r,s),c=tQe(rQe(l-u,0)),f=0;u<l;u++,f++)n=c,a=f,i=e[u],(o=hB(a))in n?nS.f(n,o,vB(0,i)):n[o]=i;return c.length=f,c},nQe=Ot.TypeError,pG=function(e,t){var r=e.exec;if(wa(r)){var n=On(r,e,t);return n!==null&&Ho(n),n}if(zl(e)==="RegExp")return On(am,e,t);throw nQe("RegExp#exec called on incompatible receiver")},sd=gae.UNSUPPORTED_Y,aQe=Math.min,xae=[].push,iQe=sr(/./.exec),ud=sr(xae),Uv=sr("".slice);(function(e,t,r,n){var a=xc(e),i=!Xn(function(){var l={};return l[a]=function(){return 7},""[e](l)!=7}),o=i&&!Xn(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[GZe]=function(){return c},c.flags="",c[a]=/./[a],c.exec=function(){return l=!0,null},c[a](""),!l});if(!i||!o||r){var s=sr(/./[a]),u=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var h,g,m=ou(Lp(this)),y=v===void 0?4294967295:v>>>0;if(y===0)return[];if(p===void 0)return[m];if(!To(h=p)||!((g=h[KZe])!==void 0?g:zl(h)=="RegExp"))return On(c,m,p,y);for(var x,b,E,S=[],w=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),C=0,_=new RegExp(p.source,w+"g");(x=On(am,_,m))&&!((b=_.lastIndex)>C&&(ud(S,Uv(m,C,x.index)),x.length>1&&x.index<m.length&&WZe(xae,S,dG(x,1)),E=x[0].length,C=b,S.length>=y));)_.lastIndex===x.index&&_.lastIndex++;return C===m.length?!E&&iQe(_,"")||ud(S,""):ud(S,Uv(m,C)),S.length>y?dG(S,0,y):S}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:On(c,this,p,v)}:c,[function(p,v){var h=Lp(this),g=p==null?void 0:tae(p,l);return g?On(g,p,h,v):On(d,ou(h),p,v)},function(p,v){var h=Ho(this),g=ou(p),m=f(d,h,g,v,d!==c);if(m.done)return m.value;var y=function(q,ee){var J,Z=Ho(q).constructor;return Z===void 0||(J=Ho(Z)[XZe])==null?ee:function(V){if(uae(V))return V;throw qZe(Qne(V)+" is not a constructor")}(J)}(h,RegExp),x=h.unicode,b=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(sd?"g":"y"),E=new y(sd?"^(?:"+h.source+")":h,b),S=v===void 0?4294967295:v>>>0;if(S===0)return[];if(g.length===0)return pG(E,g)===null?[g]:[];for(var w=0,C=0,_=[];C<g.length;){E.lastIndex=sd?0:C;var O,P=pG(E,sd?Uv(g,C):g);if(P===null||(O=aQe(iae(E.lastIndex+(sd?C:0)),g.length))===w)C=eQe(g,C,x);else{if(ud(_,Uv(g,w,C)),_.length===S)return _;for(var F=1;F<=P.length-1;F++)if(ud(_,P[F]),_.length===S)return _;C=w=O}}return ud(_,Uv(g,w)),_}]}(a,""[e],function(l,c,f,d,p){var v=sr(l),h=c.exec;return h===am||h===g8.exec?i&&!p?{done:!0,value:s(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});nm(String.prototype,e,u[0]),nm(g8,a,u[1])}n&&Mp(g8[a],"sham",!0)})("split",0,!!Xn(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),sd),iS({global:!0},{globalThis:Ot}),ao&&(te.fn.attr=ao);var oQe=aae.PROPER,K5=RegExp.prototype,bae=K5.toString,sQe=sr(vae),uQe=Xn(function(){return bae.call({source:"a",flags:"b"})!="/a/b"}),lQe=oQe&&bae.name!="toString";(uQe||lQe)&&nm(RegExp.prototype,"toString",function(){var e=Ho(this),t=ou(e.source),r=e.flags;return"/"+t+"/"+ou(r===void 0&&Zne(K5,e)&&!("flags"in K5)?sQe(e):r)},{unsafe:!0});var cQe=function(){function e(){this.title=Re("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(t){var r=[],n=t.getMenuConfig("codeSelectLang").codeLangs,a=n===void 0?[]:n;r.push({text:"plain text",value:""}),a.forEach(function(o){var s=o.text,u=o.value;r.push({text:s,value:u})});var i=this.getValue(t);return r.forEach(function(o){o.value===i?o.selected=!0:delete o.selected}),r},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var r=this.getSelectCodeElem(t);if(r==null||!qe.isElement(r))return"";var n=r.language.toString(),a=t.getMenuConfig("codeSelectLang").codeLangs;return(a===void 0?[]:a).some(function(i){return i.value===n})?n:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,r){if(this.getSelectCodeElem(t)!=null){var n={language:r.toString()};pe.setNodes(t,n,{match:function(a){return X.checkNodeType(a,"code")}})}},e.prototype.getSelectCodeElem=function(t){var r=X.getSelectedNodeByType(t,"code");if(r==null)return null;var n=X.getParentNode(t,r);return qe.isElement(n)?n.type!=="pre"?null:r:null},e}(),fQe={renderStyle:function(e,t){var r=e,n=t,a="";return DZe.forEach(function(i){r[i]&&(a=i)}),a&&function(i,o){i.data==null&&(i.data={});var s=i.data;s.props==null&&(s.props={}),Object.assign(s.props,{className:o})}(n,a="token "+a),n},parseStyleHtml:function(e,t,r){var n=te(e);if(!qe.isElement(t)||X.getNodeType(t)!=="code")return t;var a=t,i=n.attr("class")||"";return i.indexOf("language-")===0?a.language=i.split("-")[1]||"":a.language=i.toLowerCase(),a},menus:[{key:"codeSelectLang",factory:function(){return new cQe},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var r=e.language,n=r===void 0?"":r;return"<code "+(n?'class="language-'+n+'"':"")+">"+t+"</code>"}}]},dQe=/"/g,pQe=sr("".replace);iS({target:"String",proto:!0,forced:Xn(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,r=ou(Lp(this)),n="<a",(n+=' name="'+pQe(ou(t),dQe,""")+'"')+">"+r+"</a>";var t,r,n}});var wae=function(e){var t,r,n,a=function(m,y){var x=typeof Symbol=="function"&&m[Symbol.iterator];if(!x)return m;var b,E,S=x.call(m),w=[];try{for(;(y===void 0||y-- >0)&&!(b=S.next()).done;)w.push(b.value)}catch(C){E={error:C}}finally{try{b&&!b.done&&(x=S.return)&&x.call(S)}finally{if(E)throw E.error}}return w}(e,2),i=a[0],o=a[1],s=[],u=function(m){if(!$e.isText(m))return null;var y=X.getParentNode(null,m);if(y&&X.getNodeType(y)==="code"){var x=X.getParentNode(null,y);if(x&&X.getNodeType(x)==="pre")return y}return null}(i);if(u==null)return s;var l=u.language,c=l===void 0?"":l;if(!c)return s;var f=function(m,y){if(!y)return[];var x=iG.languages[y];return x?iG.tokenize(m.text,x):[]}(i,c),d=0;try{for(var p=function(m){var y=typeof Symbol=="function"&&Symbol.iterator,x=y&&m[y],b=0;if(x)return x.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&b>=m.length&&(m=void 0),{value:m&&m[b++],done:!m}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),v=p.next();!v.done;v=p.next()){var h=v.value,g=d+hae(h);typeof h!="string"&&s.push(((n={})[h.type]=!0,n.anchor={path:o,offset:d},n.focus={path:o,offset:g},n)),d=g}}catch(m){t={error:m}}finally{try{v&&!v.done&&(r=p.return)&&r.call(p)}finally{if(t)throw t.error}}return s},Hr=function(){return Hr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Hr.apply(this,arguments)},zn=function(){function e(){throw new Error(`不能实例化
|
||
Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=Hr(Hr({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=Hr(Hr({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=Hr(Hr({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=Hr(Hr({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,r){(function(n,a){var i=n.key,o=n.factory,s=n.config,u=Vi(Vi({},s),a||{});if(A1[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");A1[i]=o,function(l,c){c!=null&&(GZ[l]=c)}(i,u)})(t,r)},e.registerRenderElem=function(t){(function(r){var n=r.type,a=r.renderElem;mQ[n||""]=a})(t)},e.registerRenderStyle=function(t){(function(r){Uk.push(r)})(t)},e.registerElemToHtml=function(t){(function(r){var n=r.type,a=r.elemToHtml;KZ[n||""]=a})(t)},e.registerStyleToHtml=function(t){(function(r){Nk.push(r)})(t)},e.registerPreParseHtml=function(t){(function(r){fQ.push(r)})(t)},e.registerParseElemHtml=function(t){(function(r){var n=r.selector,a=r.parseElemHtml;vw[n]=a})(t)},e.registerParseStyleHtml=function(t){(function(r){RF.push(r)})(t)},e.registerModule=function(t){Hc(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */function Hc(e){var t=e.menus,r=e.renderElems,n=e.renderStyle,a=e.elemsToHtml,i=e.styleToHtml,o=e.preParseHtml,s=e.parseElemsHtml,u=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(c){return zn.registerMenu(c)}),r&&r.forEach(function(c){return zn.registerRenderElem(c)}),n&&zn.registerRenderStyle(n),a&&a.forEach(function(c){return zn.registerElemToHtml(c)}),i&&zn.registerStyleToHtml(i),o&&o.forEach(function(c){return zn.registerPreParseHtml(c)}),s&&s.forEach(function(c){return zn.registerParseElemHtml(c)}),u&&zn.registerParseStyleHtml(u),l&&zn.registerPlugin(l)}x$e.forEach(function(e){return Hc(e)}),Hc(YHe),Hc(EWe),Hc(Fqe),Hc(EJe),Hc(fQe);var Eae='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',Sae={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},hQe={hoverbarKeys:Hr(Hr({},Sae),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};zn.setEditorConfig(Hr(Hr({},hQe),{decorate:wae}));var vQe={hoverbarKeys:Sae};zn.setSimpleEditorConfig(Hr(Hr({},vQe),{decorate:wae}));var gQe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Re("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:Re("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:Re("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:Re("editor.image"),iconSvg:Eae,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Re("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};zn.setToolbarConfig(gQe);var mQe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Re("editor.image"),iconSvg:Eae,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function yQe(e){e===void 0&&(e={});var t=e.selector,r=t===void 0?"":t,n=e.content,a=n===void 0?[]:n,i=e.html,o=e.config,s=o===void 0?{}:o,u=e.mode,l=(u===void 0?"default":u)==="simple"?zn.simpleEditorConfig:zn.editorConfig,c=Hr(Hr({},l.hoverbarKeys||{}),s.hoverbarKeys||{});return _Pe({selector:r,config:Hr(Hr(Hr({},l),s),{hoverbarKeys:c}),content:a,html:i,plugins:zn.plugins})}function xQe(e){var t=e.selector,r=e.editor,n=e.config,a=n===void 0?{}:n,i=e.mode,o=i===void 0?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var s=o==="simple"?zn.simpleToolbarConfig:zn.toolbarConfig,u=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,d=c.config,p=d===void 0?{}:d;if(function(g,m){return hQ(g,"data-w-e-toolbar",m)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var v=Vi({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),h=new OPe(f,v);return kF.set(h,l),w4.set(l,h),h}(r,{selector:t,config:Hr(Hr({},s),a)});return u}zn.setSimpleToolbarConfig(mQe);var bQe=Object.defineProperty,wQe=Object.defineProperties,EQe=Object.getOwnPropertyDescriptors,hG=Object.getOwnPropertySymbols,SQe=Object.prototype.hasOwnProperty,CQe=Object.prototype.propertyIsEnumerable,vG=(e,t,r)=>t in e?bQe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_Qe=(e,t)=>{for(var r in t||(t={}))SQe.call(t,r)&&vG(e,r,t[r]);if(hG)for(var r of hG(t))CQe.call(t,r)&&vG(e,r,t[r]);return e},AQe=(e,t)=>wQe(e,EQe(t));function Zu(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`
|
||
Please use '@${e}' event instead of props`,t}var Cae=(e,t)=>{for(const[r,n]of t)e[r]=n;return e};const kQe=Fe({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const r=ke(null),n=ps(null),a=ke(""),i=()=>{if(!r.value)return;const s=Mf(e.defaultContent);yQe({selector:r.value,mode:e.mode,content:s||[],html:e.defaultHtml||e.modelValue||"",config:AQe(_Qe({},e.defaultConfig),{onCreated(u){if(n.value=u,t.emit("onCreated",u),e.defaultConfig.onCreated){const l=Zu("onCreated");throw new Error(l)}},onChange(u){const l=u.getHtml();if(a.value=l,t.emit("update:modelValue",l),t.emit("onChange",u),e.defaultConfig.onChange){const c=Zu("onChange");throw new Error(c)}},onDestroyed(u){if(t.emit("onDestroyed",u),e.defaultConfig.onDestroyed){const l=Zu("onDestroyed");throw new Error(l)}},onMaxLength(u){if(t.emit("onMaxLength",u),e.defaultConfig.onMaxLength){const l=Zu("onMaxLength");throw new Error(l)}},onFocus(u){if(t.emit("onFocus",u),e.defaultConfig.onFocus){const l=Zu("onFocus");throw new Error(l)}},onBlur(u){if(t.emit("onBlur",u),e.defaultConfig.onBlur){const l=Zu("onBlur");throw new Error(l)}},customAlert(u,l){if(t.emit("customAlert",u,l),e.defaultConfig.customAlert){const c=Zu("customAlert");throw new Error(c)}},customPaste:(u,l)=>{if(e.defaultConfig.customPaste){const f=Zu("customPaste");throw new Error(f)}let c;return t.emit("customPaste",u,l,f=>{c=f}),c}})})};function o(s){const u=n.value;u!=null&&u.setHtml(s)}return $r(()=>{i()}),Ge(()=>e.modelValue,s=>{s!==a.value&&o(s)}),{box:r}}}),TQe={ref:"box",style:{height:"100%"}};function DQe(e,t,r,n,a,i){return ge(),Oe("div",TQe,null,512)}var OQe=Cae(kQe,[["render",DQe]]);const FQe=Fe({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=ke(null),r=n=>{if(t.value){if(n==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");X.getToolbar(n)||xQe({editor:n,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return bG(()=>{const{editor:n}=e;n!=null&&r(n)}),{selector:t}}}),BQe={ref:"selector"};function PQe(e,t,r,n,a,i){return ge(),Oe("div",BQe,null,512)}var NQe=Cae(FQe,[["render",PQe]]);const IQe={class:"editor-box"},RQe={style:{margin:"8px 0",height:"24px","line-height":"24px"}},LQe=Fe({__name:"wangEditor",props:{value:{},toolbarConfig:{default:()=>({excludeKeys:["fullScreen","justifyJustify"]})},editorConfig:{default:()=>({placeholder:"请输入内容...",MENU_CONF:{},hoverbarKeys:{link:{menuKeys:["editLink","unLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","deleteImage"]}}})},height:{default:"450px"},mode:{default:"default"},hideToolBar:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},uploadImageConfig:{},uploadVideoConfig:{},controlslist:{default:"nodownload"},placeholderext:{}},emits:["update:value","check-validate","clear-validate","contentLength"],setup(e,{expose:t,emit:r}){const n=e,a=ps(),i=["image/png","image/jpg","image/jpeg","image/bmp"],o=["video/mp4"],s=["mp4"],u=ke(0),l=S=>{a.value=S,b(S);let w=document.getElementsByTagName("video");if(n.controlslist)for(let _=0;_<w.length;_++)w[_].setAttribute("controlslist",n.controlslist);let C=document.getElementsByClassName("w-e-scroll");if(C.length>0)for(let _=0;_<C.length;_++)C[_].getElementsByTagName("div")[0].setAttribute("style","height:100%;width:100%")};n.disabled&&mt(()=>a.value.disable());const c=ce({get(){return n.value},set(S){a.value.isEmpty()&&(S=""),r("update:value",S)}}),d=(S=>{let w=!1,C;return(..._)=>(w||(w=!0,C=S(..._),setTimeout(()=>{w=!1},1500)),C)})(S=>{Ya.success(`${S}`)}),p=Pr({onProgress(S){console.log("progress",S)},onSuccess(S,w){console.log(`${S.name} 上传成功`,w),d("上传成功")},onFailed(S,w){console.log(`${S.name} 上传失败`,w),Ya.error(`${S.name} 上传失败`)},onError(S,w,C){console.log(`${S.name} 上传出错 ${w}`),Ya.error(`${S.name} 上传出错 ${w}`)}}),v=Pr({maxFileSize:5*1024*1024,maxNumberOfFiles:1,metaWithUrl:!1,allowedFileTypes:i,withCredentials:!0,timeout:10*1e3,onBeforeUpload(S){for(const w in S)if(S.hasOwnProperty.call(S,w)){const C=S[w];if(!i.includes(C.type))return Ya.error(`图片验证未通过:【${C.name}】不支持上传`),delete S[w],!1}return S}});n.editorConfig.MENU_CONF.uploadImage=Object.assign(v,p,n.uploadImageConfig);const h=Pr({maxFileSize:500*1024*1024,maxNumberOfFiles:1,allowedFileTypes:o,metaWithUrl:!1,withCredentials:!0,timeout:30*1e3,onBeforeUpload(S){for(const w in S)if(S.hasOwnProperty.call(S,w)){const C=S[w];if(!s.includes(C.extension)||!o.includes(C.type))return Ya.error(`视频验证未通过:【${C.name}】不支持上传`),delete S[w],!1}return S}});n.editorConfig.MENU_CONF.uploadVideo=Object.assign(h,p,n.uploadVideoConfig);const g=()=>{r("clear-validate")},m=()=>{r("check-validate")},y=(S,w,C)=>{console.log("ClipboardEvent 粘贴事件对象",w),C(!0)},x=S=>{b(S),E()},b=S=>{const w=S.getText().replace(/\n|\r/mg,"");u.value=w.length,r("contentLength",u)},E=()=>{let S;clearTimeout(S),S=setTimeout(()=>{let w=document.getElementsByClassName("w-e-text-container");if(w.length>0)for(let C=0;C<w.length;C++){let _=w[C].getElementsByTagName("button");if(_.length>0)for(let O=0;O<_.length;O++){let P=_[O].getAttribute("data-menu-key");P&&P==="through"&&_[O].setAttribute("data-tooltip","删除线"),P&&P==="bold"&&_[O].setAttribute("data-tooltip","粗体")}}},1e3)};return Ge(()=>n.disabled,S=>{if(S)mt(()=>a.value.disable());else{mt(()=>a.value.enable()),a.value.focus();let w=document.getElementsByClassName("w-e-bar-item-menus-container");if(w.length>0)for(let _=0;_<w.length;_++){let O=w[_].getElementsByTagName("button");if(O.length>0)for(let P=0;P<O.length;P++)O[P].removeAttribute("data-tooltip"),O[P].removeAttribute("class")}let C=document.getElementsByClassName("editor-toolbar");if(C.length>0)for(let _=0;_<C.length;_++){let O=C[_].getElementsByTagName("button");if(O.length>0)for(let P=0;P<O.length;P++){let F=O[P].getAttribute("data-menu-key");F&&F==="bold"&&O[P].setAttribute("data-tooltip","粗体"),F&&F==="underline"&&O[P].setAttribute("data-tooltip","下划线"),F&&F==="italic"&&O[P].setAttribute("data-tooltip","斜体")}}}}),li(()=>{a.value&&a.value.destroy()}),t({editor:a}),(S,w)=>(ge(),Oe("div",IQe,[Ar(Ke(T(NQe),{class:"editor-toolbar",editor:a.value,defaultConfig:S.toolbarConfig,mode:S.mode},null,8,["editor","defaultConfig","mode"]),[[ta,!S.hideToolBar]]),Ke(T(OQe),{style:pr({height:S.height}),class:"editor-content",modelValue:c.value,"onUpdate:modelValue":w[0]||(w[0]=C=>c.value=C),defaultConfig:S.editorConfig,mode:S.mode,onOnCreated:l,onOnFocus:g,onOnBlur:m,onOnChange:x,onCustomPaste:y},null,8,["style","modelValue","defaultConfig","mode"]),Pe("p",RQe,"当前正文总长度:"+rr(T(u)),1)]))}});const MQe={class:"dialog-footer"},jQe=Fe({__name:"movingKnowledgePoints",props:["stateData"],setup(e,{expose:t}){const n=e.stateData,a=ke(),i=ke(),o={id:"id",type:"type",label:"name",children:"zones",isLeaf:"leaf"},s=async(d,p)=>{if(d.level==0&&u(d,p,""),d.level>=1){let v=d.data.id;u(d,p,v)}},u=async(d,p,v)=>{const g=await m2e({id:v});if(g.code==0){let m=g.data.filter(y=>y.type==0);return p(m)}return p([])},l=Pr({visibleYD:!1}),c=()=>{a.value="",l.visibleYD=!0},f=async()=>{let d={id:n.id,parent_id_new:a.value};const p=await A2e(d);Ya.success(p.message||"提交成功"),l.visibleYD=!1};return t({dialogVisible:c}),$r(()=>{}),(d,p)=>{const v=mD,h=_K,g=Mge,m=CK,y=$K,x=tge;return l.visibleYD?(ge(),ze(x,{key:0,modelValue:l.visibleYD,"onUpdate:modelValue":p[3]||(p[3]=b=>l.visibleYD=b),title:"移动","close-on-click-modal":!1,center:"",width:"600px"},{footer:De(()=>[Pe("span",MQe,[Ke(y,{onClick:p[2]||(p[2]=b=>l.visibleYD=!1)},{default:De(()=>[Pa("取消")]),_:1}),Ke(y,{type:"primary",onClick:f},{default:De(()=>[Pa(" 确定 ")]),_:1})])]),default:De(()=>[Ke(m,{model:T(n),"label-width":"120px",style:{height:"calc(100% - 82px)"}},{default:De(()=>[Ke(h,{label:"所属目录"},{default:De(()=>[Ke(v,{modelValue:T(n).directory,"onUpdate:modelValue":p[0]||(p[0]=b=>T(n).directory=b),disabled:!0},null,8,["modelValue"])]),_:1}),Ke(h,{label:"移动目录"},{default:De(()=>[Ke(g,{modelValue:a.value,"onUpdate:modelValue":p[1]||(p[1]=b=>a.value=b),clearable:"",ref_key:"treeRef",ref:i,lazy:"",load:s,props:o,"value-key":"id","node-key":"id",placeholder:"请选择(如需移动到根目录此处为空)","check-strictly":"","highlight-current":"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])):We("",!0)}}}),$Qe={style:{"text-align":"right",height:"24px","line-height":"24px",position:"absolute",top:"0px",right:"0px","z-index":"99999"}},UQe={key:0},m8=1e4,HQe=Fe({__name:"content",props:{itemData:{},keywordFlag:{type:Boolean},isMovBtn:{type:Boolean},wangEditorHeight:{default:"450px"}},emits:["closePage"],setup(e,{emit:t}){var V;const r=e,n=PG();(V=ui())==null||V.proxy;let a=null;const i=ke(0),o=(ie,W,de)=>{i.value&&i.value>m8?de(new Error(`文本内容最大长度为${m8}`)):de()},s=[{id:0,value:"目录"},{id:1,value:"知识点"}];let u=Pr({id:"",type:"",directory:"",name:"",keyword:"",description:"",content:""}),l=Pr({id:"",type:"",directory:"",name:"",keyword:"",description:"",content:""});const c=Pr({name:[_u.required,wN(128),_u.cantOnlySpace,PS()],keyword:[_u.required,_u.cantOnlySpace,wN(128),PS()],description:[_u.required,_u.cantOnlySpace,_u.charsLength100,PS()],content:[_u.required,{validator:o,trigger:"blur"}]}),f=ke(!0),d=ke(!0),p=ke(null),v=ke(null),h=ke(null);let g=!0;const m=Pr({server:b2e(),fieldName:"imageData",meta:{id:""},headers:{Accept:"multipart/form-data;charset=UTF-8",token:n.token},customInsert(ie,W){let de=ie.data,M=`${k2e()}?id=${u.id}&name=${de.name}`;W(M,de.alt,de.href)}}),y=Pr({server:w2e(),fieldName:"videoData",meta:{id:""},headers:{Accept:"multipart/form-data;charset=UTF-8",token:n.token},customInsert(ie,W){let de=ie.data,M=`${T2e()}?id=${u.id}&name=${de.name}`;W(M,de.poster)}}),x=()=>{h.value.dialogVisible()},b=async ie=>{const de=await y2e({id:ie});de.data&&de.data.keyword&&de.data.description&&(g=!1),d.value=!1,mt(()=>{d.value=!0,f.value=!0}),ee(de.data)},E=(ie,W)=>{let de=DY(ie);for(const M in de)W[M]=de[M]},S=()=>{},w=()=>{u.content||p.value.clearValidate("content")},C=ie=>{i.value=ie.value,i.value&&i.value<=m8?p.value.clearValidate("content"):p.value.validateField("content")},_=ie=>{f.value=!f.value,ie||(f.value?E(l,u):E(u,l),mt(()=>{p.value.clearValidate()})),f.value&&(d.value=!1,mt(()=>{d.value=!0}))},O=async()=>{let ie={id:u.id,type:u.type,name:u.name};const W=await x2e(ie);u.type==0&&(Ya.success(W.message||"提交成功"),_(!0))},P=async()=>{let ie=Object.assign({},u);ie.content=F_e(ie.content);const W=await(g==!0?E2e:S2e)(ie);Ya.success(W.message||"提交成功"),_(!0)},F=()=>{p.value.validateField("content"),p.value.validate(ie=>{if(ie)u.type==0?O():(O(),P());else return!1})},q=()=>{t("closePage",!1)},ee=ie=>{for(const W in u)if(W=="content"){let de=B_e(ie.content),M=/\?id=([^&]*)?/g,A=/target=([^>]*)?/g,N=`?id=${ie.id}`,I=de.replace(M,N);u.content=I.replace(A,'target="_self"')}else u[W]=ie[W];J()},J=async()=>{let ie={id:u.id};const W=await _2e(ie);u.directory=W.data.path},Z=ie=>{ie.type==0&&ee(ie),ie.type==1&&b(ie.id),m.meta={id:ie.id},y.meta={id:ie.id},f.value=!0};return Ge(()=>r.itemData,ie=>{a=ie,a&&Z(a)}),Ge(()=>f.value,ie=>{for(const W in c)if(c.hasOwnProperty.call(c,W)){const de=c[W];de[0].required=!ie}},{immediate:!0}),SG(()=>{}),(ie,W)=>{const de=$K,M=nve,A=ave,N=_K,I=mD,L=CK,Y=Rve;return ge(),Oe(xn,null,[Pe("div",$Qe,[r.keywordFlag?(ge(),ze(de,{key:0,type:"primary",size:"small",onClick:q},{default:De(()=>[Pa("返回")]),_:1})):We("",!0)]),Ke(L,{ref_key:"elFormRef",ref:p,model:T(u),"label-width":"74px","label-position":"left",style:{height:"calc(100% - 40px)"},rules:c,"validate-on-rule-change":!1},{default:De(()=>[Ke(N,{label:"类型"},{default:De(()=>[Ke(A,{modelValue:T(u).type,"onUpdate:modelValue":W[0]||(W[0]=Q=>T(u).type=Q)},{default:De(()=>[(ge(),Oe(xn,null,xl(s,Q=>Ke(M,{label:Q.id,key:Q.id,disabled:!0},{default:De(()=>[Pa(rr(Q.value),1)]),_:2},1032,["label"])),64))]),_:1},8,["modelValue"])]),_:1}),Ke(N,{label:"所属目录"},{default:De(()=>[Ke(I,{modelValue:T(u).directory,"onUpdate:modelValue":W[1]||(W[1]=Q=>T(u).directory=Q),disabled:!0},null,8,["modelValue"])]),_:1}),Ke(N,{label:"名称",prop:"name"},{default:De(()=>[Ke(I,{modelValue:T(u).name,"onUpdate:modelValue":W[2]||(W[2]=Q=>T(u).name=Q),disabled:f.value,clearable:""},null,8,["modelValue","disabled"])]),_:1}),T(u).type==1&&d.value?(ge(),Oe("div",UQe,[Ke(N,{label:"关键字",prop:"keyword"},{default:De(()=>[Ke(I,{modelValue:T(u).keyword,"onUpdate:modelValue":W[3]||(W[3]=Q=>T(u).keyword=Q),disabled:f.value,clearable:""},null,8,["modelValue","disabled"])]),_:1}),Ke(N,{label:"描述",prop:"description"},{default:De(()=>[Ke(I,{modelValue:T(u).description,"onUpdate:modelValue":W[4]||(W[4]=Q=>T(u).description=Q),disabled:f.value,clearable:""},null,8,["modelValue","disabled"])]),_:1}),Ke(N,{label:"正文",prop:"content"},{default:De(()=>[Ke(LQe,{style:{width:"100%",height:"100%"},ref_key:"basicEditorRef",ref:v,value:T(u).content,"onUpdate:value":W[5]||(W[5]=Q=>T(u).content=Q),uploadImageConfig:m,uploadVideoConfig:y,disabled:f.value,hideToolBar:f.value,height:r.wangEditorHeight,onCheckValidate:S,onClearValidate:w,onContentLength:C},null,8,["value","uploadImageConfig","uploadVideoConfig","disabled","hideToolBar","height"])]),_:1})])):We("",!0)]),_:1},8,["model","rules"]),Ke(Y,{class:"footer"},{default:De(()=>[r.isMovBtn&&f.value?(ge(),ze(de,{key:0,type:"primary",onClick:x,disabled:!T(u).directory&&!T(u).name},{default:De(()=>[Pa("移动")]),_:1},8,["disabled"])):We("",!0),r.isMovBtn&&f.value?(ge(),ze(de,{key:1,type:"primary",onClick:W[6]||(W[6]=Q=>_(!1)),disabled:!T(u).directory&&!T(u).name},{default:De(()=>[Pa("编辑")]),_:1},8,["disabled"])):We("",!0),f.value?We("",!0):(ge(),ze(de,{key:2,type:"primary",onClick:W[7]||(W[7]=Q=>_(!1))},{default:De(()=>[Pa("取消")]),_:1})),f.value?We("",!0):(ge(),ze(de,{key:3,type:"primary",onClick:F},{default:De(()=>[Pa("保存")]),_:1}))]),_:1}),Ke(jQe,{ref_key:"dialogMov",ref:h,stateData:T(u)},null,8,["stateData"])],64)}}});const zQe=NG(HQe,[["__scopeId","data-v-bc086195"]]);const vh=e=>(oie("data-v-bf5b7bb3"),e=e(),sie(),e),VQe={key:0,style:{height:"100%"}},WQe={class:"elScrollbar"},GQe={class:"div-h"},KQe=vh(()=>Pe("span",null,"名称:",-1)),qQe=["title"],XQe={class:"div-h"},YQe=vh(()=>Pe("span",null,"关键字:",-1)),JQe=["title"],ZQe={class:"div-h"},QQe=vh(()=>Pe("span",null,"描述:",-1)),eet=["title"],tet={class:"div-h"},ret=vh(()=>Pe("span",null,"得分:",-1)),net=["title"],aet={class:"div-h"},iet=vh(()=>Pe("span",null,"标题:",-1)),oet=["title"],set={class:"div-h"},uet=vh(()=>Pe("span",null,"关键字:",-1)),cet=["title"],fet=Fe({__name:"keywordSearch",props:["filter","isSearchQuery"],emits:["filterText","treeData"],setup(e,{emit:t}){const r=e,n=ke(!1),a=Pr({searchData:[]}),i=Pr({itemData:{}}),o=async l=>{n.value=!1;const f=await C2e({keyword:l});a.searchData=f.data,r.isSearchQuery||t("treeData",a.searchData[0])},s=l=>{r.isSearchQuery?(i.itemData=l,n.value=!0):t("treeData",l)},u=l=>{n.value=l,o(r.filter)};return Ge(()=>r.filter,l=>{l&&o(l)}),$r(()=>{}),(l,c)=>{const f=Ehe,d=wve,p=gve;return ge(),Oe(xn,null,[n.value?We("",!0):(ge(),Oe("div",VQe,[a.searchData.length==0?(ge(),ze(p,{key:0,style:{height:"100%"}},{default:De(()=>[Ke(d,{span:24,style:{height:"100%"}},{default:De(()=>[Ke(f,{class:"noDataCard"},{default:De(()=>[Pa(" 暂无数据 ")]),_:1})]),_:1})]),_:1})):(ge(),ze(p,{key:1},{default:De(()=>[Pe("div",WQe,[(ge(!0),Oe(xn,null,xl(a.searchData,(v,h)=>Ar((ge(),ze(d,{span:24,key:h,style:{padding:"0 16px"}},{default:De(()=>[Ke(f,{onClick:g=>s(v),class:"elCard1"},{default:De(()=>[Pe("div",GQe,[KQe,Pe("span",{class:"div-hsc sColor",title:v.name},rr(v.name),9,qQe)]),Pe("div",XQe,[YQe,Pe("span",{class:"div-hsc sColor",title:v.keyword},rr(v.keyword),9,JQe)]),Pe("div",ZQe,[QQe,Pe("span",{class:"div-hsc sColor",title:v.description},rr(v.description),9,eet)]),Pe("div",tet,[ret,Pe("span",{class:"div-hsc sColor",title:v.score},rr(v.score),9,net)])]),_:2},1032,["onClick"])]),_:2},1024)),[[ta,r.isSearchQuery]])),128)),(ge(!0),Oe(xn,null,xl(a.searchData,(v,h)=>Ar((ge(),ze(d,{span:24,key:h,style:{padding:"0"}},{default:De(()=>[Ke(f,{onClick:g=>s(v),class:"elCard2"},{default:De(()=>[Pe("div",aet,[iet,Pe("span",{class:"div-hsc2 sColor2",title:v.name},rr(v.name),9,oet)]),Pe("div",set,[uet,Pe("span",{class:"div-hsc2 sColor2",title:v.keyword},rr(v.keyword),9,cet)])]),_:2},1032,["onClick"])]),_:2},1024)),[[ta,!r.isSearchQuery]])),128))])]),_:1}))])),Ar(Ke(p,{style:{height:"calc(100% - 2px)",padding:"24px 24px 16px 24px"}},{default:De(()=>[Ke(d,{span:24,style:{position:"relative"}},{default:De(()=>[Ke(zQe,{itemData:i.itemData,keywordFlag:n.value,isMovBtn:!0,onClosePage:u},null,8,["itemData","keywordFlag"])]),_:1})]),_:1},512),[[ta,n.value&&r.isSearchQuery]])],64)}}});const Tet=NG(fet,[["__scopeId","data-v-bf5b7bb3"]]);export{bet as $,yK as A,wN as B,PS as C,m2e as D,Ga as E,Cet as F,Ya as G,_et as H,zge as I,ket as J,F_e as K,Aet as L,wve as M,gve as N,Eet as O,xet as P,_K as Q,_u as R,CK as S,Wce as T,tge as U,GP as V,wet as W,zQe as X,Tet as Y,yet as Z,gt as _,Xa as a,J2 as b,Ple as c,oD as d,het as e,eb as f,RE as g,get as h,su as i,vet as j,Zx as k,pet as l,zc as m,$K as n,NK as o,mD as p,Uve as q,Xce as r,iP as s,iD as t,um as u,ep as v,nK as w,Qce as x,tfe as y,met as z};
|