MediaWiki:Gadget-Wikiplus.js:修订间差异
外观
第1行: | 第1行: | ||
/ | |||
//# sourceMappingURL=Main.js.map | //# sourceMappingURL=Main.js.map |
2025年5月31日 (六) 00:44的版本
/*! Wikiplus - 4.1.0 */!function(){"use strict";var t={34:function(t,e,r){var n=r(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},81:function(t,e,r){var n=r(9565),i=r(9306),o=r(8551),a=r(6823),u=r(851),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?u(t):e;if(i(r))return o(n(r,t));throw new c(a(t)+" is not iterable")}},113:function(t,e,r){var n=r(6518),i=r(9213).find,o=r(6469),a="find",u=!0;a in[]&&Array(1)[a]((function(){u=!1})),n({target:"Array",proto:!0,forced:u},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},235:function(t,e,r){var n=r(9213).forEach,i=r(4598)("forEach");t.exports=i?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},280:function(t,e,r){var n=r(6518),i=r(7751),o=r(6395),a=r(550),u=r(916).CONSTRUCTOR,c=r(3438),s=i("Promise"),f=o&&!u;n({target:"Promise",stat:!0,forced:o||u},{resolve:function(t){return c(f&&this===s?a:this,t)}})},283:function(t,e,r){var n=r(9504),i=r(9039),o=r(4901),a=r(9297),u=r(3724),c=r(350).CONFIGURABLE,s=r(3706),f=r(1181),l=f.enforce,p=f.get,h=String,d=Object.defineProperty,v=n("".slice),g=n("".replace),y=n([].join),m=u&&!i((function(){return 8!==d((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,r){"Symbol("===v(h(e),0,7)&&(e="["+g(h(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(u?d(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&a(r,"arity")&&t.length!==r.arity&&d(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?u&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=l(t);return a(n,"source")||(n.source=y(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return o(this)&&p(this).source||s(this)}),"toString")},298:function(t,e,r){var n=r(2195),i=r(5397),o=r(8480).f,a=r(7680),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"Window"===n(t)?function(t){try{return o(t)}catch(t){return a(u)}}(t):o(i(t))}},350:function(t,e,r){var n=r(3724),i=r(9297),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,u=i(o,"name"),c=u&&"something"===function(){}.name,s=u&&(!n||n&&a(o,"name").configurable);t.exports={EXISTS:u,PROPER:c,CONFIGURABLE:s}},397:function(t,e,r){var n=r(7751);t.exports=n("document","documentElement")},421:function(t){t.exports={}},436:function(t,e,r){var n,i,o,a=r(6518),u=r(6395),c=r(6193),s=r(4576),f=r(9565),l=r(6840),p=r(2967),h=r(687),d=r(7633),v=r(9306),g=r(4901),y=r(34),m=r(679),b=r(2293),w=r(9225).set,x=r(1955),k=r(3138),A=r(1103),S=r(8265),_=r(1181),I=r(550),O=r(916),E=r(6043),P="Promise",C=O.CONSTRUCTOR,B=O.REJECTION_EVENT,j=O.SUBCLASSING,T=_.getterFor(P),W=_.set,$=I&&I.prototype,N=I,R=$,F=s.TypeError,L=s.document,M=s.process,U=E.f,D=U,G=!!(L&&L.createEvent&&s.dispatchEvent),Q="unhandledrejection",q=function(t){var e;return!(!y(t)||!g(e=t.then))&&e},z=function(t,e){var r,n,i,o=e.value,a=1===e.state,u=a?t.ok:t.fail,c=t.resolve,s=t.reject,l=t.domain;try{u?(a||(2===e.rejection&&X(e),e.rejection=1),!0===u?r=o:(l&&l.enter(),r=u(o),l&&(l.exit(),i=!0)),r===t.promise?s(new F("Promise-chain cycle")):(n=q(r))?f(n,r,c,s):c(r)):s(o)}catch(t){l&&!i&&l.exit(),s(t)}},Y=function(t,e){t.notified||(t.notified=!0,x((function(){for(var r,n=t.reactions;r=n.get();)z(r,t);t.notified=!1,e&&!t.rejection&&J(t)})))},H=function(t,e,r){var n,i;G?((n=L.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),s.dispatchEvent(n)):n={promise:e,reason:r},!B&&(i=s["on"+t])?i(n):t===Q&&k("Unhandled promise rejection",r)},J=function(t){f(w,s,(function(){var e,r=t.facade,n=t.value;if(V(t)&&(e=A((function(){c?M.emit("unhandledRejection",n,r):H(Q,r,n)})),t.rejection=c||V(t)?2:1,e.error))throw e.value}))},V=function(t){return 1!==t.rejection&&!t.parent},X=function(t){f(w,s,(function(){var e=t.facade;c?M.emit("rejectionHandled",e):H("rejectionhandled",e,t.value)}))},K=function(t,e,r){return function(n){t(e,n,r)}},Z=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Y(t,!0))},tt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new F("Promise can't be resolved itself");var n=q(e);n?x((function(){var r={done:!1};try{f(n,e,K(tt,r,t),K(Z,r,t))}catch(e){Z(r,e,t)}})):(t.value=e,t.state=1,Y(t,!1))}catch(e){Z({done:!1},e,t)}}};if(C&&(R=(N=function(t){m(this,R),v(t),f(n,this);var e=T(this);try{t(K(tt,e),K(Z,e))}catch(t){Z(e,t)}}).prototype,(n=function(t){W(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:null})}).prototype=l(R,"then",(function(t,e){var r=T(this),n=U(b(this,N));return r.parent=!0,n.ok=!g(t)||t,n.fail=g(e)&&e,n.domain=c?M.domain:void 0,0===r.state?r.reactions.add(n):x((function(){z(n,r)})),n.promise})),i=function(){var t=new n,e=T(t);this.promise=t,this.resolve=K(tt,e),this.reject=K(Z,e)},E.f=U=function(t){return t===N||undefined===t?new i(t):D(t)},!u&&g(I)&&$!==Object.prototype)){o=$.then,j||l($,"then",(function(t,e){var r=this;return new N((function(t,e){f(o,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete $.constructor}catch(t){}p&&p($,R)}a({global:!0,constructor:!0,wrap:!0,forced:C},{Promise:N}),h(N,P,!1,!0),d(P)},511:function(t,e,r){var n=r(9167),i=r(9297),o=r(1951),a=r(4913).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},537:function(t,e,r){var n=r(550),i=r(4428),o=r(916).CONSTRUCTOR;t.exports=o||!i((function(t){n.all(t).then(void 0,(function(){}))}))},540:function(t){t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},550:function(t,e,r){var n=r(4576);t.exports=n.Promise},566:function(t,e,r){var n=r(9504),i=r(9306),o=r(34),a=r(9297),u=r(7680),c=r(616),s=Function,f=n([].concat),l=n([].join),p={};t.exports=c?s.bind:function(t){var e=i(this),r=e.prototype,n=u(arguments,1),c=function(){var r=f(n,u(arguments));return this instanceof c?function(t,e,r){if(!a(p,e)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";p[e]=s("C,a","return new C("+l(n,",")+")")}return p[e](t,r)}(e,r.length,r):e.apply(t,r)};return o(r)&&(c.prototype=r),c}},597:function(t,e,r){var n=r(9039),i=r(8227),o=r(9519),a=i("species");t.exports=function(t){return o>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},616:function(t,e,r){var n=r(9039);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},655:function(t,e,r){var n=r(6955),i=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},679:function(t,e,r){var n=r(1625),i=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new i("Incorrect invocation")}},687:function(t,e,r){var n=r(4913).f,i=r(9297),o=r(8227)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!i(t,o)&&n(t,o,{configurable:!0,value:e})}},706:function(t,e,r){var n=r(350).PROPER,i=r(9039),o=r(7452);t.exports=function(t){return i((function(){return!!o[t]()||" "!==" "[t]()||n&&o[t].name!==t}))}},741:function(t){var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},757:function(t,e,r){var n=r(7751),i=r(4901),o=r(1625),a=r(7040),u=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return i(e)&&o(e.prototype,u(t))}},788:function(t,e,r){var n=r(34),i=r(2195),o=r(8227)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"===i(t))}},825:function(t,e,r){var n=r(6518),i=r(7751),o=r(8745),a=r(566),u=r(5548),c=r(8551),s=r(34),f=r(2360),l=r(9039),p=i("Reflect","construct"),h=Object.prototype,d=[].push,v=l((function(){function t(){}return!(p((function(){}),[],t)instanceof t)})),g=!l((function(){p((function(){}))})),y=v||g;n({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(t,e){u(t),c(e);var r=arguments.length<3?t:u(arguments[2]);if(g&&!v)return p(t,e,r);if(t===r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return o(d,n,e),new(o(a,t,n))}var i=r.prototype,l=f(s(i)?i:h),y=o(t,l,e);return s(y)?y:l}})},851:function(t,e,r){var n=r(6955),i=r(5966),o=r(4117),a=r(6269),u=r(8227)("iterator");t.exports=function(t){if(!o(t))return i(t,u)||i(t,"@@iterator")||a[n(t)]}},875:function(t,e,r){var n=r(6518),i=r(9039),o=r(8981),a=r(2787),u=r(2211);n({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!u},{getPrototypeOf:function(t){return a(o(t))}})},916:function(t,e,r){var n=r(4576),i=r(550),o=r(4901),a=r(2796),u=r(3706),c=r(8227),s=r(4215),f=r(6395),l=r(9519),p=i&&i.prototype,h=c("species"),d=!1,v=o(n.PromiseRejectionEvent),g=a("Promise",(function(){var t=u(i),e=t!==String(i);if(!e&&66===l)return!0;if(f&&(!p.catch||!p.finally))return!0;if(!l||l<51||!/native code/.test(t)){var r=new i((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(d=r.then((function(){}))instanceof n))return!0}return!(e||"BROWSER"!==s&&"DENO"!==s||v)}));t.exports={CONSTRUCTOR:g,REJECTION_EVENT:v,SUBCLASSING:d}},1034:function(t,e,r){var n=r(9565),i=r(9297),o=r(1625),a=r(7979),u=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in u||i(t,"flags")||!o(u,t)?e:n(a,t)}},1072:function(t,e,r){var n=r(1828),i=r(8727);t.exports=Object.keys||function(t){return n(t,i)}},1088:function(t,e,r){var n=r(6518),i=r(9565),o=r(6395),a=r(350),u=r(4901),c=r(3994),s=r(2787),f=r(2967),l=r(687),p=r(6699),h=r(6840),d=r(8227),v=r(6269),g=r(7657),y=a.PROPER,m=a.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,x=d("iterator"),k="keys",A="values",S="entries",_=function(){return this};t.exports=function(t,e,r,a,d,g,I){c(r,e,a);var O,E,P,C=function(t){if(t===d&&$)return $;if(!w&&t&&t in T)return T[t];switch(t){case k:case A:case S:return function(){return new r(this,t)}}return function(){return new r(this)}},B=e+" Iterator",j=!1,T=t.prototype,W=T[x]||T["@@iterator"]||d&&T[d],$=!w&&W||C(d),N="Array"===e&&T.entries||W;if(N&&(O=s(N.call(new t)))!==Object.prototype&&O.next&&(o||s(O)===b||(f?f(O,b):u(O[x])||h(O,x,_)),l(O,B,!0,!0),o&&(v[B]=_)),y&&d===A&&W&&W.name!==A&&(!o&&m?p(T,"name",A):(j=!0,$=function(){return i(W,this)})),d)if(E={values:C(A),keys:g?$:C(k),entries:C(S)},I)for(P in E)(w||j||!(P in T))&&h(T,P,E[P]);else n({target:e,proto:!0,forced:w||j},E);return o&&!I||T[x]===$||h(T,x,$,{name:d}),v[e]=$,E}},1103:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},1113:function(t){t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},1181:function(t,e,r){var n,i,o,a=r(8622),u=r(4576),c=r(34),s=r(6699),f=r(9297),l=r(7629),p=r(6119),h=r(421),d="Object already initialized",v=u.TypeError,g=u.WeakMap;if(a||l.state){var y=l.state||(l.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,n=function(t,e){if(y.has(t))throw new v(d);return e.facade=t,y.set(t,e),e},i=function(t){return y.get(t)||{}},o=function(t){return y.has(t)}}else{var m=p("state");h[m]=!0,n=function(t,e){if(f(t,m))throw new v(d);return e.facade=t,s(t,m,e),e},i=function(t){return f(t,m)?t[m]:{}},o=function(t){return f(t,m)}}t.exports={set:n,get:i,has:o,enforce:function(t){return o(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=i(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return r}}}},1240:function(t,e,r){var n=r(9504);t.exports=n(1..valueOf)},1278:function(t,e,r){var n=r(6518),i=r(3724),o=r(5031),a=r(5397),u=r(7347),c=r(4659);n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=a(t),i=u.f,s=o(n),f={},l=0;s.length>l;)void 0!==(r=i(n,e=s[l++]))&&c(f,e,r);return f}})},1291:function(t,e,r){var n=r(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},1296:function(t,e,r){var n=r(4495);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},1354:function(t){t.exports=function(t){var e=t[1],r=t[3];if(!r)return e;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),o="/*# ".concat(i," */");return[e].concat([o]).join("\n")}return[e].join("\n")}},1436:function(t,e,r){var n=r(8227)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},1469:function(t,e,r){var n=r(7433);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},1481:function(t,e,r){var n=r(6518),i=r(6043);n({target:"Promise",stat:!0,forced:r(916).CONSTRUCTOR},{reject:function(t){var e=i.f(this);return(0,e.reject)(t),e.promise}})},1510:function(t,e,r){var n=r(6518),i=r(7751),o=r(9297),a=r(655),u=r(5745),c=r(1296),s=u("string-to-symbol-registry"),f=u("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=a(t);if(o(s,e))return s[e];var r=i("Symbol")(e);return s[e]=r,f[r]=e,r}})},1625:function(t,e,r){var n=r(9504);t.exports=n({}.isPrototypeOf)},1699:function(t,e,r){var n=r(6518),i=r(9504),o=r(5749),a=r(7750),u=r(655),c=r(1436),s=i("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~s(u(a(this)),u(o(t)),arguments.length>1?arguments[1]:void 0)}})},1761:function(t,e,r){var n=r(9565),i=r(9228),o=r(8551),a=r(34),u=r(8014),c=r(655),s=r(7750),f=r(5966),l=r(7829),p=r(6682);i("match",(function(t,e,r){return[function(e){var r=s(this),i=a(e)?f(e,t):void 0;return i?n(i,e,r):new RegExp(e)[t](c(r))},function(t){var n=o(this),i=c(t),a=r(e,n,i);if(a.done)return a.value;if(!n.global)return p(n,i);var s=n.unicode;n.lastIndex=0;for(var f,h=[],d=0;null!==(f=p(n,i));){var v=c(f[0]);h[d]=v,""===v&&(n.lastIndex=l(i,u(n.lastIndex),s)),d++}return 0===d?null:h}]}))},1828:function(t,e,r){var n=r(9504),i=r(9297),o=r(5397),a=r(9617).indexOf,u=r(421),c=n([].push);t.exports=function(t,e){var r,n=o(t),s=0,f=[];for(r in n)!i(u,r)&&i(n,r)&&c(f,r);for(;e.length>s;)i(n,r=e[s++])&&(~a(f,r)||c(f,r));return f}},1951:function(t,e,r){var n=r(8227);e.f=n},1955:function(t,e,r){var n,i,o,a,u,c=r(4576),s=r(3389),f=r(6080),l=r(9225).set,p=r(8265),h=r(9544),d=r(4265),v=r(7860),g=r(6193),y=c.MutationObserver||c.WebKitMutationObserver,m=c.document,b=c.process,w=c.Promise,x=s("queueMicrotask");if(!x){var k=new p,A=function(){var t,e;for(g&&(t=b.domain)&&t.exit();e=k.get();)try{e()}catch(t){throw k.head&&n(),t}t&&t.enter()};h||g||v||!y||!m?!d&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,u=f(a.then,a),n=function(){u(A)}):g?n=function(){b.nextTick(A)}:(l=f(l,c),n=function(){l(A)}):(i=!0,o=m.createTextNode(""),new y(A).observe(o,{characterData:!0}),n=function(){o.data=i=!i}),x=function(t){k.head||n(),k.add(t)}}t.exports=x},2003:function(t,e,r){var n=r(6518),i=r(6395),o=r(916).CONSTRUCTOR,a=r(550),u=r(7751),c=r(4901),s=r(6840),f=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&c(a)){var l=u("Promise").prototype.catch;f.catch!==l&&s(f,"catch",l,{unsafe:!0})}},2008:function(t,e,r){var n=r(6518),i=r(9213).filter;n({target:"Array",proto:!0,forced:!r(597)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},2010:function(t,e,r){var n=r(3724),i=r(350).EXISTS,o=r(9504),a=r(2106),u=Function.prototype,c=o(u.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=o(s.exec);n&&!i&&a(u,"name",{configurable:!0,get:function(){try{return f(s,c(this))[1]}catch(t){return""}}})},2106:function(t,e,r){var n=r(283),i=r(4913);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),i.f(t,e,r)}},2140:function(t,e,r){var n={};n[r(8227)("toStringTag")]="z",t.exports="[object z]"===String(n)},2195:function(t,e,r){var n=r(9504),i=n({}.toString),o=n("".slice);t.exports=function(t){return o(i(t),8,-1)}},2211:function(t,e,r){var n=r(9039);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},2259:function(t,e,r){r(511)("iterator")},2293:function(t,e,r){var n=r(8551),i=r(5548),o=r(4117),a=r(8227)("species");t.exports=function(t,e){var r,u=n(t).constructor;return void 0===u||o(r=n(u)[a])?e:i(r)}},2357:function(t,e,r){var n=r(3724),i=r(9039),o=r(9504),a=r(2787),u=r(1072),c=r(5397),s=o(r(8773).f),f=o([].push),l=n&&i((function(){var t=Object.create(null);return t[2]=2,!s(t,2)})),p=function(t){return function(e){for(var r,i=c(e),o=u(i),p=l&&null===a(i),h=o.length,d=0,v=[];h>d;)r=o[d++],n&&!(p?r in i:s(i,r))||f(v,t?[r,i[r]]:i[r]);return v}};t.exports={entries:p(!0),values:p(!1)}},2360:function(t,e,r){var n,i=r(8551),o=r(6801),a=r(8727),u=r(421),c=r(397),s=r(4055),f=r(6119),l="prototype",p="script",h=f("IE_PROTO"),d=function(){},v=function(t){return"<"+p+">"+t+"</"+p+">"},g=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;y="undefined"!=typeof document?document.domain&&n?g(n):(e=s("iframe"),r="java"+p+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):g(n);for(var i=a.length;i--;)delete y[l][a[i]];return y()};u[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(d[l]=i(t),r=new d,d[l]=null,r[h]=t):r=y(),void 0===e?r:o.f(r,e)}},2478:function(t,e,r){var n=r(9504),i=r(8981),o=Math.floor,a=n("".charAt),u=n("".replace),c=n("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,l,p){var h=r+t.length,d=n.length,v=f;return void 0!==l&&(l=i(l),v=s),u(p,v,(function(i,u){var s;switch(a(u,0)){case"$":return"$";case"&":return t;case"`":return c(e,0,r);case"'":return c(e,h);case"<":s=l[c(u,1,-1)];break;default:var f=+u;if(0===f)return i;if(f>d){var p=o(f/10);return 0===p?i:p<=d?void 0===n[p-1]?a(u,1):n[p-1]+a(u,1):i}s=n[f-1]}return void 0===s?"":s}))}},2529:function(t){t.exports=function(t,e){return{value:t,done:e}}},2652:function(t,e,r){var n=r(6080),i=r(9565),o=r(8551),a=r(6823),u=r(4209),c=r(6198),s=r(1625),f=r(81),l=r(851),p=r(9539),h=TypeError,d=function(t,e){this.stopped=t,this.result=e},v=d.prototype;t.exports=function(t,e,r){var g,y,m,b,w,x,k,A=r&&r.that,S=!(!r||!r.AS_ENTRIES),_=!(!r||!r.IS_RECORD),I=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),E=n(e,A),P=function(t){return g&&p(g,"normal",t),new d(!0,t)},C=function(t){return S?(o(t),O?E(t[0],t[1],P):E(t[0],t[1])):O?E(t,P):E(t)};if(_)g=t.iterator;else if(I)g=t;else{if(!(y=l(t)))throw new h(a(t)+" is not iterable");if(u(y)){for(m=0,b=c(t);b>m;m++)if((w=C(t[m]))&&s(v,w))return w;return new d(!1)}g=f(t,y)}for(x=_?t.next:g.next;!(k=i(x,g)).done;){try{w=C(k.value)}catch(t){p(g,"throw",t)}if("object"==typeof w&&w&&s(v,w))return w}return new d(!1)}},2675:function(t,e,r){r(6761),r(1510),r(7812),r(3110),r(9773)},2744:function(t,e,r){var n=r(9039);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2762:function(t,e,r){var n=r(6518),i=r(3802).trim;n({target:"String",proto:!0,forced:r(706)("trim")},{trim:function(){return i(this)}})},2777:function(t,e,r){var n=r(9565),i=r(34),o=r(757),a=r(5966),u=r(4270),c=r(8227),s=TypeError,f=c("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var r,c=a(t,f);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!i(r)||o(r))return r;throw new s("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},2787:function(t,e,r){var n=r(9297),i=r(4901),o=r(8981),a=r(6119),u=r(2211),c=a("IE_PROTO"),s=Object,f=s.prototype;t.exports=u?s.getPrototypeOf:function(t){var e=o(t);if(n(e,c))return e[c];var r=e.constructor;return i(r)&&e instanceof r?r.prototype:e instanceof s?f:null}},2796:function(t,e,r){var n=r(9039),i=r(4901),o=/#|\.prototype\./,a=function(t,e){var r=c[u(t)];return r===f||r!==s&&(i(e)?n(e):!!e)},u=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},2812:function(t){var e=TypeError;t.exports=function(t,r){if(t<r)throw new e("Not enough arguments");return t}},2839:function(t,e,r){var n=r(4576).navigator,i=n&&n.userAgent;t.exports=i?String(i):""},2892:function(t,e,r){var n=r(6518),i=r(6395),o=r(3724),a=r(4576),u=r(9167),c=r(9504),s=r(2796),f=r(9297),l=r(3167),p=r(1625),h=r(757),d=r(2777),v=r(9039),g=r(8480).f,y=r(7347).f,m=r(4913).f,b=r(1240),w=r(3802).trim,x="Number",k=a[x],A=u[x],S=k.prototype,_=a.TypeError,I=c("".slice),O=c("".charCodeAt),E=function(t){var e,r,n,i,o,a,u,c,s=d(t,"number");if(h(s))throw new _("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=w(s),43===(e=O(s,0))||45===e){if(88===(r=O(s,2))||120===r)return NaN}else if(48===e){switch(O(s,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+s}for(a=(o=I(s,2)).length,u=0;u<a;u++)if((c=O(o,u))<48||c>i)return NaN;return parseInt(o,n)}return+s},P=s(x,!k(" 0o1")||!k("0b1")||k("+0x1")),C=function(t){var e,r=arguments.length<1?0:k(function(t){var e=d(t,"number");return"bigint"==typeof e?e:E(e)}(t));return p(S,e=this)&&v((function(){b(e)}))?l(Object(r),this,C):r};C.prototype=S,P&&!i&&(S.constructor=C),n({global:!0,constructor:!0,wrap:!0,forced:P},{Number:C});var B=function(t,e){for(var r,n=o?g(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;n.length>i;i++)f(e,r=n[i])&&!f(t,r)&&m(t,r,y(e,r))};i&&A&&B(u[x],A),(P||i)&&B(u[x],k)},2953:function(t,e,r){var n=r(4576),i=r(7400),o=r(9296),a=r(3792),u=r(6699),c=r(687),s=r(8227)("iterator"),f=a.values,l=function(t,e){if(t){if(t[s]!==f)try{u(t,s,f)}catch(e){t[s]=f}if(c(t,e,!0),i[e])for(var r in a)if(t[r]!==a[r])try{u(t,r,a[r])}catch(e){t[r]=a[r]}}};for(var p in i)l(n[p]&&n[p].prototype,p);l(o,"DOMTokenList")},2967:function(t,e,r){var n=r(6706),i=r(34),o=r(7750),a=r(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return o(r),a(n),i(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},3110:function(t,e,r){var n=r(6518),i=r(7751),o=r(8745),a=r(9565),u=r(9504),c=r(9039),s=r(4901),f=r(757),l=r(7680),p=r(6933),h=r(4495),d=String,v=i("JSON","stringify"),g=u(/./.exec),y=u("".charAt),m=u("".charCodeAt),b=u("".replace),w=u(1..toString),x=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,A=/^[\uDC00-\uDFFF]$/,S=!h||c((function(){var t=i("Symbol")("stringify detection");return"[null]"!==v([t])||"{}"!==v({a:t})||"{}"!==v(Object(t))})),_=c((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),I=function(t,e){var r=l(arguments),n=p(e);if(s(n)||void 0!==t&&!f(t))return r[1]=function(t,e){if(s(n)&&(e=a(n,this,d(t),e)),!f(e))return e},o(v,null,r)},O=function(t,e,r){var n=y(r,e-1),i=y(r,e+1);return g(k,t)&&!g(A,i)||g(A,t)&&!g(k,n)?"\\u"+w(m(t,0),16):t};v&&n({target:"JSON",stat:!0,arity:3,forced:S||_},{stringify:function(t,e,r){var n=l(arguments),i=o(S?I:v,null,n);return _&&"string"==typeof i?b(i,x,O):i}})},3138:function(t){t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},3167:function(t,e,r){var n=r(4901),i=r(34),o=r(2967);t.exports=function(t,e,r){var a,u;return o&&n(a=e.constructor)&&a!==r&&i(u=a.prototype)&&u!==r.prototype&&o(t,u),t}},3179:function(t,e,r){var n=r(2140),i=r(6955);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},3296:function(t,e,r){r(5806)},3362:function(t,e,r){r(436),r(6499),r(2003),r(7743),r(1481),r(280)},3389:function(t,e,r){var n=r(4576),i=r(3724),o=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!i)return n[t];var e=o(n,t);return e&&e.value}},3392:function(t,e,r){var n=r(9504),i=0,o=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},3418:function(t,e,r){var n=r(6518),i=r(7916);n({target:"Array",stat:!0,forced:!r(4428)((function(t){Array.from(t)}))},{from:i})},3438:function(t,e,r){var n=r(8551),i=r(34),o=r(6043);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},3451:function(t,e,r){var n=r(6518),i=r(9504),o=r(421),a=r(34),u=r(9297),c=r(4913).f,s=r(8480),f=r(298),l=r(4124),p=r(3392),h=r(2744),d=!1,v=p("meta"),g=0,y=function(t){c(t,v,{value:{objectID:"O"+g++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},d=!0;var t=s.f,e=i([].splice),r={};r[v]=1,t(r).length&&(s.f=function(r){for(var n=t(r),i=0,o=n.length;i<o;i++)if(n[i]===v){e(n,i,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,v)){if(!l(t))return"F";if(!e)return"E";y(t)}return t[v].objectID},getWeakData:function(t,e){if(!u(t,v)){if(!l(t))return!0;if(!e)return!1;y(t)}return t[v].weakData},onFreeze:function(t){return h&&d&&l(t)&&!u(t,v)&&y(t),t}};o[v]=!0},3500:function(t,e,r){var n=r(4576),i=r(7400),o=r(9296),a=r(235),u=r(6699),c=function(t){if(t&&t.forEach!==a)try{u(t,"forEach",a)}catch(e){t.forEach=a}};for(var s in i)i[s]&&c(n[s]&&n[s].prototype);c(o)},3506:function(t,e,r){var n=r(3925),i=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o("Can't set "+i(t)+" as a prototype")}},3517:function(t,e,r){var n=r(9504),i=r(9039),o=r(4901),a=r(6955),u=r(7751),c=r(3706),s=function(){},f=u("Reflect","construct"),l=/^\s*(?:class|function)\b/,p=n(l.exec),h=!l.test(s),d=function(t){if(!o(t))return!1;try{return f(s,[],t),!0}catch(t){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(l,c(t))}catch(t){return!0}};v.sham=!0,t.exports=!f||i((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?v:d},3635:function(t,e,r){var n=r(9039),i=r(4576).RegExp;t.exports=n((function(){var t=i(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))},3640:function(t,e,r){var n=r(8551),i=r(4270),o=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return i(this,t)}},3706:function(t,e,r){var n=r(9504),i=r(4901),o=r(7629),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},3717:function(t,e){e.f=Object.getOwnPropertySymbols},3724:function(t,e,r){var n=r(9039);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3792:function(t,e,r){var n=r(5397),i=r(6469),o=r(6269),a=r(1181),u=r(4913).f,c=r(1088),s=r(2529),f=r(6395),l=r(3724),p="Array Iterator",h=a.set,d=a.getterFor(p);t.exports=c(Array,"Array",(function(t,e){h(this,{type:p,target:n(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,s(void 0,!0);switch(t.kind){case"keys":return s(r,!1);case"values":return s(e[r],!1)}return s([r,e[r]],!1)}),"values");var v=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!f&&l&&"values"!==v.name)try{u(v,"name",{value:"values"})}catch(t){}},3802:function(t,e,r){var n=r(9504),i=r(7750),o=r(655),a=r(7452),u=n("".replace),c=RegExp("^["+a+"]+"),s=RegExp("(^|[^"+a+"])["+a+"]+$"),f=function(t){return function(e){var r=o(i(e));return 1&t&&(r=u(r,c,"")),2&t&&(r=u(r,s,"$1")),r}};t.exports={start:f(1),end:f(2),trim:f(3)}},3851:function(t,e,r){var n=r(6518),i=r(9039),o=r(5397),a=r(7347).f,u=r(3724);n({target:"Object",stat:!0,forced:!u||i((function(){a(1)})),sham:!u},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},3925:function(t,e,r){var n=r(34);t.exports=function(t){return n(t)||null===t}},3994:function(t,e,r){var n=r(7657).IteratorPrototype,i=r(2360),o=r(6980),a=r(687),u=r(6269),c=function(){return this};t.exports=function(t,e,r,s){var f=e+" Iterator";return t.prototype=i(n,{next:o(+!s,r)}),a(t,f,!1,!0),u[f]=c,t}},4055:function(t,e,r){var n=r(4576),i=r(34),o=n.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},4117:function(t){t.exports=function(t){return null==t}},4124:function(t,e,r){var n=r(9039),i=r(34),o=r(2195),a=r(5652),u=Object.isExtensible,c=n((function(){u(1)}));t.exports=c||a?function(t){return!!i(t)&&((!a||"ArrayBuffer"!==o(t))&&(!u||u(t)))}:u},4209:function(t,e,r){var n=r(8227),i=r(6269),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},4213:function(t,e,r){var n=r(3724),i=r(9504),o=r(9565),a=r(9039),u=r(1072),c=r(3717),s=r(8773),f=r(8981),l=r(7055),p=Object.assign,h=Object.defineProperty,d=i([].concat);t.exports=!p||a((function(){if(n&&1!==p({b:1},p(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),i="abcdefghijklmnopqrst";return t[r]=7,i.split("").forEach((function(t){e[t]=t})),7!==p({},t)[r]||u(p({},e)).join("")!==i}))?function(t,e){for(var r=f(t),i=arguments.length,a=1,p=c.f,h=s.f;i>a;)for(var v,g=l(arguments[a++]),y=p?d(u(g),p(g)):u(g),m=y.length,b=0;m>b;)v=y[b++],n&&!o(h,g,v)||(r[v]=g[v]);return r}:p},4215:function(t,e,r){var n=r(4576),i=r(2839),o=r(2195),a=function(t){return i.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},4265:function(t,e,r){var n=r(2839);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},4270:function(t,e,r){var n=r(9565),i=r(4901),o=r(34),a=TypeError;t.exports=function(t,e){var r,u;if("string"===e&&i(r=t.toString)&&!o(u=n(r,t)))return u;if(i(r=t.valueOf)&&!o(u=n(r,t)))return u;if("string"!==e&&i(r=t.toString)&&!o(u=n(r,t)))return u;throw new a("Can't convert object to primitive value")}},4376:function(t,e,r){var n=r(2195);t.exports=Array.isArray||function(t){return"Array"===n(t)}},4423:function(t,e,r){var n=r(6518),i=r(9617).includes,o=r(9039),a=r(6469);n({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},4428:function(t,e,r){var n=r(8227)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!i)return!1}catch(t){return!1}var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},t(o)}catch(t){}return r}},4488:function(t,e,r){var n=r(7680),i=Math.floor,o=function(t,e){var r=t.length;if(r<8)for(var a,u,c=1;c<r;){for(u=c,a=t[c];u&&e(t[u-1],a)>0;)t[u]=t[--u];u!==c++&&(t[u]=a)}else for(var s=i(r/2),f=o(n(t,0,s),e),l=o(n(t,s),e),p=f.length,h=l.length,d=0,v=0;d<p||v<h;)t[d+v]=d<p&&v<h?e(f[d],l[v])<=0?f[d++]:l[v++]:d<p?f[d++]:l[v++];return t};t.exports=o},4495:function(t,e,r){var n=r(9519),i=r(9039),o=r(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4576:function(t,e,r){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4598:function(t,e,r){var n=r(9039);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},4659:function(t,e,r){var n=r(3724),i=r(4913),o=r(6980);t.exports=function(t,e,r){n?i.f(t,e,o(0,r)):t[e]=r}},4782:function(t,e,r){var n=r(6518),i=r(4376),o=r(3517),a=r(34),u=r(5610),c=r(6198),s=r(5397),f=r(4659),l=r(8227),p=r(597),h=r(7680),d=p("slice"),v=l("species"),g=Array,y=Math.max;n({target:"Array",proto:!0,forced:!d},{slice:function(t,e){var r,n,l,p=s(this),d=c(p),m=u(t,d),b=u(void 0===e?d:e,d);if(i(p)&&(r=p.constructor,(o(r)&&(r===g||i(r.prototype))||a(r)&&null===(r=r[v]))&&(r=void 0),r===g||void 0===r))return h(p,m,b);for(n=new(void 0===r?g:r)(y(b-m,0)),l=0;m<b;m++,l++)m in p&&f(n,l,p[m]);return n.length=l,n}})},4901:function(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},4913:function(t,e,r){var n=r(3724),i=r(5917),o=r(8686),a=r(8551),u=r(6969),c=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",h="writable";e.f=n?o?function(t,e,r){if(a(t),e=u(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&h in r&&!r[h]){var n=f(t,e);n&&n[h]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:l in r?r[l]:n[l],writable:!1})}return s(t,e,r)}:s:function(t,e,r){if(a(t),e=u(e),a(r),i)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},5031:function(t,e,r){var n=r(7751),i=r(9504),o=r(8480),a=r(3717),u=r(8551),c=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(u(t)),r=a.f;return r?c(e,r(t)):e}},5056:function(t,e,r){t.exports=function(t){var e=r.nc;e&&t.setAttribute("nonce",e)}},5072:function(t){var e=[];function r(t){for(var r=-1,n=0;n<e.length;n++)if(e[n].identifier===t){r=n;break}return r}function n(t,n){for(var o={},a=[],u=0;u<t.length;u++){var c=t[u],s=n.base?c[0]+n.base:c[0],f=o[s]||0,l="".concat(s," ").concat(f);o[s]=f+1;var p=r(l),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)e[p].references++,e[p].updater(h);else{var d=i(h,n);n.byIndex=u,e.splice(u,0,{identifier:l,updater:d,references:1})}a.push(l)}return a}function i(t,e){var r=e.domAPI(e);r.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;r.update(t=e)}else r.remove()}}t.exports=function(t,i){var o=n(t=t||[],i=i||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var u=r(o[a]);e[u].references--}for(var c=n(t,i),s=0;s<o.length;s++){var f=r(o[s]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}o=c}}},5397:function(t,e,r){var n=r(7055),i=r(7750);t.exports=function(t){return n(i(t))}},5440:function(t,e,r){var n=r(8745),i=r(9565),o=r(9504),a=r(9228),u=r(9039),c=r(8551),s=r(4901),f=r(34),l=r(1291),p=r(8014),h=r(655),d=r(7750),v=r(7829),g=r(5966),y=r(2478),m=r(6682),b=r(8227)("replace"),w=Math.max,x=Math.min,k=o([].concat),A=o([].push),S=o("".indexOf),_=o("".slice),I="$0"==="a".replace(/./,"$0"),O=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(t,e,r){var o=O?"$":"$0";return[function(t,r){var n=d(this),o=f(t)?g(t,b):void 0;return o?i(o,t,n,r):i(e,h(n),t,r)},function(t,i){var a=c(this),u=h(t);if("string"==typeof i&&-1===S(i,o)&&-1===S(i,"$<")){var f=r(e,a,u,i);if(f.done)return f.value}var d=s(i);d||(i=h(i));var g,b=a.global;b&&(g=a.unicode,a.lastIndex=0);for(var I,O=[];null!==(I=m(a,u))&&(A(O,I),b);){""===h(I[0])&&(a.lastIndex=v(u,p(a.lastIndex),g))}for(var E,P="",C=0,B=0;B<O.length;B++){for(var j,T=h((I=O[B])[0]),W=w(x(l(I.index),u.length),0),$=[],N=1;N<I.length;N++)A($,void 0===(E=I[N])?E:String(E));var R=I.groups;if(d){var F=k([T],$,W,u);void 0!==R&&A(F,R),j=h(n(i,void 0,F))}else j=y(T,u,W,$,R,i);W>=C&&(P+=_(u,C,W)+j,C=W+T.length)}return P+_(u,C)}]}),!!u((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!I||O)},5506:function(t,e,r){var n=r(6518),i=r(2357).entries;n({target:"Object",stat:!0},{entries:function(t){return i(t)}})},5548:function(t,e,r){var n=r(3517),i=r(6823),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not a constructor")}},5610:function(t,e,r){var n=r(1291),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},5652:function(t,e,r){var n=r(9039);t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},5700:function(t,e,r){var n=r(511),i=r(8242);n("toPrimitive"),i()},5745:function(t,e,r){var n=r(7629);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},5749:function(t,e,r){var n=r(788),i=TypeError;t.exports=function(t){if(n(t))throw new i("The method doesn't accept regular expressions");return t}},5806:function(t,e,r){r(7764);var n,i=r(6518),o=r(3724),a=r(7416),u=r(4576),c=r(6080),s=r(9504),f=r(6840),l=r(2106),p=r(679),h=r(9297),d=r(4213),v=r(7916),g=r(7680),y=r(8183).codeAt,m=r(6098),b=r(655),w=r(687),x=r(2812),k=r(8406),A=r(1181),S=A.set,_=A.getterFor("URL"),I=k.URLSearchParams,O=k.getState,E=u.URL,P=u.TypeError,C=u.parseInt,B=Math.floor,j=Math.pow,T=s("".charAt),W=s(/./.exec),$=s([].join),N=s(1..toString),R=s([].pop),F=s([].push),L=s("".replace),M=s([].shift),U=s("".split),D=s("".slice),G=s("".toLowerCase),Q=s([].unshift),q="Invalid scheme",z="Invalid host",Y="Invalid port",H=/[a-z]/i,J=/[\d+-.a-z]/i,V=/\d/,X=/^0x/i,K=/^[0-7]+$/,Z=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,rt=/[\0\t\n\r #/:<>?@[\\\]^|]/,nt=/^[\u0000-\u0020]+/,it=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ot=/[\t\n\r]/g,at=function(t){var e,r,n,i;if("number"==typeof t){for(e=[],r=0;r<4;r++)Q(e,t%256),t=B(t/256);return $(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,i=0,o=0;o<8;o++)0!==t[o]?(i>r&&(e=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r?n:e}(t),r=0;r<8;r++)i&&0===t[r]||(i&&(i=!1),n===r?(e+=r?":":"::",i=!0):(e+=N(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},ut={},ct=d({},ut,{" ":1,'"':1,"<":1,">":1,"`":1}),st=d({},ct,{"#":1,"?":1,"{":1,"}":1}),ft=d({},st,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),lt=function(t,e){var r=y(t,0);return r>32&&r<127&&!h(e,t)?t:encodeURIComponent(t)},pt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ht=function(t,e){var r;return 2===t.length&&W(H,T(t,0))&&(":"===(r=T(t,1))||!e&&"|"===r)},dt=function(t){var e;return t.length>1&&ht(D(t,0,2))&&(2===t.length||"/"===(e=T(t,2))||"\\"===e||"?"===e||"#"===e)},vt=function(t){return"."===t||"%2e"===G(t)},gt={},yt={},mt={},bt={},wt={},xt={},kt={},At={},St={},_t={},It={},Ot={},Et={},Pt={},Ct={},Bt={},jt={},Tt={},Wt={},$t={},Nt={},Rt=function(t,e,r){var n,i,o,a=b(t);if(e){if(i=this.parse(a))throw new P(i);this.searchParams=null}else{if(void 0!==r&&(n=new Rt(r,!0)),i=this.parse(a,null,n))throw new P(i);(o=O(new I)).bindURL(this),this.searchParams=o}};Rt.prototype={type:"URL",parse:function(t,e,r){var i,o,a,u,c,s=this,f=e||gt,l=0,p="",d=!1,y=!1,m=!1;for(t=b(t),e||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,t=L(t,nt,""),t=L(t,it,"$1")),t=L(t,ot,""),i=v(t);l<=i.length;){switch(o=i[l],f){case gt:if(!o||!W(H,o)){if(e)return q;f=mt;continue}p+=G(o),f=yt;break;case yt:if(o&&(W(J,o)||"+"===o||"-"===o||"."===o))p+=G(o);else{if(":"!==o){if(e)return q;p="",f=mt,l=0;continue}if(e&&(s.isSpecial()!==h(pt,p)||"file"===p&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=p,e)return void(s.isSpecial()&&pt[s.scheme]===s.port&&(s.port=null));p="","file"===s.scheme?f=Pt:s.isSpecial()&&r&&r.scheme===s.scheme?f=bt:s.isSpecial()?f=At:"/"===i[l+1]?(f=wt,l++):(s.cannotBeABaseURL=!0,F(s.path,""),f=Wt)}break;case mt:if(!r||r.cannotBeABaseURL&&"#"!==o)return q;if(r.cannotBeABaseURL&&"#"===o){s.scheme=r.scheme,s.path=g(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,f=Nt;break}f="file"===r.scheme?Pt:xt;continue;case bt:if("/"!==o||"/"!==i[l+1]){f=xt;continue}f=St,l++;break;case wt:if("/"===o){f=_t;break}f=Tt;continue;case xt:if(s.scheme=r.scheme,o===n)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=g(r.path),s.query=r.query;else if("/"===o||"\\"===o&&s.isSpecial())f=kt;else if("?"===o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=g(r.path),s.query="",f=$t;else{if("#"!==o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=g(r.path),s.path.length--,f=Tt;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=g(r.path),s.query=r.query,s.fragment="",f=Nt}break;case kt:if(!s.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,f=Tt;continue}f=_t}else f=St;break;case At:if(f=St,"/"!==o||"/"!==T(p,l+1))continue;l++;break;case St:if("/"!==o&&"\\"!==o){f=_t;continue}break;case _t:if("@"===o){d&&(p="%40"+p),d=!0,a=v(p);for(var w=0;w<a.length;w++){var x=a[w];if(":"!==x||m){var k=lt(x,ft);m?s.password+=k:s.username+=k}else m=!0}p=""}else if(o===n||"/"===o||"?"===o||"#"===o||"\\"===o&&s.isSpecial()){if(d&&""===p)return"Invalid authority";l-=v(p).length+1,p="",f=It}else p+=o;break;case It:case Ot:if(e&&"file"===s.scheme){f=Bt;continue}if(":"!==o||y){if(o===n||"/"===o||"?"===o||"#"===o||"\\"===o&&s.isSpecial()){if(s.isSpecial()&&""===p)return z;if(e&&""===p&&(s.includesCredentials()||null!==s.port))return;if(u=s.parseHost(p))return u;if(p="",f=jt,e)return;continue}"["===o?y=!0:"]"===o&&(y=!1),p+=o}else{if(""===p)return z;if(u=s.parseHost(p))return u;if(p="",f=Et,e===Ot)return}break;case Et:if(!W(V,o)){if(o===n||"/"===o||"?"===o||"#"===o||"\\"===o&&s.isSpecial()||e){if(""!==p){var A=C(p,10);if(A>65535)return Y;s.port=s.isSpecial()&&A===pt[s.scheme]?null:A,p=""}if(e)return;f=jt;continue}return Y}p+=o;break;case Pt:if(s.scheme="file","/"===o||"\\"===o)f=Ct;else{if(!r||"file"!==r.scheme){f=Tt;continue}switch(o){case n:s.host=r.host,s.path=g(r.path),s.query=r.query;break;case"?":s.host=r.host,s.path=g(r.path),s.query="",f=$t;break;case"#":s.host=r.host,s.path=g(r.path),s.query=r.query,s.fragment="",f=Nt;break;default:dt($(g(i,l),""))||(s.host=r.host,s.path=g(r.path),s.shortenPath()),f=Tt;continue}}break;case Ct:if("/"===o||"\\"===o){f=Bt;break}r&&"file"===r.scheme&&!dt($(g(i,l),""))&&(ht(r.path[0],!0)?F(s.path,r.path[0]):s.host=r.host),f=Tt;continue;case Bt:if(o===n||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&ht(p))f=Tt;else if(""===p){if(s.host="",e)return;f=jt}else{if(u=s.parseHost(p))return u;if("localhost"===s.host&&(s.host=""),e)return;p="",f=jt}continue}p+=o;break;case jt:if(s.isSpecial()){if(f=Tt,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==n&&(f=Tt,"/"!==o))continue}else s.fragment="",f=Nt;else s.query="",f=$t;break;case Tt:if(o===n||"/"===o||"\\"===o&&s.isSpecial()||!e&&("?"===o||"#"===o)){if(".."===(c=G(c=p))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(s.shortenPath(),"/"===o||"\\"===o&&s.isSpecial()||F(s.path,"")):vt(p)?"/"===o||"\\"===o&&s.isSpecial()||F(s.path,""):("file"===s.scheme&&!s.path.length&&ht(p)&&(s.host&&(s.host=""),p=T(p,0)+":"),F(s.path,p)),p="","file"===s.scheme&&(o===n||"?"===o||"#"===o))for(;s.path.length>1&&""===s.path[0];)M(s.path);"?"===o?(s.query="",f=$t):"#"===o&&(s.fragment="",f=Nt)}else p+=lt(o,st);break;case Wt:"?"===o?(s.query="",f=$t):"#"===o?(s.fragment="",f=Nt):o!==n&&(s.path[0]+=lt(o,ut));break;case $t:e||"#"!==o?o!==n&&("'"===o&&s.isSpecial()?s.query+="%27":s.query+="#"===o?"%23":lt(o,ut)):(s.fragment="",f=Nt);break;case Nt:o!==n&&(s.fragment+=lt(o,ct))}l++}},parseHost:function(t){var e,r,n;if("["===T(t,0)){if("]"!==T(t,t.length-1))return z;if(e=function(t){var e,r,n,i,o,a,u,c=[0,0,0,0,0,0,0,0],s=0,f=null,l=0,p=function(){return T(t,l)};if(":"===p()){if(":"!==T(t,1))return;l+=2,f=++s}for(;p();){if(8===s)return;if(":"!==p()){for(e=r=0;r<4&&W(tt,p());)e=16*e+C(p(),16),l++,r++;if("."===p()){if(0===r)return;if(l-=r,s>6)return;for(n=0;p();){if(i=null,n>0){if(!("."===p()&&n<4))return;l++}if(!W(V,p()))return;for(;W(V,p());){if(o=C(p(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;l++}c[s]=256*c[s]+i,2!==++n&&4!==n||s++}if(4!==n)return;break}if(":"===p()){if(l++,!p())return}else if(p())return;c[s++]=e}else{if(null!==f)return;l++,f=++s}}if(null!==f)for(a=s-f,s=7;0!==s&&a>0;)u=c[s],c[s--]=c[f+a-1],c[f+--a]=u;else if(8!==s)return;return c}(D(t,1,-1)),!e)return z;this.host=e}else if(this.isSpecial()){if(t=m(t),W(et,t))return z;if(e=function(t){var e,r,n,i,o,a,u,c=U(t,".");if(c.length&&""===c[c.length-1]&&c.length--,(e=c.length)>4)return t;for(r=[],n=0;n<e;n++){if(""===(i=c[n]))return t;if(o=10,i.length>1&&"0"===T(i,0)&&(o=W(X,i)?16:8,i=D(i,8===o?1:2)),""===i)a=0;else{if(!W(10===o?Z:8===o?K:tt,i))return t;a=C(i,o)}F(r,a)}for(n=0;n<e;n++)if(a=r[n],n===e-1){if(a>=j(256,5-e))return null}else if(a>255)return null;for(u=R(r),n=0;n<r.length;n++)u+=r[n]*j(256,3-n);return u}(t),null===e)return z;this.host=e}else{if(W(rt,t))return z;for(e="",r=v(t),n=0;n<r.length;n++)e+=lt(r[n],ut);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return h(pt,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&ht(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,r=t.username,n=t.password,i=t.host,o=t.port,a=t.path,u=t.query,c=t.fragment,s=e+":";return null!==i?(s+="//",t.includesCredentials()&&(s+=r+(n?":"+n:"")+"@"),s+=at(i),null!==o&&(s+=":"+o)):"file"===e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+$(a,"/"):"",null!==u&&(s+="?"+u),null!==c&&(s+="#"+c),s},setHref:function(t){var e=this.parse(t);if(e)throw new P(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new Ft(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+at(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(b(t)+":",gt)},getUsername:function(){return this.username},setUsername:function(t){var e=v(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<e.length;r++)this.username+=lt(e[r],ft)}},getPassword:function(){return this.password},setPassword:function(t){var e=v(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<e.length;r++)this.password+=lt(e[r],ft)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?at(t):at(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,It)},getHostname:function(){var t=this.host;return null===t?"":at(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Ot)},getPort:function(){var t=this.port;return null===t?"":b(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=b(t))?this.port=null:this.parse(t,Et))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+$(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,jt))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=b(t))?this.query=null:("?"===T(t,0)&&(t=D(t,1)),this.query="",this.parse(t,$t)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=b(t))?("#"===T(t,0)&&(t=D(t,1)),this.fragment="",this.parse(t,Nt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ft=function(t){var e=p(this,Lt),r=x(arguments.length,1)>1?arguments[1]:void 0,n=S(e,new Rt(t,!1,r));o||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Lt=Ft.prototype,Mt=function(t,e){return{get:function(){return _(this)[t]()},set:e&&function(t){return _(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(l(Lt,"href",Mt("serialize","setHref")),l(Lt,"origin",Mt("getOrigin")),l(Lt,"protocol",Mt("getProtocol","setProtocol")),l(Lt,"username",Mt("getUsername","setUsername")),l(Lt,"password",Mt("getPassword","setPassword")),l(Lt,"host",Mt("getHost","setHost")),l(Lt,"hostname",Mt("getHostname","setHostname")),l(Lt,"port",Mt("getPort","setPort")),l(Lt,"pathname",Mt("getPathname","setPathname")),l(Lt,"search",Mt("getSearch","setSearch")),l(Lt,"searchParams",Mt("getSearchParams")),l(Lt,"hash",Mt("getHash","setHash"))),f(Lt,"toJSON",(function(){return _(this).serialize()}),{enumerable:!0}),f(Lt,"toString",(function(){return _(this).serialize()}),{enumerable:!0}),E){var Ut=E.createObjectURL,Dt=E.revokeObjectURL;Ut&&f(Ft,"createObjectURL",c(Ut,E)),Dt&&f(Ft,"revokeObjectURL",c(Dt,E))}w(Ft,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Ft})},5917:function(t,e,r){var n=r(3724),i=r(9039),o=r(4055);t.exports=!n&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},5966:function(t,e,r){var n=r(9306),i=r(4117);t.exports=function(t,e){var r=t[e];return i(r)?void 0:n(r)}},6033:function(t,e,r){r(8523)},6043:function(t,e,r){var n=r(9306),i=TypeError,o=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw new i("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new o(t)}},6080:function(t,e,r){var n=r(7476),i=r(9306),o=r(616),a=n(n.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},6098:function(t,e,r){var n=r(9504),i=2147483647,o=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,u="Overflow: input needs wider integers to process",c=RangeError,s=n(a.exec),f=Math.floor,l=String.fromCharCode,p=n("".charCodeAt),h=n([].join),d=n([].push),v=n("".replace),g=n("".split),y=n("".toLowerCase),m=function(t){return t+22+75*(t<26)},b=function(t,e,r){var n=0;for(t=r?f(t/700):t>>1,t+=f(t/e);t>455;)t=f(t/35),n+=36;return f(n+36*t/(t+38))},w=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r<n;){var i=p(t,r++);if(i>=55296&&i<=56319&&r<n){var o=p(t,r++);56320==(64512&o)?d(e,((1023&i)<<10)+(1023&o)+65536):(d(e,i),r--)}else d(e,i)}return e}(t);var r,n,o=t.length,a=128,s=0,v=72;for(r=0;r<t.length;r++)(n=t[r])<128&&d(e,l(n));var g=e.length,y=g;for(g&&d(e,"-");y<o;){var w=i;for(r=0;r<t.length;r++)(n=t[r])>=a&&n<w&&(w=n);var x=y+1;if(w-a>f((i-s)/x))throw new c(u);for(s+=(w-a)*x,a=w,r=0;r<t.length;r++){if((n=t[r])<a&&++s>i)throw new c(u);if(n===a){for(var k=s,A=36;;){var S=A<=v?1:A>=v+26?26:A-v;if(k<S)break;var _=k-S,I=36-S;d(e,l(m(S+_%I))),k=f(_/I),A+=36}d(e,l(m(k))),v=b(s,x,y===g),s=0,y++}}s++,a++}return h(e,"")};t.exports=function(t){var e,r,n=[],i=g(v(y(t),a,"."),".");for(e=0;e<i.length;e++)r=i[e],d(n,s(o,r)?"xn--"+w(r):r);return h(n,".")}},6099:function(t,e,r){var n=r(2140),i=r(6840),o=r(3179);n||i(Object.prototype,"toString",o,{unsafe:!0})},6119:function(t,e,r){var n=r(5745),i=r(3392),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},6193:function(t,e,r){var n=r(4215);t.exports="NODE"===n},6198:function(t,e,r){var n=r(8014);t.exports=function(t){return n(t.length)}},6269:function(t){t.exports={}},6279:function(t,e,r){var n=r(6840);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},6314:function(t){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",n=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),n&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),n&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,n,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var u=0;u<this.length;u++){var c=this[u][0];null!=c&&(a[c]=!0)}for(var s=0;s<t.length;s++){var f=[].concat(t[s]);n&&a[f[0]]||(void 0!==o&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=o),r&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=r):f[2]=r),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},6319:function(t,e,r){var n=r(8551),i=r(9539);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){i(t,"throw",e)}}},6395:function(t){t.exports=!1},6468:function(t,e,r){var n=r(6518),i=r(4576),o=r(9504),a=r(2796),u=r(6840),c=r(3451),s=r(2652),f=r(679),l=r(4901),p=r(4117),h=r(34),d=r(9039),v=r(4428),g=r(687),y=r(3167);t.exports=function(t,e,r){var m=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),w=m?"set":"add",x=i[t],k=x&&x.prototype,A=x,S={},_=function(t){var e=o(k[t]);u(k,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!h(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!h(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!h(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(a(t,!l(x)||!(b||k.forEach&&!d((function(){(new x).entries().next()})))))A=r.getConstructor(e,t,m,w),c.enable();else if(a(t,!0)){var I=new A,O=I[w](b?{}:-0,1)!==I,E=d((function(){I.has(1)})),P=v((function(t){new x(t)})),C=!b&&d((function(){for(var t=new x,e=5;e--;)t[w](e,e);return!t.has(-0)}));P||((A=e((function(t,e){f(t,k);var r=y(new x,t,A);return p(e)||s(e,r[w],{that:r,AS_ENTRIES:m}),r}))).prototype=k,k.constructor=A),(E||C)&&(_("delete"),_("has"),m&&_("get")),(C||O)&&_(w),b&&k.clear&&delete k.clear}return S[t]=A,n({global:!0,constructor:!0,forced:A!==x},S),g(A,t),b||r.setStrong(A,t,m),A}},6469:function(t,e,r){var n=r(8227),i=r(2360),o=r(4913).f,a=n("unscopables"),u=Array.prototype;void 0===u[a]&&o(u,a,{configurable:!0,value:i(null)}),t.exports=function(t){u[a][t]=!0}},6499:function(t,e,r){var n=r(6518),i=r(9565),o=r(9306),a=r(6043),u=r(1103),c=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{all:function(t){var e=this,r=a.f(e),n=r.resolve,s=r.reject,f=u((function(){var r=o(e.resolve),a=[],u=0,f=1;c(t,(function(t){var o=u++,c=!1;f++,i(r,e,t).then((function(t){c||(c=!0,a[o]=t,--f||n(a))}),s)})),--f||n(a)}));return f.error&&s(f.value),r.promise}})},6518:function(t,e,r){var n=r(4576),i=r(7347).f,o=r(6699),a=r(6840),u=r(9433),c=r(7740),s=r(2796);t.exports=function(t,e){var r,f,l,p,h,d=t.target,v=t.global,g=t.stat;if(r=v?n:g?n[d]||u(d,{}):n[d]&&n[d].prototype)for(f in e){if(p=e[f],l=t.dontCallGetSet?(h=i(r,f))&&h.value:r[f],!s(v?f:d+(g?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;c(p,l)}(t.sham||l&&l.sham)&&o(p,"sham",!0),a(r,f,p,t)}}},6682:function(t,e,r){var n=r(9565),i=r(8551),o=r(4901),a=r(2195),u=r(7323),c=TypeError;t.exports=function(t,e){var r=t.exec;if(o(r)){var s=n(r,t,e);return null!==s&&i(s),s}if("RegExp"===a(t))return n(u,t,e);throw new c("RegExp#exec called on incompatible receiver")}},6699:function(t,e,r){var n=r(3724),i=r(4913),o=r(6980);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},6706:function(t,e,r){var n=r(9504),i=r(9306);t.exports=function(t,e,r){try{return n(i(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},6761:function(t,e,r){var n=r(6518),i=r(4576),o=r(9565),a=r(9504),u=r(6395),c=r(3724),s=r(4495),f=r(9039),l=r(9297),p=r(1625),h=r(8551),d=r(5397),v=r(6969),g=r(655),y=r(6980),m=r(2360),b=r(1072),w=r(8480),x=r(298),k=r(3717),A=r(7347),S=r(4913),_=r(6801),I=r(8773),O=r(6840),E=r(2106),P=r(5745),C=r(6119),B=r(421),j=r(3392),T=r(8227),W=r(1951),$=r(511),N=r(8242),R=r(687),F=r(1181),L=r(9213).forEach,M=C("hidden"),U="Symbol",D="prototype",G=F.set,Q=F.getterFor(U),q=Object[D],z=i.Symbol,Y=z&&z[D],H=i.RangeError,J=i.TypeError,V=i.QObject,X=A.f,K=S.f,Z=x.f,tt=I.f,et=a([].push),rt=P("symbols"),nt=P("op-symbols"),it=P("wks"),ot=!V||!V[D]||!V[D].findChild,at=function(t,e,r){var n=X(q,e);n&&delete q[e],K(t,e,r),n&&t!==q&&K(q,e,n)},ut=c&&f((function(){return 7!==m(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?at:K,ct=function(t,e){var r=rt[t]=m(Y);return G(r,{type:U,tag:t,description:e}),c||(r.description=e),r},st=function(t,e,r){t===q&&st(nt,e,r),h(t);var n=v(e);return h(r),l(rt,n)?(r.enumerable?(l(t,M)&&t[M][n]&&(t[M][n]=!1),r=m(r,{enumerable:y(0,!1)})):(l(t,M)||K(t,M,y(1,m(null))),t[M][n]=!0),ut(t,n,r)):K(t,n,r)},ft=function(t,e){h(t);var r=d(e),n=b(r).concat(dt(r));return L(n,(function(e){c&&!o(lt,r,e)||st(t,e,r[e])})),t},lt=function(t){var e=v(t),r=o(tt,this,e);return!(this===q&&l(rt,e)&&!l(nt,e))&&(!(r||!l(this,e)||!l(rt,e)||l(this,M)&&this[M][e])||r)},pt=function(t,e){var r=d(t),n=v(e);if(r!==q||!l(rt,n)||l(nt,n)){var i=X(r,n);return!i||!l(rt,n)||l(r,M)&&r[M][n]||(i.enumerable=!0),i}},ht=function(t){var e=Z(d(t)),r=[];return L(e,(function(t){l(rt,t)||l(B,t)||et(r,t)})),r},dt=function(t){var e=t===q,r=Z(e?nt:d(t)),n=[];return L(r,(function(t){!l(rt,t)||e&&!l(q,t)||et(n,rt[t])})),n};s||(z=function(){if(p(Y,this))throw new J("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=j(t),r=function(t){var n=void 0===this?i:this;n===q&&o(r,nt,t),l(n,M)&&l(n[M],e)&&(n[M][e]=!1);var a=y(1,t);try{ut(n,e,a)}catch(t){if(!(t instanceof H))throw t;at(n,e,a)}};return c&&ot&&ut(q,e,{configurable:!0,set:r}),ct(e,t)},O(Y=z[D],"toString",(function(){return Q(this).tag})),O(z,"withoutSetter",(function(t){return ct(j(t),t)})),I.f=lt,S.f=st,_.f=ft,A.f=pt,w.f=x.f=ht,k.f=dt,W.f=function(t){return ct(T(t),t)},c&&(E(Y,"description",{configurable:!0,get:function(){return Q(this).description}}),u||O(q,"propertyIsEnumerable",lt,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!s,sham:!s},{Symbol:z}),L(b(it),(function(t){$(t)})),n({target:U,stat:!0,forced:!s},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),n({target:"Object",stat:!0,forced:!s,sham:!c},{create:function(t,e){return void 0===e?m(t):ft(m(t),e)},defineProperty:st,defineProperties:ft,getOwnPropertyDescriptor:pt}),n({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:ht}),N(),R(z,U),B[M]=!0},6801:function(t,e,r){var n=r(3724),i=r(8686),o=r(4913),a=r(8551),u=r(5397),c=r(1072);e.f=n&&!i?Object.defineProperties:function(t,e){a(t);for(var r,n=u(e),i=c(e),s=i.length,f=0;s>f;)o.f(t,r=i[f++],n[r]);return t}},6823:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},6837:function(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},6840:function(t,e,r){var n=r(4901),i=r(4913),o=r(283),a=r(9433);t.exports=function(t,e,r,u){u||(u={});var c=u.enumerable,s=void 0!==u.name?u.name:e;if(n(r)&&o(r,s,u),u.global)c?t[e]=r:a(e,r);else{try{u.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=r:i.f(t,e,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},6933:function(t,e,r){var n=r(9504),i=r(4376),o=r(4901),a=r(2195),u=r(655),c=n([].push);t.exports=function(t){if(o(t))return t;if(i(t)){for(var e=t.length,r=[],n=0;n<e;n++){var s=t[n];"string"==typeof s?c(r,s):"number"!=typeof s&&"Number"!==a(s)&&"String"!==a(s)||c(r,u(s))}var f=r.length,l=!0;return function(t,e){if(l)return l=!1,e;if(i(this))return e;for(var n=0;n<f;n++)if(r[n]===t)return e}}}},6938:function(t,e,r){var n=r(2360),i=r(2106),o=r(6279),a=r(6080),u=r(679),c=r(4117),s=r(2652),f=r(1088),l=r(2529),p=r(7633),h=r(3724),d=r(3451).fastKey,v=r(1181),g=v.set,y=v.getterFor;t.exports={getConstructor:function(t,e,r,f){var l=t((function(t,i){u(t,p),g(t,{type:e,index:n(null),first:null,last:null,size:0}),h||(t.size=0),c(i)||s(i,t[f],{that:t,AS_ENTRIES:r})})),p=l.prototype,v=y(e),m=function(t,e,r){var n,i,o=v(t),a=b(t,e);return a?a.value=r:(o.last=a={index:i=d(e,!0),key:e,value:r,previous:n=o.last,next:null,removed:!1},o.first||(o.first=a),n&&(n.next=a),h?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},b=function(t,e){var r,n=v(t),i=d(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key===e)return r};return o(p,{clear:function(){for(var t=v(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=n(null),h?t.size=0:this.size=0},delete:function(t){var e=this,r=v(e),n=b(e,t);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first===n&&(r.first=i),r.last===n&&(r.last=o),h?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=v(this),n=a(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),o(p,r?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),h&&i(p,"size",{configurable:!0,get:function(){return v(this).size}}),l},setStrong:function(t,e,r){var n=e+" Iterator",i=y(e),o=y(n);f(t,e,(function(t,e){g(this,{type:n,target:t,state:i(t),kind:e,last:null})}),(function(){for(var t=o(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?l("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,l(void 0,!0))}),r?"entries":"values",!r,!0),p(e)}}},6955:function(t,e,r){var n=r(2140),i=r(4901),o=r(2195),a=r(8227)("toStringTag"),u=Object,c="Arguments"===o(function(){return arguments}());t.exports=n?o:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=u(t),a))?r:c?o(e):"Object"===(n=o(e))&&i(e.callee)?"Arguments":n}},6969:function(t,e,r){var n=r(2777),i=r(757);t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},6980:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7040:function(t,e,r){var n=r(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7055:function(t,e,r){var n=r(9504),i=r(9039),o=r(2195),a=Object,u=n("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?u(t,""):a(t)}:a},7208:function(t,e,r){var n=r(6518),i=r(9565);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},7323:function(t,e,r){var n,i,o=r(9565),a=r(9504),u=r(655),c=r(7979),s=r(8429),f=r(5745),l=r(2360),p=r(1181).get,h=r(3635),d=r(8814),v=f("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,y=g,m=a("".charAt),b=a("".indexOf),w=a("".replace),x=a("".slice),k=(i=/b*/g,o(g,n=/a/,"a"),o(g,i,"a"),0!==n.lastIndex||0!==i.lastIndex),A=s.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(k||S||A||h||d)&&(y=function(t){var e,r,n,i,a,s,f,h=this,d=p(h),_=u(t),I=d.raw;if(I)return I.lastIndex=h.lastIndex,e=o(y,I,_),h.lastIndex=I.lastIndex,e;var O=d.groups,E=A&&h.sticky,P=o(c,h),C=h.source,B=0,j=_;if(E&&(P=w(P,"y",""),-1===b(P,"g")&&(P+="g"),j=x(_,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==m(_,h.lastIndex-1))&&(C="(?: "+C+")",j=" "+j,B++),r=new RegExp("^(?:"+C+")",P)),S&&(r=new RegExp("^"+C+"$(?!\\s)",P)),k&&(n=h.lastIndex),i=o(g,E?r:h,j),E?i?(i.input=x(i.input,B),i[0]=x(i[0],B),i.index=h.lastIndex,h.lastIndex+=i[0].length):h.lastIndex=0:k&&i&&(h.lastIndex=h.global?i.index+i[0].length:n),S&&i&&i.length>1&&o(v,i[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&O)for(i.groups=s=l(null),a=0;a<O.length;a++)s[(f=O[a])[0]]=i[f[1]];return i}),t.exports=y},7337:function(t,e,r){var n=r(6518),i=r(9504),o=r(5610),a=RangeError,u=String.fromCharCode,c=String.fromCodePoint,s=i([].join);n({target:"String",stat:!0,arity:1,forced:!!c&&1!==c.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,i=0;n>i;){if(e=+arguments[i++],o(e,1114111)!==e)throw new a(e+" is not a valid code point");r[i]=e<65536?u(e):u(55296+((e-=65536)>>10),e%1024+56320)}return s(r,"")}})},7347:function(t,e,r){var n=r(3724),i=r(9565),o=r(8773),a=r(6980),u=r(5397),c=r(6969),s=r(9297),f=r(5917),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=u(t),e=c(e),f)try{return l(t,e)}catch(t){}if(s(t,e))return a(!i(o.f,t,e),t[e])}},7400:function(t){t.exports={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}},7416:function(t,e,r){var n=r(9039),i=r(8227),o=r(3724),a=r(6395),u=i("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),r.delete("a",2),r.delete("b",void 0),a&&(!t.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!e.size&&(a||!o)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[u]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host}))},7433:function(t,e,r){var n=r(4376),i=r(3517),o=r(34),a=r(8227)("species"),u=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(i(e)&&(e===u||n(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?u:e}},7452:function(t){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},7476:function(t,e,r){var n=r(2195),i=r(9504);t.exports=function(t){if("Function"===n(t))return i(t)}},7495:function(t,e,r){var n=r(6518),i=r(7323);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},7629:function(t,e,r){var n=r(6395),i=r(4576),o=r(9433),a="__core-js_shared__",u=t.exports=i[a]||o(a,{});(u.versions||(u.versions=[])).push({version:"3.42.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7633:function(t,e,r){var n=r(7751),i=r(2106),o=r(8227),a=r(3724),u=o("species");t.exports=function(t){var e=n(t);a&&e&&!e[u]&&i(e,u,{configurable:!0,get:function(){return this}})}},7657:function(t,e,r){var n,i,o,a=r(9039),u=r(4901),c=r(34),s=r(2360),f=r(2787),l=r(6840),p=r(8227),h=r(6395),d=p("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(i=f(f(o)))!==Object.prototype&&(n=i):v=!0),!c(n)||a((function(){var t={};return n[d].call(t)!==t}))?n={}:h&&(n=s(n)),u(n[d])||l(n,d,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},7659:function(t){var e={};t.exports=function(t,r){var n=function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},7680:function(t,e,r){var n=r(9504);t.exports=n([].slice)},7740:function(t,e,r){var n=r(9297),i=r(5031),o=r(7347),a=r(4913);t.exports=function(t,e,r){for(var u=i(e),c=a.f,s=o.f,f=0;f<u.length;f++){var l=u[f];n(t,l)||r&&n(r,l)||c(t,l,s(e,l))}}},7743:function(t,e,r){var n=r(6518),i=r(9565),o=r(9306),a=r(6043),u=r(1103),c=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{race:function(t){var e=this,r=a.f(e),n=r.reject,s=u((function(){var a=o(e.resolve);c(t,(function(t){i(a,e,t).then(r.resolve,n)}))}));return s.error&&n(s.value),r.promise}})},7750:function(t,e,r){var n=r(4117),i=TypeError;t.exports=function(t){if(n(t))throw new i("Can't call method on "+t);return t}},7751:function(t,e,r){var n=r(4576),i=r(4901);t.exports=function(t,e){return arguments.length<2?(r=n[t],i(r)?r:void 0):n[t]&&n[t][e];var r}},7764:function(t,e,r){var n=r(8183).charAt,i=r(655),o=r(1181),a=r(1088),u=r(2529),c="String Iterator",s=o.set,f=o.getterFor(c);a(String,"String",(function(t){s(this,{type:c,string:i(t),index:0})}),(function(){var t,e=f(this),r=e.string,i=e.index;return i>=r.length?u(void 0,!0):(t=n(r,i),e.index+=t.length,u(t,!1))}))},7812:function(t,e,r){var n=r(6518),i=r(9297),o=r(757),a=r(6823),u=r(5745),c=r(1296),s=u("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(t){if(!o(t))throw new TypeError(a(t)+" is not a symbol");if(i(s,t))return s[t]}})},7825:function(t){t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(r){!function(t,e,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var i=void 0!==r.layer;i&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,i&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(n,t,e.options)}(e,t,r)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},7829:function(t,e,r){var n=r(8183).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},7860:function(t,e,r){var n=r(2839);t.exports=/web0s(?!.*chrome)/i.test(n)},7916:function(t,e,r){var n=r(6080),i=r(9565),o=r(8981),a=r(6319),u=r(4209),c=r(3517),s=r(6198),f=r(4659),l=r(81),p=r(851),h=Array;t.exports=function(t){var e=o(t),r=c(this),d=arguments.length,v=d>1?arguments[1]:void 0,g=void 0!==v;g&&(v=n(v,d>2?arguments[2]:void 0));var y,m,b,w,x,k,A=p(e),S=0;if(!A||this===h&&u(A))for(y=s(e),m=r?new this(y):h(y);y>S;S++)k=g?v(e[S],S):e[S],f(m,S,k);else for(m=r?new this:[],x=(w=l(e,A)).next;!(b=i(x,w)).done;S++)k=g?a(w,v,[b.value,S],!0):b.value,f(m,S,k);return m.length=S,m}},7979:function(t,e,r){var n=r(8551);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},8014:function(t,e,r){var n=r(1291),i=Math.min;t.exports=function(t){var e=n(t);return e>0?i(e,9007199254740991):0}},8183:function(t,e,r){var n=r(9504),i=r(1291),o=r(655),a=r(7750),u=n("".charAt),c=n("".charCodeAt),s=n("".slice),f=function(t){return function(e,r){var n,f,l=o(a(e)),p=i(r),h=l.length;return p<0||p>=h?t?"":void 0:(n=c(l,p))<55296||n>56319||p+1===h||(f=c(l,p+1))<56320||f>57343?t?u(l,p):n:t?s(l,p,p+2):f-56320+(n-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},8227:function(t,e,r){var n=r(4576),i=r(5745),o=r(9297),a=r(3392),u=r(4495),c=r(7040),s=n.Symbol,f=i("wks"),l=c?s.for||s:s&&s.withoutSetter||a;t.exports=function(t){return o(f,t)||(f[t]=u&&o(s,t)?s[t]:l("Symbol."+t)),f[t]}},8242:function(t,e,r){var n=r(9565),i=r(7751),o=r(8227),a=r(6840);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,u=o("toPrimitive");e&&!e[u]&&a(e,u,(function(t){return n(r,this)}),{arity:1})}},8265:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},8406:function(t,e,r){r(3792),r(7337);var n=r(6518),i=r(4576),o=r(3389),a=r(7751),u=r(9565),c=r(9504),s=r(3724),f=r(7416),l=r(6840),p=r(2106),h=r(6279),d=r(687),v=r(3994),g=r(1181),y=r(679),m=r(4901),b=r(9297),w=r(6080),x=r(6955),k=r(8551),A=r(34),S=r(655),_=r(2360),I=r(6980),O=r(81),E=r(851),P=r(2529),C=r(2812),B=r(8227),j=r(4488),T=B("iterator"),W="URLSearchParams",$=W+"Iterator",N=g.set,R=g.getterFor(W),F=g.getterFor($),L=o("fetch"),M=o("Request"),U=o("Headers"),D=M&&M.prototype,G=U&&U.prototype,Q=i.TypeError,q=i.encodeURIComponent,z=String.fromCharCode,Y=a("String","fromCodePoint"),H=parseInt,J=c("".charAt),V=c([].join),X=c([].push),K=c("".replace),Z=c([].shift),tt=c([].splice),et=c("".split),rt=c("".slice),nt=c(/./.exec),it=/\+/g,ot=/^[0-9a-f]+$/i,at=function(t,e){var r=rt(t,e,e+2);return nt(ot,r)?H(r,16):NaN},ut=function(t){for(var e=0,r=128;r>0&&0!==(t&r);r>>=1)e++;return e},ct=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},st=function(t){for(var e=(t=K(t,it," ")).length,r="",n=0;n<e;){var i=J(t,n);if("%"===i){if("%"===J(t,n+1)||n+3>e){r+="%",n++;continue}var o=at(t,n+1);if(o!=o){r+=i,n++;continue}n+=2;var a=ut(o);if(0===a)i=z(o);else{if(1===a||a>4){r+="�",n++;continue}for(var u=[o],c=1;c<a&&!(++n+3>e||"%"!==J(t,n));){var s=at(t,n+1);if(s!=s){n+=3;break}if(s>191||s<128)break;X(u,s),n+=2,c++}if(u.length!==a){r+="�";continue}var f=ct(u);null===f?r+="�":i=Y(f)}}r+=i,n++}return r},ft=/[!'()~]|%20/g,lt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},pt=function(t){return lt[t]},ht=function(t){return K(q(t),ft,pt)},dt=v((function(t,e){N(this,{type:$,target:R(t).entries,index:0,kind:e})}),W,(function(){var t=F(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,P(void 0,!0);var n=e[r];switch(t.kind){case"keys":return P(n.key,!1);case"values":return P(n.value,!1)}return P([n.key,n.value],!1)}),!0),vt=function(t){this.entries=[],this.url=null,void 0!==t&&(A(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===J(t,0)?rt(t,1):t:S(t)))};vt.prototype={type:W,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,i,o,a,c,s=this.entries,f=E(t);if(f)for(r=(e=O(t,f)).next;!(n=u(r,e)).done;){if(o=(i=O(k(n.value))).next,(a=u(o,i)).done||(c=u(o,i)).done||!u(o,i).done)throw new Q("Expected sequence with length 2");X(s,{key:S(a.value),value:S(c.value)})}else for(var l in t)b(t,l)&&X(s,{key:l,value:S(t[l])})},parseQuery:function(t){if(t)for(var e,r,n=this.entries,i=et(t,"&"),o=0;o<i.length;)(e=i[o++]).length&&(r=et(e,"="),X(n,{key:st(Z(r)),value:st(V(r,"="))}))},serialize:function(){for(var t,e=this.entries,r=[],n=0;n<e.length;)t=e[n++],X(r,ht(t.key)+"="+ht(t.value));return V(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var gt=function(){y(this,yt);var t=N(this,new vt(arguments.length>0?arguments[0]:void 0));s||(this.size=t.entries.length)},yt=gt.prototype;if(h(yt,{append:function(t,e){var r=R(this);C(arguments.length,2),X(r.entries,{key:S(t),value:S(e)}),s||this.length++,r.updateURL()},delete:function(t){for(var e=R(this),r=C(arguments.length,1),n=e.entries,i=S(t),o=r<2?void 0:arguments[1],a=void 0===o?o:S(o),u=0;u<n.length;){var c=n[u];if(c.key!==i||void 0!==a&&c.value!==a)u++;else if(tt(n,u,1),void 0!==a)break}s||(this.size=n.length),e.updateURL()},get:function(t){var e=R(this).entries;C(arguments.length,1);for(var r=S(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){var e=R(this).entries;C(arguments.length,1);for(var r=S(t),n=[],i=0;i<e.length;i++)e[i].key===r&&X(n,e[i].value);return n},has:function(t){for(var e=R(this).entries,r=C(arguments.length,1),n=S(t),i=r<2?void 0:arguments[1],o=void 0===i?i:S(i),a=0;a<e.length;){var u=e[a++];if(u.key===n&&(void 0===o||u.value===o))return!0}return!1},set:function(t,e){var r=R(this);C(arguments.length,1);for(var n,i=r.entries,o=!1,a=S(t),u=S(e),c=0;c<i.length;c++)(n=i[c]).key===a&&(o?tt(i,c--,1):(o=!0,n.value=u));o||X(i,{key:a,value:u}),s||(this.size=i.length),r.updateURL()},sort:function(){var t=R(this);j(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,r=R(this).entries,n=w(t,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((e=r[i++]).value,e.key,this)},keys:function(){return new dt(this,"keys")},values:function(){return new dt(this,"values")},entries:function(){return new dt(this,"entries")}},{enumerable:!0}),l(yt,T,yt.entries,{name:"entries"}),l(yt,"toString",(function(){return R(this).serialize()}),{enumerable:!0}),s&&p(yt,"size",{get:function(){return R(this).entries.length},configurable:!0,enumerable:!0}),d(gt,W),n({global:!0,constructor:!0,forced:!f},{URLSearchParams:gt}),!f&&m(U)){var mt=c(G.has),bt=c(G.set),wt=function(t){if(A(t)){var e,r=t.body;if(x(r)===W)return e=t.headers?new U(t.headers):new U,mt(e,"content-type")||bt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),_(t,{body:I(0,S(r)),headers:I(0,e)})}return t};if(m(L)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return L(t,arguments.length>1?wt(arguments[1]):{})}}),m(M)){var xt=function(t){return y(this,D),new M(t,arguments.length>1?wt(arguments[1]):{})};D.constructor=xt,xt.prototype=D,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:xt})}}t.exports={URLSearchParams:gt,getState:R}},8408:function(t,e,r){r(8406)},8429:function(t,e,r){var n=r(9039),i=r(4576).RegExp,o=n((function(){var t=i("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),a=o||n((function(){return!i("a","y").sticky})),u=o||n((function(){var t=i("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:u,MISSED_STICKY:a,UNSUPPORTED_Y:o}},8480:function(t,e,r){var n=r(1828),i=r(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},8523:function(t,e,r){r(6468)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(6938))},8551:function(t,e,r){var n=r(34),i=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not an object")}},8598:function(t,e,r){var n=r(6518),i=r(9504),o=r(7055),a=r(5397),u=r(4598),c=i([].join);n({target:"Array",proto:!0,forced:o!==Object||!u("join",",")},{join:function(t){return c(a(this),void 0===t?",":t)}})},8622:function(t,e,r){var n=r(4576),i=r(4901),o=n.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},8686:function(t,e,r){var n=r(3724),i=r(9039);t.exports=n&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8706:function(t,e,r){var n=r(6518),i=r(9039),o=r(4376),a=r(34),u=r(8981),c=r(6198),s=r(6837),f=r(4659),l=r(1469),p=r(597),h=r(8227),d=r(9519),v=h("isConcatSpreadable"),g=d>=51||!i((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),y=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,arity:1,forced:!g||!p("concat")},{concat:function(t){var e,r,n,i,o,a=u(this),p=l(a,0),h=0;for(e=-1,n=arguments.length;e<n;e++)if(y(o=-1===e?a:arguments[e]))for(i=c(o),s(h+i),r=0;r<i;r++,h++)r in o&&f(p,h,o[r]);else s(h+1),f(p,h++,o);return p.length=h,p}})},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8745:function(t,e,r){var n=r(616),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},8773:function(t,e){var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},8781:function(t,e,r){var n=r(350).PROPER,i=r(6840),o=r(8551),a=r(655),u=r(9039),c=r(1034),s="toString",f=RegExp.prototype,l=f[s],p=u((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),h=n&&l.name!==s;(p||h)&&i(f,s,(function(){var t=o(this);return"/"+a(t.source)+"/"+a(c(t))}),{unsafe:!0})},8814:function(t,e,r){var n=r(9039),i=r(4576).RegExp;t.exports=n((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},8981:function(t,e,r){var n=r(7750),i=Object;t.exports=function(t){return i(n(t))}},9039:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},9124:function(t,e,r){var n=r(1354),i=r.n(n),o=r(6314),a=r.n(o)()(i());a.push([t.id,".clear {\r\n clear: both;\r\n}\r\n#Wikiplus-Quickedit-Summary-Input {\r\n width: 50%;\r\n}\r\n#Wikiplus-Quickedit-Preview-Submit,\r\n#Wikiplus-Quickedit-Submit {\r\n margin-top: 5px;\r\n padding: revert;\r\n}\r\n.Wikiplus-Btn {\r\n position: relative;\r\n float: left;\r\n margin: 3px 5px;\r\n padding: 3px 1em;\r\n width: auto;\r\n background-color: #fff;\r\n box-shadow: 0 1px 2px #aaa;\r\n text-align: center;\r\n cursor: pointer;\r\n}\r\n.Wikiplus-Btn a {\r\n position: relative;\r\n display: block;\r\n margin: 0;\r\n color: #000;\r\n text-decoration: none;\r\n}\r\n.Wikiplus-InterBox {\r\n position: absolute;\r\n top: 20%;\r\n z-index: 200;\r\n padding: 20px 10px;\r\n width: 600px;\r\n min-height: 100px;\r\n border: 1px rgba(161, 154, 220, 0.41) solid;\r\n background-color: #edf9f7;\r\n user-select: none;\r\n -webkit-user-select: none;\r\n -moz-user-select: none;\r\n -ms-user-select: none;\r\n}\r\n.Wikiplus-InterBox-Header {\r\n position: relative;\r\n top: 0;\r\n top: -8px;\r\n margin: 0;\r\n width: 100%;\r\n border-bottom: 1px #6cf solid;\r\n text-align: left;\r\n font-size: 15px;\r\n line-height: 30px;\r\n cursor: move;\r\n}\r\n.Wikiplus-InterBox-Input {\r\n margin: 20px;\r\n width: 60%;\r\n}\r\n.Wikiplus-InterBox-Btn {\r\n position: relative;\r\n float: right;\r\n margin: auto 3px;\r\n padding: 6px 12px;\r\n border: 1px solid #dedede;\r\n background-color: #fff;\r\n vertical-align: middle;\r\n text-align: center;\r\n cursor: pointer;\r\n}\r\n.Wikiplus-InterBox-Btn:hover {\r\n background-color: #e8e8e8;\r\n}\r\n.Wikiplus-InterBox-Close {\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n margin: 3px 7px;\r\n font-size: 20px;\r\n cursor: pointer;\r\n}\r\n.Wikiplus-InterBox label {\r\n font-size: 13px;\r\n}\r\n.Wikiplus-InterBox table.diff {\r\n table-layout: auto !important;\r\n}\r\n.Wikiplus-InterBox table.diff .diff-addedline,\r\n.Wikiplus-InterBox table.diff .diff-deletedline,\r\n.Wikiplus-InterBox table.diff .diff-lineno {\r\n width: 50%;\r\n}\r\n.Wikiplus-InterBox table.diff .diff-marker {\r\n text-align: left;\r\n}\r\n#Wikiplus-Quickedit-Preview-Output {\r\n clear: both;\r\n margin: 5px 0;\r\n}\r\n#Wikiplus-Quickedit {\r\n word-break: break-all;\r\n width: 100%;\r\n min-height: 500px;\r\n}\r\n.Wikiplus-Banner {\r\n margin: 0;\r\n padding: 10px 5px;\r\n min-height: 50px;\r\n background: rgba(193, 222, 214, 0.51);\r\n text-align: center;\r\n font-size: 30px;\r\n font-family: 微软雅黑;\r\n}\r\n.MoeNotification-notice {\r\n position: relative;\r\n display: none;\r\n overflow: hidden;\r\n margin: 3px 5px;\r\n padding: 0 5px;\r\n width: auto;\r\n box-shadow: 0 3px 3px #aaa;\r\n font-size: 14px !important;\r\n}\r\n.MoeNotification-notice span {\r\n position: relative;\r\n margin: 3px auto 3px 3px;\r\n color: #fff;\r\n text-align: left;\r\n font-size: 14px !important;\r\n font-family: Arial, Tahoma, Microsoft YaHei, \\5fae\\8f6f\\96c5\\9ed1, Hiragino Sans GB,\r\n Microsoft JhengHei, 微軟正黑體, sans-serif;\r\n line-height: 1.5 !important;\r\n}\r\n.MoeNotification-notice-success {\r\n border-left: 5px #8dda93 solid;\r\n border-bottom-left-radius: 3px;\r\n border-top-left-radius: 3px;\r\n background-color: #008a00;\r\n}\r\n.MoeNotification-notice-warning {\r\n border-left: 5px #ffdf00 solid;\r\n border-bottom-left-radius: 3px;\r\n border-top-left-radius: 3px;\r\n background-color: #f4bd00;\r\n}\r\n.MoeNotification-notice-warning span {\r\n color: #000;\r\n}\r\n.MoeNotification-notice-error {\r\n border-left: 5px #e71717 solid;\r\n border-bottom-left-radius: 3px;\r\n border-top-left-radius: 3px;\r\n background-color: #b00e06;\r\n}\r\n#MoeNotification {\r\n position: fixed;\r\n bottom: 30px;\r\n left: 0;\r\n z-index: 713;\r\n min-width: 20%;\r\n}\r\n.mw-editsection-divider {\r\n display: inline !important;\r\n}\r\n.skin-vector #Wikiplus-Quickedit-Summary-Input {\r\n margin-top: 5px;\r\n}\r\n","",{version:3,sources:["webpack://./src/wikiplus.css"],names:[],mappings:"AAAA;IACI,WAAW;AACf;AACA;IACI,UAAU;AACd;AACA;;IAEI,eAAe;IACf,eAAe;AACnB;AACA;IACI,kBAAkB;IAClB,WAAW;IACX,eAAe;IACf,gBAAgB;IAChB,WAAW;IACX,sBAAsB;IACtB,0BAA0B;IAC1B,kBAAkB;IAClB,eAAe;AACnB;AACA;IACI,kBAAkB;IAClB,cAAc;IACd,SAAS;IACT,WAAW;IACX,qBAAqB;AACzB;AACA;IACI,kBAAkB;IAClB,QAAQ;IACR,YAAY;IACZ,kBAAkB;IAClB,YAAY;IACZ,iBAAiB;IACjB,2CAA2C;IAC3C,yBAAyB;IACzB,iBAAiB;IACjB,yBAAyB;IACzB,sBAAsB;IACtB,qBAAqB;AACzB;AACA;IACI,kBAAkB;IAClB,MAAM;IACN,SAAS;IACT,SAAS;IACT,WAAW;IACX,6BAA6B;IAC7B,gBAAgB;IAChB,eAAe;IACf,iBAAiB;IACjB,YAAY;AAChB;AACA;IACI,YAAY;IACZ,UAAU;AACd;AACA;IACI,kBAAkB;IAClB,YAAY;IACZ,gBAAgB;IAChB,iBAAiB;IACjB,yBAAyB;IACzB,sBAAsB;IACtB,sBAAsB;IACtB,kBAAkB;IAClB,eAAe;AACnB;AACA;IACI,yBAAyB;AAC7B;AACA;IACI,kBAAkB;IAClB,MAAM;IACN,QAAQ;IACR,eAAe;IACf,eAAe;IACf,eAAe;AACnB;AACA;IACI,eAAe;AACnB;AACA;IACI,6BAA6B;AACjC;AACA;;;IAGI,UAAU;AACd;AACA;IACI,gBAAgB;AACpB;AACA;IACI,WAAW;IACX,aAAa;AACjB;AACA;IACI,qBAAqB;IACrB,WAAW;IACX,iBAAiB;AACrB;AACA;IACI,SAAS;IACT,iBAAiB;IACjB,gBAAgB;IAChB,qCAAqC;IACrC,kBAAkB;IAClB,eAAe;IACf,iBAAiB;AACrB;AACA;IACI,kBAAkB;IAClB,aAAa;IACb,gBAAgB;IAChB,eAAe;IACf,cAAc;IACd,WAAW;IACX,0BAA0B;IAC1B,0BAA0B;AAC9B;AACA;IACI,kBAAkB;IAClB,wBAAwB;IACxB,WAAW;IACX,gBAAgB;IAChB,0BAA0B;IAC1B;6CACyC;IACzC,2BAA2B;AAC/B;AACA;IACI,8BAA8B;IAC9B,8BAA8B;IAC9B,2BAA2B;IAC3B,yBAAyB;AAC7B;AACA;IACI,8BAA8B;IAC9B,8BAA8B;IAC9B,2BAA2B;IAC3B,yBAAyB;AAC7B;AACA;IACI,WAAW;AACf;AACA;IACI,8BAA8B;IAC9B,8BAA8B;IAC9B,2BAA2B;IAC3B,yBAAyB;AAC7B;AACA;IACI,eAAe;IACf,YAAY;IACZ,OAAO;IACP,YAAY;IACZ,cAAc;AAClB;AACA;IACI,0BAA0B;AAC9B;AACA;IACI,eAAe;AACnB",sourcesContent:[".clear {\r\n clear: both;\r\n}\r\n#Wikiplus-Quickedit-Summary-Input {\r\n width: 50%;\r\n}\r\n#Wikiplus-Quickedit-Preview-Submit,\r\n#Wikiplus-Quickedit-Submit {\r\n margin-top: 5px;\r\n padding: revert;\r\n}\r\n.Wikiplus-Btn {\r\n position: relative;\r\n float: left;\r\n margin: 3px 5px;\r\n padding: 3px 1em;\r\n width: auto;\r\n background-color: #fff;\r\n box-shadow: 0 1px 2px #aaa;\r\n text-align: center;\r\n cursor: pointer;\r\n}\r\n.Wikiplus-Btn a {\r\n position: relative;\r\n display: block;\r\n margin: 0;\r\n color: #000;\r\n text-decoration: none;\r\n}\r\n.Wikiplus-InterBox {\r\n position: absolute;\r\n top: 20%;\r\n z-index: 200;\r\n padding: 20px 10px;\r\n width: 600px;\r\n min-height: 100px;\r\n border: 1px rgba(161, 154, 220, 0.41) solid;\r\n background-color: #edf9f7;\r\n user-select: none;\r\n -webkit-user-select: none;\r\n -moz-user-select: none;\r\n -ms-user-select: none;\r\n}\r\n.Wikiplus-InterBox-Header {\r\n position: relative;\r\n top: 0;\r\n top: -8px;\r\n margin: 0;\r\n width: 100%;\r\n border-bottom: 1px #6cf solid;\r\n text-align: left;\r\n font-size: 15px;\r\n line-height: 30px;\r\n cursor: move;\r\n}\r\n.Wikiplus-InterBox-Input {\r\n margin: 20px;\r\n width: 60%;\r\n}\r\n.Wikiplus-InterBox-Btn {\r\n position: relative;\r\n float: right;\r\n margin: auto 3px;\r\n padding: 6px 12px;\r\n border: 1px solid #dedede;\r\n background-color: #fff;\r\n vertical-align: middle;\r\n text-align: center;\r\n cursor: pointer;\r\n}\r\n.Wikiplus-InterBox-Btn:hover {\r\n background-color: #e8e8e8;\r\n}\r\n.Wikiplus-InterBox-Close {\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n margin: 3px 7px;\r\n font-size: 20px;\r\n cursor: pointer;\r\n}\r\n.Wikiplus-InterBox label {\r\n font-size: 13px;\r\n}\r\n.Wikiplus-InterBox table.diff {\r\n table-layout: auto !important;\r\n}\r\n.Wikiplus-InterBox table.diff .diff-addedline,\r\n.Wikiplus-InterBox table.diff .diff-deletedline,\r\n.Wikiplus-InterBox table.diff .diff-lineno {\r\n width: 50%;\r\n}\r\n.Wikiplus-InterBox table.diff .diff-marker {\r\n text-align: left;\r\n}\r\n#Wikiplus-Quickedit-Preview-Output {\r\n clear: both;\r\n margin: 5px 0;\r\n}\r\n#Wikiplus-Quickedit {\r\n word-break: break-all;\r\n width: 100%;\r\n min-height: 500px;\r\n}\r\n.Wikiplus-Banner {\r\n margin: 0;\r\n padding: 10px 5px;\r\n min-height: 50px;\r\n background: rgba(193, 222, 214, 0.51);\r\n text-align: center;\r\n font-size: 30px;\r\n font-family: 微软雅黑;\r\n}\r\n.MoeNotification-notice {\r\n position: relative;\r\n display: none;\r\n overflow: hidden;\r\n margin: 3px 5px;\r\n padding: 0 5px;\r\n width: auto;\r\n box-shadow: 0 3px 3px #aaa;\r\n font-size: 14px !important;\r\n}\r\n.MoeNotification-notice span {\r\n position: relative;\r\n margin: 3px auto 3px 3px;\r\n color: #fff;\r\n text-align: left;\r\n font-size: 14px !important;\r\n font-family: Arial, Tahoma, Microsoft YaHei, \\5fae\\8f6f\\96c5\\9ed1, Hiragino Sans GB,\r\n Microsoft JhengHei, 微軟正黑體, sans-serif;\r\n line-height: 1.5 !important;\r\n}\r\n.MoeNotification-notice-success {\r\n border-left: 5px #8dda93 solid;\r\n border-bottom-left-radius: 3px;\r\n border-top-left-radius: 3px;\r\n background-color: #008a00;\r\n}\r\n.MoeNotification-notice-warning {\r\n border-left: 5px #ffdf00 solid;\r\n border-bottom-left-radius: 3px;\r\n border-top-left-radius: 3px;\r\n background-color: #f4bd00;\r\n}\r\n.MoeNotification-notice-warning span {\r\n color: #000;\r\n}\r\n.MoeNotification-notice-error {\r\n border-left: 5px #e71717 solid;\r\n border-bottom-left-radius: 3px;\r\n border-top-left-radius: 3px;\r\n background-color: #b00e06;\r\n}\r\n#MoeNotification {\r\n position: fixed;\r\n bottom: 30px;\r\n left: 0;\r\n z-index: 713;\r\n min-width: 20%;\r\n}\r\n.mw-editsection-divider {\r\n display: inline !important;\r\n}\r\n.skin-vector #Wikiplus-Quickedit-Summary-Input {\r\n margin-top: 5px;\r\n}\r\n"],sourceRoot:""}]),e.A=a},9167:function(t,e,r){var n=r(4576);t.exports=n},9213:function(t,e,r){var n=r(6080),i=r(9504),o=r(7055),a=r(8981),u=r(6198),c=r(1469),s=i([].push),f=function(t){var e=1===t,r=2===t,i=3===t,f=4===t,l=6===t,p=7===t,h=5===t||l;return function(d,v,g,y){for(var m,b,w=a(d),x=o(w),k=u(x),A=n(v,g),S=0,_=y||c,I=e?_(d,k):r||p?_(d,0):void 0;k>S;S++)if((h||S in x)&&(b=A(m=x[S],S,w),t))if(e)I[S]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return S;case 2:s(I,m)}else switch(t){case 4:return!1;case 7:s(I,m)}return l?-1:i||f?f:I}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},9225:function(t,e,r){var n,i,o,a,u=r(4576),c=r(8745),s=r(6080),f=r(4901),l=r(9297),p=r(9039),h=r(397),d=r(7680),v=r(4055),g=r(2812),y=r(9544),m=r(6193),b=u.setImmediate,w=u.clearImmediate,x=u.process,k=u.Dispatch,A=u.Function,S=u.MessageChannel,_=u.String,I=0,O={},E="onreadystatechange";p((function(){n=u.location}));var P=function(t){if(l(O,t)){var e=O[t];delete O[t],e()}},C=function(t){return function(){P(t)}},B=function(t){P(t.data)},j=function(t){u.postMessage(_(t),n.protocol+"//"+n.host)};b&&w||(b=function(t){g(arguments.length,1);var e=f(t)?t:A(t),r=d(arguments,1);return O[++I]=function(){c(e,void 0,r)},i(I),I},w=function(t){delete O[t]},m?i=function(t){x.nextTick(C(t))}:k&&k.now?i=function(t){k.now(C(t))}:S&&!y?(a=(o=new S).port2,o.port1.onmessage=B,i=s(a.postMessage,a)):u.addEventListener&&f(u.postMessage)&&!u.importScripts&&n&&"file:"!==n.protocol&&!p(j)?(i=j,u.addEventListener("message",B,!1)):i=E in v("script")?function(t){h.appendChild(v("script"))[E]=function(){h.removeChild(this),P(t)}}:function(t){setTimeout(C(t),0)}),t.exports={set:b,clear:w}},9228:function(t,e,r){r(7495);var n=r(9565),i=r(6840),o=r(7323),a=r(9039),u=r(8227),c=r(6699),s=u("species"),f=RegExp.prototype;t.exports=function(t,e,r,l){var p=u(t),h=!a((function(){var e={};return e[p]=function(){return 7},7!==""[t](e)})),d=h&&!a((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[s]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return e=!0,null},r[p](""),!e}));if(!h||!d||r){var v=/./[p],g=e(p,""[t],(function(t,e,r,i,a){var u=e.exec;return u===o||u===f.exec?h&&!a?{done:!0,value:n(v,e,r,i)}:{done:!0,value:n(t,r,e,i)}:{done:!1}}));i(String.prototype,t,g[0]),i(f,p,g[1])}l&&c(f[p],"sham",!0)}},9296:function(t,e,r){var n=r(4055)("span").classList,i=n&&n.constructor&&n.constructor.prototype;t.exports=i===Object.prototype?void 0:i},9297:function(t,e,r){var n=r(9504),i=r(8981),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},9306:function(t,e,r){var n=r(4901),i=r(6823),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not a function")}},9432:function(t,e,r){var n=r(6518),i=r(8981),o=r(1072);n({target:"Object",stat:!0,forced:r(9039)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},9433:function(t,e,r){var n=r(4576),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},9463:function(t,e,r){var n=r(6518),i=r(3724),o=r(4576),a=r(9504),u=r(9297),c=r(4901),s=r(1625),f=r(655),l=r(2106),p=r(7740),h=o.Symbol,d=h&&h.prototype;if(i&&c(h)&&(!("description"in d)||void 0!==h().description)){var v={},g=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),e=s(d,this)?new h(t):void 0===t?h():h(t);return""===t&&(v[e]=!0),e};p(g,h),g.prototype=d,d.constructor=g;var y="Symbol(description detection)"===String(h("description detection")),m=a(d.valueOf),b=a(d.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),k=a("".slice);l(d,"description",{configurable:!0,get:function(){var t=m(this);if(u(v,t))return"";var e=b(t),r=y?k(e,7,-1):x(e,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}},9504:function(t,e,r){var n=r(616),i=Function.prototype,o=i.call,a=n&&i.bind.bind(o,o);t.exports=n?a:function(t){return function(){return o.apply(t,arguments)}}},9519:function(t,e,r){var n,i,o=r(4576),a=r(2839),u=o.process,c=o.Deno,s=u&&u.versions||c&&c.version,f=s&&s.v8;f&&(i=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),t.exports=i},9539:function(t,e,r){var n=r(9565),i=r(8551),o=r(5966);t.exports=function(t,e,r){var a,u;i(t);try{if(!(a=o(t,"return"))){if("throw"===e)throw r;return r}a=n(a,t)}catch(t){u=!0,a=t}if("throw"===e)throw r;if(u)throw a;return i(a),r}},9544:function(t,e,r){var n=r(2839);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},9565:function(t,e,r){var n=r(616),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},9572:function(t,e,r){var n=r(9297),i=r(6840),o=r(3640),a=r(8227)("toPrimitive"),u=Date.prototype;n(u,a)||i(u,a,o)},9617:function(t,e,r){var n=r(5397),i=r(5610),o=r(6198),a=function(t){return function(e,r,a){var u=n(e),c=o(u);if(0===c)return!t&&-1;var s,f=i(a,c);if(t&&r!=r){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},9773:function(t,e,r){var n=r(6518),i=r(4495),o=r(9039),a=r(3717),u=r(8981);n({target:"Object",stat:!0,forced:!i||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(u(t)):[]}})}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={id:n,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.nc=void 0;r(2675),r(9463),r(2259),r(5700),r(8706),r(2008),r(4423),r(3792),r(8598),r(4782),r(9572),r(2010),r(2892),r(3851),r(1278),r(875),r(9432),r(6099),r(3362),r(7495),r(1699),r(7764),r(5440),r(3500),r(2953),r(3418),r(5506),r(8781),r(3296),r(7208),r(8408);function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=function(){return t=function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n="4.1.0",(r=o(r="version"))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n},(e=[{key:"isArticle",get:function(){return window.mw.config.get("wgIsArticle")}},{key:"currentPageName",get:function(){return window.mw.config.get("wgPageName").replace(/ /g,"_")}},{key:"articleId",get:function(){return window.mw.config.get("wgArticleId")}},{key:"revisionId",get:function(){return window.mw.config.get("wgRevisionId")}},{key:"latestRevisionId",get:function(){return window.mw.config.get("wgCurRevisionId")}},{key:"articlePath",get:function(){return window.mw.config.get("wgArticlePath")}},{key:"scriptPath",get:function(){return window.mw.config.get("wgScriptPath")}},{key:"action",get:function(){return window.mw.config.get("wgAction")}},{key:"skin",get:function(){return window.mw.config.get("skin")}},{key:"userGroups",get:function(){return window.mw.config.get("wgUserGroups")}},{key:"wikiId",get:function(){return window.mw.config.get("wgWikiID")}}])&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}(),u=new a;function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,u=[],c=!0,s=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */l=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r,n){Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(e,r,n,i){var o=r&&r.prototype instanceof d?r:d,a=Object.create(o.prototype);return s(a,"_invoke",function(e,r,n){var i=1;return function(o,a){if(3===i)throw Error("Generator is already running");if(4===i){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===i)throw i=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=3;var s=p(e,r,n);if("normal"===s.type){if(i=n.done?4:2,s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=4,n.method="throw",n.arg=s.arg)}}}(e,n,new I(i||[])),!0),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h={};function d(){}function v(){}function g(){}var y={};s(y,o,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(O([])));b&&b!==r&&n.call(b,o)&&(y=b);var w=g.prototype=d.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,o,a,u){var s=p(t[i],t,o);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==c(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var i;s(this,"_invoke",(function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}),!0)}function A(e,r){var n=r.method,i=e.i[n];if(i===t)return r.delegate=null,"throw"===n&&e.i.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=p(i,e.i,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var a=o.arg;return a?a.done?(r[e.r]=a.value,r.next=e.n,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function S(t){this.tryEntries.push(t)}function _(e){var r=e[4]||{};r.type="normal",r.arg=t,e[4]=r}function I(t){this.tryEntries=[[-1]],t.forEach(S,this),this.reset(!0)}function O(e){if(null!=e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(c(e)+" is not iterable")}return v.prototype=g,s(w,"constructor",g),s(g,"constructor",v),s(g,u,v.displayName="GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},x(k.prototype),s(k.prototype,a,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new k(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),s(w,u,"Generator"),s(w,o,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},e.values=O,I.prototype={constructor:I,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(t){a.type="throw",a.arg=e,r.next=t}for(var i=r.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o[4],u=this.prev,c=o[1],s=o[2];if(-1===o[0])return n("end"),!1;if(!c&&!s)throw Error("try statement without catch or finally");if(null!=o[0]&&o[0]<=u){if(u<c)return this.method="next",this.arg=t,n(c),!0;if(u<s)return n(s),!1}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var i=n;break}}i&&("break"===t||"continue"===t)&&i[0]<=e&&e<=i[2]&&(i=null);var o=i?i[4]:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i[2],h):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),_(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var i=n.arg;_(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:O(e),r:r,n:n},"next"===this.method&&(this.arg=t),h}},e}function p(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){p(o,n,i,a,u,"next",t)}function u(t){p(o,n,i,a,u,"throw",t)}a(void 0)}))}}function d(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function v(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}var g,y,m,b=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,r=null,n=[{key:"get",value:(o=h(l().mark((function e(r){var n,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new URL(t.base),Object.keys(r).forEach((function(t){n.searchParams.append(t,r[t])})),e.next=4,fetch(n,{credentials:"same-origin",headers:{"Api-User-Agent":"Wikiplus/".concat(u.version," (").concat(u.wikiId,")")}});case 4:return i=e.sent,e.next=7,i.json();case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)}))),function(t){return o.apply(this,arguments)})},{key:"post",value:(i=h(l().mark((function e(r){var n,i,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new URL(t.base),i=new FormData,Object.entries(r).forEach((function(t){var e=s(t,2),r=e[0],n=e[1];i.append(r,n)})),e.next=5,fetch(n,{method:"POST",body:i,credentials:"same-origin",headers:{"Api-User-Agent":"Wikiplus/".concat(u.version," (").concat(u.wikiId,")")}});case 5:return o=e.sent,e.next=8,o.json();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)}))),function(t){return i.apply(this,arguments)})}],r&&d(e.prototype,r),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n,i,o}();g=b,y="base",m="".concat(location.protocol,"//").concat(location.host).concat(u.scriptPath,"/api.php"),(y=v(y))in g?Object.defineProperty(g,y,{value:m,enumerable:!0,configurable:!0,writable:!0}):g[y]=m;var w=b,x=(r(6033),r(825),JSON.parse('{"__language":"zh-cn","__author":["Eridanus Sora"],"__version":"212","unknown_error_name":"未知的错误名","api_unaccessiable":"无可用的API","api_unwriteable":"无可用的写入API","fail_to_get_timestamp":"无法获得页面编辑起始时间戳","fail_to_get_edittoken":"无法获得页面编辑权标","fail_to_get_pageinfo":"无法获得页面信息","not_autoconfirmed_user":"非自动确认用户","hit_abusefilter":"被防滥用过滤器拦截","unknown_edit_error":"未知编辑错误","unknown_edit_error_message":"未知编辑错误($1)","notitle":"无法编辑空标题页面","notext":"缺少页面内容","notoken":"空编辑权标","invalidsection":"段落编号非法","protectedtitle":"该标题被保护,无法创建","cantcreate":"无新建页面权限","cantcreate_anon":"匿名用户无新建页面权限","articleexists":"无法创建已经存在的页面","noimageredirect_anon":"匿名用户无新建文件重定向权限","noimageredirect":"无新建文件重定向权限","spamdetected":"文本含有敏感内容,被SPAM过滤器拦截","filtered":"编辑被过滤器拦截","contenttoobig":"文本超过最大长度限制","noedit_anon":"匿名用户无编辑页面权限","noedit":"无编辑页面权限","pagedeleted":"编辑时,此页面被删除","emptypage":"无法新建空内容页面","emptynewsection":"无法新建空内容段落","editconflict":"编辑冲突,请手工检查页面当前内容与提交内容差异并修正后,刷新页面提交","revwrongpage":"编辑的修订版本与编辑的页面不匹配","undofailure":"由于存在冲突的中间版本,无法撤销编辑","missingtitle":"无法创建或编辑空标题页面","mustbeposted":"必须使用POST方式提交编辑","readapidenied":"无读取API使用权限","writeapidenied":"无通过API编辑页面权限","noapiwrite":"本Wiki未开启可用的写入API","badtoken":"非法的编辑权标","missingparam":"缺少必要参数,页面名和页面ID不能均为空","invalidparammix":"参数重复,页面名和页面ID不能同时给定","invalidtitle":"非法的标题","nosuchpageid":"不存在的页面ID","pagecannotexist":"该名称空间不允许新建一般页面","nosuchrevid":"不存在的修订版本","badmd5":"非法的MD5值","hookaborted":"编辑被扩展Hook拦截","parseerror":"无法解析页面文本","summaryrequired":"编辑摘要不能为空","blocked":"已被封禁","ratelimited":"达到操作速率上限,请稍后重试","unknownerror":"未知错误","nosuchsection":"无法编辑不存在的段落","sectionsnotsupported":"该页面不支持段落编辑","editnotsupported":"该页面不支持通过API编辑","appendnotsupported":"该页面无法在前后插入文本","redirect_appendonly":"在遵循重定向的情况下,只能进行前后插入或创建新段落","badformat":"文本格式错误","customcssprotected":"无法编辑用户CSS页","customjsprotected":"无法编辑用户JS页","cascadeprotected":"该页面被级联保护","network_edit_error":"由于网络原因编辑失败","redirect_to_summary":"重定向页面至[[$1]] // Wikiplus","redirect_from_summary":"将[[$1]]重定向至[[$2]] // Wikiplus","need_init":"页面类未加载完成","fail_to_get_wikitext":"无法获得页面文本","quickedit_topbtn":"快速编辑","quickedit_sectionbtn":"快速编辑","fail_to_init_quickedit":"无法加载快速编辑","back":"返回","goto_editbox":"到编辑框","summary_placehold":"请输入编辑摘要","submit":"提交","publish_page":"发布页面","publish_change":"发布更改","preview":"预览","cancel":"取消","mark_minoredit":"标记为小编辑","onclose_confirm":"[Wikiplus] 您确认要关闭/刷新页面吗?这会导致您的编辑数据丢失","fail_to_get_wikitext_when_edit":"无法获得页面文本以编辑","cant_parse_wikitext":"无法解析维基文本","loading_preview":"正在读取预览","submitting_edit":"正在提交编辑","edit_success":"编辑成功 用时$1ms","empty_page_confirm":"您向编辑函数传入了空内容参数 这将清空页面\\r\\n由于该行为危险 请将config参数的empty键值设定为true来确认","cross_page_edit":"编辑目标位于其他页面 正在获取基础信息","cross_page_edit_submit":"基础信息获取成功 正在提交编辑","cross_page_edit_error":"无法获得基础信息>.<","install_tip":"您是否允许Wikiplus采集非敏感数据用于改进Wikiplus及为当前Wiki:$1提供改进建议?","accept":"接受","decline":"拒绝","install_finish":"Wikiplus安装完毕","loading":"正在载入","cant_add_funcbtn":"无法增加功能按钮","wikiplus_settings":"Wikiplus设置","wikiplus_settings_desc":"请在下方按规范修改Wikiplus设置","wikiplus_settings_placeholder":"当前设置为空 请在此处按规范修改Wikiplus设置","wikiplus_settings_grammar_error":"设置存在语法错误 请检查后重试","wikiplus_settings_saved":"设置已保存","redirect_from":"将页面重定向至此","redirect_desc":"请输入要重定向至此的页面名","redirect_summary_desc":"在下方输入编辑摘要(可选)","empty_input":"输入不能为空","redirect_saved":"重定向完成","uninited":"Wikiplus未加载完毕 请刷新重试","cant_parse_i18ncache":"无法解析多语言定义文件缓存","cant_load_language":"无法获取多语言定义文件","history_edit_warning":" // 正试图编辑历史版本 这将会应用到本页面的最新版本 请慎重提交","create_page_tip":"\x3c!-- 正在创建新页面 请删去此行注释后继续 --\x3e","continue":"仍然继续","default_summary_suffix":"// Edit via Wikiplus"}')),k=JSON.parse('{"__language":"en-us","__author":["Eridanus Sora","AnnAngela","YinYan"],"__version":"212","unknown_error_name":"Unknown error","api_unaccessiable":"API of this wiki is not available","api_unwriteable":"Write API of this wiki is not available","fail_to_get_timestamp":"Failed to get the timestamp of this page.","fail_to_get_edittoken":"Failed to get the EditToken of this page.","fail_to_get_pageinfo":"Failed to load infomation of this page","not_autoconfirmed_user":"You are not an autoconfirmed user","hit_abusefilter":"Your edit hit the abusefilter(s)","unknown_edit_error":"Unknown edit error","unknown_edit_error_message":"Unknown edit error($1)","notitle":"The title parameter must be set","notext":"The text parameter must be set","notoken":"The token parameter must be set","invalidsection":"The section parameter must be set to an integer or \'new\'","protectedtitle":"This title has been protected from creation","cantcreate":"You don\'t have permission to create new pages","cantcreate_anon":"Anonymous users can\'t create new pages","articleexists":"The article you tried to create has already existed","noimageredirect_anon":"Anonymous users can\'t create image redirects","noimageredirect":"You don\'t have the permission to create image redirects","spamdetected":"Your edit was rejected because it contained a spam fragment","filtered":"The filter callback function rejected your edit","contenttoobig":"The content you submitted exceeds the article size limit","noedit_anon":"Anonymous users can\'t edit pages","noedit":"You don\'t have the permission to edit pages","pagedeleted":"The page was deleted during your edit","emptypage":"Creating new, empty pages is not allowed","emptynewsection":"Creating empty new sections is not possible.","editconflict":"Edit Conflict! Don\'t panic. Please check the difference between your content below and the existing revision, then refresh the page to make another submit","revwrongpage":"The revision you are editing now is not one a valid reversions of this page","undofailure":"Undo failed due to conflicts.","missingtitle":"Missing title in your edit/creation","mustbeposted":"The edit must be submitted by POST method","readapidenied":"Read API Denied","writeapidenied":"Write API Denied","noapiwrite":"No available write API in this wiki","badtoken":"Invalid EditToken","missingparam":"One of the parameters title, pageid is required","invalidparammix":"The parameters title, pageid can not be used together","invalidtitle":"Invalid page title","nosuchpageid":"Inexistent page ID","pagecannotexist":"No access to create a new page in this namespace","nosuchrevid":"Not an available reversion ID","badmd5":"Invalid MD5","hookaborted":"Your edit was rejected by the hook(s)","parseerror":"Failed to parse the wikitext of this page","summaryrequired":"No summary in your edit","blocked":"You have been already BLOCKED","ratelimited":"You\'ve exceeded your rate limit. Please have a tea and try again later","unknownerror":"Unknown error","nosuchsection":"There is no such section","sectionsnotsupported":"Can\'t edit in this section","editnotsupported":"Can\'t edit in this section by writing section","appendnotsupported":"Can\'t append/prepend wikitext to this page","redirect_appendonly":"Only append/prepend can be made to this page because of the rules of the redirect page","badformat":"The requested serialization format can not be applied to the page\'s content model","customcssprotected":"You\'re not allowed to edit custom CSS pages","customjsprotected":"You\'re not allowed to edit custom JavaScript pages","cascadeprotected":"This page is under a cascading protection","network_edit_error":"Failed to edit this page because of network errors","redirect_to_summary":"Redirect to [[$1]] // Wikiplus","redirect_from_summary":"Redirect [[$1]] to [[$2]] // Wikiplus","need_init":"Wikiplus haven\'t been loaded completely. It\'s a rare occasion so you can try to refresh and try again.","fail_to_get_wikitext":"Failed to load the wikitext of this page","quickedit_topbtn":"QuickEdit","quickedit_sectionbtn":"QuickEdit","fail_to_init_quickedit":"Failed to initialize Wikiplus","back":"Back","goto_editbox":"Jump to editbox","summary_placehold":"Edit summary","submit":"Submit","publish_page":"Publish Page","publish_change":"Publish Changes","preview":"Preview","cancel":"Cancel","mark_minoredit":"Mark this edit as a minor edit","onclose_confirm":"[Wikiplus] Do you really want to close this page when you are still editing it, as you will lose all your unsaved work?","fail_to_get_wikitext_when_edit":"Failed to load wikitext for your edit","cant_parse_wikitext":"Failed to parse the wikitext","loading_preview":"Loading the preview","submitting_edit":"Submitting your edit","edit_success":"Your edit is submitted within $1ms","empty_page_confirm":"The wikitext in your edit is empty, which will empty this page.\\r\\nPlease set the value of key \\"empty\\" true to allow this kind of edits. (This is a tip for developers)","cross_page_edit":"The content you are editing belongs to another page, please wait...","cross_page_edit_submit":"Submitting your edit...","cross_page_edit_error":"Failed to load the infomation","install_tip":"Do you allow Wikiplus to collect insensitive data to help us develop Wikiplus and provide feedback to current site: $1 ?","accept":"Yes","decline":"No","install_finish":"Wikiplus is installed, enjoy it","loading":"Loading","cant_add_funcbtn":"Failed to add buttons for Wikiplus","wikiplus_settings":"Wikiplus Setting","wikiplus_settings_desc":"Please modify your setting according to the standards below","wikiplus_settings_placeholder":"Your setting is empty, please modify your setting according to the documentation.","wikiplus_settings_grammar_error":"Syntax error in your setting","wikiplus_settings_saved":"Your settings have been saved","redirect_from":"Redirect from","redirect_desc":"Which page do you want to redirect here?","redirect_summary_desc":"Type your edit summary below (optional)","empty_input":"Empty input","redirect_saved":"Redirection is finished","uninited":"Wikiplus is not completely initialized, please refeash this page","cant_parse_i18ncache":"Failed to parse the cache of i18n file","cant_load_language":"Failed to load i18n file","history_edit_warning":" // You are trying to edit a history revision of this page. This will apply to the latest revision. Please be careful.","create_page_tip":"\x3c!-- You are now creating a new page. Please delete this line and be careful. --\x3e","continue":"Continue anyway","default_summary_suffix":"// Edit via Wikiplus","cross_page_history_revision_edit_warning":"暂不支持历史版本跨页面编辑"}');function A(t){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(t)}function S(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */S=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r,n){Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(e,r,n,i){var o=r&&r.prototype instanceof p?r:p,a=Object.create(o.prototype);return c(a,"_invoke",function(e,r,n){var i=1;return function(o,a){if(3===i)throw Error("Generator is already running");if(4===i){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var c=x(u,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===i)throw i=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=3;var s=f(e,r,n);if("normal"===s.type){if(i=n.done?4:2,s.arg===l)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=4,n.method="throw",n.arg=s.arg)}}}(e,n,new I(i||[])),!0),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var l={};function p(){}function h(){}function d(){}var v={};c(v,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(O([])));y&&y!==r&&n.call(y,o)&&(v=y);var m=d.prototype=p.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(i,o,a,u){var c=f(t[i],t,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==A(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;c(this,"_invoke",(function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}),!0)}function x(e,r){var n=r.method,i=e.i[n];if(i===t)return r.delegate=null,"throw"===n&&e.i.return&&(r.method="return",r.arg=t,x(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),l;var o=f(i,e.i,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,l;var a=o.arg;return a?a.done?(r[e.r]=a.value,r.next=e.n,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,l):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,l)}function k(t){this.tryEntries.push(t)}function _(e){var r=e[4]||{};r.type="normal",r.arg=t,e[4]=r}function I(t){this.tryEntries=[[-1]],t.forEach(k,this),this.reset(!0)}function O(e){if(null!=e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(A(e)+" is not iterable")}return h.prototype=d,c(m,"constructor",d),c(d,"constructor",h),c(d,u,h.displayName="GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},e.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new w(s(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),c(m,u,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},e.values=O,I.prototype={constructor:I,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(t){a.type="throw",a.arg=e,r.next=t}for(var i=r.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o[4],u=this.prev,c=o[1],s=o[2];if(-1===o[0])return n("end"),!1;if(!c&&!s)throw Error("try statement without catch or finally");if(null!=o[0]&&o[0]<=u){if(u<c)return this.method="next",this.arg=t,n(c),!0;if(u<s)return n(s),!1}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var i=n;break}}i&&("break"===t||"continue"===t)&&i[0]<=e&&e<=i[2]&&(i=null);var o=i?i[4]:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i[2],l):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),_(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var i=n.arg;_(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:O(e),r:r,n:n},"next"===this.method&&(this.arg=t),l}},e}function _(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function I(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,E(n.key),n)}}function O(t,e,r){return(e=E(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function E(t){var e=function(t,e){if("object"!=A(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==A(e)?e:e+""}var P=function(){return function(t,e,r){return e&&I(t.prototype,e),r&&I(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),O(this,"language",void 0),O(this,"i18nData",{}),O(this,"sessionUpdateLog",[]);try{e=JSON.parse(localStorage.Wikiplus_Settings).language||window.navigator.language.toLowerCase()}catch(t){e=window.navigator.language.toLowerCase()}this.language=e,this.i18nData["zh-cn"]=x,this.i18nData["en-us"]=k;try{for(var r=JSON.parse(localStorage.getItem("Wikiplus_i18nCache")),n=0,i=Object.keys(r);n<i.length;n++){var o=i[n];"zh-cn"!==o&&"en-us"!==o&&(this.i18nData[o]=r[o])}}catch(t){localStorage.setItem("Wikiplus_i18nCache","{}")}}),[{key:"translate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r="";return this.language in this.i18nData?t in this.i18nData[this.language]?r=this.i18nData[this.language][t]:(this.loadLanguage(this.language),r=t in this.i18nData["en-us"]?this.i18nData["en-us"][t]:t):this.loadLanguage(this.language),e.length>0&&e.forEach((function(t,e){r=r.replace("$".concat(e+1),t)})),r}},{key:"loadLanguage",value:(t=S().mark((function t(e){var r,n;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.sessionUpdateLog.includes(e)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,fetch("https://wikiplus-app.com/languages/get.php?lang=".concat(e));case 5:return t.next=7,t.sent.json();case 7:r=t.sent,n=localStorage.getItem("Wikiplus_LanguageVersion")||"000",this.sessionUpdateLog.push(e),r.__version===n&&e in this.i18nData||(console.info("Update ".concat(e," support to version ").concat(r.__version)),this.i18nData[e]=r,localStorage.setItem("Wikiplus_i18nCache",JSON.stringify(this.i18nData))),t.next=15;break;case 13:t.prev=13,t.t0=t.catch(2);case 15:case"end":return t.stop()}}),t,this,[[2,13]])})),e=function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){_(o,n,i,a,u,"next",t)}function u(t){_(o,n,i,a,u,"throw",t)}a(void 0)}))},function(t){return e.apply(this,arguments)})}]);var t,e}(),C=new P;function B(t){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B(t)}function j(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,W(n.key),n)}}function T(t,e,r){return e&&j(t.prototype,e),r&&j(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function W(t){var e=function(t,e){if("object"!=B(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==B(e)?e:e+""}function N(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R(t,e,r){return e=U(e),function(t,e){if(e&&("object"==B(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,L()?Reflect.construct(e,r||[],U(t).constructor):e.apply(t,r))}function F(t){var e="function"==typeof Map?new Map:void 0;return F=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(L())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&M(i,r.prototype),i}(t,arguments,U(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),M(r,t)},F(t)}function L(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(L=function(){return!!t})()}function M(t,e){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},M(t,e)}function U(t){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},U(t)}var D=function(t){function e(t,r){var n;return N(this,e),(n=R(this,e,[t])).code=r,n.name="WikiplusError",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&M(t,e)}(e,t),T(e)}(F(Error)),G=function(){return T((function t(){N(this,t)}),null,[{key:"debug",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";console.debug("[Wikiplus-DEBUG] ".concat(t))}},{key:"info",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";console.info("[Wikiplus-INFO] ".concat(t))}},{key:"error",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=C.translate(t);throw e.length>0&&(r=r.replace(/\$\{(\d+)\}/g,(function(t,r){var n=parseInt(r,10)-1;return n>=0&&n<e.length?e[n]:"${".concat(r,"}")}))),console.error("[Wikiplus-ERROR] ".concat(r)),new D(r,t)}}])}(),Q=G;function q(t){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q(t)}function z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?z(Object(r),!0).forEach((function(e){K(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function H(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */H=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r,n){Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(e,r,n,i){var o=r&&r.prototype instanceof p?r:p,a=Object.create(o.prototype);return c(a,"_invoke",function(e,r,n){var i=1;return function(o,a){if(3===i)throw Error("Generator is already running");if(4===i){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var c=x(u,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===i)throw i=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=3;var s=f(e,r,n);if("normal"===s.type){if(i=n.done?4:2,s.arg===l)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=4,n.method="throw",n.arg=s.arg)}}}(e,n,new S(i||[])),!0),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var l={};function p(){}function h(){}function d(){}var v={};c(v,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(_([])));y&&y!==r&&n.call(y,o)&&(v=y);var m=d.prototype=p.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(i,o,a,u){var c=f(t[i],t,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==q(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;c(this,"_invoke",(function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}),!0)}function x(e,r){var n=r.method,i=e.i[n];if(i===t)return r.delegate=null,"throw"===n&&e.i.return&&(r.method="return",r.arg=t,x(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),l;var o=f(i,e.i,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,l;var a=o.arg;return a?a.done?(r[e.r]=a.value,r.next=e.n,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,l):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,l)}function k(t){this.tryEntries.push(t)}function A(e){var r=e[4]||{};r.type="normal",r.arg=t,e[4]=r}function S(t){this.tryEntries=[[-1]],t.forEach(k,this),this.reset(!0)}function _(e){if(null!=e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(q(e)+" is not iterable")}return h.prototype=d,c(m,"constructor",d),c(d,"constructor",h),c(d,u,h.displayName="GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},e.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new w(s(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),c(m,u,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(t){a.type="throw",a.arg=e,r.next=t}for(var i=r.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o[4],u=this.prev,c=o[1],s=o[2];if(-1===o[0])return n("end"),!1;if(!c&&!s)throw Error("try statement without catch or finally");if(null!=o[0]&&o[0]<=u){if(u<c)return this.method="next",this.arg=t,n(c),!0;if(u<s)return n(s),!1}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var i=n;break}}i&&("break"===t||"continue"===t)&&i[0]<=e&&e<=i[2]&&(i=null);var o=i?i[4]:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i[2],l):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),A(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var i=n.arg;A(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:_(e),r:r,n:n},"next"===this.method&&(this.arg=t),l}},e}function J(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function V(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){J(o,n,i,a,u,"next",t)}function u(t){J(o,n,i,a,u,"throw",t)}a(void 0)}))}}function X(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Z(n.key),n)}}function K(t,e,r){return(e=Z(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Z(t){var e=function(t,e){if("object"!=q(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==q(e)?e:e+""}var tt=function(){return function(t,e,r){return e&&X(t.prototype,e),r&&X(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),K(this,"pageInfoCache",{})}),[{key:"getEditToken",value:(o=V(H().mark((function t(){var e;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w.get({action:"query",meta:"tokens",format:"json"});case 2:if(!((e=t.sent).query&&e.query.tokens&&e.query.tokens.csrftoken&&"+\\"!==e.query.tokens.csrftoken)){t.next=7;break}return t.abrupt("return",e.query.tokens.csrftoken);case 7:return t.abrupt("return",Q.error("fail_to_get_edittoken"));case 8:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)})},{key:"getPageInfo",value:(i=V(H().mark((function t(e){var r,n,i,o,a;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.title,n=e.revisionId,t.prev=1,i={action:"query",prop:"revisions|info",rvprop:"timestamp|ids",format:"json"},!n){t.next=7;break}i.revids=n,t.next=11;break;case 7:if(!r){t.next=11;break}if(!this.pageInfoCache[r]){t.next=10;break}return t.abrupt("return",{timestamp:this.pageInfoCache[r].timestamp,revisionId:this.pageInfoCache[r].revid});case 10:i.titles=r;case 11:return t.next=13,w.get(i);case 13:if(!(o=t.sent).query||!o.query.pages){t.next=20;break}if("-1"!==Object.keys(o.query.pages)[0]){t.next=17;break}return t.abrupt("return",{});case 17:return a=o.query.pages[Object.keys(o.query.pages)[0]].revisions[0],r&&(this.pageInfoCache[r]=a),t.abrupt("return",{timestamp:a.timestamp,revisionId:a.revid});case 20:t.next=25;break;case 22:t.prev=22,t.t0=t.catch(1),Q.error("fail_to_get_edittoken");case 25:case"end":return t.stop()}}),t,this,[[1,22]])}))),function(t){return i.apply(this,arguments)})},{key:"getWikiText",value:(n=V(H().mark((function t(e){var r,n,i;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.section,n=e.revisionId,t.prev=1,t.next=4,fetch("".concat(location.protocol,"//").concat(location.host).concat(u.scriptPath,"/index.php?oldid=").concat(n,"§ion=").concat(r,"&action=raw"));case 4:return t.next=6,t.sent.text();case 6:return i=t.sent,t.abrupt("return",i);case 10:t.prev=10,t.t0=t.catch(1),Q.error("fail_to_get_wikitext");case 13:case"end":return t.stop()}}),t,null,[[1,10]])}))),function(t){return n.apply(this,arguments)})},{key:"parseWikiText",value:(r=V(H().mark((function t(e){var r,n,i=arguments;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:"",t.prev=2,t.next=5,w.post({format:"json",action:"parse",text:e,title:r,pst:"true"});case 5:if(!(n=t.sent).parse||!n.parse.text){t.next=8;break}return t.abrupt("return",n.parse.text["*"]);case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),Q.error("cant_parse_wikitext");case 13:case"end":return t.stop()}}),t,null,[[2,10]])}))),function(t){return r.apply(this,arguments)})},{key:"edit",value:(e=V(H().mark((function t(){var e,r,n,i,o,a,u,c,s,f,l=arguments;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(e=l.length>0&&void 0!==l[0]?l[0]:{}).title,n=e.content,i=e.editToken,o=e.timestamp,a=e.config,u=void 0===a?{}:a,c=e.additionalConfig,s=void 0===c?{}:c,t.prev=1,t.next=4,w.post(Y(Y(Y({action:"edit",format:"json",text:n,title:r,token:i},o?{basetimestamp:o}:{}),u),s));case 4:f=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),Q.error("network_edit_error");case 10:if(!f.edit){t.next=22;break}if("Success"!==f.edit.result){t.next=15;break}return t.abrupt("return",!0);case 15:if(!f.edit.code){t.next=19;break}throw new Error("\n ".concat(C.translate("hit_abusefilter"),":").concat(f.edit.info.replace("/Hit AbuseFilter: /ig",""),'\n <br>\n <div style="font-size: smaller;">').concat(f.edit.warning,"</div>\n "));case 19:Q.error("unknown_edit_error");case 20:t.next=23;break;case 22:f.error&&f.error.code?Q.error(f.error.code):f.code?Q.error(f.code):Q.error("unknown_edit_error");case 23:case"end":return t.stop()}}),t,null,[[1,7]])}))),function(){return e.apply(this,arguments)})},{key:"getLatestRevisionIdForPage",value:(t=V(H().mark((function t(e){var r,n;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getPageInfo({title:e});case 2:return r=t.sent,n=r.revisionId,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})}]);var t,e,r,n,i,o}(),et=new tt;function rt(t){return rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rt(t)}function nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function it(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nt(Object(r),!0).forEach((function(e){st(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ot(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ot=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r,n){Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(e,r,n,i){var o=r&&r.prototype instanceof p?r:p,a=Object.create(o.prototype);return c(a,"_invoke",function(e,r,n){var i=1;return function(o,a){if(3===i)throw Error("Generator is already running");if(4===i){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var c=x(u,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===i)throw i=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=3;var s=f(e,r,n);if("normal"===s.type){if(i=n.done?4:2,s.arg===l)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=4,n.method="throw",n.arg=s.arg)}}}(e,n,new S(i||[])),!0),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var l={};function p(){}function h(){}function d(){}var v={};c(v,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(_([])));y&&y!==r&&n.call(y,o)&&(v=y);var m=d.prototype=p.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(i,o,a,u){var c=f(t[i],t,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==rt(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;c(this,"_invoke",(function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}),!0)}function x(e,r){var n=r.method,i=e.i[n];if(i===t)return r.delegate=null,"throw"===n&&e.i.return&&(r.method="return",r.arg=t,x(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),l;var o=f(i,e.i,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,l;var a=o.arg;return a?a.done?(r[e.r]=a.value,r.next=e.n,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,l):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,l)}function k(t){this.tryEntries.push(t)}function A(e){var r=e[4]||{};r.type="normal",r.arg=t,e[4]=r}function S(t){this.tryEntries=[[-1]],t.forEach(k,this),this.reset(!0)}function _(e){if(null!=e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(rt(e)+" is not iterable")}return h.prototype=d,c(m,"constructor",d),c(d,"constructor",h),c(d,u,h.displayName="GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},e.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new w(s(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),c(m,u,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(t){a.type="throw",a.arg=e,r.next=t}for(var i=r.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o[4],u=this.prev,c=o[1],s=o[2];if(-1===o[0])return n("end"),!1;if(!c&&!s)throw Error("try statement without catch or finally");if(null!=o[0]&&o[0]<=u){if(u<c)return this.method="next",this.arg=t,n(c),!0;if(u<s)return n(s),!1}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var i=n;break}}i&&("break"===t||"continue"===t)&&i[0]<=e&&e<=i[2]&&(i=null);var o=i?i[4]:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i[2],l):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),A(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var i=n.arg;A(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:_(e),r:r,n:n},"next"===this.method&&(this.arg=t),l}},e}function at(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function ut(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){at(o,n,i,a,u,"next",t)}function u(t){at(o,n,i,a,u,"throw",t)}a(void 0)}))}}function ct(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ft(n.key),n)}}function st(t,e,r){return(e=ft(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ft(t){var e=function(t,e){if("object"!=rt(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==rt(e)?e:e+""}var lt=function(){return function(t,e,r){return e&&ct(t.prototype,e),r&&ct(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){var r=e.title,n=e.revisionId;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),st(this,"timestamp",void 0),st(this,"editToken",void 0),st(this,"title",void 0),st(this,"revisionId",void 0),st(this,"inited",!1),st(this,"isNewPage",!1),st(this,"sectionCache",{}),this.title=r,this.revisionId=n,this.isNewPage=!n}),[{key:"init",value:(o=ut(ot().mark((function t(){var e,r,n,i=arguments;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(i.length>0&&void 0!==i[0]?i[0]:{}).editToken,r=void 0===e?"":e,n=[this.getTimestamp()],r||n.push(this.getEditToken()),t.next=5,Promise.all(n);case 5:return this.inited=!0,Q.info("Page initialization for ".concat(this.title,"#").concat(this.revisionId," finished.")),t.abrupt("return");case 8:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"getEditToken",value:(i=ut(ot().mark((function t(){return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,mw.loader.using("mediawiki.user");case 2:if(!mw.user.tokens.get("csrfToken")||"+\\"===mw.user.tokens.get("csrfToken")){t.next=5;break}return this.editToken=mw.user.tokens.get("csrfToken"),t.abrupt("return");case 5:return t.next=7,et.getEditToken();case 7:return this.editToken=t.sent,t.abrupt("return");case 9:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"getTimestamp",value:(n=ut(ot().mark((function t(){var e,r,n;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,et.getPageInfo({revisionId:this.revisionId,title:this.title});case 2:return e=t.sent,r=e.timestamp,n=e.revisionId,this.timestamp=r,n&&(this.revisionId=n,this.isNewPage=!1),t.abrupt("return");case 8:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"getWikiText",value:(r=ut(ot().mark((function t(){var e,r,n,i,o=arguments;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=(o.length>0&&void 0!==o[0]?o[0]:{}).section,n=-1===(r=void 0===e?"":e)?"":r,!this.sectionCache[n]){t.next=4;break}return t.abrupt("return",this.sectionCache[n]);case 4:return t.next=6,et.getWikiText({section:n,revisionId:this.revisionId});case 6:return i=t.sent,Q.info("Wikitext of ".concat(this.title,"#").concat(r," fetched.")),this.sectionCache[n]=i,t.abrupt("return",i);case 10:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"parseWikiText",value:(e=ut(ot().mark((function t(e){return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",et.parseWikiText(e,this.title));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"edit",value:(t=ut(ot().mark((function t(e){return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.editToken){t.next=3;break}return Q.error("fail_to_get_edittoken"),t.abrupt("return");case 3:if(this.timestamp||this.isNewPage){t.next=6;break}return Q.error("fail_to_get_timestamp"),t.abrupt("return");case 6:return t.abrupt("return",et.edit(it(it(it({title:this.title,editToken:this.editToken},this.timestamp?{timestamp:this.timestamp}:{}),e),{},{additionalConfig:it({},this.isNewPage?{createonly:this.isNewPage}:{})})));case 7:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})}]);var t,e,r,n,i,o}(),pt=lt;r(113),r(1761),r(2762);function ht(t){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ht(t)}function dt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,vt(n.key),n)}}function vt(t){var e=function(t,e){if("object"!=ht(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ht(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ht(e)?e:e+""}var gt=function(){return function(t,e,r){return e&&dt(t.prototype,e),r&&dt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.init()}),[{key:"init",value:function(){$("body").append('<div id="MoeNotification"></div>')}},{key:"display",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"喵~",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};$("#MoeNotification").append($("<div>").addClass("MoeNotification-notice").addClass("MoeNotification-notice-"+e).append("<span>"+t+"</span>")),$("#MoeNotification").find(".MoeNotification-notice").last().fadeIn(300),this.bind(),this.clear(),r($("#MoeNotification").find(".MoeNotification-notice").last())}},{key:"bind",value:function(){var t=this;$(".MoeNotification-notice").on("mouseover",(function(){t.slideLeft($(this))}))}},{key:"success",value:function(t,e){this.display(t,"success",e)}},{key:"warning",value:function(t,e){this.display(t,"warning",e)}},{key:"error",value:function(t,e){this.display(t,"error",e)}},{key:"clear",value:function(){$(".MoeNotification-notice").length>=10&&($("#MoeNotification").children().first().fadeOut(150,(function(){$(this).remove()})),setTimeout(this.clear,300))}},{key:"empty",value:function(t){$(".MoeNotification-notice").each((function(e){if("function"==typeof t){var r=$(this);setTimeout((function(){t(r)}),200*e)}else $(this).delay(200*e).fadeOut("fast",(function(){$(this).remove()}))}))}},{key:"slideLeft",value:function(t,e){t.css("position","relative"),t.animate({left:"-200%"},e||150,(function(){$(this).fadeOut("fast",(function(){$(this).remove()}))}))}}])}(),yt=new gt,mt=function(t){return new Promise((function(e){return setTimeout(e,t)}))};function bt(t){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt(t)}function wt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */wt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r,n){Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(e,r,n,i){var o=r&&r.prototype instanceof p?r:p,a=Object.create(o.prototype);return c(a,"_invoke",function(e,r,n){var i=1;return function(o,a){if(3===i)throw Error("Generator is already running");if(4===i){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var c=x(u,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===i)throw i=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=3;var s=f(e,r,n);if("normal"===s.type){if(i=n.done?4:2,s.arg===l)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=4,n.method="throw",n.arg=s.arg)}}}(e,n,new S(i||[])),!0),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var l={};function p(){}function h(){}function d(){}var v={};c(v,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(_([])));y&&y!==r&&n.call(y,o)&&(v=y);var m=d.prototype=p.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(i,o,a,u){var c=f(t[i],t,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==bt(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;c(this,"_invoke",(function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}),!0)}function x(e,r){var n=r.method,i=e.i[n];if(i===t)return r.delegate=null,"throw"===n&&e.i.return&&(r.method="return",r.arg=t,x(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),l;var o=f(i,e.i,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,l;var a=o.arg;return a?a.done?(r[e.r]=a.value,r.next=e.n,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,l):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,l)}function k(t){this.tryEntries.push(t)}function A(e){var r=e[4]||{};r.type="normal",r.arg=t,e[4]=r}function S(t){this.tryEntries=[[-1]],t.forEach(k,this),this.reset(!0)}function _(e){if(null!=e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(bt(e)+" is not iterable")}return h.prototype=d,c(m,"constructor",d),c(d,"constructor",h),c(d,u,h.displayName="GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},e.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new w(s(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),c(m,u,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(t){a.type="throw",a.arg=e,r.next=t}for(var i=r.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o[4],u=this.prev,c=o[1],s=o[2];if(-1===o[0])return n("end"),!1;if(!c&&!s)throw Error("try statement without catch or finally");if(null!=o[0]&&o[0]<=u){if(u<c)return this.method="next",this.arg=t,n(c),!0;if(u<s)return n(s),!1}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var i=n;break}}i&&("break"===t||"continue"===t)&&i[0]<=e&&e<=i[2]&&(i=null);var o=i?i[4]:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i[2],l):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),A(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var i=n.arg;A(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:_(e),r:r,n:n},"next"===this.method&&(this.arg=t),l}},e}function xt(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function kt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){xt(o,n,i,a,u,"next",t)}function u(t){xt(o,n,i,a,u,"throw",t)}a(void 0)}))}}function At(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_t(n.key),n)}}function St(t,e,r){return(e=_t(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _t(t){var e=function(t,e){if("object"!=bt(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bt(e)?e:e+""}var It=function(){return function(t,e,r){return e&&At(t.prototype,e),r&&At(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),St(this,"quickEditPanelVisible",!1),St(this,"scrollTop",0)}),[{key:"createDialogBox",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Wikiplus",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:600,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};$(".Wikiplus-InterBox").length>0&&$(".Wikiplus-InterBox").each((function(){$(this).remove()}));var i=window.innerWidth,o=window.innerHeight,a=Math.min(i,r),u=$("<div>").addClass("Wikiplus-InterBox").css({"margin-left":i/2-a/2,top:$(document).scrollTop()+.2*o,display:"none"}).append($("<div>").addClass("Wikiplus-InterBox-Header").html(t)).append($("<div>").addClass("Wikiplus-InterBox-Content").append(e)).append($("<span>").text("×").addClass("Wikiplus-InterBox-Close"));$("body").append(u),$(".Wikiplus-InterBox").width(a),$(".Wikiplus-InterBox-Close").on("click",(function(){$(this).parent().fadeOut("fast",(function(){window.onclose=window.onbeforeunload=void 0,$(this).remove()}))}));var c=function(t){t.mousedown((function(e){var r=e.clientX,n=e.clientY,i=t.parent().offset().left,o=t.parent().offset().top;$(document).on("mousemove",(function(e){t.parent().css({"margin-left":i+e.clientX-r,top:o+e.clientY-n})})),$(document).on("mouseup",(function(){t.unbind("mousedown"),$(document).off("mousemove"),$(document).off("mouseup"),c(t)}))}))};return c($(".Wikiplus-InterBox-Header")),$(".Wikiplus-InterBox").fadeIn(500),n(),u}},{key:"addFunctionButton",value:function(t,e){var r;if("vector"===u.skin)r=$("<li>").addClass("mw-list-item").addClass("vector-tab-noicon").attr("id",e).append($("<a>").attr("href","javascript:void(0);").text(t));if($("#p-cactions").length>0)return $("#p-cactions ul").append(r),$("#".concat(e));Q.info(C.translate("cant_add_funcbtn"))}},{key:"insertSimpleRedirectButton",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=this.addFunctionButton(C.translate("redirect_from"),"Wikiplus-SR-Intro");e&&e.on("click",t)}},{key:"insertSettingsPanelButton",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=this.addFunctionButton(C.translate("wikiplus_settings"),"Wikiplus-Settings-Intro");e&&e.on("click",t)}},{key:"insertTopQuickEditEntry",value:function(t){var e=$("<li>").attr("id","Wikiplus-Edit-TopBtn").attr("class","mw-list-item"),r=$("<a>").attr("href","javascript:void(0)").text("".concat(C.translate("quickedit_topbtn")));switch(e.append(r),u.skin){case"minerva":e.css({"align-items":"center",display:"flex"}),e.find("span").addClass("page-actions-menu__list-item"),e.find("a").addClass("mw-ui-icon mw-ui-icon-element mw-ui-icon-wikimedia-edit-base20 mw-ui-icon-with-label-desktop").css("vertical-align","middle");break;case"vector-2022":e.addClass("vector-tab-noicon");break;case"vector":e.append($("<span>").append(r))}$(e).on("click",(function(){t({sectionNumber:-1,targetPageName:u.currentPageName})})),$("#ca-edit").length>0&&0===$("#Wikiplus-Edit-TopBtn").length&&("minerva"===u.skin?$("#ca-edit").parent().after(e):$("#ca-edit").after(e))}},{key:"insertSectionQuickEditEntries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e="minerva"===u.skin?$("<span>").append($("<a>").addClass("Wikiplus-Edit-SectionBtn mw-ui-icon mw-ui-icon-element mw-ui-icon-wikimedia-edit-base20 edit-page mw-ui-icon-flush-right").css("margin-left","0.75em").attr("href","javascript:void(0)").attr("title",C.translate("quickedit_sectionbtn"))):$("<span>").append($("<span>").addClass("mw-editsection-divider").text(" | ")).append($("<a>").addClass("Wikiplus-Edit-SectionBtn").attr("href","javascript:void(0)").text(C.translate("quickedit_sectionbtn")));$(".mw-editsection").each((function(r){try{var n=$(this).find("a[href*='action=edit']").first().attr("href"),i=n.match(/&[ve]*section\=([^&]+)/)[1].replace(/T-/gi,""),o=decodeURIComponent(n.match(/title=(.+?)&/)[1]),a=$(this).prev().clone();a.find(".mw-headline-number").remove();var c=a.text().trim(),s=e.clone();s.find(".Wikiplus-Edit-SectionBtn").on("click",(function(){t({sectionNumber:i,sectionName:c,targetPageName:o})})),"minerva"===u.skin?$(this).append(s):$(this).find(".mw-editsection-bracket").last().before(s)}catch(t){Q.error("fail_to_init_quickedit")}}))}},{key:"insertLinkEditEntries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};$("#mw-content-text a.external").each((function(e){var r=function(t){for(var e,r=/(([^?&=]+)(?:=([^?&=]*))*)/g,n={};e=r.exec(t);)try{n[e[2]]=decodeURIComponent(e[3])}catch(t){n[e[2]]=e[3]}return n}($(this).attr("href"));"edit"===r.action&&void 0!==r.title&&"new"!==r.section&&$(this).after($("<a>").attr({href:"javascript:void(0)",class:"Wikiplus-Edit-EveryWhereBtn"}).text("(".concat(C.translate("quickedit_sectionbtn"),")")).on("click",(function(){var e;t({targetPageName:r.title,sectionNumber:null!==(e=r.section)&&void 0!==e?e:-1})})))}))}},{key:"showQuickEditPanel",value:function(t){var e=t.title,r=void 0===e?"":e,n=t.content,i=void 0===n?"":n,o=t.summary,a=void 0===o?"":o,u=t.onBack,c=void 0===u?function(){}:u,s=t.onParse,f=void 0===s?function(){}:s,l=t.onEdit,p=void 0===l?function(){}:l,h=t.escExit,d=void 0!==h&&h,v=this;this.scrollTop=$(document).scrollTop(),this.quickEditPanelVisible&&this.hideQuickEditPanel(),this.quickEditPanelVisible=!0,window.onclose=window.onbeforeunload=function(){return"".concat(C.translate("onclose_confirm"))};var g=$(".noarticletext").length>0,y=$("<span>").attr("id","Wikiplus-Quickedit-Back").addClass("Wikiplus-Btn").text("".concat(C.translate("back"))),m=$("<span>").attr("id","Wikiplus-Quickedit-Jump").addClass("Wikiplus-Btn").append($("<a>").attr("href","#Wikiplus-Quickedit").text("".concat(C.translate("goto_editbox")))),b=$("<textarea>").attr("id","Wikiplus-Quickedit"),w=$("<div>").attr("id","Wikiplus-Quickedit-Preview-Output"),x=$("<input>").attr("id","Wikiplus-Quickedit-Summary-Input").addClass("cdx-text-input__input").attr("type","text").attr("placeholder","".concat(C.translate("summary_placehold"))),k=$("<input>").attr("id","Wikiplus-Quickedit-Submit").attr("role","button").addClass("mw-ui-button mw-ui-progressive").attr("type","submit").val("".concat(C.translate(g?"publish_page":"publish_change"),"(Ctrl+S)")),A=$("<input>").attr("id","Wikiplus-Quickedit-Preview-Submit").addClass("mw-ui-button mw-ui-progressive").attr("role","button").attr("type","button").val("".concat(C.translate("preview"))),S=$("<div>").append($("<input>").attr({type:"checkbox",id:"Wikiplus-Quickedit-MinorEdit"})).append($("<label>").attr("for","Wikiplus-Quickedit-MinorEdit").text("".concat(C.translate("mark_minoredit"),"(Ctrl+Shift+S)"))).css({margin:"5px 5px 5px -3px",display:"inline"}),_=$("<div>").append(y,m,$("<iframe>").append(w).attr("height","300px").attr("width","100%"),b,x,$("<br>"),S,$("<hr>"),k,$("<br>"),A);this.createDialogBox(r,_,1e3,(function(){$("#Wikiplus-Quickedit").val(i),$("#Wikiplus-Quickedit-Summary-Input").val(a)})),$("#Wikiplus-Quickedit-Back").on("click",c),$("#Wikiplus-Quickedit-Preview-Submit").on("click",kt(wt().mark((function t(){var e,r,n;return wt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=$("<div>").addClass("Wikiplus-Banner").text("".concat(C.translate("loading_preview"))),r=$("#Wikiplus-Quickedit").val(),$(this).attr("disabled","disabled"),$("#Wikiplus-Quickedit-Preview-Output").fadeOut(100,(function(){$("#Wikiplus-Quickedit-Preview-Output").html("").append(e),$("#Wikiplus-Quickedit-Preview-Output").fadeIn(100)})),$("html, body").animate({scrollTop:v.scrollTop},200),t.next=7,f(r);case 7:return n=t.sent,$("#Wikiplus-Quickedit-Preview-Output").fadeOut("100",(function(){$("#Wikiplus-Quickedit-Preview-Output").html('<hr><div class="mw-body-content">'+n+"</div><hr>"),$("#Wikiplus-Quickedit-Preview-Output").fadeIn("100"),$("#Wikiplus-Quickedit-Preview-Submit").prop("disabled",!1)})),t.abrupt("return");case 10:case"end":return t.stop()}}),t,this)})))),$("#Wikiplus-Quickedit-Submit").on("click",kt(wt().mark((function t(){var e,r,n,i;return wt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(new Date).valueOf(),r=$("<div>").addClass("Wikiplus-Banner").text("".concat(C.translate("submitting_edit"))),n={summary:$("#Wikiplus-Quickedit-Summary-Input").val(),content:$("#Wikiplus-Quickedit").val(),isMinorEdit:$("#Wikiplus-Quickedit-MinorEdit").is(":checked")},$("#Wikiplus-Quickedit-Submit,#Wikiplus-Quickedit,#Wikiplus-Quickedit-Preview-Submit").attr("disabled","disabled"),$("html, body").animate({scrollTop:v.scrollTop},200),$("#Wikiplus-Quickedit-Preview-Output").fadeOut(100,(function(){$("#Wikiplus-Quickedit-Preview-Output").html("").append(r),$("#Wikiplus-Quickedit-Preview-Output").fadeIn(100)})),t.prev=6,t.next=9,p(n);case 9:i=(new Date).valueOf()-e,$("#Wikiplus-Quickedit-Preview-Output").find(".Wikiplus-Banner").css("background","rgba(6, 239, 92, 0.44)"),$("#Wikiplus-Quickedit-Preview-Output").find(".Wikiplus-Banner").text("".concat(C.translate("edit_success",[i.toString()]))),window.onclose=window.onbeforeunload=void 0,setTimeout((function(){location.reload()}),500),t.next=22;break;case 16:return t.prev=16,t.t0=t.catch(6),console.log(t.t0),$(".Wikiplus-Banner").css("background","rgba(218, 142, 167, 0.65)"),$(".Wikiplus-Banner").html(t.t0.message),t.abrupt("return");case 22:return t.prev=22,$("#Wikiplus-Quickedit-Submit,#Wikiplus-Quickedit,#Wikiplus-Quickedit-Preview-Submit").prop("disabled",!1),t.finish(22);case 25:case"end":return t.stop()}}),t,null,[[6,16,22,25]])})))),$("#Wikiplus-Quickedit,#Wikiplus-Quickedit-Summary-Input,#Wikiplus-Quickedit-MinorEdit").on("keydown",(function(t){t.ctrlKey&&83===t.which&&(t.shiftKey&&$("#Wikiplus-Quickedit-MinorEdit").trigger("click"),$("#Wikiplus-Quickedit-Submit").trigger("click"),t.preventDefault(),t.stopPropagation())})),d&&$(document).on("keydown",(function(t){27===t.which&&$("#Wikiplus-Quickedit-Back").click()}))}},{key:"hideQuickEditPanel",value:function(){this.quickEditPanelVisible=!1,$(".Wikiplus-InterBox").fadeOut("fast",(function(){window.onclose=window.onbeforeunload=void 0,$(this).remove()}))}},{key:"showSimpleRedirectPanel",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.onEdit,n=void 0===r?function(){}:r,i=e.onSuccess,o=void 0===i?function(){}:i,a=$("<input>").addClass("Wikiplus-InterBox-Input").attr("id","Wikiplus-SR-Title"),u=$("<p>").text(C.translate("redirect_summary_desc")),c=$("<input>").addClass("Wikiplus-InterBox-Input").attr("id","Wikiplus-SR-Summary"),s=$("<div>").addClass("Wikiplus-InterBox-Btn").attr("id","Wikiplus-SR-Apply").text(C.translate("submit")),f=$("<div>").addClass("Wikiplus-InterBox-Btn").attr("id","Wikiplus-SR-Cancel").text(C.translate("cancel")),l=$("<div>").addClass("Wikiplus-InterBox-Btn").attr("id","Wikiplus-SR-Continue").text(C.translate("continue")),p=$("<div>").append(a).append(u).append(c).append($("<hr>")).append(s).append(f),h=this.createDialogBox(C.translate("redirect_desc"),p,600);s.on("click",kt(wt().mark((function e(){var r,i;return wt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=$("#Wikiplus-SR-Title").val(),i=$("#Wikiplus-SR-Summary").val(),$(".Wikiplus-InterBox-Content").html('<div class="Wikiplus-Banner">'.concat(C.translate("submitting_edit"),"</div>")),e.prev=3,e.next=6,n({title:r,summary:i,forceOverwrite:!1});case 6:$(".Wikiplus-Banner").text(C.translate("redirect_saved")),t.hideSimpleRedirectPanel(h),o({title:r}),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(3),$(".Wikiplus-Banner").css("background","rgba(218, 142, 167, 0.65)"),$(".Wikiplus-Banner").text(e.t0.message),"articleexists"===e.t0.code&&($(".Wikiplus-InterBox-Content").append($("<hr>")).append(l).append(f),f.on("click",(function(){t.hideSimpleRedirectPanel(h)})),l.on("click",kt(wt().mark((function e(){return wt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $(".Wikiplus-InterBox-Content").html('<div class="Wikiplus-Banner">'.concat(C.translate("submitting_edit"),"</div>")),e.prev=1,e.next=4,n({title:r,summary:i,forceOverwrite:!0});case 4:$(".Wikiplus-Banner").text(C.translate("redirect_saved")),t.hideSimpleRedirectPanel(h),o({title:r}),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(1),$(".Wikiplus-Banner").css("background","rgba(218, 142, 167, 0.65)"),$(".Wikiplus-Banner").text(e.t0.message);case 13:return e.abrupt("return");case 14:case"end":return e.stop()}}),e,null,[[1,9]])})))));case 16:case"end":return e.stop()}}),e,null,[[3,11]])})))),f.on("click",(function(){t.hideSimpleRedirectPanel(h)}))}},{key:"hideSimpleRedirectPanel",value:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:$("body")).find(".Wikiplus-InterBox-Close").trigger("click")}},{key:"showSettingsPanel",value:function(){var t=this,e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onSubmit,r=void 0===e?function(){}:e,n=$("<textarea>").attr("id","Wikiplus-Setting-Input").attr("rows","10"),i=$("<div>").addClass("Wikiplus-InterBox-Btn").attr("id","Wikiplus-Setting-Apply").text(C.translate("submit")),o=$("<div>").addClass("Wikiplus-InterBox-Btn").attr("id","Wikiplus-Setting-Cancel").text(C.translate("cancel")),a=$("<div>").append(n).append($("<hr>")).append(i).append(o),u=this.createDialogBox(C.translate("wikiplus_settings_desc"),a,600,(function(){if(localStorage.Wikiplus_Settings){$("#Wikiplus-Setting-Input").val(localStorage.Wikiplus_Settings);try{var t=JSON.parse(localStorage.Wikiplus_Settings);$("#Wikiplus-Setting-Input").val(JSON.stringify(t,null,2))}catch(t){}}else $("#Wikiplus-Setting-Input").attr("placeholder",C.translate("wikiplus_settings_placeholder"))}));i.on("click",kt(wt().mark((function e(){var n,i;return wt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=$("<div>").addClass("Wikiplus-Banner").text(C.translate("wikiplus_settings_saved")),i=$("#Wikiplus-Setting-Input").val(),e.prev=2,r({settings:i}),$(".Wikiplus-InterBox-Content").html("").append(n),e.next=7,mt(1500);case 7:t.hideSettingsPanel(u),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),yt.error(C.translate("wikiplus_settings_grammar_error"));case 13:case"end":return e.stop()}}),e,null,[[2,10]])})))),o.on("click",(function(){t.hideSettingsPanel(u)}))}},{key:"hideSettingsPanel",value:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:$("body")).find(".Wikiplus-InterBox-Close").trigger("click")}},{key:"bindPreloadEvents",value:function(t){$("#toc").children("ul").find("a").each((function(e){$(this).on("mouseover",(function(){$(this).off("mouseover"),t({sectionNumber:e+1})}))}))}}])}(),Ot=new It;function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function Pt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ct(n.key),n)}}function Ct(t){var e=function(t,e){if("object"!=Et(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Et(e)?e:e+""}var Bt=function(){return function(t,e,r){return e&&Pt(t.prototype,e),r&&Pt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}),[{key:"getSetting",value:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r;try{e=JSON.parse(localStorage.Wikiplus_Settings)}catch(t){return}try{var i=new Function("return "+e[t]);if("function"!=typeof i)return e[t];try{return!0===i()(n)?void 0:i()(n)||e[t]}catch(r){return e[t]}}catch(n){try{for(var o=e[t],a=0,u=Object.keys(r);a<u.length;a++){var c=u[a];o=o.replace("${".concat(c,"}"),r[c])}return o}catch(t){return}}}}])}(),jt=new Bt,Tt=r(5072),Wt=r.n(Tt),$t=r(7825),Nt=r.n($t),Rt=r(7659),Ft=r.n(Rt),Lt=r(5056),Mt=r.n(Lt),Ut=r(540),Dt=r.n(Ut),Gt=r(1113),Qt=r.n(Gt),qt=r(9124),zt={};zt.styleTagTransform=Qt(),zt.setAttributes=Mt(),zt.insert=Ft().bind(null,"head"),zt.domAPI=Nt(),zt.insertStyleElement=Dt();Wt()(qt.A,zt),qt.A&&qt.A.locals&&qt.A.locals;function Yt(t){return Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yt(t)}function Ht(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Jt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ht(Object(r),!0).forEach((function(e){Vt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ht(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Vt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=Yt(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Yt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Yt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */Xt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r,n){Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(e,r,n,i){var o=r&&r.prototype instanceof p?r:p,a=Object.create(o.prototype);return c(a,"_invoke",function(e,r,n){var i=1;return function(o,a){if(3===i)throw Error("Generator is already running");if(4===i){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var c=x(u,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===i)throw i=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=3;var s=f(e,r,n);if("normal"===s.type){if(i=n.done?4:2,s.arg===l)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=4,n.method="throw",n.arg=s.arg)}}}(e,n,new S(i||[])),!0),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var l={};function p(){}function h(){}function d(){}var v={};c(v,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(_([])));y&&y!==r&&n.call(y,o)&&(v=y);var m=d.prototype=p.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(i,o,a,u){var c=f(t[i],t,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==Yt(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;c(this,"_invoke",(function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}),!0)}function x(e,r){var n=r.method,i=e.i[n];if(i===t)return r.delegate=null,"throw"===n&&e.i.return&&(r.method="return",r.arg=t,x(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),l;var o=f(i,e.i,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,l;var a=o.arg;return a?a.done?(r[e.r]=a.value,r.next=e.n,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,l):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,l)}function k(t){this.tryEntries.push(t)}function A(e){var r=e[4]||{};r.type="normal",r.arg=t,e[4]=r}function S(t){this.tryEntries=[[-1]],t.forEach(k,this),this.reset(!0)}function _(e){if(null!=e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(Yt(e)+" is not iterable")}return h.prototype=d,c(m,"constructor",d),c(d,"constructor",h),c(d,u,h.displayName="GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},e.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new w(s(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),c(m,u,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},e.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(t){a.type="throw",a.arg=e,r.next=t}for(var i=r.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o[4],u=this.prev,c=o[1],s=o[2];if(-1===o[0])return n("end"),!1;if(!c&&!s)throw Error("try statement without catch or finally");if(null!=o[0]&&o[0]<=u){if(u<c)return this.method="next",this.arg=t,n(c),!0;if(u<s)return n(s),!1}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var i=n;break}}i&&("break"===t||"continue"===t)&&i[0]<=e&&e<=i[2]&&(i=null);var o=i?i[4]:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i[2],l):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),A(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var i=n.arg;A(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:_(e),r:r,n:n},"next"===this.method&&(this.arg=t),l}},e}function Kt(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function Zt(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Kt(o,n,i,a,u,"next",t)}function u(t){Kt(o,n,i,a,u,"throw",t)}a(void 0)}))}}$(Zt(Xt().mark((function t(){var e,r,n,i,o,a,c,s,f,l;return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e={},r=$(".noarticletext").length>0&&0===u.articleId,n=function(){var t=Zt(Xt().mark((function t(r){var n,i,o;return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.revisionId,i=r.title,!e[n]){t.next=3;break}return t.abrupt("return",e[n]);case 3:return o=new pt({revisionId:n,title:i}),t.next=6,o.init();case 6:return e[n]=o,t.abrupt("return",e[n]);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Q.info("Wikiplus now loading. Version: ".concat(u.version)),window.mw){t.next=7;break}return console.log("Mediawiki JavaScript not loaded or not a Mediawiki website."),t.abrupt("return");case 7:if(u.userGroups.includes("autoconfirmed")){t.next=11;break}return yt.error(C.translate("not_autoconfirmed_user")),Q.info(C.translate("not_autoconfirmed_user")),t.abrupt("return");case 11:if(u.isArticle&&"view"===u.action){t.next=14;break}return Q.info("Not an editable page. Stop initialization."),t.abrupt("return");case 14:return window._WikiplusPages=e,i=u.currentPageName,o=u.revisionId,t.next=19,n({revisionId:o,title:i});case 19:a=t.sent,c=function(){var t=Zt(Xt().mark((function t(){var e,o,a,c,s,f,l,p,h,d,v,g,y,m,b,w,x,k=arguments;return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=(e=k.length>0&&void 0!==k[0]?k[0]:{}).sectionNumber,a=e.sectionName,c=e.targetPageName,!(s=c!==i)||u.latestRevisionId===u.revisionId){t.next=5;break}return Q.error("cross_page_history_revision_edit_warning"),t.abrupt("return");case 5:if(!s){t.next=11;break}return t.next=8,et.getLatestRevisionIdForPage(c);case 8:t.t0=t.sent,t.next=12;break;case 11:t.t0=u.revisionId;case 12:return f=t.t0,t.next=15,n({revisionId:f,title:c});case 15:return l=t.sent,p=jt.getSetting("defaultSummary",{sectionName:a,sectionNumber:o,sectionTargetName:c}),h=p||(a?"/* ".concat(a," */ ").concat(C.translate("default_summary_suffix")):C.translate("default_summary_suffix")),d=setTimeout((function(){yt.success(C.translate("loading"))}),200),t.next=21,l.getWikiText({section:o});case 21:v=t.sent,g=!s&&u.latestRevisionId!==u.revisionId,y=!0===jt.getSetting("esc_to_exit_quickedit")||"true"===jt.getSetting("esc_to_exit_quickedit")||!0===jt.getSetting("escToExitQuickEdit")||"true"===jt.getSetting("escToExitQuickEdit"),m=jt.getSetting("custom_edit_tags"),b=location.host.includes("zh.wikipedia.org")||location.host.includes("zh.m.wikipedia.org")?["wikiplus"]:[],w=null!=m&&m.length?m:b,clearTimeout(d),yt.empty(),g&&yt.warning(C.translate("history_edit_warning")),x=s?!f:r,Ot.showQuickEditPanel({title:"".concat(C.translate("quickedit_topbtn")).concat(g?C.translate("history_edit_warning"):""),content:x?C.translate("create_page_tip"):v,summary:h,onBack:Ot.hideQuickEditPanel,onParse:function(t){return l.parseWikiText(t)},onEdit:function(){var t=Zt(Xt().mark((function t(e){var r,n,i,a;return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.content,n=e.summary,i=e.isMinorEdit,a={content:r,config:Jt(Jt({summary:n},-1!==o?{section:o}:{}),w.length?{tags:w.join("|")}:{})},i?a.config.minor="true":a.config.notminor="true",t.next=5,l.edit(a);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),escExit:y});case 32:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),s=function(){var t=Zt(Xt().mark((function t(){return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:Ot.showSimpleRedirectPanel({onEdit:function(){var t=Zt(Xt().mark((function t(e){var r,i,o,a,c,s,f;return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.title,i=e.summary,o=e.forceOverwrite,a=void 0!==o&&o,t.next=3,n({title:r});case 3:return c=t.sent,s=u.currentPageName,""==i&&(i=C.translate("redirect_from_summary",[r,s])),f={content:"#REDIRECT [[".concat(s,"]]"),config:{summary:i}},a||(f.config.createonly="true"),t.next=10,c.edit(f);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),onSuccess:function(t){var e=t.title;location.href=u.articlePath.replace(/\$1/gi,e)}});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=function(){var t=Zt(Xt().mark((function t(){return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:Ot.showSettingsPanel({onSubmit:function(t){var e=t.settings;JSON.parse(e),localStorage.setItem("Wikiplus_Settings",e)}});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),l=function(){var t=Zt(Xt().mark((function t(e){var r;return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.sectionNumber,t.next=3,a.getWikiText({section:r});case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ot.insertTopQuickEditEntry(c),Ot.insertSectionQuickEditEntries(c),Ot.insertLinkEditEntries(c),Ot.insertSimpleRedirectButton(s),Ot.insertSettingsPanelButton(f),Ot.bindPreloadEvents(l);case 30:case"end":return t.stop()}}),t)}))))}(); //# sourceMappingURL=Main.js.map