@wangeditor-next/upload-image-module 1.1.54 → 1.1.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @description normalize link url
3
+ * @author OpenAI
4
+ */
5
+ /**
6
+ * Normalize URLs imported from HTML editors such as Microsoft Office.
7
+ * Formatting whitespace inside href values should not survive as literal
8
+ * line breaks, while real spaces should be serialized as %20.
9
+ */
10
+ export declare function normalizeLinkUrl(url: string): string;
@@ -2,13 +2,13 @@
2
2
  * @description config interface
3
3
  * @author wangfupeng
4
4
  */
5
- import { ImageElement } from 'packages/basic-modules/src/modules/image/custom-types';
6
- import { VideoElement } from 'packages/video-module/src/module/custom-types';
7
- import { Descendant, Node, NodeEntry, Range } from 'slate';
8
- import { IDomEditor } from '../editor/interface';
9
- import { IMenuGroup } from '../menus/interface';
10
- import { IUploadConfig } from '../upload';
11
- import { DOMElement } from '../utils/dom';
5
+ import type { ImageElement } from 'packages/basic-modules/src/modules/image/custom-types';
6
+ import type { VideoElement } from 'packages/video-module/src/module/custom-types';
7
+ import type { Descendant, Node, NodeEntry, Range } from 'slate';
8
+ import type { IDomEditor } from '../editor/interface';
9
+ import type { IMenuGroup } from '../menus/interface';
10
+ import type { IUploadConfig } from '../upload';
11
+ import type { DOMElement } from '../utils/dom';
12
12
  interface IHoverbarConf {
13
13
  [key: string]: {
14
14
  match?: (editor: IDomEditor, n: Node) => boolean;
@@ -175,6 +175,9 @@ export interface IMenuConfig {
175
175
  uploadImage: IUploadImageConfig;
176
176
  codeSelectLang: ICodeLangConfig;
177
177
  }
178
+ export type IMenuConfigUpdate = {
179
+ [K in keyof IMenuConfig]?: Partial<IMenuConfig[K]>;
180
+ };
178
181
  /**
179
182
  * editor config
180
183
  */
@@ -205,7 +208,7 @@ export interface IEditorConfig {
205
208
  autoFocus: boolean;
206
209
  decorate?: (nodeEntry: NodeEntry) => Range[];
207
210
  maxLength?: number;
208
- MENU_CONF?: Partial<IMenuConfig>;
211
+ MENU_CONF?: IMenuConfigUpdate;
209
212
  hoverbarKeys?: IHoverbarConf;
210
213
  EXTEND_CONF?: any;
211
214
  skipCacheTypes?: string[];
@@ -3,13 +3,13 @@
3
3
  * @author wangfupeng
4
4
  */
5
5
  import './assets/index.less';
6
- import { IDomEditor } from './editor/interface';
7
- import { IRegisterMenuConf } from './menus/index';
8
- import { IParseElemHtmlConf, IPreParseHtmlConf, ParseStyleHtmlFnType } from './parse-html/index';
9
- import { IRenderElemConf, RenderStyleFnType } from './render/index';
10
- import { IElemToHtmlConf, styleToHtmlFnType } from './to-html/index';
6
+ import type { IDomEditor } from './editor/interface';
7
+ import type { IRegisterMenuConf } from './menus/index';
8
+ import type { IParseElemHtmlConf, IPreParseHtmlConf, ParseStyleHtmlFnType } from './parse-html/index';
9
+ import type { IRenderElemConf, RenderStyleFnType } from './render/index';
10
+ import type { IElemToHtmlConf, styleToHtmlFnType } from './to-html/index';
11
11
  export * from './create/index';
12
- export { IEditorConfig, IToolbarConfig, IUploadImageConfig, IUploadVideoConfig, } from './config/interface';
12
+ export type { IEditorConfig, IToolbarConfig, IUploadImageConfig, IUploadVideoConfig, } from './config/interface';
13
13
  export * from './editor/dom-editor';
14
14
  export * from './editor/interface';
15
15
  export * from './render/index';
@@ -23,6 +23,7 @@ declare class Toolbar {
23
23
  private registerGroup;
24
24
  private registerSingleItem;
25
25
  private getEditorInstance;
26
+ private syncToolbarState;
26
27
  /**
27
28
  * editor onChange 时触发(涉及 DOM 操作,加防抖)
28
29
  */
@@ -2,8 +2,8 @@
2
2
  * @description base button class
3
3
  * @author wangfupeng
4
4
  */
5
- import { IButtonMenu, IDropPanelMenu, IModalMenu } from '../interface';
6
5
  import { Dom7Array } from '../../utils/dom';
6
+ import { IButtonMenu, IDropPanelMenu, IModalMenu } from '../interface';
7
7
  import { IBarItem } from './index';
8
8
  declare abstract class BaseButton implements IBarItem {
9
9
  readonly $elem: Dom7Array;
@@ -4,6 +4,6 @@
4
4
  */
5
5
  import Toolbar from './bar/Toolbar';
6
6
  export { registerMenu } from './register';
7
- export { IButtonMenu, ISelectMenu, IDropPanelMenu, IModalMenu, IRegisterMenuConf, IOption, } from './interface';
8
- export { genModalInputElems, genModalButtonElems, genModalTextareaElems, } from './panel-and-modal/Modal';
7
+ export type { IButtonMenu, IDropPanelMenu, IModalMenu, IOption, IRegisterMenuConf, ISelectMenu, } from './interface';
8
+ export { genModalButtonElems, genModalInputElems, genModalTextareaElems, } from './panel-and-modal/Modal';
9
9
  export { Toolbar };
@@ -5,6 +5,7 @@
5
5
  import { Dom7Array, DOMElement } from '../utils/dom';
6
6
  declare class TextArea {
7
7
  private selectionChangeRoot;
8
+ private destroyed;
8
9
  readonly id: number;
9
10
  $box: Dom7Array;
10
11
  $textAreaContainer: Dom7Array;
@@ -21,6 +22,7 @@ declare class TextArea {
21
22
  private latestEditorSelection;
22
23
  constructor(boxSelector: string | DOMElement);
23
24
  private get editorInstance();
25
+ private getActiveEditor;
24
26
  private bindSelectionChange;
25
27
  private onDOMSelectionChange;
26
28
  flushDOMSelectionChange(): void;
@@ -3,5 +3,6 @@
3
3
  * @author wangfupeng
4
4
  */
5
5
  import createUploader from './createUploader';
6
- import { IUploadConfig } from './interface';
7
- export { createUploader, IUploadConfig };
6
+ import type { IUploadConfig } from './interface';
7
+ export { createUploader };
8
+ export type { IUploadConfig };
@@ -2,8 +2,8 @@
2
2
  * @description upload interface
3
3
  * @author wangfupeng
4
4
  */
5
- import { UppyFile } from '@uppy/core';
6
- import { IDomEditor } from '../editor/interface';
5
+ import type { UppyFile } from '@uppy/core';
6
+ import type { IDomEditor } from '../editor/interface';
7
7
  type FilesType = {
8
8
  [key: string]: UppyFile<{}, {}>;
9
9
  };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(r,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@wangeditor-next/core"),require("@wangeditor-next/basic-modules"),require("dom7")):"function"==typeof define&&define.amd?define(["@wangeditor-next/core","@wangeditor-next/basic-modules","dom7"],t):(r="undefined"!=typeof globalThis?globalThis:r||self).WangEditorUploadImageModule=t(r.core,r.basicModules,r.$)}(this,function(r,t,n){"use strict";r.i18nAddResources("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),r.i18nAddResources("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var e,o,i,u,c,a,f,s,l,v,p,d,h,y,g,m,b,w,O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},S={};function E(){return o?e:(o=1,e=function(r){try{return!!r()}catch(r){return!0}})}function j(){if(u)return i;u=1;var r=E();return i=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function x(){if(a)return c;a=1;var r=E();return c=!r(function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")})}function I(){if(s)return f;s=1;var r=x(),t=Function.prototype,n=t.call,e=r&&t.bind.bind(n,n);return f=r?e:function(r){return function(){return n.apply(r,arguments)}},f}function T(){return v?l:(v=1,l=function(r){return null==r})}function P(){if(d)return p;d=1;var r=T(),t=TypeError;return p=function(n){if(r(n))throw new t("Can't call method on "+n);return n}}function A(){if(y)return h;y=1;var r=P(),t=Object;return h=function(n){return t(r(n))}}function R(){if(m)return g;m=1;var r=I(),t=A(),n=r({}.hasOwnProperty);return g=Object.hasOwn||function(r,e){return n(t(r),e)}}function C(){if(w)return b;w=1;var r=j(),t=R(),n=Function.prototype,e=r&&Object.getOwnPropertyDescriptor,o=t(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!r||r&&e(n,"name").configurable);return b={EXISTS:o,PROPER:i,CONFIGURABLE:u}}var N,k,M={exports:{}};function L(){if(k)return N;k=1;var r="object"==typeof document&&document.all;return N=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(r){return"function"==typeof r}}var D,F,z,_,U,B,G,W,V,H,q,K,X,Y={exports:{}};function $(){return F?D:(F=1,D=!1)}function J(){if(_)return z;_=1;var r=function(r){return r&&r.Math===Math&&r};return z=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof O&&O)||r("object"==typeof z&&z)||function(){return this}()||Function("return this")()}function Q(){if(B)return U;B=1;var r=J(),t=Object.defineProperty;return U=function(n,e){try{t(r,n,{value:e,configurable:!0,writable:!0})}catch(t){r[n]=e}return e}}function Z(){if(G)return Y.exports;G=1;var r=$(),t=J(),n=Q(),e="__core-js_shared__",o=Y.exports=t[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Y.exports}function rr(){if(V)return W;V=1;var r=I(),t=L(),n=Z(),e=r(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(r){return e(r)}),W=n.inspectSource}function tr(){if(q)return H;q=1;var r=J(),t=L(),n=r.WeakMap;return H=t(n)&&/native code/.test(String(n))}function nr(){if(X)return K;X=1;var r=L();return K=function(t){return"object"==typeof t?null!==t:r(t)}}var er,or,ir,ur,cr,ar,fr,sr,lr,vr,pr,dr,hr,yr,gr,mr,br,wr,Or,Sr,Er,jr,xr,Ir,Tr,Pr,Ar,Rr,Cr,Nr,kr,Mr,Lr,Dr,Fr,zr,_r,Ur,Br,Gr,Wr,Vr,Hr,qr,Kr,Xr,Yr,$r,Jr,Qr,Zr,rt,tt,nt,et,ot,it,ut={};function ct(){if(or)return er;or=1;var r=J(),t=nr(),n=r.document,e=t(n)&&t(n.createElement);return er=function(r){return e?n.createElement(r):{}}}function at(){if(ur)return ir;ur=1;var r=j(),t=E(),n=ct();return ir=!r&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function ft(){if(ar)return cr;ar=1;var r=j(),t=E();return cr=r&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function st(){if(sr)return fr;sr=1;var r=nr(),t=String,n=TypeError;return fr=function(e){if(r(e))return e;throw new n(t(e)+" is not an object")}}function lt(){if(vr)return lr;vr=1;var r=x(),t=Function.prototype.call;return lr=r?t.bind(t):function(){return t.apply(t,arguments)},lr}function vt(){if(dr)return pr;dr=1;var r=J(),t=L();return pr=function(n,e){return arguments.length<2?(o=r[n],t(o)?o:void 0):r[n]&&r[n][e];var o},pr}function pt(){if(yr)return hr;yr=1;var r=I();return hr=r({}.isPrototypeOf)}function dt(){if(mr)return gr;mr=1;var r=J().navigator,t=r&&r.userAgent;return gr=t?String(t):""}function ht(){if(wr)return br;wr=1;var r,t,n=J(),e=dt(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,c=u&&u.v8;return c&&(t=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!t&&e&&(!(r=e.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=e.match(/Chrome\/(\d+)/))&&(t=+r[1]),br=t}function yt(){if(Sr)return Or;Sr=1;var r=ht(),t=E(),n=J().String;return Or=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})}function gt(){if(jr)return Er;jr=1;var r=yt();return Er=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function mt(){if(Ir)return xr;Ir=1;var r=vt(),t=L(),n=pt(),e=gt(),o=Object;return xr=e?function(r){return"symbol"==typeof r}:function(e){var i=r("Symbol");return t(i)&&n(i.prototype,o(e))}}function bt(){if(Pr)return Tr;Pr=1;var r=String;return Tr=function(t){try{return r(t)}catch(r){return"Object"}}}function wt(){if(Rr)return Ar;Rr=1;var r=L(),t=bt(),n=TypeError;return Ar=function(e){if(r(e))return e;throw new n(t(e)+" is not a function")}}function Ot(){if(Nr)return Cr;Nr=1;var r=wt(),t=T();return Cr=function(n,e){var o=n[e];return t(o)?void 0:r(o)}}function St(){if(Mr)return kr;Mr=1;var r=lt(),t=L(),n=nr(),e=TypeError;return kr=function(o,i){var u,c;if("string"===i&&t(u=o.toString)&&!n(c=r(u,o)))return c;if(t(u=o.valueOf)&&!n(c=r(u,o)))return c;if("string"!==i&&t(u=o.toString)&&!n(c=r(u,o)))return c;throw new e("Can't convert object to primitive value")}}function Et(){if(Dr)return Lr;Dr=1;var r=Z();return Lr=function(t,n){return r[t]||(r[t]=n||{})}}function jt(){if(zr)return Fr;zr=1;var r=I(),t=0,n=Math.random(),e=r(1.1.toString);return Fr=function(r){return"Symbol("+(void 0===r?"":r)+")_"+e(++t+n,36)}}function xt(){if(Ur)return _r;Ur=1;var r=J(),t=Et(),n=R(),e=jt(),o=yt(),i=gt(),u=r.Symbol,c=t("wks"),a=i?u.for||u:u&&u.withoutSetter||e;return _r=function(r){return n(c,r)||(c[r]=o&&n(u,r)?u[r]:a("Symbol."+r)),c[r]}}function It(){if(Gr)return Br;Gr=1;var r=lt(),t=nr(),n=mt(),e=Ot(),o=St(),i=xt(),u=TypeError,c=i("toPrimitive");return Br=function(i,a){if(!t(i)||n(i))return i;var f,s=e(i,c);if(s){if(void 0===a&&(a="default"),f=r(s,i,a),!t(f)||n(f))return f;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),o(i,a)}}function Tt(){if(Vr)return Wr;Vr=1;var r=It(),t=mt();return Wr=function(n){var e=r(n,"string");return t(e)?e:e+""}}function Pt(){if(Hr)return ut;Hr=1;var r=j(),t=at(),n=ft(),e=st(),o=Tt(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,a="enumerable",f="configurable",s="writable";return ut.f=r?n?function(r,t,n){if(e(r),t=o(t),e(n),"function"==typeof r&&"prototype"===t&&"value"in n&&s in n&&!n[s]){var i=c(r,t);i&&i[s]&&(r[t]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:a in n?n[a]:i[a],writable:!1})}return u(r,t,n)}:u:function(r,n,c){if(e(r),n=o(n),e(c),t)try{return u(r,n,c)}catch(r){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(r[n]=c.value),r},ut}function At(){return Kr?qr:(Kr=1,qr=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}})}function Rt(){if(Yr)return Xr;Yr=1;var r=j(),t=Pt(),n=At();return Xr=r?function(r,e,o){return t.f(r,e,n(1,o))}:function(r,t,n){return r[t]=n,r}}function Ct(){if(Jr)return $r;Jr=1;var r=Et(),t=jt(),n=r("keys");return $r=function(r){return n[r]||(n[r]=t(r))}}function Nt(){return Zr?Qr:(Zr=1,Qr={})}function kt(){if(tt)return rt;tt=1;var r,t,n,e=tr(),o=J(),i=nr(),u=Rt(),c=R(),a=Z(),f=Ct(),s=Nt(),l="Object already initialized",v=o.TypeError,p=o.WeakMap;if(e||a.state){var d=a.state||(a.state=new p);d.get=d.get,d.has=d.has,d.set=d.set,r=function(r,t){if(d.has(r))throw new v(l);return t.facade=r,d.set(r,t),t},t=function(r){return d.get(r)||{}},n=function(r){return d.has(r)}}else{var h=f("state");s[h]=!0,r=function(r,t){if(c(r,h))throw new v(l);return t.facade=r,u(r,h,t),t},t=function(r){return c(r,h)?r[h]:{}},n=function(r){return c(r,h)}}return rt={set:r,get:t,has:n,enforce:function(e){return n(e)?t(e):r(e,{})},getterFor:function(r){return function(n){var e;if(!i(n)||(e=t(n)).type!==r)throw new v("Incompatible receiver, "+r+" required");return e}}}}function Mt(){if(nt)return M.exports;nt=1;var r=I(),t=E(),n=L(),e=R(),o=j(),i=C().CONFIGURABLE,u=rr(),c=kt(),a=c.enforce,f=c.get,s=String,l=Object.defineProperty,v=r("".slice),p=r("".replace),d=r([].join),h=o&&!t(function(){return 8!==l(function(){},"length",{value:8}).length}),y=String(String).split("String"),g=M.exports=function(r,t,n){"Symbol("===v(s(t),0,7)&&(t="["+p(s(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!e(r,"name")||i&&r.name!==t)&&(o?l(r,"name",{value:t,configurable:!0}):r.name=t),h&&n&&e(n,"arity")&&r.length!==n.arity&&l(r,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?o&&l(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(r){}var u=a(r);return e(u,"source")||(u.source=d(y,"string"==typeof t?t:"")),r};return Function.prototype.toString=g(function(){return n(this)&&f(this).source||u(this)},"toString"),M.exports}function Lt(){if(ot)return et;ot=1;var r=Mt(),t=Pt();return et=function(n,e,o){return o.get&&r(o.get,e,{getter:!0}),o.set&&r(o.set,e,{setter:!0}),t.f(n,e,o)}}!function(){if(it)return S;it=1;var r=j(),t=C().EXISTS,n=I(),e=Lt(),o=Function.prototype,i=n(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=n(u.exec);r&&!t&&e(o,"name",{configurable:!0,get:function(){try{return c(u,i(this))[1]}catch(r){return""}}})}();var Dt,Ft,zt,_t,Ut,Bt,Gt,Wt,Vt,Ht,qt={},Kt={},Xt={};function Yt(){if(zt)return Ft;zt=1;var r=I(),t=r({}.toString),n=r("".slice);return Ft=function(r){return n(t(r),8,-1)}}function $t(){if(Ut)return _t;Ut=1;var r=I(),t=E(),n=Yt(),e=Object,o=r("".split);return _t=t(function(){return!e("z").propertyIsEnumerable(0)})?function(r){return"String"===n(r)?o(r,""):e(r)}:e}function Jt(){if(Gt)return Bt;Gt=1;var r=$t(),t=P();return Bt=function(n){return r(t(n))}}function Qt(){if(Wt)return Kt;Wt=1;var r=j(),t=lt(),n=function(){if(Dt)return Xt;Dt=1;var r={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!r.call({1:2},1);return Xt.f=n?function(r){var n=t(this,r);return!!n&&n.enumerable}:r,Xt}(),e=At(),o=Jt(),i=Tt(),u=R(),c=at(),a=Object.getOwnPropertyDescriptor;return Kt.f=r?a:function(r,f){if(r=o(r),f=i(f),c)try{return a(r,f)}catch(r){}if(u(r,f))return e(!t(n.f,r,f),r[f])},Kt}function Zt(){if(Ht)return Vt;Ht=1;var r=L(),t=Pt(),n=Mt(),e=Q();return Vt=function(o,i,u,c){c||(c={});var a=c.enumerable,f=void 0!==c.name?c.name:i;if(r(u)&&n(u,f,c),c.global)a?o[i]=u:e(i,u);else{try{c.unsafe?o[i]&&(a=!0):delete o[i]}catch(r){}a?o[i]=u:t.f(o,i,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return o}}var rn,tn,nn,en,on,un,cn,an,fn,sn,ln,vn,pn,dn,hn,yn,gn,mn={};function bn(){if(en)return nn;en=1;var r=function(){if(tn)return rn;tn=1;var r=Math.ceil,t=Math.floor;return rn=Math.trunc||function(n){var e=+n;return(e>0?t:r)(e)}}();return nn=function(t){var n=+t;return n!=n||0===n?0:r(n)}}function wn(){if(un)return on;un=1;var r=bn(),t=Math.max,n=Math.min;return on=function(e,o){var i=r(e);return i<0?t(i+o,0):n(i,o)}}function On(){if(an)return cn;an=1;var r=bn(),t=Math.min;return cn=function(n){var e=r(n);return e>0?t(e,9007199254740991):0}}function Sn(){if(sn)return fn;sn=1;var r=On();return fn=function(t){return r(t.length)}}function En(){if(dn)return pn;dn=1;var r=I(),t=R(),n=Jt(),e=function(){if(vn)return ln;vn=1;var r=Jt(),t=wn(),n=Sn(),e=function(e){return function(o,i,u){var c=r(o),a=n(c);if(0===a)return!e&&-1;var f,s=t(u,a);if(e&&i!=i){for(;a>s;)if((f=c[s++])!=f)return!0}else for(;a>s;s++)if((e||s in c)&&c[s]===i)return e||s||0;return!e&&-1}};return ln={includes:e(!0),indexOf:e(!1)}}().indexOf,o=Nt(),i=r([].push);return pn=function(r,u){var c,a=n(r),f=0,s=[];for(c in a)!t(o,c)&&t(a,c)&&i(s,c);for(;u.length>f;)t(a,c=u[f++])&&(~e(s,c)||i(s,c));return s}}function jn(){return yn?hn:(yn=1,hn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function xn(){if(gn)return mn;gn=1;var r=En(),t=jn().concat("length","prototype");return mn.f=Object.getOwnPropertyNames||function(n){return r(n,t)},mn}var In,Tn,Pn,An,Rn,Cn,Nn,kn,Mn,Ln,Dn,Fn,zn={};function _n(){if(Pn)return Tn;Pn=1;var r=vt(),t=I(),n=xn(),e=(In||(In=1,zn.f=Object.getOwnPropertySymbols),zn),o=st(),i=t([].concat);return Tn=r("Reflect","ownKeys")||function(r){var t=n.f(o(r)),u=e.f;return u?i(t,u(r)):t}}function Un(){if(Rn)return An;Rn=1;var r=R(),t=_n(),n=Qt(),e=Pt();return An=function(o,i,u){for(var c=t(i),a=e.f,f=n.f,s=0;s<c.length;s++){var l=c[s];r(o,l)||u&&r(u,l)||a(o,l,f(i,l))}}}function Bn(){if(Nn)return Cn;Nn=1;var r=E(),t=L(),n=/#|\.prototype\./,e=function(n,e){var a=i[o(n)];return a===c||a!==u&&(t(e)?r(e):!!e)},o=e.normalize=function(r){return String(r).replace(n,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",c=e.POLYFILL="P";return Cn=e}function Gn(){if(Mn)return kn;Mn=1;var r=J(),t=Qt().f,n=Rt(),e=Zt(),o=Q(),i=Un(),u=Bn();return kn=function(c,a){var f,s,l,v,p,d=c.target,h=c.global,y=c.stat;if(f=h?r:y?r[d]||o(d,{}):r[d]&&r[d].prototype)for(s in a){if(v=a[s],l=c.dontCallGetSet?(p=t(f,s))&&p.value:f[s],!u(h?s:d+(y?".":"#")+s,c.forced)&&void 0!==l){if(typeof v==typeof l)continue;i(v,l)}(c.sham||l&&l.sham)&&n(v,"sham",!0),e(f,s,v,c)}}}function Wn(){if(Dn)return Ln;Dn=1;var r=E();return Ln=function(t,n){var e=[][t];return!!e&&r(function(){e.call(null,n||function(){return 1},1)})}}!function(){if(Fn)return qt;Fn=1;var r=Gn(),t=I(),n=$t(),e=Jt(),o=Wn(),i=t([].join);r({target:"Array",proto:!0,forced:n!==Object||!o("join",",")},{join:function(r){return i(e(this),void 0===r?",":r)}})}();var Vn,Hn,qn,Kn,Xn,Yn,$n,Jn,Qn,Zn,re={};function te(){if(Hn)return Vn;Hn=1;var r={};return r[xt()("toStringTag")]="z",Vn="[object z]"===String(r)}function ne(){if(Kn)return qn;Kn=1;var r=te(),t=L(),n=Yt(),e=xt()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return qn=r?n:function(r){var u,c,a;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(c=function(r,t){try{return r[t]}catch(r){}}(u=o(r),e))?c:i?n(u):"Object"===(a=n(u))&&t(u.callee)?"Arguments":a}}function ee(){if(Yn)return Xn;Yn=1;var r=ne(),t=String;return Xn=function(n){if("Symbol"===r(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}function oe(){if(Jn)return $n;Jn=1;var r=st();return $n=function(){var t=r(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}var ie,ue,ce,ae,fe,se,le,ve,pe,de,he,ye,ge,me,be={};function we(){if(ue)return ie;ue=1;var r=En(),t=jn();return ie=Object.keys||function(n){return r(n,t)}}function Oe(){if(fe)return ae;fe=1;var r=vt();return ae=r("document","documentElement")}function Se(){if(le)return se;le=1;var r,t=st(),n=function(){if(ce)return be;ce=1;var r=j(),t=ft(),n=Pt(),e=st(),o=Jt(),i=we();return be.f=r&&!t?Object.defineProperties:function(r,t){e(r);for(var u,c=o(t),a=i(t),f=a.length,s=0;f>s;)n.f(r,u=a[s++],c[u]);return r},be}(),e=jn(),o=Nt(),i=Oe(),u=ct(),c=Ct(),a="prototype",f="script",s=c("IE_PROTO"),l=function(){},v=function(r){return"<"+f+">"+r+"</"+f+">"},p=function(r){r.write(v("")),r.close();var t=r.parentWindow.Object;return r=null,t},d=function(){try{r=new ActiveXObject("htmlfile")}catch(r){}var t,n,o;d="undefined"!=typeof document?document.domain&&r?p(r):(n=u("iframe"),o="java"+f+":",n.style.display="none",i.appendChild(n),n.src=String(o),(t=n.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):p(r);for(var c=e.length;c--;)delete d[a][e[c]];return d()};return o[s]=!0,se=Object.create||function(r,e){var o;return null!==r?(l[a]=t(r),o=new l,l[a]=null,o[s]=r):o=d(),void 0===e?o:n.f(o,e)}}function Ee(){if(ge)return ye;ge=1;var r,t,n=lt(),e=I(),o=ee(),i=oe(),u=function(){if(Zn)return Qn;Zn=1;var r=E(),t=J().RegExp,n=r(function(){var r=t("a","y");return r.lastIndex=2,null!==r.exec("abcd")}),e=n||r(function(){return!t("a","y").sticky}),o=n||r(function(){var r=t("^r","gy");return r.lastIndex=2,null!==r.exec("str")});return Qn={BROKEN_CARET:o,MISSED_STICKY:e,UNSUPPORTED_Y:n}}(),c=Et(),a=Se(),f=kt().get,s=function(){if(pe)return ve;pe=1;var r=E(),t=J().RegExp;return ve=r(function(){var r=t(".","s");return!(r.dotAll&&r.test("\n")&&"s"===r.flags)})}(),l=function(){if(he)return de;he=1;var r=E(),t=J().RegExp;return de=r(function(){var r=t("(?<a>b)","g");return"b"!==r.exec("b").groups.a||"bc"!=="b".replace(r,"$<a>c")})}(),v=c("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,d=p,h=e("".charAt),y=e("".indexOf),g=e("".replace),m=e("".slice),b=(t=/b*/g,n(p,r=/a/,"a"),n(p,t,"a"),0!==r.lastIndex||0!==t.lastIndex),w=u.BROKEN_CARET,O=void 0!==/()??/.exec("")[1],S=function(r,t){for(var n=r.groups=a(null),e=0;e<t.length;e++){var o=t[e];n[o[0]]=r[o[1]]}};return(b||O||w||s||l)&&(d=function(r){var t,e,u,c=this,a=f(c),s=o(r),l=a.raw;if(l)return l.lastIndex=c.lastIndex,t=n(d,l,s),c.lastIndex=l.lastIndex,t&&a.groups&&S(t,a.groups),t;var E=a.groups,j=w&&c.sticky,x=n(i,c),I=c.source,T=0,P=s;if(j){x=g(x,"y",""),-1===y(x,"g")&&(x+="g"),P=m(s,c.lastIndex);var A=c.lastIndex>0&&h(s,c.lastIndex-1);c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==A&&"\r"!==A&&"\u2028"!==A&&"\u2029"!==A)&&(I="(?: (?:"+I+"))",P=" "+P,T++),e=new RegExp("^(?:"+I+")",x)}O&&(e=new RegExp("^"+I+"$(?!\\s)",x)),b&&(u=c.lastIndex);var R=n(p,j?e:c,P);return j?R?(R.input=s,R[0]=m(R[0],T),R.index=c.lastIndex,c.lastIndex+=R[0].length):c.lastIndex=0:b&&R&&(c.lastIndex=c.global?R.index+R[0].length:u),O&&R&&R.length>1&&n(v,R[0],e,function(){for(var r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(R[r]=void 0)}),R&&E&&S(R,E),R}),ye=d}!function(){if(me)return re;me=1;var r=Gn(),t=Ee();r({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t})}();var je,xe,Ie,Te,Pe,Ae,Re,Ce,Ne,ke,Me,Le,De,Fe,ze,_e,Ue,Be,Ge,We,Ve,He,qe,Ke,Xe,Ye,$e,Je;function Qe(){if(xe)return je;xe=1;var r=xt(),t=Se(),n=Pt().f,e=r("unscopables"),o=Array.prototype;return void 0===o[e]&&n(o,e,{configurable:!0,value:t(null)}),je=function(r){o[e][r]=!0}}function Ze(){return Te?Ie:(Te=1,Ie={})}function ro(){if(Ce)return Re;Ce=1;var r=R(),t=L(),n=A(),e=Ct(),o=function(){if(Ae)return Pe;Ae=1;var r=E();return Pe=!r(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})}(),i=e("IE_PROTO"),u=Object,c=u.prototype;return Re=o?u.getPrototypeOf:function(e){var o=n(e);if(r(o,i))return o[i];var a=o.constructor;return t(a)&&o instanceof a?a.prototype:o instanceof u?c:null}}function to(){if(ke)return Ne;ke=1;var r,t,n,e=E(),o=L(),i=nr(),u=Se(),c=ro(),a=Zt(),f=xt(),s=$(),l=f("iterator"),v=!1;return[].keys&&("next"in(n=[].keys())?(t=c(c(n)))!==Object.prototype&&(r=t):v=!0),!i(r)||e(function(){var t={};return r[l].call(t)!==t})?r={}:s&&(r=u(r)),o(r[l])||a(r,l,function(){return this}),Ne={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}}function no(){if(Le)return Me;Le=1;var r=Pt().f,t=R(),n=xt()("toStringTag");return Me=function(e,o,i){e&&!i&&(e=e.prototype),e&&!t(e,n)&&r(e,n,{configurable:!0,value:o})}}function eo(){if(Be)return Ue;Be=1;var r=nr();return Ue=function(t){return r(t)||null===t}}function oo(){if(We)return Ge;We=1;var r=eo(),t=String,n=TypeError;return Ge=function(e){if(r(e))return e;throw new n("Can't set "+t(e)+" as a prototype")}}function io(){if(He)return Ve;He=1;var r=function(){if(_e)return ze;_e=1;var r=I(),t=wt();return ze=function(n,e,o){try{return r(t(Object.getOwnPropertyDescriptor(n,e)[o]))}catch(r){}}}(),t=nr(),n=P(),e=oo();return Ve=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,u={};try{(o=r(Object.prototype,"__proto__","set"))(u,[]),i=u instanceof Array}catch(r){}return function(r,u){return n(r),e(u),t(r)?(i?o(r,u):r.__proto__=u,r):r}}():void 0)}function uo(){if(Ke)return qe;Ke=1;var r=Gn(),t=lt(),n=$(),e=C(),o=L(),i=function(){if(Fe)return De;Fe=1;var r=to().IteratorPrototype,t=Se(),n=At(),e=no(),o=Ze(),i=function(){return this};return De=function(u,c,a,f){var s=c+" Iterator";return u.prototype=t(r,{next:n(+!f,a)}),e(u,s,!1,!0),o[s]=i,u}}(),u=ro(),c=io(),a=no(),f=Rt(),s=Zt(),l=xt(),v=Ze(),p=to(),d=e.PROPER,h=e.CONFIGURABLE,y=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,m=l("iterator"),b="keys",w="values",O="entries",S=function(){return this};return qe=function(e,l,p,E,j,x,I){i(p,l,E);var T,P,A,R=function(r){if(r===j&&L)return L;if(!g&&r&&r in k)return k[r];switch(r){case b:case w:case O:return function(){return new p(this,r)}}return function(){return new p(this)}},C=l+" Iterator",N=!1,k=e.prototype,M=k[m]||k["@@iterator"]||j&&k[j],L=!g&&M||R(j),D="Array"===l&&k.entries||M;if(D&&(T=u(D.call(new e)))!==Object.prototype&&T.next&&(n||u(T)===y||(c?c(T,y):o(T[m])||s(T,m,S)),a(T,C,!0,!0),n&&(v[C]=S)),d&&j===w&&M&&M.name!==w&&(!n&&h?f(k,"name",w):(N=!0,L=function(){return t(M,this)})),j)if(P={values:R(w),keys:x?L:R(b),entries:R(O)},I)for(A in P)(g||N||!(A in k))&&s(k,A,P[A]);else r({target:l,proto:!0,forced:g||N},P);return n&&!I||k[m]===L||s(k,m,L,{name:j}),v[l]=L,P}}function co(){return Ye?Xe:(Ye=1,Xe=function(r,t){return{value:r,done:t}})}function ao(){if(Je)return $e;Je=1;var r=Jt(),t=Qe(),n=Ze(),e=kt(),o=Pt().f,i=uo(),u=co(),c=$(),a=j(),f="Array Iterator",s=e.set,l=e.getterFor(f);$e=i(Array,"Array",function(t,n){s(this,{type:f,target:r(t),index:0,kind:n})},function(){var r=l(this),t=r.target,n=r.index++;if(!t||n>=t.length)return r.target=null,u(void 0,!0);switch(r.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)},"values");var v=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!c&&a&&"values"!==v.name)try{o(v,"name",{value:"values"})}catch(r){}return $e}n.append&&(n.fn.append=n.append),n.on&&(n.fn.on=n.on),n.remove&&(n.fn.remove=n.remove),n.val&&(n.fn.val=n.val),n.click&&(n.fn.click=n.click),n.hide&&(n.fn.hide=n.hide),ao();var fo,so,lo,vo,po,ho,yo,go,mo,bo,wo,Oo,So,Eo,jo,xo,Io,To,Po,Ao={};function Ro(){if(vo)return lo;vo=1;var r=function(){if(so)return fo;so=1;var r=Yt(),t=I();return fo=function(n){if("Function"===r(n))return t(n)}}(),t=wt(),n=x(),e=r(r.bind);return lo=function(r,o){return t(r),void 0===o?r:n?e(r,o):function(){return r.apply(o,arguments)}},lo}function Co(){if(ho)return po;ho=1;var r=Yt();return po=Array.isArray||function(t){return"Array"===r(t)}}function No(){if(go)return yo;go=1;var r=I(),t=E(),n=L(),e=ne(),o=vt(),i=rr(),u=function(){},c=o("Reflect","construct"),a=/^\s*(?:class|function)\b/,f=r(a.exec),s=!a.test(u),l=function(r){if(!n(r))return!1;try{return c(u,[],r),!0}catch(r){return!1}},v=function(r){if(!n(r))return!1;switch(e(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!f(a,i(r))}catch(r){return!0}};return v.sham=!0,yo=!c||t(function(){var r;return l(l.call)||!l(Object)||!l(function(){r=!0})||r})?v:l}function ko(){if(bo)return mo;bo=1;var r=Co(),t=No(),n=nr(),e=xt()("species"),o=Array;return mo=function(i){var u;return r(i)&&(u=i.constructor,(t(u)&&(u===o||r(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?o:u}}function Mo(){if(Oo)return wo;Oo=1;var r=ko();return wo=function(t,n){return new(r(t))(0===n?0:n)}}function Lo(){if(Eo)return So;Eo=1;var r=j(),t=Pt(),n=At();return So=function(e,o,i){r?t.f(e,o,n(0,i)):e[o]=i}}function Do(){if(xo)return jo;xo=1;var r=Ro(),t=$t(),n=A(),e=Sn(),o=Mo(),i=Lo(),u=function(u){var c=1===u,a=2===u,f=3===u,s=4===u,l=6===u,v=7===u,p=5===u||l;return function(d,h,y){for(var g,m,b=n(d),w=t(b),O=e(w),S=r(h,y),E=0,j=0,x=c?o(d,O):a||v?o(d,0):void 0;O>E;E++)if((p||E in w)&&(m=S(g=w[E],E,b),u))if(c)i(x,E,m);else if(m)switch(u){case 3:return!0;case 5:return g;case 6:return E;case 2:i(x,j++,g)}else switch(u){case 4:return!1;case 7:i(x,j++,g)}return l?-1:f||s?s:x}};return jo={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}function Fo(){if(To)return Io;To=1;var r=E(),t=xt(),n=ht(),e=t("species");return Io=function(t){return n>=51||!r(function(){var r=[];return(r.constructor={})[e]=function(){return{foo:1}},1!==r[t](Boolean).foo})}}!function(){if(Po)return Ao;Po=1;var r=Gn(),t=Do().map;r({target:"Array",proto:!0,forced:!Fo()("map")},{map:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})}();var zo,_o,Uo,Bo,Go,Wo={};function Vo(){if(Bo)return Uo;Bo=1;var r=I();return Uo=r([].slice)}!function(){if(Go)return Wo;Go=1;var r=Gn(),t=Co(),n=No(),e=nr(),o=wn(),i=Sn(),u=Jt(),c=Lo(),a=function(){if(_o)return zo;_o=1;var r=j(),t=Co(),n=TypeError,e=Object.getOwnPropertyDescriptor,o=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(r){return r instanceof TypeError}}();return zo=o?function(r,o){if(t(r)&&!e(r,"length").writable)throw new n("Cannot set read only .length");return r.length=o}:function(r,t){return r.length=t}}(),f=xt(),s=Fo(),l=Vo(),v=s("slice"),p=f("species"),d=Array,h=Math.max;r({target:"Array",proto:!0,forced:!v},{slice:function(r,f){var s,v,y,g=u(this),m=i(g),b=o(r,m),w=o(void 0===f?m:f,m);if(t(g)&&(s=g.constructor,(n(s)&&(s===d||t(s.prototype))||e(s)&&null===(s=s[p]))&&(s=void 0),s===d||void 0===s))return l(g,b,w);for(v=new(void 0===s?d:s)(h(w-b,0)),y=0;b<w;b++,y++)b in g&&c(v,y,g[b]);return a(v,y),v}})}();var Ho,qo,Ko,Xo={};!function(){if(Ko)return Xo;Ko=1;var r=te(),t=Zt(),n=function(){if(qo)return Ho;qo=1;var r=te(),t=ne();return Ho=r?{}.toString:function(){return"[object "+t(this)+"]"}}();r||t(Object.prototype,"toString",n,{unsafe:!0})}();var Yo,$o,Jo,Qo,Zo,ri,ti,ni,ei,oi,ii,ui,ci,ai,fi,si,li,vi,pi,di,hi,yi,gi,mi,bi,wi,Oi,Si,Ei,ji,xi,Ii,Ti,Pi,Ai,Ri,Ci,Ni,ki,Mi,Li={};function Di(){if($o)return Yo;$o=1;var r=J(),t=dt(),n=Yt(),e=function(r){return t.slice(0,r.length)===r};return Yo=e("Bun/")?"BUN":e("Cloudflare-Workers")?"CLOUDFLARE":e("Deno/")?"DENO":e("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}function Fi(){if(Qo)return Jo;Qo=1;var r=Di();return Jo="NODE"===r}function zi(){if(ri)return Zo;ri=1;var r=J();return Zo=r}function _i(){if(ni)return ti;ni=1;var r=vt(),t=Lt(),n=xt(),e=j(),o=n("species");return ti=function(n){var i=r(n);e&&i&&!i[o]&&t(i,o,{configurable:!0,get:function(){return this}})}}function Ui(){if(oi)return ei;oi=1;var r=pt(),t=TypeError;return ei=function(n,e){if(r(e,n))return n;throw new t("Incorrect invocation")}}function Bi(){if(ui)return ii;ui=1;var r=No(),t=bt(),n=TypeError;return ii=function(e){if(r(e))return e;throw new n(t(e)+" is not a constructor")}}function Gi(){if(ai)return ci;ai=1;var r=st(),t=Bi(),n=T(),e=xt()("species");return ci=function(o,i){var u,c=r(o).constructor;return void 0===c||n(u=r(c)[e])?i:t(u)}}function Wi(){if(si)return fi;si=1;var r=x(),t=Function.prototype,n=t.apply,e=t.call;return fi="object"==typeof Reflect&&Reflect.apply||(r?e.bind(n):function(){return e.apply(n,arguments)}),fi}function Vi(){if(vi)return li;vi=1;var r=TypeError;return li=function(t,n){if(t<n)throw new r("Not enough arguments");return t}}function Hi(){if(di)return pi;di=1;var r=dt();return pi=/ipad|iphone|ipod/i.test(r)&&/applewebkit/i.test(r)}function qi(){if(yi)return hi;yi=1;var r,t,n,e,o=J(),i=Wi(),u=Ro(),c=L(),a=R(),f=E(),s=Oe(),l=Vo(),v=ct(),p=Vi(),d=Hi(),h=Fi(),y=o.setImmediate,g=o.clearImmediate,m=o.process,b=o.Dispatch,w=o.Function,O=o.MessageChannel,S=o.String,j=0,x={},I="onreadystatechange";f(function(){r=o.location});var T=function(r){if(a(x,r)){var t=x[r];delete x[r],t()}},P=function(r){return function(){T(r)}},A=function(r){T(r.data)},C=function(t){o.postMessage(S(t),r.protocol+"//"+r.host)};return y&&g||(y=function(r){p(arguments.length,1);var n=c(r)?r:w(r),e=l(arguments,1);return x[++j]=function(){i(n,void 0,e)},t(j),j},g=function(r){delete x[r]},h?t=function(r){m.nextTick(P(r))}:b&&b.now?t=function(r){b.now(P(r))}:O&&!d?(e=(n=new O).port2,n.port1.onmessage=A,t=u(e.postMessage,e)):o.addEventListener&&c(o.postMessage)&&!o.importScripts&&r&&"file:"!==r.protocol&&!f(C)?(t=C,o.addEventListener("message",A,!1)):t=I in v("script")?function(r){s.appendChild(v("script"))[I]=function(){s.removeChild(this),T(r)}}:function(r){setTimeout(P(r),0)}),hi={set:y,clear:g}}function Ki(){if(mi)return gi;mi=1;var r=J(),t=j(),n=Object.getOwnPropertyDescriptor;return gi=function(e){if(!t)return r[e];var o=n(r,e);return o&&o.value}}function Xi(){if(wi)return bi;wi=1;var r=function(){this.head=null,this.tail=null};return r.prototype={add:function(r){var t={item:r,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var r=this.head;if(r)return null===(this.head=r.next)&&(this.tail=null),r.item}},bi=r}function Yi(){if(Ii)return xi;Ii=1;var r,t,n,e,o,i=J(),u=Ki(),c=Ro(),a=qi().set,f=Xi(),s=Hi(),l=function(){if(Si)return Oi;Si=1;var r=dt();return Oi=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble}(),v=function(){if(ji)return Ei;ji=1;var r=dt();return Ei=/web0s(?!.*chrome)/i.test(r)}(),p=Fi(),d=i.MutationObserver||i.WebKitMutationObserver,h=i.document,y=i.process,g=i.Promise,m=u("queueMicrotask");if(!m){var b=new f,w=function(){var t,n;for(p&&(t=y.domain)&&t.exit();n=b.get();)try{n()}catch(t){throw b.head&&r(),t}t&&t.enter()};s||p||v||!d||!h?!l&&g&&g.resolve?((e=g.resolve(void 0)).constructor=g,o=c(e.then,e),r=function(){o(w)}):p?r=function(){y.nextTick(w)}:(a=c(a,i),r=function(){a(w)}):(t=!0,n=h.createTextNode(""),new d(w).observe(n,{characterData:!0}),r=function(){n.data=t=!t}),m=function(t){b.head||r(),b.add(t)}}return xi=m}function $i(){return Pi||(Pi=1,Ti=function(r,t){try{1===arguments.length?console.error(r):console.error(r,t)}catch(r){}}),Ti}function Ji(){return Ri?Ai:(Ri=1,Ai=function(r){try{return{error:!1,value:r()}}catch(r){return{error:!0,value:r}}})}function Qi(){if(Ni)return Ci;Ni=1;var r=J();return Ci=r.Promise}function Zi(){if(Mi)return ki;Mi=1;var r=J(),t=Qi(),n=L(),e=Bn(),o=rr(),i=xt(),u=Di(),c=$(),a=ht(),f=t&&t.prototype,s=i("species"),l=!1,v=n(r.PromiseRejectionEvent),p=e("Promise",function(){var r=o(t),n=r!==String(t);if(!n&&66===a)return!0;if(c&&(!f.catch||!f.finally))return!0;if(!a||a<51||!/native code/.test(r)){var e=new t(function(r){r(1)}),i=function(r){r(function(){},function(){})};if((e.constructor={})[s]=i,!(l=e.then(function(){})instanceof i))return!0}return!(n||"BROWSER"!==u&&"DENO"!==u||v)});return ki={CONSTRUCTOR:p,REJECTION_EVENT:v,SUBCLASSING:l}}var ru,tu,nu={};function eu(){if(ru)return nu;ru=1;var r=wt(),t=TypeError,n=function(n){var e,o;this.promise=new n(function(r,n){if(void 0!==e||void 0!==o)throw new t("Bad Promise constructor");e=r,o=n}),this.resolve=r(e),this.reject=r(o)};return nu.f=function(r){return new n(r)},nu}var ou,iu,uu,cu,au,fu,su,lu,vu,pu,du,hu,yu,gu,mu,bu={};function wu(){if(iu)return ou;iu=1;var r=xt(),t=Ze(),n=r("iterator"),e=Array.prototype;return ou=function(r){return void 0!==r&&(t.Array===r||e[n]===r)}}function Ou(){if(cu)return uu;cu=1;var r=ne(),t=Ot(),n=T(),e=Ze(),o=xt()("iterator");return uu=function(i){if(!n(i))return t(i,o)||t(i,"@@iterator")||e[r(i)]}}function Su(){if(fu)return au;fu=1;var r=lt(),t=wt(),n=st(),e=bt(),o=Ou(),i=TypeError;return au=function(u,c){var a=arguments.length<2?o(u):c;if(t(a))return n(r(a,u));throw new i(e(u)+" is not iterable")},au}function Eu(){if(lu)return su;lu=1;var r=lt(),t=st(),n=Ot();return su=function(e,o,i){var u,c;t(e);try{if(!(u=n(e,"return"))){if("throw"===o)throw i;return i}u=r(u,e)}catch(r){c=!0,u=r}if("throw"===o)throw i;if(c)throw u;return t(u),i}}function ju(){if(pu)return vu;pu=1;var r=Ro(),t=lt(),n=st(),e=bt(),o=wu(),i=Sn(),u=pt(),c=Su(),a=Ou(),f=Eu(),s=TypeError,l=function(r,t){this.stopped=r,this.result=t},v=l.prototype;return vu=function(p,d,h){var y,g,m,b,w,O,S,E=h&&h.that,j=!(!h||!h.AS_ENTRIES),x=!(!h||!h.IS_RECORD),I=!(!h||!h.IS_ITERATOR),T=!(!h||!h.INTERRUPTED),P=r(d,E),A=function(r){var t=y;return y=void 0,t&&f(t,"normal"),new l(!0,r)},R=function(r){return j?(n(r),T?P(r[0],r[1],A):P(r[0],r[1])):T?P(r,A):P(r)};if(x)y=p.iterator;else if(I)y=p;else{if(!(g=a(p)))throw new s(e(p)+" is not iterable");if(o(g)){for(m=0,b=i(p);b>m;m++)if((w=R(p[m]))&&u(v,w))return w;return new l(!1)}y=c(p,g)}for(O=x?p.next:y.next;!(S=t(O,y)).done;){var C=S.value;try{w=R(C)}catch(r){if(!y)throw r;f(y,"throw",r)}if("object"==typeof w&&w&&u(v,w))return w}return new l(!1)}}function xu(){if(hu)return du;hu=1;var r=xt()("iterator"),t=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){t=!0}};e[r]=function(){return this},Array.from(e,function(){throw 2})}catch(r){}return du=function(n,e){try{if(!e&&!t)return!1}catch(r){return!1}var o=!1;try{var i={};i[r]=function(){return{next:function(){return{done:o=!0}}}},n(i)}catch(r){}return o}}function Iu(){if(gu)return yu;gu=1;var r=Qi(),t=xu(),n=Zi().CONSTRUCTOR;return yu=n||!t(function(t){r.all(t).then(void 0,function(){})})}var Tu,Pu={};var Au,Ru={};var Cu,Nu={};var ku,Mu,Lu,Du,Fu={};function zu(){if(Mu)return ku;Mu=1;var r=st(),t=nr(),n=eu();return ku=function(e,o){if(r(e),t(o)&&o.constructor===e)return o;var i=n.f(e);return(0,i.resolve)(o),i.promise}}Du||(Du=1,function(){if(tu)return Li;tu=1;var r,t,n,e,o=Gn(),i=$(),u=Fi(),c=J(),a=zi(),f=lt(),s=Zt(),l=io(),v=no(),p=_i(),d=wt(),h=L(),y=nr(),g=Ui(),m=Gi(),b=qi().set,w=Yi(),O=$i(),S=Ji(),E=Xi(),j=kt(),x=Qi(),I=Zi(),T=eu(),P="Promise",A=I.CONSTRUCTOR,R=I.REJECTION_EVENT,C=I.SUBCLASSING,N=j.getterFor(P),k=j.set,M=x&&x.prototype,D=x,F=M,z=c.TypeError,_=c.document,U=c.process,B=T.f,G=B,W=!!(_&&_.createEvent&&c.dispatchEvent),V="unhandledrejection",H=function(r){var t;return!(!y(r)||!h(t=r.then))&&t},q=function(r,t){var n,e,o,i=t.value,u=1===t.state,c=u?r.ok:r.fail,a=r.resolve,s=r.reject,l=r.domain;try{c?(u||(2===t.rejection&&Z(t),t.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===r.promise?s(new z("Promise-chain cycle")):(e=H(n))?f(e,n,a,s):a(n)):s(i)}catch(r){l&&!o&&l.exit(),s(r)}},K=function(r,t){r.notified||(r.notified=!0,w(function(){for(var n,e=r.reactions;n=e.get();)q(n,r);r.notified=!1,t&&!r.rejection&&Y(r)}))},X=function(r,t,n){var e,o;W?((e=_.createEvent("Event")).promise=t,e.reason=n,e.initEvent(r,!1,!0),c.dispatchEvent(e)):e={promise:t,reason:n},!R&&(o=c["on"+r])?o(e):r===V&&O("Unhandled promise rejection",n)},Y=function(r){f(b,c,function(){var t,n=r.facade,e=r.value;if(Q(r)&&(t=S(function(){u?U.emit("unhandledRejection",e,n):X(V,n,e)}),r.rejection=u||Q(r)?2:1,t.error))throw t.value})},Q=function(r){return 1!==r.rejection&&!r.parent},Z=function(r){f(b,c,function(){var t=r.facade;u?U.emit("rejectionHandled",t):X("rejectionhandled",t,r.value)})},rr=function(r,t,n){return function(e){r(t,e,n)}},tr=function(r,t,n){r.done||(r.done=!0,n&&(r=n),r.value=t,r.state=2,K(r,!0))},er=function(r,t,n){if(!r.done){r.done=!0,n&&(r=n);try{if(r.facade===t)throw new z("Promise can't be resolved itself");var e=H(t);e?w(function(){var n={done:!1};try{f(e,t,rr(er,n,r),rr(tr,n,r))}catch(t){tr(n,t,r)}}):(r.value=t,r.state=1,K(r,!1))}catch(t){tr({done:!1},t,r)}}};if(A&&(F=(D=function(t){g(this,F),d(t),f(r,this);var n=N(this);try{t(rr(er,n),rr(tr,n))}catch(r){tr(n,r)}}).prototype,(r=function(r){k(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:0,value:null})}).prototype=s(F,"then",function(r,t){var n=N(this),e=B(m(this,D));return n.parent=!0,e.ok=!h(r)||r,e.fail=h(t)&&t,e.domain=u?U.domain:void 0,0===n.state?n.reactions.add(e):w(function(){q(e,n)}),e.promise}),t=function(){var t=new r,n=N(t);this.promise=t,this.resolve=rr(er,n),this.reject=rr(tr,n)},T.f=B=function(r){return r===D||r===n?new t(r):G(r)},!i&&h(x)&&M!==Object.prototype)){e=M.then,C||s(M,"then",function(r,t){var n=this;return new D(function(r,t){f(e,n,r,t)}).then(r,t)},{unsafe:!0});try{delete M.constructor}catch(r){}l&&l(M,F)}o({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:D}),n=a.Promise,v(D,P,!1,!0),p(P)}(),function(){if(mu)return bu;mu=1;var r=Gn(),t=lt(),n=wt(),e=eu(),o=Ji(),i=ju();r({target:"Promise",stat:!0,forced:Iu()},{all:function(r){var u=this,c=e.f(u),a=c.resolve,f=c.reject,s=o(function(){var e=n(u.resolve),o=[],c=0,s=1;i(r,function(r){var n=c++,i=!1;s++,t(e,u,r).then(function(r){i||(i=!0,o[n]=r,--s||a(o))},f)}),--s||a(o)});return s.error&&f(s.value),c.promise}})}(),function(){if(Tu)return Pu;Tu=1;var r=Gn(),t=$(),n=Zi().CONSTRUCTOR,e=Qi(),o=vt(),i=L(),u=Zt(),c=e&&e.prototype;if(r({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(r){return this.then(void 0,r)}}),!t&&i(e)){var a=o("Promise").prototype.catch;c.catch!==a&&u(c,"catch",a,{unsafe:!0})}}(),function(){if(Au)return Ru;Au=1;var r=Gn(),t=lt(),n=wt(),e=eu(),o=Ji(),i=ju();r({target:"Promise",stat:!0,forced:Iu()},{race:function(r){var u=this,c=e.f(u),a=c.reject,f=o(function(){var e=n(u.resolve);i(r,function(r){t(e,u,r).then(c.resolve,a)})});return f.error&&a(f.value),c.promise}})}(),function(){if(Cu)return Nu;Cu=1;var r=Gn(),t=eu();r({target:"Promise",stat:!0,forced:Zi().CONSTRUCTOR},{reject:function(r){var n=t.f(this);return(0,n.reject)(r),n.promise}})}(),function(){if(Lu)return Fu;Lu=1;var r=Gn(),t=vt(),n=$(),e=Qi(),o=Zi().CONSTRUCTOR,i=zu(),u=t("Promise"),c=n&&!o;r({target:"Promise",stat:!0,forced:n||o},{resolve:function(r){return i(c&&this===u?e:this,r)}})}());var _u,Uu,Bu,Gu,Wu,Vu={};function Hu(){if(Gu)return Bu;Gu=1;var r=lt(),t=R(),n=pt(),e=function(){if(Uu)return _u;Uu=1;var r=J(),t=E(),n=r.RegExp,e=!t(function(){var r=!0;try{n(".","d")}catch(t){r=!1}var t={},e="",o=r?"dgimsy":"gimsy",i=function(r,n){Object.defineProperty(t,r,{get:function(){return e+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var c in r&&(u.hasIndices="d"),u)i(c,u[c]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(t)!==o||e!==o});return _u={correct:e}}(),o=oe(),i=RegExp.prototype;return Bu=e.correct?function(r){return r.flags}:function(u){return e.correct||!n(i,u)||t(u,"flags")?u.flags:r(o,u)}}!function(){if(Wu)return Vu;Wu=1;var r=C().PROPER,t=Zt(),n=st(),e=ee(),o=E(),i=Hu(),u="toString",c=RegExp.prototype,a=c[u],f=o(function(){return"/a/b"!==a.call({source:"a",flags:"b"})}),s=r&&a.name!==u;(f||s)&&t(c,u,function(){var r=n(this);return"/"+e(r.source)+"/"+e(i(r))},{unsafe:!0})}();var qu,Ku,Xu,Yu={};!function(){if(Xu)return Yu;Xu=1;var r=function(){if(Ku)return qu;Ku=1;var r=I(),t=bn(),n=ee(),e=P(),o=r("".charAt),i=r("".charCodeAt),u=r("".slice),c=function(r){return function(c,a){var f,s,l=n(e(c)),v=t(a),p=l.length;return v<0||v>=p?r?"":void 0:(f=i(l,v))<55296||f>56319||v+1===p||(s=i(l,v+1))<56320||s>57343?r?o(l,v):f:r?u(l,v,v+2):s-56320+(f-55296<<10)+65536}};return qu={codeAt:c(!1),charAt:c(!0)}}().charAt,t=ee(),n=kt(),e=uo(),o=co(),i="String Iterator",u=n.set,c=n.getterFor(i);e(String,"String",function(r){u(this,{type:i,string:t(r),index:0})},function(){var t,n=c(this),e=n.string,i=n.index;return i>=e.length?o(void 0,!0):(t=r(e,i),n.index+=t.length,o(t,!1))})}();var $u,Ju,Qu,Zu,rc={};function tc(){if(Ju)return $u;Ju=1;var r=E();return $u=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})}function nc(){if(Zu)return Qu;Zu=1;var r=Zt();return Qu=function(t,n,e){for(var o in n)r(t,o,n[o],e);return t}}var ec,oc,ic,uc,cc,ac,fc,sc,lc,vc,pc,dc,hc,yc,gc={exports:{}},mc={};function bc(){if(ec)return mc;ec=1;var r=Yt(),t=Jt(),n=xn().f,e=Vo(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return mc.f=function(i){return o&&"Window"===r(i)?function(r){try{return n(r)}catch(r){return e(o)}}(i):n(t(i))},mc}function wc(){if(cc)return uc;cc=1;var r=E(),t=nr(),n=Yt(),e=function(){if(ic)return oc;ic=1;var r=E();return oc=r(function(){if("function"==typeof ArrayBuffer){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}})}(),o=Object.isExtensible,i=r(function(){});return uc=i||e?function(r){return!!t(r)&&((!e||"ArrayBuffer"!==n(r))&&(!o||o(r)))}:o}function Oc(){if(ac)return gc.exports;ac=1;var r=Gn(),t=I(),n=Nt(),e=nr(),o=R(),i=Pt().f,u=xn(),c=bc(),a=wc(),f=jt(),s=tc(),l=!1,v=f("meta"),p=0,d=function(r){i(r,v,{value:{objectID:"O"+p++,weakData:{}}})},h=gc.exports={enable:function(){h.enable=function(){},l=!0;var n=u.f,e=t([].splice),o={};o[v]=1,n(o).length&&(u.f=function(r){for(var t=n(r),o=0,i=t.length;o<i;o++)if(t[o]===v){e(t,o,1);break}return t},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(r,t){if(!e(r))return"symbol"==typeof r?r:("string"==typeof r?"S":"P")+r;if(!o(r,v)){if(!a(r))return"F";if(!t)return"E";d(r)}return r[v].objectID},getWeakData:function(r,t){if(!o(r,v)){if(!a(r))return!0;if(!t)return!1;d(r)}return r[v].weakData},onFreeze:function(r){return s&&l&&a(r)&&!o(r,v)&&d(r),r}};return n[v]=!0,gc.exports}function Sc(){if(sc)return fc;sc=1;var r=L(),t=nr(),n=io();return fc=function(e,o,i){var u,c;return n&&r(u=o.constructor)&&u!==i&&t(c=u.prototype)&&c!==i.prototype&&n(e,c),e}}function Ec(){if(vc)return lc;vc=1;var r=Gn(),t=J(),n=I(),e=Bn(),o=Zt(),i=Oc(),u=ju(),c=Ui(),a=L(),f=T(),s=nr(),l=E(),v=xu(),p=no(),d=Sc();return lc=function(h,y,g){var m=-1!==h.indexOf("Map"),b=-1!==h.indexOf("Weak"),w=m?"set":"add",O=t[h],S=O&&O.prototype,E=O,j={},x=function(r){var t=n(S[r]);o(S,r,"add"===r?function(r){return t(this,0===r?0:r),this}:"delete"===r?function(r){return!(b&&!s(r))&&t(this,0===r?0:r)}:"get"===r?function(r){return b&&!s(r)?void 0:t(this,0===r?0:r)}:"has"===r?function(r){return!(b&&!s(r))&&t(this,0===r?0:r)}:function(r,n){return t(this,0===r?0:r,n),this})};if(e(h,!a(O)||!(b||S.forEach&&!l(function(){(new O).entries().next()}))))E=g.getConstructor(y,h,m,w),i.enable();else if(e(h,!0)){var I=new E,T=I[w](b?{}:-0,1)!==I,P=l(function(){I.has(1)}),A=v(function(r){new O(r)}),R=!b&&l(function(){for(var r=new O,t=5;t--;)r[w](t,t);return!r.has(-0)});A||((E=y(function(r,t){c(r,S);var n=d(new O,r,E);return f(t)||u(t,n[w],{that:n,AS_ENTRIES:m}),n})).prototype=S,S.constructor=E),(P||R)&&(x("delete"),x("has"),m&&x("get")),(R||T)&&x(w),b&&S.clear&&delete S.clear}return j[h]=E,r({global:!0,constructor:!0,forced:E!==O},j),p(E,h),b||g.setStrong(E,h,m),E}}function jc(){if(dc)return pc;dc=1;var r=I(),t=nc(),n=Oc().getWeakData,e=Ui(),o=st(),i=T(),u=nr(),c=ju(),a=Do(),f=R(),s=kt(),l=s.set,v=s.getterFor,p=a.find,d=a.findIndex,h=r([].splice),y=0,g=function(r){return r.frozen||(r.frozen=new m)},m=function(){this.entries=[]},b=function(r,t){return p(r.entries,function(r){return r[0]===t})};return m.prototype={get:function(r){var t=b(this,r);if(t)return t[1]},has:function(r){return!!b(this,r)},set:function(r,t){var n=b(this,r);n?n[1]=t:this.entries.push([r,t])},delete:function(r){var t=d(this.entries,function(t){return t[0]===r});return~t&&h(this.entries,t,1),!!~t}},pc={getConstructor:function(r,a,s,p){var d=r(function(r,t){e(r,h),l(r,{type:a,id:y++,frozen:null}),i(t)||c(t,r[p],{that:r,AS_ENTRIES:s})}),h=d.prototype,m=v(a),b=function(r,t,e){var i=m(r),u=n(o(t),!0);return!0===u?g(i).set(t,e):u[i.id]=e,r};return t(h,{delete:function(r){var t=m(this);if(!u(r))return!1;var e=n(r);return!0===e?g(t).delete(r):e&&f(e,t.id)&&delete e[t.id]},has:function(r){var t=m(this);if(!u(r))return!1;var e=n(r);return!0===e?g(t).has(r):e&&f(e,t.id)}}),t(h,s?{get:function(r){var t=m(this);if(u(r)){var e=n(r);if(!0===e)return g(t).get(r);if(e)return e[t.id]}},set:function(r,t){return b(this,r,t)}}:{add:function(r){return b(this,r,!0)}}),d}}}yc||(yc=1,function(){if(hc)return rc;hc=1;var r,t=tc(),n=J(),e=I(),o=nc(),i=Oc(),u=Ec(),c=jc(),a=nr(),f=kt().enforce,s=E(),l=tr(),v=Object,p=Array.isArray,d=v.isExtensible,h=v.isFrozen,y=v.isSealed,g=v.freeze,m=v.seal,b=!n.ActiveXObject&&"ActiveXObject"in n,w=function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},O=u("WeakMap",w,c),S=O.prototype,j=e(S.set);if(l)if(b){r=c.getConstructor(w,"WeakMap",!0),i.enable();var x=e(S.delete),T=e(S.has),P=e(S.get);o(S,{delete:function(t){if(a(t)&&!d(t)){var n=f(this);return n.frozen||(n.frozen=new r),x(this,t)||n.frozen.delete(t)}return x(this,t)},has:function(t){if(a(t)&&!d(t)){var n=f(this);return n.frozen||(n.frozen=new r),T(this,t)||n.frozen.has(t)}return T(this,t)},get:function(t){if(a(t)&&!d(t)){var n=f(this);return n.frozen||(n.frozen=new r),T(this,t)?P(this,t):n.frozen.get(t)}return P(this,t)},set:function(t,n){if(a(t)&&!d(t)){var e=f(this);e.frozen||(e.frozen=new r),T(this,t)?j(this,t,n):e.frozen.set(t,n)}else j(this,t,n);return this}})}else t&&s(function(){var r=g([]);return j(new O,r,1),!h(r)})&&o(S,{set:function(r,t){var n;return p(r)&&(h(r)?n=g:y(r)&&(n=m)),j(this,r,t),n&&n(r),this}})}());var xc,Ic,Tc,Pc,Ac,Rc,Cc,Nc={};function kc(){return Ic?xc:(Ic=1,xc={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})}function Mc(){if(Pc)return Tc;Pc=1;var r=ct()("span").classList,t=r&&r.constructor&&r.constructor.prototype;return Tc=t===Object.prototype?void 0:t}!function(){if(Cc)return Nc;Cc=1;var r=J(),t=kc(),n=Mc(),e=function(){if(Rc)return Ac;Rc=1;var r=Do().forEach,t=Wn()("forEach");return Ac=t?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)},Ac}(),o=Rt(),i=function(r){if(r&&r.forEach!==e)try{o(r,"forEach",e)}catch(t){r.forEach=e}};for(var u in t)t[u]&&i(r[u]&&r[u].prototype);i(n)}();var Lc,Dc={};!function(){if(Lc)return Dc;Lc=1;var r=J(),t=kc(),n=Mc(),e=ao(),o=Rt(),i=no(),u=xt()("iterator"),c=e.values,a=function(r,n){if(r){if(r[u]!==c)try{o(r,u,c)}catch(t){r[u]=c}if(i(r,n,!0),t[n])for(var a in e)if(r[a]!==e[a])try{o(r,a,e[a])}catch(t){r[a]=e[a]}}};for(var f in t)a(r[f]&&r[f].prototype,f);a(n,"DOMTokenList")}();var Fc=function(){return Fc=Object.assign||function(r){for(var t,n=1,e=arguments.length;n<e;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},Fc.apply(this,arguments)};function zc(r,t,n,e){return new(n||(n=Promise))(function(o,i){function u(r){try{a(e.next(r))}catch(r){i(r)}}function c(r){try{a(e.throw(r))}catch(r){i(r)}}function a(r){var t;r.done?o(r.value):(t=r.value,t instanceof n?t:new n(function(r){r(t)})).then(u,c)}a((e=e.apply(r,t||[])).next())})}function _c(r,t){var n,e,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(a){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(i=0)),i;)try{if(n=1,e&&(o=2&c[0]?e.return:c[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,c[1])).done)return o;switch(e=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,e=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(r,i)}catch(r){c=[6,r],e=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}}function Uc(r){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&r[t],e=0;if(n)return n.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Bc(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=r[Symbol.asyncIterator];return n?n.call(r):(r=Uc(r),t={},e("next"),e("throw"),e("return"),t[Symbol.asyncIterator]=function(){return this},t);function e(n){t[n]=r[n]&&function(t){return new Promise(function(e,o){(function(r,t,n,e){Promise.resolve(e).then(function(t){r({value:t,done:n})},t)})(e,o,(t=r[n](t)).done,t.value)})}}}"function"==typeof SuppressedError&&SuppressedError;var Gc=new WeakMap;function Wc(r){return r.getMenuConfig("uploadImage")}function Vc(r,n){return zc(this,void 0,void 0,function(){return _c(this,function(e){return[2,new Promise(function(e){var o=new FileReader;o.readAsDataURL(n),o.onload=function(){var i=o.result;if(i){var u=i.toString(),c=0===u.indexOf("data:image")?"":u;t.insertImageNode(r,u,n.name,c),e("ok")}}})]})})}function Hc(n,e){return zc(this,void 0,void 0,function(){var o,i;return _c(this,function(u){switch(u.label){case 0:return o=function(n){var e=Gc.get(n);if(null!=e)return e;var o=Wc(n),i=o.onSuccess,u=o.onProgress,c=o.onFailed,a=o.customInsert,f=o.onError;return e=r.createUploader(Fc(Fc({},o),{onProgress:function(r){n.showProgressBar(r),u&&u(r)},onSuccess:function(r,e){if(a)return a(e,function(r,e,o){return t.insertImageNode(n,r,e,o)}),void i(r,e);var o=e.errno,u=void 0===o?1:o,f=e.data,s=void 0===f?{}:f;if(0===u){if(Array.isArray(s))s.forEach(function(r){var e=r.url,o=void 0===e?"":e,i=r.alt,u=void 0===i?"":i,c=r.href,a=void 0===c?"":c;t.insertImageNode(n,o,u,a)});else{var l=s.url,v=void 0===l?"":l,p=s.alt,d=void 0===p?"":p,h=s.href,y=void 0===h?"":h;t.insertImageNode(n,v,d,y)}i(r,e)}else c(r,e)},onError:function(r,t,n){f(r,t,n)}})),Gc.set(n,e),e}(n),i=e.map(function(r){return{name:r.name,type:r.type,size:r.size,data:r}}),o.addFiles(i),[4,o.upload()];case 1:return u.sent(),[2]}})})}function qc(r,n){return zc(this,void 0,void 0,function(){var e,o,i,u,c,a,f,s,l,v,p,d,h,y,g;return _c(this,function(m){switch(m.label){case 0:if(null==n)return[2];e=Array.prototype.slice.call(n),o=Wc(r),i=o.customUpload,u=o.base64LimitSize,c=[],m.label=1;case 1:m.trys.push([1,10,11,16]),a=!0,f=Bc(e),m.label=2;case 2:return[4,f.next()];case 3:return s=m.sent(),(d=s.done)?[3,9]:(g=s.value,a=!1,v=(l=g).size,u&&v<=u?[4,Vc(r,l)]:[3,5]);case 4:return m.sent(),[3,8];case 5:return i?[4,i(l,function(n,e,o){return t.insertImageNode(r,n,e,o)},r)]:[3,7];case 6:return m.sent(),[3,8];case 7:c.push(l),m.label=8;case 8:return a=!0,[3,2];case 9:return[3,16];case 10:return p=m.sent(),h={error:p},[3,16];case 11:return m.trys.push([11,,14,15]),a||d||!(y=f.return)?[3,13]:[4,y.call(f)];case 12:m.sent(),m.label=13;case 13:return[3,15];case 14:if(h)throw h.error;return[7];case 15:return[7];case 16:return c.length>0?[4,Hc(r,c)]:[3,18];case 17:m.sent(),m.label=18;case 18:return[2]}})})}var Kc=function(){function e(){this.title=r.t("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(r){return""},e.prototype.isActive=function(r){return!1},e.prototype.isDisabled=function(r){return t.isInsertImageMenuDisabled(r)},e.prototype.getMenuConfig=function(r){return r.getMenuConfig("uploadImage")},e.prototype.exec=function(r,e){var o=this.getMenuConfig(r),i=o.allowedFileTypes,u=void 0===i?[]:i,c=o.customBrowseAndUpload;if(c)c(function(n,e,o){return t.insertImageNode(r,n,e,o)});else{var a="";u.length>0&&(a='accept="'.concat(u.join(", "),'"'));var f=n("body"),s=n('<input type="file" '.concat(a," multiple/>"));s.hide(),f.append(s),s.click(),s.on("change",function(){var t=s[0].files;qc(r,t)})}},e}();return{menus:[{key:"uploadImage",factory:function(){return new Kc},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(r){return r},onProgress:function(r){},onSuccess:function(r,t){},onFailed:function(r,t){console.error("'".concat(r.name,"' upload failed"),t)},onError:function(r,t,n){console.error("'".concat(r.name,"' upload error"),n)},base64LimitSize:0}}],editorPlugin:function(r){var n=r.insertData,e=r;return e.insertData=function(o){if(t.isInsertImageMenuDisabled(e))n(o);else if(o.getData("text/plain"))n(o);else{var i=o.files;if(i.length<=0)n(o);else Array.prototype.slice.call(i).some(function(r){return"image"===function(r,t){var n="function"==typeof Symbol&&r[Symbol.iterator];if(!n)return r;var e,o,i=n.call(r),u=[];try{for(;(void 0===t||t-- >0)&&!(e=i.next()).done;)u.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}(r.type.split("/"),1)[0]})?qc(r,i):n(o)}},e}}});
1
+ !function(r,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@wangeditor-next/core"),require("@wangeditor-next/basic-modules"),require("dom7")):"function"==typeof define&&define.amd?define(["@wangeditor-next/core","@wangeditor-next/basic-modules","dom7"],t):(r="undefined"!=typeof globalThis?globalThis:r||self).WangEditorUploadImageModule=t(r.core,r.basicModules,r.$)}(this,function(r,t,n){"use strict";r.i18nAddResources("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),r.i18nAddResources("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var e,o,i,u,c,a,f,s,l,v,p,d,h,y,g,m,b,w,S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},O={};function E(){return o?e:(o=1,e=function(r){try{return!!r()}catch(r){return!0}})}function j(){if(u)return i;u=1;var r=E();return i=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function x(){if(a)return c;a=1;var r=E();return c=!r(function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")})}function I(){if(s)return f;s=1;var r=x(),t=Function.prototype,n=t.call,e=r&&t.bind.bind(n,n);return f=r?e:function(r){return function(){return n.apply(r,arguments)}},f}function T(){return v?l:(v=1,l=function(r){return null==r})}function P(){if(d)return p;d=1;var r=T(),t=TypeError;return p=function(n){if(r(n))throw new t("Can't call method on "+n);return n}}function R(){if(y)return h;y=1;var r=P(),t=Object;return h=function(n){return t(r(n))}}function A(){if(m)return g;m=1;var r=I(),t=R(),n=r({}.hasOwnProperty);return g=Object.hasOwn||function(r,e){return n(t(r),e)}}function C(){if(w)return b;w=1;var r=j(),t=A(),n=Function.prototype,e=r&&Object.getOwnPropertyDescriptor,o=t(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!r||r&&e(n,"name").configurable);return b={EXISTS:o,PROPER:i,CONFIGURABLE:u}}var N,k,M={exports:{}};function L(){if(k)return N;k=1;var r="object"==typeof document&&document.all;return N=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(r){return"function"==typeof r}}var D,F,z,_,U,B,G,W,V,H,q,K,X,Y={exports:{}};function $(){return F?D:(F=1,D=!1)}function J(){if(_)return z;_=1;var r=function(r){return r&&r.Math===Math&&r};return z=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof S&&S)||r("object"==typeof z&&z)||function(){return this}()||Function("return this")()}function Q(){if(B)return U;B=1;var r=J(),t=Object.defineProperty;return U=function(n,e){try{t(r,n,{value:e,configurable:!0,writable:!0})}catch(t){r[n]=e}return e}}function Z(){if(G)return Y.exports;G=1;var r=$(),t=J(),n=Q(),e="__core-js_shared__",o=Y.exports=t[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.47.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Y.exports}function rr(){if(V)return W;V=1;var r=I(),t=L(),n=Z(),e=r(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(r){return e(r)}),W=n.inspectSource}function tr(){if(q)return H;q=1;var r=J(),t=L(),n=r.WeakMap;return H=t(n)&&/native code/.test(String(n))}function nr(){if(X)return K;X=1;var r=L();return K=function(t){return"object"==typeof t?null!==t:r(t)}}var er,or,ir,ur,cr,ar,fr,sr,lr,vr,pr,dr,hr,yr,gr,mr,br,wr,Sr,Or,Er,jr,xr,Ir,Tr,Pr,Rr,Ar,Cr,Nr,kr,Mr,Lr,Dr,Fr,zr,_r,Ur,Br,Gr,Wr,Vr,Hr,qr,Kr,Xr,Yr,$r,Jr,Qr,Zr,rt,tt,nt,et,ot,it,ut={};function ct(){if(or)return er;or=1;var r=J(),t=nr(),n=r.document,e=t(n)&&t(n.createElement);return er=function(r){return e?n.createElement(r):{}}}function at(){if(ur)return ir;ur=1;var r=j(),t=E(),n=ct();return ir=!r&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function ft(){if(ar)return cr;ar=1;var r=j(),t=E();return cr=r&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function st(){if(sr)return fr;sr=1;var r=nr(),t=String,n=TypeError;return fr=function(e){if(r(e))return e;throw new n(t(e)+" is not an object")}}function lt(){if(vr)return lr;vr=1;var r=x(),t=Function.prototype.call;return lr=r?t.bind(t):function(){return t.apply(t,arguments)},lr}function vt(){if(dr)return pr;dr=1;var r=J(),t=L();return pr=function(n,e){return arguments.length<2?(o=r[n],t(o)?o:void 0):r[n]&&r[n][e];var o},pr}function pt(){if(yr)return hr;yr=1;var r=I();return hr=r({}.isPrototypeOf)}function dt(){if(mr)return gr;mr=1;var r=J().navigator,t=r&&r.userAgent;return gr=t?String(t):""}function ht(){if(wr)return br;wr=1;var r,t,n=J(),e=dt(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,c=u&&u.v8;return c&&(t=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!t&&e&&(!(r=e.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=e.match(/Chrome\/(\d+)/))&&(t=+r[1]),br=t}function yt(){if(Or)return Sr;Or=1;var r=ht(),t=E(),n=J().String;return Sr=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})}function gt(){if(jr)return Er;jr=1;var r=yt();return Er=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function mt(){if(Ir)return xr;Ir=1;var r=vt(),t=L(),n=pt(),e=gt(),o=Object;return xr=e?function(r){return"symbol"==typeof r}:function(e){var i=r("Symbol");return t(i)&&n(i.prototype,o(e))}}function bt(){if(Pr)return Tr;Pr=1;var r=String;return Tr=function(t){try{return r(t)}catch(r){return"Object"}}}function wt(){if(Ar)return Rr;Ar=1;var r=L(),t=bt(),n=TypeError;return Rr=function(e){if(r(e))return e;throw new n(t(e)+" is not a function")}}function St(){if(Nr)return Cr;Nr=1;var r=wt(),t=T();return Cr=function(n,e){var o=n[e];return t(o)?void 0:r(o)}}function Ot(){if(Mr)return kr;Mr=1;var r=lt(),t=L(),n=nr(),e=TypeError;return kr=function(o,i){var u,c;if("string"===i&&t(u=o.toString)&&!n(c=r(u,o)))return c;if(t(u=o.valueOf)&&!n(c=r(u,o)))return c;if("string"!==i&&t(u=o.toString)&&!n(c=r(u,o)))return c;throw new e("Can't convert object to primitive value")}}function Et(){if(Dr)return Lr;Dr=1;var r=Z();return Lr=function(t,n){return r[t]||(r[t]=n||{})}}function jt(){if(zr)return Fr;zr=1;var r=I(),t=0,n=Math.random(),e=r(1.1.toString);return Fr=function(r){return"Symbol("+(void 0===r?"":r)+")_"+e(++t+n,36)}}function xt(){if(Ur)return _r;Ur=1;var r=J(),t=Et(),n=A(),e=jt(),o=yt(),i=gt(),u=r.Symbol,c=t("wks"),a=i?u.for||u:u&&u.withoutSetter||e;return _r=function(r){return n(c,r)||(c[r]=o&&n(u,r)?u[r]:a("Symbol."+r)),c[r]}}function It(){if(Gr)return Br;Gr=1;var r=lt(),t=nr(),n=mt(),e=St(),o=Ot(),i=xt(),u=TypeError,c=i("toPrimitive");return Br=function(i,a){if(!t(i)||n(i))return i;var f,s=e(i,c);if(s){if(void 0===a&&(a="default"),f=r(s,i,a),!t(f)||n(f))return f;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),o(i,a)}}function Tt(){if(Vr)return Wr;Vr=1;var r=It(),t=mt();return Wr=function(n){var e=r(n,"string");return t(e)?e:e+""}}function Pt(){if(Hr)return ut;Hr=1;var r=j(),t=at(),n=ft(),e=st(),o=Tt(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,a="enumerable",f="configurable",s="writable";return ut.f=r?n?function(r,t,n){if(e(r),t=o(t),e(n),"function"==typeof r&&"prototype"===t&&"value"in n&&s in n&&!n[s]){var i=c(r,t);i&&i[s]&&(r[t]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:a in n?n[a]:i[a],writable:!1})}return u(r,t,n)}:u:function(r,n,c){if(e(r),n=o(n),e(c),t)try{return u(r,n,c)}catch(r){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(r[n]=c.value),r},ut}function Rt(){return Kr?qr:(Kr=1,qr=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}})}function At(){if(Yr)return Xr;Yr=1;var r=j(),t=Pt(),n=Rt();return Xr=r?function(r,e,o){return t.f(r,e,n(1,o))}:function(r,t,n){return r[t]=n,r}}function Ct(){if(Jr)return $r;Jr=1;var r=Et(),t=jt(),n=r("keys");return $r=function(r){return n[r]||(n[r]=t(r))}}function Nt(){return Zr?Qr:(Zr=1,Qr={})}function kt(){if(tt)return rt;tt=1;var r,t,n,e=tr(),o=J(),i=nr(),u=At(),c=A(),a=Z(),f=Ct(),s=Nt(),l="Object already initialized",v=o.TypeError,p=o.WeakMap;if(e||a.state){var d=a.state||(a.state=new p);d.get=d.get,d.has=d.has,d.set=d.set,r=function(r,t){if(d.has(r))throw new v(l);return t.facade=r,d.set(r,t),t},t=function(r){return d.get(r)||{}},n=function(r){return d.has(r)}}else{var h=f("state");s[h]=!0,r=function(r,t){if(c(r,h))throw new v(l);return t.facade=r,u(r,h,t),t},t=function(r){return c(r,h)?r[h]:{}},n=function(r){return c(r,h)}}return rt={set:r,get:t,has:n,enforce:function(e){return n(e)?t(e):r(e,{})},getterFor:function(r){return function(n){var e;if(!i(n)||(e=t(n)).type!==r)throw new v("Incompatible receiver, "+r+" required");return e}}}}function Mt(){if(nt)return M.exports;nt=1;var r=I(),t=E(),n=L(),e=A(),o=j(),i=C().CONFIGURABLE,u=rr(),c=kt(),a=c.enforce,f=c.get,s=String,l=Object.defineProperty,v=r("".slice),p=r("".replace),d=r([].join),h=o&&!t(function(){return 8!==l(function(){},"length",{value:8}).length}),y=String(String).split("String"),g=M.exports=function(r,t,n){"Symbol("===v(s(t),0,7)&&(t="["+p(s(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!e(r,"name")||i&&r.name!==t)&&(o?l(r,"name",{value:t,configurable:!0}):r.name=t),h&&n&&e(n,"arity")&&r.length!==n.arity&&l(r,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?o&&l(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(r){}var u=a(r);return e(u,"source")||(u.source=d(y,"string"==typeof t?t:"")),r};return Function.prototype.toString=g(function(){return n(this)&&f(this).source||u(this)},"toString"),M.exports}function Lt(){if(ot)return et;ot=1;var r=Mt(),t=Pt();return et=function(n,e,o){return o.get&&r(o.get,e,{getter:!0}),o.set&&r(o.set,e,{setter:!0}),t.f(n,e,o)}}!function(){if(it)return O;it=1;var r=j(),t=C().EXISTS,n=I(),e=Lt(),o=Function.prototype,i=n(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=n(u.exec);r&&!t&&e(o,"name",{configurable:!0,get:function(){try{return c(u,i(this))[1]}catch(r){return""}}})}();var Dt,Ft,zt,_t,Ut,Bt,Gt,Wt,Vt,Ht,qt={},Kt={},Xt={};function Yt(){if(zt)return Ft;zt=1;var r=I(),t=r({}.toString),n=r("".slice);return Ft=function(r){return n(t(r),8,-1)}}function $t(){if(Ut)return _t;Ut=1;var r=I(),t=E(),n=Yt(),e=Object,o=r("".split);return _t=t(function(){return!e("z").propertyIsEnumerable(0)})?function(r){return"String"===n(r)?o(r,""):e(r)}:e}function Jt(){if(Gt)return Bt;Gt=1;var r=$t(),t=P();return Bt=function(n){return r(t(n))}}function Qt(){if(Wt)return Kt;Wt=1;var r=j(),t=lt(),n=function(){if(Dt)return Xt;Dt=1;var r={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!r.call({1:2},1);return Xt.f=n?function(r){var n=t(this,r);return!!n&&n.enumerable}:r,Xt}(),e=Rt(),o=Jt(),i=Tt(),u=A(),c=at(),a=Object.getOwnPropertyDescriptor;return Kt.f=r?a:function(r,f){if(r=o(r),f=i(f),c)try{return a(r,f)}catch(r){}if(u(r,f))return e(!t(n.f,r,f),r[f])},Kt}function Zt(){if(Ht)return Vt;Ht=1;var r=L(),t=Pt(),n=Mt(),e=Q();return Vt=function(o,i,u,c){c||(c={});var a=c.enumerable,f=void 0!==c.name?c.name:i;if(r(u)&&n(u,f,c),c.global)a?o[i]=u:e(i,u);else{try{c.unsafe?o[i]&&(a=!0):delete o[i]}catch(r){}a?o[i]=u:t.f(o,i,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return o}}var rn,tn,nn,en,on,un,cn,an,fn,sn,ln,vn,pn,dn,hn,yn,gn,mn={};function bn(){if(en)return nn;en=1;var r=function(){if(tn)return rn;tn=1;var r=Math.ceil,t=Math.floor;return rn=Math.trunc||function(n){var e=+n;return(e>0?t:r)(e)}}();return nn=function(t){var n=+t;return n!=n||0===n?0:r(n)}}function wn(){if(un)return on;un=1;var r=bn(),t=Math.max,n=Math.min;return on=function(e,o){var i=r(e);return i<0?t(i+o,0):n(i,o)}}function Sn(){if(an)return cn;an=1;var r=bn(),t=Math.min;return cn=function(n){var e=r(n);return e>0?t(e,9007199254740991):0}}function On(){if(sn)return fn;sn=1;var r=Sn();return fn=function(t){return r(t.length)}}function En(){if(dn)return pn;dn=1;var r=I(),t=A(),n=Jt(),e=function(){if(vn)return ln;vn=1;var r=Jt(),t=wn(),n=On(),e=function(e){return function(o,i,u){var c=r(o),a=n(c);if(0===a)return!e&&-1;var f,s=t(u,a);if(e&&i!=i){for(;a>s;)if((f=c[s++])!=f)return!0}else for(;a>s;s++)if((e||s in c)&&c[s]===i)return e||s||0;return!e&&-1}};return ln={includes:e(!0),indexOf:e(!1)}}().indexOf,o=Nt(),i=r([].push);return pn=function(r,u){var c,a=n(r),f=0,s=[];for(c in a)!t(o,c)&&t(a,c)&&i(s,c);for(;u.length>f;)t(a,c=u[f++])&&(~e(s,c)||i(s,c));return s}}function jn(){return yn?hn:(yn=1,hn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function xn(){if(gn)return mn;gn=1;var r=En(),t=jn().concat("length","prototype");return mn.f=Object.getOwnPropertyNames||function(n){return r(n,t)},mn}var In,Tn,Pn,Rn,An,Cn,Nn,kn,Mn,Ln,Dn,Fn,zn={};function _n(){if(Pn)return Tn;Pn=1;var r=vt(),t=I(),n=xn(),e=(In||(In=1,zn.f=Object.getOwnPropertySymbols),zn),o=st(),i=t([].concat);return Tn=r("Reflect","ownKeys")||function(r){var t=n.f(o(r)),u=e.f;return u?i(t,u(r)):t}}function Un(){if(An)return Rn;An=1;var r=A(),t=_n(),n=Qt(),e=Pt();return Rn=function(o,i,u){for(var c=t(i),a=e.f,f=n.f,s=0;s<c.length;s++){var l=c[s];r(o,l)||u&&r(u,l)||a(o,l,f(i,l))}}}function Bn(){if(Nn)return Cn;Nn=1;var r=E(),t=L(),n=/#|\.prototype\./,e=function(n,e){var a=i[o(n)];return a===c||a!==u&&(t(e)?r(e):!!e)},o=e.normalize=function(r){return String(r).replace(n,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",c=e.POLYFILL="P";return Cn=e}function Gn(){if(Mn)return kn;Mn=1;var r=J(),t=Qt().f,n=At(),e=Zt(),o=Q(),i=Un(),u=Bn();return kn=function(c,a){var f,s,l,v,p,d=c.target,h=c.global,y=c.stat;if(f=h?r:y?r[d]||o(d,{}):r[d]&&r[d].prototype)for(s in a){if(v=a[s],l=c.dontCallGetSet?(p=t(f,s))&&p.value:f[s],!u(h?s:d+(y?".":"#")+s,c.forced)&&void 0!==l){if(typeof v==typeof l)continue;i(v,l)}(c.sham||l&&l.sham)&&n(v,"sham",!0),e(f,s,v,c)}}}function Wn(){if(Dn)return Ln;Dn=1;var r=E();return Ln=function(t,n){var e=[][t];return!!e&&r(function(){e.call(null,n||function(){return 1},1)})}}!function(){if(Fn)return qt;Fn=1;var r=Gn(),t=I(),n=$t(),e=Jt(),o=Wn(),i=t([].join);r({target:"Array",proto:!0,forced:n!==Object||!o("join",",")},{join:function(r){return i(e(this),void 0===r?",":r)}})}();var Vn,Hn,qn,Kn,Xn,Yn,$n,Jn,Qn,Zn,re={};function te(){if(Hn)return Vn;Hn=1;var r={};return r[xt()("toStringTag")]="z",Vn="[object z]"===String(r)}function ne(){if(Kn)return qn;Kn=1;var r=te(),t=L(),n=Yt(),e=xt()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return qn=r?n:function(r){var u,c,a;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(c=function(r,t){try{return r[t]}catch(r){}}(u=o(r),e))?c:i?n(u):"Object"===(a=n(u))&&t(u.callee)?"Arguments":a}}function ee(){if(Yn)return Xn;Yn=1;var r=ne(),t=String;return Xn=function(n){if("Symbol"===r(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}function oe(){if(Jn)return $n;Jn=1;var r=st();return $n=function(){var t=r(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}var ie,ue,ce,ae,fe,se,le,ve,pe,de,he,ye,ge,me,be={};function we(){if(ue)return ie;ue=1;var r=En(),t=jn();return ie=Object.keys||function(n){return r(n,t)}}function Se(){if(fe)return ae;fe=1;var r=vt();return ae=r("document","documentElement")}function Oe(){if(le)return se;le=1;var r,t=st(),n=function(){if(ce)return be;ce=1;var r=j(),t=ft(),n=Pt(),e=st(),o=Jt(),i=we();return be.f=r&&!t?Object.defineProperties:function(r,t){e(r);for(var u,c=o(t),a=i(t),f=a.length,s=0;f>s;)n.f(r,u=a[s++],c[u]);return r},be}(),e=jn(),o=Nt(),i=Se(),u=ct(),c=Ct(),a="prototype",f="script",s=c("IE_PROTO"),l=function(){},v=function(r){return"<"+f+">"+r+"</"+f+">"},p=function(r){r.write(v("")),r.close();var t=r.parentWindow.Object;return r=null,t},d=function(){try{r=new ActiveXObject("htmlfile")}catch(r){}var t,n,o;d="undefined"!=typeof document?document.domain&&r?p(r):(n=u("iframe"),o="java"+f+":",n.style.display="none",i.appendChild(n),n.src=String(o),(t=n.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):p(r);for(var c=e.length;c--;)delete d[a][e[c]];return d()};return o[s]=!0,se=Object.create||function(r,e){var o;return null!==r?(l[a]=t(r),o=new l,l[a]=null,o[s]=r):o=d(),void 0===e?o:n.f(o,e)}}function Ee(){if(ge)return ye;ge=1;var r,t,n=lt(),e=I(),o=ee(),i=oe(),u=function(){if(Zn)return Qn;Zn=1;var r=E(),t=J().RegExp,n=r(function(){var r=t("a","y");return r.lastIndex=2,null!==r.exec("abcd")}),e=n||r(function(){return!t("a","y").sticky}),o=n||r(function(){var r=t("^r","gy");return r.lastIndex=2,null!==r.exec("str")});return Qn={BROKEN_CARET:o,MISSED_STICKY:e,UNSUPPORTED_Y:n}}(),c=Et(),a=Oe(),f=kt().get,s=function(){if(pe)return ve;pe=1;var r=E(),t=J().RegExp;return ve=r(function(){var r=t(".","s");return!(r.dotAll&&r.test("\n")&&"s"===r.flags)})}(),l=function(){if(he)return de;he=1;var r=E(),t=J().RegExp;return de=r(function(){var r=t("(?<a>b)","g");return"b"!==r.exec("b").groups.a||"bc"!=="b".replace(r,"$<a>c")})}(),v=c("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,d=p,h=e("".charAt),y=e("".indexOf),g=e("".replace),m=e("".slice),b=(t=/b*/g,n(p,r=/a/,"a"),n(p,t,"a"),0!==r.lastIndex||0!==t.lastIndex),w=u.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];return(b||S||w||s||l)&&(d=function(r){var t,e,u,c,s,l,O,E=this,j=f(E),x=o(r),I=j.raw;if(I)return I.lastIndex=E.lastIndex,t=n(d,I,x),E.lastIndex=I.lastIndex,t;var T=j.groups,P=w&&E.sticky,R=n(i,E),A=E.source,C=0,N=x;if(P&&(R=g(R,"y",""),-1===y(R,"g")&&(R+="g"),N=m(x,E.lastIndex),E.lastIndex>0&&(!E.multiline||E.multiline&&"\n"!==h(x,E.lastIndex-1))&&(A="(?: "+A+")",N=" "+N,C++),e=new RegExp("^(?:"+A+")",R)),S&&(e=new RegExp("^"+A+"$(?!\\s)",R)),b&&(u=E.lastIndex),c=n(p,P?e:E,N),P?c?(c.input=m(c.input,C),c[0]=m(c[0],C),c.index=E.lastIndex,E.lastIndex+=c[0].length):E.lastIndex=0:b&&c&&(E.lastIndex=E.global?c.index+c[0].length:u),S&&c&&c.length>1&&n(v,c[0],e,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(c[s]=void 0)}),c&&T)for(c.groups=l=a(null),s=0;s<T.length;s++)l[(O=T[s])[0]]=c[O[1]];return c}),ye=d}!function(){if(me)return re;me=1;var r=Gn(),t=Ee();r({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t})}();var je,xe,Ie,Te,Pe,Re,Ae,Ce,Ne,ke,Me,Le,De,Fe,ze,_e,Ue,Be,Ge,We,Ve,He,qe,Ke,Xe,Ye,$e,Je;function Qe(){if(xe)return je;xe=1;var r=xt(),t=Oe(),n=Pt().f,e=r("unscopables"),o=Array.prototype;return void 0===o[e]&&n(o,e,{configurable:!0,value:t(null)}),je=function(r){o[e][r]=!0}}function Ze(){return Te?Ie:(Te=1,Ie={})}function ro(){if(Ce)return Ae;Ce=1;var r=A(),t=L(),n=R(),e=Ct(),o=function(){if(Re)return Pe;Re=1;var r=E();return Pe=!r(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})}(),i=e("IE_PROTO"),u=Object,c=u.prototype;return Ae=o?u.getPrototypeOf:function(e){var o=n(e);if(r(o,i))return o[i];var a=o.constructor;return t(a)&&o instanceof a?a.prototype:o instanceof u?c:null}}function to(){if(ke)return Ne;ke=1;var r,t,n,e=E(),o=L(),i=nr(),u=Oe(),c=ro(),a=Zt(),f=xt(),s=$(),l=f("iterator"),v=!1;return[].keys&&("next"in(n=[].keys())?(t=c(c(n)))!==Object.prototype&&(r=t):v=!0),!i(r)||e(function(){var t={};return r[l].call(t)!==t})?r={}:s&&(r=u(r)),o(r[l])||a(r,l,function(){return this}),Ne={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}}function no(){if(Le)return Me;Le=1;var r=Pt().f,t=A(),n=xt()("toStringTag");return Me=function(e,o,i){e&&!i&&(e=e.prototype),e&&!t(e,n)&&r(e,n,{configurable:!0,value:o})}}function eo(){if(Be)return Ue;Be=1;var r=nr();return Ue=function(t){return r(t)||null===t}}function oo(){if(We)return Ge;We=1;var r=eo(),t=String,n=TypeError;return Ge=function(e){if(r(e))return e;throw new n("Can't set "+t(e)+" as a prototype")}}function io(){if(He)return Ve;He=1;var r=function(){if(_e)return ze;_e=1;var r=I(),t=wt();return ze=function(n,e,o){try{return r(t(Object.getOwnPropertyDescriptor(n,e)[o]))}catch(r){}}}(),t=nr(),n=P(),e=oo();return Ve=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,u={};try{(o=r(Object.prototype,"__proto__","set"))(u,[]),i=u instanceof Array}catch(r){}return function(r,u){return n(r),e(u),t(r)?(i?o(r,u):r.__proto__=u,r):r}}():void 0)}function uo(){if(Ke)return qe;Ke=1;var r=Gn(),t=lt(),n=$(),e=C(),o=L(),i=function(){if(Fe)return De;Fe=1;var r=to().IteratorPrototype,t=Oe(),n=Rt(),e=no(),o=Ze(),i=function(){return this};return De=function(u,c,a,f){var s=c+" Iterator";return u.prototype=t(r,{next:n(+!f,a)}),e(u,s,!1,!0),o[s]=i,u}}(),u=ro(),c=io(),a=no(),f=At(),s=Zt(),l=xt(),v=Ze(),p=to(),d=e.PROPER,h=e.CONFIGURABLE,y=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,m=l("iterator"),b="keys",w="values",S="entries",O=function(){return this};return qe=function(e,l,p,E,j,x,I){i(p,l,E);var T,P,R,A=function(r){if(r===j&&L)return L;if(!g&&r&&r in k)return k[r];switch(r){case b:case w:case S:return function(){return new p(this,r)}}return function(){return new p(this)}},C=l+" Iterator",N=!1,k=e.prototype,M=k[m]||k["@@iterator"]||j&&k[j],L=!g&&M||A(j),D="Array"===l&&k.entries||M;if(D&&(T=u(D.call(new e)))!==Object.prototype&&T.next&&(n||u(T)===y||(c?c(T,y):o(T[m])||s(T,m,O)),a(T,C,!0,!0),n&&(v[C]=O)),d&&j===w&&M&&M.name!==w&&(!n&&h?f(k,"name",w):(N=!0,L=function(){return t(M,this)})),j)if(P={values:A(w),keys:x?L:A(b),entries:A(S)},I)for(R in P)(g||N||!(R in k))&&s(k,R,P[R]);else r({target:l,proto:!0,forced:g||N},P);return n&&!I||k[m]===L||s(k,m,L,{name:j}),v[l]=L,P}}function co(){return Ye?Xe:(Ye=1,Xe=function(r,t){return{value:r,done:t}})}function ao(){if(Je)return $e;Je=1;var r=Jt(),t=Qe(),n=Ze(),e=kt(),o=Pt().f,i=uo(),u=co(),c=$(),a=j(),f="Array Iterator",s=e.set,l=e.getterFor(f);$e=i(Array,"Array",function(t,n){s(this,{type:f,target:r(t),index:0,kind:n})},function(){var r=l(this),t=r.target,n=r.index++;if(!t||n>=t.length)return r.target=null,u(void 0,!0);switch(r.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)},"values");var v=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!c&&a&&"values"!==v.name)try{o(v,"name",{value:"values"})}catch(r){}return $e}n.append&&(n.fn.append=n.append),n.on&&(n.fn.on=n.on),n.remove&&(n.fn.remove=n.remove),n.val&&(n.fn.val=n.val),n.click&&(n.fn.click=n.click),n.hide&&(n.fn.hide=n.hide),ao();var fo,so,lo,vo,po,ho,yo,go,mo,bo,wo,So,Oo,Eo,jo,xo,Io,To={};function Po(){if(vo)return lo;vo=1;var r=function(){if(so)return fo;so=1;var r=Yt(),t=I();return fo=function(n){if("Function"===r(n))return t(n)}}(),t=wt(),n=x(),e=r(r.bind);return lo=function(r,o){return t(r),void 0===o?r:n?e(r,o):function(){return r.apply(o,arguments)}},lo}function Ro(){if(ho)return po;ho=1;var r=Yt();return po=Array.isArray||function(t){return"Array"===r(t)}}function Ao(){if(go)return yo;go=1;var r=I(),t=E(),n=L(),e=ne(),o=vt(),i=rr(),u=function(){},c=o("Reflect","construct"),a=/^\s*(?:class|function)\b/,f=r(a.exec),s=!a.test(u),l=function(r){if(!n(r))return!1;try{return c(u,[],r),!0}catch(r){return!1}},v=function(r){if(!n(r))return!1;switch(e(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!f(a,i(r))}catch(r){return!0}};return v.sham=!0,yo=!c||t(function(){var r;return l(l.call)||!l(Object)||!l(function(){r=!0})||r})?v:l}function Co(){if(bo)return mo;bo=1;var r=Ro(),t=Ao(),n=nr(),e=xt()("species"),o=Array;return mo=function(i){var u;return r(i)&&(u=i.constructor,(t(u)&&(u===o||r(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?o:u}}function No(){if(So)return wo;So=1;var r=Co();return wo=function(t,n){return new(r(t))(0===n?0:n)}}function ko(){if(Eo)return Oo;Eo=1;var r=Po(),t=I(),n=$t(),e=R(),o=On(),i=No(),u=t([].push),c=function(t){var c=1===t,a=2===t,f=3===t,s=4===t,l=6===t,v=7===t,p=5===t||l;return function(d,h,y,g){for(var m,b,w=e(d),S=n(w),O=o(S),E=r(h,y),j=0,x=g||i,I=c?x(d,O):a||v?x(d,0):void 0;O>j;j++)if((p||j in S)&&(b=E(m=S[j],j,w),t))if(c)I[j]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return j;case 2:u(I,m)}else switch(t){case 4:return!1;case 7:u(I,m)}return l?-1:f||s?s:I}};return Oo={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}}function Mo(){if(xo)return jo;xo=1;var r=E(),t=xt(),n=ht(),e=t("species");return jo=function(t){return n>=51||!r(function(){var r=[];return(r.constructor={})[e]=function(){return{foo:1}},1!==r[t](Boolean).foo})}}!function(){if(Io)return To;Io=1;var r=Gn(),t=ko().map;r({target:"Array",proto:!0,forced:!Mo()("map")},{map:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})}();var Lo,Do,Fo,zo,_o,Uo={};function Bo(){if(Do)return Lo;Do=1;var r=j(),t=Pt(),n=Rt();return Lo=function(e,o,i){r?t.f(e,o,n(0,i)):e[o]=i}}function Go(){if(zo)return Fo;zo=1;var r=I();return Fo=r([].slice)}!function(){if(_o)return Uo;_o=1;var r=Gn(),t=Ro(),n=Ao(),e=nr(),o=wn(),i=On(),u=Jt(),c=Bo(),a=xt(),f=Mo(),s=Go(),l=f("slice"),v=a("species"),p=Array,d=Math.max;r({target:"Array",proto:!0,forced:!l},{slice:function(r,a){var f,l,h,y=u(this),g=i(y),m=o(r,g),b=o(void 0===a?g:a,g);if(t(y)&&(f=y.constructor,(n(f)&&(f===p||t(f.prototype))||e(f)&&null===(f=f[v]))&&(f=void 0),f===p||void 0===f))return s(y,m,b);for(l=new(void 0===f?p:f)(d(b-m,0)),h=0;m<b;m++,h++)m in y&&c(l,h,y[m]);return l.length=h,l}})}();var Wo,Vo,Ho,qo={};!function(){if(Ho)return qo;Ho=1;var r=te(),t=Zt(),n=function(){if(Vo)return Wo;Vo=1;var r=te(),t=ne();return Wo=r?{}.toString:function(){return"[object "+t(this)+"]"}}();r||t(Object.prototype,"toString",n,{unsafe:!0})}();var Ko,Xo,Yo,$o,Jo,Qo,Zo,ri,ti,ni,ei,oi,ii,ui,ci,ai,fi,si,li,vi,pi,di,hi,yi,gi,mi,bi,wi,Si,Oi,Ei,ji,xi,Ii,Ti,Pi,Ri,Ai,Ci,Ni,ki={};function Mi(){if(Xo)return Ko;Xo=1;var r=J(),t=dt(),n=Yt(),e=function(r){return t.slice(0,r.length)===r};return Ko=e("Bun/")?"BUN":e("Cloudflare-Workers")?"CLOUDFLARE":e("Deno/")?"DENO":e("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}function Li(){if($o)return Yo;$o=1;var r=Mi();return Yo="NODE"===r}function Di(){if(Qo)return Jo;Qo=1;var r=J();return Jo=r}function Fi(){if(ri)return Zo;ri=1;var r=vt(),t=Lt(),n=xt(),e=j(),o=n("species");return Zo=function(n){var i=r(n);e&&i&&!i[o]&&t(i,o,{configurable:!0,get:function(){return this}})}}function zi(){if(ni)return ti;ni=1;var r=pt(),t=TypeError;return ti=function(n,e){if(r(e,n))return n;throw new t("Incorrect invocation")}}function _i(){if(oi)return ei;oi=1;var r=Ao(),t=bt(),n=TypeError;return ei=function(e){if(r(e))return e;throw new n(t(e)+" is not a constructor")}}function Ui(){if(ui)return ii;ui=1;var r=st(),t=_i(),n=T(),e=xt()("species");return ii=function(o,i){var u,c=r(o).constructor;return void 0===c||n(u=r(c)[e])?i:t(u)}}function Bi(){if(ai)return ci;ai=1;var r=x(),t=Function.prototype,n=t.apply,e=t.call;return ci="object"==typeof Reflect&&Reflect.apply||(r?e.bind(n):function(){return e.apply(n,arguments)}),ci}function Gi(){if(si)return fi;si=1;var r=TypeError;return fi=function(t,n){if(t<n)throw new r("Not enough arguments");return t}}function Wi(){if(vi)return li;vi=1;var r=dt();return li=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)}function Vi(){if(di)return pi;di=1;var r,t,n,e,o=J(),i=Bi(),u=Po(),c=L(),a=A(),f=E(),s=Se(),l=Go(),v=ct(),p=Gi(),d=Wi(),h=Li(),y=o.setImmediate,g=o.clearImmediate,m=o.process,b=o.Dispatch,w=o.Function,S=o.MessageChannel,O=o.String,j=0,x={},I="onreadystatechange";f(function(){r=o.location});var T=function(r){if(a(x,r)){var t=x[r];delete x[r],t()}},P=function(r){return function(){T(r)}},R=function(r){T(r.data)},C=function(t){o.postMessage(O(t),r.protocol+"//"+r.host)};return y&&g||(y=function(r){p(arguments.length,1);var n=c(r)?r:w(r),e=l(arguments,1);return x[++j]=function(){i(n,void 0,e)},t(j),j},g=function(r){delete x[r]},h?t=function(r){m.nextTick(P(r))}:b&&b.now?t=function(r){b.now(P(r))}:S&&!d?(e=(n=new S).port2,n.port1.onmessage=R,t=u(e.postMessage,e)):o.addEventListener&&c(o.postMessage)&&!o.importScripts&&r&&"file:"!==r.protocol&&!f(C)?(t=C,o.addEventListener("message",R,!1)):t=I in v("script")?function(r){s.appendChild(v("script"))[I]=function(){s.removeChild(this),T(r)}}:function(r){setTimeout(P(r),0)}),pi={set:y,clear:g}}function Hi(){if(yi)return hi;yi=1;var r=J(),t=j(),n=Object.getOwnPropertyDescriptor;return hi=function(e){if(!t)return r[e];var o=n(r,e);return o&&o.value}}function qi(){if(mi)return gi;mi=1;var r=function(){this.head=null,this.tail=null};return r.prototype={add:function(r){var t={item:r,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var r=this.head;if(r)return null===(this.head=r.next)&&(this.tail=null),r.item}},gi=r}function Ki(){if(ji)return Ei;ji=1;var r,t,n,e,o,i=J(),u=Hi(),c=Po(),a=Vi().set,f=qi(),s=Wi(),l=function(){if(wi)return bi;wi=1;var r=dt();return bi=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble}(),v=function(){if(Oi)return Si;Oi=1;var r=dt();return Si=/web0s(?!.*chrome)/i.test(r)}(),p=Li(),d=i.MutationObserver||i.WebKitMutationObserver,h=i.document,y=i.process,g=i.Promise,m=u("queueMicrotask");if(!m){var b=new f,w=function(){var t,n;for(p&&(t=y.domain)&&t.exit();n=b.get();)try{n()}catch(t){throw b.head&&r(),t}t&&t.enter()};s||p||v||!d||!h?!l&&g&&g.resolve?((e=g.resolve(void 0)).constructor=g,o=c(e.then,e),r=function(){o(w)}):p?r=function(){y.nextTick(w)}:(a=c(a,i),r=function(){a(w)}):(t=!0,n=h.createTextNode(""),new d(w).observe(n,{characterData:!0}),r=function(){n.data=t=!t}),m=function(t){b.head||r(),b.add(t)}}return Ei=m}function Xi(){return Ii||(Ii=1,xi=function(r,t){try{1===arguments.length?console.error(r):console.error(r,t)}catch(r){}}),xi}function Yi(){return Pi?Ti:(Pi=1,Ti=function(r){try{return{error:!1,value:r()}}catch(r){return{error:!0,value:r}}})}function $i(){if(Ai)return Ri;Ai=1;var r=J();return Ri=r.Promise}function Ji(){if(Ni)return Ci;Ni=1;var r=J(),t=$i(),n=L(),e=Bn(),o=rr(),i=xt(),u=Mi(),c=$(),a=ht(),f=t&&t.prototype,s=i("species"),l=!1,v=n(r.PromiseRejectionEvent),p=e("Promise",function(){var r=o(t),n=r!==String(t);if(!n&&66===a)return!0;if(c&&(!f.catch||!f.finally))return!0;if(!a||a<51||!/native code/.test(r)){var e=new t(function(r){r(1)}),i=function(r){r(function(){},function(){})};if((e.constructor={})[s]=i,!(l=e.then(function(){})instanceof i))return!0}return!(n||"BROWSER"!==u&&"DENO"!==u||v)});return Ci={CONSTRUCTOR:p,REJECTION_EVENT:v,SUBCLASSING:l}}var Qi,Zi,ru={};function tu(){if(Qi)return ru;Qi=1;var r=wt(),t=TypeError,n=function(n){var e,o;this.promise=new n(function(r,n){if(void 0!==e||void 0!==o)throw new t("Bad Promise constructor");e=r,o=n}),this.resolve=r(e),this.reject=r(o)};return ru.f=function(r){return new n(r)},ru}var nu,eu,ou,iu,uu,cu,au,fu,su,lu,vu,pu,du,hu,yu,gu={};function mu(){if(eu)return nu;eu=1;var r=xt(),t=Ze(),n=r("iterator"),e=Array.prototype;return nu=function(r){return void 0!==r&&(t.Array===r||e[n]===r)}}function bu(){if(iu)return ou;iu=1;var r=ne(),t=St(),n=T(),e=Ze(),o=xt()("iterator");return ou=function(i){if(!n(i))return t(i,o)||t(i,"@@iterator")||e[r(i)]}}function wu(){if(cu)return uu;cu=1;var r=lt(),t=wt(),n=st(),e=bt(),o=bu(),i=TypeError;return uu=function(u,c){var a=arguments.length<2?o(u):c;if(t(a))return n(r(a,u));throw new i(e(u)+" is not iterable")},uu}function Su(){if(fu)return au;fu=1;var r=lt(),t=st(),n=St();return au=function(e,o,i){var u,c;t(e);try{if(!(u=n(e,"return"))){if("throw"===o)throw i;return i}u=r(u,e)}catch(r){c=!0,u=r}if("throw"===o)throw i;if(c)throw u;return t(u),i}}function Ou(){if(lu)return su;lu=1;var r=Po(),t=lt(),n=st(),e=bt(),o=mu(),i=On(),u=pt(),c=wu(),a=bu(),f=Su(),s=TypeError,l=function(r,t){this.stopped=r,this.result=t},v=l.prototype;return su=function(p,d,h){var y,g,m,b,w,S,O,E=h&&h.that,j=!(!h||!h.AS_ENTRIES),x=!(!h||!h.IS_RECORD),I=!(!h||!h.IS_ITERATOR),T=!(!h||!h.INTERRUPTED),P=r(d,E),R=function(r){return y&&f(y,"normal"),new l(!0,r)},A=function(r){return j?(n(r),T?P(r[0],r[1],R):P(r[0],r[1])):T?P(r,R):P(r)};if(x)y=p.iterator;else if(I)y=p;else{if(!(g=a(p)))throw new s(e(p)+" is not iterable");if(o(g)){for(m=0,b=i(p);b>m;m++)if((w=A(p[m]))&&u(v,w))return w;return new l(!1)}y=c(p,g)}for(S=x?p.next:y.next;!(O=t(S,y)).done;){try{w=A(O.value)}catch(r){f(y,"throw",r)}if("object"==typeof w&&w&&u(v,w))return w}return new l(!1)}}function Eu(){if(pu)return vu;pu=1;var r=xt()("iterator"),t=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){t=!0}};e[r]=function(){return this},Array.from(e,function(){throw 2})}catch(r){}return vu=function(n,e){try{if(!e&&!t)return!1}catch(r){return!1}var o=!1;try{var i={};i[r]=function(){return{next:function(){return{done:o=!0}}}},n(i)}catch(r){}return o}}function ju(){if(hu)return du;hu=1;var r=$i(),t=Eu(),n=Ji().CONSTRUCTOR;return du=n||!t(function(t){r.all(t).then(void 0,function(){})})}var xu,Iu={};var Tu,Pu={};var Ru,Au={};var Cu,Nu,ku,Mu,Lu={};function Du(){if(Nu)return Cu;Nu=1;var r=st(),t=nr(),n=tu();return Cu=function(e,o){if(r(e),t(o)&&o.constructor===e)return o;var i=n.f(e);return(0,i.resolve)(o),i.promise}}Mu||(Mu=1,function(){if(Zi)return ki;Zi=1;var r,t,n,e,o=Gn(),i=$(),u=Li(),c=J(),a=Di(),f=lt(),s=Zt(),l=io(),v=no(),p=Fi(),d=wt(),h=L(),y=nr(),g=zi(),m=Ui(),b=Vi().set,w=Ki(),S=Xi(),O=Yi(),E=qi(),j=kt(),x=$i(),I=Ji(),T=tu(),P="Promise",R=I.CONSTRUCTOR,A=I.REJECTION_EVENT,C=I.SUBCLASSING,N=j.getterFor(P),k=j.set,M=x&&x.prototype,D=x,F=M,z=c.TypeError,_=c.document,U=c.process,B=T.f,G=B,W=!!(_&&_.createEvent&&c.dispatchEvent),V="unhandledrejection",H=function(r){var t;return!(!y(r)||!h(t=r.then))&&t},q=function(r,t){var n,e,o,i=t.value,u=1===t.state,c=u?r.ok:r.fail,a=r.resolve,s=r.reject,l=r.domain;try{c?(u||(2===t.rejection&&Z(t),t.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===r.promise?s(new z("Promise-chain cycle")):(e=H(n))?f(e,n,a,s):a(n)):s(i)}catch(r){l&&!o&&l.exit(),s(r)}},K=function(r,t){r.notified||(r.notified=!0,w(function(){for(var n,e=r.reactions;n=e.get();)q(n,r);r.notified=!1,t&&!r.rejection&&Y(r)}))},X=function(r,t,n){var e,o;W?((e=_.createEvent("Event")).promise=t,e.reason=n,e.initEvent(r,!1,!0),c.dispatchEvent(e)):e={promise:t,reason:n},!A&&(o=c["on"+r])?o(e):r===V&&S("Unhandled promise rejection",n)},Y=function(r){f(b,c,function(){var t,n=r.facade,e=r.value;if(Q(r)&&(t=O(function(){u?U.emit("unhandledRejection",e,n):X(V,n,e)}),r.rejection=u||Q(r)?2:1,t.error))throw t.value})},Q=function(r){return 1!==r.rejection&&!r.parent},Z=function(r){f(b,c,function(){var t=r.facade;u?U.emit("rejectionHandled",t):X("rejectionhandled",t,r.value)})},rr=function(r,t,n){return function(e){r(t,e,n)}},tr=function(r,t,n){r.done||(r.done=!0,n&&(r=n),r.value=t,r.state=2,K(r,!0))},er=function(r,t,n){if(!r.done){r.done=!0,n&&(r=n);try{if(r.facade===t)throw new z("Promise can't be resolved itself");var e=H(t);e?w(function(){var n={done:!1};try{f(e,t,rr(er,n,r),rr(tr,n,r))}catch(t){tr(n,t,r)}}):(r.value=t,r.state=1,K(r,!1))}catch(t){tr({done:!1},t,r)}}};if(R&&(F=(D=function(t){g(this,F),d(t),f(r,this);var n=N(this);try{t(rr(er,n),rr(tr,n))}catch(r){tr(n,r)}}).prototype,(r=function(r){k(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:0,value:null})}).prototype=s(F,"then",function(r,t){var n=N(this),e=B(m(this,D));return n.parent=!0,e.ok=!h(r)||r,e.fail=h(t)&&t,e.domain=u?U.domain:void 0,0===n.state?n.reactions.add(e):w(function(){q(e,n)}),e.promise}),t=function(){var t=new r,n=N(t);this.promise=t,this.resolve=rr(er,n),this.reject=rr(tr,n)},T.f=B=function(r){return r===D||r===n?new t(r):G(r)},!i&&h(x)&&M!==Object.prototype)){e=M.then,C||s(M,"then",function(r,t){var n=this;return new D(function(r,t){f(e,n,r,t)}).then(r,t)},{unsafe:!0});try{delete M.constructor}catch(r){}l&&l(M,F)}o({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:D}),n=a.Promise,v(D,P,!1,!0),p(P)}(),function(){if(yu)return gu;yu=1;var r=Gn(),t=lt(),n=wt(),e=tu(),o=Yi(),i=Ou();r({target:"Promise",stat:!0,forced:ju()},{all:function(r){var u=this,c=e.f(u),a=c.resolve,f=c.reject,s=o(function(){var e=n(u.resolve),o=[],c=0,s=1;i(r,function(r){var n=c++,i=!1;s++,t(e,u,r).then(function(r){i||(i=!0,o[n]=r,--s||a(o))},f)}),--s||a(o)});return s.error&&f(s.value),c.promise}})}(),function(){if(xu)return Iu;xu=1;var r=Gn(),t=$(),n=Ji().CONSTRUCTOR,e=$i(),o=vt(),i=L(),u=Zt(),c=e&&e.prototype;if(r({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(r){return this.then(void 0,r)}}),!t&&i(e)){var a=o("Promise").prototype.catch;c.catch!==a&&u(c,"catch",a,{unsafe:!0})}}(),function(){if(Tu)return Pu;Tu=1;var r=Gn(),t=lt(),n=wt(),e=tu(),o=Yi(),i=Ou();r({target:"Promise",stat:!0,forced:ju()},{race:function(r){var u=this,c=e.f(u),a=c.reject,f=o(function(){var e=n(u.resolve);i(r,function(r){t(e,u,r).then(c.resolve,a)})});return f.error&&a(f.value),c.promise}})}(),function(){if(Ru)return Au;Ru=1;var r=Gn(),t=tu();r({target:"Promise",stat:!0,forced:Ji().CONSTRUCTOR},{reject:function(r){var n=t.f(this);return(0,n.reject)(r),n.promise}})}(),function(){if(ku)return Lu;ku=1;var r=Gn(),t=vt(),n=$(),e=$i(),o=Ji().CONSTRUCTOR,i=Du(),u=t("Promise"),c=n&&!o;r({target:"Promise",stat:!0,forced:n||o},{resolve:function(r){return i(c&&this===u?e:this,r)}})}());var Fu,zu,_u,Uu,Bu,Gu={};function Wu(){if(Uu)return _u;Uu=1;var r=lt(),t=A(),n=pt(),e=function(){if(zu)return Fu;zu=1;var r=J(),t=E(),n=r.RegExp,e=!t(function(){var r=!0;try{n(".","d")}catch(t){r=!1}var t={},e="",o=r?"dgimsy":"gimsy",i=function(r,n){Object.defineProperty(t,r,{get:function(){return e+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var c in r&&(u.hasIndices="d"),u)i(c,u[c]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(t)!==o||e!==o});return Fu={correct:e}}(),o=oe(),i=RegExp.prototype;return _u=e.correct?function(r){return r.flags}:function(u){return e.correct||!n(i,u)||t(u,"flags")?u.flags:r(o,u)}}!function(){if(Bu)return Gu;Bu=1;var r=C().PROPER,t=Zt(),n=st(),e=ee(),o=E(),i=Wu(),u="toString",c=RegExp.prototype,a=c[u],f=o(function(){return"/a/b"!==a.call({source:"a",flags:"b"})}),s=r&&a.name!==u;(f||s)&&t(c,u,function(){var r=n(this);return"/"+e(r.source)+"/"+e(i(r))},{unsafe:!0})}();var Vu,Hu,qu,Ku={};!function(){if(qu)return Ku;qu=1;var r=function(){if(Hu)return Vu;Hu=1;var r=I(),t=bn(),n=ee(),e=P(),o=r("".charAt),i=r("".charCodeAt),u=r("".slice),c=function(r){return function(c,a){var f,s,l=n(e(c)),v=t(a),p=l.length;return v<0||v>=p?r?"":void 0:(f=i(l,v))<55296||f>56319||v+1===p||(s=i(l,v+1))<56320||s>57343?r?o(l,v):f:r?u(l,v,v+2):s-56320+(f-55296<<10)+65536}};return Vu={codeAt:c(!1),charAt:c(!0)}}().charAt,t=ee(),n=kt(),e=uo(),o=co(),i="String Iterator",u=n.set,c=n.getterFor(i);e(String,"String",function(r){u(this,{type:i,string:t(r),index:0})},function(){var t,n=c(this),e=n.string,i=n.index;return i>=e.length?o(void 0,!0):(t=r(e,i),n.index+=t.length,o(t,!1))})}();var Xu,Yu,$u,Ju,Qu={};function Zu(){if(Yu)return Xu;Yu=1;var r=E();return Xu=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})}function rc(){if(Ju)return $u;Ju=1;var r=Zt();return $u=function(t,n,e){for(var o in n)r(t,o,n[o],e);return t}}var tc,nc,ec,oc,ic,uc,cc,ac,fc,sc,lc,vc,pc,dc,hc={exports:{}},yc={};function gc(){if(tc)return yc;tc=1;var r=Yt(),t=Jt(),n=xn().f,e=Go(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return yc.f=function(i){return o&&"Window"===r(i)?function(r){try{return n(r)}catch(r){return e(o)}}(i):n(t(i))},yc}function mc(){if(ic)return oc;ic=1;var r=E(),t=nr(),n=Yt(),e=function(){if(ec)return nc;ec=1;var r=E();return nc=r(function(){if("function"==typeof ArrayBuffer){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}})}(),o=Object.isExtensible,i=r(function(){});return oc=i||e?function(r){return!!t(r)&&((!e||"ArrayBuffer"!==n(r))&&(!o||o(r)))}:o}function bc(){if(uc)return hc.exports;uc=1;var r=Gn(),t=I(),n=Nt(),e=nr(),o=A(),i=Pt().f,u=xn(),c=gc(),a=mc(),f=jt(),s=Zu(),l=!1,v=f("meta"),p=0,d=function(r){i(r,v,{value:{objectID:"O"+p++,weakData:{}}})},h=hc.exports={enable:function(){h.enable=function(){},l=!0;var n=u.f,e=t([].splice),o={};o[v]=1,n(o).length&&(u.f=function(r){for(var t=n(r),o=0,i=t.length;o<i;o++)if(t[o]===v){e(t,o,1);break}return t},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(r,t){if(!e(r))return"symbol"==typeof r?r:("string"==typeof r?"S":"P")+r;if(!o(r,v)){if(!a(r))return"F";if(!t)return"E";d(r)}return r[v].objectID},getWeakData:function(r,t){if(!o(r,v)){if(!a(r))return!0;if(!t)return!1;d(r)}return r[v].weakData},onFreeze:function(r){return s&&l&&a(r)&&!o(r,v)&&d(r),r}};return n[v]=!0,hc.exports}function wc(){if(ac)return cc;ac=1;var r=L(),t=nr(),n=io();return cc=function(e,o,i){var u,c;return n&&r(u=o.constructor)&&u!==i&&t(c=u.prototype)&&c!==i.prototype&&n(e,c),e}}function Sc(){if(sc)return fc;sc=1;var r=Gn(),t=J(),n=I(),e=Bn(),o=Zt(),i=bc(),u=Ou(),c=zi(),a=L(),f=T(),s=nr(),l=E(),v=Eu(),p=no(),d=wc();return fc=function(h,y,g){var m=-1!==h.indexOf("Map"),b=-1!==h.indexOf("Weak"),w=m?"set":"add",S=t[h],O=S&&S.prototype,E=S,j={},x=function(r){var t=n(O[r]);o(O,r,"add"===r?function(r){return t(this,0===r?0:r),this}:"delete"===r?function(r){return!(b&&!s(r))&&t(this,0===r?0:r)}:"get"===r?function(r){return b&&!s(r)?void 0:t(this,0===r?0:r)}:"has"===r?function(r){return!(b&&!s(r))&&t(this,0===r?0:r)}:function(r,n){return t(this,0===r?0:r,n),this})};if(e(h,!a(S)||!(b||O.forEach&&!l(function(){(new S).entries().next()}))))E=g.getConstructor(y,h,m,w),i.enable();else if(e(h,!0)){var I=new E,T=I[w](b?{}:-0,1)!==I,P=l(function(){I.has(1)}),R=v(function(r){new S(r)}),A=!b&&l(function(){for(var r=new S,t=5;t--;)r[w](t,t);return!r.has(-0)});R||((E=y(function(r,t){c(r,O);var n=d(new S,r,E);return f(t)||u(t,n[w],{that:n,AS_ENTRIES:m}),n})).prototype=O,O.constructor=E),(P||A)&&(x("delete"),x("has"),m&&x("get")),(A||T)&&x(w),b&&O.clear&&delete O.clear}return j[h]=E,r({global:!0,constructor:!0,forced:E!==S},j),p(E,h),b||g.setStrong(E,h,m),E}}function Oc(){if(vc)return lc;vc=1;var r=I(),t=rc(),n=bc().getWeakData,e=zi(),o=st(),i=T(),u=nr(),c=Ou(),a=ko(),f=A(),s=kt(),l=s.set,v=s.getterFor,p=a.find,d=a.findIndex,h=r([].splice),y=0,g=function(r){return r.frozen||(r.frozen=new m)},m=function(){this.entries=[]},b=function(r,t){return p(r.entries,function(r){return r[0]===t})};return m.prototype={get:function(r){var t=b(this,r);if(t)return t[1]},has:function(r){return!!b(this,r)},set:function(r,t){var n=b(this,r);n?n[1]=t:this.entries.push([r,t])},delete:function(r){var t=d(this.entries,function(t){return t[0]===r});return~t&&h(this.entries,t,1),!!~t}},lc={getConstructor:function(r,a,s,p){var d=r(function(r,t){e(r,h),l(r,{type:a,id:y++,frozen:null}),i(t)||c(t,r[p],{that:r,AS_ENTRIES:s})}),h=d.prototype,m=v(a),b=function(r,t,e){var i=m(r),u=n(o(t),!0);return!0===u?g(i).set(t,e):u[i.id]=e,r};return t(h,{delete:function(r){var t=m(this);if(!u(r))return!1;var e=n(r);return!0===e?g(t).delete(r):e&&f(e,t.id)&&delete e[t.id]},has:function(r){var t=m(this);if(!u(r))return!1;var e=n(r);return!0===e?g(t).has(r):e&&f(e,t.id)}}),t(h,s?{get:function(r){var t=m(this);if(u(r)){var e=n(r);if(!0===e)return g(t).get(r);if(e)return e[t.id]}},set:function(r,t){return b(this,r,t)}}:{add:function(r){return b(this,r,!0)}}),d}}}dc||(dc=1,function(){if(pc)return Qu;pc=1;var r,t=Zu(),n=J(),e=I(),o=rc(),i=bc(),u=Sc(),c=Oc(),a=nr(),f=kt().enforce,s=E(),l=tr(),v=Object,p=Array.isArray,d=v.isExtensible,h=v.isFrozen,y=v.isSealed,g=v.freeze,m=v.seal,b=!n.ActiveXObject&&"ActiveXObject"in n,w=function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},S=u("WeakMap",w,c),O=S.prototype,j=e(O.set);if(l)if(b){r=c.getConstructor(w,"WeakMap",!0),i.enable();var x=e(O.delete),T=e(O.has),P=e(O.get);o(O,{delete:function(t){if(a(t)&&!d(t)){var n=f(this);return n.frozen||(n.frozen=new r),x(this,t)||n.frozen.delete(t)}return x(this,t)},has:function(t){if(a(t)&&!d(t)){var n=f(this);return n.frozen||(n.frozen=new r),T(this,t)||n.frozen.has(t)}return T(this,t)},get:function(t){if(a(t)&&!d(t)){var n=f(this);return n.frozen||(n.frozen=new r),T(this,t)?P(this,t):n.frozen.get(t)}return P(this,t)},set:function(t,n){if(a(t)&&!d(t)){var e=f(this);e.frozen||(e.frozen=new r),T(this,t)?j(this,t,n):e.frozen.set(t,n)}else j(this,t,n);return this}})}else t&&s(function(){var r=g([]);return j(new S,r,1),!h(r)})&&o(O,{set:function(r,t){var n;return p(r)&&(h(r)?n=g:y(r)&&(n=m)),j(this,r,t),n&&n(r),this}})}());var Ec,jc,xc,Ic,Tc,Pc,Rc,Ac={};function Cc(){return jc?Ec:(jc=1,Ec={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})}function Nc(){if(Ic)return xc;Ic=1;var r=ct()("span").classList,t=r&&r.constructor&&r.constructor.prototype;return xc=t===Object.prototype?void 0:t}!function(){if(Rc)return Ac;Rc=1;var r=J(),t=Cc(),n=Nc(),e=function(){if(Pc)return Tc;Pc=1;var r=ko().forEach,t=Wn()("forEach");return Tc=t?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)},Tc}(),o=At(),i=function(r){if(r&&r.forEach!==e)try{o(r,"forEach",e)}catch(t){r.forEach=e}};for(var u in t)t[u]&&i(r[u]&&r[u].prototype);i(n)}();var kc,Mc={};!function(){if(kc)return Mc;kc=1;var r=J(),t=Cc(),n=Nc(),e=ao(),o=At(),i=no(),u=xt()("iterator"),c=e.values,a=function(r,n){if(r){if(r[u]!==c)try{o(r,u,c)}catch(t){r[u]=c}if(i(r,n,!0),t[n])for(var a in e)if(r[a]!==e[a])try{o(r,a,e[a])}catch(t){r[a]=e[a]}}};for(var f in t)a(r[f]&&r[f].prototype,f);a(n,"DOMTokenList")}();var Lc=function(){return Lc=Object.assign||function(r){for(var t,n=1,e=arguments.length;n<e;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},Lc.apply(this,arguments)};function Dc(r,t,n,e){return new(n||(n=Promise))(function(o,i){function u(r){try{a(e.next(r))}catch(r){i(r)}}function c(r){try{a(e.throw(r))}catch(r){i(r)}}function a(r){var t;r.done?o(r.value):(t=r.value,t instanceof n?t:new n(function(r){r(t)})).then(u,c)}a((e=e.apply(r,t||[])).next())})}function Fc(r,t){var n,e,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(a){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(i=0)),i;)try{if(n=1,e&&(o=2&c[0]?e.return:c[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,c[1])).done)return o;switch(e=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,e=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(r,i)}catch(r){c=[6,r],e=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}}function zc(r){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&r[t],e=0;if(n)return n.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _c(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=r[Symbol.asyncIterator];return n?n.call(r):(r=zc(r),t={},e("next"),e("throw"),e("return"),t[Symbol.asyncIterator]=function(){return this},t);function e(n){t[n]=r[n]&&function(t){return new Promise(function(e,o){(function(r,t,n,e){Promise.resolve(e).then(function(t){r({value:t,done:n})},t)})(e,o,(t=r[n](t)).done,t.value)})}}}"function"==typeof SuppressedError&&SuppressedError;var Uc=new WeakMap;function Bc(r){return r.getMenuConfig("uploadImage")}function Gc(r,n){return Dc(this,void 0,void 0,function(){return Fc(this,function(e){return[2,new Promise(function(e){var o=new FileReader;o.readAsDataURL(n),o.onload=function(){var i=o.result;if(i){var u=i.toString(),c=0===u.indexOf("data:image")?"":u;t.insertImageNode(r,u,n.name,c),e("ok")}}})]})})}function Wc(n,e){return Dc(this,void 0,void 0,function(){var o,i;return Fc(this,function(u){switch(u.label){case 0:return o=function(n){var e=Uc.get(n);if(null!=e)return e;var o=Bc(n),i=o.onSuccess,u=o.onProgress,c=o.onFailed,a=o.customInsert,f=o.onError;return e=r.createUploader(Lc(Lc({},o),{onProgress:function(r){n.showProgressBar(r),u&&u(r)},onSuccess:function(r,e){if(a)return a(e,function(r,e,o){return t.insertImageNode(n,r,e,o)}),void i(r,e);var o=e.errno,u=void 0===o?1:o,f=e.data,s=void 0===f?{}:f;if(0===u){if(Array.isArray(s))s.forEach(function(r){var e=r.url,o=void 0===e?"":e,i=r.alt,u=void 0===i?"":i,c=r.href,a=void 0===c?"":c;t.insertImageNode(n,o,u,a)});else{var l=s.url,v=void 0===l?"":l,p=s.alt,d=void 0===p?"":p,h=s.href,y=void 0===h?"":h;t.insertImageNode(n,v,d,y)}i(r,e)}else c(r,e)},onError:function(r,t,n){f(r,t,n)}})),Uc.set(n,e),e}(n),i=e.map(function(r){return{name:r.name,type:r.type,size:r.size,data:r}}),o.addFiles(i),[4,o.upload()];case 1:return u.sent(),[2]}})})}function Vc(r,n){return Dc(this,void 0,void 0,function(){var e,o,i,u,c,a,f,s,l,v,p,d,h,y,g;return Fc(this,function(m){switch(m.label){case 0:if(null==n)return[2];e=Array.prototype.slice.call(n),o=Bc(r),i=o.customUpload,u=o.base64LimitSize,c=[],m.label=1;case 1:m.trys.push([1,10,11,16]),a=!0,f=_c(e),m.label=2;case 2:return[4,f.next()];case 3:return s=m.sent(),(d=s.done)?[3,9]:(g=s.value,a=!1,v=(l=g).size,u&&v<=u?[4,Gc(r,l)]:[3,5]);case 4:return m.sent(),[3,8];case 5:return i?[4,i(l,function(n,e,o){return t.insertImageNode(r,n,e,o)},r)]:[3,7];case 6:return m.sent(),[3,8];case 7:c.push(l),m.label=8;case 8:return a=!0,[3,2];case 9:return[3,16];case 10:return p=m.sent(),h={error:p},[3,16];case 11:return m.trys.push([11,,14,15]),a||d||!(y=f.return)?[3,13]:[4,y.call(f)];case 12:m.sent(),m.label=13;case 13:return[3,15];case 14:if(h)throw h.error;return[7];case 15:return[7];case 16:return c.length>0?[4,Wc(r,c)]:[3,18];case 17:m.sent(),m.label=18;case 18:return[2]}})})}var Hc=function(){function e(){this.title=r.t("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(r){return""},e.prototype.isActive=function(r){return!1},e.prototype.isDisabled=function(r){return t.isInsertImageMenuDisabled(r)},e.prototype.getMenuConfig=function(r){return r.getMenuConfig("uploadImage")},e.prototype.exec=function(r,e){var o=this.getMenuConfig(r),i=o.allowedFileTypes,u=void 0===i?[]:i,c=o.customBrowseAndUpload;if(c)c(function(n,e,o){return t.insertImageNode(r,n,e,o)});else{var a="";u.length>0&&(a='accept="'.concat(u.join(", "),'"'));var f=n("body"),s=n('<input type="file" '.concat(a," multiple/>"));s.hide(),f.append(s),s.click(),s.on("change",function(){var t=s[0].files;Vc(r,t)})}},e}();return{menus:[{key:"uploadImage",factory:function(){return new Hc},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(r){return r},onProgress:function(r){},onSuccess:function(r,t){},onFailed:function(r,t){console.error("'".concat(r.name,"' upload failed"),t)},onError:function(r,t,n){console.error("'".concat(r.name,"' upload error"),n)},base64LimitSize:0}}],editorPlugin:function(r){var n=r.insertData,e=r;return e.insertData=function(o){if(t.isInsertImageMenuDisabled(e))n(o);else if(o.getData("text/plain"))n(o);else{var i=o.files;if(i.length<=0)n(o);else Array.prototype.slice.call(i).some(function(r){return"image"===function(r,t){var n="function"==typeof Symbol&&r[Symbol.iterator];if(!n)return r;var e,o,i=n.call(r),u=[];try{for(;(void 0===t||t-- >0)&&!(e=i.next()).done;)u.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}(r.type.split("/"),1)[0]})?Vc(r,i):n(o)}},e}}});
2
2
  //# sourceMappingURL=index.js.map